joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46bbf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x46bc1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00476090
add esp, 4
or eax, 0xffffffff
jmp 0x46bc4a
mov ecx, dword [ebp - 4]
and ecx, 1
test ecx, ecx
je 0x46bc48
mov edx, dword [ebp + 0xc]
and edx, 2
test edx, edx
je 0x46bc48
mov dword [0x494390], 0xd
mov dword [0x494394], 5
or eax, 0xffffffff
jmp 0x46bc4a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x46d360
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x46d37d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x46d384
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x46d39b
mov ecx, dword [ebp - 4]
push ecx
call fcn.00476090
add esp, 4
or eax, 0xffffffff
jmp 0x46d39d
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4018b0
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 0x100
push 0x4426f0
push str.VIRTUAL_ENV
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp edi, 0x100
jb 0x401900
lea ecx, [edi*2 + 2]
push ecx
call fcn.0040e110
mov esi, eax
add esp, 4
test esi, esi
je 0x401a99
push edi
push esi
push str.VIRTUAL_ENV
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
jmp 0x40190d
test edi, edi
je 0x4019a1
mov esi, 0x4426f0
cmp word [esi], 0
je 0x4019a1
push esi
push str.Checking_for_Python_executable_in_virtual_env__ls_n
call fcn.00401130
push str.python.exe
push esi
push str._lsScripts_ls
push 0xffffffffffffffff
push 0x104
push 0x481e20
call fcn.004010b0
add esp, 0x20
push 0x481e20
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x481e20
cmp eax, 0xffffffff
jne 0x401965
push str.Python_executable__ls_missing_from_virtual_env_n
call fcn.00401130
add esp, 8
jmp 0x4019a1
mov eax, dword [0x4288dc]
imul esi, eax, 0x424
inc eax
mov dword [0x4288dc], eax
push 0x104
add esi, 0x4288e0
lea eax, [esi + 0x14]
push eax
call fcn.0040d05e
push str.venv
push 8
push esi
mov dword [esi + 0x10], 0
call fcn.0040d05e
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 0x401a04
cmp dword [ebp - 4], 0
je 0x401a04
push str.locating_Pythons_in_64bit_registry_n
call fcn.00401130
push 0
push 0
push 0x20119
mov edx, str.SOFTWAREPythonPythonCore
mov ecx, 0x80000001
call fcn.00401230
push 0
push 0
push 0x20119
mov edx, str.SOFTWAREPythonPythonCore
mov ecx, 0x80000002
call fcn.00401230
add esp, 0x1c
push str.locating_Pythons_in_native_registry_n
call fcn.00401130
push 0
push 0
push 0x20019
mov edx, str.SOFTWAREPythonPythonCore
mov ecx, 0x80000001
call fcn.00401230
push 0
push 0
push 0x20019
mov edx, str.SOFTWAREPythonPythonCore
mov ecx, 0x80000002
call fcn.00401230
add esp, 0x1c
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
call esi
push eax
call edi
test eax, eax
je 0x401a76
cmp dword [ebp - 8], 0
je 0x401a76
push 1
push 0x40
push 0x20119
mov edx, str.SOFTWAREMicrosoftAppModelLookasideuserSoftwarePythonPythonCore
mov ecx, 0x80000002
call fcn.00401230
add esp, 0xc
push 0x401840
push 0x424
push dword [0x4288dc]
push 0x4288e0
call fcn.0040d240
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.Could_not_allocate_environment_buffer
push 0x68
call fcn.00401180
int3
Function at 0x401b90
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 0x481620
mov ebx, str.environment
call fcn.004010b0
add esp, 0x14
push 0x100
push 0x4426f0
push 0x481620
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp edi, 0x100
jb 0x401c01
lea ecx, [edi*2 + 2]
push ecx
call fcn.0040e110
mov esi, eax
add esp, 4
test esi, esi
je 0x401cb3
push edi
push esi
push 0x481620
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
jmp 0x401c99
test edi, edi
jne 0x401c94
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor esi, esi
cmp word [0x4428f0], si
je 0x401c46
push 0x4428f0
push 0x400
push 0x481620
push esi
push str.pythonX
push str.defaults
call edi
test eax, eax
je 0x401c46
mov esi, 0x481620
mov ebx, 0x4428f0
jmp 0x401c99
cmp word [0x4286d0], si
je 0x401c7c
push 0x4286d0
push 0x400
push 0x481620
push 0
push str.pythonX
push str.defaults
call edi
test eax, eax
je 0x401c7c
mov esi, 0x481620
mov ebx, 0x4286d0
jmp 0x401c99
push str.pythonX
push str.found_no_configured_value_for__ls_n
call fcn.00401130
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
ret
mov esi, 0x4426f0
push ebx
push esi
push str.pythonX
push str.found_configured_value__ls_ls_in__ls_n
call fcn.00401130
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
ret
push str.Could_not_allocate_environment_buffer
push 0x68
call fcn.00401180
int3
Function at 0x401e50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [section..data]
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.00401130
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 0x40201a
cmp dword [ebp - 0x7c], 0x70
jne 0x40201a
test esi, esi
je 0x40201a
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 0x401ed5
push str.Job_information_setting_failed
push 0x65
call fcn.00401180
push 0x44
lea eax, [ebp - 0xd8]
push 0
push eax
call fcn.00404a90
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.00401de0
test eax, eax
jne 0x401f1c
push str.stdin_duplication_failed
push 0x64
call fcn.00401180
push 0xfffffffffffffff5
call ebx
lea edx, [ebp - 0x9c]
mov ecx, eax
call fcn.00401de0
test eax, eax
jne 0x401f3d
push str.stdout_duplication_failed
push 0x64
call fcn.00401180
push 0xfffffffffffffff4
call ebx
lea edx, [ebp - 0x98]
mov ecx, eax
call fcn.00401de0
test eax, eax
jne 0x401f5e
push str.stderr_duplication_failed
push 0x64
call fcn.00401180
push 1
push 0x401e40
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x401f7b
push str.control_handler_setting_failed
push 0x65
call fcn.00401180
lea eax, [ebp - 0x8c]
mov dword [ebp - 0xac], 0x100
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 0x401fb9
push edi
push str.Unable_to_create_process_using__ls
push 0x65
call fcn.00401180
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 0x402002
push str.Failed_to_get_exit_code_of_process
push 0x65
call fcn.00401180
push dword [ebp - 0x7c]
push str.child_process_exit_code:__d_n
call fcn.00401130
add esp, 8
push dword [ebp - 0x7c]
call fcn.004072f3
push str.Job_information_querying_failed
push 0x65
call fcn.00401180
int3
Function at 0x402370
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0041c2c0
mov eax, dword [section..data]
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 0x4023bf
push ebx
push str.read_commands:__ls:_not_enough_space_for_names_n
call fcn.00401130
add esp, 8
cmp word [ebp - 0x1004], 0
lea edi, [ebp - 0x1004]
je 0x4024d4
push ebx
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0
push edi
push str.commands
call esi
cmp eax, 0x3ff
jne 0x402400
push edi
push ebx
push str.read_commands:__ls:_not_enough_space_for__ls_n
call fcn.00401130
add esp, 0xc
mov ax, word [ebp - 0x804]
lea esi, [ebp - 0x804]
test ax, ax
je 0x402435
movzx ecx, ax
movzx eax, cx
push eax
call fcn.0040dbd0
add esp, 4
test eax, eax
je 0x402435
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x402415
jmp 0x4024a6
cmp word [esi], 0
je 0x4024a6
mov ecx, edi
call fcn.00402240
mov esi, eax
test esi, esi
jne 0x40247b
mov eax, dword [0x482028]
cmp eax, 0x64
jl 0x402469
lea eax, [ebp - 0x804]
push eax
push edi
push 0x423a30
call fcn.00401130
add esp, 0xc
jmp 0x4024a6
imul esi, eax, 0xa08
add esi, 0x442b00
inc eax
mov dword [0x482028], eax
push 0xffffffffffffffff
push edi
push 0x104
push esi
call fcn.0040e1e9
push 0xffffffffffffffff
lea eax, [ebp - 0x804]
push eax
lea eax, [esi + 0x208]
push 0x400
push eax
call fcn.0040e1e9
add esp, 0x20
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4024b0
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 0x4023d3
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004036ef
mov esp, ebp
pop ebp
ret
Function at 0x4036e0
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.00403100

Function at 0x403fd8
Capabilities:
Parse pe header

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

Function at 0x4071ad
Capabilities:
Parse pe header

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

Function at 0x4115f3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41ecb4
push 0x41ecac
push str.FlsAlloc
push 0x1f
call fcn.004114d1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411627
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d188]
call esi
jmp 0x41162d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x411671
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41ecc4
push 0x41ecbc
push str.FlsGetValue
push 0x21
call fcn.004114d1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4116a8
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d188]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4116b0
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41eccc
push 0x41ecc4
push str.FlsSetValue
push 0x22
call fcn.004114d1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4116ea
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41d188]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x412f81
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x428390]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x412fc1
cmp byte [ebx], 0xa
jne 0x412fc1
or byte [edi + eax + 0x28], 4
jmp 0x412fc6
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4130c5
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4130a8
inc eax
cmp dl, 0xd
je 0x412ff2
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x413018
cmp eax, ecx
jae 0x413026
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x412fda
jmp 0x4130c5
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4130a3
cmp dword [ebp - 0x10], 0
je 0x4130a3
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x428390]
test byte [eax + edi + 0x28], 0x48
je 0x41307d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x413068
mov byte [esi], dl
jmp 0x413079
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x428390]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4130c5
cmp byte [ebp - 1], 0xa
jne 0x41308c
cmp esi, ebx
jne 0x41308c
mov byte [esi], 0xa
jmp 0x4130c4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00418981
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4130c5
mov byte [esi], 0xd
jmp 0x4130c4
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x428390]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4130c2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4130c5
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4130ce
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x428390]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x413114
cmp word [ebx], dx
jne 0x413114
or byte [eax + edi + 0x28], 4
jmp 0x413119
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x41327c
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x41325c
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41315a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x413190
cmp eax, edx
jae 0x41319e
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x413135
jmp 0x41327c
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413257
cmp dword [ebp - 0x18], 0
je 0x413257
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x428390]
test byte [eax + edi + 0x28], 0x48
je 0x41322d
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4131f1
mov word [esi], cx
jmp 0x413228
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x428390]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x428390]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x428390]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41327c
pop eax
cmp word [ebp - 4], ax
jne 0x41323d
cmp esi, ebx
jne 0x41323d
mov word [esi], ax
jmp 0x413279
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00418981
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41327c
push 0xd
pop eax
jmp 0x413238
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x428390]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x413276
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41327c
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x413d1f
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x413d6a
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00413eba
test al, al
jne 0x413d64
sub edx, 2
cmp edx, edi
jne 0x413d4a
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x413d8c
lea eax, [edi + 2]
cmp edx, eax
je 0x413d8c
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00413c6b
add esp, 0x10
jmp 0x413e86
push esi
lea ecx, [ebp - 0x255]
call fcn.00413eba
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x413dcf
push dword [ebp - 0x25c]
jmp 0x413d7c
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x413e0c
cmp word [ebp - 0x226], 0
je 0x413e2d
cmp word [ebp - 0x226], ax
jne 0x413e0c
cmp word [ebp - 0x224], 0
je 0x413e2d
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00413c6b
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x413e79
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x413de6
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x413e61
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x413e86
push 0x413a9b
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040d240
add esp, 0x10
jmp 0x413e56
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004036ef
leave
ret

Function at 0x4149c2
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4149d3
pop esi
ret
push ebx
push edi
push esi
call fcn.0041498b
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040f794
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4149fb
push ebx
push esi
push edi
call fcn.00405510
add esp, 0xc
push 0
call fcn.0040f75a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x414dcb
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00414a10
Function at 0x41a445
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0041a3c1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x41a5b4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x41a5b4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x41a569
jg 0x41a4a1
test eax, eax
je 0x41a55f
push 1
push 0x1000
call fcn.0041135b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x41a4c4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x41a556
push 0x8000
push ebx
call fcn.0040eafc
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x41a4ed
jg 0x41a4e8
cmp ecx, 0x1000
jb 0x41a4ed
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004123dd
add esp, 0x10
cmp eax, 0xffffffff
je 0x41a532
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x41a4e8
jl 0x41a519
test ecx, ecx
jne 0x41a4da
push dword [ebp - 0xc]
push ebx
call fcn.0040eafc
push esi
call fcn.0040f75a
add esp, 0xc
xor ebx, ebx
jmp 0x41a5c2
cmp byte [edi + 0x24], 0
je 0x41a549
cmp dword [edi + 0x20], 5
jne 0x41a549
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x41a554
mov ebx, dword [edi + 0x18]
jmp 0x41a556
xor ebx, ebx
push esi
call fcn.0040f75a
pop ecx
jmp 0x41a5c2
test ecx, ecx
jg 0x41a52b
jl 0x41a569
test eax, eax
jae 0x41a52b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418981
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x41a589
cmp byte [edi + 0x1c], 0
je 0x41a52b
jmp 0x41a5ba
push ebx
call fcn.004151a1
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41a52b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x41a5c2
cmp byte [edi + 0x1c], 0
je 0x41a5bf
mov ebx, dword [edi + 0x18]
jmp 0x41a5c2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00418981
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41bee0
Capabilities:
Parse pe header

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