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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49ab20
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x467677
mov ecx, dword [0x672fd0]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x4675cc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.004661f0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.00488a66
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.0048892d
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x671d0c
call fcn.0048899b
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.004665b0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.00488a66
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.0048892d
lea ecx, [esp + 0xc]
call fcn.00488e41
mov ecx, dword [esp + 0xc]
push 0x67274c
push ecx
call fcn.00477654
add esp, 8
test eax, eax
je 0x4675f4
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x46752d
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.0048892d
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.0048892d
jmp 0x46767b
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.00467270
test eax, eax
push 0
je 0x46765f
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.00465910
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x467645
cmp eax, 0x64
jg 0x467633
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4675d0
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4675d0
cmp eax, 0x64
jge 0x4675cc
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4675d0
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.00465910
mov esi, eax
jmp 0x4675d0
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x467685
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x48ad5a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48ad92
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00488dd4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00488dac
jmp 0x48ad9e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48c448
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48c48a
call fcn.00492709
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48c48a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48c481
xor eax, eax
jmp 0x48c492
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048c498
pop edi
pop esi
pop ebx
ret 4

Function at 0x492c39
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x492c67
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x492c85
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00492b9f
jmp 0x492c85
mov eax, dword [esi + 0x14]
test eax, eax
je 0x492c85
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00492b9f
test edi, edi
mov eax, edi
jne 0x492c6f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401520
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2cc
mov eax, dword [0x46a860]
xor eax, esp
mov dword [esp + 0x2c8], eax
push ebx
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x4001
push 0x160
lea eax, [esp + 0x18]
push eax
push 0
push 0x45a0b4
call ebx
push eax
mov ecx, esi
call fcn.0041a203
push 0x4100
push 0x160
lea ecx, [esp + 0x178]
push ecx
push 0
push 0x45a0b4
call ebx
push eax
mov ecx, edi
call fcn.0041a203
mov ecx, dword [esp + 0x2d4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004353a6
mov esp, ebp
pop ebp
ret 8

Function at 0x401890
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x170
mov eax, dword [0x46a860]
xor eax, esp
mov dword [esp + 0x16c], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
test eax, eax
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0xc], ebx
jne 0x4018c1
lea eax, [ecx + 0x18]
jmp 0x4018d0
push eax
lea ecx, [esp + 0x10]
call fcn.004029f0
mov ebx, 1
mov edx, dword [eax]
push 0x400
push 0x160
lea ecx, [esp + 0x18]
push ecx
push 0
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test bl, 1
je 0x40190f
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40190f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x120]
push ecx
mov ecx, esi
call fcn.004029f0
mov ecx, dword [esp + 0x174]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.004353a6
mov esp, ebp
pop ebp
ret 8

Function at 0x401940
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x170
mov eax, dword [0x46a860]
xor eax, esp
mov dword [esp + 0x16c], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
test eax, eax
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0xc], ebx
jne 0x401971
lea eax, [ecx + 0x18]
jmp 0x401980
push eax
lea ecx, [esp + 0x10]
call fcn.004029f0
mov ebx, 1
mov edx, dword [eax]
push 0x200
push 0x160
lea ecx, [esp + 0x18]
push ecx
push 0
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test bl, 1
je 0x4019bf
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4019bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.004029f0
mov ecx, dword [esp + 0x174]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.004353a6
mov esp, ebp
pop ebp
ret 8
Function at 0x4019f0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x16c
mov eax, dword [0x46a860]
xor eax, esp
mov dword [esp + 0x168], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
test eax, eax
mov dword [esp + 4], ebx
jne 0x401a1d
lea eax, [ecx + 0x18]
jmp 0x401a2c
push eax
lea ecx, [esp + 8]
call fcn.004029f0
mov ebx, 1
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
or ecx, 0x4000
push ecx
push 0x160
lea edx, [esp + 0x10]
push edx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test bl, 1
je 0x401a70
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401a70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x16c]
mov eax, dword [esp + 0xc]
pop ebx
xor ecx, esp
call fcn.004353a6
mov esp, ebp
pop ebp
ret 8

Function at 0x4022e0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x168
mov eax, dword [0x46a860]
xor eax, esp
mov dword [esp + 0x164], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ecx
push 0x160
lea edx, [esp + 8]
push edx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [esp + 0x164]
mov eax, dword [esp + 4]
xor ecx, esp
call fcn.004353a6
mov esp, ebp
pop ebp
ret 8

Function at 0x402ca0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402cb9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402cf4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402cf0
lea ebx, [ebx]
cmp esi, eax
jae 0x402cf4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402ce0
cmp esi, eax
jb 0x402cfa
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x406170
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
mov eax, dword [0x46a860]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ebx
mov edi, ecx
lea ecx, [esi + 1]
mov al, byte [esi]
add esi, 1
test al, al
jne 0x406197
sub esi, ecx
jne 0x4061bd
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.004353a6
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4061d4
push eax
call fcn.004197d5
add esp, 4
mov dword [edi + 0x10], 0
add esi, 1
push esi
call fcn.004197da
push esi
push 0
push eax
mov dword [edi + 0x10], eax
call fcn.004377f0
mov eax, dword [edi + 0x10]
push ebx
push esi
push eax
call fcn.004367c6
push 0x140
lea ecx, [esp + 0x30]
push 0
push ecx
call fcn.004377f0
add esp, 0x28
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x40622d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push ebx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
jmp 0x406234
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x154]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004353a6
mov esp, ebp
pop ebp
ret 4
Function at 0x406f50
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x108
mov eax, dword [0x46a860]
xor eax, esp
mov dword [esp + 0x104], eax
push ebp
mov ebp, dword [esp + 0x110]
push esi
push edi
mov edi, ebp
mov al, byte [edi]
test al, al
je 0x406f9e
cmp al, 0x5c
je 0x406f9e
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x406f76
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
xor ecx, esp
mov al, 1
call fcn.004353a6
add esp, 0x108
ret
cmp byte [edi], 0
je 0x406f84
mov esi, edi
sub esi, ebp
test esi, esi
jle 0x406fe0
push esi
lea eax, [esp + 0x10]
push ebp
push eax
call fcn.00436ad6
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov byte [esp + esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406fd3
test al, 0x10
jne 0x406fe0
push 0
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add edi, 1
jmp 0x406f70
Function at 0x407ea8
Capabilities:
Copy file

Disassembly:
sub esp, 8
cmp dword [esp + 0xc], 0
push esi
mov esi, ecx
mov dword [esp + 4], esi
je 0x408027
cmp dword [esi + 0x30], 0
je 0x40801c
push ebx
push ebp
mov ebp, dword [esi + 0x14]
push edi
lea ecx, [ebp + 1]
mov al, byte [ebp]
add ebp, 1
test al, al
jne 0x407ec8
sub ebp, ecx
add ebp, 0x200
push ebp
call fcn.004197da
push ebp
mov ebx, eax
call fcn.004197da
push 0x24
mov dword [esp + 0x20], eax
call fcn.004197aa
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [esp + 0x28], eax
mov dword [eax + 0x20], ecx
mov eax, dword [esi + 0x30]
add esp, 0xc
push eax
lea edi, [esp + 0x20]
call fcn.00404f10
test eax, eax
je 0x40800c
jmp 0x407f30
push ebp
push 0
push ebx
call fcn.004377f0
mov eax, dword [esp + 0x20]
push ebp
push 0
push eax
call fcn.004377f0
mov ecx, dword [esi + 0xc]
push ecx
push ebp
push ebx
call fcn.004367c6
mov esi, dword [esp + 0x40]
mov edx, dword [esi + 0x10]
push edx
push ebp
push ebx
call fcn.00436984
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 0x14]
mov edi, dword [esp + 0x44]
push ecx
push ebp
push edi
call fcn.004367c6
mov edx, dword [esi + 0x14]
push edx
push ebp
push edi
call fcn.00436984
add esp, 0x48
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [esi + 0x10]
xor edi, edi
cmp eax, edi
je 0x407fa0
push eax
call fcn.004197d5
add esp, 4
mov dword [esi + 0x10], edi
mov eax, dword [esi + 0x14]
cmp eax, edi
je 0x407fb3
push eax
call fcn.004197d5
add esp, 4
mov dword [esi + 0x14], edi
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x407fc6
push eax
call fcn.004197d5
add esp, 4
mov dword [esi + 0x18], edi
xor eax, eax
mov dword [esi + 4], 3
mov dword [esi], 4
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x30]
push eax
lea edi, [esp + 0x20]
call fcn.00404f10
test eax, eax
mov esi, dword [esp + 0x10]
jne 0x407f30
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004197d5
add esp, 4
pop edi
pop ebp
pop ebx
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
push 0
mov ecx, esi
call eax
mov eax, 1
pop esi
add esp, 8
ret 4
Function at 0x40aa10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
push edi
mov edi, eax
mov esi, edx
jne 0x40aa1f
pop edi
xor eax, eax
pop esi
ret
cmp edi, 8
not esi
jb 0x40ab07
push ebp
mov ebp, edi
shr ebp, 3
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x45eb98]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x45eb98]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x45eb98]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x45eb98]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x45eb98]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x45eb98]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x45eb98]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x45eb98]
add ecx, 1
sub edi, 8
sub ebp, 1
mov esi, eax
jne 0x40aa30
pop ebp
test edi, edi
je 0x40ab2c
jmp 0x40ab10
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x45eb98]
add ecx, 1
sub edi, 1
jne 0x40ab10
mov eax, esi
pop edi
not eax
pop esi
ret

Function at 0x40ab40
Capabilities:
Hash data with crc32

Disassembly:
mov eax, dword [edx]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x45eb98]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
add eax, 1
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x45eb98]
mov dword [edx + 8], ecx
ret

Function at 0x40ab90
Capabilities:
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
xor al, bl
movzx ebx, al
xor ebx, edx
shr edx, 8
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x45eb98]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
add edx, 1
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x45eb98]
pop ebx
mov dword [esi + 8], ecx
ret

Function at 0x40b3a0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x40b3d2
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40b3c8
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x40b3e5
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call fcn.004378f0
add dword [edi + 0x1c], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x40b400
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x40b433
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40b42d
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x40b45f
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x40b445
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.004378f0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x40b476
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x40b470
cmp byte [esi + 8], 0
je 0x40b470
or eax, 0xffffffff
add esp, 8
ret
Function at 0x40b560
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x40b5a5
cmp byte [esi + 1], 0
je 0x40b5ad
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x40b5c2
cmp byte [esi + 1], 0
je 0x40b5b4
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x40b5cb
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x40b57e
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x40b5cb
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
cmp ebp, edi
mov dword [esp + 0xc], edi
jae 0x40b5df
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.004360ec
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40b5fd
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
cmp edi, eax
mov dword [esp + 0x18], 0xffffffff
jbe 0x40b713
jmp 0x40b620
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
cmp eax, edi
mov dword [esp + 0x14], edi
ja 0x40b631
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
cmp ebp, 0x404
mov dword [esp + 0x20], eax
jbe 0x40b64a
mov ebp, 0x404
cmp byte [esi], 0
je 0x40b66f
cmp byte [esi + 1], 0
je 0x40b713
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40b672
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebp
je 0x40b69a
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40b694
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x40b6c0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x40b6ab
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call fcn.004378f0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x40b713
lea eax, [ebp - 3]
test eax, eax
jl 0x40b6fe
sub eax, 1
cmp byte [eax + ebx], 0x50
jne 0x40b6ee
cmp byte [eax + ebx + 1], 0x4b
jne 0x40b6ee
cmp byte [eax + ebx + 2], 5
jne 0x40b6ee
cmp byte [eax + ebx + 3], 6
je 0x40b6f4
test eax, eax
jge 0x40b6d0
jmp 0x40b6fe
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x40b713
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x40b614
push ebx
call fcn.00436738
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x40c050
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x40c068
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x40c05d
cmp dword [edi + 0x7c], ebx
je 0x40c077
call fcn.0040c440
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0040bdc0
add esp, 0xc
test eax, eax
je 0x40c09d
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push ebp
push 0x84
call fcn.004360ec
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x40c0df
push 0x4000
call fcn.004360ec
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add esp, 4
cmp eax, ebx
mov dword [ebp], eax
mov dword [ebp + 0x44], ecx
mov dword [ebp + 0x48], edx
mov dword [ebp + 0x4c], ebx
jne 0x40c0eb
push ebp
call fcn.00436738
add esp, 4
pop ebp
pop edi
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [ebp + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [ebp + 0x54], ecx
mov dword [ebp + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [ebp + 0x64], edx
mov ecx, dword [edi]
mov dword [ebp + 0x60], ecx
mov edx, dword [edi + 0xc]
push esi
mov dword [ebp + 0x68], edx
cmp eax, ebx
mov dword [ebp + 0x18], ebx
jne 0x40c134
lea esi, [ebp + 4]
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], ebx
call fcn.0040ae00
test eax, eax
jne 0x40c134
mov dword [ebp + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [ebp + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [ebp + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [ebp + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x40c15e
mov cl, byte [edi + 0x39]
mov byte [ebp + 0x80], cl
jmp 0x40c167
mov dl, byte [edi + 0x3f]
mov byte [ebp + 0x80], dl
mov al, byte [ebp + 0x6c]
mov esi, dword [esp + 0x20]
neg al
lea edx, [ebp + 0x70]
mov dword [edx], 0x12345678
mov dword [ebp + 0x74], 0x23456789
mov dword [ebp + 0x78], 0x34567890
sbb eax, eax
and eax, 0xc
cmp esi, ebx
mov dword [ebp + 0x7c], eax
je 0x40c1a3
mov cl, byte [esi]
cmp cl, bl
je 0x40c1a3
call fcn.0040ab40
add esi, 1
jne 0x40c193
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [ebp + 0x3c], eax
mov dword [ebp + 8], ebx
pop esi
mov dword [edi + 0x7c], ebp
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0xc
ret