joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100135d1
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov dword [0x102f47b4], 0x275
mov dword [ebp - 0x10], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 0x10], eax
mov ecx, 0x15b1
xor edx, edx
mov esi, dword [ebp - 0x10]
mov esi, dword [esi + 0x10]
mov esi, dword [esi + 0x3c]
mov dword [0x102f47b4], 0x15b1
mov edi, dword [0x102f47b8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
add ecx, 0xfffff7df
mov esi, dword [ebp - 0x20]
cmp word [esi + eax*2], 0
mov edi, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], edi
je 0x100136b7
jmp 0x1001366a
xor eax, eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x38]
cmp word [ecx + edx*2 - 0x16], 0x61
mov dword [ebp - 0x3c], eax
je 0x100136fe
jmp 0x10013787
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [0x102f47b4], 0x15f6
cmp eax, 0x104
setl cl
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x41], cl
mov eax, 0x15f6
mov cl, byte [ebp - 0x41]
test cl, 1
mov edx, eax
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x40]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ebx
jne 0x10013623
jmp 0x100136b7
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
xor edx, edx
mov esi, dword [ebp - 0x2c]
mov dword [0x102f47b8], esi
mov edi, dword [ebp - 0x20]
cmp word [edi + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x3c], edx
jne 0x10013787
xor eax, eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x38]
cmp word [ecx + edx*2 - 0x18], 0x6f
mov dword [ebp - 0x3c], eax
je 0x1001364d
jmp 0x10013787
xor eax, eax
mov dword [0x102f47b8], 0x1cb9
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x38]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x3c], eax
jne 0x10013787
xor eax, eax
mov dword [0x102f47b8], 0x119b
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x38]
cmp word [ecx + edx*2 - 0x12], 0x64
mov dword [ebp - 0x3c], eax
jne 0x10013787
xor eax, eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x38]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x3c], eax
jne 0x10013787
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff9
shl eax, 1
mov ecx, dword [ebp - 0x20]
add ecx, eax
mov dword [ebp - 0x4c], ecx
xor eax, eax
mov ecx, dword [ebp - 0x4c]
cmp word [ecx], 0x6c
mov dword [ebp - 0x3c], eax
jne 0x10013787
mov eax, dword [ebp - 0x48]
add eax, 0xfffffc98
mov dword [0x102f47b8], eax
mov eax, 1
mov dword [ebp - 0x3c], eax
jmp 0x10013787
mov eax, dword [ebp - 0x3c]
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408e84
nop
nop
mov ecx, 0x7c537541
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
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
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0xaaf43aa
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x409960
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [0x5bb764], 0
mov esi, eax
je 0x4099a3
call fcn.00460760
mov dword [0x5bb764], 0
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 0x14], 0x10
jb 0x4099ae
mov ecx, dword [ecx]
push ecx
push ecx
mov edx, esi
mov ecx, edi
call fcn.00460410
add esp, 8
mov dword [0x5bb764], eax
test eax, eax
setne al
pop edi
pop esi
pop ebp
ret
Function at 0x40ca50
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x574ef0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5b5ef4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 0xc]
mov esi, ebx
cmp dword [ebx + 0x14], 8
mov eax, dword [ebx + 0x10]
jb 0x40ca95
mov esi, dword [ebx]
lea edi, [eax + eax]
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x40cab4
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x40caa3
mov eax, dword [ebp - 0x14]
mov edi, dword [eax + 0x18]
mov esi, dword [eax + 4]
and edi, edx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x18], edi
mov ecx, dword [eax + edi*8]
mov dword [ebp + 0xc], ecx
cmp ecx, esi
je 0x40cad5
mov esi, dword [eax + edi*8 + 4]
mov esi, dword [esi]
mov edx, dword [ebx + 0x10]
cmp esi, ecx
je 0x40cb64
mov esi, dword [esi + 4]
cmp dword [esi + 0x1c], 8
lea eax, [esi + 8]
jb 0x40caef
mov eax, dword [esi + 8]
cmp dword [ebx + 0x14], 8
mov edi, ebx
jb 0x40caf9
mov edi, dword [ebx]
mov ecx, dword [ebp + 0xc]
cmp edx, dword [esi + 0x18]
jne 0x40cad8
mov ecx, dword [ebx + 0x10]
mov edx, ecx
test ecx, ecx
je 0x40cb21
sub edi, eax
nop dword [eax]
mov cx, word [edi + eax]
cmp cx, word [eax]
jne 0x40cb5c
add eax, 2
sub edx, 1
jne 0x40cb10
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x14]
dec dword [ecx + 8]
call fcn.00401df0
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
jmp 0x40cad5
mov edi, dword [ebp + 0x10]
mov dword [ebp + 0xc], edi
mov eax, dword [edi]
cmp esi, eax
je 0x40cb91
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
lea ecx, [eax + ebx*8]
mov eax, dword [ecx]
cmp eax, dword [edx + 4]
jne 0x40cbaf
mov dword [ecx], edi
mov eax, dword [edx + 0xc]
mov dword [eax + ebx*8 + 4], edi
jmp 0x40cbd2
cmp eax, esi
jne 0x40cbb7
mov dword [ecx], edi
jmp 0x40cbd2
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x40cbd2
mov eax, dword [edx + 0xc]
lea ecx, [eax + ebx*8]
mov eax, dword [ecx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
mov ecx, edx
mov dword [ebp - 4], 2
call fcn.0040c5c0
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4179d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x597730
push ecx
movss dword [ebp - 8], xmm2
call dword [sym.imp.msvcrt.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x417a8d
mov esi, dword [sym.imp.msvcrt.dll_fseek]
push 2
push 0
push ebx
call esi
add esp, 0xc
push ebx
call dword [sym.imp.msvcrt.dll_ftell]
add esp, 4
mov dword [ebp - 4], eax
push 0
push 0
push ebx
call esi
mov esi, dword [ebp - 4]
add esp, 0xc
lea ecx, [esi + 1]
push ecx
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x417a75
push ebx
push esi
push 1
push edi
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, esi
jne 0x417a75
push ebx
mov byte [esi + edi], 0
call dword [sym.imp.msvcrt.dll_fclose]
movss xmm2, dword [ebp - 8]
add esp, 4
mov ecx, edi
call fcn.004177d0
push edi
mov esi, eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
add esp, 4
test edi, edi
je 0x417a8d
push edi
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42cac0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
movss xmm0, dword [ebp + 0x18]
mov edx, dword [ebp + 0x20]
mov dword [ebp - 0x24], eax
mov ax, word [ebp + 0x14]
mov word [ebp - 0x10], ax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, ecx
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x1c]
xor eax, eax
test ecx, ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], esi
sete al
movss dword [ebp - 4], xmm0
cmp eax, edx
jne 0x42cb1f
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx + 0xfc]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 0x100]
mov dword [ebp - 0x14], eax
jmp 0x42cb25
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x24]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0xf0]
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x452470
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5771e0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5b5ef4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [esi + 0x10], 0
jb 0x4524ae
mov eax, dword [esi]
xor ecx, ecx
push ecx
mov word [eax], cx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x452609
mov edi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call edi
test eax, eax
je 0x452581
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
cmp edi, 0xffffffff
je 0x452603
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x452603
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
shr eax, 1
xor ecx, ecx
push eax
mov word [ebp - 0x28], cx
lea ecx, [ebp - 0x28]
push ebx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
call fcn.00402e60
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
cmp esi, eax
je 0x452540
cmp dword [ebp - 0x14], 8
mov ecx, esi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00402e60
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x452603
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4525f9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x452625
jmp 0x4525f9
push 1
call edi
test eax, eax
je 0x452603
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
cmp edi, 0xffffffff
je 0x452603
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x452603
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push ebx
lea ecx, [ebp - 0x40]
call fcn.0041e220
push 0
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 1
push esi
push eax
call fcn.00401730
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x452603
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4525f9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45262a
push edx
push ecx
call fcn.00532e3c
add esp, 8
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053436b
mov esp, ebp
pop ebp
ret
call fcn.0055f150
call fcn.0055f150
int3
Function at 0x45a130
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x577ad0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5b5ef4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov ebx, dword [ebp + 8]
mov dword [edi], 0
mov dword [edi + 4], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x45a178
lock inc dword [eax + 8]
mov eax, dword [ebx]
mov dword [edi], eax
mov eax, dword [ebx + 4]
mov dword [edi + 4], eax
mov dword [ebp - 4], 0
lea ecx, [edi + 8]
mov dword [ebp + 8], ecx
lea esi, [ecx + 0xc]
movq xmm0, qword [ebx + 8]
movq qword [ecx], xmm0
mov eax, dword [ebx + 0x10]
mov dword [ecx + 8], eax
lea ecx, [esi + 4]
mov dword [ebp + 8], esi
mov al, byte [ebx + 0x14]
mov byte [esi], al
lea eax, [ebx + 0x18]
push eax
mov dword [ebp - 0x14], ecx
call fcn.00403190
lea eax, [ebx + 0x30]
mov byte [ebp - 4], 1
lea ecx, [esi + 0x1c]
push eax
mov dword [ebp - 0x14], ecx
call fcn.00403190
mov eax, dword [ebx + 0x48]
mov dword [esi + 0x34], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x45e010
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x45e01b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x45e0d7
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x595490]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x595490]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x595490]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x595490]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x595490]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x595490]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x595490]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x595490]
sub edi, 1
jne 0x45e030
pop edi
test esi, esi
je 0x45e0fa
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x595490]
sub esi, 1
jne 0x45e0e0
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x45e110
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x595490]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x595490]
mov dword [edi + 8], ecx
pop edi
pop esi
ret

Function at 0x45e8d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edx
mov ebx, esi
mov dword [ebp - 8], esi
imul ebx, dword [ebp + 8]
mov eax, ecx
mov dword [ebp - 4], eax
cmp byte [edi], 0
je 0x45e918
push 0
lea ecx, [ebp + 8]
push ecx
push ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45e90a
mov byte [edi + 8], 1
mov eax, dword [ebp + 8]
xor edx, edx
pop edi
div esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x1c]
mov esi, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
sub esi, edx
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ebx
add ecx, edx
push esi
push ecx
push dword [ebp - 4]
call sub.msvcrt.dll_memcpy
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45e950
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
mov edi, 1
cmp byte [esi], 0
je 0x45e98b
push 0
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 1]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45e986
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x45e9b8
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x45e99c
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp - 1]
push eax
call sub.msvcrt.dll_memcpy
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 8]
mov dword [esi + 0x1c], eax
cmp edi, 1
jne 0x45e9cc
movzx eax, byte [ebp - 1]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x45e9c3
cmp byte [esi + 8], 0
je 0x45e9c3
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x460410
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x577bd2
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5b5ef4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
push 0x44c
call fcn.00532e0c
mov ebx, eax
add esp, 4
mov dword [ebp - 0x18], ebx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebx], 0
mov dword [ebx + 4], 0xffffffff
mov dword [ebx + 0x238], 0xffffffff
mov dword [ebx + 0x23c], 0
mov dword [ebx + 0x240], 0
test esi, esi
je 0x4604bd
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x460490
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.00572c0c
add esp, 4
mov dword [ebx + 0x23c], eax
sub eax, esi
nop dword [eax]
mov cl, byte [esi]
lea esi, [esi + 1]
mov byte [eax + esi - 1], cl
test cl, cl
jne 0x4604b0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebx], 0
jne 0x46058b
cmp dword [ebx + 4], 0xffffffff
jne 0x46058b
lea edi, [ebx + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4604f0
sub ecx, edx
sar ecx, 1
movzx eax, word [ebx + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x460527
cmp eax, 0x2f
je 0x460527
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x460514
mov eax, dword [0x595308]
mov dword [edi], eax
push 0x20
call fcn.00532e0c
mov ecx, dword [ebp - 0x10]
add esp, 4
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x18], ecx
mov ecx, eax
mov word [eax], 0x100
mov byte [eax + 0x10], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0xc], 0
call fcn.0045ec60
mov dword [ebx], eax
test eax, eax
jne 0x460587
push ecx
mov ecx, ebx
mov dword [0x5bb6f8], 0x200
call fcn.004605e0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
jmp 0x460590
mov eax, 0x1000000
mov dword [0x5bb6f8], eax
test eax, eax
je 0x4605b5
push ecx
mov ecx, ebx
call fcn.004605e0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 8
call fcn.00532e0c
add esp, 4
mov dword [eax], 1
mov dword [eax + 4], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46b760
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov dword [0x5ba3f0], 0
push eax
push 0
push 0
push 0x46baf0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x46b7ae
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x5ba3f0]
xor eax, eax
test ecx, ecx
pop esi
sete al
mov esp, ebp
pop ebp
ret
mov ecx, 5
xor eax, eax
test ecx, ecx
mov dword [0x5ba3f0], ecx
pop esi
sete al
mov esp, ebp
pop ebp
ret
Function at 0x46e860
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push 0x57af88
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push dword [0x5ba6f8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x46e97f
push esi
push dword [0x5ba6f8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46e97f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x46e97f
push ebx
push esi
push dword [0x5ba6f8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 0
push eax
mov ecx, eax
mov dword [ebp - 8], 0
lea ebx, [esi + 1]
push ebx
call fcn.0046c490
test esi, esi
je 0x46e928
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x46e8fb
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
jmp 0x46e923
cmp ebx, esi
jb 0x46e90c
push esi
push edi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x46e928
push ebx
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
call sub.msvcrt.dll__errno
mov dword [eax], 0x22
call fcn.0055f110
mov eax, dword [ebp - 0x10]
mov byte [eax + esi], 0
push dword [ebp - 0x10]
call fcn.0041c030
mov esi, eax
add esp, 4
test esi, esi
je 0x46e96a
push dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
push esi
call fcn.0046e9f0
push esi
mov bl, al
call fcn.0041c110
add esp, 4
lea ecx, [ebp - 0x10]
call fcn.0046c820
mov al, bl
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x10]
xor bl, bl
call fcn.0046c820
mov al, bl
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8