joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49bfb8
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
mov ebx, eax
xor esi, esi
mov edx, 0x40
mov eax, ebx
call fcn.0049b5a8
test al, al
je 0x49bffc
mov eax, ebx
cmp word [eax], 0x5a4d
jne 0x49bffc
cmp dword [eax + 0x3c], 0
je 0x49bffc
mov esi, dword [eax + 0x3c]
add esi, ebx
mov edx, 0xf8
mov eax, esi
call fcn.0049b5a8
test al, al
je 0x49bffa
cmp dword [esi], 0x4550
je 0x49bffc
xor esi, esi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x49d158
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x49d208
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xc8
mov eax, ebx
call fcn.00404164
mov eax, dword [ebp - 8]
call fcn.00402754
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00406ebc
xor eax, eax
push ebp
push 0x49d1eb
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x49d1d5
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040435c
lea edx, [ebp - 0xc]
mov eax, dword [ebx]
call fcn.00408434
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004041b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49d1f2
mov eax, dword [ebp - 4]
call fcn.00402774
ret
Function at 0x49d214
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 0x148], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49d3c9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
call fcn.0049d158
xor eax, eax
mov dword [ebp - 8], eax
cmp dword [0x4ac13c], 1
je 0x49d39e
xor edx, edx
mov eax, 2
call fcn.004846f8
mov esi, eax
mov dword [ebp - 0x144], 0x128
lea edx, [ebp - 0x144]
mov eax, esi
call fcn.00484718
jmp 0x49d390
push 1
call sub.kernel32.dll_Sleep_1
cmp dword [0x4ac13c], 1
je 0x49d398
call sub.kernel32.dll_GetCurrentProcessId
cmp eax, dword [ebp - 0x13c]
jne 0x49d2c6
lea edx, [ebp - 0x144]
mov eax, esi
call fcn.00484738
jmp 0x49d390
lea eax, [ebp - 0x148]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.004043d4
mov eax, dword [ebp - 0x148]
lea edx, [ebp - 0xc]
call fcn.00408d60
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.004043d4
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.0049d060
cmp bl, al
jne 0x49d383
test bl, bl
jne 0x49d364
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x13c]
call fcn.0049ceb0
test al, al
je 0x49d355
lea edx, [ebp - 0x14c]
mov eax, dword [ebp - 0x18]
call fcn.00408434
mov edx, dword [ebp - 0x14c]
mov eax, dword [ebp - 0x1c]
call fcn.00404570
je 0x49d364
lea edx, [ebp - 0x144]
mov eax, esi
call fcn.00484738
jmp 0x49d390
lea edx, [ebp - 0x144]
mov eax, esi
call fcn.00484738
jmp 0x49d390
push 0
mov eax, dword [ebp - 0x13c]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
push 0xa
call sub.kernel32.dll_Sleep_1
lea edx, [ebp - 0x144]
mov eax, esi
call fcn.00484738
test eax, eax
jne 0x49d293
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49d3d0
lea eax, [ebp - 0x14c]
mov edx, 2
call fcn.00404188
lea eax, [ebp - 0x1c]
mov edx, 5
call fcn.00404188
ret

Function at 0x49d3dc
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, 0x4ac138
xor eax, eax
mov edx, dword [ebx]
xor ecx, ecx
mov dword [edx + eax*4 + 0x4f4], ecx
inc eax
cmp eax, 0x65
jne 0x49d3e7
xor edi, edi
push 0x40
mov eax, dword [ebx]
mov ecx, dword [eax + 0x330]
mov dl, 1
mov eax, dword [0x415f04]
call fcn.00419e64
mov ebp, eax
mov eax, dword [ebx]
mov dword [eax + 0x698], ebp
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp + 4]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov esi, eax
mov eax, dword [ebx]
mov dword [eax + 0x6a0], esi
test esi, esi
je 0x49d45c
push 0
push 0
push 0
push 4
push esi
call sub.kernel32.dll_MapViewOfFile
mov ebp, eax
mov eax, dword [ebx]
mov dword [eax + 0x6a4], ebp
test ebp, ebp
je 0x49d45c
mov edi, 1
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x49d730
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov word [ebp - 6], dx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404614
xor eax, eax
push ebp
push 0x49d7a8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.004041b8
mov eax, dword [ebp - 4]
call fcn.00404424
mov esi, eax
test esi, esi
jle 0x49d792
mov ebx, 1
mov eax, edi
call fcn.0040467c
movzx edx, word [ebp - 6]
shr edx, 8
mov ecx, dword [ebp - 4]
xor dl, byte [ecx + ebx - 1]
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x49d775
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49d7af
lea eax, [ebp - 4]
call fcn.00404164
ret

Function at 0x49d7b8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
mov ebx, eax
lea eax, [ebp - 0x105]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
mov edx, ebx
lea eax, [ebp - 0x105]
call fcn.00409098
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49e310
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov word [ebp - 6], dx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404614
xor eax, eax
push ebp
push 0x49e388
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.004041b8
mov eax, dword [ebp - 4]
call fcn.00404424
mov esi, eax
test esi, esi
jle 0x49e372
mov ebx, 1
mov eax, edi
call fcn.0040467c
movzx edx, word [ebp - 6]
shr edx, 8
mov ecx, dword [ebp - 4]
xor dl, byte [ecx + ebx - 1]
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x49e355
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49e38f
lea eax, [ebp - 4]
call fcn.00404164
ret
Function at 0x4a05dc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4a0789
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 4]
mov edx, 8
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 4]
mov edx, 0x4a07a0
call fcn.00404570
je 0x4a076e
mov eax, dword [ebp - 4]
mov edx, 0x4a07ac
call fcn.00404570
jne 0x4a0664
push 1
push 0
push 0
lea ecx, [ebp - 8]
mov edx, 9
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 8]
call fcn.00404624
push eax
push 0x4a07b0
mov eax, esi
call fcn.00441b28
push eax
call sub.shell32.dll_ShellExecuteA
jmp 0x4a076e
mov eax, dword [ebp - 4]
mov edx, 0x4a07c0
call fcn.00404570
jne 0x4a068f
lea ecx, [ebp - 0xc]
mov edx, 0xa
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0xc]
call fcn.0042cce8
jmp 0x4a076e
mov eax, dword [ebp - 4]
mov edx, 0x4a07cc
call fcn.00404570
jne 0x4a06ea
lea ecx, [ebp - 0x10]
mov edx, 0xa
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x10]
call fcn.0042cce8
push 1
push 0
push 0
lea ecx, [ebp - 0x14]
mov edx, 9
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x14]
call fcn.00404624
push eax
push 0x4a07b0
mov eax, esi
call fcn.00441b28
push eax
call sub.shell32.dll_ShellExecuteA
jmp 0x4a076e
mov eax, dword [ebp - 4]
mov edx, 0x4a07d8
call fcn.00404570
jne 0x4a076e
push 4
lea ecx, [ebp - 0x18]
mov edx, 0xa
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x18]
call fcn.00404624
push eax
lea edx, [ebp - 0x1c]
mov eax, dword [0x4aa2c0]
mov eax, dword [eax]
call fcn.0045a678
mov eax, dword [ebp - 0x1c]
call fcn.00404624
mov ecx, eax
mov eax, dword [0x4aa2c0]
mov eax, dword [eax]
pop edx
call fcn.0045ac64
cmp eax, 6
jne 0x4a076e
push 1
push 0
push 0
lea ecx, [ebp - 0x20]
mov edx, 9
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x20]
call fcn.00404624
push eax
push 0x4a07b0
mov eax, esi
call fcn.00441b28
push eax
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0790
lea eax, [ebp - 0x20]
mov edx, 8
call fcn.00404188
ret

Function at 0x4a11f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov word [ebp - 6], dx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404614
xor eax, eax
push ebp
push 0x4a1268
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.004041b8
mov eax, dword [ebp - 4]
call fcn.00404424
mov esi, eax
test esi, esi
jle 0x4a1252
mov ebx, 1
mov eax, edi
call fcn.0040467c
movzx edx, word [ebp - 6]
shr edx, 8
mov ecx, dword [ebp - 4]
xor dl, byte [ecx + ebx - 1]
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x4a1235
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a126f
lea eax, [ebp - 4]
call fcn.00404164
ret
Function at 0x40db80
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4143d8], 0
jne 0x40dc01
cmp dword [0x4143f8], 0
jne 0x40dbb0
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4143f8], eax
test eax, eax
jne 0x40dbb0
push str.GetEnvironmentStrings_failed
call fcn.0040cbf0
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4143f8]
jmp 0x40dbc4
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00406b08
pop ecx
mov edi, eax
test eax, eax
jne 0x40dbbc
lea edi, [ebp + 1]
push edi
call fcn.00405c3c
pop ecx
mov ebx, eax
mov dword [0x4143dc], ebx
test ebx, ebx
jne 0x40dbee
xor eax, eax
jmp 0x40dcc4
push edi
mov edx, dword [0x4143f8]
push edx
push ebx
call fcn.004069b8
add esp, 0xc
jmp 0x40dc21
xor esi, esi
mov ebx, dword [0x4143d8]
jmp 0x40dc1b
push eax
call fcn.00406b08
pop ecx
test eax, eax
jne 0x40dc17
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40dc0b
lea ebx, [esi + 4]
push 4
mov dword [0x4143e0], ebx
inc ebx
push ebx
call fcn.00405a3c
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x40dc44
xor eax, eax
jmp 0x40dcc4
cmp dword [0x4143d8], 0
jne 0x40dc75
xor esi, esi
mov ebx, dword [0x4143dc]
mov eax, dword [esp]
mov ebp, eax
jmp 0x40dc66
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00406b08
pop ecx
mov edi, eax
test eax, eax
jne 0x40dc5c
jmp 0x40dca6
xor esi, esi
mov ebx, dword [0x4143d8]
mov eax, dword [esp]
mov edi, eax
jmp 0x40dca0
push eax
call fcn.00406b08
pop ecx
test eax, eax
je 0x40dc95
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x40dc99
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40dc84
mov eax, dword [0x4143d8]
test eax, eax
je 0x40dcb6
push eax
call fcn.00405c4c
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4143d8], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
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
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x401270
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00445820
mov eax, dword [0x454004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x808]
call fcn.00401100
add esp, 0xc
mov esi, eax
cmp dword [ebp + 8], 0
jne 0x4012e9
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x1008]
mov ecx, eax
call fcn.00401250
add esp, 4
test esi, esi
js 0x4012e9
lea eax, [ebp - 0x1008]
push eax
push str.:__ls
mov eax, 0x400
sub eax, esi
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x808]
lea eax, [eax + esi*2]
push eax
call fcn.004011a0
add esp, 0x14
lea eax, [ebp - 0x808]
push eax
push 0x44fb48
push 2
call fcn.00421235
add esp, 4
push eax
call fcn.004010a0
add esp, 0xc
push dword [ebp + 8]
call fcn.0040f9bf
int3
Function at 0x401c00
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push pe_nt_image_headers32
push 0x46feb0
push str.VIRTUAL_ENV
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp edi, 0x100
jb 0x401c50
lea ecx, [edi*2 + 2]
push ecx
call fcn.00424f55
mov esi, eax
add esp, 4
test esi, esi
je 0x401de9
push edi
push esi
push str.VIRTUAL_ENV
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
jmp 0x401c5d
test edi, edi
je 0x401cf1
mov esi, 0x46feb0
cmp word [esi], 0
je 0x401cf1
push esi
push str.Checking_for_Python_executable_in_virtual_env__ls_n
call fcn.00401220
push str.python.exe
push esi
push str._lsScripts_ls
push 0xffffffffffffffff
push 0x104
push 0x4af5e0
call fcn.004011a0
add esp, 0x20
push 0x4af5e0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x4af5e0
cmp eax, 0xffffffff
jne 0x401cb5
push str.Python_executable__ls_missing_from_virtual_env_n
call fcn.00401220
add esp, 8
jmp 0x401cf1
mov eax, dword [0x45609c]
imul esi, eax, 0x424
inc eax
mov dword [0x45609c], eax
push 0x104
add esi, 0x4560a0
lea eax, [esi + 0x14]
push eax
call fcn.00422288
push str.venv
push 8
push esi
mov dword [esi + 0x10], 0
call fcn.00422288
add esp, 0x18
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_IsWow64Process]
push eax
call edi
test eax, eax
je 0x401d54
cmp dword [ebp - 4], 0
je 0x401d54
push str.locating_Pythons_in_64bit_registry_n
call fcn.00401220
push 0
push 0
push 0x20119
mov edx, str.SOFTWAREPythonPythonCore
mov ecx, 0x80000001
call fcn.00401430
push 0
push 0
push 0x20119
mov edx, str.SOFTWAREPythonPythonCore
mov ecx, 0x80000002
call fcn.00401430
add esp, 0x1c
push str.locating_Pythons_in_native_registry_n
call fcn.00401220
push 0
push 0
push 0x20019
mov edx, str.SOFTWAREPythonPythonCore
mov ecx, 0x80000001
call fcn.00401430
push 0
push 0
push 0x20019
mov edx, str.SOFTWAREPythonPythonCore
mov ecx, 0x80000002
call fcn.00401430
add esp, 0x1c
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
call esi
push eax
call edi
pop edi
pop esi
test eax, eax
je 0x401dc8
cmp dword [ebp - 8], 0
je 0x401dc8
push 1
push 0x40
push 0x20119
mov edx, str.SOFTWAREMicrosoftAppModelLookasideuserSoftwarePythonPythonCore
mov ecx, 0x80000002
call fcn.00401430
add esp, 0xc
push 0x401a40
push 0x424
push dword [0x45609c]
push 0x4560a0
call fcn.004225c0
add esp, 0x10
mov esp, ebp
pop ebp
ret
push str.Could_not_allocate_environment_buffer
push 0x68
call fcn.00401270
int3
Function at 0x401ee0
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push ebx
push esi
push edi
push str.pythonX
push str.py__ls
push 0xffffffffffffffff
push 0x400
push 0x4aede0
mov ebx, str.environment
call fcn.004011a0
add esp, 0x14
push pe_nt_image_headers32
push 0x46feb0
push 0x4aede0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp edi, 0x100
jb 0x401f51
lea ecx, [edi*2 + 2]
push ecx
call fcn.00424f55
mov esi, eax
add esp, 4
test esi, esi
je 0x402003
push edi
push esi
push 0x4aede0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
jmp 0x401fe9
test edi, edi
jne 0x401fe4
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor esi, esi
cmp word [0x4700b0], si
je 0x401f96
push 0x4700b0
push 0x400
push 0x4aede0
push esi
push str.pythonX
push str.defaults
call edi
test eax, eax
je 0x401f96
mov esi, 0x4aede0
mov ebx, 0x4700b0
jmp 0x401fe9
cmp word [0x455e90], si
je 0x401fcc
push 0x455e90
push 0x400
push 0x4aede0
push 0
push str.pythonX
push str.defaults
call edi
test eax, eax
je 0x401fcc
mov esi, 0x4aede0
mov ebx, 0x455e90
jmp 0x401fe9
push str.pythonX
push str.found_no_configured_value_for__ls_n
call fcn.00401220
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
ret
mov esi, 0x46feb0
push ebx
push esi
push str.pythonX
push str.found_configured_value__ls_ls_in__ls_n
call fcn.00401220
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
ret
push str.Could_not_allocate_environment_buffer
push 0x68
call fcn.00401270
int3
Function at 0x4021a0
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x454004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
push edi
push str.run_child:_about_to_run__ls_n
call fcn.00401220
add esp, 8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
mov esi, eax
lea eax, [ebp - 0x7c]
push eax
push 0x70
lea eax, [ebp - 0x78]
push eax
push 9
push esi
call dword [sym.imp.KERNEL32.dll_QueryInformationJobObject]
test eax, eax
je 0x40236a
cmp dword [ebp - 0x7c], 0x70
jne 0x40236a
test esi, esi
je 0x40236a
or dword [ebp - 0x68], 0x3000
lea eax, [ebp - 0x78]
push 0x70
push eax
push 9
push esi
call dword [sym.imp.KERNEL32.dll_SetInformationJobObject]
test eax, eax
jne 0x402225
push str.Job_information_setting_failed
push 0x65
call fcn.00401270
push 0x44
lea eax, [ebp - 0xd8]
push 0
push eax
call fcn.00405c00
add esp, 0xc
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff6
call ebx
lea edx, [ebp - 0xa0]
mov ecx, eax
call fcn.00402130
test eax, eax
jne 0x40226c
push str.stdin_duplication_failed
push 0x64
call fcn.00401270
push 0xfffffffffffffff5
call ebx
lea edx, [ebp - 0x9c]
mov ecx, eax
call fcn.00402130
test eax, eax
jne 0x40228d
push str.stdout_duplication_failed
push 0x64
call fcn.00401270
push 0xfffffffffffffff4
call ebx
lea edx, [ebp - 0x98]
mov ecx, eax
call fcn.00402130
test eax, eax
jne 0x4022ae
push str.stderr_duplication_failed
push 0x64
call fcn.00401270
push 1
push 0x402190
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x4022cb
push str.control_handler_setting_failed
push 0x65
call fcn.00401270
lea eax, [ebp - 0x8c]
mov dword [ebp - 0xac], pe_nt_image_headers32
push eax
lea eax, [ebp - 0xd8]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x402309
push edi
push str.Unable_to_create_process_using__ls
push 0x65
call fcn.00401270
push dword [ebp - 0x8c]
push esi
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0xffffffffffffffff
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x402352
push str.Failed_to_get_exit_code_of_process
push 0x65
call fcn.00401270
push dword [ebp - 0x7c]
push str.child_process_exit_code:__d_n
call fcn.00401220
add esp, 8
push dword [ebp - 0x7c]
call fcn.0040f9bf
push str.Job_information_querying_failed
push 0x65
call fcn.00401270
int3
Function at 0x4027f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00445820
mov eax, dword [0x454004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x1004]
push edi
mov ebx, ecx
push ebx
push 0x400
push eax
push 0
push 0
push str.commands
call esi
cmp eax, 0x3ff
jne 0x40283f
push ebx
push str.read_commands:__ls:_not_enough_space_for_names_n
call fcn.00401220
add esp, 8
cmp word [ebp - 0x1004], 0
lea edi, [ebp - 0x1004]
je 0x402954
push ebx
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0
push edi
push str.commands
call esi
cmp eax, 0x3ff
jne 0x402880
push edi
push ebx
push str.read_commands:__ls:_not_enough_space_for__ls_n
call fcn.00401220
add esp, 0xc
mov ax, word [ebp - 0x804]
lea esi, [ebp - 0x804]
test ax, ax
je 0x4028b5
movzx ecx, ax
movzx eax, cx
push eax
call fcn.004248a0
add esp, 4
test eax, eax
je 0x4028b5
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x402895
jmp 0x402926
cmp word [esi], 0
je 0x402926
mov ecx, edi
call fcn.00402630
mov esi, eax
test esi, esi
jne 0x4028fb
mov eax, dword [0x4af7e8]
cmp eax, 0x64
jl 0x4028e9
lea eax, [ebp - 0x804]
push eax
push edi
push 0x450928
call fcn.00401220
add esp, 0xc
jmp 0x402926
imul esi, eax, 0xa08
add esi, 0x4702c0
inc eax
mov dword [0x4af7e8], eax
push 0xffffffffffffffff
push edi
push 0x104
push esi
call fcn.0042502b
push 0xffffffffffffffff
lea eax, [ebp - 0x804]
push eax
lea eax, [esi + 0x208]
push 0x400
push eax
call fcn.0042502b
add esp, 0x20
mov ecx, edi
lea edx, [ecx + 2]
jmp 0x402930
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402930
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
sub ecx, edx
sar ecx, 1
lea edi, [edi + ecx*2]
add edi, 2
cmp word [edi], ax
jne 0x402853
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404058
mov esp, ebp
pop ebp
ret
Function at 0x403f80
Capabilities:
Accept command line arguments
Check if file exists
Get common file path
Get file attributes
Get file version info
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.00403860

Function at 0x43237d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00431f75

Function at 0x43257b
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043244f

Function at 0x435170
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00434b38
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..rsrc
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x7bd41805
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..pdata
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x1fd55a82
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401318
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004016dc
test esi, esi
jne 0x40134e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004017c8
jmp 0x40136c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040122c
mov edi, eax
test esi, esi
je 0x40136c
cmp dword [ebx], 0
je 0x40136c
dec esi
jmp 0x401355
add esp, 0x108
pop edi
pop esi
pop ebx
ret