joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401fa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x102c
call fcn.0040f540
mov eax, dword [0x4255e0]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor eax, ebp
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x1034], eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [esp + 0x14], eax
call dword [edx + 0x14]
push eax
push 0
lea eax, [esp + 0x20]
push eax
push esi
call fcn.004043e0
mov esi, eax
mov eax, dword [esp + 0x28]
add esp, 0x10
test eax, eax
mov dword [esp + 0x14], esi
jne 0x40217c
xor ecx, ecx
mov dword [esp + 0x20], ecx
push 0x11000
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
push edi
push esi
mov dword [esp + 0x38], ecx
call fcn.004038d0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x402041
push esi
call fcn.00404220
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1028]
xor ecx, ebp
call fcn.0040e9b5
mov esp, ebp
pop ebp
ret
push 8
lea edx, [esp + 0x24]
push edx
push edi
push esi
call fcn.00403cc0
add esp, 0x10
test eax, eax
jne 0x402077
push eax
push 0x20
push 2
push eax
mov eax, dword [esp + 0x20]
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x40209d
push ebx
call fcn.00403540
push esi
call fcn.00404220
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1028]
xor ecx, ebp
call fcn.0040e9b5
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x402131
mov byte [esp + 0x30], 0
xor eax, eax
mov ecx, 0x3ff
lea edi, [esp + 0x31]
rep stosd dword es:[edi], eax
push 0
stosw word es:[edi], ax
push 0
push ebx
stosb byte es:[edi], al
call fcn.00403b50
push 0x1000
lea ecx, [esp + 0x40]
push ecx
push ebx
call fcn.00403680
mov esi, eax
add esp, 0x18
test esi, esi
je 0x40212d
mov edi, dword [esp + 0x10]
push 0
lea edx, [esp + 0x20]
push edx
push esi
lea eax, [esp + 0x3c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402162
cmp dword [esp + 0x1c], esi
jne 0x402162
push ebx
call fcn.004038a0
mov ecx, dword [esp + 0x2c]
add esp, 4
cmp eax, ecx
jge 0x40212d
push 0x1000
lea ecx, [esp + 0x34]
push ecx
push ebx
call fcn.00403680
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4020e1
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.00403540
push esi
call fcn.00404220
add esp, 8
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1028]
xor ecx, ebp
call fcn.0040e9b5
mov esp, ebp
pop ebp
ret
push ebx
call fcn.00403540
mov edx, dword [esp + 0x18]
push edx
call fcn.00404220
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1034]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.0040e9b5
mov esp, ebp
pop ebp
ret
Function at 0x4071b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x4255e0]
xor eax, ebp
push ebx
mov ebx, dword [ebp + 8]
mov dword [esp + 0x114], eax
mov eax, dword [ebp + 0x10]
test eax, eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [esp + 0xc], ecx
je 0x407206
mov edx, dword [esi + 0x38]
mov ecx, 0x10
cmp edx, ecx
jb 0x4071ef
mov edx, dword [esi + 0x24]
jmp 0x4071f2
lea edx, [esi + 0x24]
cmp dword [esi + 0x1c], ecx
jb 0x4071fc
mov ecx, dword [esi + 8]
jmp 0x4071ff
lea ecx, [esi + 8]
mov edi, dword [esi]
push edi
push edx
push ecx
call eax
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.0040e860
mov eax, dword [esi + 0x38]
mov edi, 0x10
add esp, 0xc
cmp eax, edi
jb 0x40723f
mov eax, dword [esi + 0x24]
jmp 0x407242
lea eax, [esi + 0x24]
push eax
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov eax, dword [esi]
test eax, eax
jne 0x4072a1
cmp dword [esi + 0x38], edi
jb 0x40725e
mov eax, dword [esi + 0x24]
jmp 0x407261
lea eax, [esi + 0x24]
cmp dword [esi + 0x54], edi
jb 0x40726b
mov esi, dword [esi + 0x40]
jmp 0x40726e
add esi, 0x40
lea edx, [esp + 0xc]
push edx
push 0
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push eax
push esi
call fcn.00406b00
test al, al
setne al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, ebp
call fcn.0040e9b5
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 1
jne 0x4072ca
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, ebp
call fcn.0040e9b5
mov esp, ebp
pop ebp
ret 0xc
push 0x41e67c
push 0xa
call fcn.00408d90
mov ecx, dword [esp + 0x124]
add esp, 8
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.0040e9b5
mov esp, ebp
pop ebp
ret 0xc

Function at 0x408de0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x408e2a
cmp byte [eax], 0
je 0x408e2a
push esi
push 0
push 0x8000027
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x408e12
xor eax, eax
pop esi
ret
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
xor eax, eax
ret
Function at 0x408e30
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x408f23
cmp byte [edi], 0
je 0x408f23
push 0
lea eax, [esp + 0x10]
push eax
push edi
call fcn.00409ae0
add esp, 0xc
test al, al
je 0x408f32
push esi
push 0
push 0x8000005
push 3
push 0
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x408e9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.File_s__WinErr_d
push 3
call fcn.00408d90
add esp, 0x10
pop esi
xor al, al
pop edi
pop ecx
ret
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x408ed3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.File_s__WinErr_d
push 6
call fcn.00408d90
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor al, al
pop edi
pop ecx
ret
push 0
lea ecx, [esp + 0xc]
push ecx
push 4
lea edx, [esp + 0x1c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x408f00
cmp dword [esp + 8], 4
jne 0x408f00
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, 1
pop edi
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.winErr:__d
push 5
call fcn.00408d90
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor al, al
pop edi
pop ecx
ret
push 0x41e67c
push 0xa
call fcn.00408d90
add esp, 8
xor al, al
pop edi
pop ecx
ret

Function at 0x408f40
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
push edi
mov edi, dword [esp + 0x14]
push 1
lea eax, [esp + 0x10]
push eax
push edi
call fcn.00409ae0
add esp, 0xc
test al, al
jne 0x408f61
pop edi
add esp, 0xc
ret
push esi
push 0
push 0x8000027
push 3
push 0
push 3
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x408fa1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.File_s__WinErr_d
push 3
call fcn.00408d90
add esp, 0x10
pop esi
xor al, al
pop edi
add esp, 0xc
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 4
jb 0x40903d
push 2
push 0
push 0xfffffffffffffffc
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x408feb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.File_s__WinErr_d
push 6
call fcn.00408d90
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor al, al
pop edi
add esp, 0xc
ret
push 0
lea ecx, [esp + 0xc]
push ecx
push 4
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x409027
cmp dword [esp + 8], 4
jne 0x409027
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
xor eax, eax
cmp ecx, edx
pop esi
sete al
pop edi
add esp, 0xc
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WinErr_d
push 4
call fcn.00408d90
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor al, al
pop edi
add esp, 0xc
ret
Function at 0x409050
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x4255e0]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, ebp
push esi
mov dword [esp + 0x120], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x409089
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push eax
push esi
call ebx
test eax, eax
je 0x4090a0
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, ebp
call fcn.0040e9b5
mov esp, ebp
pop ebp
ret
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push esi
push eax
call fcn.0040e860
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
test eax, eax
je 0x4090e8
lea edx, [esp + 0x10]
push edx
call fcn.00409050
add esp, 4
test al, al
jne 0x4090ff
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, ebp
call fcn.0040e9b5
mov esp, ebp
pop ebp
ret
push 0
push esi
call ebx
mov ecx, dword [esp + 0x11c]
dec eax
neg eax
pop edi
sbb eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.0040e9b5
mov esp, ebp
pop ebp
ret

Function at 0x4092c0
Capabilities:
Hash data with crc32

Disassembly:
mov al, byte [esp + 4]
mov cl, 0xd
imul cl
add al, 0x2f
movzx edx, al
xor eax, eax
mov al, byte [edx + 0x4251c8]
xor eax, 0xce
ret
Function at 0x409a80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
jne 0x409a8d
xor al, al
pop edi
ret
mov edx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
xor ecx, ecx
test esi, esi
mov dword [edx], 0xffffffff
jbe 0x409ac9
push ebx
push ebp
mov eax, dword [edx]
movzx ebx, byte [ecx + edi]
mov ebp, eax
and ebp, 0xff
xor ebx, ebp
mov ebp, dword [ebx*4 + 0x4251c8]
shr eax, 8
xor eax, ebp
inc ecx
cmp ecx, esi
mov dword [edx], eax
jb 0x409aa4
pop ebp
pop ebx
mov eax, dword [edx]
not eax
pop esi
mov dword [edx], eax
mov al, 1
pop edi
ret

Function at 0x409ae0
Capabilities:
Get file size
Hash data with crc32
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41dc90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1018
call fcn.0040f540
mov eax, dword [0x4255e0]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], esp
push 0
push 0x8000027
push 3
push 0
xor eax, ebp
push 3
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
push 0x80000000
push eax
mov dword [ebp - 0x1028], edi
mov dword [edi], 0xffffffff
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x409b92
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.winErr_d
push 4
call fcn.00408d90
add esp, 0xc
xor al, al
jmp 0x409c96
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov ebx, eax
lea eax, [ebp - 0x101c]
push eax
push 0x1000
lea ecx, [ebp - 0x1014]
push ecx
push esi
mov dword [ebp - 0x1024], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x101c]
mov ecx, edx
test eax, eax
mov dword [ebp - 0x1020], ecx
je 0x409c83
test edx, edx
je 0x409c83
mov al, byte [ebp + 0x10]
test al, al
mov byte [ebp - 0x1015], 0
je 0x409c13
mov eax, ebx
sub eax, ecx
cmp eax, 4
ja 0x409c13
cmp edx, 4
jbe 0x409c02
mov eax, ecx
sub eax, ebx
add eax, 4
jmp 0x409c04
mov eax, edx
sub edx, eax
mov dword [ebp - 0x101c], edx
mov byte [ebp - 0x1015], 1
xor ecx, ecx
cmp ecx, edx
jae 0x409c44
mov eax, dword [edi]
movzx edi, byte [ebp + ecx - 0x1014]
mov ebx, eax
and ebx, 0xff
xor edi, ebx
mov ebx, dword [edi*4 + 0x4251c8]
mov edi, dword [ebp - 0x1028]
shr eax, 8
xor eax, ebx
mov dword [edi], eax
inc ecx
jmp 0x409c15
mov al, byte [ebp - 0x1015]
test al, al
jne 0x409c83
push 0
lea ecx, [ebp - 0x101c]
push ecx
push 0x1000
lea edx, [ebp - 0x1014]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x101c]
mov ecx, dword [ebp - 0x1020]
mov ebx, dword [ebp - 0x1024]
add ecx, edx
jmp 0x409bc7
test esi, esi
je 0x409c8e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi]
not eax
mov dword [edi], eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e9b5
mov esp, ebp
pop ebp
ret
Function at 0x409d00
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x409d1f
push 0x41e67c
push 0xa
call fcn.00408d90
add esp, 8
xor al, al
pop esi
pop ecx
ret
mov cl, byte [esi + 0x20]
test cl, cl
je 0x409d3a
push str.Const_Mode
push 3
call fcn.00408d90
add esp, 8
xor al, al
pop esi
pop ecx
ret
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x409d60
push str.point0
push 6
call fcn.00408d90
add esp, 8
xor al, al
pop esi
pop ecx
ret
mov edx, dword [esi + 0x24]
push 0
lea eax, [esp + 8]
push eax
push 0x28
lea ecx, [esi + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x409d87
cmp dword [esp + 4], 0x28
jne 0x409d87
mov al, 1
pop esi
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.winErr:__d
push 5
call fcn.00408d90
add esp, 0xc
xor al, al
pop esi
pop ecx
ret

Function at 0x409db0
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, ecx
mov ecx, dword [esp + 8]
cmp ecx, 0x8000
jae 0x409e71
mov eax, dword [edi + 0x24]
test eax, eax
je 0x409e71
mov dl, byte [edi + 0x20]
test dl, dl
je 0x409dea
push str.Const_Mode
push 3
call fcn.00408d90
add esp, 8
xor al, al
pop edi
ret 4
push esi
lea esi, [ecx + ecx*2]
mov ecx, dword [edi + 0x34]
push 0
shl esi, 2
push 0
add ecx, esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x409e2a
mov edx, dword [edi + 0x34]
add edx, esi
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.winErr_d__point_d
push 6
call fcn.00408d90
add esp, 0x10
pop esi
xor al, al
pop edi
ret 4
mov edx, dword [edi + 0x24]
push 0
lea eax, [esp + 0x10]
push eax
push 0xc
lea ecx, [esi + edi + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x409e54
cmp dword [esp + 0xc], 0xc
jne 0x409e54
pop esi
mov al, 1
pop edi
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.winErr:__d
push 5
call fcn.00408d90
add esp, 0xc
pop esi
xor al, al
pop edi
ret 4
push 0x41e67c
push 0xa
call fcn.00408d90
add esp, 8
xor al, al
pop edi
ret 4
Function at 0x40a100
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x4255e0]
xor eax, ebp
push ebx
push esi
mov dword [esp + 0x118], eax
mov eax, dword [ebp + 0x10]
test eax, eax
push edi
mov edi, ecx
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], eax
je 0x40a135
mov eax, dword [edi + 0x24]
test eax, eax
jne 0x40a149
push 0x41e67c
push 0xa
call fcn.00408d90
add esp, 8
jmp 0x40a227
mov cl, byte [edi + 0x20]
test cl, cl
je 0x40a164
push str.Const_Mode
push 3
call fcn.00408d90
add esp, 8
jmp 0x40a227
mov esi, dword [ebp + 8]
push 0
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40a194
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.winErr_d__point_d
push 6
call fcn.00408d90
add esp, 0x10
jmp 0x40a227
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
cmp ebx, esi
jbe 0x40a1a0
mov ebx, esi
mov ecx, dword [esp + 0x14]
mov edx, dword [edi + 0x24]
push 0
lea eax, [esp + 0x14]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40a211
cmp dword [esp + 0x10], ebx
jne 0x40a211
cmp ebx, esi
jae 0x40a1f8
mov edx, dword [esp + 0xc]
xor eax, eax
push eax
mov ecx, 0x40
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [edx + 0x24]
sub esi, ebx
push esi
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40a211
cmp esi, dword [esp + 0xc]
jne 0x40a211
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, ebp
call fcn.0040e9b5
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.winErr:__d
push 5
call fcn.00408d90
add esp, 0xc
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.0040e9b5
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40a950
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x60054]
test eax, eax
je 0x40aa37
mov ecx, dword [esi + 0x60058]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
mov ecx, dword [esp + 8]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jae 0x40aa37
mov eax, dword [esi + 0x24]
test eax, eax
je 0x40aa37
mov dl, byte [esi + 0x20]
test dl, dl
je 0x40a9ac
push str.Const_Mode
push 3
call fcn.00408d90
add esp, 8
xor al, al
pop esi
ret 4
push edi
lea edi, [ecx + ecx*2]
mov ecx, dword [esi + 0x38]
push 0
shl edi, 2
push 0
add ecx, edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40a9ec
mov edx, dword [esi + 0x38]
add edx, edi
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.winErr_d__point_d
push 6
call fcn.00408d90
add esp, 0x10
pop edi
xor al, al
pop esi
ret 4
mov eax, dword [esi + 0x60054]
mov edx, dword [esi + 0x24]
push 0
lea ecx, [esp + 0x10]
push ecx
push 0xc
add eax, edi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40aa1a
cmp dword [esp + 0xc], 0xc
jne 0x40aa1a
pop edi
mov al, 1
pop esi
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.winErr:__d
push 5
call fcn.00408d90
add esp, 0xc
pop edi
xor al, al
pop esi
ret 4
push 0x41e67c
push 0xa
call fcn.00408d90
add esp, 8
xor al, al
pop esi
ret 4
Function at 0x40d3f0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 0xc]
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 8], ecx
mov cl, byte [esp + 0x18]
test cl, cl
mov dword [esi + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esi], 0x41ee70
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 0xffffffff
mov dword [esi + 0x1c], 0
je 0x40d4ab
push eax
call fcn.0041094d
add esp, 4
test eax, eax
mov dword [esi + 0x1c], eax
je 0x40d4ab
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push 0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40d466
mov edx, dword [esi + 0xc]
push edx
push 0x41ee68
push 6
jmp 0x40d49a
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
push 0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esi + 8]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40d48c
mov edx, dword [esp + 0x18]
cmp edx, dword [esi + 0x14]
je 0x40d4ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WinErr_d
push 4
call fcn.00408d90
mov eax, dword [esi + 0x1c]
push eax
call fcn.00410948
add esp, 0x10
mov eax, esi
pop esi
ret 0x14

Function at 0x40e3a0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov cl, byte [esi]
test cl, cl
mov eax, 0x7fed7fed
mov edx, 0xeeeeeeee
je 0x40e3e4
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
shl edi, 8
nop
add eax, edx
imul edx, edx, 0x21
movsx ecx, cl
lea ebx, [edi + ecx]
mov ebp, dword [ebx*4 + 0x426cb8]
inc esi
add edx, ecx
mov cl, byte [esi]
xor eax, ebp
test cl, cl
lea edx, [edx + eax + 3]
jne 0x40e3c0
pop edi
pop ebp
pop ebx
pop esi
ret

Function at 0x40f0c3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x40f0e0
call fcn.0040fea0
mov dword [eax], 0x16
xor eax, eax
jmp 0x40f14a
push esi
push 0x8c
push 1
call fcn.0040ffde
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40f135
push esi
call fcn.00412e25
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x40f113
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x40f02e
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x40f149
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0040fe2f
test ebx, ebx
pop ecx
je 0x40f147
push ebx
call fcn.0040feb2
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40fc5a
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x41ef98
call fcn.0041145c
mov edi, 0x94
mov eax, edi
call fcn.0040f540
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x427e34], ecx
mov eax, dword [esi + 4]
mov dword [0x427e40], eax
mov edx, dword [esi + 8]
mov dword [0x427e44], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x427e38], esi
cmp ecx, 2
je 0x40fcba
or esi, 0x8000
mov dword [0x427e38], esi
shl eax, 8
add eax, edx
mov dword [0x427e3c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40fcf5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40fcf5
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40fd0d
cmp eax, 0x20b
je 0x40fcfa
mov dword [ebp - 0x1c], esi
jmp 0x40fd21
cmp dword [ecx + 0x84], 0xe
jbe 0x40fcf5
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40fd1b
cmp dword [ecx + 0x74], 0xe
jbe 0x40fcf5
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00414a4b
pop ecx
test eax, eax
jne 0x40fd35
push 0x1c
call fcn.0040fc36
pop ecx
call fcn.0041301f
test eax, eax
jne 0x40fd46
push 0x10
call fcn.0040fc36
pop ecx
call fcn.004149a9
mov dword [ebp - 4], esi
call fcn.00411acd
test eax, eax
jge 0x40fd5f
push 0x1b
call fcn.0040fc11
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4295e4], eax
call fcn.00414887
mov dword [0x427cc4], eax
call fcn.004147e5
test eax, eax
jge 0x40fd85
push 8
call fcn.0040fc11
pop ecx
call fcn.004145b2
test eax, eax
jge 0x40fd96
push 9
call fcn.0040fc11
pop ecx
push 1
call fcn.00413168
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40fdac
push eax
call fcn.0040fc11
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00414555
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40fdcd
movzx eax, word [ebp - 0x40]
jmp 0x40fdd0
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401f00
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40fdee
push edi
call fcn.00413295
call fcn.004132b7
jmp 0x40fe20
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00411497
ret