joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000caa4
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [0x1012800c]
cmp eax, 0xffffffff
jne 0x1000cab8
call sub.KERNEL32.dll_TlsAlloc
mov dword [0x1012800c], eax
push eax
call fcn.100c8874
pop ecx
test eax, eax
je fcn.1000ca17
ret

Function at 0x1002c117
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x14], ebx
mov ecx, edi
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
push dword [ebx + 4]
call fcn.100c8027
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov dword [ebp - 4], eax
cmp eax, ecx
je 0x1002c289
mov ecx, dword [ebp + 0xc]
lea esi, [eax + 0x14]
lea eax, [ebp + 8]
mov dword [ebp - 0xc], esi
push eax
mov bl, 1
call fcn.10013142
jmp 0x1002c24f
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
add eax, 0xffffcfe0
cmp eax, 0x22
ja case.0x1002c178.12334
jmp dword [eax*4 + 0x1002c2bb]
cmp dword [esi + 8], ecx
jmp 0x1002c240
cmp dword [esi + 0x1c], ecx
jmp 0x1002c240
cmp dword [esi + 0x14], ecx
jmp 0x1002c240
cmp dword [esi + 0x10], ecx
jmp 0x1002c240
cmp dword [esi + 0xc], ecx
jmp 0x1002c240
cmp dword [esi + 0x3c], ecx
jmp 0x1002c240
cmp dword [esi + 0x74], ecx
jmp 0x1002c240
cmp dword [esi + 0x30], ecx
sete bl
jmp case.0x1002c178.12334
cmp dword [esi + 0x34], ecx
jmp 0x1002c1ba
cmp dword [esi + 0x40], ecx
jmp 0x1002c240
cmp dword [esi + 0x5c], ecx
jmp 0x1002c1ba
cmp dword [esi + 0x64], ecx
jmp 0x1002c1ba
cmp dword [esi + 0x70], ecx
jmp 0x1002c240
cmp dword [esi + 0x6c], ecx
jmp 0x1002c240
mov eax, dword [esi + 0x78]
and eax, ecx
cmp eax, ecx
jmp 0x1002c1ba
cmp dword [esi + 0x7c], ecx
jmp 0x1002c1ba
cmp dword [esi + 0x88], ecx
jmp 0x1002c1ba
cmp dword [esi + 0x84], ecx
jmp 0x1002c1ba
cmp dword [esi + 0x80], ecx
jmp 0x1002c1ba
cmp dword [esi + 0x24], ecx
jmp 0x1002c1ba
cmp dword [esi + 0x28], ecx
jmp 0x1002c1ba
cmp dword [esi + 0x58], ecx
jmp 0x1002c1ba
cmp dword [esi + 0x54], ecx
jmp 0x1002c1ba
cmp dword [esi + 0x18], ecx
jmp 0x1002c240
cmp dword [esi + 0x20], ecx
jmp 0x1002c240
cmp dword [esi + 0x2c], ecx
jmp 0x1002c1ba
mov eax, dword [esi + 0x68]
jmp 0x1002c1e3
mov eax, dword [esi + 0x38]
jmp 0x1002c1e3
cmp dword [esi + 0x48], ecx
jmp 0x1002c240
cmp dword [esi + 0x4c], ecx
jmp 0x1002c240
cmp dword [esi + 0x50], ecx
setge bl
test bl, bl
je case.0x1002c178.12353
lea ecx, [ebp + 8]
call fcn.100134d4
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
call fcn.1001317a
mov ecx, eax
mov eax, dword [ebp + 8]
cmp eax, dword [ecx]
jne 0x1002c164
lea eax, [ebp - 0xc]
mov ecx, edi
push eax
call fcn.1004667f
lea ecx, [ebp - 4]
call fcn.100134d4
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
cmp eax, dword [ecx]
jne 0x1002c14b
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.1002c347
push ecx
push ecx
mov ecx, dword [ebp - 0x14]
mov edx, esp
push dword [edi + 4]
push dword [edi]
mov dword [edx], ecx
mov cl, byte [ebp - 0x10]
mov byte [edx + 4], cl
call fcn.1002bef9
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10046739
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
mov eax, 0x8b40
push edi
mov edi, dword [ebp + 8]
push 0x70
mov dword [ebx], 0x100eebd8
lea ecx, [eax + 0x46]
lea esi, [ebx + 0xc]
mov dword [ebp - 4], ebx
cmp dword [edi], 2
push 0
cmovg eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebx + 8], eax
call fcn.100d0450
and dword [ebx + 0x7c], 0
and dword [ebx + 0x80], 0
mov ebx, dword [edi + 8]
mov edi, dword [edi + 0x10]
push esi
call fcn.1008946c
mov eax, dword [ebx + 0x78]
add esp, 0x10
mov ecx, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebx + 0x80]
mov dword [ecx + 0x10], eax
mov eax, dword [ebx + 0xd4]
mov dword [ecx + 0x14], eax
mov eax, dword [ebx + 0x8c]
mov dword [ecx + 0x18], eax
mov eax, dword [ebx + 0xd8]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebx + 0xa0]
mov dword [ecx + 0x20], eax
mov eax, dword [ebx + 0x94]
mov dword [ecx + 0x24], eax
mov eax, dword [ebx + 0x20]
mov dword [ecx + 0x28], eax
movzx eax, byte [edi + 0x2a]
mov dword [ecx + 0x2c], eax
movzx eax, byte [edi + 0x15]
mov dword [ecx + 0x38], eax
xor eax, eax
inc eax
mov dword [ecx + 0x40], eax
mov dword [ecx + 0x58], eax
mov dword [ecx + 0x3c], eax
mov eax, dword [ebx + 0x88]
shr eax, 2
mov dword [ecx + 0x5c], eax
mov eax, dword [ebx + 0x9c]
shr eax, 2
mov dword [ecx + 0x60], eax
mov eax, dword [ebx + 0xa4]
pop edi
mov dword [ecx + 0x64], eax
mov eax, dword [ebx + 0xa8]
pop esi
mov dword [ecx + 0x68], eax
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100885ea
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
cdq
and edx, 3
push esi
push edi
lea esi, [edx + eax]
mov edx, dword [ebp + 0x10]
sar esi, 2
lea edi, [ecx + esi*4]
neg esi
je 0x1008862a
imul eax, dword [edi + esi*4], 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, edx
rol eax, 0xd
imul edx, eax, 5
sub edx, 0x19ab949c
inc esi
jne 0x10088609
mov eax, dword [ebp + 0xc]
xor ecx, ecx
and eax, 3
dec eax
je 0x1008864b
dec eax
je 0x10088642
dec eax
jne 0x10088661
movzx ecx, byte [edi + 2]
shl ecx, 0x10
movzx eax, byte [edi + 1]
shl eax, 8
xor ecx, eax
movzx eax, byte [edi]
xor eax, ecx
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor edx, eax
xor edx, dword [ebp + 0xc]
mov eax, edx
shr eax, 0x10
xor eax, edx
imul ecx, eax, 0x85ebca6b
pop edi
pop esi
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul eax, eax, 0xc2b2ae35
mov ecx, eax
shr ecx, 0x10
xor ecx, eax
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
pop ebp
ret
Function at 0x100c6d62
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push 0x10109e90
call fcn.100d0e3e
add eax, 0x40
push eax
call fcn.100d0f1a
add esp, 0xc
push 2
call fcn.100d172c
int3

Function at 0x100c881d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x101067ec
push dword [ebp + 8]
call fcn.100d1b28
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100c884d
push esi
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.100d1185
push esi
call fcn.100d19ed
add esp, 0x14
pop esi
pop ebp
ret
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x401443
pop dword [ebp - 0x50]
mov eax, 0x26ee6fcf
sub eax, 0x26ae5b8c
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x77737c8a
add dword [ebp - 0x60], 0xd6dec8c1
mov dword [ebp - 0x5c], 0xcfccfbc6
add dword [ebp - 0x5c], 0x6266507f
mov dword [ebp - 0x58], 0x4349a91f
add dword [ebp - 0x58], 0x9029b0f
mov dword [ebp - 0x54], 0xef79e292
sub dword [ebp - 0x54], 0xef79e292
lea eax, [ebp - 0x60]
push eax
mov eax, 0xd8215638
add eax, 0x281f2a40
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x907b2861
sub dword [ebp - 0x60], 0x1c08bf0b
mov dword [ebp - 0x5c], 0xea5bfaca
add dword [ebp - 0x5c], 0x571066ab
mov dword [ebp - 0x58], 0x5b8917b3
add dword [ebp - 0x58], 0x7e654b9
mov dword [ebp - 0x54], 0x940acfd2
sub dword [ebp - 0x54], 0x940acfd2
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x36b3d
push 0
call eax
mov ecx, 0x7c8aa861
add ecx, 0x837598ed
xor edi, edi
add edi, eax
mov ebx, 0xce75ddc0
sub ebx, 0xce30c9c0
add ebx, dword [ebp - 0x50]
mov edx, 0xe1fdf36
add dword [ebp - 0x2c], 0x241becce
mov esi, dword [ebx]
xor dword [ebp - 0x18], 0x134d175b
sub esi, edx
mov dword [ebp - 4], 0x851f87ac
mov dword [edi], esi
add dword [ebp - 0x4c], 0x78e3f8c
add edi, 0x721952de
add edi, 0x8de6ad26
add ebx, 0x7c53b139
add ebx, 0x83ac4ecb
loop 0x40155c
add eax, 0x88020cfa
sub eax, 0x880114ef
mov ebx, eax
add eax, 0xdb25f335
add eax, 0x24da0cd0
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x401994
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp edi, dword [ebp + 0xc]
je 0x4019cf
push esi
push dword [edi]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4019c6
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 0x4019a1
pop esi
lea ecx, [ebp + 8]
pop edi
pop ebp
jmp fcn.00410116

Function at 0x401a6a
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x43114c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x401b3f
cmp word [edi], bx
je 0x401b3f
cmp esi, ebx
je 0x401b3f
push 0x820
lea eax, [ebp - 0x824]
push ebx
push eax
mov dword [ebp - 0x828], 0x824
call fcn.004168c0
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x82c], eax
cmp ebx, 0xffffffff
je 0x401b3f
lea eax, [ebp - 0x828]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
jmp 0x401b26
lea eax, [ebp - 0x804]
push edi
push eax
call fcn.004178e9
pop ecx
pop ecx
test eax, eax
jne 0x401b19
mov eax, dword [ebp - 0x82c]
cmp dword [ebp - 0x820], eax
je 0x401b19
lea eax, [ebp - 0x820]
push eax
mov ecx, esi
call fcn.004019d9
lea eax, [ebp - 0x828]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x401aea
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
xor ecx, ecx
cmp eax, dword [esi + 4]
setne cl
mov eax, ecx
jmp 0x401b41
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004168ab
leave
ret
Function at 0x4022f4
Capabilities:
Accept command line arguments
Check if file exists

Disassembly:
push 0x864
mov eax, 0x423711
call fcn.00417706
xor edi, edi
mov esi, ecx
mov dword [ebp - 0x86c], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x82c]
call fcn.00401c39
mov ecx, dword [esi]
lea eax, [ebp - 0x82c]
push eax
mov dword [ebp - 4], edi
call fcn.00404f44
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
push edi
inc edi
push edi
lea ecx, [ebp - 0x82c]
call fcn.0040139d
inc bl
je 0x402354
or eax, 0xffffffff
jmp 0x402502
xor eax, eax
push 0x7fe
mov word [ebp - 0x810], ax
xor ebx, ebx
lea eax, [ebp - 0x80e]
push ebx
push eax
call fcn.004168c0
add esp, 0xc
push 0x400
lea eax, [ebp - 0x810]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4023cd
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x82c]
call fcn.00401c39
lea eax, [ebp - 0x82c]
push ebx
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x86c], edi
call fcn.0040de6e
pop ecx
pop ecx
mov byte [ebp - 0x865], 1
test eax, eax
je 0x4023d4
mov byte [ebp - 0x865], 0
or dword [ebp - 4], 0xffffffff
test byte [ebp - 0x86c], 1
je 0x4023ee
push ebx
push edi
lea ecx, [ebp - 0x82c]
call fcn.0040139d
cmp byte [ebp - 0x865], 0
jne 0x40234c
mov ecx, esi
call fcn.00401e5d
mov ecx, esi
call fcn.00401f17
mov ecx, dword [esi]
call fcn.004030e3
dec eax
je 0x4024f8
dec eax
je 0x402497
dec eax
je 0x40248d
dec eax
je 0x402483
dec eax
je 0x402479
dec eax
je 0x40246d
dec eax
je 0x402430
mov eax, edi
jmp 0x402502
call fcn.0040ed9d
lea ecx, [ebp - 0x870]
call fcn.0040ee1b
mov ecx, esi
mov dword [ebp - 4], 4
mov dword [esi + 4], 2
call fcn.004022a0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x870]
mov esi, eax
call fcn.0040900d
mov eax, esi
jmp 0x402502
mov ecx, esi
call fcn.00401ca3
jmp 0x402502
mov ecx, dword [esi + 8]
call fcn.0040c4f7
jmp 0x402502
mov ecx, dword [esi + 8]
call fcn.0040cd4e
jmp 0x402502
mov ecx, dword [esi + 8]
call fcn.0040c408
jmp 0x402502
push 0x42650c
lea ecx, [ebp - 0x848]
call fcn.00401c39
mov ecx, dword [esi]
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x864]
push eax
mov dword [ebp - 4], 2
call fcn.00403a7f
mov ecx, dword [esi + 8]
push eax
mov byte [ebp - 4], 3
call fcn.00402d7c
push ebx
push edi
lea ecx, [ebp - 0x864]
call fcn.0040139d
or dword [ebp - 4], 0xffffffff
push ebx
push edi
lea ecx, [ebp - 0x848]
call fcn.0040139d
mov ecx, dword [esi + 8]
call fcn.0040cbc3
jmp 0x402502
mov ecx, esi
mov dword [esi + 4], edi
call fcn.00402220
call fcn.00417750
ret

Function at 0x402eb7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
mov esi, ecx
push 0x402cba
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + 8], eax
test eax, eax
je 0x402ef0
lea ecx, [esi + 0x24]
mov eax, dword [ecx]
lea edx, [ebp + 8]
push edx
push eax
call fcn.004028ad
pop esi
leave
ret 4
Function at 0x405410
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x811c9dc5
jmp 0x40542b
movzx edx, word [ecx]
imul eax, eax, 0x1000193
xor eax, edx
add ecx, 2
cmp ecx, dword [ebp + 0xc]
jne 0x40541d
pop ebp
ret

Function at 0x405b96
Capabilities:
Get common file path

Disassembly:
push 0x850
mov eax, 0x423ce9
call fcn.00417706
mov eax, dword [ebp + 8]
mov dword [ebp - 0x858], eax
xor eax, eax
xor ebx, ebx
push 0x7fe
mov word [ebp - 0x838], ax
lea eax, [ebp - 0x836]
push ebx
push eax
mov dword [ebp - 0x85c], ebx
call fcn.004168c0
add esp, 0xc
lea eax, [ebp - 0x838]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
mov dword [ebp - 0x840], 7
mov dword [ebp - 0x844], ebx
mov word [ebp - 0x854], ax
push 9
pop ecx
mov word [ebp - 0x38], ax
lea edi, [ebp - 0x36]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xf
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00417b80
lea eax, [ebp - 0x38]
push eax
call fcn.004171b1
add esp, 0x10
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x854]
call fcn.00401916
lea eax, [ebp - 0x38]
push 0xf
push eax
push eax
call fcn.00417b80
lea eax, [ebp - 0x38]
push eax
call fcn.004171b1
add esp, 0x10
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x854]
call fcn.004036f8
mov esi, str..exe
push esi
call fcn.004171b1
pop ecx
push eax
push esi
lea ecx, [ebp - 0x854]
call fcn.004036f8
cmp dword [ebp - 0x840], 8
mov eax, dword [ebp - 0x854]
jae 0x405c94
lea eax, [ebp - 0x854]
push eax
lea eax, [ebp - 0x838]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, dword [ebp - 0x858]
lea eax, [ebp - 0x838]
push eax
call fcn.00401c39
push ebx
push 1
lea ecx, [ebp - 0x854]
call fcn.0040139d
mov eax, dword [ebp - 0x858]
call fcn.00417750
ret
Function at 0x405cce
Capabilities:
Accept command line arguments
Copy file
Create process on windows

Disassembly:
push 0x90c
mov eax, 0x423d5e
call fcn.00417706
lea ecx, [ebp - 0x918]
call fcn.00404edc
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x848]
call fcn.00401c39
lea eax, [ebp - 0x848]
push eax
lea ecx, [ebp - 0x918]
mov byte [ebp - 4], 1
call fcn.00404f44
push ebx
push 1
lea ecx, [ebp - 0x848]
mov byte [ebp - 4], bl
call fcn.0040139d
push 0x426688
lea ecx, [ebp - 0x89c]
call fcn.00401c39
push str.Temporary
lea ecx, [ebp - 0x848]
mov byte [ebp - 4], 2
call fcn.00401c39
lea eax, [ebp - 0x89c]
push eax
lea eax, [ebp - 0x848]
push eax
lea ecx, [ebp - 0x918]
mov byte [ebp - 4], 3
call fcn.00404d65
push ebx
push 1
lea ecx, [ebp - 0x848]
call fcn.0040139d
push ebx
push 1
lea ecx, [ebp - 0x89c]
mov byte [ebp - 4], bl
call fcn.0040139d
lea eax, [ebp - 0x880]
push eax
lea ecx, [ebp - 0x918]
call fcn.00403a64
lea eax, [ebp - 0x864]
push eax
lea ecx, [ebp - 0x918]
mov byte [ebp - 4], 4
call fcn.004051dc
lea eax, [ebp - 0x82c]
push eax
mov byte [ebp - 4], 5
call fcn.00405b96
pop ecx
mov ecx, dword [ebp - 0x82c]
push 8
pop esi
cmp dword [ebp - 0x818], esi
jae 0x405dd6
lea ecx, [ebp - 0x82c]
mov eax, dword [ebp - 0x880]
cmp dword [ebp - 0x86c], esi
jae 0x405dea
lea eax, [ebp - 0x880]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x405e3a
xor esi, esi
push ebx
push 1
lea ecx, [ebp - 0x82c]
call fcn.0040139d
push ebx
push 1
lea ecx, [ebp - 0x864]
call fcn.0040139d
push ebx
push 1
lea ecx, [ebp - 0x880]
call fcn.0040139d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x918]
call fcn.00404d14
mov eax, esi
call fcn.00417750
ret
xor eax, eax
push 0x7fe
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push ebx
push eax
call fcn.004168c0
add esp, 0xc
push 0x400
lea eax, [ebp - 0x810]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov edi, dword [ebp - 0x864]
cmp dword [ebp - 0x850], esi
jae 0x405e8c
lea edi, [ebp - 0x864]
cmp dword [ebp - 0x818], esi
mov esi, dword [ebp - 0x82c]
jae 0x405ea0
lea esi, [ebp - 0x82c]
call fcn.004053da
push eax
lea eax, [ebp - 0x810]
push eax
push edi
push esi
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov esi, ecx
jmp 0x405df9
Function at 0x405ec6
Capabilities:
Accept command line arguments

Disassembly:
push 0x9c
mov eax, 0x423da9
call fcn.00417706
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0xa8]
call fcn.00404edc
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401c39
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 1
call fcn.00404f44
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.0040139d
push 0x42668c
lea ecx, [ebp - 0x2c]
call fcn.00401c39
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 2
call fcn.00404dd0
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.0040139d
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xa8]
call fcn.0040533b
push esi
push eax
mov byte [ebp - 4], 3
call fcn.0040103c
mov ecx, eax
call fcn.0040104a
mov ecx, eax
call fcn.0040a695
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.0040139d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.00404d14
mov eax, esi
call fcn.00417750
ret 4
Function at 0x407052
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
call fcn.0040e20a
mov ecx, eax
call fcn.0040e18d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop ebp
ret 8

Function at 0x407467
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x14
push 0
push esi
mov edi, ecx
mov dword [esi + 0x14], 1
call fcn.004168c0
add esp, 0xc
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x4074c2
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x3e5
je 0x4074ae
push 0
push esi
mov ecx, edi
call fcn.004074c8
jmp 0x4074c1
call ebx
cmp eax, 0x217
jne 0x4074c1
push 0
push esi
mov ecx, edi
call fcn.00407609
pop ebx
pop edi
pop esi
pop ebp
ret 8

Function at 0x407609
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
and dword [ebp + 8], 0
push edi
mov edi, 0x90
push edi
push 0
push dword [esi + 0x18]
mov ebx, ecx
mov dword [esi + 0x14], 2
call fcn.004168c0
add esp, 0xc
push esi
lea eax, [ebp + 8]
push eax
push edi
push dword [esi + 0x18]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407669
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x3e5
je 0x407669
call edi
cmp eax, 0xea
je 0x407669
push 0
push esi
mov ecx, ebx
call fcn.004074c8
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x407731
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
and dword [ebp - 0xc], 0
push ebx
mov byte [ebp - 0x20], 0
push esi
push edi
mov ebx, ecx
mov dword [ebx + 4], eax
xor eax, eax
lea edi, [ebp - 0x1f]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea esi, [ebp - 0xc]
lea edi, [ebp - 0x20]
call fcn.00407443
xor esi, esi
mov edx, 0x40000003
cmp dword [ebp + 0x18], esi
je 0x407779
mov edx, 0x40080003
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 8
jb 0x407784
mov ecx, dword [ecx]
lea eax, [ebp - 0xc]
push eax
push esi
mov eax, 0x400
push eax
push eax
push 0xff
push 6
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x4077aa
xor eax, eax
jmp 0x4077c9
push esi
push ebx
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp eax, dword [ebp + 0x10]
jne 0x4077a6
push esi
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.00407467
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x408313
Capabilities:
Create thread

Disassembly:
push 0xc
mov eax, 0x424210
call fcn.0041769d
mov esi, ecx
xor ebx, ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x20], eax
cmp eax, 0xffffffff
jne 0x40833d
xor eax, eax
jmp 0x40845e
mov eax, dword [esi + 0x1c]
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00416700
xor edi, edi
pop ecx
mov dword [esi + 0x24], eax
cmp dword [esi + 0x1c], ebx
jle 0x408389
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
push 0x408165
push ebx
push ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi + 0x24]
mov dword [ecx + edi*4], eax
mov eax, dword [esi + 0x24]
cmp dword [eax + edi*4], ebx
je 0x408336
inc edi
cmp edi, dword [esi + 0x1c]
jl 0x40835f
mov edi, dword [esi + 0x1c]
xor ecx, ecx
push 8
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00416700
pop ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x4083d9
push fcn.00407434
push 0x40742a
push edi
mov dword [eax], edi
add eax, 4
push 8
push eax
mov dword [ebp - 0x10], eax
call fcn.00417fff
mov eax, dword [ebp - 0x10]
jmp 0x4083db
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x1c]
xor ecx, ecx
push 0x1c
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00416700
xor edi, edi
pop ecx
mov dword [esi + 0x28], eax
cmp dword [esi + 0x1c], ebx
jle 0x40845b
mov dword [ebp - 0x10], ebx
push 0xa0
call fcn.004171cc
pop ecx
cmp eax, ebx
je 0x40841f
mov ecx, eax
call fcn.004075df
jmp 0x408421
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 0x28]
mov dword [edx + ecx + 0x18], eax
xor eax, eax
cmp edi, ebx
sete al
push eax
mov eax, dword [esi + 0x28]
add eax, ecx
push eax
push dword [esi + 0x20]
mov eax, dword [esi + 0x2c]
push esi
push esi
lea ecx, [eax + edi*8]
call fcn.00407731
test eax, eax
je 0x408336
add dword [ebp - 0x10], 0x1c
inc edi
cmp edi, dword [esi + 0x1c]
jl 0x408407
xor eax, eax
inc eax
call fcn.0041773c
ret