joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424b14
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x452e20
call fcn.00425116
push 1
call fcn.00424b97
pop ecx
test al, al
jne 0x4249bd
push 7
call fcn.004257a1
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00424b62
mov byte [ebp - 0x24], al
mov eax, dword [0x461f38]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x4249b6
test eax, eax
jne 0x424a27
mov dword [0x461f38], ecx
push 0x42835c
push 0x428344
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x424a0a
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x424b0e
push 0x428340
push 0x4282f0
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x461f38], 2
jmp 0x424a2c
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.00424cf4
pop ecx
call fcn.00425795
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x424a5c
push esi
call fcn.00424c67
pop ecx
test al, al
je 0x424a5c
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.004259d3
call esi
call fcn.0042579b
mov esi, eax
cmp dword [esi], edi
je 0x424a7a
push esi
call fcn.00424c67
pop ecx
test al, al
je 0x424a7a
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
push edi
call sub.VCRUNTIME140.dll___telemetry_main_invoke_trigger
pop ecx
call fcn.004258b6
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_wide_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
push edi
call sub.VCRUNTIME140.dll___telemetry_main_return_trigger
pop ecx
call fcn.004258ec
test al, al
jne 0x424ab3
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x424abc
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.00424d11
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x424b0e
call fcn.0042515c
ret
call fcn.00424823
jmp 0x42499e

Function at 0x4264c9
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
test edx, edx
jne 0x4264d8
or eax, 0xffffffff
jmp 0x426515
movzx eax, word [edx]
mov ecx, 0x1505
push esi
xor esi, esi
jmp 0x4264f2
imul ecx, ecx, 0x21
movzx eax, ax
xor ecx, eax
inc esi
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x4264e5
imul eax, ecx, 0x41c64e6d
imul ecx, ecx, 0x10dcd
pop esi
add eax, 0x3039
shr eax, 0x10
inc ecx
and ecx, 0xffff0000
or eax, ecx
pop ebp
ret 4

Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call sub.MSVCR80.dll_memset
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x500
mov dword [ebp - 0x30], str.open
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
call dword [sym.imp.ole32.dll_OleUninitialize]
leave
ret 0x10
Function at 0x4018c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0042c570
mov eax, dword [0x4748f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1008], ecx
mov eax, dword [ebp - 0x1008]
mov dword [eax], vtable.cAESFile.0
mov byte [ebp - 0x1004], 0x5e
mov byte [ebp - 0x1003], 0x21
mov byte [ebp - 0x1002], 0x5e
mov byte [ebp - 0x1001], 0x61
mov byte [ebp - 0x1000], 0x73
mov byte [ebp - 0xfff], 0x69
mov byte [ebp - 0xffe], 0x72
mov byte [ebp - 0xffd], 0x66
mov byte [ebp - 0xffc], 0x31
mov byte [ebp - 0xffb], 0x5e
mov byte [ebp - 0xffa], 0x23
mov byte [ebp - 0xff9], 0x36
mov byte [ebp - 0xff8], 0x38
mov byte [ebp - 0xff7], 0x30
mov byte [ebp - 0xff6], 0x6f
mov byte [ebp - 0xff5], 0x69
mov byte [ebp - 0xff4], 0x5b
mov byte [ebp - 0xff3], 0x73
mov byte [ebp - 0xff2], 0x64
mov byte [ebp - 0xff1], 0x66
mov byte [ebp - 0xff0], 0x67
mov byte [ebp - 0xfef], 0x38
mov byte [ebp - 0xfee], 0x39
mov byte [ebp - 0xfed], 0x70
mov byte [ebp - 0xfec], 0x6f
mov byte [ebp - 0xfeb], 0x61
mov byte [ebp - 0xfea], 0x38
mov byte [ebp - 0xfe9], 0x61
mov byte [ebp - 0xfe8], 0x62
mov byte [ebp - 0xfe7], 0x21
mov byte [ebp - 0xfe6], 0x40
mov byte [ebp - 0xfe5], 0x25
mov byte [ebp - 0xfe4], 0x51
mov byte [ebp - 0xfe3], 0x54
mov byte [ebp - 0xfe2], 0x51
mov byte [ebp - 0xfe1], 0x67
mov byte [ebp - 0xfe0], 0x73
mov byte [ebp - 0xfdf], 0x64
mov byte [ebp - 0xfde], 0x67
mov byte [ebp - 0xfdd], 0x51
mov byte [ebp - 0xfdc], 0x45
mov byte [ebp - 0xfdb], 0x54
mov byte [ebp - 0xfda], 0x59
mov byte [ebp - 0xfd9], 0x51
mov byte [ebp - 0xfd8], 0x66
mov byte [ebp - 0xfd7], 0x61
mov byte [ebp - 0xfd6], 0x31
mov byte [ebp - 0xfd5], 0x32
mov byte [ebp - 0xfd4], 0x34
mov byte [ebp - 0xfd3], 0x30
mov byte [ebp - 0xfd2], 0x2a
mov byte [ebp - 0xfd1], 0x2f
mov byte [ebp - 0xfd0], 0
push 0xfcb
push 0
lea ecx, [ebp - 0xfcf]
push ecx
call fcn.0042a910
add esp, 0xc
mov edx, dword [ebp - 0x1008]
mov dword [edx + 4], 1
mov eax, dword [ebp - 0x1008]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0x1008]
mov eax, dword [ecx*4 + 0x45e2fc]
mov dword [edx + 0xc], eax
push 0x1000
lea ecx, [ebp - 0x1004]
push ecx
mov edx, dword [ebp - 0x1008]
add edx, 0x1010
push edx
call fcn.0042a2c0
add esp, 0xc
mov eax, dword [ebp - 0x1008]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c020
mov esp, ebp
pop ebp
ret
Function at 0x401da0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x738
mov eax, dword [0x4748f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x72c], ecx
cmp dword [ebp + 8], 0
jne 0x401dc6
xor eax, eax
jmp 0x402011
cmp dword [ebp + 0xc], 0
jne 0x401dd3
xor eax, eax
jmp 0x402011
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x730], eax
mov ecx, dword [ebp + 8]
push ecx
push 1
push 1
lea edx, [ebp - 0x71e]
push edx
call fcn.0042bc30
add esp, 0x10
mov eax, dword [ebp - 0x72c]
add eax, 0x10
mov dword [ebp - 0x734], eax
mov dword [ebp - 0x738], 0
push 0x200
push 0
lea ecx, [ebp - 0x204]
push ecx
call fcn.0042a910
add esp, 0xc
mov edx, dword [ebp - 0x72c]
add edx, 0x10
push edx
call fcn.0042a9a0
add esp, 4
push eax
mov eax, dword [ebp - 0x72c]
add eax, 0x10
push eax
lea ecx, [ebp - 0x204]
push ecx
call fcn.0042a2c0
add esp, 0xc
push 0x100
lea edx, [ebp - 0x204]
push edx
lea eax, [ebp - 0x71c]
push eax
call fcn.00404390
add esp, 0xc
mov cl, byte [ebp + 0x14]
mov byte [ebp - 0x71d], cl
mov dword [ebp - 0x728], 0
jmp 0x401e8d
mov edx, dword [ebp - 0x728]
add edx, 0x10
mov dword [ebp - 0x728], edx
mov eax, dword [ebp - 0x728]
cmp eax, dword [ebp - 0x730]
jge 0x401f8d
mov ecx, dword [ebp + 8]
push ecx
push 0x10
push 1
lea edx, [ebp - 0x604]
push edx
call fcn.0042bc30
add esp, 0x10
cmp eax, 0x10
je 0x401f02
push 0
push str.Error__
push str.fread_Error__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x400
push 0
lea eax, [ebp - 0x604]
push eax
call fcn.0042a910
add esp, 0xc
push 0x118
push 0
lea ecx, [ebp - 0x71c]
push ecx
call fcn.0042a910
add esp, 0xc
xor eax, eax
jmp 0x402011
lea edx, [ebp - 0x604]
push edx
lea eax, [ebp - 0x604]
push eax
push 0
lea ecx, [ebp - 0x71c]
push ecx
call fcn.00402ea0
add esp, 0x10
mov dword [ebp - 0x724], 0
jmp 0x401f3c
mov edx, dword [ebp - 0x724]
add edx, 1
mov dword [ebp - 0x724], edx
cmp dword [ebp - 0x724], 0x10
jge 0x401f88
mov eax, dword [ebp - 0x728]
add eax, dword [ebp - 0x724]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x724]
mov dl, byte [ebp + edx - 0x604]
mov byte [ecx + eax], dl
movsx eax, byte [ebp - 0x71d]
mov ecx, dword [ebp - 0x728]
add ecx, dword [ebp - 0x724]
mov edx, dword [ebp + 0xc]
movsx ecx, byte [edx + ecx]
add eax, ecx
mov byte [ebp - 0x71d], al
jmp 0x401f2d
jmp 0x401e7e
mov edx, dword [ebp + 8]
push edx
push 1
push 1
lea eax, [ebp - 0x71f]
push eax
call fcn.0042bc30
add esp, 0x10
movsx ecx, byte [ebp - 0x71e]
movsx edx, byte [ebp - 0x71f]
cmp ecx, edx
jne 0x401fc8
movsx eax, byte [ebp - 0x71e]
movsx ecx, byte [ebp - 0x71d]
cmp eax, ecx
je 0x40200c
push 0
push str.Error__
push str.CheckCrc_Error__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x400
push 0
lea edx, [ebp - 0x604]
push edx
call fcn.0042a910
add esp, 0xc
push 0x118
push 0
lea eax, [ebp - 0x71c]
push eax
call fcn.0042a910
add esp, 0xc
xor eax, eax
jmp 0x402011
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c020
mov esp, ebp
pop ebp
ret 0x10
Function at 0x402090
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0042c570
mov eax, dword [0x4748f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x100c], ecx
mov byte [ebp - 0x1004], 0x5e
mov byte [ebp - 0x1003], 0x21
mov byte [ebp - 0x1002], 0x5e
mov byte [ebp - 0x1001], 0x61
mov byte [ebp - 0x1000], 0x73
mov byte [ebp - 0xfff], 0x69
mov byte [ebp - 0xffe], 0x72
mov byte [ebp - 0xffd], 0x66
mov byte [ebp - 0xffc], 0x31
mov byte [ebp - 0xffb], 0x5e
mov byte [ebp - 0xffa], 0x23
mov byte [ebp - 0xff9], 0x36
mov byte [ebp - 0xff8], 0x38
mov byte [ebp - 0xff7], 0x30
mov byte [ebp - 0xff6], 0x6f
mov byte [ebp - 0xff5], 0x69
mov byte [ebp - 0xff4], 0x5b
mov byte [ebp - 0xff3], 0x73
mov byte [ebp - 0xff2], 0x64
mov byte [ebp - 0xff1], 0x66
mov byte [ebp - 0xff0], 0x67
mov byte [ebp - 0xfef], 0x38
mov byte [ebp - 0xfee], 0x39
mov byte [ebp - 0xfed], 0x70
mov byte [ebp - 0xfec], 0x6f
mov byte [ebp - 0xfeb], 0x61
mov byte [ebp - 0xfea], 0x38
mov byte [ebp - 0xfe9], 0x61
mov byte [ebp - 0xfe8], 0x62
mov byte [ebp - 0xfe7], 0x21
mov byte [ebp - 0xfe6], 0x40
mov byte [ebp - 0xfe5], 0x25
mov byte [ebp - 0xfe4], 0x51
mov byte [ebp - 0xfe3], 0x54
mov byte [ebp - 0xfe2], 0x51
mov byte [ebp - 0xfe1], 0x67
mov byte [ebp - 0xfe0], 0x73
mov byte [ebp - 0xfdf], 0x64
mov byte [ebp - 0xfde], 0x67
mov byte [ebp - 0xfdd], 0x51
mov byte [ebp - 0xfdc], 0x45
mov byte [ebp - 0xfdb], 0x54
mov byte [ebp - 0xfda], 0x59
mov byte [ebp - 0xfd9], 0x51
mov byte [ebp - 0xfd8], 0x66
mov byte [ebp - 0xfd7], 0x61
mov byte [ebp - 0xfd6], 0x31
mov byte [ebp - 0xfd5], 0x32
mov byte [ebp - 0xfd4], 0x34
mov byte [ebp - 0xfd3], 0x30
mov byte [ebp - 0xfd2], 0x2a
mov byte [ebp - 0xfd1], 0x2f
mov byte [ebp - 0xfd0], 0
push 0xfcb
push 0
lea eax, [ebp - 0xfcf]
push eax
call fcn.0042a910
add esp, 0xc
mov dword [ebp - 0x1008], 0
jmp 0x402251
mov ecx, dword [ebp - 0x1008]
add ecx, 1
mov dword [ebp - 0x1008], ecx
mov edx, dword [ebp - 0x100c]
mov eax, dword [ebp - 0x1008]
cmp eax, dword [edx + 4]
jge 0x4022b1
mov ecx, dword [ebp - 0x1008]
mov edx, dword [ecx*4 + 0x45e300]
cmp edx, dword [ebp + 8]
jne 0x4022af
mov eax, dword [ebp - 0x100c]
mov ecx, dword [ebp - 0x1008]
mov edx, dword [ecx*4 + 0x45e300]
mov dword [eax + 8], edx
push 0x1000
lea eax, [ebp - 0x1004]
push eax
mov ecx, dword [ebp - 0x100c]
add ecx, 0x10
push ecx
call fcn.0042a2c0
add esp, 0xc
mov eax, 1
jmp 0x4022b3
jmp 0x402242
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c020
mov esp, ebp
pop ebp
ret 4
Function at 0x4054b0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a0
mov eax, dword [0x4748f0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4783b8], 0
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
je 0x405516
push eax
push dword [ebp + 0xc]
push ecx
push str.ASSERT___file:_s_line:_d___s__do_you_debug_
push 0x4783c0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0x40004
push 0
push 0x4783c0
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x40561b
int3
test eax, eax
je 0x405535
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push ecx
push str._s_line:_d__msg:_s_
push eax
call fcn.0042d580
add esp, 0x14
jmp 0x40554d
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push ecx
push str._s_line:_d_
push eax
call fcn.0042d580
add esp, 0x10
push 0xff
lea eax, [ebp - 0x103]
mov byte [ebp - 0x104], 0
push 0
push eax
call fcn.0042a910
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x20e]
push eax
movzx eax, word [ebp - 0x212]
push eax
movzx eax, word [ebp - 0x214]
push eax
lea eax, [ebp - 0x104]
push str.._Log_Assert__4d_02d_02d.txt
push eax
call fcn.0042d580
add esp, 0x14
cmp dword [0x4784d0], 0
jne 0x40561b
push edi
push 0
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4055e0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c020
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x2a0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [ebp - 0x2a0]
shl esi, 0x10
push edi
or esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4784d0]
cmp esi, 0xf4240
mov ecx, 1
cmova eax, ecx
pop esi
mov dword [0x4784d0], eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c020
mov esp, ebp
pop ebp
ret
Function at 0x4063e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4748f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
movzx ebx, ax
mov eax, dword [ebp + 0xc]
push esi
push edi
movzx eax, ax
mov edi, ecx
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp + 0x10]
push 0x45ec8c
push str.serverset.txt
mov dword [ebp - 0x110], eax
call fcn.0042d530
mov esi, eax
add esp, 8
test esi, esi
je 0x4064ed
lea eax, [ebp - 0x108]
push eax
push 0x45ec80
push esi
call fcn.0042ebc0
push esi
call fcn.0042d1c0
push dword [ebp - 0x108]
lea eax, [ebp - 0x104]
push str.serverset__d_serverlist.msl
push eax
call fcn.0042d580
add esp, 0x1c
lea eax, [ebp - 0x104]
mov ecx, 0x474348
push eax
call fcn.00408ce0
push dword [ebp - 0x108]
lea eax, [ebp - 0x104]
push str.serverset__d_serverlist_Public.msl
push eax
call fcn.0042d580
add esp, 0xc
lea eax, [ebp - 0x104]
mov ecx, 0x474348
push eax
call fcn.00408ed0
mov eax, dword [0x47434c]
mov dword [0x48b664], eax
cmp eax, dword [ebp - 0x108]
je 0x4064c0
push 0
push 0x4f
push str..._CC_ServerModuleBootManager.cpp
call fcn.004054b0
add esp, 0xc
push dword [ebp - 0x10c]
mov ecx, edi
push ebx
call fcn.004066b0
mov ecx, dword [ebp - 0x110]
push eax
call fcn.004249e0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042c020
mov esp, ebp
pop ebp
ret 0xc
push 0
push 0
push str.serverset.txt
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.0042eba0
int3

Function at 0x407d10
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
movzx eax, byte [edi + 0xc]
sub eax, 0x65
je 0x407d53
sub eax, 3
je 0x407d48
dec eax
je 0x407d48
pop edi
pop esi
pop ebx
mov dword [ebp + 0x10], 0
mov dword [ebp + 0xc], 0x21e
mov dword [ebp + 8], str..._CC_ServerModuleDataBase.cpp
pop ebp
jmp fcn.004054b0
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x407d6e
mov eax, dword [edi]
jmp 0x407d63
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x407d6e
mov eax, dword [edi]
mov eax, dword [eax*4 + 0x474398]
test eax, eax
je 0x407d6e
push edi
push ebx
call eax
add esp, 8
mov eax, dword [ebp + 8]
push ebx
lea ecx, [eax + eax*2]
mov eax, dword [0x474338]
lea esi, [eax + ecx*4]
movzx eax, byte [edi + 0xc]
mov ecx, dword [esi]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x3c]
mov eax, dword [esi]
push dword [edi + 8]
push edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x408ce0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c788
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4748f0]
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 dword [ebp - 0x48], esi
mov edi, dword [ebp + 8]
lea ecx, [esi + 8]
call fcn.00426cb0
mov dword [ebp - 0x44], eax
test eax, eax
je 0x408d3e
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 8]
call fcn.00426cd0
push dword [eax]
call fcn.00429f80
add esp, 4
cmp dword [ebp - 0x44], 0
jne 0x408d22
lea ecx, [esi + 8]
call fcn.00426ec0
push 0x45f340
push edi
call fcn.0042d530
push 0xe
mov dword [ebp - 0x58], eax
xor edi, edi
mov dword [ebp - 0x4c], 0xd
call fcn.00429e70
mov ebx, eax
mov edx, str.yunhozzang_
add esp, 0xc
mov dword [ebp - 0x50], ebx
sub eax, edx
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [eax + edx - 1], cl
test cl, cl
jne 0x408d73
push dword [ebp - 0x58]
add esi, 4
mov dword [ebp - 4], 0
push 1
push 4
push esi
call fcn.0042bc30
add esp, 0x10
cmp eax, 1
jne 0x408dbe
movzx eax, byte [ebx]
mov edi, 4
sub byte [esi], al
movzx eax, byte [ebx + 1]
sub byte [esi + 1], al
movzx eax, byte [ebx + 2]
sub byte [esi + 2], al
movzx eax, byte [ebx + 3]
sub byte [esi + 3], al
push 0x2e
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.0042a910
add esp, 0xc
mov edi, edi
mov esi, dword [ebp - 0x58]
lea eax, [ebp - 0x40]
push esi
push 1
push 0x2e
push eax
call fcn.0042bc30
add esp, 0x10
cmp eax, 1
jne 0x408e92
xor ecx, ecx
nop
xor eax, eax
cmp edi, 0xd
cmove edi, eax
movzx eax, byte [ebx + edi]
inc edi
sub byte [ebp + ecx - 0x40], al
xor eax, eax
cmp edi, 0xd
cmove edi, eax
movzx eax, byte [ebx + edi]
inc edi
sub byte [ebp + ecx - 0x3f], al
add ecx, 2
cmp ecx, 0x2e
jl 0x408df0
cmp word [ebp - 0x40], 9
mov dword [ebp - 0x54], edi
jb 0x408e35
push 0
push 0
push 0x45f336
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x2e
call fcn.00429f20
mov esi, eax
add esp, 4
test esi, esi
je 0x408e54
push 0x2e
push 0
push esi
call fcn.0042a910
add esp, 0xc
jmp 0x408e56
xor esi, esi
movdqu xmm0, xmmword [ebp - 0x40]
mov ecx, dword [ebp - 0x48]
push esi
movdqu xmmword [esi], xmm0
movdqu xmm0, xmmword [ebp - 0x30]
lea ecx, [ecx + 8]
movdqu xmmword [esi + 0x10], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [esi + 0x20], xmm0
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x28], eax
mov ax, word [ebp - 0x14]
mov word [esi + 0x2c], ax
call fcn.00426b00
jmp 0x408dd0
push esi
call fcn.0042d1c0
push ebx
call fcn.0042f110
add esp, 8
mov eax, 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.0042c020
mov esp, ebp
pop ebp
ret 4
Function at 0x408ed0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c7b8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4748f0]
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 dword [ebp - 0x44], esi
mov eax, dword [ebp + 8]
push 0x45f340
push eax
call fcn.0042d530
push 0xe
mov dword [ebp - 0x54], eax
xor edi, edi
mov dword [ebp - 0x48], 0xd
call fcn.00429e70
mov ebx, eax
mov edx, str.yunhozzang_
add esp, 0xc
mov dword [ebp - 0x4c], ebx
sub eax, edx
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [eax + edx - 1], cl
test cl, cl
jne 0x408f30
push dword [ebp - 0x54]
add esi, 4
mov dword [ebp - 4], 0
push 1
push 4
push esi
call fcn.0042bc30
add esp, 0x10
cmp eax, 1
jne 0x408f7b
movzx eax, byte [ebx]
mov edi, 4
sub byte [esi], al
movzx eax, byte [ebx + 1]
sub byte [esi + 1], al
movzx eax, byte [ebx + 2]
sub byte [esi + 2], al
movzx eax, byte [ebx + 3]
sub byte [esi + 3], al
push 0x2e
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.0042a910
add esp, 0xc
mov esi, dword [ebp - 0x54]
mov edi, edi
push esi
push 1
lea eax, [ebp - 0x40]
push 0x2e
push eax
call fcn.0042bc30
add esp, 0x10
cmp eax, 1
jne 0x409046
xor ecx, ecx
lea esp, [esp]
xor eax, eax
cmp edi, 0xd
cmove edi, eax
movzx eax, byte [ebx + edi]
inc edi
sub byte [ebp + ecx - 0x40], al
xor eax, eax
cmp edi, 0xd
cmove edi, eax
movzx eax, byte [ebx + edi]
inc edi
sub byte [ebp + ecx - 0x3f], al
add ecx, 2
cmp ecx, 0x2e
jl 0x408fb0
cmp word [ebp - 0x40], 2
mov dword [ebp - 0x50], edi
jne 0x408f90
push 0x2e
call fcn.00429f20
mov esi, eax
add esp, 4
test esi, esi
je 0x409003
push 0x2e
push 0
push esi
call fcn.0042a910
add esp, 0xc
jmp 0x409005
xor esi, esi
movdqu xmm0, xmmword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
movdqu xmmword [esi], xmm0
movdqu xmm0, xmmword [ebp - 0x30]
lea ecx, [ecx + 0x28]
movdqu xmmword [esi + 0x10], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [esi + 0x20], xmm0
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x28], eax
mov ax, word [ebp - 0x14]
mov word [esi + 0x2c], ax
movzx eax, word [esi + 0x26]
push eax
push esi
call fcn.00408b20
jmp 0x408f8b
push esi
call fcn.0042d1c0
push ebx
call fcn.0042f110
add esp, 8
mov eax, 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.0042c020
mov esp, ebp
pop ebp
ret 4
Function at 0x417f70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x4748f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
test ebx, ebx
jne 0x417fa2
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c020
mov esp, ebp
pop ebp
ret 4
push 0x45f340
push ebx
call fcn.0042d530
add esp, 8
mov dword [edi + 4], eax
test eax, eax
je 0x417f8e
push 2
push 0
push eax
call fcn.0042be90
push dword [edi + 4]
call fcn.00430330
push 0
push 0
push dword [edi + 4]
mov dword [ebp - 0x208], eax
call fcn.0042be90
mov ecx, dword [edi + 0x1e]
add esp, 0x1c
test ecx, ecx
je 0x417ff5
push ecx
call fcn.0042f110
add esp, 4
mov dword [edi + 0x1e], 0
push esi
push dword [edi + 4]
lea esi, [edi + 0x10]
mov dword [edi + 0xc], 0
push 1
push 0xc
push esi
mov dword [edi + 0x22], 0
call fcn.0042bc30
mov eax, dword [esi]
lea ecx, [edi + 0x26]
sub eax, dword [edi + 0x18]
add esp, 0x10
sub eax, dword [edi + 0x14]
push eax
call fcn.00402090
test eax, eax
jne 0x418065
push eax
push 0x15e
push str.MHFile.cpp
call fcn.004054b0
add esp, 0xc
push 0
push 0
push str.Bin_File_Version_Error_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c020
mov esp, ebp
pop ebp
ret 4
lea ecx, [edi + 0x26]
call fcn.00402030
test eax, eax
je 0x418133
mov esi, dword [ebp - 0x208]
add esi, 0xfffffff2
push esi
call fcn.00429e70
add esp, 4
mov dword [edi + 0x1e], eax
test eax, eax
jne 0x4180a3
push eax
push 0x168
push str.MHFile.cpp
call fcn.004054b0
add esp, 0xc
jmp 0x418050
push esi
push 0
push eax
call fcn.0042a910
add esp, 0xc
lea ecx, [edi + 0x26]
push dword [edi + 0x14]
push esi
push dword [edi + 0x1e]
push dword [edi + 4]
call fcn.00401da0
test eax, eax
jne 0x418102
mov ecx, edi
call fcn.00417b00
push 0
push 0x16f
push str.MHFile.cpp
call fcn.004054b0
push ebx
lea eax, [ebp - 0x204]
push str.File_Open_Error_:__s
push eax
call fcn.0042d580
add esp, 0x18
lea eax, [ebp - 0x204]
push 0
push 0
push eax
jmp 0x418048
push dword [edi + 4]
call fcn.0042d1c0
add esp, 4
mov dword [edi + 4], 0
mov dword [edi + 0x22], 1
mov eax, 1
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c020
mov esp, ebp
pop ebp
ret 4
push dword [edi + 4]
lea eax, [edi + 0x1c]
push 1
push 1
push eax
call fcn.0042bc30
mov eax, dword [edi + 0x18]
add esp, 0x10
test eax, eax
je 0x418167
push eax
call fcn.00429e70
push dword [edi + 4]
mov dword [edi + 0x1e], eax
push dword [edi + 0x18]
push 1
push eax
call fcn.0042bc30
add esp, 0x14
push dword [edi + 4]
lea eax, [edi + 0x1d]
push 1
push 1
push eax
call fcn.0042bc30
push dword [edi + 4]
call fcn.0042d1c0
add esp, 0x14
mov dword [edi + 4], 0
mov ecx, edi
call fcn.00417a60
test eax, eax
je 0x418050
mov ecx, edi
call fcn.004179b0
test eax, eax
je 0x418050
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
mov dword [edi + 0x22], 1
xor ecx, ebp
pop edi
pop ebx
call fcn.0042c020
mov esp, ebp
pop ebp
ret 4