joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001cf50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100df320]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1001cf80
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x1001cfb0
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x1001cfb0
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x1001d0ab
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1001cfd9
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1001d00d
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x1001d06c
sub eax, 1
je 0x1001d06c
sub eax, 2
jne 0x1001d0ab
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.1001da10
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1001d08a
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1001d0ab
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x1001d0ab
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
Function at 0x401a40
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
jmp loc.00401219

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 0x402000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp edi, dword [ebp + 0xc]
je 0x402043
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push esi
mov eax, dword [edi]
push eax
push 0
push 0x1fffff
call ebx
mov esi, eax
test esi, esi
je 0x402036
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 4
cmp edi, dword [ebp + 0xc]
jne 0x402014
mov edi, dword [ebp + 8]
pop esi
pop ebx
test edi, edi
je 0x402050
push edi
call fcn.0042a9e1
add esp, 4
pop edi
pop ebp
ret

Function at 0x4022b0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4a3110]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x4023ab
cmp word [ebx], 0
je 0x4023ab
test edi, edi
je 0x4023ab
push esi
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
mov dword [ebp - 0x230], 0x22c
call fcn.0042b970
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x234], eax
cmp esi, 0xffffffff
jne 0x402335
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b571
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x230]
push ecx
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x402387
lea edx, [ebp - 0x20c]
push ebx
push edx
call fcn.0042bb95
add esp, 8
test eax, eax
jne 0x402376
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x228], eax
je 0x402376
lea ecx, [ebp - 0x228]
push ecx
mov ecx, edi
call fcn.00402210
lea edx, [ebp - 0x230]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x402346
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi]
xor ecx, ecx
cmp eax, dword [edi + 4]
pop esi
setne cl
pop edi
pop ebx
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b571
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0042b571
mov esp, ebp
pop ebp
ret
Function at 0x402d20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4766a0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4a3110]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
xor ecx, ecx
push 0xffffffffffffffff
push ecx
mov word [ebp - 0x2c], cx
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
call fcn.004014f0
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
jne 0x402da0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, eax
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x402d87
sub ecx, edi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401f10
mov ecx, dword [esi]
lea edx, [ebp - 0x2c]
push edx
call fcn.00406bf0
test eax, eax
jne 0x402dc9
cmp dword [ebp - 0x18], 8
jb 0x402dc1
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0042a9e1
add esp, 4
or eax, 0xffffffff
jmp 0x402f07
mov ecx, esi
call fcn.00402740
mov ecx, esi
call fcn.00402890
mov ecx, dword [esi]
call fcn.00423330
dec eax
cmp eax, 6
ja case.default.0x402de8
jmp dword [eax*4 + 0x402f24]
push str.UpPower
lea ecx, [ebp - 0x48]
call fcn.004023c0
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [esi]
mov byte [ebp - 4], 1
call fcn.00404ac0
mov ecx, dword [esi + 8]
push eax
call fcn.00412980
lea ecx, [ebp - 0x48]
mov esi, eax
call fcn.0041e180
lea ecx, [ebp - 0x2c]
call fcn.0041e180
mov eax, esi
jmp 0x402f07
mov ecx, dword [esi + 8]
call fcn.00411d90
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.0041e180
mov eax, esi
jmp 0x402f07
mov ecx, dword [esi + 8]
call fcn.00412b80
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.0041e180
mov eax, esi
jmp 0x402f07
mov ecx, dword [esi + 8]
call fcn.00411fa0
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.0041e180
mov eax, esi
jmp 0x402f07
mov ecx, esi
call fcn.00402490
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.0041e180
mov eax, esi
jmp 0x402f07
mov ecx, esi
mov dword [esi + 4], 1
call fcn.00402c00
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.0041e180
mov eax, esi
jmp 0x402f07
lea ecx, [ebp - 0x49]
call fcn.004179e0
lea ecx, [ebp - 0x49]
call fcn.0041d0d0
cmp byte [esi + 0x20], 0
je 0x402ed4
call fcn.00417710
lea ecx, [ebp - 0x49]
call fcn.004179b0
lea ecx, [ebp - 0x49]
call fcn.0041d0d0
mov ecx, esi
mov dword [esi + 4], 2
call fcn.00402c50
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.0041e180
mov eax, esi
jmp 0x402f07
cmp dword [ebp - 0x18], 8
jb 0x402f02
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0042a9e1
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042b571
mov esp, ebp
pop ebp
ret 4
Function at 0x403420
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47672e
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x4a3110]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x40], ebx
je 0x4034f9
mov edi, dword [esi + 0x3c]
lea eax, [ebp - 0x64]
push eax
lea ecx, [esi + 4]
call fcn.00403330
mov dword [ebp - 4], ebx
lea esi, [ebx + 8]
cmp edi, ebx
je 0x4034df
cmp dword [ebp - 0x54], ebx
je 0x4034df
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x64]
push eax
push edi
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 1
call fcn.00410de0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x18], esi
jb 0x4034b6
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0042a9e1
add esp, 4
xor edx, edx
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
call fcn.004105d0
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], bl
call fcn.00410560
cmp dword [ebp - 0x50], esi
jb 0x4035ab
mov eax, dword [ebp - 0x64]
push eax
call fcn.0042a9e1
add esp, 4
jmp 0x4035ab
cmp dword [esi + 0x44], ebx
je 0x4035ab
lea ecx, [ebp - 0xe0]
call fcn.004068c0
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [esi + 4]
mov dword [ebp - 4], 4
call fcn.00403330
push eax
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 5
call fcn.00406bf0
mov esi, 8
mov byte [ebp - 4], 4
cmp dword [ebp - 0x34], esi
jb 0x40354a
mov edx, dword [ebp - 0x48]
push edx
call fcn.0042a9e1
add esp, 4
lea ecx, [ebp - 0x2c]
xor eax, eax
push ecx
mov edi, 7
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
call fcn.00404980
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x403575
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x18], esi
jb 0x40358d
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0042a9e1
add esp, 4
xor eax, eax
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 0xffffffff
call fcn.00406240
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042b571
mov esp, ebp
pop ebp
ret
Function at 0x4035d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x476768
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x4a3110]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
xor edi, edi
push 0xc
mov dword [esi + 4], edi
call fcn.0042b0c1
add esp, 4
cmp eax, edi
je 0x40367b
mov dword [esi], eax
mov dword [eax], eax
mov eax, dword [esi]
mov dword [eax + 4], eax
push 0xc
mov dword [ebp - 4], edi
mov dword [esi + 0x28], edi
call fcn.0042b0c1
add esp, 4
cmp eax, edi
je 0x403657
mov dword [esi + 0x24], eax
mov dword [eax], eax
mov eax, dword [esi + 0x24]
mov dword [eax + 4], eax
lea eax, [esi + 0xc]
push eax
mov dword [esi + 0x30], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], edi
call fcn.0042a7f8
push 0x497f60
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], vtable.std::bad_alloc.0
call fcn.0042b141
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], edi
call fcn.0042a7f8
push 0x497f60
lea ecx, [ebp - 0x30]
push ecx
mov dword [ebp - 0x30], vtable.std::bad_alloc.0
call fcn.0042b141
int3

Function at 0x403ae0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0
mov esi, ecx
mov ecx, dword [ebp + 8]
push ecx
push 0x403780
push 0
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + 8], eax
test eax, eax
je 0x403b49
push edi
mov edi, dword [esi + 0x24]
mov eax, dword [edi + 4]
lea edx, [ebp + 8]
push edx
push eax
push edi
lea ecx, [esi + 0x24]
call fcn.0040c500
mov ecx, dword [esi + 0x28]
mov edx, 0x3ffffffe
sub edx, ecx
cmp edx, 1
jae 0x403b3c
push str.list_T__too_long
call fcn.00429839
inc ecx
mov dword [esi + 0x28], ecx
mov dword [edi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x406ae0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x476c11
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4a3110]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], ebx
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x30], ebx
jb 0x406b32
mov eax, dword [eax]
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x34], eax
cmp eax, ebx
je 0x406bc6
xor ecx, ecx
mov dword [ebp - 0x38], ecx
cmp dword [ebp - 0x30], ebx
jle 0x406bbf
mov ecx, dword [eax + ecx*4]
cmp ecx, ebx
je 0x406bb0
xor edx, edx
mov eax, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
lea edi, [eax + 2]
mov edi, edi
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x406b70
sub eax, edi
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00401f10
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.004067d0
cmp dword [ebp - 0x18], 8
mov byte [ebp - 4], bl
jb 0x406bb0
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0042a9e1
add esp, 4
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
inc ecx
mov dword [ebp - 0x38], ecx
cmp ecx, dword [ebp - 0x30]
jl 0x406b52
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042b571
mov esp, ebp
pop ebp
ret
Function at 0x407fe0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x476e3b
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x4a3110]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
push 0x206
lea ecx, [ebp - 0x23e]
xor eax, eax
push edi
push ecx
mov dword [ebp - 0x260], edi
mov word [ebp - 0x240], ax
call fcn.0042b970
add esp, 0xc
lea edx, [ebp - 0x240]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
mov dword [ebp - 0x248], 7
mov dword [ebp - 0x24c], edi
mov word [ebp - 0x25c], ax
push 0xf
lea edx, [ebp - 0x38]
xor ecx, ecx
push edx
mov dword [ebp - 4], edi
mov word [ebp - 0x38], cx
mov dword [ebp - 0x36], eax
mov dword [ebp - 0x32], eax
mov dword [ebp - 0x2e], eax
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0042be2c
lea eax, [ebp - 0x38]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4080a0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x25c]
call fcn.00401f10
lea ecx, [ebp - 0x38]
push 0xf
push ecx
mov edx, ecx
push edx
call fcn.0042be2c
lea eax, [ebp - 0x38]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4080d6
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x25c]
call fcn.004015f0
push 4
push str..exe
lea ecx, [ebp - 0x25c]
call fcn.004015f0
cmp dword [ebp - 0x248], 8
mov eax, dword [ebp - 0x25c]
jae 0x40811c
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x240]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
lea eax, [ebp - 0x240]
mov word [esi], dx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x408142
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x240]
push eax
mov ecx, esi
call fcn.00401f10
cmp dword [ebp - 0x248], 8
jb 0x408178
mov ecx, dword [ebp - 0x25c]
push ecx
call fcn.0042a9e1
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042b571
mov esp, ebp
pop ebp
ret
Function at 0x408590
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x476f13
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x4a3110]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xac], eax
call fcn.004068c0
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ecx, ecx
mov word [ebp - 0x2c], cx
mov ecx, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x4085f1
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401f10
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 1
call fcn.00406bf0
cmp dword [ebp - 0x18], 8
mov byte [ebp - 4], bl
jb 0x408632
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0042a9e1
add esp, 4
xor ecx, ecx
push 4
mov word [ebp - 0x2c], cx
push 0x47e5a4
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
call fcn.00401f10
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 2
call fcn.00406360
cmp dword [ebp - 0x18], 8
mov byte [ebp - 4], bl
jb 0x408679
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0042a9e1
add esp, 4
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0xa8]
call fcn.00407250
mov edx, dword [ebp - 0xac]
push edx
push eax
mov byte [ebp - 4], 3
call fcn.00401ab0
mov ecx, eax
call fcn.00401b00
mov ecx, eax
call fcn.0040f3f0
cmp dword [ebp - 0x18], 8
mov esi, eax
jb 0x4086bb
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0042a9e1
add esp, 4
xor ecx, ecx
mov word [ebp - 0x2c], cx
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0xffffffff
call fcn.00406240
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042b571
mov esp, ebp
pop ebp
ret 4
Function at 0x40a250
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test esi, esi
je 0x40a282
cmp esi, 0xffffffff
je 0x40a282
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
ret 8

Function at 0x40a870
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi + 0x14], 1
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
push edi
mov dword [esi + 0xc], eax
mov ebx, ecx
mov dword [esi + 0x10], eax
mov eax, dword [ebx]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov edi, eax
test edi, edi
jne 0x40a900
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x40a8e6
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov dword [esi + 0x14], 1
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov edx, dword [ebx]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov edi, eax
test edi, edi
je 0x40a8a2
pop edi
pop esi
pop ebx
pop ebp
ret 8
test edi, edi
jne 0x40a900
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x40a900
push edi
push esi
mov ecx, ebx
call fcn.0040aa00
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x40aa00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x18]
push edi
push 0x90
push 0
push eax
mov edi, ecx
mov dword [esi + 0x14], 2
mov dword [ebp + 8], 0
call fcn.0042b970
mov edx, dword [esi + 0x18]
mov eax, dword [edi]
add esp, 0xc
push esi
lea ecx, [ebp + 8]
push ecx
push 0x90
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40aa73
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x3e5
je 0x40aa72
call ebx
cmp eax, 0xea
je 0x40aa72
mov ecx, dword [edi]
push ecx
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push 0
push esi
mov ecx, edi
call fcn.0040a870
pop ebx
pop edi
pop esi
pop ebp
ret 8