joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4017e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0042c060
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.0042a400
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.00429db0
add esp, 0xc
mov eax, dword [ebp - 0x1008]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bb10
mov esp, ebp
pop ebp
ret
Function at 0x401c90
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 0x401cb6
xor eax, eax
jmp 0x401f01
cmp dword [ebp + 0xc], 0
jne 0x401cc3
xor eax, eax
jmp 0x401f01
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.0042b720
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.0042a400
add esp, 0xc
mov edx, dword [ebp - 0x72c]
add edx, 0x10
push edx
call fcn.0042a490
add esp, 4
push eax
mov eax, dword [ebp - 0x72c]
add eax, 0x10
push eax
lea ecx, [ebp - 0x204]
push ecx
call fcn.00429db0
add esp, 0xc
push pe_nt_image_headers32
lea edx, [ebp - 0x204]
push edx
lea eax, [ebp - 0x71c]
push eax
call fcn.00404240
add esp, 0xc
mov cl, byte [ebp + 0x14]
mov byte [ebp - 0x71d], cl
mov dword [ebp - 0x728], 0
jmp 0x401d7d
mov edx, dword [ebp - 0x728]
add edx, 0x10
mov dword [ebp - 0x728], edx
mov eax, dword [ebp - 0x728]
cmp eax, dword [ebp - 0x730]
jge 0x401e7d
mov ecx, dword [ebp + 8]
push ecx
push 0x10
push 1
lea edx, [ebp - 0x604]
push edx
call fcn.0042b720
add esp, 0x10
cmp eax, 0x10
je 0x401df2
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.0042a400
add esp, 0xc
push 0x118
push 0
lea ecx, [ebp - 0x71c]
push ecx
call fcn.0042a400
add esp, 0xc
xor eax, eax
jmp 0x401f01
lea edx, [ebp - 0x604]
push edx
lea eax, [ebp - 0x604]
push eax
push 0
lea ecx, [ebp - 0x71c]
push ecx
call fcn.00402d50
add esp, 0x10
mov dword [ebp - 0x724], 0
jmp 0x401e2c
mov edx, dword [ebp - 0x724]
add edx, 1
mov dword [ebp - 0x724], edx
cmp dword [ebp - 0x724], 0x10
jge 0x401e78
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 0x401e1d
jmp 0x401d6e
mov edx, dword [ebp + 8]
push edx
push 1
push 1
lea eax, [ebp - 0x71f]
push eax
call fcn.0042b720
add esp, 0x10
movsx ecx, byte [ebp - 0x71e]
movsx edx, byte [ebp - 0x71f]
cmp ecx, edx
jne 0x401eb8
movsx eax, byte [ebp - 0x71e]
movsx ecx, byte [ebp - 0x71d]
cmp eax, ecx
je 0x401efc
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.0042a400
add esp, 0xc
push 0x118
push 0
lea eax, [ebp - 0x71c]
push eax
call fcn.0042a400
add esp, 0xc
xor eax, eax
jmp 0x401f01
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bb10
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401f80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0042c060
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.0042a400
add esp, 0xc
mov dword [ebp - 0x1008], 0
jmp 0x402109
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 0x402169
mov ecx, dword [ebp - 0x1008]
mov edx, dword [ecx*4 + 0x45e2f0]
cmp edx, dword [ebp + 8]
jne 0x402167
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.00429db0
add esp, 0xc
mov eax, 1
jmp 0x40216b
jmp 0x4020fa
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bb10
mov esp, ebp
pop ebp
ret 4
Function at 0x405360
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 0x4053c6
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 0x4054cb
int3
test eax, eax
je 0x4053e5
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push ecx
push str._s_line:_d__msg:_s_
push eax
call fcn.0042d070
add esp, 0x14
jmp 0x4053fd
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push ecx
push str._s_line:_d_
push eax
call fcn.0042d070
add esp, 0x10
push 0xff
lea eax, [ebp - 0x103]
mov byte [ebp - 0x104], 0
push 0
push eax
call fcn.0042a400
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.0042d070
add esp, 0x14
cmp dword [0x4784d0], 0
jne 0x4054cb
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 0x405490
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bb10
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.0042bb10
mov esp, ebp
pop ebp
ret
Function at 0x406290
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 0x45ec64
push str.serverset.txt
mov dword [ebp - 0x110], eax
call fcn.0042d020
mov esi, eax
add esp, 8
test esi, esi
je 0x40639d
lea eax, [ebp - 0x108]
push eax
push 0x45ec58
push esi
call fcn.0042e6e0
push esi
call fcn.0042ccb0
push dword [ebp - 0x108]
lea eax, [ebp - 0x104]
push str.serverset__d_serverlist.list
push eax
call fcn.0042d070
add esp, 0x1c
lea eax, [ebp - 0x104]
mov ecx, 0x474348
push eax
call fcn.00408e90
push dword [ebp - 0x108]
lea eax, [ebp - 0x104]
push str.serverset__d_serverlist_Public.list
push eax
call fcn.0042d070
add esp, 0xc
lea eax, [ebp - 0x104]
mov ecx, 0x474348
push eax
call fcn.00409080
mov eax, dword [0x47434c]
mov dword [0x48b66c], eax
cmp eax, dword [ebp - 0x108]
je 0x406370
push 0
push 0x4f
push str..._CC_ServerModuleBootManager.cpp
call fcn.00405360
add esp, 0xc
push dword [ebp - 0x10c]
mov ecx, edi
push ebx
call fcn.00406560
mov ecx, dword [ebp - 0x110]
push eax
call fcn.00424490
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042bb10
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.0042e690
int3
Function at 0x4068d0
Capabilities:
Encode data using xor
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov dword [ebp - 4], 0x45ed18
mov ebx, dword [ebp - 4]
push esi
push edi
mov edi, dword [ebp - 4]
add edi, 0x18
cmp byte [ebx + 0x17], 0
je 0x406932
mov esi, dword [ebx + 0x13]
lea eax, [esi + 1]
push eax
call fcn.0042e6b0
add esp, 4
mov ecx, eax
xor edx, edx
mov dword [ebp - 4], ecx
test esi, esi
je 0x406929
sub edi, ecx
jmp 0x406910
mov eax, edx
add ecx, edx
and eax, 7
inc edx
mov al, byte [eax + ebx + 0xb]
xor al, byte [edi + ecx]
mov byte [ecx], al
mov ecx, dword [ebp - 4]
cmp edx, dword [ebx + 0x13]
jb 0x406910
mov eax, dword [ebx + 0x13]
mov edi, ecx
mov byte [ecx + eax], 0
mov esi, dword [ebp + 0xc]
lea edx, [esi + 2]
mov dword [ebp - 8], edx
mov eax, edx
lea ecx, [ecx]
mov cl, byte [eax]
cmp cl, byte [edi]
jne 0x406960
test cl, cl
je 0x40695c
mov cl, byte [eax + 1]
cmp cl, byte [edi + 1]
jne 0x406960
add eax, 2
add edi, 2
test cl, cl
jne 0x406940
xor eax, eax
jmp 0x406965
sbb eax, eax
or eax, 1
test eax, eax
je 0x4069fd
mov dword [ebp - 4], 0x45ed3c
mov ebx, dword [ebp - 4]
mov edi, dword [ebp - 4]
add edi, 0x18
cmp byte [ebx + 0x17], 0
je 0x4069c8
mov esi, dword [ebx + 0x13]
lea eax, [esi + 1]
push eax
call fcn.0042e6b0
add esp, 4
mov ecx, eax
xor edx, edx
mov dword [ebp - 4], ecx
test esi, esi
je 0x4069b9
sub edi, ecx
nop
mov eax, edx
add ecx, edx
and eax, 7
inc edx
mov al, byte [eax + ebx + 0xb]
xor al, byte [edi + ecx]
mov byte [ecx], al
mov ecx, dword [ebp - 4]
cmp edx, dword [ebx + 0x13]
jb 0x4069a0
mov eax, dword [ebx + 0x13]
mov edi, ecx
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov byte [ecx + eax], 0
mov eax, edx
lea ebx, [ebx]
mov cl, byte [eax]
cmp cl, byte [edi]
jne 0x4069f0
test cl, cl
je 0x4069ec
mov cl, byte [eax + 1]
cmp cl, byte [edi + 1]
jne 0x4069f0
add eax, 2
add edi, 2
test cl, cl
jne 0x4069d0
xor eax, eax
jmp 0x4069f5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x406a9d
movzx eax, word [esi + 0x22]
mov ebx, dword [ebp + 8]
mov ecx, ebx
push eax
push edx
call fcn.00408b80
test eax, eax
movzx eax, word [esi + 0x22]
push eax
lea eax, [esi + 2]
push eax
jne 0x406a39
push str.Error_StartServerForServer:_IP_s__t_Port_d_
push 4
push 0x474174
call fcn.00406ce0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.StartServerForServer:_IP_s__t_Port_d_
push 4
push 0x474174
call fcn.00406ce0
movzx eax, word [esi]
add esp, 0x14
cmp eax, 2
je 0x406a5a
cmp eax, 1
jne 0x406a8f
movzx eax, word [esi + 0x24]
lea edi, [esi + 0x12]
push eax
push edi
mov ecx, ebx
call fcn.00408ba0
test eax, eax
movzx eax, word [esi + 0x24]
push eax
push edi
jne 0x406a7b
push str.Error_StartServerForUser:_IP_s__t_Port_d_
jmp 0x406a1f
push str.StartServerForUser:__IP_s__t_Port_d_
push 4
push 0x474174
call fcn.00406ce0
add esp, 0x14
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push 0
push str.Not_register_IP_not_exist._this_server_will_be_closed
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.0042e690
int3
Function at 0x407dd0
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 0x407e13
sub eax, 3
je 0x407e08
dec eax
je 0x407e08
pop edi
pop esi
pop ebx
mov dword [ebp + 0x10], 0
mov dword [ebp + 0xc], 0x205
mov dword [ebp + 8], str..._CC_ServerModuleDataBase.cpp
pop ebp
jmp fcn.00405360
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x407e2e
mov eax, dword [edi]
jmp 0x407e23
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x407e2e
mov eax, dword [edi]
mov eax, dword [eax*4 + 0x474398]
test eax, eax
je 0x407e2e
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 0x408e90
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c2d8
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.004267b0
mov dword [ebp - 0x44], eax
test eax, eax
je 0x408eee
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 8]
call fcn.004267d0
push dword [eax]
call fcn.00429a70
add esp, 4
cmp dword [ebp - 0x44], 0
jne 0x408ed2
lea ecx, [esi + 8]
call fcn.004269c0
push 0x45f484
push edi
call fcn.0042d020
push 0x14
mov dword [ebp - 0x58], eax
xor edi, edi
mov dword [ebp - 0x4c], 0x13
call fcn.00429970
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 0x408f23
push dword [ebp - 0x58]
add esi, 4
mov dword [ebp - 4], 0
push 1
push 4
push esi
call fcn.0042b720
add esp, 0x10
cmp eax, 1
jne 0x408f6e
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.0042a400
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.0042b720
add esp, 0x10
cmp eax, 1
jne 0x409042
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 0x408fa0
cmp word [ebp - 0x40], 9
mov dword [ebp - 0x54], edi
jb 0x408fe5
push 0
push 0
push 0x45f47a
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x2e
call fcn.00429a20
mov esi, eax
add esp, 4
test esi, esi
je 0x409004
push 0x2e
push 0
push esi
call fcn.0042a400
add esp, 0xc
jmp 0x409006
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.00426600
jmp 0x408f80
push esi
call fcn.0042ccb0
push ebx
call fcn.0042ec30
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.0042bb10
mov esp, ebp
pop ebp
ret 4
Function at 0x409080
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c308
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 0x45f484
push eax
call fcn.0042d020
push 0x14
mov dword [ebp - 0x54], eax
xor edi, edi
mov dword [ebp - 0x48], 0x13
call fcn.00429970
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 0x4090e0
push dword [ebp - 0x54]
add esi, 4
mov dword [ebp - 4], 0
push 1
push 4
push esi
call fcn.0042b720
add esp, 0x10
cmp eax, 1
jne 0x40912b
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.0042a400
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.0042b720
add esp, 0x10
cmp eax, 1
jne 0x4091f6
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 0x409160
cmp word [ebp - 0x40], 2
mov dword [ebp - 0x50], edi
jne 0x409140
push 0x2e
call fcn.00429a20
mov esi, eax
add esp, 4
test esi, esi
je 0x4091b3
push 0x2e
push 0
push esi
call fcn.0042a400
add esp, 0xc
jmp 0x4091b5
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.00408cd0
jmp 0x40913b
push esi
call fcn.0042ccb0
push ebx
call fcn.0042ec30
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.0042bb10
mov esp, ebp
pop ebp
ret 4
Function at 0x4179b0
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 0x4179e2
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bb10
mov esp, ebp
pop ebp
ret 4
push 0x45f484
push ebx
call fcn.0042d020
add esp, 8
mov dword [edi + 4], eax
test eax, eax
je 0x4179ce
push 2
push 0
push eax
call fcn.0042b980
push dword [edi + 4]
call fcn.0042fe50
push 0
push 0
push dword [edi + 4]
mov dword [ebp - 0x208], eax
call fcn.0042b980
mov ecx, dword [edi + 0x1e]
add esp, 0x1c
test ecx, ecx
je 0x417a35
push ecx
call fcn.0042ec30
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.0042b720
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.00401f80
test eax, eax
jne 0x417aa5
push eax
push 0x15e
push str.MHFile.cpp
call fcn.00405360
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.0042bb10
mov esp, ebp
pop ebp
ret 4
lea ecx, [edi + 0x26]
call fcn.00401f20
test eax, eax
je 0x417b73
mov esi, dword [ebp - 0x208]
add esi, 0xfffffff2
push esi
call fcn.00429970
add esp, 4
mov dword [edi + 0x1e], eax
test eax, eax
jne 0x417ae3
push eax
push 0x168
push str.MHFile.cpp
call fcn.00405360
add esp, 0xc
jmp 0x417a90
push esi
push 0
push eax
call fcn.0042a400
add esp, 0xc
lea ecx, [edi + 0x26]
push dword [edi + 0x14]
push esi
push dword [edi + 0x1e]
push dword [edi + 4]
call fcn.00401c90
test eax, eax
jne 0x417b42
mov ecx, edi
call fcn.00417540
push 0
push 0x16f
push str.MHFile.cpp
call fcn.00405360
push ebx
lea eax, [ebp - 0x204]
push str.File_Open_Error_:__s
push eax
call fcn.0042d070
add esp, 0x18
lea eax, [ebp - 0x204]
push 0
push 0
push eax
jmp 0x417a88
push dword [edi + 4]
call fcn.0042ccb0
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.0042bb10
mov esp, ebp
pop ebp
ret 4
push dword [edi + 4]
lea eax, [edi + 0x1c]
push 1
push 1
push eax
call fcn.0042b720
mov eax, dword [edi + 0x18]
add esp, 0x10
test eax, eax
je 0x417ba7
push eax
call fcn.00429970
push dword [edi + 4]
mov dword [edi + 0x1e], eax
push dword [edi + 0x18]
push 1
push eax
call fcn.0042b720
add esp, 0x14
push dword [edi + 4]
lea eax, [edi + 0x1d]
push 1
push 1
push eax
call fcn.0042b720
push dword [edi + 4]
call fcn.0042ccb0
add esp, 0x14
mov dword [edi + 4], 0
mov ecx, edi
call fcn.004174a0
test eax, eax
je 0x417a90
mov ecx, edi
call fcn.004173f0
test eax, eax
je 0x417a90
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
mov dword [edi + 0x22], 1
xor ecx, ebp
pop edi
pop ebx
call fcn.0042bb10
mov esp, ebp
pop ebp
ret 4