joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f590
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb021
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
push ebx
push esi
mov eax, dword [0x53602c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push ebx
push ebx
push esi
push 0x44f660
push ebx
mov dword [ebp - 0x10], ebx
push ebx
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
jne 0x44f637
call sub.KERNEL32.dll_GetLastError
push eax
push 4
push 0x1b
push str.E:.conan709e391_sourcesexternalcrashpadutil_thread_thread_win.cc
push str.void___thiscall_crashpad::Thread::Start_void_
lea ecx, [ebp - 0xc0]
call fcn.00452ce0
push 0x50b844
push 0x504954
push str.Check_failed:_platform_thread_
mov ebx, 2
mov dword [ebp - 4], 1
push eax
mov dword [ebp - 0x10], ebx
call fcn.004012f0
add esp, 8
push eax
call fcn.004012f0
add esp, 8
push eax
call fcn.004012f0
add esp, 8
test bl, 2
je 0x44f647
lea ecx, [ebp - 0xc0]
call fcn.00452fa0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4511d0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb7ad
mov eax, dword fs:[0]
push eax
sub esp, 0x174
mov eax, dword [0x53602c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push 0
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movlpd qword [ebp - 0x20], xmm0
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x451272
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0xf1
push str.E:.conan709e391_sourcesexternalcrashpadutil_file_file_io_win.cc
push str.__int64___cdecl_crashpad::LoggingSeekFile_void____int64_int_
lea ecx, [ebp - 0xd0]
call fcn.00452ce0
push 0x50fb48
push eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x1c], 4
call fcn.004012f0
add esp, 8
lea ecx, [ebp - 0xd0]
call fcn.00452fa0
xor al, al
jmp 0x4512d4
mov eax, dword [ebp - 0x18]
or eax, dword [ebp - 0x14]
jne 0x4512ce
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4512d2
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0xfb
push str.E:.conan709e391_sourcesexternalcrashpadutil_file_file_io_win.cc
push str.bool___cdecl_crashpad::LoggingTruncateFile_void__
lea ecx, [ebp - 0x180]
call fcn.00452ce0
push 0x50fb5c
push eax
mov dword [ebp - 4], 2
mov dword [ebp - 0x1c], 1
call fcn.004012f0
add esp, 8
lea ecx, [ebp - 0x180]
call fcn.00452fa0
xor al, al
jmp 0x4512d4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047d116
mov esp, ebp
pop ebp
ret
Function at 0x4513b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb830
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x53602c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
mov edx, dword [ebp + 8]
mov esi, 0x7fffffff
push 0
push eax
mov eax, dword [ebp + 0x10]
cmp eax, esi
cmova eax, esi
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x451407
or eax, 0xffffffff
jmp 0x451453
cmp dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x18], 0xffffffff
jne 0x451450
push str.bytes_written___static_cast_DWORD___1_
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0042ee70
add esp, 0xc
test eax, eax
je 0x451450
push eax
push 0x65
push str.E:.conan709e391_sourcesexternalcrashpadutil_file_file_io_win.cc
push str.long___cdecl_crashpad::internal::NativeWriteFile_void__const_void__unsigned_int_
lea ecx, [ebp - 0xc0]
call fcn.00452bd0
lea ecx, [ebp - 0xc0]
call fcn.00452d70
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047d116
mov esp, ebp
pop ebp
ret

Function at 0x451590
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x53602c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, 0x7fffffff
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
cmp edi, ecx
push 0
cmova edi, ecx
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 8]
push ecx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45164c
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileType]
nop word [eax + eax]
cmp dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
jne 0x451629
push str.bytes_read___static_cast_DWORD___1_
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0042ee70
add esp, 0xc
test eax, eax
je 0x451629
push eax
push 0x7e
push str.E:.conan709e391_sourcesexternalcrashpadutil_file_file_io_win.cc
push str.long___cdecl_crashpad::ReadFile_void__void__unsigned_int_
lea ecx, [ebp - 0xb8]
call fcn.00452bd0
lea ecx, [ebp - 0xb8]
call fcn.00452d70
cmp dword [ebp - 8], 0
jne 0x45166a
push esi
call ebx
cmp eax, 3
jne 0x45166a
push 0
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4515e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x6d
pop edi
neg eax
pop esi
sbb eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d116
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0047d116
mov esp, ebp
pop ebp
ret

Function at 0x451760
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x18]
mov ecx, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xa0]
mov eax, dword [eax + 0xc]
cmp eax, dword [ecx + 0x24]
sete al
ret
Function at 0x45b150
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045b1a0

Function at 0x45b5a0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x45b5ac
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.0045b890

Function at 0x45b680
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x53602c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x108], edx
test edi, edi
jg 0x45b6bc
jl 0x45b6aa
test edx, edx
jne 0x45b6bc
mov eax, dword [ebp + 8]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d116
mov esp, ebp
pop ebp
ret
mov ecx, 1
mov dword [ebp - 0x84], 0xedb88320
mov eax, ecx
nop dword [eax]
mov dword [ebp + eax*4 - 0x84], ecx
inc eax
add ecx, ecx
cmp eax, 0x20
jl 0x45b6d0
push ebx
push esi
xor esi, esi
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebp + esi - 0x84]
lea ecx, [ebp - 0x84]
xor edx, edx
test eax, eax
je 0x45b710
test al, 1
je 0x45b709
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x45b703
mov dword [ebp + esi - 0x104], edx
add esi, 4
cmp esi, 0x80
jl 0x45b6f0
xor esi, esi
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [ebp + esi - 0x104]
lea ecx, [ebp - 0x104]
xor edx, edx
test eax, eax
je 0x45b750
test al, 1
je 0x45b749
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x45b743
mov dword [ebp + esi - 0x84], edx
add esi, 4
cmp esi, 0x80
jl 0x45b730
mov ebx, dword [ebp + 8]
nop word [eax + eax]
xor esi, esi
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebp + esi - 0x84]
lea ecx, [ebp - 0x84]
xor edx, edx
test eax, eax
je 0x45b7a0
test al, 1
je 0x45b799
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x45b793
mov dword [ebp + esi - 0x104], edx
add esi, 4
cmp esi, 0x80
jl 0x45b780
mov edx, dword [ebp - 0x108]
mov eax, edx
and eax, 1
or eax, 0
je 0x45b7e0
xor ecx, ecx
lea eax, [ebp - 0x104]
test ebx, ebx
je 0x45b7de
nop
test bl, 1
je 0x45b7d7
xor ecx, dword [eax]
add eax, 4
shr ebx, 1
jne 0x45b7d0
mov ebx, ecx
shrd edx, edi, 1
sar edi, 1
mov eax, edx
or eax, edi
mov dword [ebp - 0x108], edx
je 0x45b876
xor esi, esi
nop dword [eax + eax]
mov eax, dword [ebp + esi - 0x104]
lea ecx, [ebp - 0x104]
xor edx, edx
test eax, eax
je 0x45b820
test al, 1
je 0x45b819
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x45b813
mov dword [ebp + esi - 0x84], edx
add esi, 4
cmp esi, 0x80
jl 0x45b800
mov edx, dword [ebp - 0x108]
mov eax, edx
and eax, 1
or eax, 0
je 0x45b860
xor ecx, ecx
lea eax, [ebp - 0x84]
test ebx, ebx
je 0x45b85e
nop
test bl, 1
je 0x45b857
xor ecx, dword [eax]
add eax, 4
shr ebx, 1
jne 0x45b850
mov ebx, ecx
shrd edx, edi, 1
sar edi, 1
mov ecx, edx
or ecx, edi
mov dword [ebp - 0x108], edx
jne 0x45b770
xor ebx, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
pop ebx
xor ecx, ebp
pop edi
call fcn.0047d116
mov esp, ebp
pop ebp
ret
Function at 0x47e6e1
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x47e720
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x47e720
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47e720
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x47e720
cmp dword [ecx + 0x74], 0xe
jbe 0x47e720
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4c03cd
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4c040c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4c040c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4c040c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4c040c
cmp dword [ecx + 0x74], 0xe
jbe 0x4c040c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4c581e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5189ec
push 0x5189e4
push str.FlsAlloc
push 0x1f
call fcn.004c54ec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4c5852
push dword [ebp + 8]
mov ecx, esi
call dword [0x502324]
call esi
jmp 0x4c5858
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4c589c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5189fc
push 0x5189f4
push str.FlsGetValue
push 0x21
call fcn.004c54ec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4c58d3
push dword [ebp + 8]
mov ecx, esi
call dword [0x502324]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4c58db
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x518a04
push 0x5189fc
push str.FlsSetValue
push 0x22
call fcn.004c54ec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4c5915
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x502324]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4cd440
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004cd314
Function at 0x4cdc7d
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x53602c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4cdcc8
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004ce04f
test al, al
jne 0x4cdcc2
sub edx, 2
cmp edx, edi
jne 0x4cdca8
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4cdcea
lea eax, [edi + 2]
cmp edx, eax
je 0x4cdcea
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004cd944
add esp, 0x10
jmp 0x4cdde4
push esi
lea ecx, [ebp - 0x255]
call fcn.004ce04f
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4cdd2d
push dword [ebp - 0x25c]
jmp 0x4cdcda
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4cdd6a
cmp word [ebp - 0x226], 0
je 0x4cdd8b
cmp word [ebp - 0x226], ax
jne 0x4cdd6a
cmp word [ebp - 0x224], 0
je 0x4cdd8b
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004cd944
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4cddd7
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4cdd44
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4cddbf
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4cdde4
push 0x4cd463
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004dabf0
add esp, 0x10
jmp 0x4cddb4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d116
leave
ret
Function at 0x4cf117
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4cf1b4
push ebx
push esi
call fcn.004cf0d3
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004cc261
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4cf161
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4cf1b3
push edi
push eax
call fcn.004c62e2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4cf181
call fcn.004c4e75
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4cf1b2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004cc261
add esp, 0x20
test eax, eax
jne 0x4cf1a0
push edi
call fcn.004c4e75
jmp 0x4cf1a8
push ebx
call fcn.004c4e75
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4cf1b7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4cf1c8
pop esi
ret
push ebx
push edi
push esi
call fcn.004cf0d3
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004c62e2
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4cf1f0
push ebx
push esi
push edi
call fcn.0047f050
add esp, 0xc
push 0
call fcn.004c4e75
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4cfadf
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004cf465

Function at 0x4d258d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004c472c
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4d25fc
cmp esi, dword [ebp - 4]
je 0x4d25f7
cmp dword [ebp + 0xc], 0
je 0x4d25f7
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4d25d4
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004d20df
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4d25fe
xor eax, eax
inc eax
jmp 0x4d25fe
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4d2663
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x53602c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004c472c
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004c472c
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x4d26da
cmp word [ecx], dx
je 0x4d26da
mov eax, dword [0x51920c]
push edi
dec eax
push eax
push 0x5190f8
call fcn.004d2602
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4d274d
cmp word [eax], dx
je 0x4d274d
mov eax, dword [edi]
test eax, eax
je 0x4d26fe
cmp word [eax], dx
je 0x4d26fe
lea eax, [ebp - 0x10]
push eax
call fcn.004d1fe5
jmp 0x4d2707
lea eax, [ebp - 0x10]
push eax
call fcn.004d2080
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4d2777
mov eax, dword [0x5190f4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x518de8
call fcn.004d2602
add esp, 0xc
test al, al
je 0x4d2777
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4d2742
cmp word [eax], di
je 0x4d2742
lea eax, [ebp - 0x10]
push eax
call fcn.004d1fe5
pop ecx
jmp 0x4d2779
lea eax, [ebp - 0x10]
push eax
call fcn.004d2080
jmp 0x4d273f
mov eax, dword [edi]
test eax, eax
je 0x4d2764
cmp word [eax], dx
je 0x4d2764
lea eax, [ebp - 0x10]
push eax
call fcn.004d1f7c
pop ecx
jmp 0x4d2777
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4d2842
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004d2487
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4d2842
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4d2842
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4d2842
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4d27cf
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004c5bac
test ebx, ebx
je 0x4d283d
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004c5bac
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4d2842
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4d2842
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004dbb25
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4d2844
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d116
leave
ret
Function at 0x4d8d9f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x53a6c0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4d8ddf
cmp byte [ebx], 0xa
jne 0x4d8ddf
or byte [edi + eax + 0x28], 4
jmp 0x4d8de4
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4d8ee3
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4d8ec6
inc eax
cmp dl, 0xd
je 0x4d8e10
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4d8e36
cmp eax, ecx
jae 0x4d8e44
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4d8df8
jmp 0x4d8ee3
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d8ec1
cmp dword [ebp - 0x10], 0
je 0x4d8ec1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x53a6c0]
test byte [eax + edi + 0x28], 0x48
je 0x4d8e9b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4d8e86
mov byte [esi], dl
jmp 0x4d8e97
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x53a6c0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4d8ee3
cmp byte [ebp - 1], 0xa
jne 0x4d8eaa
cmp esi, ebx
jne 0x4d8eaa
mov byte [esi], 0xa
jmp 0x4d8ee2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004d8bf1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4d8ee3
mov byte [esi], 0xd
jmp 0x4d8ee2
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x53a6c0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4d8ee0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4d8ee3
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4d8eec
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x53a6c0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4d8f32
cmp word [ebx], dx
jne 0x4d8f32
or byte [eax + edi + 0x28], 4
jmp 0x4d8f37
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4d909a
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4d907a
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4d8f78
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4d8fae
cmp eax, edx
jae 0x4d8fbc
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4d8f53
jmp 0x4d909a
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d9075
cmp dword [ebp - 0x18], 0
je 0x4d9075
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x53a6c0]
test byte [eax + edi + 0x28], 0x48
je 0x4d904b
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4d900f
mov word [esi], cx
jmp 0x4d9046
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x53a6c0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x53a6c0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x53a6c0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4d909a
pop eax
cmp word [ebp - 4], ax
jne 0x4d905b
cmp esi, ebx
jne 0x4d905b
mov word [esi], ax
jmp 0x4d9097
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004d8bf1
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4d909a
push 0xd
pop eax
jmp 0x4d9056
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x53a6c0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4d9094
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4d909a
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret