joyce8/EMBER2024-capa huggingface dataset:
Function at 0x524880
Capabilities:
Get disk information via ioctl
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x5c04b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x60], eax
mov dword [eax], 0
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x38], 0x1c
push 0x5946a0
push 0
push edi
call dword [0x5c043c]
test eax, eax
jne 0x5248e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553510
mov esp, ebp
pop ebp
ret 0x10
push 0
lea eax, [ebp - 0x5c]
push eax
push 0
push 0
lea eax, [ebp - 0x38]
push eax
push edi
call dword [0x5c0440]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x52490b
call esi
cmp eax, 0x7a
jne 0x524a43
mov eax, dword [ebp - 0x5c]
push eax
mov dword [ebp - 0x64], eax
call dword [sym.imp.MSVCR120.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x524937
lea eax, [ebx + 8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553510
mov esp, ebp
pop ebp
ret 0x10
push 0
lea eax, [ebp - 0x5c]
mov dword [ebx], 6
push eax
push dword [ebp - 0x64]
lea eax, [ebp - 0x38]
push ebx
push eax
push edi
call dword [0x5c0440]
test eax, eax
jne 0x524979
call esi
push ebx
mov esi, eax
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553510
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0
push 3
push 0
push 3
push closesocket
lea eax, [ebx + 4]
push eax
call dword [0x5c008c]
push ebx
mov edi, eax
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
cmp edi, 0xffffffff
jne 0x5249bb
mov eax, 0x6e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553510
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [0x5c0088]
lea eax, [ebp - 0x68]
push 0
push eax
push 0xc
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0x2d1080
push edi
call ebx
test eax, eax
jne 0x5249fd
call esi
push edi
mov esi, eax
call dword [0x5c001c]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553510
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x18]
push 0
mov dword [ebp - 0x10], 1
mov dword [ecx], eax
lea eax, [ebp - 0x68]
push eax
push 0x20
lea eax, [ebp - 0x58]
mov dword [ebp - 0xc], 0
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push edi
call ebx
test eax, eax
je 0x5249dd
mov ecx, dword [ebp - 0x60]
movzx eax, byte [ebp - 0x40]
push edi
mov dword [ecx], eax
call dword [0x5c001c]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00553510
mov esp, ebp
pop ebp
ret 0x10
Function at 0x526df0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569b96
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x5c04b4]
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 ebx, ecx
mov dword [ebp - 0x224], ebx
lea ecx, [ebp - 0x250]
call fcn.00526f90
mov dword [ebp - 4], 0
mov ecx, ebx
mov dword [ebp - 0x18], 0x3a0041
mov dword [ebp - 0x14], 0x5c
call fcn.00528540
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
test ebx, ebx
jne 0x526e75
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x250]
call fcn.005270a0
mov eax, 0x10f3
jmp 0x526f68
mov edi, dword [0x5c0390]
xor esi, esi
lea ecx, [ecx]
test bl, 1
je 0x526f48
lea eax, [esi + 0x41]
mov word [ebp - 0x18], ax
cmp ax, 0x58
je 0x526f48
lea eax, [ebp - 0x18]
push eax
call edi
cmp eax, 3
jne 0x526f48
lea eax, [ebp - 0x18]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x526eb0
sub eax, edx
lea ecx, [ebp - 0x250]
sar eax, 1
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00522870
xor eax, eax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x220]
push 0x104
push eax
lea eax, [ebp - 0x18]
push eax
call dword [0x5c037c]
mov eax, 0x5c
lea ecx, [ebp - 0x24c]
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x220]
push eax
call fcn.005224a0
lea eax, [ebp - 0x250]
push eax
call fcn.00527390
lea eax, [ebp - 0x250]
push eax
call fcn.00527260
sub esp, 0x28
lea eax, [ebp - 0x250]
mov ecx, esp
mov dword [ebp - 0x228], esp
push eax
call fcn.00527190
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x224]
call fcn.00528590
inc esi
shr ebx, 1
cmp esi, 0x1a
jl 0x526e80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x250]
call fcn.005270a0
xor eax, eax
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.00553510
mov esp, ebp
pop ebp
ret
Function at 0x527260
Capabilities:
Manipulate boot configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569d30
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x5c04b4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x50]
push str.BootBCD
mov edx, esi
call fcn.00528330
add esp, 4
mov dword [ebp - 4], 0
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x50]
call dword [sym.imp.MSVCR120.dll__wstat64]
add esp, 8
or edi, 0xffffffff
test eax, eax
jne 0x5272d4
test dword [ebp - 0x46], 0x8000
je 0x5272d4
lea eax, [ebp - 0x50]
lea ecx, [esi + 8]
push eax
call fcn.00522780
jmp 0x52734d
push str.boot.ini
mov edx, esi
lea ecx, [ebp - 0x54]
call fcn.00528330
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
push eax
call fcn.00522780
mov byte [ebp - 4], 0
mov ecx, edi
mov edx, dword [ebp - 0x54]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x527313
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x50]
call dword [sym.imp.MSVCR120.dll__wstat64]
add esp, 8
test eax, eax
jne 0x52733e
test dword [ebp - 0x46], 0x8000
je 0x52733e
lea eax, [ebp - 0x50]
lea ecx, [esi + 8]
push eax
call fcn.00522780
jmp 0x52734d
push 0
lea ecx, [esi + 8]
push 0x574c4c
call fcn.00522870
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x52736e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00553510
mov esp, ebp
pop ebp
ret 4
Function at 0x5291f0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a3bb
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5c04b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov esi, dword [ebp + 8]
push esi
call fcn.00522780
lea eax, [esi + 4]
lea ecx, [ebx + 4]
push eax
call fcn.00522780
lea eax, [esi + 8]
lea ecx, [ebx + 8]
push eax
call fcn.00522780
lea eax, [esi + 0xc]
lea ecx, [ebx + 0xc]
push eax
call fcn.00522780
lea eax, [esi + 0x10]
lea ecx, [ebx + 0x10]
push eax
call fcn.00522780
lea eax, [esi + 0x14]
lea ecx, [ebx + 0x14]
push eax
call fcn.00522780
lea eax, [esi + 0x18]
lea ecx, [ebx + 0x18]
push eax
call fcn.00522780
lea eax, [esi + 0x1c]
lea ecx, [ebx + 0x1c]
push eax
call fcn.00522780
lea eax, [esi + 0x20]
lea ecx, [ebx + 0x20]
push eax
call fcn.00522780
lea eax, [esi + 0x24]
lea ecx, [ebx + 0x24]
push eax
call fcn.00522780
lea eax, [esi + 0x28]
lea ecx, [ebx + 0x28]
push eax
call fcn.00522780
lea eax, [esi + 0x2c]
lea ecx, [ebx + 0x2c]
push eax
call fcn.00522780
lea eax, [esi + 0x30]
lea ecx, [ebx + 0x30]
push eax
call fcn.00522780
xor ebx, ebx
cmp dword [esi + 0x3c], ebx
jle 0x529373
mov eax, dword [esi + 0x38]
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], ecx
lea esi, [eax + ebx*8]
movzx eax, word [esi]
mov word [ecx], ax
movzx eax, word [esi + 2]
mov word [ecx + 2], ax
lea eax, [ecx + 4]
mov esi, dword [esi + 4]
mov dword [ebp - 0x10], eax
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
lea edx, [esi - 4]
mov ecx, eax
jl 0x52930f
cmp ecx, dword [esi - 0x10]
jne 0x52930f
lea edi, [esi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x529345
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
je 0x529387
mov ecx, dword [esi - 0xc]
mov dword [edi + 4], ecx
mov ecx, dword [esi - 0xc]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ecx*2 + 2]
push esi
push eax
lea eax, [edi + 0x10]
push eax
call dword [sym.imp.MSVCR120.dll_memcpy_s]
add esp, 0x10
mov ecx, dword [ebp - 0x10]
lea eax, [edi + 0x10]
mov dword [ecx], eax
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx + 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.0052d730
mov esi, dword [ebp + 8]
inc ebx
cmp ebx, dword [esi + 0x3c]
jl 0x5292c1
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
call fcn.00522a00
int3
Function at 0x52ecf0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b2d8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5c04b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0
call dword [0x5c0444]
test eax, eax
jns 0x52ed3b
mov eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea edi, [esi + 0x10]
push edi
push 0x573a58
push 1
push 0
push 0x573a78
call dword [0x5c0344]
test eax, eax
jne 0x52ee0e
cmp dword [edi], eax
je 0x52ee0e
mov edi, dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
push 0x28
call edi
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x52ed89
mov ecx, eax
call fcn.0052e8e0
mov edx, eax
jmp 0x52ed8b
xor edx, edx
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 8], edx
test edx, edx
je 0x52ee0e
mov ecx, dword [esi + 0x34]
mov eax, dword [esi + 0x1c]
mov dword [edx + 8], eax
mov dword [edx + 0x18], ecx
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x38]
mov eax, dword [esi + 0x20]
push 0x20
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x1c], edx
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x3c]
mov eax, dword [esi + 0x24]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x20], edx
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x40]
mov eax, dword [esi + 0x28]
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x24], edx
call edi
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x52edf2
mov ecx, eax
call fcn.0052eae0
mov edx, eax
jmp 0x52edf4
xor edx, edx
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0xc], edx
test edx, edx
jne 0x52ee24
push dword [esi + 8]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x2c]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x14], ecx
mov dword [edx + 8], eax
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x30]
mov eax, dword [esi + 0x18]
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x18], edx
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x40]
mov eax, dword [esi + 0x28]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x1c], edx
mov ecx, esi
call fcn.0052ef60
mov ecx, esi
call fcn.0052f0a0
mov byte [esi + 4], 1
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x52f3d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5c04b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x244
mov edi, ecx
call dword [sym.imp.MSVCR120.dll_malloc]
mov esi, eax
add esp, 4
mov dword [edi + 4], esi
test esi, esi
je 0x52f4cb
push esi
push 0x122
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x52f4b8
cmp eax, 0x122
ja 0x52f4b8
lea eax, [ebp - 0x20c]
push eax
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x52f4b8
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x52f443
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
cmp ecx, 0x122
jae 0x52f485
push eax
push 0x122
push esi
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553510
mov esp, ebp
pop ebp
ret 4
push 0x121
push eax
push 0x122
push esi
call dword [sym.imp.MSVCR120.dll_wcsncpy_s]
add esp, 0x10
xor eax, eax
mov word [esi + 0x242], ax
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553510
mov esp, ebp
pop ebp
ret 4
push dword [edi + 4]
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
mov dword [edi + 4], 0
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00553510
mov esp, ebp
pop ebp
ret 4

Function at 0x538f00
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x5c04b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov edx, dword [esi + 0x18]
test edx, edx
je 0x538fe2
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x538fe2
lea ecx, [ebp - 0x60]
test ecx, ecx
je 0x538f5a
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x60], 0x67452301
mov dword [ebp - 0x5c], 0xefcdab89
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
push eax
lea ecx, [ebp - 0x60]
call fcn.004d6e80
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x60]
call fcn.004d6f20
movzx eax, byte [ebp - 0x61]
push eax
movzx eax, byte [ebp - 0x62]
push eax
movzx eax, byte [ebp - 0x63]
push eax
movzx eax, byte [ebp - 0x64]
push eax
movzx eax, byte [ebp - 0x65]
push eax
movzx eax, byte [ebp - 0x66]
push eax
movzx eax, byte [ebp - 0x67]
push eax
movzx eax, byte [ebp - 0x68]
push eax
movzx eax, byte [ebp - 0x69]
push eax
movzx eax, byte [ebp - 0x6a]
push eax
movzx eax, byte [ebp - 0x6b]
push eax
movzx eax, byte [ebp - 0x6c]
push eax
movzx eax, byte [ebp - 0x6d]
push eax
movzx eax, byte [ebp - 0x6e]
push eax
movzx eax, byte [ebp - 0x6f]
push eax
movzx eax, byte [ebp - 0x70]
push eax
push 0x596328
lea eax, [esi + 0x22]
push 0x21
push eax
call fcn.0052fc70
add esp, 0x50
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553510
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.00553510
mov esp, ebp
pop ebp
ret
Function at 0x539c40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b8a8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x5c04b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 8
push 1
call dword [sym.imp.MSVCR120.dll_calloc]
mov esi, eax
add esp, 8
test esi, esi
jne 0x539c90
lea eax, [esi + 1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov edx, dword [sym.imp.MSVCR120.dll_free]
lea ecx, [ebp - 0x24]
push esi
call fcn.00430f80
add esp, 4
mov dword [ebp - 4], 0
cmp byte [0x5c6a90], 0
push 0
je 0x539d02
xor eax, eax
push eax
push 8
push esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push dword [ebp + 8]
call dword [0x5c0260]
mov edi, eax
cmp edi, 0xc0000011
jne 0x539ce6
mov dword [ebp - 0x14], 0
xor edi, edi
push edi
call dword [0x5c00a8]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
jns 0x539cfd
or eax, 0xffffffff
jmp 0x539d1e
mov eax, dword [ebp - 0x14]
jmp 0x539d1e
lea eax, [ebp - 0x10]
push eax
push 8
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x539d1b
or eax, 0xffffffff
jmp 0x539d1e
mov eax, dword [ebp - 0x10]
cmp eax, 8
je 0x539d2a
mov esi, 1
jmp 0x539d39
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov eax, dword [esi]
xor esi, esi
mov dword [ecx], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00416890
mov ax, si
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x53a150
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b948
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5c04b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
push esi
push 1
call dword [sym.imp.MSVCR120.dll_calloc]
mov edi, eax
add esp, 8
test edi, edi
jne 0x53a1a4
lea eax, [edi + 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
mov edx, dword [sym.imp.MSVCR120.dll_free]
lea ecx, [ebp - 0x18]
push edi
call fcn.00430f80
add esp, 4
mov dword [ebp - 4], 0
add esi, 0xfffffff8
cmp byte [0x5c6a90], 0
lea ebx, [edi + 8]
je 0x53a1dc
mov ecx, dword [ebp + 8]
mov edx, ebx
push esi
call fcn.005029e0
add esp, 4
jmp 0x53a1f9
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x53a1f6
or eax, 0xffffffff
jmp 0x53a1f9
mov eax, dword [ebp + 0x10]
cmp eax, esi
jne 0x53a22d
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx]
mov dword [esi], eax
push dword [ebx]
push 1
call dword [sym.imp.MSVCR120.dll_calloc]
add esp, 8
mov dword [esi + 4], eax
test eax, eax
je 0x53a22d
push dword [ebx]
mov ecx, dword [edi + 0xc]
add ecx, edi
push ecx
push eax
call sub.MSVCR120.dll_memcpy
add esp, 0xc
xor esi, esi
jmp 0x53a232
mov esi, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00416890
mov ax, si
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 0x53a260
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b948
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5c04b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
push esi
push 1
call dword [sym.imp.MSVCR120.dll_calloc]
mov edi, eax
add esp, 8
test edi, edi
jne 0x53a2b4
lea eax, [edi + 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
mov edx, dword [sym.imp.MSVCR120.dll_free]
lea ecx, [ebp - 0x18]
push edi
call fcn.00430f80
add esp, 4
mov dword [ebp - 4], 0
add esi, 0xfffffff8
cmp byte [0x5c6a90], 0
lea ebx, [edi + 8]
je 0x53a2ec
mov ecx, dword [ebp + 8]
mov edx, ebx
push esi
call fcn.005029e0
add esp, 4
jmp 0x53a309
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x53a306
or eax, 0xffffffff
jmp 0x53a309
mov eax, dword [ebp + 0x10]
cmp eax, esi
jne 0x53a33e
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx]
mov dword [esi + 8], eax
push dword [ebx]
push 1
call dword [sym.imp.MSVCR120.dll_calloc]
add esp, 8
mov dword [esi + 0xc], eax
test eax, eax
je 0x53a33e
push dword [ebx]
mov ecx, dword [edi + 0xc]
add ecx, edi
push ecx
push eax
call sub.MSVCR120.dll_memcpy
add esp, 0xc
xor esi, esi
jmp 0x53a343
mov esi, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00416890
mov ax, si
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 0x53a370
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b98a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5c04b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x10]
push edi
push 1
call dword [sym.imp.MSVCR120.dll_calloc]
mov esi, eax
add esp, 8
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x53a3c7
lea eax, [esi + 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
mov edx, dword [sym.imp.MSVCR120.dll_free]
lea ecx, [ebp - 0x20]
push esi
call fcn.00430f80
add esp, 4
mov dword [ebp - 4], 0
add edi, 0xfffffff8
cmp byte [0x5c6a90], 0
lea eax, [esi + 8]
mov dword [ebp - 0x10], eax
je 0x53a402
mov ecx, dword [ebp + 8]
mov edx, eax
push edi
call fcn.005029e0
add esp, 4
jmp 0x53a41f
push 0
lea ecx, [ebp + 0x10]
push ecx
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x53a41c
or eax, 0xffffffff
jmp 0x53a41f
mov eax, dword [ebp + 0x10]
cmp eax, edi
jne 0x53a53b
push 0x5c5d4a
push 0x64
call fcn.005539d8
mov ebx, eax
add esp, 8
mov dword [ebp + 8], ebx
mov byte [ebp - 4], 1
test ebx, ebx
je 0x53a486
xor eax, eax
mov dword [ebx + 4], 0x5963cc
mov dword [ebx], vtable.CECPResource.0
mov dword [ebx + 0xc], 0xffffffff
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x1c], 0
mov byte [ebx + 0x20], 0
mov word [ebx + 0x22], ax
mov dword [ebx + 8], 3
jmp 0x53a488
xor ebx, ebx
mov byte [ebp - 4], 0
test ebx, ebx
je 0x53a53b
mov esi, dword [ebp + 0xc]
push ecx
mov ecx, esi
mov edi, dword [esi + 8]
lea eax, [edi + 1]
push eax
call fcn.00433880
mov eax, dword [esi + 4]
mov ecx, ebx
mov dword [eax + edi*4], ebx
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [edi + 0x14]
add eax, edi
push eax
call fcn.00538d60
mov eax, dword [edi + 0x24]
push ecx
push dword [edi + 0x20]
add eax, edi
mov ecx, ebx
push eax
call fcn.00538e70
mov esi, dword [edi + 0x1c]
add esi, edi
lea edi, [ebx + 0x22]
mov ecx, edi
lea edx, [ecx + 2]
jmp 0x53a4f0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x53a4f0
sub ecx, edx
sar ecx, 1
jne 0x53a508
mov ecx, ebx
call fcn.00538f00
mov ax, word [esi]
cmp ax, word [edi]
jne 0x53a52e
test ax, ax
je 0x53a52a
mov ax, word [esi + 2]
cmp ax, word [edi + 2]
jne 0x53a52e
add esi, 4
add edi, 4
test ax, ax
jne 0x53a508
xor eax, eax
jmp 0x53a533
sbb eax, eax
or eax, 1
test eax, eax
jne 0x53a53b
xor esi, esi
jmp 0x53a540
mov esi, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00416890
mov ax, si
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