joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48f8d0
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [esp + 8]
push esi
test edx, edx
push edi
je 0x48f96b
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x48f96b
push 0x67d154
push edx
call fcn.004a9210
mov esi, eax
add esp, 8
test esi, esi
je 0x48f96b
push ebx
push ebp
push 2
push 0
push esi
mov bl, 1
call fcn.004a9dbe
push esi
call fcn.004a9cc7
mov ebp, dword [esp + 0x24]
mov edi, eax
push 0
push edi
push ebp
call fcn.0048f580
add esp, 0x1c
test al, al
je 0x48f959
push esi
call fcn.004a98af
mov eax, dword [ebp]
push esi
push edi
push 1
push eax
call fcn.004a95e1
add esp, 0x14
cmp eax, edi
je 0x48f946
xor bl, bl
push esi
mov dword [ebp + 4], eax
call fcn.004a904d
add esp, 4
mov al, bl
pop ebp
pop ebx
pop edi
pop esi
ret
push esi
xor bl, bl
call fcn.004a904d
add esp, 4
mov al, bl
pop ebp
pop ebx
pop edi
pop esi
ret
pop edi
xor al, al
pop esi
ret

Function at 0x491930
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x491977
mov edi, dword [esp + 0x10]
push edi
call fcn.004c022f
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov dword [esi + 0xa8], eax
mov eax, dword [esi + 0xa4]
mov ecx, dword [ecx]
push eax
push edi
push 1
push ecx
call fcn.004a95e1
sub eax, edi
add esp, 0x14
neg eax
sbb eax, eax
pop edi
and eax, 0x21
pop esi
ret 0xc
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x4919ab
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4919ab
mov edx, dword [ecx]
call dword [edx + 0x40]
test al, al
je 0x491995
mov eax, dword [esi + 0x7c]
test eax, eax
jg 0x4919ab
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.00491a70
pop edi
pop esi
ret 0xc
mov ecx, dword [esi + 0x18]
push ebx
mov edx, dword [ecx]
call dword [edx + 0x18]
mov ecx, dword [esi + 0x14]
mov edi, eax
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ebx, eax
cmp ebx, 0x5a
jle 0x4919de
cmp edi, 0x5a
jle 0x4919de
mov ecx, dword [esi + 0x2c]
mov edx, dword [ecx]
call dword [edx + 0x44]
test al, al
je 0x4919de
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, dword [esi + 0x7c]
imul eax, dword [esi + 0x3c]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
and edx, 0x1fff
add eax, edx
mov edi, eax
mov eax, dword [esi + 0x40]
sar edi, 0xd
cmp edi, eax
jbe 0x491a0d
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov al, byte [esp + 0x18]
test al, al
je 0x491a53
cmp ebx, 1
jge 0x491a53
mov ecx, dword [esi + 0x18]
mov edx, edi
shr edx, 1
cmp dword [ecx + 0xc], edx
jae 0x491a53
mov al, byte [esi + 0x1d]
test al, al
jne 0x491a53
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call ebx
mov ecx, dword [esi + 0x18]
cmp dword [ecx + 0xc], edi
jae 0x491a53
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, 0x5a
jg 0x491a53
mov al, byte [esi + 0x1d]
test al, al
je 0x491a33
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.00491a70
pop ebx
pop edi
pop esi
ret 0xc
Function at 0x492c30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, ecx
mov al, byte [ebp + 0x24]
test al, al
jne 0x492c57
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
push ecx
push 1
push edx
call fcn.004a95e1
add esp, 0x10
pop ebp
ret 0xc
push ebx
push esi
mov esi, dword [esp + 0x18]
push edi
push esi
call fcn.004a9cc7
mov ebx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esp + 0x1c]
push esi
push eax
push 1
push ebx
call fcn.004a95e1
mov esi, eax
add esp, 0x14
test esi, esi
jbe 0x492c8b
push esi
push ebx
push edi
mov ecx, ebp
call fcn.00492d60
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x492ca0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x6972f8]
xor edx, edx
cmp eax, edx
jne 0x492cc6
xor eax, eax
mov byte [eax + 0x6971f8], al
inc eax
cmp eax, 0x100
jl 0x492cae
mov dword [0x6972f8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x6971f8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x492d57
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 0x492d2a
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 0x492cf8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x499700
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4cda0e
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.0049a020
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x65780c
call fcn.004c022f
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x499793
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004c022f
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x49978c
push 0
mov ecx, eax
call fcn.004908d0
mov dword [esi + 0xc], eax
jmp 0x499795
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x499795
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 0x4b95c2
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6841bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004ae321
mov dword [ebp - 0x14], eax
cmp dword [0x6a9e14], edi
jne 0x4b96b3
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4b9640
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4b9793
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4b9793
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4b9793
push eax
call ebx
push 0x65f82c
push esi
mov dword [0x6a9e14], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x65f83c
push esi
mov dword [0x6a9e18], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x6a9e1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x6a9e24], eax
test eax, eax
je 0x4b96b0
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x6a9e20], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4b96d8
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4b96cb
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4b96ed
push 4
pop eax
jmp 0x4b9795
cmp dword [ebp - 0x14], edi
je 0x4b96ed
push dword [0x6a9e14]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4b96d2
mov eax, dword [0x6a9e20]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4b974b
cmp dword [0x6a9e24], esi
je 0x4b974b
push eax
call ebx
push dword [0x6a9e24]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4b974b
test eax, eax
je 0x4b974b
call ecx
test eax, eax
je 0x4b9740
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4b9740
test byte [ebp - 8], 1
jne 0x4b974b
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4b977b
mov eax, dword [0x6a9e18]
cmp eax, esi
je 0x4b9778
push eax
call ebx
test eax, eax
je 0x4b9778
call eax
mov edi, eax
test edi, edi
je 0x4b9778
mov eax, dword [0x6a9e1c]
cmp eax, esi
je 0x4b9778
push eax
call ebx
test eax, eax
je 0x4b9778
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x6a9e14]
call ebx
test eax, eax
je 0x4b9793
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4b9795
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b207c
leave
ret
Function at 0x4c28bb
Capabilities:
Get graphical window text

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

Function at 0x4c3fad
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 0x4c3fef
call fcn.004c9a2d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c3fef
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c3fe6
xor eax, eax
jmp 0x4c3ff7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c3ffd
pop edi
pop esi
pop ebx
ret 4
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x4034cc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x4034db
pop dword [ebp - 0x28]
mov eax, 0x8c9e819d
add eax, 0x73a1b33e
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x3735639d
add dword [ebp - 0x38], 0x171ce1ae
mov dword [ebp - 0x34], 0xa2c4ea24
sub dword [ebp - 0x34], 0x70919ddf
mov dword [ebp - 0x30], 0x1c6836
add dword [ebp - 0x30], 0x4c2fdbf8
mov dword [ebp - 0x2c], 0x9f4f720
sub dword [ebp - 0x2c], 0x9f4f720
lea eax, [ebp - 0x38]
push eax
mov eax, 0xce7ad112
sub eax, 0xce3a90be
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x4518ded3
sub dword [ebp - 0x38], 0xd0a6757d
mov dword [ebp - 0x34], 0x8e5e0c23
sub dword [ebp - 0x34], 0x4cf1aaae
mov dword [ebp - 0x30], 0x22e89f79
add dword [ebp - 0x30], 0x4086ccf3
mov dword [ebp - 0x2c], 0xc4b47cc9
add dword [ebp - 0x2c], 0x3b4b8337
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x20fac2d1
add eax, 0xdf457d7f
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x36d90
push 0
call eax
mov ecx, 0x47d9
xor edx, edx
add edx, eax
mov edi, 0xd2e4e1ff
add edi, 0x2d5ba201
add edi, dword [ebp - 0x28]
mov esi, 0xccb9858f
sub esi, 0x987040b2
sub dword [ebp - 0x18], 0x5d1062dd
mov ebx, dword [edi]
add dword [ebp - 4], 0xd5edda8b
xor ebx, esi
mov dword [edx], ebx
xor dword [ebp - 0xc], esi
add edx, 0x11c2a5aa
add edx, 0xee3d5a5a
add edi, 4
loop 0x4035f9
add eax, 0x21935080
add eax, 0xde6dc1b7
mov ebx, eax
add eax, 0x9204c010
add eax, 0x6dfb3ff5
mov ecx, 0x400000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
mov ecx, 0x7c294204
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
mov ecx, 0x574538eb
nop
nop
nop
nop
nop
test eax, eax
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x42211b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42215a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42215a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42215a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42215a
cmp dword [ecx + 0x74], 0xe
jbe 0x42215a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4347a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4347cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4347cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x54846e
Capabilities:
Encode data using xor

Disassembly:
call fcn.00549414
call fcn.00542c4a
stosd dword es:[edi], eax
xor al, byte [ecx + 0x37]
daa
ror byte [edx + edi*2], 1
cmp al, 0xd5
invalid
Function at 0x401030
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call fcn.004029e0
add esp, 4
test eax, eax
je 0x40105c
push 0x40e420
call fcn.00402c87
add esp, 4
call section..text
push 1
call fcn.00402c47
pop ebp
ret

Function at 0x401060
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call fcn.00402790
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
je 0x4010c3
call fcn.00402790
sub eax, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x12
cmp eax, edx
jge 0x4010c3
call fcn.00402a20
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4010c1
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
cmp dword [ebp - 8], ecx
je 0x4010b4
cmp dword [ebp - 8], 0
jne 0x4010bf
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
cmp eax, 0x40
jne 0x4010bf
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
jmp 0x4010c1
jmp 0x4010c3
jmp 0x40106e
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
test eax, eax
je 0x4010e6
push 0x40e448
call fcn.00402c87
add esp, 4
call section..text
push 1
call fcn.00402c47
mov esp, ebp
pop ebp
ret
Function at 0x401f10
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call fcn.00402790
mov dword [ebp - 4], eax
call fcn.00402a20
mov byte [ebp - 0x10], al
movsx eax, byte [ebp - 0x10]
cmp eax, 0xffffffff
jne 0x401f3e
call fcn.00402790
sub eax, dword [ebp - 4]
cmp eax, 0x12
jge 0x401f3e
jmp 0x401f1e
movsx ecx, byte [ebp - 0x10]
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
cmp ecx, eax
jne 0x401f64
mov ecx, dword [ebp + 8]
push ecx
push 0x4115b8
call fcn.00402c87
add esp, 8
mov eax, 1
jmp 0x401fa0
movsx edx, byte [ebp - 0x10]
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax]
cmp edx, ecx
jne 0x401f87
mov edx, dword [ebp + 0xc]
push edx
push 0x4115bc
call fcn.00402c87
add esp, 8
xor eax, eax
jmp 0x401fa0
push 0x4115c0
call fcn.00402c87
add esp, 4
call section..text
push 1
call fcn.00402c47
mov esp, ebp
pop ebp
ret

Function at 0x402990
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
cmp dword [0x411788], 0xffffffff
je 0x4029c8
push 0
lea ecx, [ebp - 8]
push ecx
push 1
lea edx, [ebp - 4]
push edx
mov eax, dword [0x411788]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x4029cd
or eax, 0xffffffff
jmp 0x4029cf
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x402a20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
cmp dword [0x411788], 0xffffffff
je 0x402a59
push 0
lea eax, [ebp - 8]
push eax
push 1
lea ecx, [ebp - 1]
push ecx
mov edx, dword [0x411788]
push edx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x402a59
cmp dword [ebp - 8], 1
je 0x402a5e
or eax, 0xffffffff
jmp 0x402a62
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x402b86
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x411e94], esi
push edi
jne 0x402ba6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x411e90], esi
mov byte [0x411e8c], al
jne 0x402c0c
mov ecx, dword [0x41340c]
test ecx, ecx
je 0x402bed
mov eax, dword [0x413408]
sub eax, 4
cmp eax, ecx
jmp 0x402be6
mov eax, dword [eax]
test eax, eax
je 0x402bd8
call eax
mov eax, dword [0x413408]
sub eax, 4
cmp eax, dword [0x41340c]
mov dword [0x413408], eax
jae 0x402bd0
mov eax, 0x40a020
mov esi, 0x40a02c
cmp eax, esi
mov edi, eax
jae 0x402c0c
mov eax, dword [edi]
test eax, eax
je 0x402c05
call eax
add edi, 4
cmp edi, esi
jb 0x402bfd
mov eax, 0x40a030
mov esi, 0x40a034
cmp eax, esi
mov edi, eax
jae 0x402c2b
mov eax, dword [edi]
test eax, eax
je 0x402c24
call eax
add edi, 4
cmp edi, esi
jb 0x402c1c
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x402c45
push dword [ebp + 8]
mov dword [0x411e94], 1
call fcn.00402aec
pop ebp
ret
Function at 0x402ff5
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x408120
call fcn.00404a44
mov edi, 0x94
mov eax, edi
call fcn.00404ba0
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 [0x411e54], ecx
mov eax, dword [esi + 4]
mov dword [0x411e60], eax
mov edx, dword [esi + 8]
mov dword [0x411e64], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x411e58], esi
cmp ecx, 2
je 0x403055
or esi, 0x8000
mov dword [0x411e58], esi
shl eax, 8
add eax, edx
mov dword [0x411e5c], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x40308e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40308e
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4030a6
cmp eax, 0x20b
je 0x403093
mov dword [ebp - 0x1c], edi
jmp 0x4030ba
cmp dword [ecx + 0x84], 0xe
jbe 0x40308e
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x4030b4
cmp dword [ecx + 0x74], 0xe
jbe 0x40308e
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push edi
call fcn.004049f1
pop ecx
test eax, eax
jne 0x4030e6
cmp dword [0x411ea4], 2
je 0x4030d3
call fcn.00404436
push 0x1c
call fcn.004042bf
push 0xff
call fcn.00402aec
pop ecx
pop ecx
call fcn.00403278
mov dword [ebp - 4], edi
call fcn.00403cd8
test eax, eax
jge 0x4030ff
push 0x1b
call fcn.00402fd0
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x4123e0], eax
call fcn.004048b5
mov dword [0x411e9c], eax
call fcn.00404813
test eax, eax
jge 0x403125
push 8
call fcn.00402fd0
pop ecx
call fcn.004045e0
test eax, eax
jge 0x403136
push 9
call fcn.00402fd0
pop ecx
push 1
call fcn.00402b1c
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x40314c
push eax
call fcn.00402fd0
pop ecx
mov eax, dword [0x411e74]
mov dword [0x411e78], eax
push eax
push dword [0x411e6c]
push dword [0x411e68]
call fcn.004010f0
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x40317b
push esi
call fcn.00402c47
call fcn.00402c69
jmp 0x4031ad
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.00404a7f
ret