joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46ce30
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x46ce63
push esi
call fcn.0047b1e0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x46ce5c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x46cee9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x46ced2
mov eax, dword [esi + 8]
test eax, eax
je 0x46ce87
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x46cece
cmp eax, 2
je 0x46ced2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x46ce7a
cmp eax, 3
je 0x46cead
cmp eax, 1
jne 0x46ce7a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x46ce7a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x46ce7a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0046cf10
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x46cef8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0046cf10
add esp, 4
pop esi
ret

Function at 0x46d780
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x46d7a1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x46d7a1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x46d7a1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4884d0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x488573
test eax, eax
jbe 0x488573
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x488573
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x48851e
xor esi, esi
jmp 0x488524
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x48854f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004225d0
add esi, eax
push esi
mov ebx, esi
call fcn.004225d0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x488530
pop ebp
test edi, edi
pop edi
jne 0x488573
test ebx, ebx
je 0x488573
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004bcfb0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x488695
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 0x4887ad
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4887ad
mov eax, dword [esi + 0x3c]
push eax
call fcn.004cf19f
mov esi, eax
test esi, esi
je 0x4887ad
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 0x4887ad
mov ecx, esi
call fcn.00488620
cmp edi, eax
jge 0x4887ad
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 0x488733
mov dword [esp + 0x34], 1
jmp 0x48878e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4887ad
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.00487c20
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 0x494480
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call fcn.0049a890
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 0x494579
lea ecx, [esp + 0x10]
push ecx
push str..htm
push accept
mov ecx, esi
call fcn.0042cbb0
test eax, eax
jne 0x494579
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 accept
mov ecx, esi
call fcn.0042cbb0
test eax, eax
jne 0x494579
lea edx, [esp + 0x10]
push 0x512cc0
push edx
call fcn.004bd7c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x49454a
lea eax, [esp + 0x10]
push 0x512cbc
push eax
call fcn.004bd7c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x49454a
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x49454d
mov byte [esi], 0
push 0x512484
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 0x49a7d0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4ddae8
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 0x49a880
mov eax, dword [0x519118]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.004cdb1c
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.004cdb6b
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.004cdac8
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x49a867
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x49a867
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.004cd738
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x49d980
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ddf70
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 0x49db27
mov ecx, dword [0x519118]
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 0x49da7c
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.0049c6a0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.004cd825
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.004cd738
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x512484
call fcn.004cd7a6
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.0049ca60
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.004cd825
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.004cd738
lea ecx, [esp + 0xc]
call fcn.004cdc00
mov ecx, dword [esp + 0xc]
push 0x512ec4
push ecx
call fcn.004bc674
add esp, 8
test eax, eax
je 0x49daa4
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x49d9dd
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.004cd738
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.004cd738
jmp 0x49db2b
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.0049d720
test eax, eax
push 0
je 0x49db0f
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.0049bdc0
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x49daf5
cmp eax, 0x64
jg 0x49dae3
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x49da80
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x49da80
cmp eax, 0x64
jge 0x49da7c
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x49da80
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.0049bdc0
mov esi, eax
jmp 0x49da80
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x49db35
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 0x4a7970
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5451d0]
xor edx, edx
cmp eax, edx
jne 0x4a7996
xor eax, eax
mov byte [eax + 0x5450d0], al
inc eax
cmp eax, 0x100
jl 0x4a797e
mov dword [0x5451d0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5450d0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4a7a27
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4a79fa
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4a79c8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4a7a30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4a7a83
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4a7a6a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ae420
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4de2be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004aed40
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x4f34f4
call fcn.004cd479
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4ae4b3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004cd479
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4ae4ac
push 0
mov ecx, eax
call fcn.004a55a0
mov dword [esi + 0xc], eax
jmp 0x4ae4b5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4ae4b5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4cfb43
Capabilities:
Get graphical window text

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

Function at 0x4d1234
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 0x4d1276
call fcn.004d7182
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4d1276
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4d126d
xor eax, eax
jmp 0x4d127e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004d1284
pop edi
pop esi
pop ebx
ret 4

Function at 0x4d76b2
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 0x4d76e0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d76fe
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d7618
jmp 0x4d76fe
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d76fe
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d7618
test edi, edi
mov eax, edi
jne 0x4d76e8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x45d3d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x435015
lea edi, [esi - 0x34015]
push edi
or ebp, 0xffffffff
jmp 0x45d3f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x45d3f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45d3e8
mov eax, 1
add ebx, ebx
jne 0x45d40b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x45d400
jne 0x45d41c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45d400
xor ecx, ecx
sub eax, 3
jb 0x45d430
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45d4a2
mov ebp, eax
add ebx, ebx
jne 0x45d43b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x45d448
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x45d46c
inc ecx
add ebx, ebx
jne 0x45d458
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x45d44d
jne 0x45d469
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45d44d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x45d48c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45d47d
jmp 0x45d3ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x45d48c
add edi, ecx
jmp 0x45d3ee
pop esi
mov edi, esi
mov ecx, 0x72f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x45d4aa
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x45d4af
lea edi, [esi + 0x5b000]
mov eax, dword [edi]
or eax, eax
je 0x45d517
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5d25c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5d2c8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x45d4d5
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5d2d0]
or eax, eax
je 0x45d511
mov dword [ebx], eax
add ebx, 4
jmp 0x45d4f2
call dword [esi + 0x5d2cc]
mov ebp, dword [esi + 0x5d2d4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x45d54b
sub esp, 0xffffff80
jmp 0x42c0b0
Function at 0x401000
Capabilities:
Accept command line arguments

Disassembly:
enter 0x44, 0
lea edx, [0x403138]
add edi, eax
push edx
push esi
push edi
push ecx
push eax
call fcn.004017a8
pop edx
push edx
call sub.KERNEL32.dll_GetCommandLineA
pop edx
push edx
lea ecx, [edx - 0x138]
push ecx
call sub.KERNEL32.dll_GetModuleHandleA
test eax, eax
jne 0x40101f
pop edx
add esp, 0x44
pop ebp
ret 8

Function at 0x40109c
Capabilities:
Resume thread

Disassembly:
pushal
xor eax, eax
sub eax, 0xffff9394
push eax
sub eax, 0x9bd20909
push eax
sub eax, 0xeaca00f8
push eax
mov eax, esp
push 0
push 0
push eax
call sub.KERNEL32.dll_LoadLibraryExA
add esp, 0x10
cmp eax, 1
jl 0x4010d6
mov cx, 0x4550
add eax, dword [eax + 0x3c]
xor cx, word [eax]
jne 0x4010d6
jmp 0x4014d4
ret
enter 0x48, 0
lea eax, [0x403058]
adc dword [ebp - 0x38], edi
push eax
push edx
push ebx
call fcn.00401488
pop eax
push eax
mov edi, 0xfffffffe
push edi
call sub.KERNEL32.dll_ResumeThread
pop eax
mov edx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edx
push dword [eax - 0x18]
pop ecx
call ecx
add esp, 0x48
pop ebp
ret

Function at 0x401194
Capabilities:
Accept command line arguments

Disassembly:
enter 0x38, 0
mov esi, 0x40318c
and eax, dword [esi - 0x148]
push ebp
mov eax, esp
push eax
push 0x26
xor dword [esp], 0x66
push 0x385
add dword [esp], 0x5e3
mov edi, 0x51761429
push edi
sub dword [esp], 0x5135e211
mov edx, 0x1ec5c349
mov edx, dword [edx - 0x1e85a321]
call edx
pop ebx
lea ebx, [0x403218]
mov dword [esi - 0x14c], ebx
mov eax, ebx
sub eax, 0xca
sub ebx, ebx
add ebx, 0x4020f9
xor edx, edx
cmp edx, 0x568
je 0x401226
sub edx, 0xfffffffc
mov edi, dword [ebx]
add ebx, 3
inc ebx
push edi
pop dword [eax + 0xca]
add eax, 4
sub dword [ebp - 0x38], 0xffffffd4
xor dword [eax + 0xc6], 0xa81ee5e1
sub dword [eax + 0xc6], 0x4eac6723
jmp 0x4011f1
call sub.KERNEL32.dll_GetCommandLineA
add esp, 0x38
pop ebp
ret 0xc

Function at 0x40130c
Capabilities:
Resume thread

Disassembly:
enter 0x24, 0
lea ebx, [esi - 0x1a8]
cmp ebx, 0x553c
je 0x40130f
add byte [ebp - 0x1a762], cl
inc dword [ecx + 0x553cfb]
add byte [ecx + esi*8 - 0x41], dh
add byte [eax], al
add byte [eax], al
mov edi, 0
push edi
call sub.KERNEL32.dll_HeapDestroy
push ebx
push edx
push ecx
call fcn.00401a20
pop ebx
push 0xfffffffffffffffe
call sub.KERNEL32.dll_ResumeThread
add esp, 0x24
pop ebp
ret 8

Function at 0x4013c0
Capabilities:
Resume thread

Disassembly:
enter 0x48, 0
lea ecx, [0x40317c]
xor edx, dword [ebp - 0x34]
push ecx
lea edx, [ecx - 0x17c]
push edx
call sub.KERNEL32.dll_GetModuleHandleA
test eax, eax
jne 0x4013ce
pop ecx
push ecx
push dword [ecx + 0x128]
push dword [ecx + 0xc8]
push dword [ecx + 0x118]
call fcn.00401728
pop ecx
push ecx
mov ecx, 0xfffffffe
push ecx
call sub.KERNEL32.dll_ResumeThread
pop ecx
add esp, 0x48
pop ebp
ret 0x10

Function at 0x40141c
Capabilities:
Accept command line arguments

Disassembly:
enter 0x54, 0
lea ecx, [eax - 0x12c]
sbb ebx, dword [ebp - 0x40]
push ecx
push dword [ecx + 0x1c4]
push dword [ecx + 0x1ac]
push edx
call fcn.0040106c
pop ecx
push ecx
call sub.KERNEL32.dll_GetCommandLineA
pop ecx
push ecx
push 0
call sub.KERNEL32.dll_GetTapeStatus
pop ecx
add esp, 0x54
pop ebp
ret 0xc
Function at 0x40189c
Capabilities:
Accept command line arguments

Disassembly:
enter 0x58, 0
mov edx, 0x40314c
and ecx, dword [edx + 0x98]
push edx
push eax
push dword [edx + 0x124]
push dword [edx + 0xa4]
call fcn.00401454
pop edx
push edx
call sub.KERNEL32.dll_GetCommandLineA
pop edx
push edx
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
pop edx
add esp, 0x58
pop ebp
ret 0xc
Function at 0x402e1c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push 0
mov eax, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push eax
push dword [ebp + 0x14]
call sub.kernel32.dll_WriteFile
test eax, eax
setne al
movsx eax, al
push eax
call fcn.00402cbc
mov esi, eax
cmp dword [0x407e68], 0xffffffff
je 0x402e7d
mov eax, dword [ebp + 0x14]
cmp eax, dword [0x407e64]
jne 0x402e7d
lea eax, [ebp - 0x1c]
push eax
push dword [0x407e64]
call sub.kernel32.dll_GetConsoleScreenBufferInfo
movsx eax, word [ebp - 0x18]
mov dword [0x407e70], eax
movsx eax, word [ebp - 0x16]
mov dword [0x407e74], eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x402f94
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38c
push esi
push edi
mov edi, 3
push 0x408994
call fcn.00406074
mov esi, dword [eax]
push 0x408994
call fcn.00406074
mov dword [eax], 0x40
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x38c]
push eax
push 0
call fcn.004058dc
call fcn.00405758
lea eax, [ebp - 0x150]
push eax
push 1
call fcn.004057e4
call fcn.00404420
test eax, eax
jne 0x4030d5
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x190]
push eax
push 0x40
push 0
call fcn.004058bc
call fcn.00404420
test eax, eax
jne 0x40304b
cmp word [ebp - 0x190], 0x5a4d
jne 0x40304b
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x154]
call fcn.00405800
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x190]
push eax
push 2
push 0
call fcn.004058bc
jmp 0x403055
mov dword [ebp - 0x154], 0
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x154]
call fcn.00405800
call fcn.00404420
test eax, eax
jne 0x4030b9
cmp word [ebp - 0x190], 0x4550
jne 0x4030b9
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x288]
push eax
push 0xf8
push 0
call fcn.004058bc
call fcn.00404420
test eax, eax
jne 0x4030b9
cmp dword [ebp - 0x288], 0x4550
jne 0x4030b9
cmp word [ebp - 0x22c], 3
jne 0x4030b9
mov edi, 2
lea eax, [ebp - 0x150]
push eax
call fcn.00405830
push 0x40898c
call fcn.00406074
mov dword [eax], 0
push 0x408994
call fcn.00406074
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40312c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
call sub.kernel32.dll_CreateThread
mov esi, eax
push esi
call sub.kernel32.dll_CloseHandle
test esi, esi
setne al
movsx eax, al
push eax
call fcn.00402cbc
mov esi, eax
mov eax, esi
pop esi
pop ebp
ret 0x18