joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e374
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4b3900]
cmp byte [eax + 0xc], 0
je 0x44e4e1
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44e4da
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4b757c], 0
jne 0x44e3c8
push 0x44e4e8
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x44e4f0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b757c], eax
cmp dword [0x4af6ac], 0
jne 0x44e4c3
push 0x44e500
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4af6ac], eax
cmp dword [0x4af6ac], 0
je 0x44e4c3
push 0x44e50c
mov eax, dword [0x4af6ac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b7580], eax
push 0x44e51c
mov eax, dword [0x4af6ac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b7584], eax
push 0x44e530
mov eax, dword [0x4af6ac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b7588], eax
push 0x44e548
mov eax, dword [0x4af6ac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b758c], eax
push 0x44e560
mov eax, dword [0x4af6ac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b7590], eax
push 0x44e574
mov eax, dword [0x4af6ac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b7594], eax
push 0x44e58c
mov eax, dword [0x4af6ac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b7598], eax
push 0x44e5a4
mov eax, dword [0x4af6ac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b759c], eax
push 0x44e5c0
mov eax, dword [0x4af6ac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b75a0], eax
push 0x44e5cc
mov eax, dword [0x4af6ac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b75a4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e4e1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x453e84
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x453ed8]
test si, 4
je 0x453e99
or bl, 1
test si, 8
je 0x453ea3
or bl, 4
test si, 1
je 0x453ead
or bl, 8
test si, 2
je 0x453eb7
or bl, 0x10
test si, 0x10
je 0x453ec1
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x453ed0
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x453edc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x453f18]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x453ef6
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x453f05
or bl, 4
test esi, 0x20000000
je 0x453f10
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x45b5cc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45b5de
add esp, 0xfffffff0
call fcn.00403d28
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041cbf4
mov eax, dword [0x4b3378]
mov dword [eax + 4], ebx
mov dword [eax], 0x45b970
mov eax, dword [0x4b338c]
mov dword [eax + 4], ebx
mov dword [eax], 0x45b97c
mov eax, ebx
call fcn.0045b988
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41389c]
call fcn.004039d4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41389c]
call fcn.004039d4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41389c]
call fcn.004039d4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41389c]
call fcn.004039d4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41389c]
call fcn.004039d4
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, 0x457420
push eax
push 0
push 0
mov eax, dword [0x4b35d4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x421c24]
call fcn.00423478
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x421c24]
call fcn.00423478
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x421c24]
call fcn.00423478
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045bdb8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45bc88
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45bc88
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45bc88
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45b71b
call fcn.00403d80
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45ba6c
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 0x45bc17
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45bbf8
mov dl, 1
mov eax, dword [0x413e4c]
call fcn.004039d4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404904
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45bbe7
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.0044e6d0
test al, al
je 0x45bbda
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, 0x45bc28
lea eax, [ebp - 0x254]
call fcn.0040a324
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45bbda
xor eax, eax
push ebp
push 0x45bbd3
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 0x45bc60
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45bbbc
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404b74
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 0x45bbbc
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404b74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bbda
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45badd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00418430
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 0x45bc1e
lea eax, [ebp - 0x260]
call fcn.00404904
ret

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

Disassembly:
push ecx
mov eax, dword [0x4b75b4]
cmp byte [eax + 0xad], 0
jne 0x45c601
cmp dword [0x4b75cc], 0
jne 0x45c5c2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45c54c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4b75cc], eax
cmp dword [0x4b75c8], 0
jne 0x45c5dd
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4b75c8], eax
cmp dword [0x4b75d0], 0
jne 0x45c601
push esp
push 0
push 0
push 0x45c4f0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4b75d0], eax
pop edx
ret
Function at 0x45c7d4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45c7eb
add esp, 0xfffffff0
call fcn.00403d28
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041cbf4
mov eax, dword [0x4b35b0]
cmp word [eax + 2], 0
jne 0x45c813
mov eax, dword [0x4b35b0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045e29c
mov eax, dword [0x4b36dc]
cmp word [eax + 2], 0
jne 0x45c82d
mov eax, dword [0x4b36dc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045e4a8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41389c]
call fcn.004039d4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41389c]
call fcn.004039d4
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x41389c]
call fcn.004039d4
mov dword [ebx + 0xb0], 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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x422734]
call fcn.0042a09c
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x45c9e4
mov eax, dword [0x4b3438]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042a470
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45eb98
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4b3438]
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.0040e214
test eax, eax
je 0x45c934
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409940
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040e248
test eax, eax
je 0x45c948
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404b74
mov byte [ebx + 0xd4], 0
push ebx
push 0x45dde4
call fcn.0041dd70
mov dword [ebx + 0xc8], eax
mov eax, dword [0x4b3220]
cmp byte [eax], 0
jne 0x45c999
mov eax, ebx
call fcn.0045cb28
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0045ed74
mov eax, ebx
call fcn.0045f8d4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45c9d9
call fcn.00403d80
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45cda8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4b75b4]
cmp dword [eax + 0x30], 0
je 0x45ce52
cmp dword [ebx + 0x94], 0
jne 0x45ce4c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45cd38
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45ce4c
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 0x45ce12
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45ce4c
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.00415e54
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45ce21
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45db6c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x45dba1
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.004049f4
jmp 0x45dbae
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404958
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45ef58
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45efc6
mov eax, esi
call fcn.0044934c
test al, al
je 0x45efc6
mov eax, dword [ebx + 0x84]
call fcn.00448fac
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45efc6
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45efba
push 0
mov eax, dword [ebx + 0x84]
call fcn.00448fac
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004412c8
jmp 0x45efc6
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0045ed94
pop esi
pop ebx
ret
Function at 0x4902f0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x49031e
mov eax, ebx
call fcn.00490da4
cmp dword [ebx + 0x40], 0
je 0x490317
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x49038f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x490381
cmp dword [ebx + 8], 0
je 0x490340
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x490352
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x490381
cmp dword [ebx + 8], 0
je 0x490333
cmp eax, 3
je 0x490365
dec eax
jne 0x490333
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x490333
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x490333
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4903ad
cmp dword [ebx + 0x14], 0xcc
je 0x4903ad
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004903b8
pop ebx
ret
Function at 0x4a4928
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff84
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x74], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404db8
xor eax, eax
push ebp
push 0x4a4ac7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x1c], 0xc
mov dword [ebp - 0x14], 0xffffffff
xor eax, eax
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
je 0x4a4aa4
mov eax, 0x7d1
call fcn.00402c94
mov ebx, eax
lea eax, [ebp - 0x60]
xor ecx, ecx
mov edx, 0x44
call fcn.00403324
mov dword [ebp - 0x60], 0x44
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x34], 0x101
mov word [ebp - 0x30], 0
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 0x20
push 0xffffffffffffffff
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x74]
mov ecx, dword [ebp - 4]
mov edx, 0x4a4ae0
call fcn.00404c14
mov eax, dword [ebp - 0x74]
call fcn.00404dc8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x4a4a79
push 0x64
mov eax, dword [ebp - 0x70]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov edi, eax
mov eax, dword [0x4b36a0]
mov eax, dword [eax]
call fcn.0045df94
cmp edi, 0x102
je 0x4a49fc
xor eax, eax
mov dword [ebp - 0x10], eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0x7d0
push ebx
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_ReadFile
mov eax, dword [ebp - 0x10]
mov byte [ebx + eax], 0
push ebx
push ebx
call sub.user32.dll_OemToCharA
lea edx, [ebp - 0x78]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x1c]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
mov edx, ebx
call fcn.00404afc
mov edx, dword [ebp - 0x7c]
pop eax
call fcn.00404bd0
mov edx, dword [ebp - 0x78]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x2c]
cmp dword [ebp - 0x10], 0x7d0
jae 0x4a4a1d
mov eax, ebx
call fcn.00402cc8
mov eax, dword [ebp - 0x70]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x6c]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a4ace
lea eax, [ebp - 0x7c]
mov edx, 3
call fcn.00404928
lea eax, [ebp - 4]
call fcn.00404904
ret
Function at 0x4a4cd4
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a4d4e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xff
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00405050
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404dc8
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x4a4d2c
push ebx
mov ecx, dword [ebp - 8]
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404e28
jmp 0x4a4d38
mov eax, ebx
mov edx, 0x4a4d64
call fcn.00404958
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a4d55
lea eax, [ebp - 4]
call fcn.00404904
ret

Function at 0x4a4d6c
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
mov dword [esp], pe_nt_image_headers32
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4a4d9d
mov eax, ebx
lea edx, [esp + 4]
mov ecx, pe_nt_image_headers32
call fcn.00404b74
jmp 0x4a4da4
mov eax, ebx
call fcn.00404904
add esp, 0x104
pop ebx
ret
Function at 0x4a59d4
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe74
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x188], ebx
mov dword [ebp - 0x18c], ebx
mov dword [ebp - 0x184], ebx
mov dword [ebp - 0x17c], ebx
mov dword [ebp - 0x180], ebx
mov dword [ebp - 0x178], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404db8
mov eax, dword [ebp - 8]
call fcn.00404db8
lea eax, [ebp - 0x170]
mov edx, dword [0x407bfc]
call fcn.004053c0
xor eax, eax
push ebp
push 0x4a5c6f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x171], 0
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040e00c
lea eax, [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.0040499c
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0040e00c
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.0040499c
mov eax, dword [ebp - 4]
call fcn.004093fc
test al, al
je 0x4a5c33
mov eax, dword [ebp - 8]
call fcn.00409420
test al, al
je 0x4a5c33
lea eax, [ebp - 0x178]
mov ecx, 0x4a5c90
mov edx, dword [ebp - 4]
call fcn.00404c14
mov eax, dword [ebp - 0x178]
lea ecx, [ebp - 0x170]
mov edx, 0x3f
call fcn.0040959c
mov esi, eax
xor eax, eax
push ebp
push 0x4a5c2c
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x4a5c13
cmp dword [ebp - 0x15c], 0
je 0x4a5bfe
mov eax, dword [ebp - 0x15c]
mov edx, 0x4a5c9c
call fcn.00404d14
je 0x4a5bfe
mov eax, dword [ebp - 0x15c]
mov edx, 0x4a5ca8
call fcn.00404d14
je 0x4a5bfe
cmp dword [ebp - 0x160], 0x10
jne 0x4a5b65
movzx eax, byte [ebp + 8]
push eax
lea eax, [ebp - 0x17c]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 8]
call fcn.00404c14
mov eax, dword [ebp - 0x17c]
push eax
lea eax, [ebp - 0x180]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 4]
call fcn.00404c14
mov eax, dword [ebp - 0x180]
mov ecx, ebx
pop edx
call fcn.004a59d4
mov byte [ebp - 0x171], al
jmp 0x4a5bea
cmp byte [ebp + 8], 0
jne 0x4a5b8e
lea eax, [ebp - 0x184]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 8]
call fcn.00404c14
mov eax, dword [ebp - 0x184]
call fcn.004093d8
test al, al
jne 0x4a5be3
push 0
lea eax, [ebp - 0x188]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 8]
call fcn.00404c14
mov eax, dword [ebp - 0x188]
call fcn.00404dc8
push eax
lea eax, [ebp - 0x18c]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 4]
call fcn.00404c14
mov eax, dword [ebp - 0x18c]
call fcn.00404dc8
push eax
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x171], al
jmp 0x4a5bea
mov byte [ebp - 0x171], 1
movzx eax, byte [ebp - 0x171]
xor al, 1
test al, bl
je 0x4a5bfe
call fcn.00404324
jmp 0x4a5c33
lea eax, [ebp - 0x170]
call fcn.004095ec
mov esi, eax
test esi, esi
je 0x4a5ad6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5c33
lea eax, [ebp - 0x170]
call fcn.00409610
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5c76
lea eax, [ebp - 0x18c]
mov edx, 6
call fcn.00404928
lea eax, [ebp - 0x170]
mov edx, dword [0x407bfc]
call fcn.00405490
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404928
ret
Function at 0x4a7554
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404db8
xor eax, eax
push ebp
push 0x4a764a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, 0x4a7664
call fcn.0040499c
lea eax, [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov edx, 0x4a7678
call fcn.00404c14
xor ebx, ebx
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00404dc8
push eax
call sub.wininet.dll_InternetOpenA
mov edi, eax
test edi, edi
je 0x4a7627
push 0
push 0x80000000
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404dc8
push eax
push edi
call sub.wininet.dll_InternetOpenUrlA
mov esi, eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0xa
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x13
push esi
call sub.wininet.dll_HttpQueryInfoA
lea ebx, [ebp - 0x28]
lea eax, [ebp - 0x2c]
mov edx, ebx
call fcn.00404afc
mov eax, dword [ebp - 0x2c]
mov edx, 0x4a7684
call fcn.00404d14
sete al
mov ebx, eax
test esi, esi
je 0x4a7621
push esi
call sub.wininet.dll_InternetCloseHandle
push edi
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a7651
lea eax, [ebp - 0x2c]
call fcn.00404904
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404928
ret