joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4019b0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x412949
mov eax, dword fs:[0]
push eax
sub esp, 0x7d8
mov eax, dword [0x41c404]
xor eax, esp
mov dword [esp + 0x7d4], eax
push ebx
push esi
push edi
mov eax, dword [0x41c404]
xor eax, esp
push eax
lea eax, [esp + 0x7e8]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x7f8]
mov edi, dword [esp + 0x800]
mov esi, ecx
mov dword [esp + 0x10], 0
push 0x7d0
lea eax, [esp + 0x18]
push 0
push eax
mov dword [esp + 0x7fc], 0
call sub.MSVCR90.dll_memset
mov eax, dword [esi + 0x528]
push 0
push eax
call dword [sym.imp.MSVCR90.dll__access]
add esp, 0x14
test eax, eax
jne 0x401a59
mov ecx, dword [esi + 0x528]
mov eax, dword [esp + 0x7fc]
push ecx
push 0x7c6
lea edx, [esp + 0x1c]
push edx
push 0x415c48
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call dword [sym.imp.mfc90.dll_Ordinal_310]
lea ecx, [esp + 0x7fc]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, ebx
mov ecx, dword [esp + 0x7e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x7d4]
xor ecx, esp
call fcn.00411bf6
add esp, 0x7e4
ret 0xc

Function at 0x4058a0
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x4132f2
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x41c404]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2c]
push 0x415c48
mov ecx, esi
mov ebx, 1
call dword [sym.imp.mfc90.dll_Ordinal_820]
mov edi, dword [esp + 0x28]
push 0
push edi
call dword [sym.imp.MSVCR90.dll__access]
add esp, 8
cmp eax, 0xffffffff
jne 0x405906
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
push 0
push 0x80
push 3
push 0
push 0
push connect
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4058f1
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x40593b
xor ebx, ebx
jmp 0x4059d7
test eax, eax
jne 0x405984
push eax
push 0x4160d0
push esi
call dword [sym.imp.mfc90.dll_Ordinal_2539]
mov eax, dword [esi]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004057c0
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
mov dword [esp + 0x24], 0
call dword [sym.imp.mfc90.dll_Ordinal_817]
push str._KB
mov ecx, esi
call dword [sym.imp.mfc90.dll_Ordinal_945]
lea ecx, [esp + 0x10]
jmp 0x4059d1
add eax, 0x200
shr eax, 0xa
test eax, eax
jne 0x405992
mov eax, ebx
push eax
push 0x4160d0
push esi
call dword [sym.imp.mfc90.dll_Ordinal_2539]
mov eax, dword [esi]
push eax
lea edx, [esp + 0x24]
push edx
call fcn.004057c0
add esp, 0x14
lea eax, [esp + 0x14]
push eax
mov ecx, esi
mov dword [esp + 0x24], ebx
call dword [sym.imp.mfc90.dll_Ordinal_817]
push str._KB
mov ecx, esi
call dword [sym.imp.mfc90.dll_Ordinal_945]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_601]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x405b40
Capabilities:
Read .ini file

Disassembly:
mov ecx, dword [ecx + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
ret 0x14

Function at 0x405b70
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x41337b
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x41c404]
xor eax, esp
mov dword [esp + 0x100], eax
push esi
push edi
mov eax, dword [0x41c404]
xor eax, esp
push eax
lea eax, [esp + 0x110]
mov dword fs:[0], eax
mov edi, dword [esp + 0x12c]
mov ecx, dword [ecx + 4]
mov edx, dword [esp + 0x124]
push ecx
mov ecx, dword [esp + 0x12c]
push 0x100
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x12c]
push ecx
push edx
push eax
mov dword [esp + 0x130], 2
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0xc]
push ecx
mov esi, eax
push 0x4160e0
push edi
mov byte [esp + esi + 0x18], 0
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0xc
lea ecx, [esp + 0x120]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x124]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x128]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, esi
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.00411bf6
add esp, 0x110
ret 0x10

Function at 0x405c90
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4133b9
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41c404]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 8]
push eax
call sub.mfc90.dll_Ordinal_265
mov ebx, eax
mov eax, dword [esi + 8]
mov esi, dword [esi + 4]
add esp, 4
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov edi, dword [esp + 0x28]
push 0xffffffffffffffff
mov ebp, eax
push 0
mov ecx, edi
mov dword [esp + 0x1c], ebp
call sub.mfc90.dll_Ordinal_6494
mov esi, ebx
add ebp, ebx
lea ecx, [ecx]
push esi
lea ecx, [esp + 0x2c]
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov eax, dword [edi + 8]
lea ecx, [esp + 0x28]
push ecx
push eax
mov ecx, edi
mov dword [esp + 0x28], 0
call sub.mfc90.dll_Ordinal_6153
mov edx, dword [esp + 0x28]
mov eax, dword [edx - 0xc]
lea ecx, [esp + 0x28]
lea esi, [esi + eax + 1]
mov dword [esp + 0x20], 0xffffffff
call dword [sym.imp.mfc90.dll_Ordinal_601]
cmp esi, ebp
jb 0x405cf0
push ebx
call sub.mfc90.dll_Ordinal_266
mov eax, dword [esp + 0x18]
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x408b90
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4138c7
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x41c404]
xor eax, esp
mov dword [esp + 0x218], eax
push esi
mov eax, dword [0x41c404]
xor eax, esp
push eax
lea eax, [esp + 0x224]
mov dword fs:[0], eax
mov esi, dword [esp + 0x234]
mov dword [esp + 0x1c], esi
mov dword [esp + 8], 0
mov ecx, dword [ecx + 0x210]
push str.User.txt
push ecx
push str._s_s
lea eax, [esp + 0x2c]
push 0x200
push eax
mov dword [esp + 0x240], 1
call dword [sym.imp.MSVCR90.dll_sprintf_s]
lea ecx, [esp + 0x34]
push 0
push ecx
call dword [sym.imp.MSVCR90.dll__access]
add esp, 0x1c
cmp eax, 0xffffffff
je 0x408c27
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x1001
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
call sub.mfc90.dll_Ordinal_403
mov eax, dword [esp + 0x238]
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x234], 2
call sub.mfc90.dll_Ordinal_6793
lea ecx, [esp + 0xc]
call sub.mfc90.dll_Ordinal_2525
lea ecx, [esp + 0xc]
call sub.mfc90.dll_Ordinal_1555
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call dword [sym.imp.mfc90.dll_Ordinal_310]
lea ecx, [esp + 0xc]
mov dword [esp + 8], 1
mov byte [esp + 0x22c], 1
call sub.mfc90.dll_Ordinal_663
lea ecx, [esp + 0x238]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, esi
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00411bf6
add esp, 0x228
ret 8
Function at 0x409550
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x413a91
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
mov eax, dword [0x41c404]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
push 0x21
xor ebx, ebx
push ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [esi + 0x148]
push 0x1036
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
add esi, 0x128
push 1
mov ecx, esi
call sub.mfc90.dll_Ordinal_2356
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_316]
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], ebx
call dword [sym.imp.mfc90.dll_Ordinal_316]
push 0x66
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call dword [sym.imp.mfc90.dll_Ordinal_4431]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x4095db
lea eax, [esp + 0x10]
jmp 0x4095f8
push str.File_Name
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov ebx, 1
mov byte [esp + 0x2c], 2
mov dword [esp + 0x14], ebx
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_817]
mov dword [esp + 0x2c], 1
test bl, 1
je 0x409621
and ebx, 0xfffffffe
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], ebx
call dword [sym.imp.mfc90.dll_Ordinal_601]
push 0x68
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_4431]
mov edx, dword [esp + 0xc]
cmp dword [edx - 0xc], 0
je 0x40963d
lea eax, [esp + 0xc]
jmp 0x409658
push str.File_Size
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_310]
or ebx, 2
mov byte [esp + 0x2c], 3
mov dword [esp + 0x14], ebx
push eax
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_817]
mov dword [esp + 0x2c], 1
test bl, 2
je 0x40967a
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_601]
push str._300_
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.004025a0
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x44], 4
call fcn.00402510
push str._85_
push eax
lea ecx, [esp + 0x38]
push ecx
mov byte [esp + 0x50], 5
call fcn.004025a0
add esp, 0x24
push eax
mov ecx, esi
mov byte [esp + 0x30], 6
call fcn.004070a0
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], 1
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, esi
call fcn.00407780
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x24
ret
Function at 0x40a3c0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x413d95
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x41c404]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov dword [esi], vtable.CUserManaualInput.0
mov dword [esp + 0x20], 0
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90.dll_Ordinal_316]
push str.User.txt
lea edi, [esi + 0x210]
lea eax, [esp + 0x14]
push edi
push eax
mov byte [esp + 0x2c], 0xd
call fcn.004025a0
add esp, 0xc
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0xe
call dword [sym.imp.mfc90.dll_Ordinal_817]
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [esp + 0xc]
push 0
push ecx
call dword [sym.imp.MSVCR90.dll__access]
add esp, 8
test eax, eax
jne 0x40a45a
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, edi
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esi + 0x204]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esi + 0x1f0]
mov byte [esp + 0x20], 9
call sub.mfc90.dll_Ordinal_781
lea ecx, [esi + 0x1ec]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esi + 0x1e8]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esi + 0x1e4]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esi + 0x128]
mov byte [esp + 0x20], 5
call fcn.00407010
lea ecx, [esi + 0x124]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esi + 0x114]
mov byte [esp + 0x20], 3
call fcn.00405a00
lea ecx, [esi + 0xa4]
mov byte [esp + 0x20], 2
call sub.mfc90.dll_Ordinal_789
lea ecx, [esi + 0x90]
mov byte [esp + 0x20], 1
call sub.mfc90.dll_Ordinal_781
lea ecx, [esi + 0x74]
mov byte [esp + 0x20], 0
call fcn.00404d20
mov ecx, esi
mov dword [esp + 0x20], 0xffffffff
call sub.mfc90.dll_Ordinal_639
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret
Function at 0x40b450
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x413b19
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x41c404]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x90], 0
jne 0x40b52a
call sub.mfc90.dll_Ordinal_1137
mov edi, dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f89
push 0
call edi
mov dword [ebx + 0x90], eax
test eax, eax
jne 0x40b52a
push 0x415c48
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_310]
push 0x104
push 0x104
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0
call dword [sym.imp.mfc90.dll_Ordinal_2691]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_5835]
push str.winhlp32.exe
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_945]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40b520
push 0x6a
push esi
call edi
test eax, eax
je 0x40b519
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [ebx + 0x90], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x40b540
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x41c404]
xor eax, esp
mov dword [esp + 0x10c], eax
mov ecx, dword [esp + 0x118]
mov eax, dword [esp + 0x114]
push esi
mov esi, dword [esp + 0x120]
push edi
lea edx, [esp + 8]
push edx
push 1
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test edi, edi
jne 0x40b5c7
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push edi
push edx
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [esp + 0x10]
mov edx, esi
mov ecx, eax
sub edx, ecx
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40b5b0
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [esp + 0x114]
pop edi
pop esi
xor ecx, esp
call fcn.00411bf6
add esp, 0x110
ret
Function at 0x40b630
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x20c
mov eax, dword [0x41c404]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
mov ebx, dword [esp + 0x214]
test ebx, ebx
je 0x40b7c1
cmp byte [ebx], 0
je 0x40b7c1
cmp dword [esp + 0x21c], 0
mov eax, str.open
je 0x40b671
mov eax, 0x416f20
push ebp
mov ebp, dword [esp + 0x21c]
push esi
push ebp
push 0
push 0
push ebx
push eax
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40b7a7
lea eax, [esp + 0xc]
push eax
push str..htm
push connect
call fcn.0040b540
add esp, 0xc
test eax, eax
jne 0x40b7a7
lea eax, [esp + 0xc]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40b6b8
mov ecx, dword [str._shellopencommand]
mov edx, dword [0x416f08]
mov dword [eax], ecx
mov ecx, dword [0x416f0c]
mov dword [eax + 4], edx
mov edx, dword [0x416f10]
mov dword [eax + 8], ecx
mov ecx, dword [0x416f14]
mov dword [eax + 0xc], edx
lea edx, [esp + 0xc]
mov dword [eax + 0x10], ecx
push edx
mov eax, edx
push eax
push connect
call fcn.0040b540
add esp, 0xc
test eax, eax
jne 0x40b7a7
mov esi, dword [sym.imp.MSVCR90.dll__mbsstr]
lea ecx, [esp + 0xc]
push str.__1_
push ecx
call esi
add esp, 8
test eax, eax
jne 0x40b74f
lea edx, [esp + 0xc]
push 0x416ef8
push edx
call esi
add esp, 8
test eax, eax
jne 0x40b74f
lea eax, [esp + 0xc]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b740
sub eax, edx
lea eax, [esp + eax + 0xb]
jmp 0x40b752
mov byte [eax], 0
push edi
mov edi, eax
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40b756
mov cx, word [0x416a94]
mov word [edi], cx
mov ecx, ebx
mov esi, ebx
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40b770
sub ecx, esi
mov edx, ecx
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40b780
mov ecx, edx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
lea edx, [esp + 0x14]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00411bf6
add esp, 0x20c
ret
mov ecx, dword [esp + 0x20c]
pop ebx
xor ecx, esp
mov eax, 0x24
call fcn.00411bf6
add esp, 0x20c
ret
Function at 0x40d1d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x40d1db
xor eax, eax
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
push esi
not eax
cmp edx, 8
jb 0x40d2b9
mov esi, edx
shr esi, 3
push edi
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x417190]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x417190]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x417190]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x417190]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x417190]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x417190]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x417190]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x417190]
inc ecx
sub edx, 8
sub esi, 1
jne 0x40d1f5
pop edi
test edx, edx
je 0x40d2db
lea ecx, [ecx]
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x417190]
inc ecx
sub edx, 1
jne 0x40d2c0
not eax
pop esi
ret
Function at 0x40d450
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x48
push esi
mov esi, dword [esp + 0x50]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x40d46e
mov eax, 0x1000000
pop esi
add esp, 0x48
ret
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x40d488
mov eax, 0x200
pop esi
add esp, 0x48
ret
mov eax, dword [esp + 0x18]
push ebp
mov edx, eax
xor ebp, ebp
and edx, 1
je 0x40d49b
mov ebp, 1
test al, 2
je 0x40d4a2
or ebp, 2
test al, 4
je 0x40d4a9
or ebp, 4
mov ecx, eax
and ecx, 0x10
je 0x40d4b3
or ebp, 0x10
test al, 0x20
je 0x40d4ba
or ebp, 0x20
test ecx, ecx
je 0x40d4c6
or ebp, 0x40000000
jmp 0x40d4cc
or ebp, 0x80000000
or ebp, 0x1000000
test edx, edx
jne 0x40d4dc
or ebp, 0x800000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0xc], eax
cmp eax, 0x28
jbe 0x40d58e
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 2
lea edx, [esp + 0x1c]
push edx
push esi
call ebx
push 0
push 0
push 0x24
push esi
call edi
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x28]
push ecx
push esi
call ebx
mov edx, 0x54ad
cmp word [esp + 0x10], dx
jne 0x40d58c
mov eax, dword [esp + 0x1c]
lea ecx, [eax + 0x34]
cmp dword [esp + 0x14], ecx
jbe 0x40d58c
push 0
push 0
push eax
push esi
call edi
push 0
lea edx, [esp + 0x1c]
push edx
push 4
lea eax, [esp + 0x2c]
push eax
push esi
call ebx
mov eax, dword [esp + 0x20]
cmp eax, 0x5a4d
je 0x40d586
cmp eax, 0x454e
je 0x40d586
cmp eax, 0x454c
je 0x40d586
cmp eax, 0x4550
jne 0x40d58c
or ebp, 0x400000
pop edi
pop ebx
mov eax, dword [esp + 0x58]
test eax, eax
je 0x40d598
mov dword [eax], ebp
mov eax, dword [esp + 0x5c]
pop ebp
test eax, eax
je 0x40d5a7
mov ecx, dword [esp + 8]
mov dword [eax], ecx
mov esi, dword [esp + 0x5c]
test esi, esi
je 0x40d5f0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push edx
push eax
call fcn.0040d3a0
mov ecx, dword [esp + 0x38]
mov dword [esi + 4], edx
mov edx, dword [esp + 0x34]
push ecx
push edx
mov dword [esi], eax
call fcn.0040d3a0
mov ecx, dword [esp + 0x2c]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x30]
push eax
push ecx
mov dword [esi + 0xc], edx
call fcn.0040d3a0
add esp, 0x18
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov esi, dword [esp + 0x60]
test esi, esi
je 0x40d61e
lea edx, [esp + 8]
push edx
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
movzx edx, word [esp + 4]
movzx eax, word [esp + 8]
shl edx, 0x10
or edx, eax
mov dword [esi], edx
xor eax, eax
pop esi
add esp, 0x48
ret
Function at 0x40d7a0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x40d7e3
mov eax, dword [esi + 0x1c]
push edi
mov edi, dword [esp + 0x10]
lea edx, [eax + edi]
cmp edx, dword [esi + 0x20]
jb 0x40d7c8
pop edi
mov dword [esi + 0xc], 0x30000
xor eax, eax
pop esi
ret 8
mov edx, dword [esp + 0xc]
push edi
push edx
add eax, ecx
push eax
call sub.MSVCR90.dll_memcpy
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
pop edi
pop esi
ret 8
mov eax, dword [esi]
test eax, eax
je 0x40d809
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0xc]
pop esi
ret 8
mov dword [esi + 0xc], 0x1000000
xor eax, eax
pop esi
ret 8

Function at 0x40db10
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x64]
push edi
test ecx, ecx
je 0x40db65
mov eax, dword [esi + 0x6c]
mov edi, dword [esi + 0x68]
cmp eax, edi
jae 0x40dbaf
mov edx, dword [esp + 0x14]
sub edi, eax
cmp edi, edx
jbe 0x40db36
mov edi, edx
mov ebx, dword [esp + 0x10]
push edi
add eax, ecx
push eax
push edi
push ebx
call dword [sym.imp.MSVCR90.dll_memcpy_s]
mov eax, dword [esi + 0x58]
add dword [esi + 0x6c], edi
add dword [esi + 0x54], edi
push edi
push ebx
push eax
call fcn.0040d1d0
add esp, 0x1c
mov dword [esi + 0x58], eax
mov eax, edi
pop edi
pop esi
pop ebx
ret 8
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x40dba8
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x18]
push ecx
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40dbaf
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0x58]
add dword [esi + 0x54], edi
push edi
push ebx
push eax
call fcn.0040d1d0
add esp, 0xc
mov dword [esi + 0x58], eax
mov eax, edi
pop edi
pop esi
pop ebx
ret 8
mov dword [esi + 0xc], 0x1000000
pop edi
pop esi
xor eax, eax
pop ebx
ret 8