joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5d05b8
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5d0764
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
jne 0x5d0745
mov dl, 1
mov eax, dword [0x441204]
call fcn.0046ac2c
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.004098cc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x5d0734
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00533acc
test al, al
je 0x5d0727
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
movzx eax, word [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x5d0774
lea eax, [ebp - 0x394]
call fcn.004252f0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x5d0727
xor eax, eax
push ebp
push 0x5d0720
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x5d07e4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x5d0709
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040a540
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov ebx, dword [eax]
call dword [ebx + 0x40]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x4c]
jne 0x5d0709
mov eax, dword [ebp - 4]
add eax, 0x48
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040a540
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d0727
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x5d0629
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov byte [eax + 0x2d], 0
mov dl, 1
call fcn.0046ab54
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x44]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d076b
lea eax, [ebp - 0x3a0]
call fcn.004098cc
ret

Function at 0x5d1324
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x6ea838]
cmp byte [eax + 0xc5], 0
jne 0x5d1396
cmp dword [0x6ea85c], 0
jne 0x5d1356
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, dword [0x6e2484]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x6ea85c], eax
cmp dword [0x6ea858], 0
jne 0x5d1371
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x6ea858], eax
cmp dword [0x6ea860], 0
jne 0x5d1396
push esp
push 0
push 0
mov eax, dword [0x6e2480]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x6ea860], eax
pop edx
ret
Function at 0x5d1768
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x5d177f
add esp, 0xfffffff0
call fcn.00408108
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00478048
mov eax, dword [0x6e353c]
cmp byte [eax], 0
jne 0x5d17ac
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x194], al
mov eax, dword [0x6e3994]
cmp word [eax + 2], 0
jne 0x5d17c6
mov eax, dword [0x6e3994]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005d3b0c
mov eax, dword [0x6e3b30]
cmp word [eax + 2], 0
jne 0x5d17e0
mov eax, dword [0x6e3b30]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005d3d10
mov byte [ebx + 0x41], 0
mov dl, 1
mov eax, dword [0x4ef088]
call fcn.004f5c9c
mov esi, eax
mov dword [ebx + 0x54], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x5d4198
mov dl, 1
mov eax, dword [0x43d7ac]
call fcn.00407a98
mov dword [ebx + 0xa8], eax
mov dl, 1
mov eax, dword [0x43d7ac]
call fcn.00407a98
mov dword [ebx + 0xc8], eax
xor eax, eax
mov dword [ebx + 0x74], eax
xor eax, eax
mov dword [ebx + 0x98], eax
mov dword [ebx + 0x70], 0xff000018
mov dword [ebx + 0x8c], 0x1f4
mov byte [ebx + 0x90], 1
xor eax, eax
mov dword [ebx + 0x94], eax
mov dword [ebx + 0x88], 0x9c4
mov byte [ebx + 0x9c], 0
mov byte [ebx + 0xbd], 1
mov byte [ebx + 0xd4], 1
mov dl, 1
mov eax, dword [0x4f4354]
call fcn.004ff8cc
mov esi, eax
mov dword [ebx + 0xb8], esi
push 0x5d19d0
mov eax, dword [0x6e37cc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.004ffd54
mov eax, dword [ebx + 0xb8]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x5d4458
mov dl, 1
mov eax, dword [0x43d7ac]
call fcn.00407a98
mov dword [ebx + 0xb0], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x6e37cc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.004250f0
test eax, eax
je 0x5d18fa
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.00424ef4
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.004250d4
test eax, eax
je 0x5d1912
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0xa4]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.0040a540
push ebx
push 0x5d34ec
call fcn.005c6b94
mov dword [ebx + 0x190], eax
mov byte [ebx + 0xe8], 0
mov eax, dword [0x6e353c]
cmp byte [eax], 0
jne 0x5d1963
mov eax, ebx
call fcn.005d1b98
mov byte [ebx + 0x6d], 1
mov byte [ebx + 0x6e], 1
mov byte [ebx + 0x6f], 1
mov byte [ebx + 0xbe], 1
mov byte [ebx + 0xe9], 0
mov byte [ebx + 0xf4], 0
xor eax, eax
mov dword [ebx + 0xec], eax
mov byte [ebx + 0xeb], 0
xor eax, eax
mov dword [ebx + 0xc0], eax
mov eax, ebx
call fcn.005d4690
mov eax, ebx
call fcn.005d533c
mov byte [ebx + 0x196], 0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5d19c7
call fcn.00408160
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5d1ec4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x188]
test eax, eax
je 0x5d1f66
cmp dword [ebx + 0xac], 0
jne 0x5d1f60
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x5d1e04
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0xa8]
cmp dword [eax + 8], 0
je 0x5d1f60
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x5d1f26
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0xa8]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x5d1f60
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [ebx + 0xa8]
mov edx, esi
call fcn.00466700
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x5d1f35
inc dword [ebx + 0xac]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x5d220c
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x6ea838]
cmp dword [eax + 0x188], 0
je 0x5d2375
test bl, bl
jne 0x5d22c8
cmp dword [esi + 0xb4], 0
jne 0x5d22bd
mov eax, esi
call fcn.005d518c
push eax
push 0x5d210c
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x58], 0
je 0x5d228e
mov eax, dword [0x6ea838]
cmp byte [eax + 0xeb], 0
je 0x5d228e
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x5d226f
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x5d228e
push 0
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5d2277
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5d22bd
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.00466700
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5d229d
inc dword [esi + 0xb4]
jmp 0x5d2375
cmp dword [esi + 0xb4], 0
jle 0x5d2375
dec dword [esi + 0xb4]
cmp dword [esi + 0xb4], 0
jne 0x5d2375
cmp dword [esi + 0x58], 0
je 0x5d232a
mov eax, dword [0x6ea838]
cmp byte [eax + 0xeb], 0
je 0x5d232a
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x5d230b
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x5d232a
push 5
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5d2313
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5d2359
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.00466700
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5d2339
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
call dword [edx + 8]
lea eax, [esi + 0xf0]
mov edx, dword [0x5c315c]
call fcn.0040cc58
pop edi
pop esi
pop ebx
ret
Function at 0x5d30f8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xc4], 0
je 0x5d3155
cmp byte [ebx + 0xeb], 0
jne 0x5d3155
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x188]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00409a54
mov eax, dword [esi]
test eax, eax
je 0x5d3142
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x5d3162
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.00409cac
jmp 0x5d3162
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.00409cac
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x5d48a4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x98]
test esi, esi
je 0x5d4915
mov eax, esi
call fcn.0052d20c
test al, al
je 0x5d4915
mov eax, dword [ebx + 0x98]
call fcn.0052ce38
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x5d4915
mov eax, dword [ebx + 0x98]
mov edx, dword [eax]
call dword [edx + 0x150]
test al, al
je 0x5d4906
push 0
mov eax, dword [ebx + 0x98]
call fcn.0052ce38
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebx + 0x98]
xor edx, edx
call fcn.005235f4
jmp 0x5d4915
mov edx, dword [ebx + 0x88]
mov cl, 1
mov eax, ebx
call fcn.005d46b0
pop esi
pop ebx
ret
Function at 0x5dd3c0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x90], 0
jne 0x5dd446
mov eax, dword [ebx + 8]
call fcn.0052ce38
mov ecx, eax
mov dl, 1
mov eax, dword [0x53ba14]
call fcn.00526c68
mov dword [ebx + 0x90], eax
mov esi, dword [ebx + 0x90]
xor edx, edx
mov eax, esi
call fcn.00542614
mov dword [esi + 0x2d4], ebx
mov dword [esi + 0x2d0], 0x5dcc90
push 8
mov edx, 3
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xdc]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x90]
call fcn.0052ce38
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x90]
call fcn.0052ce38
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0xa0], 0
jne 0x5dd4c8
mov eax, dword [ebx + 8]
call fcn.0052ce38
mov ecx, eax
mov dl, 1
mov eax, dword [0x53ba14]
call fcn.00526c68
mov dword [ebx + 0xa0], eax
mov esi, dword [ebx + 0xa0]
mov dl, 1
mov eax, esi
call fcn.00542614
mov dword [esi + 0x2d4], ebx
mov dword [esi + 0x2d0], 0x5dccdc
push 8
push 0
mov edx, 2
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xdc]
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0xa0]
call fcn.0052ce38
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0xa0]
call fcn.0052ce38
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x98], 0
jne 0x5dd546
mov eax, dword [ebx + 8]
call fcn.0052ce38
mov ecx, eax
mov dl, 1
mov eax, dword [0x53c4f8]
call fcn.00526c68
mov dword [ebx + 0x98], eax
mov esi, dword [ebx + 0x98]
mov byte [esi + 0x2a8], 1
push 8
mov edx, 3
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xdc]
push eax
mov edx, 2
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xdc]
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x98]
call fcn.0052ce38
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x98]
call fcn.0052ce38
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x5ec9c0
Capabilities:
Hide graphical window

Disassembly:
push ebx
add esp, 0xfffffff0
mov ebx, eax
mov eax, ebx
call fcn.005ec3f8
test byte [ebx + 0x2dd], 4
jne 0x5eca55
mov edx, esp
mov eax, ebx
call fcn.00522eac
push esp
mov eax, ebx
call fcn.0052cb08
push eax
push 0
mov eax, ebx
test eax, eax
je 0x5ec9f5
sub eax, 0xfffffcdc
push eax
push 0
push 0xfffffffffffffffb
mov eax, dword [ebx + 0x2b8]
push eax
mov eax, dword [eax]
call dword [eax + 0x2c]
cmp dword [ebx + 0x2cc], 0
jne 0x5eca26
mov ecx, dword [0x6e38e0]
mov dl, 1
mov eax, dword [0x508c84]
call fcn.0042a194
call fcn.00408f8c
mov eax, ebx
call fcn.005ecfdc
cmp byte [ebx + 0x69], 0
jne 0x5eca5c
mov eax, ebx
call fcn.0052ce38
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x5eca5c
push 0
mov eax, ebx
call fcn.0052ce38
push eax
call sub.user32.dll_ShowWindow
jmp 0x5eca5c
mov eax, ebx
call fcn.00528584
add esp, 0x10
pop ebx
ret

Function at 0x62c49c
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x62c600
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [ebp - 8]
test esi, esi
je 0x62c4de
or ebx, 0xffff
mov eax, esi
call fcn.0040a488
mov esi, eax
jmp 0x62c4e0
xor esi, esi
xor eax, eax
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
push eax
call sub.winhttp.dll_WinHttpQueryHeaders
call sub.kernel32.dll_GetLastError
cmp eax, 0x2f76
jne 0x62c510
mov eax, edi
call fcn.004098cc
jmp 0x62c5e5
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
je 0x62c560
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
call sub.kernel32.dll_GetLastError
lea ecx, [ebp - 0x20]
mov edx, dword [0x6ea90c]
call fcn.00428c9c
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
lea eax, [ebp - 0x1c]
push eax
push 1
mov ecx, dword [0x6e3804]
mov dl, 1
mov eax, dword [0x62f590]
call fcn.0042a1d0
call fcn.00408f8c
mov edx, dword [ebp - 0xc]
shr edx, 1
dec edx
mov eax, edi
call fcn.0040a618
mov eax, dword [edi]
test eax, eax
je 0x62c578
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x62c5e5
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [edi]
call fcn.0040a488
push eax
push esi
push ebx
mov eax, dword [ebp - 4]
push eax
call sub.winhttp.dll_WinHttpQueryHeaders
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x62c5e5
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
call sub.kernel32.dll_GetLastError
lea ecx, [ebp - 0x24]
mov edx, dword [0x6ea90c]
call fcn.00428c9c
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
lea eax, [ebp - 0x1c]
push eax
push 1
mov ecx, dword [0x6e3804]
mov dl, 1
mov eax, dword [0x62f590]
call fcn.0042a1d0
call fcn.00408f8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x62c607
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0040992c
ret
Function at 0x62c7ac
Capabilities:
Initialize winhttp library

Disassembly:
push ebx
push esi
push edi
test dl, dl
je 0x62c7bb
add esp, 0xfffffff0
call fcn.00408108
mov ebx, edx
mov edi, eax
mov eax, edi
call fcn.00635d3c
mov dl, 1
mov eax, dword [0x62af10]
call fcn.0062f124
mov dword [edi + 0xb8], eax
mov dl, 1
mov eax, dword [0x619b8c]
call fcn.00621c90
mov dword [edi + 0xb4], eax
mov eax, dword [0x62a010]
call fcn.0062ed14
push 0
push 0
push 0
push 1
push 0x62c85c
call sub.winhttp.dll_WinHttpOpen
mov esi, eax
mov dword [edi + 0xb0], esi
test esi, esi
jne 0x62c829
mov ecx, dword [0x6e3990]
mov dl, 1
mov eax, dword [0x62f648]
call fcn.0042a194
call fcn.00408f8c
push 0
push 0x10010
push 0x62c620
mov eax, dword [edi + 0xb0]
push eax
call sub.winhttp.dll_WinHttpSetStatusCallback
mov eax, edi
test bl, bl
je 0x62c856
call fcn.00408160
pop dword fs:[0]
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x62d888
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x62da5b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebx + 0xb8], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
jle 0x62d8cb
mov esi, dword [ebp - 4]
movzx esi, word [esi + 0x10]
jmp 0x62d8cd
xor esi, esi
push 0
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0040a488
push eax
mov eax, dword [ebx + 0x58]
mov eax, dword [eax + 0xb0]
push eax
call sub.winhttp.dll_WinHttpConnect
mov edi, eax
mov dword [ebx + 0xa0], edi
test edi, edi
jne 0x62d921
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x6e352c]
mov dl, 1
mov eax, dword [0x62f710]
call fcn.0042a1d0
call fcn.00408f8c
xor esi, esi
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 0x62da78
call fcn.0040a828
jne 0x62d93a
or esi, 0x800000
push esi
push 0
push 0
push 0
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0062c45c
mov eax, dword [ebp - 0x10]
call fcn.0040a488
push eax
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.0061f068
mov eax, dword [ebp - 0x14]
call fcn.0040a488
push eax
mov eax, dword [ebx + 0xa0]
push eax
call sub.winhttp.dll_WinHttpOpenRequest
mov edi, eax
mov dword [ebx + 0xa4], edi
test edi, edi
jne 0x62d9c6
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
call sub.kernel32.dll_GetLastError
lea ecx, [ebp - 0x28]
mov edx, dword [0x6ea90c]
call fcn.00428c9c
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0x11
lea eax, [ebp - 0x24]
push eax
push 1
mov ecx, dword [0x6e3920]
mov dl, 1
mov eax, dword [0x62f710]
call fcn.0042a1d0
call fcn.00408f8c
mov eax, dword [ebx + 0x14]
push eax
mov eax, ebx
call fcn.0061f1b8
push eax
mov esi, dword [ebx + 0xc]
push esi
push esi
mov eax, dword [ebx + 0xa4]
push eax
call sub.winhttp.dll_WinHttpSetTimeouts
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x62da33
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
call sub.kernel32.dll_GetLastError
lea ecx, [ebp - 0x2c]
mov edx, dword [0x6ea90c]
call fcn.00428c9c
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0x11
lea eax, [ebp - 0x24]
push eax
push 1
mov ecx, dword [0x6e3a88]
mov dl, 1
mov eax, dword [0x62f710]
call fcn.0042a1d0
call fcn.00408f8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x62da62
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.0040992c
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040992c
ret
Function at 0x641c18
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x641c46
mov eax, ebx
call fcn.006426d4
cmp dword [ebx + 0x40], 0
je 0x641c3f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x641cb7
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x641ca9
cmp dword [ebx + 8], 0
je 0x641c68
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x641c7a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x641ca9
cmp dword [ebx + 8], 0
je 0x641c5b
cmp eax, 3
je 0x641c8d
dec eax
jne 0x641c5b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x641c5b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x641c5b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x641cd5
cmp dword [ebx + 0x14], 0xcc
je 0x641cd5
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00641ce0
pop ebx
ret

Function at 0x65633c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x6ead40], 0
jne 0x656353
call fcn.006562f8
mov eax, edi
dec eax
test eax, eax
jl 0x65637b
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x6ea940]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x65635d
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x659358
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x659389
dec al
je 0x6593c4
dec al
je 0x659408
dec al
je 0x65947a
jmp 0x659515
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x659515
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x659399
jmp 0x659515
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x659515
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
movzx ecx, al
mov ecx, dword [ebx + ecx*4 + 0x40]
add dl, byte [ecx + esi]
and dl, 0xff
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x6593d4
jmp 0x659515
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x659515
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, dword [ebx + 0x24]
mov ecx, esi
dec ecx
cmp edx, ecx
jbe 0x65943b
xor edx, edx
mov dword [esp + 4], edx
jmp 0x659450
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov ebp, dword [ebx + edx*4 + 0x40]
movzx edx, byte [ebp + esi]
add eax, dword [esp + 4]
sar eax, 1
jns 0x659468
adc eax, 0
add dl, al
and dl, 0xff
mov byte [ebp + esi], dl
inc esi
dec edi
jne 0x659418
jmp 0x659515
xor eax, eax
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 8], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x659515
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, dword [ebx + 0x24]
mov ecx, esi
dec ecx
cmp edx, ecx
ja 0x6594e1
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 8], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 8]
push eax
movzx eax, byte [esp + 8]
pop edx
call fcn.00656384
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [esp]
and al, 0xff
mov byte [edx + esi], al
inc esi
dec edi
jne 0x659496
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret