joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001c320
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002bccc
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x10045070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x100489f4]
mov esi, 0x409
mov dword [ebp - 0x7c], 0
test al, 1
jne 0x1001c38a
or eax, 1
mov dword [0x100489f4], eax
mov dword [ebp - 4], 0
call fcn.1001c040
push 0x1002d340
call fcn.10027354
add esp, 4
mov dword [ebp - 4], 0xffffffff
push ecx
lea eax, [ebp - 0x78]
push eax
mov ecx, 0x100489c4
call fcn.1001c2b0
cmp dword [eax + 0x14], 8
jb 0x1001c3a1
mov eax, dword [eax]
lea ecx, [ebp - 0x7c]
push ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [ebp - 0x64], 8
mov edi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
jb 0x1001c3c5
push dword [ebp - 0x78]
call edi
add esp, 4
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x1001c472
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x80]
push ecx
push 0
push str.language
push eax
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x80], 4
mov dword [ebp - 0x84], 4
call edi
test eax, eax
jne 0x1001c41c
mov esi, dword [ebp - 0x88]
jmp 0x1001c520
xor eax, eax
push 0x4e
push eax
mov word [ebp - 0x60], ax
lea eax, [ebp - 0x5e]
push eax
mov dword [ebp - 0x84], 0x28
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
push str.language
push dword [ebp - 0x7c]
call edi
test eax, eax
jne 0x1001c520
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.MSVCR110.dll__wtoi]
add esp, 4
mov esi, eax
jmp 0x1001c520
mov eax, dword [0x100489f4]
test al, 1
jne 0x1001c4a3
or eax, 1
mov dword [0x100489f4], eax
mov dword [ebp - 4], 1
call fcn.1001c040
push 0x1002d340
call fcn.10027354
add esp, 4
mov dword [ebp - 4], 0xffffffff
push ecx
lea eax, [ebp - 0x78]
push eax
mov ecx, 0x100489c4
call fcn.1001c2b0
cmp dword [eax + 0x14], 8
jb 0x1001c4ba
mov eax, dword [eax]
lea ecx, [ebp - 0x7c]
push ecx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [ebp - 0x64], 8
jb 0x1001c4d8
push dword [ebp - 0x78]
call edi
add esp, 4
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x1001c529
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x84]
push ecx
push 0
push str.language
push eax
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x84], 4
mov dword [ebp - 0x88], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
cmove esi, dword [ebp - 0x80]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10027146
mov esp, ebp
pop ebp
ret
Function at 0x1001c550
Capabilities:
Reference sql statements
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp esi, 0xffffffff
jne 0x1001c565
call fcn.1001c320
mov esi, eax
mov edi, 0x10034244
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
movzx ebx, ax
xor eax, eax
mov ecx, 0x10034240
lea ebx, [ebx]
mov edx, dword [ecx]
cmp edx, ebx
jne 0x1001c589
lea edi, [ecx + 4]
cmp edx, esi
je 0x1001c5a2
add ecx, 0x54
inc eax
cmp ecx, 0x10038680
jl 0x1001c580
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
imul eax, eax, 0x54
pop edi
pop esi
add eax, 0x10034244
pop ebx
pop ebp
ret 4

Function at 0x1001c5c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x10045070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0x38
lea eax, [ebp - 0x244]
push 0
push eax
call sub.MSVCR110.dll_memset
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x248], 0x3c
mov dword [ebp - 0x244], 0x40
mov dword [ebp - 0x23c], str.open
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x234], esi
call sub.MSVCR110.dll_memset
add esp, 0x14
mov edx, 0x104
push edi
push ecx
lea ecx, [ebp - 0x20c]
call fcn.10019740
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x248]
push eax
mov dword [ebp - 0x22c], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
pop edi
xor ecx, ebp
pop esi
call fcn.10027146
mov esp, ebp
pop ebp
ret 0x10

Function at 0x1001cc70
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1001cca1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp + 8], esi
call fcn.10028ab0
mov dword [esp + 0xc], eax
test esi, esi
jne 0x1001cca9
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, 0x10038b88
lea ecx, [esp + 8]
call fcn.1001cb10
int3
Function at 0x1001cee0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002bf90
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10045070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_class_std::exception_const__]
mov dword [ebp - 4], 0
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x14]
push 0xffffffffffffffff
push 0
lea eax, [edi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.10002b50
mov dword [ebp - 4], 1
mov dword [esi + 0x2c], vtable.boost::exception.0
mov ecx, dword [edi + 0x30]
mov dword [esi + 0x30], ecx
test ecx, ecx
je 0x1001cf6b
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.1.0
mov dword [esi + 0x2c], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x1001df90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002bfb8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10045070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_class_std::exception_const__]
mov dword [ebp - 4], 0
mov dword [edi], vtable.boost::system::system_error.0
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
lea ecx, [edi + 0x14]
push 0xffffffffffffffff
push 0
lea eax, [esi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.10002b50
mov dword [edi + 0x2c], vtable.boost::exception.0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0xffffffff
mov dword [edi], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.1.0
mov dword [edi + 0x2c], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10024e60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1002c9fb
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x10045070]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
push edi
mov eax, dword [0x10045070]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
push eax
push 0x1003040c
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
call fcn.10009b60
push 0x104
lea eax, [esp + 0x48]
push eax
push 0
mov dword [esp + 0x26c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
cmp word [esp + 0x44], ax
jne 0x10024f0e
xor ecx, ecx
jmp 0x10024f24
lea ecx, [esp + 0x44]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10024f15
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x14]
call fcn.10009b60
cmp dword [esp + 0x3c], 8
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
jb 0x10024f49
push dword [esp + 0x28]
call esi
add esp, 4
xor eax, eax
mov word [esp + 0x28], ax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
call fcn.10009620
cmp dword [esp + 0x20], 8
jb 0x10024f7e
push dword [esp + 0xc]
call esi
add esp, 4
push 1
push dword [esp + 0x3c]
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x4c], 0x5c
call fcn.10024fe0
inc eax
push eax
push 0
push edi
lea ecx, [esp + 0x34]
call fcn.10024e20
cmp dword [esp + 0x3c], 8
jb 0x10024fb8
push dword [esp + 0x28]
call esi
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.10027146
mov esp, ebp
pop ebp
ret

Function at 0x10025160
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10045070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push str.SoftwareiSafe
push 0x80000002
mov dword [ebp - 8], 1
xor bl, bl
mov dword [ebp - 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100251cb
push edi
push esi
lea eax, [ebp - 8]
push eax
push 0
push str.path
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, bl
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x100251d9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.10027146
mov esp, ebp
pop ebp
ret
Function at 0x10028fa0
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x10029010
push 0xffffffffffffffff
push 0x100295b8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10045070]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x10047c18]
test eax, eax
jne 0x10029042
xor ebx, ebx
jmp 0x1002904b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [esp + 0x14], ebx
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
or ecx, 0xffffffff
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x1002908f
jmp 0x10029076
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp dword [ebx + 0x14], 0
mov edi, dword [ebx + 0x10]
jne 0x100290c9
test edi, edi
jne 0x100290d0
push edi
call fcn.10029170
add esp, 4
or ecx, 0xffffffff
mov dword [esp + 0x20], 0xffffffff
test ebx, ebx
je 0x100290b5
lea eax, [ebx + 4]
lock xadd dword [eax], ecx
dec ecx
jne 0x100290b5
mov eax, dword [ebx]
push 0
mov ecx, ebx
call dword [eax]
push ebx
push 0
call esi
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
test edi, edi
je 0x10029108
lea ecx, [ecx]
mov eax, dword [edi + 4]
mov dword [ebx + 0x10], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x100290f9
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [edi]
push 0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call esi
push eax
call ebp
push edi
push 0
call esi
push eax
call ebp
mov edi, dword [ebx + 0x10]
test edi, edi
jne 0x100290d0
mov esi, dword [ebx + 0x14]
test esi, esi
je 0x10029070
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x14], eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x10029128
mov eax, dword [ecx]
push dword [esi + 0xc]
call dword [eax + 4]
mov edi, dword [esi + 8]
test edi, edi
je 0x10029155
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10029155
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea eax, [edi + 8]
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x10029155
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov esi, dword [ebx + 0x14]
test esi, esi
jne 0x10029113
jmp 0x10029070
Function at 0x10029010
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x10029010
push 0xffffffffffffffff
push 0x100295b8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10045070]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x10047c18]
test eax, eax
jne 0x10029042
xor ebx, ebx
jmp 0x1002904b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [esp + 0x14], ebx
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
or ecx, 0xffffffff
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x1002908f
jmp 0x10029076
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp dword [ebx + 0x14], 0
mov edi, dword [ebx + 0x10]
jne 0x100290c9
test edi, edi
jne 0x100290d0
push edi
call fcn.10029170
add esp, 4
or ecx, 0xffffffff
mov dword [esp + 0x20], 0xffffffff
test ebx, ebx
je 0x100290b5
lea eax, [ebx + 4]
lock xadd dword [eax], ecx
dec ecx
jne 0x100290b5
mov eax, dword [ebx]
push 0
mov ecx, ebx
call dword [eax]
push ebx
push 0
call esi
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
test edi, edi
je 0x10029108
lea ecx, [ecx]
mov eax, dword [edi + 4]
mov dword [ebx + 0x10], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x100290f9
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [edi]
push 0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call esi
push eax
call ebp
push edi
push 0
call esi
push eax
call ebp
mov edi, dword [ebx + 0x10]
test edi, edi
jne 0x100290d0
mov esi, dword [ebx + 0x14]
test esi, esi
je 0x10029070
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x14], eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x10029128
mov eax, dword [ecx]
push dword [esi + 0xc]
call dword [eax + 4]
mov edi, dword [esi + 8]
test edi, edi
je 0x10029155
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10029155
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea eax, [edi + 8]
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x10029155
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov esi, dword [ebx + 0x14]
test esi, esi
jne 0x10029113
jmp 0x10029070
Function at 0x10029170
Capabilities:
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x100295e8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x10045070]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
push 0x10028f00
push 0x10047c10
call fcn.10028ba0
mov eax, dword [0x10047c18]
add esp, 8
test eax, eax
je 0x100291c9
push dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
add esp, 0x1c
ret
lea ecx, [esp + 4]
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_void_]
mov dword [esp + 0x10], 0
mov dword [esp + 4], vtable.boost::thread_resource_error.0
lea eax, [esp + 4]
push eax
mov dword [esp + 0x20], 0
call fcn.1001ce50
int3
Function at 0x402527
Capabilities:
Terminate process

Disassembly:
jmp 0x43d6e7
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x43d6f8
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004038b9
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4025b8
Capabilities:
Query environment variable

Disassembly:
jmp 0x4465e2
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4465f3
pop esi
ret
push ebx
push edi
push esi
call fcn.004464c9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00402aae
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x44661b
push ebx
push esi
push edi
call fcn.00403788
add esp, 0xc
push 0
call fcn.00403d96
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4037f6
Capabilities:
Parse pe header

Disassembly:
jmp 0x407d2c
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407d6b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407d6b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407d6b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407d6b
cmp dword [ecx + 0x74], 0xe
jbe 0x407d6b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4444c9
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x472040]
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 0x444514
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00444a8a
test al, al
jne 0x44450e
sub edx, 2
cmp edx, edi
jne 0x4444f4
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x444536
lea eax, [edi + 2]
cmp edx, eax
je 0x444536
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004440c2
add esp, 0x10
jmp 0x444630
push esi
lea ecx, [ebp - 0x255]
call fcn.00444a8a
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 0x444579
push dword [ebp - 0x25c]
jmp 0x444526
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 0x4445b6
cmp word [ebp - 0x226], 0
je 0x4445d7
cmp word [ebp - 0x226], ax
jne 0x4445b6
cmp word [ebp - 0x224], 0
je 0x4445d7
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004440c2
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x444623
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x444590
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x44460b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x444630
push 0x4439a8
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00403698
add esp, 0x10
jmp 0x444600
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.00402220
leave
ret
Function at 0x457479
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x474108]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4574b9
cmp byte [ebx], 0xa
jne 0x4574b9
or byte [eax + edi + 0x28], 4
jmp 0x4574be
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4575bc
mov al, byte [edx]
cmp al, 0x1a
je 0x45759e
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4574ed
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x457512
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x45751c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4574cf
jmp 0x4575bc
push 0
lea eax, [ebp - 0xc]
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 0x457599
cmp dword [ebp - 0xc], 0
je 0x457599
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x474108]
test byte [eax + edi + 0x28], 0x48
je 0x457573
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x45755e
mov byte [esi], dl
jmp 0x45756f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x474108]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4575bc
cmp byte [ebp - 1], 0xa
jne 0x457582
cmp esi, ebx
jne 0x457582
mov byte [esi], 0xa
jmp 0x4575bb
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401500
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4575bc
mov byte [esi], 0xd
jmp 0x4575bb
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x474108]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4575b8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4575bc
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret