joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401830
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
mov eax, dword [sym.imp.libLLVM.dll_vtable_for_llvm::cl::Option]
add eax, 8
mov dword [ecx], eax
mov word [ecx + 4], 0
movzx eax, word [ecx + 6]
and eax, 0xffff8000
or eax, 1
mov word [ecx + 6], ax
lea edi, [ecx + 0x30]
xorps xmm0, xmm0
movups xmmword [ecx + 8], xmm0
movups xmmword [ecx + 0x14], xmm0
mov dword [ecx + 0x24], edi
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 1
lea eax, [ecx + 0x48]
mov dword [ecx + 0x34], eax
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x3c], 1
mov dword [ecx + 0x40], 0
mov dword [ecx + 0x44], 0
call fcn.0040e94e
mov ecx, dword [esi + 0x28]
lea edx, [ecx + 1]
cmp edx, dword [esi + 0x2c]
ja 0x401948
mov edx, dword [esi + 0x24]
mov dword [edx + ecx*4], eax
inc dword [esi + 0x28]
xorps xmm0, xmm0
movups xmmword [esi + 0x4c], xmm0
movups xmmword [esi + 0x55], xmm0
mov dword [esi], 0x40ffac
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov eax, dword [sym.imp.libLLVM.dll_vtable_for_llvm::cl::parser_std::__1::basic_string_char__std::__1::char_traits_char___std::__1::allocator_char_____]
add eax, 8
mov dword [esi + 0x74], eax
lea eax, [esi + 0x78]
mov dword [esi + 0x78], 0x410594
mov dword [esi + 0x88], eax
push ebp
call sub.msvcrt.dll_strlen
add esp, 4
mov dword [esp], ebp
mov dword [esp + 4], eax
sub esp, 8
movsd xmm0, qword [esp + 8]
movsd qword [esp], xmm0
mov ecx, esi
call fcn.0040e97e
movsd xmm0, qword [ebx]
movsd qword [esi + 0x14], xmm0
mov ecx, esi
mov eax, dword [esp + 0x24]
push dword [eax]
call fcn.0040e966
mov ecx, esi
call fcn.0040e960
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
lea ecx, [esi + 0x24]
push 4
push edx
push edi
mov edi, eax
call fcn.0040e912
mov eax, edi
mov ecx, dword [esi + 0x28]
jmp 0x4018b2
Function at 0x403b10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
mov eax, dword [sym.imp.libLLVM.dll_vtable_for_llvm::cl::Option]
add eax, 8
mov dword [ecx], eax
mov word [ecx + 4], 0
movzx eax, word [ecx + 6]
and eax, 0xffff8000
or eax, 1
mov word [ecx + 6], ax
lea edi, [ecx + 0x30]
xorps xmm0, xmm0
movups xmmword [ecx + 8], xmm0
movups xmmword [ecx + 0x14], xmm0
mov dword [ecx + 0x24], edi
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 1
lea eax, [ecx + 0x48]
mov dword [ecx + 0x34], eax
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x3c], 1
mov dword [ecx + 0x40], 0
mov dword [ecx + 0x44], 0
call fcn.0040e94e
mov ecx, dword [esi + 0x28]
lea edx, [ecx + 1]
cmp edx, dword [esi + 0x2c]
ja 0x403c16
mov edx, dword [esi + 0x24]
mov dword [edx + ecx*4], eax
inc dword [esi + 0x28]
xorps xmm0, xmm0
movups xmmword [esi + 0x4c], xmm0
movups xmmword [esi + 0x55], xmm0
mov dword [esi], 0x40ffac
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov eax, dword [sym.imp.libLLVM.dll_vtable_for_llvm::cl::parser_std::__1::basic_string_char__std::__1::char_traits_char___std::__1::allocator_char_____]
add eax, 8
mov dword [esi + 0x74], eax
lea eax, [esi + 0x78]
mov dword [esi + 0x78], 0x410594
mov dword [esi + 0x88], eax
mov eax, dword [ebp]
movzx ecx, word [esi + 6]
and eax, 3
shl eax, 7
and ecx, 0xfffffe7f
or ecx, eax
mov word [esi + 6], cx
movsd xmm0, qword [ebx]
movsd qword [esi + 0x14], xmm0
mov ecx, esi
mov eax, dword [esp + 0x1c]
push dword [eax]
call fcn.0040e966
mov ecx, esi
call fcn.0040e960
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
lea ecx, [esi + 0x24]
push 4
push edx
push edi
mov edi, eax
call fcn.0040e912
mov eax, edi
mov ecx, dword [esi + 0x28]
jmp 0x403b8f
Function at 0x409190
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
cmp dword [ecx + 0x40], 0
je 0x40932e
mov esi, ecx
mov ecx, dword [ecx + 0x44]
test ecx, ecx
je 0x409340
mov dword [esp], 0
mov eax, dword [esi + 0x54]
test al, 0x10
jne 0x4091e7
test al, 8
je 0x409335
mov eax, dword [esi + 0x4c]
mov dword [esp + 4], eax
cmp byte [esi + 0x5a], 0
je 0x409270
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, ecx
sar eax, 0x1f
xor ebx, ebx
jmp 0x4092dc
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x14]
je 0x409201
mov eax, dword [esi]
mov ecx, esi
push 0xffffffffffffffff
call dword [eax + 0x34]
cmp eax, 0xffffffff
je 0x4092f5
lea ebp, [esi + 0x48]
nop word cs:[eax + eax]
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x34]
add edx, eax
mov edi, dword [ecx]
lea ebx, [esp + 8]
push ebx
push edx
push eax
push ebp
call dword [edi + 0x14]
mov ebx, eax
mov edi, dword [esp + 8]
mov eax, dword [esi + 0x20]
sub edi, eax
push dword [esi + 0x40]
push edi
push 1
push eax
call sub.msvcrt.dll_fwrite
add esp, 0x10
cmp eax, edi
jne 0x4092f5
cmp ebx, 1
je 0x409210
cmp ebx, 2
je 0x4092f5
push dword [esi + 0x40]
call sub.msvcrt.dll_fflush
add esp, 4
test eax, eax
jne 0x4092f5
jmp 0x409335
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edx, dword [esi + 0x24]
mov edi, dword [esi + 0x28]
sub edi, edx
test eax, eax
jle 0x40929c
mov edx, edi
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
sar edx, 0x1f
imul ecx, eax
mov eax, ecx
sar eax, 0x1f
add ecx, edi
adc eax, edx
xor ebx, ebx
jmp 0x4092dc
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
je 0x4092d3
mov ebx, edi
sar ebx, 0x1f
mov ecx, dword [esi + 0x44]
sub eax, dword [esi + 8]
mov ebp, dword [ecx]
push eax
push edx
push dword [esi + 0x20]
lea eax, [esp + 0x10]
push eax
call dword [ebp + 0x20]
add eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
sub ecx, eax
mov eax, ecx
sar eax, 0x1f
add ecx, edi
adc eax, ebx
mov bl, 1
jmp 0x4092dc
mov eax, edi
sar eax, 0x1f
xor ebx, ebx
mov ecx, edi
xor edx, edx
neg ecx
sbb edx, eax
push 1
push edx
push ecx
push dword [esi + 0x40]
call fcn.0040e0e0
add esp, 0x10
test eax, eax
je 0x4092fe
mov dword [esp], 0xffffffff
jmp 0x409335
test bl, bl
je 0x409309
mov eax, dword [esp + 4]
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x20]
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x54], 0
mov dword [esp], 0
mov eax, dword [esp]
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00409760
int3
Function at 0x40e2a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x18]
cmp eax, 3
ja case.default.0x40e2b1
jmp dword [eax*4 + 0x410a00]
cmp dword [0x415088], 0
je 0x40e3c0
push 0x41508c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4150a4]
test edi, edi
je 0x40e3b5
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40e2fb
mov edi, dword [edi + 8]
test edi, edi
je 0x40e3b5
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x40e2f0
test esi, esi
je 0x40e2f0
mov ecx, dword [edi + 4]
call dword [0x410ad0]
push esi
call ecx
add esp, 4
jmp 0x40e2f0
call fcn.0040db70
jmp case.default.0x40e2b1
cmp dword [0x415088], 0
je case.default.0x40e2b1
push 0x41508c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4150a4]
test edi, edi
je 0x40e3a8
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40e367
mov edi, dword [edi + 8]
test edi, edi
je 0x40e3a8
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x40e360
test esi, esi
je 0x40e360
mov ecx, dword [edi + 4]
call dword [0x410ad0]
push esi
call ecx
add esp, 4
jmp 0x40e360
cmp dword [0x415088], 0
jne 0x40e39c
push 0x41508c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x415088], 1
jmp case.default.0x40e2b1
push 0x41508c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp case.default.0x40e2b1
push 0x41508c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x415088]
cmp eax, 1
jne case.default.0x40e2b1
mov eax, dword [0x4150a4]
test eax, eax
je 0x40e3f2
nop word cs:[eax + eax]
mov esi, dword [eax + 8]
push eax
call sub.msvcrt.dll_free
add esp, 4
mov eax, esi
test esi, esi
jne 0x40e3e0
mov dword [0x4150a4], 0
mov dword [0x415088], 0
push 0x41508c
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, 1
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40e530
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push edi
push esi
mov esi, dword [0x40f004]
movzx ecx, word [esi]
xor eax, eax
cmp ecx, 0x5a4d
jne 0x40e596
mov ecx, dword [esi + 0x3c]
cmp dword [esi + ecx], 0x4550
jne 0x40e596
add esi, ecx
movzx ecx, word [esi + 0x18]
cmp ecx, 0x10b
jne 0x40e596
movzx ecx, word [esi + 6]
test ecx, ecx
je 0x40e596
mov edx, dword [esp + 0xc]
sub edx, dword [0x40f004]
movzx edi, word [esi + 0x14]
add esi, edi
add esi, 0x18
jmp 0x40e586
add esi, 0x28
dec ecx
je 0x40e596
mov edi, dword [esi + 0xc]
cmp edi, edx
ja 0x40e580
add edi, dword [esi + 8]
cmp edi, edx
jbe 0x40e580
mov eax, esi
pop esi
pop edi
ret
Function at 0x401fc0
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x59e080]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x402009
push str.SetDefaultDllDirectories
push 0x57f550
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402009
push 0xc00
call eax
test eax, eax
jne 0x40209e
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
test ecx, ecx
je 0x40209e
cmp ecx, 0x104
ja 0x40209e
cmp word [ebp + ecx*2 - 0x2d6], 0x5c
je 0x402042
mov eax, 0x5c
mov word [ebp + ecx*2 - 0x2d4], ax
inc ecx
mov al, byte [str.userenv]
push esi
mov esi, str.userenv
test al, al
je 0x40209d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + ecx*2]
mov ecx, edi
inc esi
movzx eax, al
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
mov al, byte [esi]
inc esi
test al, al
jne 0x402065
xor eax, eax
mov dword [ecx], 0x64002e
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov dword [ecx + 4], 0x6c006c
call ebx
mov al, byte [esi]
test al, al
jne 0x402062
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051bf16
mov esp, ebp
pop ebp
ret
Function at 0x407950
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call fcn.005620eb
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x40797d
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40ab50
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x59fa14], 0
jne 0x40ab98
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00409260
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0051c12c
add esp, 4
test esi, esi
pop esi
jne 0x40ab90
xor al, al
mov esp, ebp
pop ebp
ret 4
mov al, 1
mov esp, ebp
pop ebp
ret 4
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
mov esp, ebp
pop ebp
ret 4
Function at 0x40ae30
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040c0f0
cmp eax, 0xffffffff
je 0x40ae5d
mov ecx, eax
and cl, 0x11
cmp cl, 1
jne 0x40ae5d
and eax, 0xfffffffe
push eax
push esi
call fcn.0040b570
test al, al
je 0x40ae89
cmp byte [0x59fa14], 0
push esi
jne 0x40ae9b
lea eax, [ebp - 0xc]
push eax
call fcn.00409260
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0051c12c
add esp, 4
test esi, esi
jne 0x40ae92
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
pop esi
setne al
mov esp, ebp
pop ebp
ret 4

Function at 0x40aeb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c68b
mov eax, dword fs:[0]
push eax
sub esp, 0x360
mov eax, dword [0x59e080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [edi]
mov dword [edi + 4], 0
mov word [eax], cx
cmp byte [0x59fa14], cl
jne 0x40af5c
lea eax, [ebp - 0x128]
mov byte [ebp - 0x128], cl
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x40b038
cmp eax, 0x114
jae 0x40b038
lea eax, [ebp - 0x128]
mov byte [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x36c]
push eax
call fcn.00409230
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.004081f0
push dword [ebp - 0x36c]
call fcn.0051c12c
add esp, 4
mov al, 1
jmp 0x40b03a
xor eax, eax
mov word [ebp - 0x354], ax
lea eax, [ebp - 0x354]
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test esi, esi
je 0x40b038
cmp esi, 0x114
jae 0x40afa7
xor eax, eax
mov ecx, edi
mov word [ebp - 0x12c], ax
lea eax, [ebp - 0x354]
push eax
call fcn.004083a0
mov al, 1
jmp 0x40b03a
lea ecx, [ebp - 0x360]
call fcn.00408160
mov dword [ebp - 4], 1
cmp esi, dword [ebp - 0x358]
jbe 0x40afcd
push esi
lea ecx, [ebp - 0x360]
call fcn.00408ae0
push dword [ebp - 0x360]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, eax
test edx, edx
je 0x40b02a
mov ecx, dword [ebp - 0x360]
xor eax, eax
mov word [ecx + esi*2], ax
cmp word [ecx], ax
je 0x40aff9
inc eax
cmp word [ecx + eax*2], 0
jne 0x40aff1
mov dword [ebp - 0x35c], eax
cmp eax, edx
jne 0x40b02a
lea eax, [esi - 1]
cmp eax, edx
jne 0x40b02a
lea eax, [ebp - 0x360]
mov ecx, edi
push eax
call fcn.004081f0
push dword [ebp - 0x360]
call fcn.0051c12c
add esp, 4
mov al, 1
jmp 0x40b03a
push dword [ebp - 0x360]
call fcn.0051c12c
add esp, 4
xor al, al
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.0051bf16
mov esp, ebp
pop ebp
ret 4
Function at 0x40b0c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c6d0
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x59e080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x59fa14], 0
mov esi, dword [ebp + 8]
jne 0x40b14d
lea eax, [ebp - 0x128]
mov byte [ebp - 0x128], 0
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x360]
push eax
call fcn.00409230
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.004081f0
push dword [ebp - 0x360]
mov dword [ebp - 4], 0xffffffff
call fcn.0051c12c
add esp, 4
jmp 0x40b178
xor eax, eax
mov word [ebp - 0x354], ax
lea eax, [ebp - 0x354]
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
mov ecx, esi
lea eax, [ebp - 0x354]
push eax
call fcn.004083a0
push esi
call fcn.0040cf40
test edi, edi
je 0x40b18e
cmp edi, 0x114
jae 0x40b18e
mov al, 1
jmp 0x40b190
xor al, al
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.0051bf16
mov esp, ebp
pop ebp
ret 4

Function at 0x40b1d0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x59fa14], 0
jne 0x40b216
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00409260
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0051c12c
add esp, 4
test esi, esi
pop esi
jne 0x40b20e
xor al, al
mov esp, ebp
pop ebp
ret 4
mov al, 1
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
mov esp, ebp
pop ebp
ret 4
Function at 0x40b4a0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x59fa14], 0
jne 0x40b4dd
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00409260
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0051c12c
add esp, 4
test esi, esi
setne al
pop esi
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne al
mov esp, ebp
pop ebp
ret 4

Function at 0x40b570
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x59fa14], 0
jne 0x40b5b9
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00409260
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0051c12c
add esp, 4
test esi, esi
pop esi
jne 0x40b5b1
xor al, al
mov esp, ebp
pop ebp
ret 8
mov al, 1
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
mov esp, ebp
pop ebp
ret 8

Function at 0x40c0f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x59fa14], 0
jne 0x40c12a
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00409260
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0051c12c
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c3a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40c3d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40c3d2
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
pop esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x40c4d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov edx, 0x400000
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov dword [ebx], 0
nop
push 0
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
cmp esi, 0x400000
mov eax, esi
cmova eax, edx
push eax
push edi
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x10]
add dword [ebx], ecx
test eax, eax
je 0x40c538
test ecx, ecx
je 0x40c52d
add edi, ecx
mov edx, 0x400000
sub esi, ecx
mov ecx, dword [ebp - 4]
jne 0x40c4f0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x415230
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
movzx eax, byte [ebx + 9]
push eax
lea ecx, [esi + 0x44]
mov dword [ebp - 4], esi
call fcn.004151a0
movzx eax, byte [ebx + 8]
lea ecx, [esi + 0x50]
push eax
call fcn.004151a0
lea edi, [esi + 0x74]
mov ecx, edi
call fcn.00416390
push 0x88
call fcn.0051c0e5
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
test esi, esi
je 0x415334
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov byte [esi + 0x24], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi], vtable.NCoderMixer2::CCoderMT.0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov byte [esi + 0x68], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
jmp 0x415336
xor esi, esi
mov ecx, dword [edi + 4]
lea eax, [ecx + 1]
mov dword [edi + 4], eax
mov eax, dword [edi]
mov dword [eax + ecx*4], esi
mov eax, dword [ebx + 0xc]
mov dword [esi + 0x20], eax
mov edi, dword [ebx]
test edi, edi
je 0x415356
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x415363
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x18], edi
mov edi, dword [ebx + 4]
test edi, edi
je 0x415373
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x415380
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 4]
mov dword [esi + 0x1c], edi
pop edi
mov al, byte [eax + 0x5c]
mov byte [esi + 0x68], al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4191a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d100
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x59e080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x48], 0x40000
mov dword [esi + 0x24], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x4c], 0x40000
mov dword [esi + 0x28], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x50], 0x40000
mov dword [esi + 0x2c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x54], 0x40000
mov dword [esi + 0x30], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x58], 0x40000
push 0x40d9c0
push fcn.00419190
push 4
push 4
lea eax, [esi + 0x2f8]
mov dword [ebp - 4], 0
push eax
mov dword [esi], vtable.NCompress::NBcj2::CDecoder.0
mov dword [esi + 4], vtable.NCompress::NBcj2::CDecoder.1.0
mov dword [esi + 8], vtable.NCompress::NBcj2::CDecoder.2.0
mov dword [esi + 0xc], vtable.NCompress::NBcj2::CDecoder.3.0
mov dword [esi + 0x10], vtable.NCompress::NBcj2::CDecoder.4.0
mov dword [esi + 0x14], vtable.NCompress::NBcj2::CDecoder.5.0
mov dword [esi + 0x18], vtable.NCompress::NBcj2::CDecoder.6.0
mov word [esi + 0x2e0], 0
mov dword [esi + 0x2e8], 0
mov dword [esi + 0x2ec], 0
mov dword [esi + 0x2f0], 0
mov dword [esi + 0x2f4], 0
call fcn.0051bf5c
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret