joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c26c0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc079
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5636c8]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], 0
push 0xffffffffffffffff
push str.en_us
lea ecx, [ebp - 0x1c]
call fcn.00414dca
mov dword [ebp - 4], 1
push 8
lea eax, [ebp - 0x30]
push eax
push 0x59
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4c2755
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004064c0
push 8
lea edx, [ebp - 0x30]
push edx
push 0x5a
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4c2755
push 0x5f
lea ecx, [ebp - 0x1c]
call fcn.00406510
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00406530
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00414e41
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004064e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00414a92
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00414e04
mov edx, dword [ebp - 0x44]
or edx, 1
mov dword [ebp - 0x44], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00414a92
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.00494f67
mov esp, ebp
pop ebp
ret
Function at 0x4c2c00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push 0x525230
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x24]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [ebp - 8], 0
lea ecx, [ebp - 8]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [edx + 0x18]
call ecx
push 0x10
call fcn.004059f0
add esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x4c2ce3
push 0
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0x30]
call fcn.00406450
mov dword [ebp - 0x34], eax
jmp 0x4c2cea
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 0x28]
mov esp, ebp
pop ebp
ret
Function at 0x4d8700
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f9d12
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5636c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x10]
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::String::constructor_void_]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x18], 0
je 0x4d87fb
push 0x1fe
call fcn.00494f5c
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
push 0xff
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xff
jle 0x4d87d6
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [ebp - 0x14]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00494f5c
add esp, 4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp dword [ebp - 0x14], 0
jle 0x4d87e9
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x10]
call dword [sym.imp.ScCore.dll_public:_class_ScCore::String____thiscall_ScCore::String::operator_unsigned_short_int_const__]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp + 8]
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::String::constructor_class_ScCore::String_const__]
mov eax, dword [ebp - 0x2c]
or eax, 1
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::String::destructor_void_]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4dcac0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
call dword [sym.imp.ScCore.dll_public:_unsigned_short_int_const____thiscall_ScCore::String::wstr_void_const]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0xc], 0
je 0x4dcb19
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4dcb19
mov dword [ebp - 0x14], 1
jmp 0x4dcb20
mov dword [ebp - 0x14], 0
mov al, byte [ebp - 0x14]
mov esp, ebp
pop ebp
ret 4
Function at 0x4dd720
Capabilities:
Log keystrokes via application hook
Set global application hook

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x500cab
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x5636c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.00402270
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
mov dword [ecx], vtable.SAF::ApplicationCore.0
push 0xffffffffffffffff
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 8
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::String::constructor_unsigned_short_int_const___int_]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0xc], 0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [edx + 0x10], ecx
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x14], 0
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x18], 1
mov ecx, dword [ebp - 0x18]
mov byte [ecx + 0x19], 0
mov edx, dword [ebp - 0x18]
mov byte [edx + 0x1a], 0
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x1b], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
push 0x4dd460
push 4
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x56668c], eax
push 0x4dcb50
call fcn.0049509d
add esp, 4
push str.SAF.Msg.Interrupt
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov dword [0x566664], eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::FileSpec::constructor_void_]
mov byte [ebp - 4], 2
lea eax, [ebp - 0x10]
push eax
push 1
call dword [sym.imp.ScCore.dll_public:_static_int___cdecl_ScCore::FileUtils::getSpecialDir_int__class_ScCore::FileSpec__]
add esp, 8
push str.AdobeOWL.dll
lea ecx, [ebp - 0x14]
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::String::constructor_char_const__]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
call dword [sym.imp.ScCore.dll_public:_bool___thiscall_ScCore::FileSpec::changePath_class_ScCore::String_const__]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::String::destructor_void_]
lea ecx, [ebp - 0x10]
call dword [sym.imp.ScCore.dll_public:_bool___thiscall_ScCore::FileSpec::exists_void_const]
mov edx, dword [ebp - 0x18]
mov byte [edx + 0x19], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::FileSpec::destructor_void_]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x4e45b0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x500d24
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5636c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x18]
call fcn.004e1850
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
add ecx, 0x14
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Broadcaster::constructor_void_]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
mov dword [eax], vtable.SAF::Application.0
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 4], vtable.SAF::Application.1.0
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x18]
add ecx, 0x18
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::String::constructor_char_const__]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
add ecx, 0x1c
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::String::constructor_void_]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x20], 0
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x24], 0
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x28], 0
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x2c], 0
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x30], 0
mov edx, dword [ebp - 0x18]
mov byte [edx + 0x34], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
mov dl, byte [ecx + 0xc]
mov byte [eax + 0x35], dl
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x36], 0
mov ecx, dword [ebp - 0x18]
mov byte [ecx + 0x37], 0
mov edx, dword [ebp - 0x18]
mov byte [edx + 0x38], 0
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x39], 0
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x3c], 0
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x40], 0
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x44], 0
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x48], 0
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x4c], 0
push 0x1c
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0x14], 0
je 0x4e46ed
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.004dd720
mov dword [ebp - 0x1c], eax
jmp 0x4e46f4
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x44], ecx
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0x44]
call fcn.00401090
mov ecx, dword [ebp - 0x18]
mov byte [ecx + 0x36], al
mov edx, dword [ebp - 0x18]
mov dword [0x566680], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x405ee9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x405f0d
xor eax, eax
test eax, eax
je 0x405f1f
cmp byte [ebp + eax - 0x121], 0x5c
je 0x405f1f
xor ecx, ecx
jmp 0x405f22
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409010]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x405fc6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c634], 0
push esi
jne 0x405ffd
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405fd7
mov dword [ecx*4 + 0x42c630], eax
inc ecx
cmp ecx, 0x100
jl 0x405fd2
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40602e
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c630]
xor eax, esi
inc ecx
dec edx
jne 0x406010
pop edi
not eax
pop esi
ret 0xc

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x4a9f20
Capabilities:
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
mov eax, dword [0x4dc00c]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
mov ebx, dword [0x4dc86c]
xorps xmm0, xmm0
push ebp
movlpd qword [esp + 0x24], xmm0
movlpd qword [esp + 0x2c], xmm0
mov eax, dword [ebx + 0x3c]
movlpd qword [esp + 0x34], xmm0
movlpd qword [esp + 0x3c], xmm0
movlpd qword [esp + 0x44], xmm0
movlpd qword [esp + 0x4c], xmm0
movlpd qword [esp + 0x54], xmm0
movlpd qword [esp + 0x5c], xmm0
mov dword [esp + 0x20], 0x44
movups xmmword [esp + 0x10], xmm0
mov ebp, dword [eax + ebx + 0x78]
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], ecx
mov esi, dword [ebp + ebx + 0x20]
add esi, ebx
nop dword [eax + eax]
mov ecx, dword [esi]
mov edx, 0x3a33aaf4
add ecx, ebx
mov al, byte [ecx]
inc ecx
test al, al
je 0x4a9fbd
movsx eax, al
lea ecx, [ecx + 1]
xor eax, edx
imul edx, eax, 0x1000193
mov al, byte [ecx - 1]
test al, al
jne 0x4a9fa0
cmp edx, 0x1fdc03e
je 0x4a9fc3
inc edi
add esi, 4
jmp 0x4a9f90
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ebp + ebx + 0x24]
push 0
push 0
push 0
lea eax, [eax + edi*2]
movzx ecx, word [eax + ebx]
mov eax, dword [ebp + ebx + 0x1c]
push 0
push 0
push 0
lea eax, [eax + ecx*4]
mov eax, dword [eax + ebx]
push 0
push dword [esp + 0x38]
add eax, ebx
call eax
mov ebx, dword [0x4dc86c]
xor edi, edi
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x3c]
mov ebp, dword [eax + ebx + 0x78]
mov esi, dword [ebp + ebx + 0x20]
add esi, ebx
mov ecx, dword [esi]
mov edx, 0x88ea8fca
add ecx, ebx
mov al, byte [ecx]
inc ecx
test al, al
je 0x4aa042
movsx eax, al
lea ecx, [ecx + 1]
xor eax, edx
imul edx, eax, 0x1000193
mov al, byte [ecx - 1]
test al, al
jne 0x4aa025
cmp edx, 0x86e994b0
je 0x4aa048
inc edi
add esi, 4
jmp 0x4aa015
mov eax, dword [ebp + ebx + 0x24]
push dword [esp + 0x18]
lea eax, [eax + edi*2]
movzx ecx, word [eax + ebx]
mov eax, dword [ebp + ebx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + ebx]
add eax, ebx
call eax
mov ebx, dword [0x4dc86c]
xor edi, edi
mov eax, dword [ebx + 0x3c]
mov ebp, dword [eax + ebx + 0x78]
mov esi, dword [ebp + ebx + 0x20]
add esi, ebx
nop word [eax + eax]
mov eax, dword [esi]
mov edx, 0x1d4eca5a
add eax, ebx
mov cl, byte [eax]
inc eax
test cl, cl
je 0x4aa0ad
movsx ecx, cl
lea eax, [eax + 1]
xor ecx, edx
imul edx, ecx, 0x1000193
mov cl, byte [eax - 1]
test cl, cl
jne 0x4aa090
cmp edx, 0x71ffa700
je 0x4aa0b3
inc edi
add esi, 4
jmp 0x4aa080
mov ecx, dword [ebp + ebx + 0x24]
push dword [esp + 0x1c]
lea ecx, [ecx + edi*2]
movzx edx, word [ecx + ebx]
mov ecx, dword [ebp + ebx + 0x1c]
lea ecx, [ecx + edx*4]
mov ecx, dword [ecx + ebx]
add ecx, ebx
call ecx
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004cbdc9
add esp, 0x6c
ret
Function at 0x4b6df0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x4b6e1c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x4b6e44
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x4b6e4a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x4b6eb2
jg 0x4b6e61
test esi, esi
je 0x4b6eb2
test ecx, ecx
jl 0x4b6ead
jg 0x4b6e6b
test eax, eax
je 0x4b6ead
cmp edi, ecx
jg 0x4b6e7f
jl 0x4b6e75
cmp esi, eax
jae 0x4b6e7f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x4b6eb5
mov ecx, dword [ebp + 8]
jmp 0x4b6ebf
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x4b6ed9
jg 0x4b6ebf
test esi, esi
je 0x4b6ed9
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x4b6ed9
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4b6ef0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
push ebx
mov ebx, ecx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
test eax, eax
jg 0x4b6f1b
jl 0x4b6f0e
test esi, esi
jne 0x4b6f1b
pop esi
pop ebp
xor eax, eax
xor edx, edx
pop ebx
add esp, 8
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x4b6f33
push eax
push esi
push ebp
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, esi
mov edx, dword [eax]
test edx, edx
je 0x4b6f77
mov eax, dword [ebx + 0x2c]
lea ecx, [ebx + 0x2c]
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
test eax, eax
je 0x4b6f7e
mov edi, dword [esp + 0x20]
cmp eax, edi
cmovb esi, eax
push esi
push edx
push ebp
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add ebp, esi
sub edi, esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x20]
jmp 0x4b6f7e
lea eax, [ebx + 0x2c]
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x4c], 0
je 0x4b6feb
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x4b6fa8
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x4b6fd9
push dword [ebx + 0x4c]
push 0xfff
push 1
push ebp
call eax
add esp, 0x10
add ebp, eax
sub edi, eax
cmp eax, 0xfff
jne 0x4b6feb
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x4b6fb5
test edi, edi
je 0x4b6feb
push dword [ebx + 0x4c]
push edi
push 1
push ebp
call eax
add esp, 0x10
sub edi, eax
mov edx, dword [esp + 0x24]
sub esi, edi
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x4b7350
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x4dc00c]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4b7380
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004cbdc9
add esp, 0x30
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x4b73b1
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x4b73b1
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004cbdc9
add esp, 0x30
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x4b7497
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x4b73da
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b73e6
movsx eax, bl
jmp 0x4b7426
lea eax, [esp + 0xc]
mov byte [esp + 0x17], bl
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x2b]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x4b7451
sub eax, 1
je 0x4b7451
sub eax, 2
jne 0x4b7497
movsx eax, byte [esp + 0x17]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004cbdc9
add esp, 0x30
ret 4
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x18]
sub edi, eax
je 0x4b7471
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4b7497
lea ecx, [esp + 0x17]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [esp + 0x10], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004cbdc9
add esp, 0x30
ret 4
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004cbdc9
add esp, 0x30
ret 4