joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405cd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x44c040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov cl, byte [esi + 0x11c]
lea eax, [esi + 0xc]
test cl, cl
jne 0x405cf7
mov eax, dword [esi + 8]
cmp word [eax + 6], 0x3a
jne 0x405d8f
lea eax, [esi + 0xc]
test cl, cl
jne 0x405d0c
mov eax, dword [esi + 8]
cmp word [eax + 8], 0
jne 0x405d8f
push esi
lea ecx, [ebp - 0x24c]
call fcn.00403ab0
push 0x4444a0
lea eax, [ebp - 0x24c]
push 0x444420
push eax
call fcn.00403f30
add esp, 0xc
lea eax, [ebp - 0x240]
cmp byte [ebp - 0x130], 0
cmove eax, dword [ebp - 0x244]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x405d61
xor bl, bl
jmp 0x405d67
shr ebx, 4
and bl, 1
cmp byte [ebp - 0x130], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x405eb0
mov eax, dword [ebp - 0x244]
lea ecx, [ebp - 0x240]
jmp 0x405ea3
push esi
lea ecx, [ebp - 0x128]
call fcn.00403ab0
mov al, byte [esi + 0x11c]
lea ecx, [esi + 0xc]
test al, al
jne 0x405dab
mov ecx, dword [esi + 8]
cmp word [ecx + 6], 0x3a
jne 0x405dd4
lea ecx, [esi + 0xc]
test al, al
jne 0x405dbc
mov ecx, dword [esi + 8]
cmp word [ecx + 8], 0x5c
jne 0x405dd4
lea ecx, [esi + 0xc]
test al, al
jne 0x405dcd
mov ecx, dword [esi + 8]
cmp word [ecx + 0xa], 0
je 0x405e1c
push edi
mov edi, dword [esi + 4]
test edi, edi
je 0x405e1b
test al, al
lea eax, [esi + 0xc]
jne 0x405de6
mov eax, dword [esi + 8]
cmp word [eax + edi*2 + 2], 0x5c
jne 0x405e1b
lea eax, [edi - 1]
push edi
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x124], eax
call fcn.00404130
cmp byte [ebp - 0xc], 0
lea eax, [ebp - 0x11c]
cmove eax, dword [ebp - 0x120]
xor ecx, ecx
mov word [eax + edi*2 + 2], cx
pop edi
cmp byte [ebp - 0xc], 0
lea eax, [ebp - 0x11c]
cmove eax, dword [ebp - 0x120]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x405e42
xor bl, bl
jmp 0x405e87
mov al, byte [esi + 0x11c]
lea ecx, [esi + 0xc]
test al, al
jne 0x405e52
mov ecx, dword [esi + 8]
cmp word [ecx + 6], 0x3a
jne 0x405e81
lea ecx, [esi + 0xc]
test al, al
jne 0x405e63
mov ecx, dword [esi + 8]
cmp word [ecx + 8], 0x5c
jne 0x405e81
test al, al
je 0x405e73
add esi, 0xc
jmp 0x405e76
mov esi, dword [esi + 8]
cmp word [esi + 0xa], 0
jne 0x405e81
mov bl, 1
jmp 0x405e87
shr ebx, 4
and bl, 1
cmp byte [ebp - 0xc], 0
mov dword [ebp - 0x128], vtable.t_str.0
jne 0x405eb0
mov eax, dword [ebp - 0x120]
lea ecx, [ebp - 0x11c]
cmp eax, ecx
je 0x405eb0
push eax
call fcn.00427afc
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.00421b57
mov esp, ebp
pop ebp
ret
Function at 0x405ed0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4374cb
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x44c040]
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 byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
mov ebx, dword [ebp + 8]
jne 0x405f12
mov eax, dword [esi + 8]
push 0x80
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x405f30
mov eax, dword [esi + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x405fe3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 0x11c], 0
mov edi, eax
lea eax, [esi + 0xc]
jne 0x405f59
mov eax, dword [esi + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405fe3
shr eax, 4
not al
and al, 1
je 0x405fe3
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x405f80
mov eax, dword [esi + 8]
sub esp, 0x10
lea ecx, [ebp - 0x134]
add eax, 4
push 0
push eax
call fcn.00405860
lea eax, [ebp - 0x134]
mov dword [ebp - 4], 0
push eax
push 0x44479c
push edi
mov ecx, ebx
call fcn.00407100
mov ecx, eax
call fcn.00407360
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x405fdf
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je 0x405fdf
push eax
call fcn.00427afc
add esp, 4
xor al, al
jmp 0x405fe5
mov al, 1
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.00421b57
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406010
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437516
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x44c040]
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
mov edi, dword [ebp + 8]
call fcn.00405cd0
test al, al
je 0x406053
mov al, 1
jmp 0x4061c2
lea ecx, [ebp - 0x134]
call fcn.004057c0
lea eax, [ebp - 0x134]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.004061e0
test al, al
je 0x4060e2
cmp dword [ebp - 0x130], 2
jb 0x4060cc
mov ebx, dword [ebp - 0x18]
lea eax, [ebp - 0x128]
mov ecx, dword [ebp - 0x12c]
test bl, bl
cmove eax, ecx
movzx edx, word [eax + 6]
lea eax, [ebp - 0x128]
cmove eax, ecx
movzx eax, word [eax + 8]
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x128]
cmove eax, ecx
movzx eax, word [eax + 0xa]
cmp edx, 0x3a
jne 0x4060cc
cmp word [ebp - 0x25c], 0x5c
jne 0x4060cc
test ax, ax
je 0x4060e2
push 0
push edi
lea ecx, [ebp - 0x134]
call fcn.00406010
test al, al
je 0x40616d
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x4060f1
mov eax, dword [esi + 8]
push 0
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x406171
cmp byte [esi + 0x11c], al
lea eax, [esi + 0xc]
jne 0x40610f
mov eax, dword [esi + 8]
sub esp, 0x10
lea ecx, [ebp - 0x258]
add eax, 4
push 0
push eax
call fcn.00405860
lea eax, [ebp - 0x258]
mov byte [ebp - 4], 2
push eax
push 0x44456c
mov ecx, edi
call fcn.00407180
mov ecx, eax
call fcn.00407360
cmp byte [ebp - 0x13c], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x40616d
mov eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x24c]
cmp eax, ecx
je 0x40616d
push eax
call fcn.00427afc
add esp, 4
xor bl, bl
jmp 0x406197
cmp byte [esi + 0x11c], 0
lea ecx, [esi + 0xc]
jne 0x406180
mov ecx, dword [esi + 8]
sub esp, 8
add ecx, 4
call fcn.004096c0
add esp, 8
mov ecx, esi
call fcn.004062f0
mov bl, 1
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x4061c0
mov ecx, dword [ebp - 0x12c]
lea eax, [ebp - 0x128]
cmp ecx, eax
je 0x4061c0
push ecx
call fcn.00427afc
add esp, 4
mov al, bl
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.00421b57
mov esp, ebp
pop ebp
ret 8
Function at 0x406470
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x474
mov eax, dword [0x44c040]
xor eax, esp
mov dword [esp + 0x470], eax
push esi
push 0x4447e0
push ecx
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
mov esi, edx
call fcn.00429114
mov eax, dword [esp + 0x10]
add esp, 0xc
test eax, eax
jne 0x4064c5
xor al, al
pop esi
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.00421b57
mov esp, ebp
pop ebp
ret
push eax
push 0x400
lea eax, [esp + 0x78]
mov dword [esp + 0x14], 0
push 1
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0x67452301
mov dword [esp + 0x24], 0xefcdab89
mov dword [esp + 0x28], 0x98badcfe
mov dword [esp + 0x2c], 0x10325476
call fcn.0042941d
add esp, 0x10
test eax, eax
je 0x40653a
nop
push eax
lea edx, [esp + 0x74]
lea ecx, [esp + 0xc]
call fcn.0040ac20
push dword [esp + 8]
lea eax, [esp + 0x78]
push 0x400
push 1
push eax
call fcn.0042941d
add esp, 0x14
test eax, eax
jne 0x406510
mov edx, esi
lea ecx, [esp + 8]
call fcn.0040ace0
push dword [esp + 4]
call fcn.004291d1
mov ecx, dword [esp + 0x478]
add esp, 4
mov al, 1
pop esi
xor ecx, esp
call fcn.00421b57
mov esp, ebp
pop ebp
ret
Function at 0x4084e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437704
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x44c040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x18], 0
jne 0x408643
mov edx, dword [esi + 0x10]
lea edi, [esi + 0x14]
test edx, edx
je 0x40851d
mov edi, edx
mov edi, dword [edi]
mov ecx, dword [esi + 0x14]
cmp edi, ecx
jae 0x408537
lea eax, [edi + 0x60]
cmp eax, ecx
ja 0x408537
add edi, 8
add edi, edx
add dword [edx], 0x60
jmp 0x408567
mov eax, 0x60
cmp ecx, eax
cmovb ecx, eax
lea eax, [ecx + 8]
push eax
mov eax, dword [esi + 4]
call eax
add esp, 4
test eax, eax
je 0x408565
mov ecx, dword [esi + 0x10]
lea edi, [eax + 8]
mov dword [eax + 4], ecx
mov dword [eax], 0x60
mov dword [esi + 0x10], eax
jmp 0x408567
xor edi, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x10], edi
mov dword [edi + 8], 0x11
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0xa
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], esi
mov eax, dword [edi + 8]
mov dword [edi + 0xc], 0x3f400000
mov dword [edi + 0x10], 0x3e800000
mov dword [edi + 0x14], 0x40100000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4463c0]
cvtpd2ps xmm0, xmm0
movss dword [ebp - 0x10], xmm0
mulss xmm0, dword [0x4463b0]
call fcn.00436710
movss xmm0, dword [ebp - 0x10]
mulss xmm0, dword [0x4463ac]
mov dword [edi + 0x18], eax
call fcn.00436710
xor ecx, ecx
cmp eax, 0x11
cmovb eax, ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x34]
mov dword [ebp - 0x10], eax
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], esi
lea eax, [edi + 0x48]
mov dword [ebp - 0x10], eax
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], esi
mov eax, edi
mov dword [edi + 0x5c], esi
mov dword [esi + 0x18], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409ef0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ecx
mov eax, dword [ebx]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push edi
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x409fd5
test edi, edi
je 0x409f8b
cmp word [edi], 0
je 0x409f8b
cmp byte [esi + 0x128], 0
lea ebx, [esi + 0x18]
jne 0x409f45
mov ebx, dword [esi + 0x14]
mov ecx, dword [ebp + 8]
push eax
call fcn.00407100
push 0x444cc4
mov esi, eax
push 0x444420
push esi
call fcn.00403f30
add esp, 0xc
lea ecx, [ebx + 4]
push ecx
push 0x444420
push esi
call fcn.00403f30
add esp, 0xc
push 0x4444a0
push 0x444420
push esi
call fcn.00403f30
add esp, 0xc
push edi
jmp 0x409fbc
cmp byte [esi + 0x128], 0
lea edi, [esi + 0x18]
jne 0x409f9a
mov edi, dword [esi + 0x14]
mov ecx, dword [ebp + 8]
push eax
call fcn.00407100
push 0x444cc4
mov esi, eax
push 0x444420
push esi
call fcn.00403f30
add esp, 0xc
lea ecx, [edi + 4]
push ecx
push 0x444420
push esi
call fcn.00403f30
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x18]
je 0x40a045
test edi, edi
je 0x40a00a
cmp word [edi], 0
je 0x40a00a
cmp byte [esi + 0x128], 0
lea ebx, [esi + 0x18]
jne 0x409ff6
mov ebx, dword [esi + 0x14]
mov ecx, dword [ebp + 8]
push 0
call fcn.00407100
push 0x444cd4
jmp 0x409f53
cmp byte [esi + 0x128], 0
je 0x40a018
add esi, 0x18
jmp 0x40a01b
mov esi, dword [esi + 0x14]
mov ecx, dword [ebp + 8]
push 0x444cd4
call fcn.00403170
lea ecx, [esi + 4]
push ecx
push 0x444420
push eax
call fcn.00403f30
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0x10]
pop edi
mov dword [ebx], eax
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x40a170
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea edx, [ebp - 4]
mov dword [ebp - 4], 0
call fcn.0040a7d0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40a2e0
cmp dword [0x44d410], eax
je 0x40a28a
push esi
push 0x454cf4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edx, [ebp - 4]
call fcn.0040a7d0
mov esi, dword [ebp - 4]
test esi, esi
jne 0x40a278
push 0x2014
call fcn.0042187c
add esp, 4
mov dword [ebp - 4], eax
mov ecx, eax
call fcn.0040a090
cmp dword [0x44d410], 0
mov esi, eax
je 0x40a278
push ebx
push dword [0x44d418]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call ebx
test eax, eax
je 0x40a277
cmp dword [eax], 0xd
jbe 0x40a277
mov eax, dword [eax + 8]
push edi
mov edi, dword [eax + 0x34]
test edi, edi
jne 0x40a240
push 8
call fcn.0042187c
mov edi, eax
add esp, 4
mov dword [ebp - 4], edi
mov dword [edi], vtable.t_visualDataItemPtr_class_t_perfManager_.0
mov dword [edi + 4], esi
cmp dword [0x44d410], 0
je 0x40a276
push dword [0x44d418]
call ebx
test eax, eax
je 0x40a276
cmp dword [eax], 0xd
jbe 0x40a276
mov eax, dword [eax + 8]
mov dword [eax + 0x34], edi
jmp 0x40a276
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
cmp eax, vtable.t_visualDataItemPtr_class_t_perfManager_.0
jne 0x40a2e4
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x40a273
mov ecx, ebx
mov dword [edi + 4], 0
call fcn.0040a0e0
push 0x2014
push ebx
call fcn.004218b1
add esp, 8
mov dword [edi + 4], esi
pop edi
pop ebx
push 0x454cf4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x454d4c]
test eax, eax
jne 0x40a2e0
push 0x454cf4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x454e84]
test al, 1
jne 0x40a2c6
or eax, 1
mov ecx, 0x454e90
mov dword [0x454e84], eax
call fcn.0040a090
push 0x438ca0
call fcn.00421b42
add esp, 4
push 0x454cf4
mov dword [0x454d4c], 0x454e90
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x454d4c]
mov esp, ebp
pop ebp
ret
push esi
mov ecx, edi
call edx
jmp 0x40a276

Function at 0x40a7d0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x44d410], 0
push esi
mov esi, edx
je 0x40a82f
push dword [0x44d418]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40a82f
cmp dword [eax], 0xd
jbe 0x40a82f
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x34]
test eax, eax
je 0x40a82f
push 0
push 0x44dc14
push 0x44dc4c
push 0
push eax
call fcn.00436f18
add esp, 0x14
test eax, eax
je 0x40a82f
mov edx, dword [eax]
cmp edx, vtable.t_visualDataItemPtr_class_t_perfManager_.0
jne 0x40a833
mov eax, dword [eax + 4]
mov dword [esi], eax
mov al, 1
pop esi
ret
mov dword [esi], eax
mov al, 1
pop esi
ret
xor al, al
pop esi
ret
mov ecx, eax
call dword [edx + 8]
jmp 0x40a829
Function at 0x40b750
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4377cb
mov eax, dword fs:[0]
push eax
sub esp, 0x36c
mov eax, dword [0x44c040]
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 edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test eax, eax
je 0x40b7a9
push eax
call fcn.00427afc
add esp, 4
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push ecx
lea ecx, [ebp - 0x370]
call fcn.004031d0
mov dword [ebp - method.t_fileRead.virtual_0], vtable.t_fileRead.0
mov dword [ebp - 0x1c], 0x4461c0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0
push esi
push ebx
lea ecx, [ebp - 0x370]
mov dword [ebp - 4], 0
call fcn.00403330
test al, al
je 0x40b930
lea eax, [ebp - 0x374]
mov dword [ebp - 0x374], 0
push eax
push dword [ebp - 0x36c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x378], eax
cmp eax, 0xffffffff
jne 0x40b82e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40b828
xor eax, eax
jmp 0x40b82e
mov eax, dword [ebp - 0x378]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x378]
push eax
push dword [ebp - 0x36c]
mov dword [ebp - 0x378], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x374], eax
cmp eax, 0xffffffff
jne 0x40b873
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40b86d
xor eax, eax
mov dword [ebp - 0x374], eax
jmp 0x40b873
mov eax, dword [ebp - 0x374]
add eax, 4
push eax
call fcn.00427b01
add esp, 4
mov dword [ebp - 0x378], eax
test eax, eax
jne 0x40b8ac
mov dword [edi + 0x24], 2
cmp byte [esi + 0x11c], al
je 0x40b8a2
add esi, 0xc
push 0x446074
jmp 0x40b8dd
mov esi, dword [esi + 8]
push 0x446074
jmp 0x40b8dd
push dword [ebp - 0x374]
lea ecx, [ebp - 0x1c]
push eax
push ebx
call fcn.0040bd50
test al, al
jne 0x40b8f8
mov dword [edi + 0x24], 3
cmp byte [esi + 0x11c], 0
je 0x40b8d5
add esi, 0xc
jmp 0x40b8d8
mov esi, dword [esi + 8]
push 0x444344
mov ecx, ebx
call fcn.00403170
lea ecx, [esi + 4]
push ecx
push 0x444420
push eax
call fcn.00403f30
add esp, 0xc
jmp 0x40b937
lea ecx, [ebp - 0x370]
call fcn.004035e0
mov ecx, dword [ebp - 0x378]
xor edx, edx
mov eax, dword [ebp - 0x374]
push ecx
push eax
push ecx
mov dword [ecx + eax], edx
mov ecx, edi
push ebx
call fcn.0040ba30
test al, al
jne 0x40b92c
mov dword [edi + 0x24], 4
jmp 0x40b8c7
mov bl, 1
jmp 0x40b939
mov dword [edi + 0x24], 1
xor bl, bl
lea ecx, [ebp - 0x370]
mov dword [ebp - method.t_fileRead.virtual_0], vtable.t_fileRead.0
mov dword [ebp - 0x1c], vtable.t_byteStreamRead.0
call fcn.00403270
mov al, bl
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.00421b57
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40bd50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x40be53
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push edi
push dword [ebp + 0xc]
push dword [esi - 0x350]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40bdd6
lea edi, [esi - 0x33c]
cmp byte [esi - 0x22c], al
jne 0x40bda0
mov edi, dword [esi - 0x340]
mov ecx, dword [ebp + 8]
call fcn.00407180
push 0x444380
mov esi, eax
push 0x444420
push esi
call fcn.00403f30
lea ecx, [edi + 4]
push ecx
push 0x444420
push esi
call fcn.00403f30
add esp, 0x18
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
test ecx, ecx
jne 0x40be1c
cmp byte [esi - 0x22c], cl
je 0x40bded
add esi, 0xfffffcc4
jmp 0x40bdf3
mov esi, dword [esi - 0x340]
mov ecx, dword [ebp + 8]
push 0x444390
call fcn.00403170
lea ecx, [esi + 4]
push ecx
push 0x444420
push eax
call fcn.00403f30
add esp, 0xc
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
cmp ecx, edi
je 0x40be53
cmp byte [esi - 0x22c], 0
lea eax, [esi - 0x33c]
jne 0x40be35
mov eax, dword [esi - 0x340]
add eax, 4
push eax
push ecx
push edi
push str.penc_rN
push dword [ebp + 8]
call fcn.00407070
add esp, 0x14
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
add dword [esi + 8], edi
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40c180
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.0040bf00
add esp, 4
test eax, eax
js 0x40c36c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax + 0xf0]
xor ebx, ebx
shl edi, 2
test edi, edi
jle 0x40c1f4
lea esi, [eax + 8]
add eax, 8
lea esi, [esi + edi*4]
mov edx, dword [eax - 8]
lea eax, [eax + 0x10]
mov ecx, dword [esi - 8]
lea esi, [esi - 0x10]
mov dword [eax - 0x18], ecx
add ebx, 4
mov ecx, dword [esi + 0xc]
sub edi, 4
mov dword [esi + 8], edx
mov edx, dword [eax - 0x14]
mov dword [eax - 0x14], ecx
mov ecx, dword [esi + 0x10]
mov dword [esi + 0xc], edx
mov edx, dword [eax - 0x10]
mov dword [eax - 0x10], ecx
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x10], edx
mov edx, dword [eax - 0xc]
mov dword [eax - 0xc], ecx
mov dword [esi + 0x14], edx
cmp ebx, edi
jl 0x40c1b4
mov ebx, dword [ebp + 8]
mov edi, 1
cmp dword [ebx + 0xf0], edi
jle 0x40c367
lea esi, [ebx + 2]
nop dword [eax + eax]
mov edx, dword [esi + 0xe]
lea esi, [esi + 0x10]
mov eax, edx
inc edi
shr eax, 0x18
movzx ecx, byte [eax*4 + str.cc]
movzx eax, byte [esi - 1]
mov ecx, dword [ecx*4 + 0x442a10]
movzx eax, byte [eax*4 + str.cc]
xor ecx, dword [eax*4 + 0x442110]
movzx eax, byte [esi]
movzx eax, byte [eax*4 + str.cc]
xor ecx, dword [eax*4 + 0x442510]
movzx eax, dl
mov edx, dword [esi + 2]
movzx eax, byte [eax*4 + str.cc]
xor ecx, dword [eax*4 + 0x443a40]
mov eax, edx
shr eax, 0x18
mov dword [esi - 2], ecx
movzx ecx, byte [eax*4 + str.cc]
movzx eax, byte [esi + 3]
mov ecx, dword [ecx*4 + 0x442a10]
movzx eax, byte [eax*4 + str.cc]
xor ecx, dword [eax*4 + 0x442110]
movzx eax, byte [esi + 4]
movzx eax, byte [eax*4 + str.cc]
xor ecx, dword [eax*4 + 0x442510]
movzx eax, dl
mov edx, dword [esi + 6]
movzx eax, byte [eax*4 + str.cc]
xor ecx, dword [eax*4 + 0x443a40]
mov eax, edx
shr eax, 0x18
mov dword [esi + 2], ecx
movzx ecx, byte [eax*4 + str.cc]
movzx eax, byte [esi + 7]
mov ecx, dword [ecx*4 + 0x442a10]
movzx eax, byte [eax*4 + str.cc]
xor ecx, dword [eax*4 + 0x442110]
movzx eax, byte [esi + 8]
movzx eax, byte [eax*4 + str.cc]
xor ecx, dword [eax*4 + 0x442510]
movzx eax, dl
mov edx, dword [esi + 0xa]
movzx eax, byte [eax*4 + str.cc]
xor ecx, dword [eax*4 + 0x443a40]
mov eax, edx
shr eax, 0x18
mov dword [esi + 6], ecx
movzx ecx, byte [eax*4 + str.cc]
movzx eax, byte [esi + 0xb]
mov ecx, dword [ecx*4 + 0x442a10]
movzx eax, byte [eax*4 + str.cc]
xor ecx, dword [eax*4 + 0x442110]
movzx eax, byte [esi + 0xc]
movzx eax, byte [eax*4 + str.cc]
xor ecx, dword [eax*4 + 0x442510]
movzx eax, dl
movzx eax, byte [eax*4 + str.cc]
xor ecx, dword [eax*4 + 0x443a40]
mov dword [esi + 0xa], ecx
cmp edi, dword [ebx + 0xf0]
jl 0x40c210
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret