joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f535
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x46f64d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46f64d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004b77b4
mov esi, eax
test esi, esi
je 0x46f64d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x46f64d
mov ecx, esi
call fcn.0046f4a0
cmp edi, eax
jge 0x46f64d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x46f5d3
mov dword [esp + 0x34], 1
jmp 0x46f62e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x46f64d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0046ea10
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x473620
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x473686
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x473686
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x473667
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x473a10
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x473a48
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x474670
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4746b9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x474b30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c5590
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004746e0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00474760
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00474760
lea ecx, [esi + 0xc]
call fcn.004b5cd5
lea ecx, [esi + 0x10]
call fcn.004b5cd5
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00475d00
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00475d00
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00475d00
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004b5d4a
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004b5d4a
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x47cc60
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x47ccac
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x47ccac
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x47cc96
push eax
call ebp
test ax, ax
jl 0x47cca4
inc esi
add edi, 4
cmp esi, 6
jb 0x47cc88
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.0047c960
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x480ab0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x480b10
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x480b10
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x480b10
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x480b10
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x480b20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x484e90
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x635ed8
push 0x4a67f4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
rdtsc
mov esi, eax
mov edi, edx
call ebx
rdtsc
pop ebx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xffffffff
xor esi, esi
mov edi, dword [ebp - 0x20]
push 1
push esi
push esi
mov eax, dword [ebp - 0x28]
push eax
call fcn.004a48e0
sub eax, esi
sbb edx, edi
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sbb edx, esi
mov ecx, dword [ebp - 0x24]
add eax, ecx
adc edx, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x485040
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x9c
push eax
call esi
test eax, eax
jne 0x485081
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push ecx
call esi
test eax, eax
je 0x4850ee
cmp dword [esp + 0x1c], 2
jne 0x4850ee
cmp dword [esp + 0x10], 5
jne 0x4850ee
cmp dword [esp + 0x14], 1
jne 0x4850ee
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4850d8
push str.IsWow64Process
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4850c9
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
jmp 0x4850d1
mov dword [esp + 8], 0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 8]
test eax, eax
je 0x4850ee
pop edi
mov eax, 1
pop esi
add esp, 0xa0
ret
pop edi
xor eax, eax
pop esi
add esp, 0xa0
ret
Function at 0x48f170
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call fcn.004955f0
mov ebp, dword [esp + 0x220]
mov eax, dword [esp + 0x21c]
push ebp
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edi, eax
cmp edi, 0x20
ja 0x48f269
lea ecx, [esp + 0x10]
push ecx
push str..htm
push closesocket
mov ecx, esi
call fcn.0048f280
test eax, eax
jne 0x48f269
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push closesocket
mov ecx, esi
call fcn.0048f280
test eax, eax
jne 0x48f269
lea edx, [esp + 0x10]
push 0x65ad74
push edx
call fcn.004a5ab0
mov esi, eax
add esp, 8
test esi, esi
jne 0x48f23a
lea eax, [esp + 0x10]
push 0x65ad70
push eax
call fcn.004a5ab0
mov esi, eax
add esp, 8
test esi, esi
jne 0x48f23a
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x48f23d
mov byte [esi], 0
push 0x65a538
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8

Function at 0x48f280
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 0x48f2e2
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
Function at 0x495530
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4c6b88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x118]
test eax, eax
jne 0x4955e0
mov eax, dword [0x65dec8]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.004b612e
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.004b617d
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.004b60da
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4955c7
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x4955c7
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x118], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.004b5d4a
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4986e0
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c7010
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x498887
mov ecx, dword [0x65dec8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x4987dc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.00497400
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.004b5e37
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.004b5d4a
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x65a538
call fcn.004b5db8
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.004977c0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.004b5e37
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.004b5d4a
lea ecx, [esp + 0xc]
call fcn.004b6212
mov ecx, dword [esp + 0xc]
push 0x65af74
push ecx
call fcn.004a4914
add esp, 8
test eax, eax
je 0x498804
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x49873d
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.004b5d4a
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.004b5d4a
jmp 0x49888b
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.00498480
test eax, eax
push 0
je 0x49886f
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.00496b20
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x498855
cmp eax, 0x64
jg 0x498843
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4987e0
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4987e0
cmp eax, 0x64
jge 0x4987dc
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4987e0
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.00496b20
mov esi, eax
jmp 0x4987e0
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x498895
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x4a0a70
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x65b854]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4a0a83
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4a0ac4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x65b8fc]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4a0af6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4a0afa
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4a0aeb
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4a0b18
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4a0b1c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4a0b0d
xor ecx, ecx
mov eax, 0x65b864
xor ebx, ebx
mov bl, byte [ecx + 0x65b90c]
cmp byte [esp + ebx + 0x14], 0
je 0x4a0b47
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x65b924]
cmp byte [esp + ebx + 0x14], 0
je 0x4a0b5e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x4a0b2e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4a0ab7
lea edx, [esp + 0x84]
push edx
call fcn.004a0ba0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4b8158
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b8190
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004b61a5
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004b617d
jmp 0x4b819c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4b984a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4b988c
call fcn.004bf97a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b988c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b9883
xor eax, eax
jmp 0x4b9894
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b989a
pop edi
pop esi
pop ebx
ret 4

Function at 0x4bfeaa
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4bfed8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4bfef6
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004bfe10
jmp 0x4bfef6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4bfef6
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004bfe10
test edi, edi
mov eax, edi
jne 0x4bfee0
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431004]
jne 0x40100a
repz ret
jmp fcn.004019f7

Function at 0x404bcb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x431004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00402b5c
and dword [ebp - 0x14], 0
cmp dword [0x433278], 0
mov dword [ebp - 0x18], eax
jne 0x404c7e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x404d26
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x404d26
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x433278], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x43327c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x433280], eax
call edi
push eax
call esi
mov dword [0x433288], eax
test eax, eax
je 0x404c7e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x433284], eax
mov eax, dword [0x433284]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404cd7
cmp dword [0x433288], ecx
je 0x404cd7
push eax
call esi
push dword [0x433288]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404cd7
test ebx, ebx
je 0x404cd7
call edi
test eax, eax
je 0x404cce
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x404cce
test byte [ebp - 8], 1
jne 0x404cd7
or dword [ebp + 0x10], 0x200000
jmp 0x404d0a
mov eax, dword [0x43327c]
cmp eax, dword [ebp - 0x18]
je 0x404d0a
push eax
call esi
test eax, eax
je 0x404d0a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x404d0a
mov eax, dword [0x433280]
cmp eax, dword [ebp - 0x18]
je 0x404d0a
push eax
call esi
test eax, eax
je 0x404d0a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x433278]
call esi
test eax, eax
je 0x404d26
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x404d28
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x42d5e9
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x40
push dword [0x434b2c]
push dword [0x434978]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
leave
ret
Function at 0x42d678
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x431004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x80c], eax
cmp ebx, 0x19f
jne 0x42d6a4
push 0
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push edi
xor edi, edi
test ebx, ebx
jle 0x42d6ec
push esi
and dword [ebp - 0x808], 0
lea esi, [ebp - 0x808]
call fcn.0042d66d
mov eax, dword [ebp - 0x80c]
mov cl, byte [ebp - 0x808]
xor byte [eax + edi], cl
cmp ebx, 0xf
jne 0x42d6e6
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
inc edi
cmp edi, ebx
jl 0x42d6ac
pop esi
pop edi
cmp ebx, 0x2d
jne 0x42d703
or dword [0x434c64], 0xffffffff
mov dword [0x434c60], 0xa62e7790
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
leave
ret
Function at 0x1002712
Capabilities:
Query environment variable

Disassembly:
push 0x60
push 0x10012e8
call fcn.010036bc
mov edi, 0x94
mov eax, edi
call fcn.01003820
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x1007910], ecx
mov eax, dword [esi + 4]
mov dword [0x100791c], eax
mov edx, dword [esi + 8]
mov dword [0x1007920], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x1007914], esi
cmp ecx, 2
je 0x100272d
or esi, 0x8000
mov dword [0x1007914], esi
shl eax, 8
add eax, edx
mov dword [0x1007918], eax
cmp word [0x1000000], 0x5a4d
jne 0x100276a
mov eax, dword [0x100003c]
cmp dword [eax + 0x1000000], 0x4550
jne 0x100276a
movzx ecx, word [eax + 0x1000018]
cmp ecx, 0x10b
je 0x1002783
cmp ecx, 0x20b
je 0x1002770
and dword [ebp - 0x1c], 0
jmp 0x100279a
cmp dword [eax + 0x1000084], 0xe
jbe 0x100276a
xor ecx, ecx
cmp dword [eax + 0x10000f8], ecx
jmp 0x1002794
cmp dword [eax + 0x1000074], 0xe
jbe 0x100276a
xor ecx, ecx
cmp dword [eax + 0x10000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
push 1
call fcn.0100365f
pop ecx
test eax, eax
jne 0x10027ae
push 0x1c
call fcn.0100269f
pop ecx
call fcn.010035d1
test eax, eax
jne 0x10027bf
push 0x10
call fcn.0100269f
pop ecx
and dword [ebp - 4], 0
call fcn.0100331b
test eax, eax
jge 0x10027d4
push 0x1b
call fcn.01002670
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1008114], eax
call fcn.010031ee
mov dword [0x1007900], eax
call fcn.01003145
test eax, eax
jge 0x10027fa
push 8
call fcn.01002670
pop ecx
call fcn.01002eeb
test eax, eax
jge 0x100280b
push 9
call fcn.01002670
pop ecx
call fcn.0100298f
mov dword [ebp - 0x28], eax
test eax, eax
je 0x100281e
push eax
call fcn.01002670
pop ecx
and dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.01002e7d
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x1002840
movzx eax, word [ebp - 0x40]
jmp 0x1002843
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x1000000
call fcn.01002046
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x1002864
push esi
call fcn.01002a80
call fcn.01002ab8
jmp 0x1002896
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x7c]
call fcn.010036f7
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push 0
push dword [ebp + 8]
xor ebx, ebx
call fcn.010029df
pop ecx
pop ecx
pop ebx
pop ebp
ret