joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46dca0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x46dcd8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46dcb9
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46dcc8
or bl, 4
test esi, 0x20000000
je 0x46dcd3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4743c0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4743d2
add esp, 0xfffffff0
call fcn.00404064
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00427f34
mov eax, dword [0x4e98f0]
mov dword [eax + 4], ebx
mov dword [eax], 0x474764
mov eax, dword [0x4e9904]
mov dword [eax + 4], ebx
mov dword [eax], 0x474770
mov eax, ebx
call fcn.0047477c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41c83c]
call fcn.00403cd0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41c83c]
call fcn.00403cd0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41c83c]
call fcn.00403cd0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41c83c]
call fcn.00403cd0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41c83c]
call fcn.00403cd0
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, 0x470b98
push eax
push 0
push 0
mov eax, dword [0x4e9be4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4299a8]
call fcn.0042b140
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4299a8]
call fcn.0042b140
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4299a8]
call fcn.0042b140
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00474be4
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x474ac0
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x474ac0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x474ac0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x47450f
call fcn.004040bc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4748a4
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 0x474a4f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x474a30
mov dl, 1
mov eax, dword [0x41cea0]
call fcn.00403cd0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404bf4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x474a1f
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.00462594
test al, al
je 0x474a12
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, 0x474a60
lea eax, [ebp - 0x254]
call fcn.0040aa1c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x474a12
xor eax, eax
push ebp
push 0x474a0b
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 0x474a98
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4749f4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404e64
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 0x4749f4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404e64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474a12
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x474915
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0042181c
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 0x474a56
lea eax, [ebp - 0x260]
call fcn.00404bf4
ret

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

Disassembly:
push ecx
mov eax, dword [0x52bc04]
cmp byte [eax + 0xa5], 0
jne 0x4753f5
cmp dword [0x52bc1c], 0
jne 0x4753b6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x475340
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x52bc1c], eax
cmp dword [0x52bc18], 0
jne 0x4753d1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x52bc18], eax
cmp dword [0x52bc20], 0
jne 0x4753f5
push esp
push 0
push 0
push 0x4752e4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x52bc20], eax
pop edx
ret
Function at 0x47552c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x475543
add esp, 0xfffffff0
call fcn.00404064
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00427f34
mov eax, dword [0x4e9bc4]
cmp word [eax + 2], 0
jne 0x47556b
mov eax, dword [0x4e9bc4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00476cac
mov eax, dword [0x4e9d30]
cmp word [eax + 2], 0
jne 0x475585
mov eax, dword [0x4e9d30]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00476ea4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41c83c]
call fcn.00403cd0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41c83c]
call fcn.00403cd0
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 [0x42a488]
call fcn.00431a3c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x47570c
mov eax, dword [0x4e99e0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00431e0c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x477454
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4e99e0]
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.0040e960
test eax, eax
je 0x47567a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040a3fc
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040e988
test eax, eax
je 0x47568e
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.00404e64
mov eax, dword [0x4e9750]
cmp byte [eax], 0
jne 0x4756c2
mov eax, ebx
call fcn.00475834
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.00477630
mov eax, ebx
call fcn.00477ff4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x475702
call fcn.004040bc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x475ab4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x52bc04]
cmp dword [eax + 0x30], 0
je 0x475b5e
cmp dword [ebx + 0x94], 0
jne 0x475b58
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x475a44
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x475b58
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 0x475b1e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x475b58
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.0041f1a0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x475b2d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4766c0
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 0x4766f5
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.00404ce4
jmp 0x476702
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404c48
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x47780c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x47784d
mov eax, esi
call fcn.0045db18
test al, al
je 0x47784d
mov eax, dword [ebx + 0x84]
call fcn.0045d814
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x47784d
push 0
mov eax, dword [ebx + 0x84]
call fcn.0045d814
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x47da34
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x4e9cec]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x47da48
Capabilities:
Hide graphical window

Disassembly:
push 9
mov eax, dword [0x4e9cec]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [0x4e9cec]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_SetForegroundWindow
mov eax, dword [0x4e9cec]
mov eax, dword [eax]
cmp byte [eax + 0x5b], 0
jne 0x47da9d
mov eax, dword [0x4e9cec]
mov eax, dword [eax]
mov byte [eax + 0x5b], 1
mov eax, dword [0x4e9cec]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x47da9d
mov edx, dword [0x4e9cec]
mov dl, 1
call fcn.00470078
ret
Function at 0x490284
Capabilities:
Set socket configuration

Disassembly:
push ebx
add esp, 0xfffffff8
mov dword [esp + 4], ecx
mov dword [esp], edx
mov ebx, eax
mov eax, dword [0x4e6774]
push eax
lea eax, [esp + 4]
push eax
push 0x1005
push 0xffff
push ebx
call sub.wsock32.dll_setsockopt
mov eax, dword [0x4e6774]
push eax
lea eax, [esp + 4]
push eax
push 0x1006
push 0xffff
push ebx
call sub.wsock32.dll_setsockopt
mov eax, dword [0x4e6774]
push eax
lea eax, [esp + 8]
push eax
push 0x1002
push 0xffff
push ebx
call sub.wsock32.dll_setsockopt
mov eax, dword [0x4e6774]
push eax
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push ebx
call sub.wsock32.dll_setsockopt
pop ecx
pop edx
pop ebx
ret

Function at 0x4904f0
Capabilities:
Get socket status

Disassembly:
add esp, 0xfffffefc
mov dword [esp], 1
mov dword [esp + 4], eax
push 0x52bccc
push 0
push 0
lea eax, [esp + 0xc]
push eax
push 0
call sub.wsock32.dll_select
test eax, eax
setg al
add esp, 0x104
ret

Function at 0x490594
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [ebp + 0xc]
push ebx
lea ebx, [ebp - 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
push ebx
push ecx
push edx
push eax
call sub.wsock32.dll_sendto
mov ebx, eax
mov eax, ebx
call fcn.004901d0
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x49062c
Capabilities:
Get socket status

Disassembly:
push esi
push edi
add esp, 0xfffffef4
mov esi, ecx
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
test dl, dl
je 0x49065e
push esp
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
call sub.wsock32.dll_select
jmp 0x49066f
push esp
push 0
lea eax, [esp + 0x10]
push eax
push 0
push 0
call sub.wsock32.dll_select
add esp, 0x10c
pop edi
pop esi
ret

Function at 0x4906a4
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebx
add esp, 0xffffffec
mov ebx, eax
mov dword [esp], 0x10
push esp
lea eax, [esp + 8]
push eax
push ebx
call sub.wsock32.dll_getsockname
test eax, eax
jne 0x4906d0
mov ax, word [esp + 6]
call fcn.00490cc8
movzx eax, ax
jmp 0x4906d2
xor eax, eax
add esp, 0x14
pop ebx
ret

Function at 0x4906d8
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebx
push esi
add esp, 0xffffffec
mov esi, edx
mov ebx, eax
mov dword [esp], 0x10
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x10
call fcn.00403478
push esp
lea eax, [esp + 8]
push eax
push ebx
call sub.wsock32.dll_getsockname
mov eax, dword [esp + 8]
call fcn.00490cd0
mov edx, eax
mov eax, esi
call fcn.00404dec
add esp, 0x14
pop esi
pop ebx
ret
Function at 0x4afe44
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x4afe69
cmp dword [esp + 4], 5
jb 0x4afe69
mov al, 1
jmp 0x4afe6b
xor eax, eax
add esp, 0x94
ret
Function at 0x4c3a34
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov edi, dword [0x4e9cec]
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
jmp 0x4c3a61
mov eax, dword [edi]
cmp byte [eax + 0x9c], 0
jne 0x4c3a6c
mov eax, dword [edi]
call fcn.00476a00
push 0xa
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
cmp esi, eax
ja 0x4c3a48
pop edi
pop esi
pop ebx
ret

Function at 0x4c7128
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
mov byte [ebp - 1], 0
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4c71df
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.004050b4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x4c716a
call fcn.0040463c
jmp 0x4c71e6
mov eax, ebx
call fcn.00402adc
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, esi
call fcn.004050b4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
jne 0x4c7193
call fcn.0040463c
jmp 0x4c71e6
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4c71f0
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
jne 0x4c71b4
call fcn.0040463c
jmp 0x4c71e6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov dword [edi], eax
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c71e6
mov eax, dword [ebp - 8]
call fcn.00402afc
ret
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c7d1c
Capabilities:
Suspend thread

Disassembly:
mov byte [eax + 0xd], 1
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
ret

Function at 0x4c7d2c
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jne 0x4c7d41
mov byte [ebx + 0xd], 0
pop ebx
ret

Function at 0x4c7e44
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov ebx, eax
push 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_TerminateThread
mov eax, ebx
call fcn.004c7db0
mov esi, eax
mov eax, ebx
call fcn.00403d00
mov eax, esi
pop esi
pop ebx
ret
Function at 0x4c8324
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe2c
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c83c4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1d4]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor ebx, ebx
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 0x4c83ae
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x4c8387
push dword [edi]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 4]
call fcn.00404dec
inc ebx
mov edi, dword [esi + ebx*4]
test edi, edi
jne 0x4c8375
call sub.wsock32.dll_WSACleanup
cmp dword [ebp - 4], 0
je 0x4c83a8
mov eax, dword [ebp - 4]
mov edx, 0x4c83dc
call fcn.00405000
jne 0x4c83ac
xor ebx, ebx
jmp 0x4c83ae
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c83cb
lea eax, [ebp - 4]
call fcn.00404bf4
ret

Function at 0x4c83e8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffffff0
lea eax, [esp + 0xc]
push eax
push 0x4c8454
push 0x80000002
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
jne 0x4c8445
mov dword [esp], 4
push esp
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x4c8484
mov eax, dword [esp + 0x20]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4c8432
cmp byte [esp + 4], 1
sete bl
jmp 0x4c8439
call fcn.004c8324
mov ebx, eax
mov eax, dword [esp + 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4c844c
call fcn.004c8324
mov ebx, eax
mov eax, ebx
add esp, 0x10
pop ebx
ret

Function at 0x4c887c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004050a4
xor eax, eax
push ebp
push 0x4c893d
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, 0x4c8954
call fcn.004051f8
test eax, eax
jne 0x4c88c4
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x4c8960
call fcn.00404f00
test bl, bl
je 0x4c8903
lea edx, [ebp - 8]
mov eax, 0x4c8970
call fcn.004c84fc
cmp dword [ebp - 8], 0
je 0x4c8903
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.004050b4
push eax
mov eax, dword [ebp - 8]
call fcn.004050b4
push eax
push 0x4c8978
call sub.user32.dll_GetDesktopWindow
push eax
call sub.shell32.dll_ShellExecuteA
jmp 0x4c8922
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004050b4
push eax
push 0x4c8978
call sub.user32.dll_GetDesktopWindow
push eax
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c8944
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404c18
ret
Function at 0x4c8980
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
xor edx, edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4c8a36
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x106]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0x106]
call fcn.0040a5ac
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.0040e770
mov eax, dword [ebx]
call fcn.004c8a44
test al, al
jne 0x4c8a18
lea edx, [ebp - 0x114]
mov eax, dword [0x4e9cec]
mov eax, dword [eax]
call fcn.004771bc
mov eax, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
call fcn.0040a15c
mov eax, dword [ebp - 0x110]
mov edx, ebx
call fcn.0040e770
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c8a3d
lea eax, [ebp - 0x114]
mov edx, 3
call fcn.00404c18
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004050b4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4c8a5d
test al, 0x10
jne 0x4c8a61
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4c9b8c
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov esi, eax
xor ebx, ebx
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
mov eax, esi
call fcn.004050b4
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x4c9c46
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push esi
call sub.kernel32.dll_GetFileTime
fld qword [ebp + 0x18]
fcomp dword [0x4c9c50]
fnstsw ax
sahf
je 0x4c9bf0
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
lea eax, [ebp - 8]
call fcn.004c9b38
fld qword [ebp + 8]
fcomp dword [0x4c9c50]
fnstsw ax
sahf
je 0x4c9c0c
push dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [ebp - 0x10]
call fcn.004c9b38
fld qword [ebp + 0x10]
fcomp dword [0x4c9c50]
fnstsw ax
sahf
je 0x4c9c28
push dword [ebp + 0x14]
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
call fcn.004c9b38
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push esi
call sub.kernel32.dll_SetFileTime
cmp eax, 1
sbb ebx, ebx
inc ebx
push esi
call sub.kernel32.dll_CloseHandle_1
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x4c9c90
Capabilities:
Get file size

Disassembly:
push ebx
add esp, 0xfffffff4
mov ebx, eax
mov dword [esp], 0xffffffff
mov dword [esp + 4], 0xffffffff
push 0
push 0x80
push 3
push 0
push 3
push 0
mov eax, ebx
call fcn.004050b4
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4c9ceb
lea eax, [esp + 8]
push eax
push ebx
call sub.kernel32.dll_GetFileSize_1
mov edx, eax
mov eax, dword [esp + 8]
call fcn.004c9c54
mov dword [esp], eax
mov dword [esp + 4], edx
push ebx
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 0xc
pop ebx
ret
Function at 0x4c9cf8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, eax
mov byte [ebp - 1], 0
cmp dword [ebp + 8], 0
je 0x4c9d7b
push ecx
push edx
push edi
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x4c9d7b
push ebx
push edi
call sub.kernel32.dll_LoadResource
mov esi, eax
test esi, esi
je 0x4c9d7b
push esi
call sub.kernel32.dll_LockResource
mov dword [ebp - 8], eax
push esi
call sub.kernel32.dll_FreeResource
cmp dword [ebp - 8], 0
je 0x4c9d7b
push ebx
push edi
call sub.kernel32.dll_SizeofResource
test eax, eax
je 0x4c9d7b
xor edx, edx
push ebp
push 0x4c9d71
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp - 8]
mov ecx, eax
mov eax, dword [ebp + 8]
call fcn.00421b48
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c9d7b
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x4c9e78
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push ecx
mov byte [esp], dl
mov esi, eax
xor ebx, ebx
test byte [esp], 1
je 0x4c9e8b
add ebx, 0x20
test byte [esp], 2
je 0x4c9e94
add ebx, 2
test byte [esp], 4
je 0x4c9e9b
inc ebx
test byte [esp], 8
je 0x4c9ea4
add ebx, 4
test byte [esp], 0x10
je 0x4c9eb0
add ebx, 0x100
test byte [esp], 0x20
je 0x4c9ebc
add ebx, 0x1000
push ebx
mov eax, esi
call fcn.004050b4
push eax
call sub.kernel32.dll_SetFileAttributesA
cmp eax, 1
sbb eax, eax
inc eax
pop edx
pop esi
pop ebx
ret