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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46320f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4631f0
mov dl, 1
mov eax, dword [0x419a10]
call fcn.00403940
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404780
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4631df
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.00450fbc
test al, al
je 0x4631d2
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x463220
lea eax, [ebp - 0x254]
call fcn.0040a5a4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4631d2
xor eax, eax
push ebp
push 0x4631cb
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x463258
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4631b4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004049f0
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4631b4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004049f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4631d2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4630d5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041e254
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x463216
lea eax, [ebp - 0x260]
call fcn.00404780
ret

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

Disassembly:
push ecx
mov eax, dword [0x4c8bec]
cmp byte [eax + 0xa5], 0
jne 0x463bfd
cmp dword [0x4c8c04], 0
jne 0x463bbe
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x463b48
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4c8c04], eax
cmp dword [0x4c8c00], 0
jne 0x463bd9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4c8c00], eax
cmp dword [0x4c8c08], 0
jne 0x463bfd
push esp
push 0
push 0
push 0x463aec
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4c8c08], eax
pop edx
ret
Function at 0x463d24
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x463d3b
add esp, 0xfffffff0
call fcn.00403c94
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004227e0
mov eax, dword [0x4c6f80]
cmp word [eax + 2], 0
jne 0x463d63
mov eax, dword [0x4c6f80]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00465414
mov eax, dword [0x4c7130]
cmp word [eax + 2], 0
jne 0x463d7d
mov eax, dword [0x4c7130]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046560c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4193ac]
call fcn.00403940
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4193ac]
call fcn.00403940
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x424d3c]
call fcn.0042c628
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x463f04
mov eax, dword [0x4c6d58]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042c9f8
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x465bbc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4c6d58]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040e044
test eax, eax
je 0x463e72
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409f84
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040e06c
test eax, eax
je 0x463e86
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004049f0
mov eax, dword [0x4c6a3c]
cmp byte [eax], 0
jne 0x463eba
mov eax, ebx
call fcn.0046402c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00465d98
mov eax, ebx
call fcn.0046675c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x463efa
call fcn.00403cec
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4642ac
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4c8bec]
cmp dword [eax + 0x30], 0
je 0x464356
cmp dword [ebx + 0x94], 0
jne 0x464350
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46423c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x464350
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_GetWindowLongA
test al, 8
je 0x464316
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x464350
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041baf8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x464325
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x464eb8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x464eed
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404870
jmp 0x464efa
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004047d4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x465f74
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x465fb5
mov eax, esi
call fcn.0044c5a4
test al, al
je 0x465fb5
mov eax, dword [ebx + 0x84]
call fcn.0044c2a0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x465fb5
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044c2a0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4699a8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov byte [ebp - 9], 0
lea eax, [ebp - 0x14]
push eax
mov eax, edi
call fcn.00404c40
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jbe 0x469a50
mov eax, ebx
call fcn.004027e8
mov esi, eax
push esi
push ebx
push 0
mov eax, edi
call fcn.00404c40
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x469a49
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x469a5c
push esi
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x469a49
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
call fcn.00407920
mov edx, dword [ebp - 4]
mov word [edx], ax
mov eax, dword [ebp - 0x18]
mov ax, word [eax + 8]
mov edx, dword [ebp - 8]
mov word [edx], ax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
call fcn.00407920
mov edx, dword [ebp + 0xc]
mov word [edx], ax
mov eax, dword [ebp - 0x18]
mov ax, word [eax + 0xc]
mov edx, dword [ebp + 8]
mov word [edx], ax
mov byte [ebp - 9], 1
mov eax, esi
call fcn.00402808
mov al, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x469a60
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe28
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x1d8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x469b14
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1d4]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea eax, [ebp - 0x44]
xor ecx, ecx
mov edx, 0x40
call fcn.00403238
push 0x40
lea eax, [ebp - 0x44]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x44]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x469afb
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x469aef
push dword [edi]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x1d8]
call fcn.00404978
mov edx, dword [ebp - 0x1d8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc ebx
mov edi, dword [esi + ebx*4]
test edi, edi
jne 0x469acc
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x469b1b
lea eax, [ebp - 0x1d8]
call fcn.00404780
ret

Function at 0x469b34
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe5c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x1a4], ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404c30
xor eax, eax
push ebp
push 0x469c55
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, 0x469c6c
call fcn.004047d4
mov eax, dword [ebp - 4]
mov edx, 0x469c80
call fcn.00404b8c
je 0x469c2f
mov edx, dword [ebp - 4]
mov eax, 0x469c90
call fcn.00404d84
test eax, eax
jg 0x469c2f
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404818
mov eax, dword [ebp - 8]
call fcn.00404c40
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x1a0]
push eax
mov dl, 2
mov al, 2
call fcn.00407900
push eax
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x469bd4
mov byte [ebp - 0xd], 1
push 2
push 4
lea eax, [ebp - 0xc]
push eax
call sub.wsock32.dll_gethostbyaddr
mov ebx, eax
test ebx, ebx
je 0x469c24
mov eax, esi
mov edx, dword [ebx]
call fcn.00404978
mov ebx, dword [ebx + 4]
jmp 0x469c1e
push dword [esi]
push 0x469c9c
lea eax, [ebp - 0x1a4]
mov edx, edi
call fcn.00404978
push dword [ebp - 0x1a4]
mov eax, esi
mov edx, 3
call fcn.00404b00
add ebx, 4
mov edi, dword [ebx]
test edi, edi
jne 0x469bf5
cmp byte [ebp - 0xd], 1
jne 0x469c2f
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x469c5c
lea eax, [ebp - 0x1a4]
call fcn.00404780
lea eax, [ebp - 8]
mov edx, 2
call fcn.004047a4
ret
Function at 0x469fc0
Capabilities:
Get hostname
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe68
push ebx
push esi
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x46a073
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x198]
push eax
mov dl, 2
mov al, 2
call fcn.00407900
push eax
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x469fff
mov bl, 1
lea eax, [ebp - 4]
mov edx, 0xff
call fcn.00404dcc
push 0xff
mov eax, dword [ebp - 4]
call fcn.00404c40
push eax
call sub.wsock32.dll_gethostname
test eax, eax
jne 0x46a044
lea eax, [ebp - 8]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x46a088
call fcn.00404d84
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404ca0
cmp bl, 1
jne 0x46a04e
call sub.wsock32.dll_WSACleanup
mov eax, esi
mov edx, dword [ebp - 8]
call fcn.004047d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a07a
lea eax, [ebp - 8]
mov edx, 2
call fcn.004047a4
ret

Function at 0x46a08c
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe68
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404c30
xor eax, eax
push ebp
push 0x46a12d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, 0x46a144
call fcn.004047d4
lea eax, [ebp - 0x198]
push eax
mov dl, 2
mov al, 2
call fcn.00407900
push eax
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x46a0da
mov bl, 1
mov eax, dword [ebp - 4]
call fcn.00404c40
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x46a10d
xor edx, edx
mov dword [ebp - 8], edx
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
lea eax, [ebp - 8]
mov ecx, 4
call fcn.0040792c
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.0046a1a8
cmp bl, 1
jne 0x46a117
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a134
lea eax, [ebp - 4]
call fcn.00404780
ret
Function at 0x47f8e8
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x47f8f0
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x47faf1
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x47fb08
mov eax, esi
call fcn.00473d54
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.004047d4
lea ecx, [ebp - 0x10]
mov edx, 0x47fb1c
mov eax, esi
call fcn.00473d54
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x34]
call fcn.004047d4
lea ecx, [ebp - 0x14]
mov edx, 0x47fb34
mov eax, esi
call fcn.00473d54
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.004047d4
lea ecx, [ebp - 0x18]
mov edx, 0x47fb50
mov eax, esi
call fcn.00473d54
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.004047d4
lea ecx, [ebp - 0x1c]
mov edx, 0x47fb6c
mov eax, esi
call fcn.00473d54
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x30]
call fcn.004047d4
push 0xffffffffffffffff
push 0xffffffffffffffff
lea ecx, [ebp - 0x24]
mov edx, 0x47fb84
mov eax, esi
call fcn.00473d54
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408ec0
mov eax, dword [ebp - 0x20]
call fcn.00409484
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], edx
cmp dword [ebx + 0x1c], 0
jne 0x47f9cb
cmp dword [ebx + 0x18], 0
setae al
jmp 0x47f9ce
setge al
mov byte [ebx + 0x5c], al
lea ecx, [ebp - 0x28]
mov edx, 0x47fb9c
mov eax, esi
call fcn.00473d54
mov eax, dword [ebp - 0x28]
call fcn.004702c0
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x47fbac
mov eax, esi
call fcn.00473d54
mov eax, dword [ebp - 0x2c]
call fcn.004702c0
fstp qword [ebx + 0x50]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x47fbc4
mov eax, esi
call fcn.00473d54
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00409408
inc eax
je 0x47fa94
lea ecx, [ebp - 0x34]
mov edx, 0x47fbc4
mov eax, esi
call fcn.00473d54
mov eax, dword [ebp - 0x34]
call fcn.004093cc
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040af30
fstp qword [ebp - 0x3c]
wait
call fcn.0040b330
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x48]
wait
jmp 0x47faaf
lea ecx, [ebp - 0x40]
mov edx, 0x47fbc4
mov eax, esi
call fcn.00473d54
mov eax, dword [ebp - 0x40]
call fcn.004702c0
fstp qword [ebx + 0x48]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x47fbd4
mov eax, esi
call fcn.00473d54
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x58]
call fcn.004047d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47faf8
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004047a4
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.004047a4
ret
Function at 0x489e00
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x489e09
mov eax, dword [ebp - 4]
add esp, 0xfffffdec
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x10218], edx
mov dword [ebp - 0x1020c], edx
mov edi, eax
xor eax, eax
push ebp
push 0x489fbb
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0x200
push 0
push 0
push 0
push 0
push 0x489fcc
call sub.wininet.dll_InternetOpenA
mov esi, eax
push 0
push 0
push 0
push 0
mov eax, edi
call fcn.00404c40
push eax
push esi
call sub.wininet.dll_InternetOpenUrlA
mov ebx, eax
test ebx, ebx
je 0x489f5f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10208]
push eax
push 0x13
push ebx
call sub.wininet.dll_HttpQueryInfoA
lea eax, [ebp - 0x1020c]
lea edx, [ebp - 0x10208]
mov ecx, 0x200
call fcn.004049f0
mov eax, dword [ebp - 0x1020c]
mov edx, 0x489fd8
call fcn.00404b8c
je 0x489f12
push ebx
call sub.wininet.dll_InternetCloseHandle
push esi
call sub.wininet.dll_InternetCloseHandle
lea eax, [ebp - 0x10218]
lea edx, [ebp - 0x10208]
mov ecx, 0x200
call fcn.004049f0
mov eax, dword [ebp - 0x10218]
mov dword [ebp - 0x10214], eax
mov byte [ebp - 0x10210], 0xb
lea eax, [ebp - 0x10214]
push eax
push 0
mov ecx, 0x489fe4
mov dl, 1
mov eax, dword [0x418f6c]
call fcn.0040d1b0
call fcn.004040fc
jmp 0x489f91
mov dl, 1
mov eax, dword [0x419d24]
call fcn.00403940
mov edi, eax
lea eax, [ebp - 4]
push eax
push 0x10000
lea eax, [ebp - 0x10008]
push eax
push ebx
call sub.wininet.dll_InternetReadFile
lea edx, [ebp - 0x10008]
mov ecx, dword [ebp - 4]
mov eax, edi
call fcn.0041e568
cmp dword [ebp - 4], 0
jne 0x489f20
push 0
push 0
mov eax, edi
call fcn.0041e324
push ebx
call sub.wininet.dll_InternetCloseHandle
jmp 0x489f91
push esi
call sub.wininet.dll_InternetCloseHandle
mov dword [ebp - 0x10214], edi
mov byte [ebp - 0x10210], 0xb
lea eax, [ebp - 0x10214]
push eax
push 0
mov ecx, 0x489ff4
mov dl, 1
mov eax, dword [0x418f6c]
call fcn.0040d1b0
call fcn.004040fc
push esi
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489fc2
lea eax, [ebp - 0x10218]
call fcn.00404780
lea eax, [ebp - 0x1020c]
call fcn.00404780
ret
Function at 0x48a3ac
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404c30
xor eax, eax
push ebp
push 0x48a49b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
mov eax, 0x48a4b4
call fcn.00404d84
test eax, eax
jg 0x48a47d
xor eax, eax
push ebp
push 0x48a440
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 8]
call fcn.00404c40
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x48a436
push 0
push ebx
call sub.kernel32.dll_GetFileSize_1
mov dword [ebp - 0xc], eax
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48a47d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a4a2
lea eax, [ebp - 0x10]
call fcn.00404780
lea eax, [ebp - 8]
call fcn.00404780
ret
Function at 0x48c6d0
Capabilities:
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb0
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [esp + 4]
xor edx, edx
mov dword [eax], edx
lea eax, [esp + 0x10]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebp, dword [esp + 0x14]
call sub.kernel32.dll_GetCurrentProcessId
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
xor edi, edi
mov ebx, dword [esp + 0xc]
and ebx, 0xffff0000
mov eax, edi
shl eax, 0x10
sub ebx, eax
mov eax, ebp
not eax
inc eax
and eax, ebx
mov ebx, eax
push 4
push 0x3000
push ebp
push ebx
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
test esi, esi
je 0x48c749
cmp esi, ebx
je 0x48c749
push 0x8000
push 0
push esi
call sub.kernel32.dll_VirtualFree_1
inc edi
jmp 0x48c7c2
test esi, esi
jne 0x48c7cb
push 0x1c
lea eax, [esp + 0x38]
push eax
push ebx
call sub.kernel32.dll_VirtualQuery_1
cmp dword [esp + 0x40], 0x118
jb 0x48c7bf
mov eax, dword [esp + 0x48]
and eax, 4
cmp eax, 4
jne 0x48c7bf
mov eax, dword [esp + 8]
xor edx, edx
xor eax, 0x23456789
xor edx, 0xabcdef01
cmp edx, dword [ebx + 4]
jne 0x48c7bf
cmp eax, dword [ebx]
jne 0x48c7bf
mov eax, dword [esp + 8]
xor edx, edx
xor eax, 0x10fedcba
xor edx, 0x98765432
cmp edx, dword [ebx + 0x114]
jne 0x48c7bf
cmp eax, dword [ebx + 0x110]
jne 0x48c7bf
lea eax, [ebx + 8]
mov edx, dword [esp]
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.0040317c
je 0x48c7cb
inc edi
xor ebx, ebx
cmp edi, 0x14
jle 0x48c707
xor eax, eax
test esi, esi
je 0x48c831
cmp esi, ebx
jne 0x48c84d
mov eax, dword [esp + 8]
xor edx, edx
xor eax, 0x23456789
xor edx, 0xabcdef01
mov dword [ebx], eax
mov dword [ebx + 4], edx
lea eax, [ebx + 8]
mov edx, dword [esp]
call fcn.004030d0
mov eax, dword [esp + 8]
xor edx, edx
xor eax, 0x10fedcba
xor edx, 0x98765432
mov dword [ebx + 0x110], eax
mov dword [ebx + 0x114], edx
mov dword [ebx + 0x108], 1
lea eax, [ebx + 0x118]
mov edx, dword [esp + 4]
mov dword [edx], 1
jmp 0x48c84d
test ebx, ebx
je 0x48c84d
inc dword [ebx + 0x108]
lea eax, [ebx + 0x118]
mov edx, dword [esp + 4]
mov ecx, dword [ebx + 0x108]
mov dword [edx], ecx
add esp, 0x50
pop ebp
pop edi
pop esi
pop ebx
ret