joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402dba
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4141c4], 0
jne 0x402dc8
call fcn.00402d90
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x402df5
test cl, 7
je 0x402df5
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
dec esi
inc ecx
jmp 0x402dd6
cmp esi, 8
jb 0x402e79
mov edi, esi
shr edi, 3
xor eax, dword [ecx]
add ecx, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
sub esi, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
mov edx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x4141c0]
xor eax, dword [ecx - 4]
shr edx, 8
xor eax, edx
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
dec edi
jne 0x402dff
xor edx, edx
test esi, esi
jbe 0x402e99
push ebx
movzx edi, byte [edx + ecx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4141c0]
inc edx
cmp edx, esi
jb 0x402e80
pop ebx
pop edi
pop esi
ret 0xc
Function at 0x409ab7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push 0x20
push dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 8], ecx
call fcn.0040a3cb
xor eax, eax
push 4
xor ecx, ecx
mov dword [ebp + 8], eax
xor ebx, ebx
pop edx
cmp eax, 0xa
jg 0x409bc5
cmp ebx, edx
jge 0x409b0c
lea esi, [ebp + ebx*4 - 0x28]
mov dword [ebp - 4], esi
cmp ecx, edx
jge 0x409b0e
mov edi, dword [ebp - 8]
lea esi, [ecx + eax*4]
lea edi, [edi + esi*4 + 0x14]
mov esi, dword [ebp - 4]
add dword [ebp - 4], edx
inc ebx
inc ecx
cmp ebx, edx
movsd dword es:[edi], dword [esi]
jl 0x409af1
cmp ecx, edx
jne 0x409b16
inc eax
mov dword [ebp + 8], eax
xor ecx, ecx
cmp ebx, edx
jl 0x409add
cmp eax, 0xa
jg 0x409bc5
mov dword [ebp - 4], 0x418ca8
movzx esi, byte [ebp - 0x1b]
mov al, byte [ebp - 0x28]
xor al, byte [esi + 0x418dc8]
movzx esi, byte [ebp - 0x1a]
mov bl, byte [esi + 0x418dc8]
movzx esi, byte [ebp - 0x19]
xor byte [ebp - 0x27], bl
mov bl, byte [esi + 0x418dc8]
movzx esi, byte [ebp - 0x1c]
xor byte [ebp - 0x26], bl
mov bl, byte [esi + 0x418dc8]
mov esi, dword [ebp - 4]
xor al, byte [esi]
xor byte [ebp - 0x25], bl
inc dword [ebp - 4]
push 3
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x24]
pop edi
xor esi, esi
mov bl, byte [eax + esi - 4]
xor byte [eax + esi], bl
inc esi
cmp esi, edx
jl 0x409b71
add eax, edx
dec edi
jne 0x409b6f
xor ebx, ebx
cmp dword [ebp + 8], 0xa
jg 0x409bc5
cmp ebx, edx
jge 0x409bae
lea eax, [ebp + ebx*4 - 0x28]
cmp ecx, edx
jge 0x409bb0
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 8]
lea esi, [ecx + esi*4]
lea edi, [edi + esi*4 + 0x14]
mov esi, eax
inc ebx
add eax, edx
inc ecx
cmp ebx, edx
movsd dword es:[edi], dword [esi]
jl 0x409b92
cmp ecx, edx
jne 0x409bb7
inc dword [ebp + 8]
xor ecx, ecx
cmp ebx, edx
jl 0x409b84
cmp dword [ebp + 8], 0xa
jle 0x409b2a
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x409bcc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
add ecx, 0x24
push 4
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 9
pop edi
xor eax, eax
mov ecx, dword [ebp - 4]
lea esi, [ebp + eax - 0x1c]
add ecx, 2
mov dword [ebp - 8], edi
movzx edx, byte [ecx + 1]
movzx ebx, byte [ecx - 1]
mov dl, byte [eax + edx*4 + 0x415ca8]
xor dl, byte [eax + ebx*4 + 0x4164a8]
movzx ebx, byte [ecx - 2]
xor dl, byte [eax + ebx*4 + 0x4168a8]
movzx ebx, byte [ecx]
xor dl, byte [eax + ebx*4 + 0x4160a8]
add ecx, edi
mov byte [esi], dl
add esi, edi
dec dword [ebp - 8]
jne 0x409bf4
inc eax
cmp eax, edi
jl 0x409be7
push 0x10
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call fcn.0040a3cb
add dword [ebp - 4], 0x10
dec dword [ebp - 0xc]
jne 0x409be5
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40da4e
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x1001163
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x10010c0
call fcn.0100134c
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x10011a0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10011a0
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10011b8
cmp eax, 0x20b
je 0x10011a5
mov dword [ebp - 0x1c], ebx
jmp 0x10011cc
cmp dword [ecx + 0x84], 0xe
jbe 0x10011a0
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x10011c6
cmp dword [ecx + 0x74], 0xe
jbe 0x10011a0
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1002218], 0xffffffff
or dword [0x100221c], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1002214]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1002210]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1002220], eax
call fcn.01001348
cmp dword [section..data], ebx
jne 0x1001227
push fcn.01001348
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01001336
push 0x100106c
push 0x1001068
call sub.msvcrt.dll__initterm
mov eax, dword [0x100220c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1002208]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x1001064
push 0x1001060
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x10012bd
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x1001291
cmp al, 0x22
jne 0x1001283
cmp byte [esi], 0x22
jne 0x100129a
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x10012a4
cmp al, 0x20
jbe 0x1001296
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x4c], 1
je 0x10012c8
movzx eax, word [ebp - 0x48]
jmp 0x10012cb
cmp byte [esi], 0x20
jbe 0x100129a
inc esi
mov dword [ebp - 0x34], esi
jmp 0x10012bd
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x10012e8
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100131d
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01001385
ret
Function at 0x401d80
Capabilities:
Encode data using xor
Read .ini file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xa2b30
call fcn.0040c710
mov eax, dword [0x414054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
jmp 0x401dab
jmp 0x401dbd
push str..Maininfo.ini
push 0
push str.EncryptEffect
push str.Encrypt
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x401f67
push 0xa2b20
lea eax, [ebp - 0xa2b28]
push 0
push eax
call fcn.00405240
add esp, 0xc
push 0x452d40
call fcn.00401850
push 0x470208
call fcn.00401b00
push 0x41c0a0
call fcn.004012b0
push 0x415338
call fcn.00401030
push 0x451c08
call fcn.00401560
push 0x596780
call fcn.00402dc0
call fcn.00402770
push 0x1d4c0
lea ecx, [ebp - 0xa2b28]
push 0x452d44
push ecx
call fcn.00409c80
add esp, 0xc
push 0x35b60
lea edx, [ebp - 0x85668]
push 0x47020c
push edx
call fcn.00409c80
add esp, 0xc
push 0x35b60
lea eax, [ebp - 0x4fb08]
push 0x41c0a4
push eax
call fcn.00409c80
add esp, 0xc
push 0x6d60
lea ecx, [ebp - 0x19fa8]
push 0x41533c
push ecx
call fcn.00409c80
add esp, 0xc
push 0x101d0
mov ecx, 0x2bc
mov esi, 0x451c0c
lea edi, [ebp - 0x13248]
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x12118]
push 0x596784
mov ecx, 0x190
mov esi, 0x4526fc
lea edi, [ebp - 0x12758]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.00409c80
add esp, 0xc
push 0x1f40
lea eax, [ebp - 0x1f48]
push 0x5dd7b0
push eax
call fcn.00409c80
add esp, 0xc
xor eax, eax
nop
mov dl, byte [ebp + eax - 0xa2b28]
mov ecx, eax
xor dl, al
shr ecx, 8
xor cl, 0x85
xor dl, 0xfa
sub dl, cl
mov byte [ebp + eax - 0xa2b28], dl
inc eax
cmp eax, 0xa2b20
jb 0x401ef0
push 0
push 0x20
push 2
push 0
push 1
push 0x40000000
push str.Premium_Data_Local_EffectTRSData.bmd
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401f67
push 0
lea eax, [ebp - 0xa2b2c]
push eax
push 0xa2b20
lea ecx, [ebp - 0xa2b28]
push ecx
push esi
mov dword [ebp - 0xa2b2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x401f79
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040375a
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401f91
jmp 0x401fa8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040375a
mov esp, ebp
pop ebp
ret
Function at 0x401fd0
Capabilities:
Encode data using xor
Read .ini file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1263cc
call fcn.0040c710
mov eax, dword [0x414054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
jmp 0x401ffa
jmp 0x40200c
push str..Maininfo.ini
push 0
push str.EncryptTooltip
push str.Encrypt
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x40218c
push 0x1263c0
lea eax, [ebp - 0x1263c8]
push 0
push eax
call fcn.00405240
add esp, 0xc
push 0
push 0x5a6958
mov ecx, str.Custom_BuffEffect_eng.txt
call fcn.00403450
push 1
push 0x5a6958
mov ecx, str.Custom_BuffEffect_spn.txt
call fcn.00403450
push 2
push 0x5a6958
mov ecx, str.Custom_BuffEffect_por.txt
call fcn.00403450
push 1
push 0x4a63b8
mov ecx, str.CustomItem_JCItemToolTip.txt
call fcn.00402430
push 2
push 0x4a63b8
mov ecx, str.Custom_JCTextTooltip.txt
call fcn.00402430
push 0x12000
lea ecx, [ebp - 0x1263c8]
push 0x5a695c
push ecx
call fcn.00409c80
add esp, 0xc
push 0x12000
lea edx, [ebp - 0x1143c8]
push 0x5b895c
push edx
call fcn.00409c80
add esp, 0xc
push 0x12000
lea eax, [ebp - 0x1023c8]
push 0x5ca95c
push eax
call fcn.00409c80
add esp, 0xc
push 0x71480
lea ecx, [ebp - 0xf03c8]
push 0x4a63bc
push ecx
call fcn.00409c80
add esp, 0xc
push 0x7ef40
lea edx, [ebp - 0x7ef48]
push 0x51783c
push edx
call fcn.00409c80
add esp, 0xc
xor eax, eax
mov dl, byte [ebp + eax - 0x1263c8]
mov ecx, eax
xor dl, al
shr ecx, 8
xor cl, 0x85
xor dl, 0xfa
sub dl, cl
mov byte [ebp + eax - 0x1263c8], dl
inc eax
cmp eax, 0x1263c0
jb 0x402115
push 0
push 0x20
push 2
push 0
push 1
push 0x40000000
push str.Premium_Data_Local_TooltipTRSData.bmd
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40218c
push 0
lea eax, [ebp - 0x1263cc]
push eax
push 0x1263c0
lea ecx, [ebp - 0x1263c8]
push ecx
push esi
mov dword [ebp - 0x1263cc], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x40219d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040375a
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4021b5
jmp 0x4021cc
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040375a
mov esp, ebp
pop ebp
ret
Function at 0x4021e0
Capabilities:
Encode data using xor
Read .ini file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x414054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
jmp 0x402207
jmp 0x402219
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push str..Maininfo.ini
push 0
push str.EncryptMakeWorld
push str.Encrypt
call esi
test eax, eax
je 0x4022f7
push 0x12c
lea eax, [ebp - 0x138]
push 0
push eax
call fcn.00405240
add esp, 0xc
push str..Maininfo.ini
push 0
push str.RenderTooltipS15
push str.Season15
call esi
mov dword [ebp - 0x10], eax
call fcn.00403040
mov ecx, 0x4a
mov esi, 0x5dd680
lea edi, [ebp - 0x138]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
nop
mov dl, byte [ebp + eax - 0x138]
mov ecx, eax
xor dl, al
shr ecx, 8
xor cl, 0x85
xor dl, 0xfa
sub dl, cl
mov byte [ebp + eax - 0x138], dl
inc eax
cmp eax, 0x12c
jb 0x402280
push 0
push 0x20
push 2
push 0
push 1
push 0x40000000
push str.Premium_Data_Local_MakeWorldTRSData.bmd
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4022f7
push 0
lea eax, [ebp - 0x13c]
push eax
push 0x12c
lea ecx, [ebp - 0x138]
push ecx
push esi
mov dword [ebp - 0x13c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x402309
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040375a
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402321
jmp 0x402338
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040375a
mov esp, ebp
pop ebp
ret
Function at 0x402960
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push eax
mov esi, ecx
lea ebx, [esi + 0xc]
push 0x100
push ebx
call fcn.00403c3a
add esp, 0xc
push 0
push 0x20
push 3
push 0
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4029b7
push ebx
push str.__s__Could_not_open_file_n
add esi, 0x218
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x4029da
push eax
call fcn.00403a52
add esp, 4
mov dword [esi + 4], 0
mov ecx, dword [esi + 8]
push ecx
call fcn.00403aac
add esp, 4
mov dword [esi + 4], eax
test eax, eax
jne 0x402a13
push ebx
push str.__s__Could_not_alloc_file_buffer_n
add esi, 0x218
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 8]
push 0
lea edx, [ebp - 4]
push edx
push ecx
push eax
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402a38
push ebx
push str.__s__Could_not_read_file_n
jmp 0x4029f3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
pop edi
mov dword [esi + 0x214], eax
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40375a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x414054]
jne 0x403764
repz ret
jmp fcn.0040417c
Function at 0x408cfb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x414054]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00406ef9
and dword [ebp - 0x14], 0
cmp dword [0x5dd5fc], 0
mov dword [ebp - 0x18], eax
jne 0x408dae
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x408e56
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x408e56
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x5dd5fc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x5dd600], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5dd604], eax
call edi
push eax
call esi
mov dword [0x5dd60c], eax
test eax, eax
je 0x408dae
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5dd608], eax
mov eax, dword [0x5dd608]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x408e07
cmp dword [0x5dd60c], ecx
je 0x408e07
push eax
call esi
push dword [0x5dd60c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x408e07
test ebx, ebx
je 0x408e07
call edi
test eax, eax
je 0x408dfe
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x408dfe
test byte [ebp - 8], 1
jne 0x408e07
or dword [ebp + 0x10], 0x200000
jmp 0x408e3a
mov eax, dword [0x5dd600]
cmp eax, dword [ebp - 0x18]
je 0x408e3a
push eax
call esi
test eax, eax
je 0x408e3a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x408e3a
mov eax, dword [0x5dd604]
cmp eax, dword [ebp - 0x18]
je 0x408e3a
push eax
call esi
test eax, eax
je 0x408e3a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5dd5fc]
call esi
test eax, eax
je 0x408e56
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x408e58
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040375a
leave
ret
Function at 0x4010ac
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
push 0x40fa4c
lea eax, [ebp - 4]
xor edi, edi
push 0x412b60
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
call fcn.00401b09
xor ecx, ecx
cmp eax, edi
sete cl
push str.Failed_to_open_executable
push ecx
call entry0
push 2
push edi
push dword [ebp - 4]
call fcn.00402a21
push dword [ebp - 4]
call fcn.00402932
cdq
mov dword [ebp - 0x18], eax
add eax, 0xfffffefc
add esp, 0x24
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], eax
cmp eax, edi
jge 0x40110d
mov dword [ebp - 8], edi
push edi
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00402a21
push dword [ebp - 4]
push 0x104
push 1
push ebx
call fcn.00402542
push ebx
mov esi, eax
call fcn.0040106a
add esp, 0x20
cmp eax, edi
je 0x40114f
mov esi, eax
sub eax, ebx
add eax, dword [ebp - 8]
push 5
cdq
pop ecx
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x18], eax
mov esi, edx
jmp 0x4011cd
mov esi, 0x4100000
push esi
call fcn.00401dfb
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
add eax, 0xfbf00000
pop ecx
mov dword [ebp - 8], eax
cmp eax, edi
jge 0x401170
mov dword [ebp - 8], edi
push edi
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00402a21
push dword [ebp - 4]
push esi
push 1
push dword [ebp - 0xc]
call fcn.00402542
push dword [ebp - 0xc]
mov esi, eax
call fcn.0040106a
mov esi, eax
xor eax, eax
cmp esi, edi
setne al
push str.Unable_to_find_an_appended_archive.
mov dword [ebp - 0x14], esi
push eax
call entry0
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0xc]
push 5
add eax, dword [ebp - 8]
pop ecx
push dword [ebp - 0xc]
cdq
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x18], eax
mov esi, edx
call fcn.00401b77
add esp, 0x2c
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x20]
push 0
sub dword [ebp - 0x18], ecx
push dword [ebp - 0x18]
push dword [ebp - 4]
sbb esi, 0
call fcn.00402a21
push dword [ebp - 4]
mov edi, 0x104
push edi
push 1
push ebx
call fcn.00402542
xor ecx, ecx
cmp ecx, eax
sbb eax, eax
mov esi, str.Unable_to_read_from_file
neg eax
push esi
push eax
call entry0
mov cx, word [ebx]
mov eax, 0x40fab0
add esp, 0x24
cmp cx, word [eax]
jne 0x401220
mov dword [ebp - 0x10], ebx
jmp 0x401274
mov eax, dword [ebp - 0x18]
add eax, 0xfffffefc
jns 0x40122c
xor eax, eax
push 0
push eax
push dword [ebp - 4]
call fcn.00402a21
push dword [ebp - 4]
push edi
push 1
push ebx
call fcn.00402542
mov edi, eax
xor eax, eax
cmp eax, edi
sbb eax, eax
neg eax
push esi
push eax
call entry0
add esp, 0x24
lea eax, [edi + ebx - 1]
jmp 0x40126b
mov dx, word [eax]
mov ecx, 0x40fab0
cmp dx, word [ecx]
je 0x401271
dec eax
cmp eax, ebx
jae 0x40125d
jmp 0x401274
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
call fcn.00402cdf
mov eax, dword [ebp - 0x10]
pop ecx
pop edi
pop esi
leave
ret
Function at 0x1001238
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
push dword [ebp + 8]
push 7
call fcn.010011f5
mov edi, dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
xor esi, esi
push esi
push esi
push dword [ebp + 8]
call edi
test eax, eax
jne 0x1001288
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xea
je 0x1001288
push esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call ebx
jmp 0x10012d5
mov eax, dword [ebp - 4]
add eax, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
cmp ebx, esi
push esi
jne 0x10012ad
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
push 8
jmp 0x10012d6
push dword [ebp - 4]
push ebx
push dword [ebp + 8]
call edi
test eax, eax
jne 0x10012f0
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
lea eax, [ebp - 0x20c]
push eax
call fcn.01001170
jmp 0x1001330
cmp word [ebx], si
jne 0x1001306
push 9
call fcn.010011f5
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1001330
mov edi, ebx
push edi
push 6
call fcn.010011f5
pop ecx
pop ecx
mov ax, word [edi]
inc edi
inc edi
test ax, ax
jne 0x1001312
cmp word [edi], si
jne 0x1001308
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 8
call fcn.010011f5
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1001337
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x100110c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1001363
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10013a2
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x208
push 0
push 0
push 0x10010ec
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x100139e
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10013a1
xor eax, eax
inc eax
pop edi
leave
ret 4

Function at 0x10013a6
Capabilities:
Enumerate disk volumes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
push edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10013f8
xor edi, edi
push edi
push esi
lea eax, [ebp - 0x410]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
lea eax, [ebp - 0x410]
push eax
call fcn.01001170
jmp 0x100141e
lea eax, [ebp - 0x208]
push eax
call fcn.01001238
push esi
lea eax, [ebp - 0x208]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x10013f8
push edi
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
pop edi
pop esi
leave
ret