joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407867
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x100
lea ebp, [esp - 4]
mov eax, dword [0x47e150]
xor eax, ebp
mov dword [ebp + 0x100], eax
push 0x48
mov eax, 0x45db64
call fcn.00441309
mov eax, dword [ebp + 0x114]
mov ecx, dword [ebp + 0x10c]
mov esi, dword [ebp + 0x110]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x118]
xor ebx, ebx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], ebx
call fcn.004035c2
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push dword [ebp - 0x18]
xor edi, edi
inc edi
push esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x407990
push 0xfe
lea eax, [ebp + 1]
push ebx
push eax
mov byte [ebp], bl
call fcn.00440c20
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x30]
push eax
push ebx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x34], 0xff
mov dword [ebp - 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], 4
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x407987
push dword [ebp - 0x1c]
call fcn.004432ea
pop ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
push eax
push ebx
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x40797e
cmp dword [ebp - 0x28], edi
jne 0x40797e
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
call fcn.00403c66
push dword [ebp - 0x18]
call fcn.00440e53
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x100]
xor ecx, ebp
call fcn.004412c7
add ebp, 0x104
leave
ret

Function at 0x408612
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x47e150]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x110], 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.00440c20
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x10c]
push eax
mov ecx, edi
call fcn.00403d16
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004412c7
leave
ret
Function at 0x4087ce
Capabilities:
Check os version

Disassembly:
push ebp
sub esp, 0x94
lea ebp, [esp - 4]
mov eax, dword [0x47e150]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 8
mov eax, 0x45de31
call fcn.004412d6
mov ebx, dword [ebp + 0xa0]
xor edi, edi
push str.Unknown
mov ecx, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], edi
call fcn.00403d16
push 0x94
lea eax, [ebp]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 1
call fcn.00440c20
add esp, 0xc
lea eax, [ebp]
push eax
mov dword [ebp], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp + 4], 5
jne 0x40885c
cmp dword [ebp + 8], 1
jne 0x40884f
push str.WinXP
jmp 0x408879
cmp dword [ebp + 8], 2
jne 0x408880
push str.WinXP_64
jmp 0x408879
cmp dword [ebp + 4], 6
jne 0x408880
cmp dword [ebp + 8], edi
jne 0x40886e
push str.WinVista
jmp 0x408879
cmp dword [ebp + 8], 1
jne 0x408880
push str.Win7
mov ecx, ebx
call fcn.00403b86
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.004412c7
add ebp, 0x98
leave
ret
Function at 0x4138a9
Capabilities:
Create directory
Download url
Receive data

Disassembly:
push 0xc
mov eax, 0x45f97d
call fcn.004412d6
mov esi, ecx
call fcn.0041f46a
push eax
lea ecx, [ebp - 0x10]
call fcn.00413cf5
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0xc]
xor ebx, ebx
cmp dword [ecx - 0xc], ebx
mov dword [ebp - 4], ebx
jg 0x413917
push dword [eax + 4]
lea eax, [ebp - 0x18]
push eax
call fcn.00413713
mov eax, dword [eax]
mov ecx, dword [esi + 8]
mov ecx, dword [ecx + 8]
push 0x5c
push eax
push ecx
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.004137df
add esp, 0x18
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00403b39
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040127f
jmp 0x41393a
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
push 0x5c
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004137df
add esp, 0x10
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00403b39
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.0040127f
mov eax, dword [esi + 8]
push ebx
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [esi + 8]
mov eax, dword [eax + 4]
push esi
mov esi, dword [ebp - 0x10]
push ebx
push esi
push eax
push ebx
call sub.urlmon.dll_URLDownloadToFileA
cmp eax, ebx
jge 0x41397d
mov dword [ebp - 0x18], eax
push 0x473bb4
lea eax, [ebp - 0x18]
push eax
call fcn.00440e07
lea ecx, [esi - 0x10]
call fcn.0040127f
call fcn.004413ae
ret
Function at 0x41425d
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x47e150]
xor eax, ebp
mov dword [ebp + 0x8c], eax
and dword [ebp - 0x80], 0
push esi
mov esi, dword [ebp + 0x98]
push 0x105
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.00440c20
lea eax, [ebp - 0x80]
push eax
call fcn.00408612
add esp, 0x10
lea ecx, [ebp - 0x7c]
push ecx
push 0
push 0x465560
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ecx, dword [ebp - 0x80]
add ecx, 0xfffffff0
call fcn.0040127f
lea eax, [ebp - 0x7c]
push eax
mov ecx, esi
call fcn.00403d16
mov ecx, dword [ebp + 0x8c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004412c7
add ebp, 0x90
leave
ret

Function at 0x4152a6
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x100
lea ebp, [esp - 4]
mov eax, dword [0x47e150]
xor eax, ebp
mov dword [ebp + 0x100], eax
push 0x44
mov eax, 0x45fd7e
call fcn.004412d6
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0xd], 0
call fcn.00403d16
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
mov ebx, 0x20019
push ebx
push 0
push dword [ebp - 0x1c]
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
call esi
test eax, eax
jne 0x4153cc
push 0xfe
push eax
mov byte [ebp], al
lea eax, [ebp + 1]
push eax
call fcn.00440c20
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x30], 0xff
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [ebp - 0x20], 1
jbe 0x415363
mov byte [ebp - 0xd], 0
jmp 0x4153c3
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v1.1.4322
lea ecx, [ebp - 0x14]
call fcn.00403d16
lea eax, [ebp - 0x24]
push eax
push ebx
xor ebx, ebx
push ebx
push dword [ebp - 0x14]
push edi
call esi
test eax, eax
jne 0x4153b8
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
push 0x465750
push dword [ebp - 0x24]
mov dword [ebp - 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4153af
cmp dword [ebp - 0x28], 1
je 0x4153af
mov byte [ebp - 0xd], 1
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040127f
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0040127f
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x100]
xor ecx, ebp
call fcn.004412c7
add ebp, 0x104
leave
ret
Function at 0x419d8d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
push 0x44
xor esi, esi
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.00440c20
add esp, 0xc
push dword [ebp + 0xc]
lea eax, [ebp - 0x44]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x44], 0x44
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
setne al
pop esi
leave
ret 8

Function at 0x41b0e9
Capabilities:
Create process on windows

Disassembly:
push 0x20
mov eax, 0x460aa4
call fcn.004412d6
xor esi, esi
push esi
push str.http:
lea ecx, [ebp + 8]
mov dword [ebp - 4], esi
call fcn.00405e2d
cmp eax, 0xffffffff
jle 0x41b125
push 1
push esi
push esi
push dword [ebp + 8]
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x41b239
call fcn.00403ff5
call fcn.0041f46a
push eax
lea ecx, [ebp - 0x14]
call fcn.00413cf5
mov byte [ebp - 4], 1
call fcn.0041f46a
push eax
lea ecx, [ebp - 0x18]
call fcn.00413cf5
mov esi, 0x4662d8
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00403c66
lea eax, [ebp - 0x1c]
push eax
call fcn.00403d5a
pop ecx
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004073cb
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.0040127f
push esi
lea ecx, [ebp - 0x14]
call fcn.00403c66
lea eax, [ebp + 8]
push eax
mov esi, 0x464e2c
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00407367
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.004073cb
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.0040127f
push dword [0x47f6dc]
lea eax, [ebp - 0x18]
push 0x465d48
push eax
call fcn.00407081
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00407367
add esp, 0x18
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.004073cb
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.0040127f
lea ecx, [ebp - 0xd]
call fcn.0042de2e
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
push eax
push esi
lea ecx, [ebp - 0xd]
mov byte [ebp - 4], 6
call fcn.00419d8d
lea ecx, [ebp - 0xd]
mov byte [ebp - 4], 2
call fcn.00419d8c
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040127f
lea ecx, [esi - 0x10]
call fcn.0040127f
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040127f
call fcn.004413ae
ret 4
Function at 0x41dd26
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x47e150]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x41ddc4
push 0x466c54
push 4
push eax
call fcn.00444947
push eax
call fcn.00402ff5
add esp, 0x10
push ebx
push edi
call fcn.004448fe
mov edi, dword [eax]
call fcn.004448fe
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00443891
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.004448fe
cmp dword [eax], ebx
je 0x41dddb
call fcn.004448fe
push dword [eax]
call fcn.0041d6e9
pop ecx
jmp 0x41dde2
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x41dd6c
jmp 0x41de69
call fcn.004448fe
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
je 0x41de65
cmp dword [ebp - 0x11c], esi
jae 0x41de65
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x15c]
push ebx
push eax
mov dword [ebp - 0x160], 0x40
call fcn.00440c20
add esp, 0xc
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x41de54
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x41de54
lea ecx, [ebp - 0x160]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x41de54
push ebx
push ebx
push esi
jmp 0x41de5d
push ebx
push ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x41de67
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004412c7
leave
ret

Function at 0x421a95
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x46117a
call fcn.004412d6
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x421aba
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x421b00
lea ecx, [ebp - 0x10]
call fcn.004035c2
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041d4ae
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040127f
mov eax, esi
call fcn.004413ae
ret 8
Function at 0x423a8b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x423ad3
call fcn.0041f2fc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x423ad3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x423b16
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x423aff
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x423aff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x423b13
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x424e36
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x424e5a
cmp dword [edi + 0x54], 0
jne 0x424e5a
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041f2fc
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00424df7
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x42b63e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x42b685
call fcn.0041f2fc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42b685
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x42b6a1
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0042b1b8
mov esi, eax
test edi, edi
je 0x42b69f
test ebx, ebx
je 0x42b69f
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x42cb2e
Capabilities:
Create http request

Disassembly:
mov edi, edi
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]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x42cb59
call fcn.0041f2fc
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]
mov dword [esi + 8], eax
test eax, eax
jne 0x42cb7c
push eax
push dword [esi + 4]
call fcn.0042cab4
push esi
push eax
mov ecx, 0x48d5c4
call fcn.0042c728
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x42d3e1
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x4619b2
call fcn.004412d6
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0042d3a1
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.004035c2
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]
mov dword [esi + 4], eax
test eax, eax
jne 0x42d447
push eax
push dword [esi + 8]
call fcn.0042cab4
push dword [esi + 0xc]
mov ecx, 0x48d5c4
push eax
call fcn.0042c728
mov eax, esi
call fcn.004413ae
ret 0x18

Function at 0x4412c7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47e150]
jne 0x4412d1
repz ret
jmp fcn.0044b4bc
Function at 0x45733e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00449494
and dword [ebp - 4], 0
cmp dword [0x48e394], 0
mov ebx, eax
jne 0x4573ef
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4574a0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x46c6c4
push edi
call esi
test eax, eax
je 0x4574a0
push eax
call fcn.00449422
mov dword [esp], 0x46c6b4
push edi
mov dword [0x48e394], eax
call esi
push eax
call fcn.00449422
mov dword [esp], 0x46c6a0
push edi
mov dword [0x48e398], eax
call esi
push eax
call fcn.00449422
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x48e39c], eax
call esi
push eax
call fcn.00449422
pop ecx
mov dword [0x48e3a4], eax
test eax, eax
je 0x4573ef
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00449422
pop ecx
mov dword [0x48e3a0], eax
mov eax, dword [0x48e3a0]
cmp eax, ebx
je 0x457447
cmp dword [0x48e3a4], ebx
je 0x457447
push eax
call fcn.0044949d
push dword [0x48e3a4]
mov esi, eax
call fcn.0044949d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x457447
test edi, edi
je 0x457447
call esi
test eax, eax
je 0x45743e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x45743e
test byte [ebp - 0xc], 1
jne 0x457447
or dword [ebp + 0x10], 0x200000
jmp 0x457480
mov eax, dword [0x48e398]
cmp eax, ebx
je 0x457480
push eax
call fcn.0044949d
pop ecx
test eax, eax
je 0x457480
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x457480
mov eax, dword [0x48e39c]
cmp eax, ebx
je 0x457480
push eax
call fcn.0044949d
pop ecx
test eax, eax
je 0x457480
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x48e394]
call fcn.0044949d
pop ecx
test eax, eax
je 0x4574a0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4574a2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret

Function at 0xc36bbd
Capabilities:
Encode data using xor

Disassembly:
xor al, al
mov al, byte [edi]
xor al, bl
mov byte [edi], al
inc edi
cmp edi, ecx
jne fcn.00c36bbd
ret
Function at 0x40d6f0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp dbg.mark_section_writable

Function at 0x40d750
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x4950a0]
test esi, esi
jle 0x40d83d
mov edi, dword [0x4950a4]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x40d784
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x40d836
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x40d770
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x40d87a
lea ebx, [esi + esi*2]
mov esi, dword [0x4950a4]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x4950a4]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40d85a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x40d82f
sub eax, 0x40
and eax, 0xffffffbf
je 0x40d82f
mov eax, dword [esp + 0x20]
add ebx, dword [0x4950a4]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x40d844
add dword [0x4950a0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x40d78e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
mov eax, dword [0x4950a4]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
Function at 0x40dd40
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x495448
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x495440]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x40dd95
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40dd8e
test esi, esi
je 0x40dd8e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40dd70
mov dword [esp], 0x495448
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40dfb0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x40dfe8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x40dfde
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40dfea
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x40dfd0
xor eax, eax
pop ebx
pop esi
ret