joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4059f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x104
push 0x104
call fcn.00402c80
push eax
lea eax, [esp + 8]
push eax
call fcn.00410330
mov al, byte [esp]
test al, al
jne 0x405a27
push 0x104
push 0x4391e4
lea ecx, [esp + 8]
push ecx
call fcn.00410330
push 0x104
push str.drexp.mpq
lea edx, [esp + 8]
push edx
call fcn.0040e6b0
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov eax, 0x431420
jne 0x405a55
mov eax, 0x431410
mov ecx, dword [esp + 0x10c]
mov edx, dword [esp + 0x108]
push ecx
push edx
push 2
push eax
push str.Dkablo_II
call fcn.00405a80
add esp, 0x118
ret

Function at 0x405b40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x104
push 0x104
call fcn.00402c80
push eax
lea eax, [esp + 8]
push eax
call fcn.00410330
mov al, byte [esp]
test al, al
jne 0x405b77
push 0x104
push 0x4391e4
lea ecx, [esp + 8]
push ecx
call fcn.00410330
push 0x104
push 0x4391fc
lea edx, [esp + 8]
push edx
call fcn.0040e6b0
lea eax, [esp]
push eax
call fcn.00401f60
add esp, 4
push 0x104
call fcn.00402c80
push eax
lea ecx, [esp + 8]
push ecx
call fcn.00410330
mov al, byte [esp]
test al, al
push 0x104
push str.wer3x.mp1
jne 0x405bcb
lea edx, [esp + 8]
push edx
call fcn.00410330
jmp 0x405bd5
lea eax, [esp + 8]
push eax
call fcn.0040e6b0
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov ecx, 0x431438
mov eax, edx
test eax, eax
jne 0x405bf8
mov ecx, 0x431430
mov edx, dword [esp + 0x10c]
push edx
mov edx, dword [esp + 0x10c]
push edx
xor edx, edx
test eax, eax
setne dl
lea edx, [edx + edx + 1]
push edx
push ecx
push str.Warcraft
call fcn.00405a80
add esp, 0x118
ret

Function at 0x406180
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push 1
push 0x43edcc
push 0x43edcc
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret
Function at 0x406370
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0xa58
push 0x200
lea eax, [esp + 0x5c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4065a2
lea ecx, [esp + 0x58]
push ecx
call fcn.0040e680
push str.wow_
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4065a2
mov ecx, dword [0x43936c]
mov edx, dword [0x439364]
mov eax, dword [0x439368]
push esi
push 0xf
mov dword [esp + 0x10], ecx
lea ecx, [esp + 8]
push ecx
push 0x82
mov dword [esp + 0x10], edx
mov dx, word [0x439370]
mov dword [esp + 0x14], eax
mov al, byte [0x439372]
push 0x438d70
push str.Patch
mov word [esp + 0x24], dx
mov byte [esp + 0x26], al
call fcn.00417ac0
mov dword [esp + 0x30], str.base.Mpq
mov dword [esp + 0x34], str.dbc.mpq
mov dword [esp + 0x38], str.fonts.mpq
mov dword [esp + 0x3c], str.int_rface
mov dword [esp + 0x40], str.liRc.mpq
mov dword [esp + 0x44], str.mode..epq
mov dword [esp + 0x48], str.soufe.opq
mov dword [esp + 0x4c], str.s_eech
mov dword [esp + 0x50], str.terra_n.op1
mov dword [esp + 0x54], 0x4392ec
mov dword [esp + 0x58], str.weomPs_texture_mPQ
mov byte [esp + 0x25c], 0
xor esi, esi
mov edi, edi
test esi, esi
jle 0x40647b
push 0x800
push 0x4391e8
lea edx, [esp + 0x264]
push edx
call fcn.00410430
push 0x800
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x264]
push ecx
call fcn.00410430
push 0x800
push 0x4392dc
lea edx, [esp + 0x264]
push edx
call fcn.00410430
mov eax, dword [esp + esi*4 + 0x30]
push 0x800
push eax
lea ecx, [esp + 0x264]
push ecx
call fcn.0040e6b0
inc esi
cmp esi, 0xb
jb 0x406460
lea edx, [esp + 0x25c]
push edx
push 2
push 0x4392a8
push str.Patch
call fcn.00417cc0
mov eax, dword [str.DitaTpatch]
mov edx, dword [0x4392d0]
mov ecx, dword [0x4392cc]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
mov dword [esp + 0x1c], eax
mov eax, dword [0x4392d4]
mov dword [esp + 0x24], edx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x24], ecx
mov cx, word [0x4392d8]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x60]
push eax
mov word [esp + 0x34], cx
lea ecx, [esp + 0x264]
push 0x4392c0
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0x25c]
push edx
push 2
push str.DstData
push str.Patch
call fcn.00417cc0
mov eax, dword [str.WoW.exe]
mov ecx, dword [0x4392bc]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x60]
push eax
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x264]
push 0x4392c0
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0x25c]
push edx
push 2
push str.Launcher
push str.Patch
call fcn.00417cc0
lea eax, [esp + 0x5c]
push eax
call fcn.00402c60
add esp, 4
pop esi
add esp, 0xa58
ret
Function at 0x406cd0
Capabilities:
Get file size

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov dl, 0x2c
mov ecx, edi
call fcn.004101b0
mov esi, eax
test esi, esi
je 0x406ce8
mov byte [esi], 0
lea eax, [esp + 0xc]
push eax
push edi
call fcn.00402ca0
add esp, 8
test esi, esi
je 0x406cfd
mov byte [esi], 0x2c
test eax, eax
jne 0x406d04
pop edi
pop esi
ret
mov ecx, dword [esp + 0xc]
push 0
push ecx
mov edi, 1
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406d39
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x406d39
mov eax, dword [esp + 0xc]
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push eax
mov dword [edx], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x407ea0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
mov edx, dword [esp + 8]
jne 0x401d7a
test edx, edx
je 0x401d7a
push 0x57
call fcn.00411cb0
xor eax, eax
ret
or eax, 0xffffffff
test edx, edx
je 0x401da2
push esi
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
mov esi, dword [esi*4 + 0x4386c8]
shr eax, 8
xor eax, esi
inc ecx
dec edx
jne 0x401d83
pop edi
pop esi
not eax
ret
jmp 0x401d60

Function at 0x408de0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3ea
push ebx
call edi
push 0x3eb
push ebx
mov esi, eax
call edi
test esi, esi
mov edi, eax
je 0x408ecc
test edi, edi
je 0x408ecc
push ebp
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x28]
test eax, eax
mov ebp, dword [sym.imp.USER32.dll_EnableWindow]
push 0
je 0x408e58
push esi
call ebp
push 0
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
call esi
push 1
push edi
call ebp
push 5
push edi
call esi
mov ecx, dword [esp + 0x14]
mov edx, dword [0x43eefc]
lea eax, [edx + ecx]
jmp 0x408e7b
push edi
call ebp
push 0
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
call edi
push 1
push esi
call ebp
push 5
push esi
call edi
mov ecx, dword [esp + 0x14]
mov eax, dword [0x43eef8]
add eax, ecx
mov edx, dword [esp + 0x18]
push 1
mov dword [esp + 0x20], eax
sub eax, ecx
push eax
mov eax, dword [esp + 0x18]
sub edx, eax
push edx
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esp + 0x28]
test eax, eax
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
pop ebp
je 0x408eb3
push 0x3e9
push ebx
call esi
test eax, eax
jne 0x408ec5
push 1
push ebx
call esi
test eax, eax
jne 0x408ec5
push 2
push ebx
call esi
test eax, eax
je 0x408ecc
push eax
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x4091a0
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
push edi
push ebx
push eax
push esi
call fcn.00405860
add esp, 0xc
test eax, eax
je 0x40926c
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push ebx
call fcn.00415c90
test eax, eax
je 0x40920a
push 0
push 0
push 2
mov ecx, 0x43ef04
call fcn.00409830
mov edx, dword [esp + 0x18]
push 0xf0
push str.A2projectsToolsXathep_bjUp
mov edi, eax
push ebx
mov dword [edi + 8], edx
call fcn.004103b0
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
jmp 0x409215
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40924f
test esi, esi
je 0x409246
lea esp, [esp]
mov dl, 0x3b
mov ecx, esi
mov edi, esi
call fcn.004101b0
mov esi, eax
test esi, esi
je 0x409235
mov byte [esi], 0
inc esi
push edi
call fcn.00409280
add esp, 4
test eax, eax
je 0x40926c
test esi, esi
jne 0x409220
pop edi
pop esi
mov eax, 1
pop ebx
ret
push 0
push 0
push ebx
push 0x81
call fcn.004029d0
push ebx
push str.ERROR:_unable_to_open_archive__s_n_n
call fcn.0040e170
add esp, 0x18
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x409350
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x214
push ebx
mov ebx, dword [esp + 0x220]
push esi
push edi
mov edi, dword [esp + 0x224]
push ebx
xor esi, esi
push esi
push esi
push edi
mov dword [eax], 1
call fcn.00415c90
test eax, eax
je 0x40938f
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x214
ret
push ebp
lea ecx, [esp + 0x1c]
push ecx
push 0x104
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
cmp eax, esi
je 0x4094bb
cmp eax, 0x104
ja 0x4094bb
lea edx, [esp + 0x10]
push edx
push edi
call fcn.00402390
add esp, 8
test eax, eax
je 0x4094bb
mov al, byte [esp + 0x1c]
test al, al
lea esi, [esp + 0x1c]
je 0x4094bb
mov eax, dword [esp + 0x10]
push 0x7fffffff
push eax
push esi
call fcn.00410250
test eax, eax
push esi
je 0x409409
call fcn.00410400
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x4093e1
jmp 0x4094bb
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
call ebp
sub eax, 5
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x18], eax
je 0x4094bb
mov dl, 0x5c
mov ecx, edi
call fcn.004101e0
test eax, eax
je 0x409433
lea edi, [eax + 1]
mov al, byte [esp + 0x1c]
test al, al
lea esi, [esp + 0x1c]
je 0x409493
nop
push esi
call ebp
cmp eax, 5
jne 0x409484
push 0x104
push esi
lea ecx, [esp + 0x128]
push ecx
call fcn.00410330
push 0x104
push edi
lea edx, [esp + 0x128]
push edx
call fcn.0040e6b0
push ebx
push 0
push 0
lea eax, [esp + 0x12c]
push eax
call fcn.00415c90
test eax, eax
jne 0x4094db
push esi
call fcn.00410400
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x409440
push 0
push 0
push edi
push 0x83
call fcn.004029d0
add esp, 0x10
test eax, eax
jne 0x409433
call fcn.00406880
mov ecx, dword [esp + 0x230]
mov dword [ecx], 0
mov eax, dword [esp + 0x10]
test eax, eax
pop ebp
je 0x4094cd
push eax
call fcn.00402400
add esp, 4
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
add esp, 0x214
ret
mov dword [esp + 0x14], 1
jmp 0x4094bb
Function at 0x4096f0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4096fe
mov dword [eax], 0
mov eax, dword [esp + 4]
test eax, eax
je 0x4097a6
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x4097a6
push ebx
push ebp
push esi
push edi
push 0x161
push str.A2projectsToolsXathep_bjUp
push eax
mov dword [ecx], 0
call fcn.004103b0
push 0
push 0x8000000
push 3
push 0
push 1
mov ebp, eax
push 0x80000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4097c6
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x4097c6
cmp esi, 0xffffffff
je 0x4097c6
push 0
push 0x17b
push str.A2projectsToolsXathep_bjUp
push esi
call fcn.0040e9d0
push 0
mov edi, eax
lea eax, [esp + 0x18]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4097b0
cmp esi, dword [esp + 0x14]
jne 0x4097b0
mov eax, dword [esp + 0x1c]
test eax, eax
mov ecx, dword [esp + 0x18]
mov dword [ecx], edi
je 0x4097c6
mov dword [eax], esi
jmp 0x4097c6
push 0x57
call fcn.00411cb0
xor eax, eax
ret
test edi, edi
je 0x4097c6
push 0
push 0x187
push str.A2projectsToolsXathep_bjUp
push edi
call fcn.0040fb50
test ebp, ebp
je 0x4097dc
push 0
push 0x188
push str.A2projectsToolsXathep_bjUp
push ebp
call fcn.0040fb50
cmp ebx, 0xffffffff
je 0x4097e8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x18]
mov ecx, dword [edx]
pop edi
pop esi
xor eax, eax
test ecx, ecx
pop ebp
setne al
pop ebx
ret

Function at 0x409aa0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
push esi
push edi
call fcn.00409a70
add esp, 8
test eax, eax
jne 0x409abb
pop edi
pop esi
ret
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x18]
push eax
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x409ad6
pop edi
pop esi
ret
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, esi
pop edi
sete al
pop esi
ret
Function at 0x40cbe0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov edx, dword [esp + 4]
push edi
mov edi, dword [esp + 0xc]
shr edi, 2
test edi, edi
mov eax, 0xeeeeeeee
je 0x40cc3b
mov ecx, dword [esp + 0x10]
push ebx
push esi
nop
lea esp, [esp]
mov esi, ecx
and esi, 0xff
add eax, dword [esi*4 + 0x440058]
mov ebx, dword [edx]
lea esi, [eax + ecx]
imul eax, eax, 0x21
xor ebx, esi
mov esi, ebx
lea eax, [eax + esi + 3]
mov esi, ecx
not esi
shl esi, 0x15
add esi, 0x11111111
shr ecx, 0xb
mov dword [edx], ebx
add edx, 4
or ecx, esi
dec edi
jne 0x40cc00
pop esi
pop ebx
pop edi
ret

Function at 0x40cc40
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
shr edi, 2
test edi, edi
mov eax, 0xeeeeeeee
je 0x40cc98
mov ecx, dword [esp + 0x14]
push ebx
nop
lea esp, [esp]
mov edx, dword [esi]
mov ebx, ecx
and ebx, 0xff
add eax, dword [ebx*4 + 0x440058]
lea ebx, [eax + ecx]
imul eax, eax, 0x21
xor ebx, edx
lea eax, [eax + edx + 3]
mov edx, ecx
not edx
shl edx, 0x15
add edx, 0x11111111
shr ecx, 0xb
mov dword [esi], ebx
add esi, 4
or ecx, edx
dec edi
jne 0x40cc60
pop ebx
pop edi
pop esi
ret

Function at 0x40ced0
Capabilities:
Hash data with md5

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

Function at 0x40d9e0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor eax, eax
test esi, esi
je 0x40d9ed
mov eax, dword [esi]
push ebx
mov bl, byte [esp + 0x18]
test bl, 1
je 0x40d9fa
or eax, 0xffffffff
test bl, 2
je 0x40da2f
mov edx, dword [esp + 0x10]
test edx, edx
mov ecx, dword [esp + 0xc]
je 0x40da2f
push ebp
push edi
lea ecx, [ecx]
movzx ebp, byte [ecx]
mov edi, eax
and edi, 0xff
xor edi, ebp
mov edi, dword [edi*4 + 0x439b40]
shr eax, 8
xor eax, edi
inc ecx
dec edx
jne 0x40da10
pop edi
pop ebp
test bl, 4
pop ebx
je 0x40da37
not eax
test esi, esi
je 0x40da3d
mov dword [esi], eax
pop esi
ret
Function at 0x40dea0
Capabilities:
Get common file path
Get disk size

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x114
push 0x104
push eax
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
mov al, byte [esp + 0x1c]
add esp, 0xc
test al, al
je 0x40decd
cmp byte [esp + 0x11], 0x3a
je 0x40dedd
lea edx, [esp + 0x10]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x27], 0
mov dword [esp + 0x14], 0x200
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov eax, dword [esp]
add esp, 0x114
ret

Function at 0x40e200
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 8]
test ebp, ebp
jne 0x40e214
push 0x57
call fcn.00411cb0
xor eax, eax
pop ebp
ret
call fcn.0040dff0
test eax, eax
je 0x40e22b
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
pop ebp
ret
push esi
push edi
xor edi, edi
push edi
push edi
push 2
push edi
push edi
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40e287
mov eax, dword [0x440468]
mov edx, dword [0x44046c]
push ebx
push edi
lea ecx, [esp + 0x18]
push ecx
push eax
push edx
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40e274
cmp ebx, dword [esp + 0x14]
jne 0x40e274
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
pop ebx
jne 0x40e287
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x40e7e0
Capabilities:
Check if file exists

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x24]
push ebx
push edi
push esi
lea eax, [ebp + 4]
push eax
push ecx
push edx
call fcn.00417690
test eax, eax
jne 0x40e855
push ebx
mov ebx, dword [esp + 0x1c]
push edi
push esi
push ebp
mov ebp, dword [esp + 0x24]
push ebx
push ebp
call fcn.00417690
test eax, eax
jne 0x40e855
test edi, edi
je 0x40e82f
test esi, esi
je 0x40e82f
mov byte [esi], al
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x40e842
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40e84e
push 0
push ebx
push ebp
call fcn.0040e730
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x40e860
Capabilities:
Check if file exists

Disassembly:
mov ecx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x24]
push edi
push esi
lea eax, [ebx + 4]
push eax
push ebp
push ecx
call fcn.004178c0
test eax, eax
jne 0x40e8cb
push edi
push esi
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push ebx
call fcn.004178c0
test eax, eax
jne 0x40e8cb
test edi, edi
je 0x40e8a5
test esi, esi
je 0x40e8a5
mov byte [esi], al
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x40e8b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40e8c4
push 0
push ebp
push ebx
call fcn.0040e730
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x40e8e0
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x18]
push esi
lea eax, [ebp + 4]
push eax
push edi
push ebx
call fcn.00417a00
test eax, eax
jne 0x40e93d
push esi
push ebp
push edi
push ebx
call fcn.00417a00
test eax, eax
jne 0x40e93d
test esi, esi
je 0x40e917
mov dword [esi], eax
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x40e92a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40e936
push 0
push edi
push ebx
call fcn.0040e730
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x40eb30
Capabilities:
Terminate process

Disassembly:
xor eax, eax
cmp ecx, 8
sete al
push 1
push 0
push 0
mov dword [0x4425a0], eax
mov eax, dword [esp + 0x10]
push eax
push edx
push ecx
call fcn.00410ea0
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40f2b0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 4]
mov eax, 1
cmp ecx, eax
mov dword [0x4425a4], eax
jbe 0x40f2db
shl eax, 1
cmp eax, ecx
jb 0x40f2d0
mov dword [0x4425a4], eax
add esp, 0x24
ret
Function at 0x40f590
Capabilities:
Print debug messages

Disassembly:
sub esp, 0xcc
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebx, dword [edi]
mov esi, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x20]
xor ebp, ebp
cmp esi, eax
mov dword [esp + 0x10], edi
jae 0x40f622
mov edi, edi
movzx edi, word [esi]
xor eax, eax
mov al, byte [esi + 3]
add edi, esi
test al, 0x82
je 0x40f5c7
and eax, 0x80
or ebp, eax
jmp 0x40f613
test al, 0x40
jne 0x40f60a
mov eax, dword [0x443278]
test eax, eax
lea edx, [ebx + 0x6c]
jne 0x40f5e7
mov eax, dword [ebx + 0x68]
push eax
mov ecx, 0x8510007e
call fcn.0040f650
jmp 0x40f60a
mov ecx, dword [ebx + 0x68]
push ecx
push edx
lea eax, [esp + 0x1c]
push str.StOzmpError_:_mdmory_neve
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, esi
mov ecx, ebx
call fcn.0040f310
cmp edi, dword [ebx + 0x20]
mov esi, edi
jb 0x40f5b0
test ebp, ebp
jne 0x40f636
mov edi, dword [esp + 0x10]
mov ecx, edi
call fcn.0040ed60
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xcc
ret

Function at 0x4106e0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x4106f6
push 0x57
call fcn.00411cb0
xor eax, eax
pop esi
ret 0xc
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x410703
mov eax, 0x7fed7fed
mov cl, byte [esp + 0xc]
push ebx
push ebp
test cl, 1
movzx ecx, byte [esi]
push edi
mov edx, 0xeeeeeeee
je 0x410751
test ecx, ecx
je 0x41079b
nop
add eax, edx
imul edx, edx, 0x21
mov edi, ecx
mov ebx, ecx
shr edi, 4
mov edi, dword [edi*4 + 0x431560]
and ebx, 0xf
mov ebp, dword [ebx*4 + 0x431560]
inc esi
add edx, ecx
movzx ecx, byte [esi]
sub edi, ebp
xor eax, edi
test ecx, ecx
lea edx, [edx + eax + 3]
jne 0x410720
jmp 0x41079b
test ecx, ecx
je 0x41079b
inc esi
cmp ecx, 0x61
jb 0x410763
cmp ecx, 0x7a
ja 0x410763
sub ecx, 0x20
cmp ecx, 0x2f
jne 0x41076d
mov ecx, 0x5c
add eax, edx
imul edx, edx, 0x21
mov edi, ecx
mov ebx, ecx
shr edi, 4
mov edi, dword [edi*4 + 0x431560]
and ebx, 0xf
mov ebp, dword [ebx*4 + 0x431560]
add edx, ecx
movzx ecx, byte [esi]
sub edi, ebp
xor eax, edi
test ecx, ecx
lea edx, [edx + eax + 3]
jne 0x410755
test eax, eax
pop edi
pop ebp
pop ebx
jne 0x4107a7
mov eax, 1
pop esi
ret 0xc