joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4495e0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x4495fc
cmp dword [esi + 4], 0
je 0x449629
test byte [ebx + 0x55], 1
jne 0x44961b
mov eax, ebx
call fcn.00448180
test eax, eax
jne 0x44961b
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x449739
mov edx, esi
mov eax, ebx
call fcn.00449104
jmp 0x449739
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x449732
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0044b488
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00445e1c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004495e0
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0044b488
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x449739
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44fe88
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4942f4]
cmp byte [eax + 0xc], 0
je 0x44fff5
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44ffee
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x495b94], 0
jne 0x44fedc
push 0x44fffc
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x450004
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x495b94], eax
cmp dword [0x486d28], 0
jne 0x44ffd7
push 0x450014
call sub.kernel32.dll_LoadLibraryA
mov dword [0x486d28], eax
cmp dword [0x486d28], 0
je 0x44ffd7
push 0x450020
mov eax, dword [0x486d28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x495b98], eax
push 0x450030
mov eax, dword [0x486d28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x495b9c], eax
push 0x450044
mov eax, dword [0x486d28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x495ba0], eax
push 0x45005c
mov eax, dword [0x486d28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x495ba4], eax
push 0x450074
mov eax, dword [0x486d28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x495ba8], eax
push 0x450088
mov eax, dword [0x486d28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x495bac], eax
push 0x4500a0
mov eax, dword [0x486d28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x495bb0], eax
push 0x4500b8
mov eax, dword [0x486d28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x495bb4], eax
push 0x4500d4
mov eax, dword [0x486d28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x495bb8], eax
push 0x4500e0
mov eax, dword [0x486d28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x495bbc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44fff5
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x454354
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404578
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4543a3
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004047e8
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45bb90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45bbe0]
test si, 4
je 0x45bba4
or bl, 1
test si, 8
je 0x45bbae
or bl, 4
test si, 1
je 0x45bbb8
or bl, 8
test si, 2
je 0x45bbc2
or bl, 0x10
test si, 0x10
je 0x45bbcc
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45bbdb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x45bbe4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45bc1c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45bbfd
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45bc0c
or bl, 4
test esi, 0x20000000
je 0x45bc17
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4622c4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4622d6
add esp, 0xfffffff0
call fcn.00403b4c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e164
mov eax, dword [0x493f4c]
mov dword [eax + 4], ebx
mov dword [eax], 0x462668
mov eax, dword [0x493f58]
mov dword [eax + 4], ebx
mov dword [eax], 0x462674
mov eax, ebx
call fcn.00462680
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x416168]
call fcn.004037f8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x416168]
call fcn.004037f8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x416168]
call fcn.004037f8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x416168]
call fcn.004037f8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x416168]
call fcn.004037f8
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x45ea9c
push eax
push 0
push 0
mov eax, dword [0x4940c8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41fbe8]
call fcn.00421420
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41fbe8]
call fcn.00421420
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41fbe8]
call fcn.00421420
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00462aa0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46297c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46297c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46297c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x462413
call fcn.00403ba4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x462760
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 0x46290b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4628ec
mov dl, 1
mov eax, dword [0x416584]
call fcn.004037f8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404578
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4628db
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.004501e8
test al, al
je 0x4628ce
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, 0x46291c
lea eax, [ebp - 0x254]
call fcn.0040958c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4628ce
xor eax, eax
push ebp
push 0x4628c7
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 0x462954
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4628b0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004047e8
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 0x4628b0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004047e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4628ce
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4627d1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041a2c0
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 0x462912
lea eax, [ebp - 0x260]
call fcn.00404578
ret

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

Disassembly:
push ecx
mov eax, dword [0x495be0]
cmp byte [eax + 0xa5], 0
jne 0x4632b1
cmp dword [0x495bf8], 0
jne 0x463272
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4631fc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x495bf8], eax
cmp dword [0x495bf4], 0
jne 0x46328d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x495bf4], eax
cmp dword [0x495bfc], 0
jne 0x4632b1
push esp
push 0
push 0
push 0x4631a0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x495bfc], eax
pop edx
ret
Function at 0x4633a8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4633bf
add esp, 0xfffffff0
call fcn.00403b4c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e164
mov eax, dword [0x4940b4]
cmp word [eax + 2], 0
jne 0x4633e7
mov eax, dword [0x4940b4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00464a98
mov eax, dword [0x49416c]
cmp word [eax + 2], 0
jne 0x463401
mov eax, dword [0x49416c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00464c90
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x416168]
call fcn.004037f8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x416168]
call fcn.004037f8
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 [0x420768]
call fcn.00428438
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x463588
mov eax, dword [0x493fc0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00428808
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x465240
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x493fc0]
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.0040cec0
test eax, eax
je 0x4634f6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408f6c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cee8
test eax, eax
je 0x46350a
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.004047e8
mov eax, dword [0x493e64]
cmp byte [eax], 0
jne 0x46353e
mov eax, ebx
call fcn.004636b0
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.0046541c
mov eax, ebx
call fcn.00465de0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46357e
call fcn.00403ba4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x463930
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x495be0]
cmp dword [eax + 0x30], 0
je 0x4639da
cmp dword [ebx + 0x94], 0
jne 0x4639d4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4638c0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4639d4
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 0x46399a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4639d4
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.00418718
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4639a9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46453c
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 0x464571
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.00404668
jmp 0x46457e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004045cc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4655f8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x465639
mov eax, esi
call fcn.0044b78c
test al, al
je 0x465639
mov eax, dword [ebx + 0x84]
call fcn.0044b488
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x465639
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044b488
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x466490
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x4156e0]
call fcn.00404f38
xor eax, eax
push ebp
push 0x4665d4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x486fac], 0
jne 0x4664e3
mov ecx, dword [0x493e74]
mov dl, 1
mov eax, dword [0x40786c]
call fcn.0040c164
call fcn.00403fb4
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.004030b8
mov eax, ebx
call fcn.00404e08
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4665e4
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405ec4
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404e18
test eax, eax
jle 0x46657b
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x466574
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404800
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004047e8
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004086c4
test eax, eax
jne 0x466574
mov ebx, 0x15
jmp 0x466580
mov ebx, 0x10
jmp 0x466580
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x486fac]
call fcn.004663e8
mov eax, dword [ebp - 8]
call fcn.004663e8
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405edc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4665db
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.0040459c
lea eax, [ebp - 0x10]
mov edx, dword [0x4156e0]
call fcn.00405008
ret

Function at 0x47da60
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffe30
mov ebp, eax
lea eax, [esp + 0x40]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, ebp
call fcn.00404578
push 0x40
lea eax, [esp + 4]
push eax
call sub.wsock32.dll_gethostname
push esp
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x47daba
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x47daae
push dword [edi]
call sub.wsock32.dll_inet_ntoa
mov edx, ebp
call fcn.0040911c
inc ebx
mov edi, dword [esi + ebx*4]
test edi, edi
jne 0x47da9f
call sub.wsock32.dll_WSACleanup
add esp, 0x1d0
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x48290c
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x482a01
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.0047da60
mov eax, dword [ebp - 4]
mov edx, dword [0x495d50]
call fcn.00404984
je 0x4829df
push 0
push 1
push 0x482a10
call sub.wininet.dll_InternetCheckConnectionA
test eax, eax
je 0x4829cd
call fcn.0040a27c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0xc]
mov eax, 0x482a4c
call fcn.0040aef8
push dword [ebp - 0xc]
push 0x482a68
lea eax, [ebp - 0x10]
call fcn.0047da60
push dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004048f8
mov edx, dword [ebp - 8]
mov eax, dword [0x495d1c]
call fcn.00444c98
mov edx, 0x482a70
mov eax, dword [ebx + 0x2f8]
call fcn.0046d880
mov eax, dword [0x49414c]
mov eax, dword [eax]
call fcn.004647ec
mov edx, 0xd4
mov eax, dword [ebx + 0x2f8]
call fcn.0046a178
test ax, ax
jne 0x4829aa
jmp 0x4829e6
mov edx, 0x482adc
mov eax, dword [ebx + 0x2f8]
call fcn.0046d880
jmp 0x4829e6
mov eax, ebx
call fcn.00482760
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482a08
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.0040459c
ret

Function at 0x402360
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x402386
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x40241a
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x4023d5
cmp eax, 0x40
je 0x4023d5
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x402379
cmp eax, 0x40
je 0x402379
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
jmp 0x402379
mov dword [esp + 8], 0x34
mov dword [esp + 4], str..._.._runtime_pseudo_reloc.c
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sym.__assert
lea esi, [esi]
lea edi, [edi]
Function at 0x40db80
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x468e1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0045d936
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40dc02
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045b84d
mov eax, dword [eax]
push 0x4831c0
push eax
call fcn.0044e6b4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045dbc1
test bl, bl
je 0x40dc02
push 0x4831c0
lea ecx, [esp + 0xc]
call fcn.0045df51
push 0x486d34
lea ecx, [esp + 0xc]
call fcn.0045df51
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40dc3e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045dbc1
jmp 0x40dd09
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40dcc2
lea edx, [esp + 0x7c]
push 0x486d30
push edx
call fcn.0044e6b4
add esp, 8
test eax, eax
je 0x40dcc2
lea eax, [esp + 0x7c]
push 0x486d2c
push eax
call fcn.0044e6b4
add esp, 8
test eax, eax
je 0x40dcc2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40dc52
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0045dbc1
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40e500
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40e562
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc