joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ac75
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x41ace0
push 0x3d
push dword [ebp + 8]
call fcn.0040fd90
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x41ace0
cmp dword [ebp + 8], esi
je 0x41ace0
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x4444b0]
cmp eax, dword [0x4444b4]
jne 0x41acc6
mov edi, eax
call fcn.0041ac14
mov dword [0x4444b0], eax
cmp eax, ebx
jne 0x41ad1f
cmp dword [ebp + 0xc], ebx
je 0x41ace8
cmp dword [0x4444b8], ebx
je 0x41ace8
call fcn.00419ec5
test eax, eax
je 0x41ad1f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x41ae23
push 4
call fcn.0040f019
cmp eax, ebx
pop ecx
mov dword [0x4444b0], eax
je 0x41ace0
mov dword [eax], ebx
cmp dword [0x4444b8], ebx
jne 0x41ad1f
push 4
call fcn.0040f019
cmp eax, ebx
pop ecx
mov dword [0x4444b8], eax
je 0x41ace0
mov dword [eax], ebx
mov ebx, dword [0x4444b0]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.0041abc7
mov edi, eax
test edi, edi
pop ecx
jl 0x41ad78
cmp dword [ebx], 0
je 0x41ad78
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0040f02b
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x41ad60
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x41adae
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x41ad57
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.00410b48
test eax, eax
pop ecx
pop ecx
je 0x41adae
jmp 0x41ada9
cmp dword [ebp - 4], 0
jne 0x41ae1c
test edi, edi
jge 0x41ad88
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.00410b48
test eax, eax
pop ecx
pop ecx
je 0x41ace0
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x4444b0], eax
cmp dword [ebp + 0xc], 0
je 0x41ae05
push dword [ebp + 8]
call fcn.0040f5a0
inc eax
inc eax
push eax
call fcn.0040f019
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x41ae05
push dword [ebp + 8]
push esi
call fcn.0040f100
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x41adfe
or dword [ebp - 8], 0xffffffff
push esi
call fcn.0040f02b
pop ecx
cmp dword [ebp - 4], 0
je 0x41ae14
push dword [ebp + 8]
call fcn.0040f02b
pop ecx
mov eax, dword [ebp - 8]
jmp 0x41ace3
push esi
call fcn.0040f02b
pop ecx
xor eax, eax
jmp 0x41ace3

Function at 0x41e531
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x4c]
test ecx, ecx
jne 0x41e56b
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00406206
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004061c7
pop esi
ret 4
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]
Function at 0x41f858
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x41f89b
call fcn.0042c6b0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41f89b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41f8b6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0041e9bf
test ebx, ebx
mov esi, eax
je 0x41f8b4
test edi, edi
je 0x41f8b4
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x420fb3
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x42f9f6
call fcn.0040fb84
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x420fcd
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x421019
call fcn.0042087e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004028a6
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x421477
Capabilities:
Get disk information

Disassembly:
mov eax, 0x42fb89
call fcn.0040fb84
sub esp, 0x14c
mov eax, dword [0x440404]
xor eax, dword [ebp + 4]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push edi
mov esi, 0x104
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x4214c1
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor eax, eax
jmp 0x421556
push ebx
call fcn.0042087e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
xor esi, esi
push edi
mov dword [ebp - 4], esi
call fcn.00421435
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x421548
push esi
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x42154b
test byte [ebp + 8], 2
jne 0x421516
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp + 8], 4
jne 0x421548
lea eax, [ebp - 0x158]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x421548
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor esi, esi
inc esi
lea ecx, [ebx - 0x10]
call fcn.004028a6
mov eax, esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop edi
pop esi
call fcn.004106de
leave
ret 8

Function at 0x422696
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x54], 0
mov eax, dword [edi + 0x58]
mov esi, dword [edi + 0x5c]
mov dword [ebp - 4], eax
je 0x4226cd
call fcn.0042c6b0
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4226de
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x422717
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x4226fc
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x422704
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x422715
test ax, ax
jne 0x422715
test si, si
je 0x422717
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x422726
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x422986
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x43020e
call fcn.0040fb84
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x58]
mov ebx, dword [esi + 0x5c]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
call fcn.0042c6b0
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x4229c6
call fcn.0042c6b0
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4229d7
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4229e3
or eax, 0xffffffff
jmp 0x422ae6
mov ecx, esi
call fcn.004224c0
mov dword [ebp - 0x14], eax
call fcn.0041d928
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x422a26
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x422a26
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x422a26
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
and dword [ebp - 4], 0
push esi
call fcn.0041eeeb
push dword [ebp - 0x14]
call fcn.0041d880
push edi
push eax
push ebx
mov ecx, esi
call fcn.0042276b
xor ebx, ebx
cmp eax, ebx
je 0x422a9a
test byte [esi + 0x38], 0x10
je 0x422a68
push 4
pop edi
mov ecx, esi
call fcn.004209ab
test ah, 1
je 0x422a60
push 5
pop edi
push edi
mov ecx, esi
call fcn.0041d324
cmp dword [esi + 0x1c], ebx
je 0x422a9a
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.00420c01
jmp 0x422a9a
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x422aae
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x422ac7
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x422ac7
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.004224fa
cmp dword [esi + 0x54], ebx
je 0x422ae3
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x422b20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0042c6b0
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x422b57
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0042276b
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x4230e0
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x128
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.0040f200
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [edi + 4]
cmp eax, dword [0x434308]
je 0x4231e7
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x423150
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
jne 0x423157
cmp ebx, ebx
jne 0x423157
xor eax, eax
jmp 0x4231ea
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x423164
mov byte [esi + 0x20], bl
jmp 0x423178
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.00406447
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.00406447
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.00406447
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
or ecx, dword [esi + 4]
jne 0x4231d3
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x4231e7
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x425b75
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x440404]
xor eax, dword [ebp + 4]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x425bc7
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x425bc7
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x425bd3
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
call fcn.004106de
leave
ret 8
Function at 0x427265
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x440404]
xor eax, dword [ebp + 4]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x4272b5
push dword [ebp + 8]
call fcn.0042d595
mov esi, eax
test esi, esi
je 0x4272dd
push edi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
pop edi
jmp 0x4272dd
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x4355a0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
call fcn.004106de
leave
ret 0xc

Function at 0x42a2b4
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x440404]
xor eax, dword [ebp + 4]
push ebx
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp + 0xc], eax
push esi
push edi
je 0x42a346
cmp dword [ebp + 8], eax
je 0x42a346
mov edi, dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x18]
mov esi, eax
and eax, 0xc0000000
mov dword [ebp + 0x18], eax
and esi, 0x3e000000
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x830]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x824
call edi
test eax, eax
jne 0x42a35a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x42a346
push dword [ebp - 8]
call fcn.0041be37
mov ebx, eax
test ebx, ebx
pop ecx
je 0x42a346
push esi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0xc], 1
call edi
test eax, eax
jne 0x42a360
push ebx
call fcn.0041be62
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.004106de
leave
ret 0x14
lea ebx, [ebp - 0x830]
mov esi, dword [ebp + 0xc]
push esi
push dword [ebp + 0x18]
push 0
push ebx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
cmp dword [ebp - 0xc], 0
mov edi, eax
je 0x42a37f
push ebx
call fcn.0041be62
pop ecx
test edi, edi
jne 0x42a388
mov eax, dword [ebp + 0x10]
jmp 0x42a3ad
mov ax, word [esi + 0x18]
mov ecx, dword [ebp + 0x14]
mov word [ecx], ax
mov eax, dword [esi + 0xc]
dec eax
je 0x42a3f4
dec eax
je 0x42a3e9
dec eax
je 0x42a3de
dec eax
je 0x42a3d3
dec eax
je 0x42a3c8
dec eax
je 0x42a3bd
dec eax
mov eax, dword [ebp + 0x10]
je 0x42a3b5
mov dword [eax], 0x1000
jmp 0x42a3fd
mov dword [eax], 0x1002
jmp 0x42a3fd
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x1006
jmp 0x42a3fd
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x1001
jmp 0x42a3fd
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x100b
jmp 0x42a3fd
mov eax, dword [ebp + 0x10]
mov dword [eax], 3
jmp 0x42a3fd
mov eax, dword [ebp + 0x10]
mov dword [eax], 2
jmp 0x42a3fd
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
mov eax, edi
jmp 0x42a348
Function at 0x42a859
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x42a882
call fcn.0042c6b0
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x42a8a7
push eax
push dword [esi + 4]
call fcn.0042a7e6
jmp 0x42a8b3
push esi
push eax
mov ecx, 0x444004
call fcn.0042a672
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x42ab8a
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x18], 1
push edi
je 0x42ab9e
cmp dword [esi + 0x14], 0
jne 0x42aba8
push 6
push dword [esi + 0x1c]
call fcn.0042a7e6
mov ecx, dword [esi + 0x30]
test ecx, ecx
jne 0x42abe1
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x42abd0
push eax
push dword [esi + 0x1c]
call fcn.0042a7e6
cmp dword [ebp - 4], edi
je 0x42ac4a
push 0
push dword [esi + 0x1c]
call fcn.0042a7e6
jmp 0x42ac4a
mov eax, dword [esi + 0x2c]
mov edi, dword [sym.imp.WININET.dll_InternetWriteFile]
push ebx
mov ebx, dword [ebp + 0xc]
lea edx, [eax + ebx]
cmp edx, dword [esi + 0x28]
jb 0x42ac12
lea edx, [ebp - 4]
push edx
push eax
push ecx
push dword [esi + 0x14]
call edi
test eax, eax
jne 0x42ac0e
push eax
push dword [esi + 0x1c]
call fcn.0042a7e6
and dword [esi + 0x2c], 0
cmp ebx, dword [esi + 0x28]
jb 0x42ac33
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
push dword [esi + 0x14]
call edi
test eax, eax
jne 0x42ac49
push eax
push dword [esi + 0x1c]
call fcn.0042a7e6
jmp 0x42ac49
mov eax, dword [esi + 0x30]
add eax, dword [esi + 0x2c]
push ebx
push dword [ebp + 8]
push eax
call fcn.0040f260
add esp, 0xc
add dword [esi + 0x2c], ebx
pop ebx
pop edi
pop esi
leave
ret 8
Function at 0x42ac7f
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x3c], ebx
jne 0x42acc9
push 0x1000
call fcn.0042a423
test eax, eax
je 0x42ad2d
lea eax, [ebp - 4]
push eax
push dword [esi + 0x34]
push dword [esi + 0x3c]
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x42acc0
push ebx
push dword [esi + 0x1c]
call fcn.0042a7e6
mov eax, dword [ebp - 4]
mov dword [esi + 0x40], eax
mov dword [esi + 0x38], ebx
mov eax, dword [esi + 0x38]
add eax, dword [esi + 0x3c]
push edi
mov edi, dword [ebp + 8]
jmp 0x42ad22
mov ecx, dword [esi + 0x38]
cmp ecx, dword [esi + 0x40]
jb 0x42ad0d
lea eax, [ebp - 4]
push eax
push dword [esi + 0x34]
push dword [esi + 0x3c]
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x42acfd
push ebx
push dword [esi + 0x1c]
call fcn.0042a7e6
mov eax, dword [ebp - 4]
cmp eax, ebx
mov dword [esi + 0x40], eax
je 0x42ad33
mov eax, dword [esi + 0x3c]
mov dword [esi + 0x38], ebx
mov cl, byte [eax]
cmp cl, 0xd
je 0x42ad17
mov byte [edi], cl
inc edi
inc dword [esi + 0x38]
mov cl, byte [eax]
inc eax
cmp cl, 0xa
je 0x42ad27
dec dword [ebp + 0xc]
jne 0x42acd5
mov eax, dword [ebp + 8]
mov byte [edi], bl
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, edi
sub eax, dword [ebp + 8]
neg eax
sbb eax, eax
and eax, dword [ebp + 8]
jmp 0x42ad2a

Function at 0x42afc0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x42faf0
call fcn.0040fb84
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00422c1b
xor edi, edi
lea ecx, [esi + 0x24]
mov dword [ebp - 4], edi
mov dword [esi], vtable.CInternetFile.0
call fcn.00402a3a
mov ebx, dword [ebp + 0x10]
push dword [ebx + 0xc]
mov ecx, 0x444004
push dword [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0042a672
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.004036ca
mov eax, dword [ebx + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x10]
push eax
mov ecx, ebx
call fcn.00406596
push eax
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
call fcn.00403683
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.004028a6
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x18], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x42b15a
Capabilities:
Connect to http server

Disassembly:
mov eax, 0x42fb0d
call fcn.0040fb84
push ecx
push esi
push edi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
mov dword [ebp - 0x10], esi
push edi
call fcn.0042b11c
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00402a3a
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 4], eax
jne 0x42b1c3
push eax
push dword [esi + 8]
call fcn.0042a7e6
jmp 0x42b1d1
push dword [esi + 0xc]
mov ecx, 0x444004
push eax
call fcn.0042a672
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x42bcf0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x440404]
xor eax, dword [ebp + 4]
cmp dword [ebp + 0xc], 0x800
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
jne 0x42bd4d
push 0x4333ac
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004106de
leave
ret
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x42bd1c
jmp 0x42bd40