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

Disassembly:
jmp 0x43f6d0
push ecx
mov eax, dword [esp + 8]
push edi
push eax
mov dword [esp + 8], 0
call fcn.00401a55
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
jne 0x43f6f3
xor eax, eax
pop edi
pop ecx
ret
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov esi, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x14]
push ecx
push ebx
push esi
push edi
call ebp
test eax, eax
jne 0x43f726
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jbe 0x43f73a
cmp eax, 0x3e5
jne 0x43f74b
mov eax, dword [esp + 0x10]
cmp eax, 1
jne 0x43f758
cmp byte [esi], 0xd
je 0x43f704
pop esi
pop ebp
pop ebx
pop edi
pop ecx
ret
je 0x43f772
cmp eax, 5
jb 0x43f74b
cmp eax, 6
jbe 0x43f75e
cmp eax, 0x26
je 0x43f772
call fcn.0044ad41
mov dword [eax], 9
xor eax, eax
pop esi
pop ebp
pop ebx
pop edi
pop ecx
ret
call fcn.0044ad41
pop esi
pop ebp
pop ebx
mov dword [eax], 9
or eax, 0xffffffff
pop edi
pop ecx
ret
call fcn.0044ad41
pop esi
pop ebp
pop ebx
mov dword [eax], 0
xor eax, eax
pop edi
pop ecx
ret

Function at 0x401451
Capabilities:
Terminate process

Disassembly:
jmp 0x441aa0
mov eax, dword [esp + 4]
lea ecx, [eax - 1]
cmp ecx, 0x15
ja 0x441baa
lea ecx, [eax - 1]
cmp ecx, 0xe
push esi
ja case.0x441ac0.4
movzx edx, byte [ecx + 0x441bc4]
jmp dword [edx*4 + 0x441bb0]
mov edx, dword [eax*4 + 0x4a8898]
cmp edx, 1
je 0x441b71
lea ecx, [eax - 1]
mov esi, 1
shl esi, cl
test dword [0x4a88f4], esi
je 0x441aff
add dword [eax*4 + 0x4a88f8], 1
lea eax, [eax*4 + 0x4a88f8]
mov eax, 1
pop esi
ret
test edx, edx
jne 0x441b6b
push 0xc000013a
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edx, dword [eax*4 + 0x4a8898]
cmp edx, 1
je 0x441b71
lea ecx, [eax - 1]
mov esi, 1
shl esi, cl
test dword [0x4a88f4], esi
jne 0x441ae9
test edx, edx
jne 0x441b6b
push 0x25c
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edx, dword [eax*4 + 0x4a8898]
cmp edx, 1
je case.0x441ac0.4
jmp 0x441b1a
mov edx, dword [eax*4 + 0x4a8898]
cmp edx, 1
je 0x441b71
lea ecx, [eax - 1]
mov esi, 1
shl esi, cl
test dword [0x4a88f4], esi
jne 0x441ae9
test edx, edx
je 0x441b71
push eax
call edx
add esp, 4
cmp dword [0x4a8954], 0
je 0x441ba3
push 0x488e18
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub dword [0x4a8954], 1
push 0x488e18
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x488e30]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 1
pop esi
ret
xor eax, eax
ret
Function at 0x40153c
Capabilities:
Resolve function by parsing pe exports
Terminate process

Disassembly:
jmp 0x446ba0
sub esp, 0x158
mov eax, dword [0x487180]
xor eax, esp
mov dword [esp + 0x154], eax
mov eax, dword [esp + 0x15c]
push ebx
push esi
push edi
mov edi, dword [eax]
xor ebx, ebx
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ebx
mov esi, edi
call fcn.00401249
add esp, 4
test eax, eax
jne 0x446c1b
cmp byte [edi], bl
je 0x446bef
lea ecx, [ecx]
cmp byte [esi], 0x2f
jne 0x446be8
mov byte [esi], 0x5c
add esi, 1
cmp byte [esi], bl
jne 0x446be0
cmp esi, edi
mov eax, esi
je 0x446c1b
cmp byte [eax], 0x2e
je 0x446c03
sub eax, 1
cmp eax, edi
jne 0x446bf5
jmp 0x446c1b
add eax, 1
cmp eax, edi
je 0x446c1b
push eax
call fcn.0040150a
add esp, 4
test eax, eax
jne 0x446da3
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x410
push 8
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
add edx, 4
push edx
mov dword [esp + 0x34], 0x410
mov dword [esp + 0x3c], ebx
call fcn.0040163b
add esp, 0x18
test eax, eax
jne 0x446c96
call fcn.0044ad41
mov dword [eax], 0xc
mov eax, dword [esp + 0x10]
push eax
push ebx
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x446da2
mov ecx, dword [esp + 0x18]
push 0x3c
lea edx, [esp + 0x2c]
push ebx
push edx
mov byte [ecx], bl
call fcn.0044d2e0
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x28], 0x3c
mov dword [esp + 0x2c], 0x500
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], 0xa
call fcn.004015aa
lea ecx, [esp + 0x28]
push ecx
mov esi, eax
call dword [0x4892e4]
test eax, eax
je 0x446d1d
cmp dword [esp + 0x170], ebx
je 0x446d02
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.0044ad41
mov dword [eax], ebx
mov edx, dword [esp + 0x10]
push edx
push ebx
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x446da2
cmp dword [esp + 0x174], ebx
je 0x446d7f
push esi
call fcn.00401c17
mov ebx, dword [esp + 0x18]
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0x200
push ebx
push 0x409
push eax
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push edi
push 0x47bdd8
lea eax, [esp + 0x6c]
push 0x100
push eax
call fcn.0046f0bd
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x78]
push edx
push 0x36
call fcn.0040100a
add esp, 0x1c
xor ebx, ebx
mov eax, dword [esp + 0x10]
push eax
push ebx
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call fcn.00401c17
add esp, 4
call fcn.0044ad41
mov dword [eax], 8
pop ebp
mov ecx, dword [esp + 0x160]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044b8bd
add esp, 0x158
ret
Function at 0x4015aa
Capabilities:
Query environment variable
Set environment variable

Disassembly:
jmp 0x4435e0
push 0x4a50e0
push 0x4a8f1c
call fcn.00401325
add esp, 8
cmp eax, 0x4a7280
je 0x443685
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push esi
push edi
push 0
push 0
push str.PATH
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea edi, [eax + 1]
push edi
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push edi
push 8
mov ebx, eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push edi
push ebx
push str.PATH
mov esi, eax
call ebp
push eax
push ebx
push esi
call fcn.0044cf70
add esp, 0xc
cmp byte [esi], 0
mov eax, esi
je 0x443662
cmp byte [eax], 0x2f
jne 0x44365a
mov byte [eax], 0x5c
add eax, 1
cmp byte [eax], 0
jne 0x443652
push esi
push str.PATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret
xor eax, eax
ret

Function at 0x4015f5
Capabilities:
Set environment variable

Disassembly:
jmp 0x446a60
mov eax, dword [esp + 4]
test eax, eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push edi
je 0x446ab9
push eax
call fcn.0040192e
mov edi, eax
add esp, 4
test edi, edi
je 0x446ab9
push edi
call ebp
lea esi, [eax + 1]
push esi
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [0x4a8cdc], eax
jne 0x446ab1
push 0x17
call fcn.0040100a
mov eax, dword [0x4a8cdc]
add esp, 4
push edi
push esi
push eax
call fcn.0046ecda
mov eax, dword [esp + 0x18]
test eax, eax
je 0x446b52
push eax
call fcn.0040192e
mov esi, eax
add esp, 4
test esi, esi
je 0x446af3
push esi
call ebp
lea edi, [eax + 1]
push edi
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push esi
push edi
push eax
mov dword [0x4a8da0], eax
call fcn.0046ecda
mov ecx, dword [0x4a8cdc]
mov eax, esi
neg eax
sbb eax, eax
and eax, dword [0x4a8da0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov edx, dword [0x4a8cdc]
push str.TCSHONLYSTARTEXES
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x446b28
call fcn.00401613
mov eax, dword [0x4a8cdc]
push eax
push 0
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call edi
test esi, esi
je 0x446b4d
mov ecx, dword [0x4a8da0]
push ecx
push 0
call ebx
push eax
call edi
pop edi
pop esi
pop ebp
pop ebx
ret
xor esi, esi
jmp 0x446af3
Function at 0x401613
Capabilities:
Query environment variable

Disassembly:
jmp 0x4463b0
cmp dword [0x4892e0], 0
jne 0x4463de
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x4892e0], eax
je 0x4463de
push str.ShellExecuteEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4892e4], eax
push 0x100
push 0x4892e8
push str.TCSHONLYSTARTEXES
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x446468
cmp eax, 0xff
jg 0x446468
cmp eax, 1
jne 0x446409
mov dword [0x489f9c], eax
ret
push ebx
push ebp
push edi
mov edi, 0x4892e8
mov ebx, edi
mov ebp, 0x489240
push esi
lea esp, [esp]
mov al, byte [edi]
cmp al, 0x3b
je 0x44642a
test al, al
jne 0x446459
mov eax, edi
sub eax, ebx
je 0x446459
lea esi, [eax + 1]
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push ebx
push esi
push eax
mov dword [ebp], eax
call fcn.0046ecda
add ebp, 4
cmp byte [edi], 0
lea ebx, [edi + 1]
je 0x446464
add edi, 1
cmp ebp, 0x489290
jl 0x446420
pop esi
pop edi
pop ebp
pop ebx
ret

Function at 0x401627
Capabilities:
Write file on windows

Disassembly:
jmp 0x43f7c0
push ecx
mov eax, dword [esp + 8]
push eax
call fcn.00401a55
mov edx, dword [esp + 0x14]
add esp, 4
push 0
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x43f81f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jl 0x43f80f
cmp eax, 6
jle 0x43f80f
cmp eax, 0x6d
jne 0x43f80f
call fcn.0044ad41
mov dword [eax], 0x20
or eax, 0xffffffff
pop ecx
ret
call fcn.0044ad41
mov dword [eax], 9
or eax, 0xffffffff
pop ecx
ret
mov eax, dword [esp]
test eax, eax
jne 0x43f829
or eax, 0xffffffff
pop ecx
ret
Function at 0x40167c
Capabilities:
Enumerate files on windows

Disassembly:
jmp 0x441730
sub esp, 0x144
mov eax, dword [0x487180]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push ebp
mov ebp, dword [esp + 0x150]
xor ebx, ebx
push 0x13c
lea eax, [esp + 0x10]
push ebx
push eax
mov dword [esp + 0x14], ebx
call fcn.0044d2e0
add esp, 0xc
cmp ebp, ebx
jne 0x441783
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0044b8bd
add esp, 0x144
ret
mov eax, dword [ebp + 0xc]
test al, 2
push esi
push edi
je 0x44179e
mov edi, ebp
call fcn.00441180
test eax, eax
jge 0x441809
xor eax, eax
jmp 0x44186e
test al, 1
je 0x441809
lea ecx, [esp + 0x10]
push ecx
lea edx, [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov eax, dword [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x30]
mov edx, dword [ebp + 0x118]
mov eax, dword [section..data]
mov dword [ebp + 8], ecx
mov dword [ebp], esi
mov dword [edx], eax
add eax, 1
mov dword [section..data], eax
mov eax, dword [ebp + 0x118]
mov dword [eax + 4], ebx
mov ecx, dword [ebp + 0x118]
mov word [ecx + 8], bx
mov edi, dword [ebp + 0x118]
add edi, 0xa
mov ecx, 0x41
lea esi, [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
and dword [ebp + 0xc], 0xfffffffe
jmp 0x441868
test byte [ebp + 0xc], 2
jne 0x441826
mov eax, dword [ebp]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x441797
mov ecx, dword [ebp + 0x118]
mov eax, dword [section..data]
mov dword [ecx], eax
mov edx, dword [ebp + 0x118]
add eax, 1
mov dword [edx + 4], ebx
mov dword [section..data], eax
mov eax, dword [ebp + 0x118]
mov word [eax + 8], bx
test byte [ebp + 0xc], 2
jne 0x441868
mov edi, dword [ebp + 0x118]
add edi, 0xa
mov ecx, 0x41
lea esi, [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x118]
mov ecx, dword [esp + 0x150]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044b8bd
add esp, 0x144
ret
Function at 0x4016ae
Capabilities:
Terminate process

Disassembly:
jmp 0x4424d0
push esi
push 1
push fcn.00401a0f
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push 0x488e18
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
push 0
push 0x488e34
mov dword [0x488e14], 0
mov dword [0x488e38], 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x442532
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
push 0
mov dword [0x488e30], eax
call esi
push 0
push 0
push 0
push 0
mov dword [0x4a83a4], eax
call esi
push 0
push 0
push 0
push 0
mov dword [0x4a83a8], eax
call esi
cmp dword [0x488e30], 0
mov dword [0x4a83ac], eax
pop esi
jne 0x442583
jmp fcn.0044c3fb
ret

Function at 0x40172b
Capabilities:
Query environment variable

Disassembly:
jmp 0x446270
sub esp, 0x404
mov eax, dword [0x487180]
xor eax, esp
mov dword [esp + 0x400], eax
push edi
push 0x400
lea eax, [esp + 8]
push eax
push str.TCSHSUBSTHB
mov byte [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp byte [esp + 4], 0
lea edi, [esp + 4]
je 0x4462ee
push ebx
push ebp
push esi
mov ebx, edi
mov ebp, 0x489290
cmp byte [edi], 0x3b
jne 0x4462e3
mov eax, edi
sub eax, ebx
je 0x4462e3
lea esi, [eax + 1]
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push ebx
push esi
push eax
mov dword [ebp], eax
call fcn.0046ecda
add ebp, 4
lea ebx, [edi + 1]
add edi, 1
cmp byte [edi], 0
jne 0x4462b4
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x404]
pop edi
xor ecx, esp
call fcn.0044b8bd
add esp, 0x404
ret
Function at 0x401767
Capabilities:
Parse pe header
Read file on windows

Disassembly:
jmp 0x448010
sub esp, 0x184
mov eax, dword [0x487180]
xor eax, esp
mov dword [esp + 0x180], eax
mov ecx, dword [esp + 0x188]
push ebx
push esi
xor ebx, ebx
push ebx
push 0x40000080
push 3
push ebx
xor eax, eax
push 1
push 0x80000000
push ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44807c
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x180]
xor ecx, esp
call fcn.0044b8bd
add esp, 0x184
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0x80
lea edx, [esp + 0x118]
push edx
push esi
call edi
test eax, eax
jne 0x4480d1
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x448168
push 1
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
cmp eax, ebx
je 0x448168
cmp word [esp + 0x10c], 0x5a4d
jne 0x448168
mov edx, dword [esp + 0x148]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x20], edx
push 4
lea edx, [esp + 0x30]
push edx
push esi
call edi
test eax, eax
jne 0x448116
lea eax, [esp + 0x10]
push eax
push esi
call fcn.004010fa
add esp, 8
test eax, eax
je 0x448168
cmp dword [esp + 0x24], 0x4550
jne 0x448168
mov ecx, dword [esp + 0x148]
lea edx, [esp + 0x10]
push edx
add ecx, 0x18
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x20], ecx
push 0xe0
lea ecx, [esp + 0x38]
push ecx
push esi
call edi
test eax, eax
jne 0x44815b
lea edx, [esp + 0x10]
push edx
push esi
call fcn.004010fa
add esp, 8
test eax, eax
je 0x448168
cmp word [esp + 0x70], 2
jne 0x448168
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x18c]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0044b8bd
add esp, 0x184
ret
Function at 0x4017f8
Capabilities:
Query environment variable

Disassembly:
jmp 0x4481f0
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push edi
push 0x105
push 8
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call esi
mov edi, eax
test edi, edi
je 0x4482af
push 0x209
push 8
call ebx
push eax
call esi
mov esi, eax
test esi, esi
je 0x4482af
push 0x104
push edi
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x448299
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
push esi
push 0x208
push str..EXE
push ecx
push edi
mov byte [edi + 0x104], 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
je 0x448299
cmp eax, 0x208
ja 0x448299
push ebp
push esi
call fcn.00401767
add esp, 4
push edi
push 0
mov ebp, eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call edi
push esi
push 0
call ebx
push eax
call edi
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
push edi
push 0
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call edi
push esi
push 0
call ebx
push eax
call edi
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x40189d
Capabilities:
Get system information on windows
Terminate process

Disassembly:
jmp 0x445180
sub esp, 0x24
cmp dword [0x4a8c10], 0
je 0x44521e
mov eax, dword [0x4a8c1c]
mov ecx, dword [0x4a8c28]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 4
push 0x2000
push eax
push ecx
call esi
mov ecx, dword [0x4a8c28]
cmp eax, ecx
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x4451ea
test eax, eax
jne 0x4451e2
call edi
cmp dword [0x4a8998], 0
je 0x4451d5
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.0044c3fb
mov ecx, dword [0x4a8c28]
jmp 0x4451ea
mov ecx, eax
mov dword [0x4a8c28], ecx
mov edx, dword [0x4a8c2c]
push 4
push 0x1000
sub edx, ecx
push edx
push ecx
call esi
test eax, eax
jne 0x445260
call edi
cmp dword [0x4a8998], 0
je 0x445214
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
add esp, 0x24
jmp fcn.0044c3fb
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 4]
push 4
shl eax, 0xa
push 0x102000
push eax
push 0
mov dword [0x4a8c1c], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x4a8c28], eax
jne 0x445257
call fcn.0044c3fb
mov eax, dword [0x4a8c28]
mov dword [0x4a8c2c], eax
add esp, 0x24
ret
pop edi
pop esi
add esp, 0x24
ret
Function at 0x4018c5
Capabilities:
Check if file exists

Disassembly:
jmp 0x440cf0
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push edi
mov edi, dword [esp + 0x20]
push str._dev_tty
push edi
mov dword [esp + 0x14], 0
call esi
test eax, eax
mov ebx, dword [esp + 0x24]
jne 0x440d76
test ebx, ebx
jne 0x440d23
mov edi, str.CONIN_
jmp 0x440d2d
test bl, 1
je 0x440d2d
mov edi, str.CONOUT_
mov dword [esp + 0xc], 1
mov eax, ebx
and eax, 3
sub eax, 0
mov dword [esp + 0x10], 0xc
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
je 0x440db5
sub eax, 1
je 0x440dae
sub eax, 1
je 0x440da7
call fcn.0044ad41
pop edi
pop esi
mov dword [eax], 0x16
or eax, 0xffffffff
pop ebx
add esp, 0x10
ret
push str._dev_null
push edi
call esi
test eax, eax
jne 0x440d89
mov edi, 0x48202c
jmp 0x440d35
push str._dev_clipboard
push edi
call fcn.0044ecc5
add esp, 8
test eax, eax
jne 0x440d35
call fcn.00401bf9
mov esi, eax
jmp 0x440e5f
mov esi, 0xc0000000
jmp 0x440dba
mov esi, 0x40000000
jmp 0x440dba
mov esi, 0x80000000
mov eax, ebx
and eax, 0x300
cmp eax, 0x200
jg 0x440de3
je 0x440ddc
test eax, eax
je 0x440dd5
cmp eax, 0x100
jmp 0x440de8
mov eax, 3
jmp 0x440df3
mov eax, 5
jmp 0x440df3
cmp eax, 0x300
jne 0x440d61
mov eax, 2
xor ecx, ecx
test bl, 0x40
je 0x440dff
mov ecx, 0x4000000
push 0
push ecx
push eax
lea eax, [esp + 0x1c]
push eax
push 3
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x440e4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x440e38
call fcn.0044ad41
pop edi
mov dword [eax], 2
or eax, esi
pop esi
pop ebx
add esp, 0x10
ret
call fcn.0044ad41
pop edi
pop esi
mov dword [eax], 0xd
or eax, 0xffffffff
pop ebx
add esp, 0x10
ret
test bl, 8
je 0x440e5f
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x8000
push esi
call fcn.004017b2
mov esi, eax
add esp, 8
test esi, esi
jge 0x440e81
call fcn.0044c3fb
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret
cmp dword [esp + 0xc], 0
je 0x440e93
mov dword [esi*8 + 0x4a83bc], 2
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x4018cf
Capabilities:
Create pipe

Disassembly:
jmp 0x440970
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
push ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
xor eax, eax
or edi, 0xffffffff
cmp dword [eax*8 + 0x4a83b8], edi
je 0x4409fa
add eax, 1
cmp eax, 0x40
jl 0x4409a3
call fcn.0044ad41
mov dword [eax], 0x18
mov eax, edi
mov esi, dword [esp + 0x24]
mov dword [esi], eax
xor eax, eax
lea esp, [esp]
cmp dword [eax*8 + 0x4a83b8], edi
je 0x440a0e
add eax, 1
cmp eax, 0x40
jl 0x4409d0
call fcn.0044ad41
mov dword [eax], 0x18
mov eax, edi
pop edi
mov dword [esi + 4], eax
pop esi
xor eax, eax
pop ebx
add esp, 0x14
ret
mov ecx, dword [esp + 0xc]
mov dword [eax*8 + 0x4a83b8], ecx
mov dword [eax*8 + 0x4a83bc], ebx
jmp 0x4409c1
mov edx, dword [esp + 0x10]
mov dword [eax*8 + 0x4a83bc], ebx
mov dword [eax*8 + 0x4a83b8], edx
pop edi
mov dword [esi + 4], eax
pop esi
xor eax, eax
pop ebx
add esp, 0x14
ret
Function at 0x401983
Capabilities:
Check if file exists

Disassembly:
jmp 0x4404c0
sub esp, 0x20c
mov eax, dword [0x487180]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, dword [esp + 0x214]
test esi, esi
jne 0x440504
call fcn.0044ad41
mov dword [eax], 2
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0044b8bd
add esp, 0x20c
ret
push ebx
push ebp
push edi
push esi
push 0x47bdd8
lea eax, [esp + 0x20]
push 0x200
push eax
call fcn.0046f0bd
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0x10
lea ecx, [esp + 0x18]
push ecx
call ebp
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x10], 1
jne 0x4405c3
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne case.default.0x44055b
test byte [esp + 0x224], 1
je case.default.0x44055b
cmp edi, 3
ja case.default.0x44055b
jmp dword [edi*4 + 0x44062c]
push esi
push str._s.exe
jmp 0x440594
push esi
push str._s.cmd
push 0x200
lea eax, [esp + 0x24]
push eax
jmp 0x44059e
push esi
push str._s.bat
push 0x200
lea ecx, [esp + 0x24]
push ecx
jmp 0x44059e
push esi
push str._s.com
push 0x200
lea edx, [esp + 0x24]
push edx
call fcn.0046f0bd
add esp, 0x10
lea eax, [esp + 0x18]
push eax
call ebp
add dword [esp + 0x10], 1
mov ebx, eax
add edi, 1
cmp ebx, 0xffffffff
je 0x440541
jmp 0x4405c3
cmp ebx, 0xffffffff
je 0x4405e0
mov al, byte [esp + 0x224]
test al, 2
je 0x4405d3
test bl, 1
jne 0x4405e0
test al, 1
je 0x440610
test al, 9
je 0x4405f0
test bl, 0x10
je 0x4405f5
call fcn.0044ad41
mov dword [eax], 0xd
or eax, 0xffffffff
jmp 0x440612
test bl, 0x10
jne 0x440610
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
test eax, eax
jne 0x440610
cmp dword [esp + 0x10], 4
jg 0x4405e0
xor eax, eax
mov ecx, dword [esp + 0x218]
pop edi
pop ebp
pop ebx
pop esi
xor ecx, esp
call fcn.0044b8bd
add esp, 0x20c
ret