joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5fc4c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x10f000]
push edi
or ebp, 0xffffffff
jmp 0x5fc4e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5fc4e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5fc4d8
mov eax, 1
add ebx, ebx
jne 0x5fc4fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5fc50c
jne 0x5fc52b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5fc52b
dec eax
add ebx, ebx
jne 0x5fc518
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5fc4f0
add ebx, ebx
jne 0x5fc527
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5fc57d
xor ecx, ecx
sub eax, 3
jb 0x5fc543
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5fc5b2
sar eax, 1
mov ebp, eax
jmp 0x5fc54e
add ebx, ebx
jne 0x5fc54e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5fc51c
inc ecx
add ebx, ebx
jne 0x5fc55c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5fc51c
add ebx, ebx
jne 0x5fc569
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5fc55e
jne 0x5fc57a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5fc55e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5fc59c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5fc58e
jmp 0x5fc4de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5fc59c
add edi, ecx
jmp 0x5fc4de
pop esi
mov edi, esi
mov ecx, 0x3493
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5fc5ba
cmp byte [edi], 0x4c
jne 0x5fc5ba
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5fc5bf
lea edi, [esi + 0x1f8000]
mov eax, dword [edi]
or eax, eax
je 0x5fc637
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2141e0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x214334]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5fc5ec
mov ecx, edi
jns 0x5fc61b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x214338]
or eax, eax
je 0x5fc631
mov dword [ebx], eax
add ebx, 4
jmp 0x5fc609
call dword [esi + 0x214348]
mov ebp, dword [esi + 0x21433c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5fc66b
sub esp, 0xffffff80
jmp 0x417770
Function at 0x401910
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0042c460
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], 0x23
mov byte [ebp - 0x1003], 0x4c
mov byte [ebp - 0x1002], 0x45
mov byte [ebp - 0x1001], 0x47
mov byte [ebp - 0x1000], 0x45
mov byte [ebp - 0xfff], 0x4e
mov byte [ebp - 0xffe], 0x44
mov byte [ebp - 0xffd], 0x4d
mov byte [ebp - 0xffc], 0x53
mov byte [ebp - 0xffb], 0x4f
mov byte [ebp - 0xffa], 0x21
mov byte [ebp - 0xff9], 0x24
mov byte [ebp - 0xff8], 0x23
mov byte [ebp - 0xff7], 0x48
mov byte [ebp - 0xff6], 0x41
mov byte [ebp - 0xff5], 0x4e
mov byte [ebp - 0xff4], 0x53
mov byte [ebp - 0xff3], 0x45
mov byte [ebp - 0xff2], 0x52
mov byte [ebp - 0xff1], 0x45
mov byte [ebp - 0xff0], 0x52
mov byte [ebp - 0xfef], 0x56
mov byte [ebp - 0xfee], 0x45
mov byte [ebp - 0xfed], 0x52
mov byte [ebp - 0xfec], 0x40
mov byte [ebp - 0xfeb], 0x40
mov byte [ebp - 0xfea], 0x58
mov byte [ebp - 0xfe9], 0x4d
mov byte [ebp - 0xfe8], 0x41
mov byte [ebp - 0xfe7], 0x4e
mov byte [ebp - 0xfe6], 0x53
mov byte [ebp - 0xfe5], 0x32
mov byte [ebp - 0xfe4], 0x30
mov byte [ebp - 0xfe3], 0x32
mov byte [ebp - 0xfe2], 0x35
mov byte [ebp - 0xfe1], 0x21
mov byte [ebp - 0xfe0], 0x4d
mov byte [ebp - 0xfdf], 0x41
mov byte [ebp - 0xfde], 0x4c
mov byte [ebp - 0xfdd], 0x41
mov byte [ebp - 0xfdc], 0x59
mov byte [ebp - 0xfdb], 0x53
mov byte [ebp - 0xfda], 0x49
mov byte [ebp - 0xfd9], 0x41
mov byte [ebp - 0xfd8], 0
push 0xfd3
push 0
lea ecx, [ebp - 0xfd7]
push ecx
call fcn.0042a800
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 + 0x45e2ec]
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.0042a1b0
add esp, 0xc
mov eax, dword [ebp - 0x1008]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bf10
mov esp, ebp
pop ebp
ret
Function at 0x401de0
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 0x401e06
xor eax, eax
jmp 0x402051
cmp dword [ebp + 0xc], 0
jne 0x401e13
xor eax, eax
jmp 0x402051
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.0042bb20
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.0042a800
add esp, 0xc
mov edx, dword [ebp - 0x72c]
add edx, 0x10
push edx
call fcn.0042a890
add esp, 4
push eax
mov eax, dword [ebp - 0x72c]
add eax, 0x10
push eax
lea ecx, [ebp - 0x204]
push ecx
call fcn.0042a1b0
add esp, 0xc
push pe_nt_image_headers32
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 0x401ecd
mov edx, dword [ebp - 0x728]
add edx, 0x10
mov dword [ebp - 0x728], edx
mov eax, dword [ebp - 0x728]
cmp eax, dword [ebp - 0x730]
jge 0x401fcd
mov ecx, dword [ebp + 8]
push ecx
push 0x10
push 1
lea edx, [ebp - 0x604]
push edx
call fcn.0042bb20
add esp, 0x10
cmp eax, 0x10
je 0x401f42
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.0042a800
add esp, 0xc
push 0x118
push 0
lea ecx, [ebp - 0x71c]
push ecx
call fcn.0042a800
add esp, 0xc
xor eax, eax
jmp 0x402051
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 0x401f7c
mov edx, dword [ebp - 0x724]
add edx, 1
mov dword [ebp - 0x724], edx
cmp dword [ebp - 0x724], 0x10
jge 0x401fc8
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 0x401f6d
jmp 0x401ebe
mov edx, dword [ebp + 8]
push edx
push 1
push 1
lea eax, [ebp - 0x71f]
push eax
call fcn.0042bb20
add esp, 0x10
movsx ecx, byte [ebp - 0x71e]
movsx edx, byte [ebp - 0x71f]
cmp ecx, edx
jne 0x402008
movsx eax, byte [ebp - 0x71e]
movsx ecx, byte [ebp - 0x71d]
cmp eax, ecx
je 0x40204c
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.0042a800
add esp, 0xc
push 0x118
push 0
lea eax, [ebp - 0x71c]
push eax
call fcn.0042a800
add esp, 0xc
xor eax, eax
jmp 0x402051
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bf10
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4020d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0042c460
mov eax, dword [0x4748f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x100c], ecx
mov byte [ebp - 0x1004], 0x23
mov byte [ebp - 0x1003], 0x4c
mov byte [ebp - 0x1002], 0x45
mov byte [ebp - 0x1001], 0x47
mov byte [ebp - 0x1000], 0x45
mov byte [ebp - 0xfff], 0x4e
mov byte [ebp - 0xffe], 0x44
mov byte [ebp - 0xffd], 0x4d
mov byte [ebp - 0xffc], 0x53
mov byte [ebp - 0xffb], 0x4f
mov byte [ebp - 0xffa], 0x21
mov byte [ebp - 0xff9], 0x24
mov byte [ebp - 0xff8], 0x23
mov byte [ebp - 0xff7], 0x48
mov byte [ebp - 0xff6], 0x41
mov byte [ebp - 0xff5], 0x4e
mov byte [ebp - 0xff4], 0x53
mov byte [ebp - 0xff3], 0x45
mov byte [ebp - 0xff2], 0x52
mov byte [ebp - 0xff1], 0x45
mov byte [ebp - 0xff0], 0x52
mov byte [ebp - 0xfef], 0x56
mov byte [ebp - 0xfee], 0x45
mov byte [ebp - 0xfed], 0x52
mov byte [ebp - 0xfec], 0x40
mov byte [ebp - 0xfeb], 0x40
mov byte [ebp - 0xfea], 0x58
mov byte [ebp - 0xfe9], 0x4d
mov byte [ebp - 0xfe8], 0x41
mov byte [ebp - 0xfe7], 0x4e
mov byte [ebp - 0xfe6], 0x53
mov byte [ebp - 0xfe5], 0x32
mov byte [ebp - 0xfe4], 0x30
mov byte [ebp - 0xfe3], 0x32
mov byte [ebp - 0xfe2], 0x35
mov byte [ebp - 0xfe1], 0x21
mov byte [ebp - 0xfe0], 0x4d
mov byte [ebp - 0xfdf], 0x41
mov byte [ebp - 0xfde], 0x4c
mov byte [ebp - 0xfdd], 0x41
mov byte [ebp - 0xfdc], 0x59
mov byte [ebp - 0xfdb], 0x53
mov byte [ebp - 0xfda], 0x49
mov byte [ebp - 0xfd9], 0x41
mov byte [ebp - 0xfd8], 0
push 0xfd3
push 0
lea eax, [ebp - 0xfd7]
push eax
call fcn.0042a800
add esp, 0xc
mov dword [ebp - 0x1008], 0
jmp 0x402259
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 0x4022b9
mov ecx, dword [ebp - 0x1008]
mov edx, dword [ecx*4 + 0x45e2f0]
cmp edx, dword [ebp + 8]
jne 0x4022b7
mov eax, dword [ebp - 0x100c]
mov ecx, dword [ebp - 0x1008]
mov edx, dword [ecx*4 + 0x45e2f0]
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.0042a1b0
add esp, 0xc
mov eax, 1
jmp 0x4022bb
jmp 0x40224a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bf10
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.0042d470
add esp, 0x14
jmp 0x40554d
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push ecx
push str._s_line:_d_
push eax
call fcn.0042d470
add esp, 0x10
push 0xff
lea eax, [ebp - 0x103]
mov byte [ebp - 0x104], 0
push 0
push eax
call fcn.0042a800
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.0042d470
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.0042bf10
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.0042bf10
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 0x45ec5c
push str.serverset.txt
mov dword [ebp - 0x110], eax
call fcn.0042d420
mov esi, eax
add esp, 8
test esi, esi
je 0x4064ed
lea eax, [ebp - 0x108]
push eax
push 0x45ec50
push esi
call fcn.0042eae0
push esi
call fcn.0042d0b0
push dword [ebp - 0x108]
lea eax, [ebp - 0x104]
push str.serverset__d_serverlist.list
push eax
call fcn.0042d470
add esp, 0x1c
lea eax, [ebp - 0x104]
mov ecx, 0x474348
push eax
call fcn.00408fb0
push dword [ebp - 0x108]
lea eax, [ebp - 0x104]
push str.serverset__d_serverlist_Public.list
push eax
call fcn.0042d470
add esp, 0xc
lea eax, [ebp - 0x104]
mov ecx, 0x474348
push eax
call fcn.004091a0
mov eax, dword [0x47434c]
mov dword [0x48b674], 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.00424900
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042bf10
mov esp, ebp
pop ebp
ret 0xc
push 0
push 0
push str.serverset.txt_is_not_exist._this_server_will_be_closed
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.0042ea90
int3
Function at 0x407fa0
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 0x407fe3
sub eax, 3
je 0x407fd8
dec eax
je 0x407fd8
pop edi
pop esi
pop ebx
mov dword [ebp + 0x10], 0
mov dword [ebp + 0xc], 0x20d
mov dword [ebp + 8], str..._CC_ServerModuleDataBase.cpp
pop ebp
jmp fcn.004054b0
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x407ffe
mov eax, dword [edi]
jmp 0x407ff3
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x407ffe
mov eax, dword [edi]
mov eax, dword [eax*4 + 0x474398]
test eax, eax
je 0x407ffe
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 0x408fb0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c678
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.00426bb0
mov dword [ebp - 0x44], eax
test eax, eax
je 0x40900e
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 8]
call fcn.00426bd0
push dword [eax]
call fcn.00429e70
add esp, 4
cmp dword [ebp - 0x44], 0
jne 0x408ff2
lea ecx, [esi + 8]
call fcn.00426dc0
push 0x45f48c
push edi
call fcn.0042d420
push 0x14
mov dword [ebp - 0x58], eax
xor edi, edi
mov dword [ebp - 0x4c], 0x13
call fcn.00429d70
mov ebx, eax
mov edx, str.SOTIIQWEOZSLK___
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 0x409043
push dword [ebp - 0x58]
add esi, 4
mov dword [ebp - 4], 0
push 1
push 4
push esi
call fcn.0042bb20
add esp, 0x10
cmp eax, 1
jne 0x40908e
movzx eax, byte [ebx]
mov edi, 4
xor byte [esi], al
movzx eax, byte [ebx + 1]
xor byte [esi + 1], al
movzx eax, byte [ebx + 2]
xor byte [esi + 2], al
movzx eax, byte [ebx + 3]
xor byte [esi + 3], al
push 0x2e
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.0042a800
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.0042bb20
add esp, 0x10
cmp eax, 1
jne 0x409162
xor ecx, ecx
nop
xor eax, eax
cmp edi, 0x13
cmove edi, eax
movzx eax, byte [ebx + edi]
inc edi
xor byte [ebp + ecx - 0x40], al
xor eax, eax
cmp edi, 0x13
cmove edi, eax
movzx eax, byte [ebx + edi]
inc edi
xor byte [ebp + ecx - 0x3f], al
add ecx, 2
cmp ecx, 0x2e
jl 0x4090c0
cmp word [ebp - 0x40], 9
mov dword [ebp - 0x54], edi
jb 0x409105
push 0
push 0
push 0x45f482
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x2e
call fcn.00429e20
mov esi, eax
add esp, 4
test esi, esi
je 0x409124
push 0x2e
push 0
push esi
call fcn.0042a800
add esp, 0xc
jmp 0x409126
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.00426a00
jmp 0x4090a0
push esi
call fcn.0042d0b0
push ebx
call fcn.0042f030
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.0042bf10
mov esp, ebp
pop ebp
ret 4
Function at 0x4091a0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c6a8
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 0x45f48c
push eax
call fcn.0042d420
push 0x14
mov dword [ebp - 0x54], eax
xor edi, edi
mov dword [ebp - 0x48], 0x13
call fcn.00429d70
mov ebx, eax
mov edx, str.SOTIIQWEOZSLK___
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 0x409200
push dword [ebp - 0x54]
add esi, 4
mov dword [ebp - 4], 0
push 1
push 4
push esi
call fcn.0042bb20
add esp, 0x10
cmp eax, 1
jne 0x40924b
movzx eax, byte [ebx]
mov edi, 4
xor byte [esi], al
movzx eax, byte [ebx + 1]
xor byte [esi + 1], al
movzx eax, byte [ebx + 2]
xor byte [esi + 2], al
movzx eax, byte [ebx + 3]
xor byte [esi + 3], al
push 0x2e
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.0042a800
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.0042bb20
add esp, 0x10
cmp eax, 1
jne 0x409316
xor ecx, ecx
lea esp, [esp]
xor eax, eax
cmp edi, 0x13
cmove edi, eax
movzx eax, byte [ebx + edi]
inc edi
xor byte [ebp + ecx - 0x40], al
xor eax, eax
cmp edi, 0x13
cmove edi, eax
movzx eax, byte [ebx + edi]
inc edi
xor byte [ebp + ecx - 0x3f], al
add ecx, 2
cmp ecx, 0x2e
jl 0x409280
cmp word [ebp - 0x40], 2
mov dword [ebp - 0x50], edi
jne 0x409260
push 0x2e
call fcn.00429e20
mov esi, eax
add esp, 4
test esi, esi
je 0x4092d3
push 0x2e
push 0
push esi
call fcn.0042a800
add esp, 0xc
jmp 0x4092d5
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.00418480
jmp 0x40925b
push esi
call fcn.0042d0b0
push ebx
call fcn.0042f030
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.0042bf10
mov esp, ebp
pop ebp
ret 4
Function at 0x417e40
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 0x417e72
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bf10
mov esp, ebp
pop ebp
ret 4
push 0x45f48c
push ebx
call fcn.0042d420
add esp, 8
mov dword [edi + 4], eax
test eax, eax
je 0x417e5e
push 2
push 0
push eax
call fcn.0042bd80
push dword [edi + 4]
call fcn.00430250
push 0
push 0
push dword [edi + 4]
mov dword [ebp - 0x208], eax
call fcn.0042bd80
mov ecx, dword [edi + 0x1e]
add esp, 0x1c
test ecx, ecx
je 0x417ec5
push ecx
call fcn.0042f030
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.0042bb20
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.004020d0
test eax, eax
jne 0x417f35
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.0042bf10
mov esp, ebp
pop ebp
ret 4
lea ecx, [edi + 0x26]
call fcn.00402070
test eax, eax
je 0x418003
mov esi, dword [ebp - 0x208]
add esi, 0xfffffff2
push esi
call fcn.00429d70
add esp, 4
mov dword [edi + 0x1e], eax
test eax, eax
jne 0x417f73
push eax
push 0x168
push str.MHFile.cpp
call fcn.004054b0
add esp, 0xc
jmp 0x417f20
push esi
push 0
push eax
call fcn.0042a800
add esp, 0xc
lea ecx, [edi + 0x26]
push dword [edi + 0x14]
push esi
push dword [edi + 0x1e]
push dword [edi + 4]
call fcn.00401de0
test eax, eax
jne 0x417fd2
mov ecx, edi
call fcn.004179d0
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.0042d470
add esp, 0x18
lea eax, [ebp - 0x204]
push 0
push 0
push eax
jmp 0x417f18
push dword [edi + 4]
call fcn.0042d0b0
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.0042bf10
mov esp, ebp
pop ebp
ret 4
push dword [edi + 4]
lea eax, [edi + 0x1c]
push 1
push 1
push eax
call fcn.0042bb20
mov eax, dword [edi + 0x18]
add esp, 0x10
test eax, eax
je 0x418037
push eax
call fcn.00429d70
push dword [edi + 4]
mov dword [edi + 0x1e], eax
push dword [edi + 0x18]
push 1
push eax
call fcn.0042bb20
add esp, 0x14
push dword [edi + 4]
lea eax, [edi + 0x1d]
push 1
push 1
push eax
call fcn.0042bb20
push dword [edi + 4]
call fcn.0042d0b0
add esp, 0x14
mov dword [edi + 4], 0
mov ecx, edi
call fcn.00417930
test eax, eax
je 0x417f20
mov ecx, edi
call fcn.00417880
test eax, eax
je 0x417f20
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
mov dword [edi + 0x22], 1
xor ecx, ebp
pop edi
pop ebx
call fcn.0042bf10
mov esp, ebp
pop ebp
ret 4