joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409931
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x417344]
jne 0x40993b
repz ret
jmp fcn.0040e3dc

Function at 0x41260c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417344]
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.0040c1d2
and dword [ebp - 0x14], 0
cmp dword [0x42f8ec], 0
mov dword [ebp - 0x18], eax
jne 0x4126bf
push 0x403754
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x412767
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403748
push ebx
call edi
test eax, eax
je 0x412767
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403738
push ebx
mov dword [0x42f8ec], eax
call edi
push eax
call esi
push 0x403724
push ebx
mov dword [0x42f8f0], eax
call edi
push eax
call esi
push 0x403708
push ebx
mov dword [0x42f8f4], eax
call edi
push eax
call esi
mov dword [0x42f8fc], eax
test eax, eax
je 0x4126bf
push 0x4036f0
push ebx
call edi
push eax
call esi
mov dword [0x42f8f8], eax
mov eax, dword [0x42f8f8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x412718
cmp dword [0x42f8fc], ecx
je 0x412718
push eax
call esi
push dword [0x42f8fc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x412718
test ebx, ebx
je 0x412718
call edi
test eax, eax
je 0x41270f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41270f
test byte [ebp - 8], 1
jne 0x412718
or dword [ebp + 0x10], 0x200000
jmp 0x41274b
mov eax, dword [0x42f8f0]
cmp eax, dword [ebp - 0x18]
je 0x41274b
push eax
call esi
test eax, eax
je 0x41274b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41274b
mov eax, dword [0x42f8f4]
cmp eax, dword [ebp - 0x18]
je 0x41274b
push eax
call esi
test eax, eax
je 0x41274b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42f8ec]
call esi
test eax, eax
je 0x412767
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x412769
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409931
leave
ret
Function at 0x4145a0
Capabilities:
Delete directory
Delete file
Get disk information
Read .ini file

Disassembly:
mov eax, 0x1400
call fcn.00413be0
cmp dword [0x7cfa44], 0x37
jne 0x414623
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x403f58
call edi
push 0
lea eax, [esp + 0x808]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x40401c
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetTapePosition]
push 0x404048
call edi
push 0
lea edx, [esp + 0xc08]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
pop edi
mov eax, dword [0x7d0628]
mov edx, dword [0x7ccaa4]
mov cl, byte [eax + esi + 0x38d6]
mov byte [edx + esi], cl
add esp, 0x1400
ret
Function at 0x4063fe
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x406422
xor eax, eax
test eax, eax
je 0x406434
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406434
xor ecx, ecx
jmp 0x406437
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

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

Disassembly:
cmp dword [0x4232c4], 0
push esi
jne 0x40655a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406534
mov dword [ecx*4 + 0x4232c0], eax
inc ecx
cmp ecx, 0x100
jl 0x40652f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40658b
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4232c0]
xor eax, esi
inc ecx
dec edx
jne 0x40656d
pop edi
not eax
pop esi
ret 0xc

Function at 0x408000
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
add esp, 0xfffffffc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax + 0x38]
call sub.msvcrt.dll__read
leave
ret

Function at 0x40b6d4
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x40b6f9
mov dword [0x414164], eax
add esp, 0xfffffff8
push 0x40b698
push eax
call fcn.0040ff2c
jmp 0x40b6fe
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x40b714
mov dword [0x41331c], 0x40b7f8
jmp 0x40b71e
mov dword [0x41331c], 0x40b7ac
leave
ret
Function at 0x4179a1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x10c
mov eax, 0x4510b2
call fcn.00429003
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x68], eax
call fcn.004178d4
mov ebx, eax
test ebx, ebx
je 0x417a8e
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
push ebx
push dword [esi + 0x38]
call edi
test eax, eax
jne 0x417a44
push str.cannot_load_resource
lea ecx, [ebp - 0x28]
call fcn.00402e5e
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
call fcn.004178f2
push eax
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 5
call fcn.0040d183
push str.System_error
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x80]
call fcn.00417663
mov esi, eax
push 0x46
push str.Resource::getPtr
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x74]
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_sans_NAS_jdk8u421_1068_install_src_windows_common_Resources.cpp
jmp 0x417af8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp dword [esi + 0x34], 6
mov edi, eax
jne 0x417a75
mov edx, dword [esi + 0x18]
mov ecx, edi
and edx, 0xf
jbe 0x417a6b
movzx eax, word [ecx]
lea ecx, [ecx + eax*2]
add ecx, 2
sub edx, 1
jne 0x417a5d
movzx eax, word [ecx]
lea edi, [ecx + 2]
add eax, eax
jmp 0x417a7f
push ebx
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 0x68]
mov dword [ecx], eax
mov eax, edi
call fcn.00428fb2
ret 4
push str.cannot_find_resource
lea ecx, [ebp - 0x28]
call fcn.00402e5e
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
call fcn.004178f2
push eax
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 1
call fcn.0040d183
push str.System_error
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [sym.imp.KERNEL32.dll_FindResourceA]
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x74]
call fcn.00417663
mov esi, eax
push 0x41
push str.Resource::getPtr
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x80]
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_sans_NAS_jdk8u421_1068_install_src_windows_common_Resources.cpp
call fcn.00403167
push eax
lea eax, [ebp - 0x4c]
push esi
push eax
call fcn.00406c57
add esp, 0xc
lea eax, [ebp - 0x4c]
push 0x46af98
push eax
call fcn.0042be4c
int3
Function at 0x42183f
Capabilities:
Read file on windows

Disassembly:
push 0x2c
mov eax, 0x452aee
call fcn.00428fd0
push 0x459890
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
xor ebx, ebx
push eax
call fcn.004210a8
add esp, 0xc
mov cl, byte [eax + 4]
mov edi, dword [eax]
mov byte [ebp - 0xd], cl
mov byte [eax + 4], bl
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x14], cl
xor esi, esi
inc esi
mov dword [ebp - 4], esi
cmp byte [ebp - 0x1c], bl
je 0x421889
push dword [ebp - 0x20]
mov byte [ebp - 0x1c], bl
call fcn.0044d83a
pop ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0xe]
mov byte [ebp - 4], 2
push eax
push 0x100001
lea ecx, [ebp - 0x24]
call fcn.00406e0d
push edi
push 0x100000
push esi
mov esi, dword [ebp - 0x24]
push esi
call fcn.00431b97
mov ebx, eax
add esp, 0x10
cmp ebx, 0x100000
ja 0x42195a
push edi
call fcn.00439581
pop ecx
test eax, eax
je 0x4218dd
push 0x133
jmp 0x42195f
push edi
call fcn.00439555
pop ecx
test eax, eax
jne 0x4218ef
push 0x13b
jmp 0x42195f
push ebx
push esi
call fcn.00421f75
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xe]
push eax
lea eax, [esi + ebx]
push eax
push esi
call fcn.0040898b
test esi, esi
je 0x42193d
mov eax, dword [ebp - 0x1c]
sub eax, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], eax
cmp eax, 0x1000
jb 0x421934
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00403de4
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
pop ecx
pop ecx
push eax
push esi
call fcn.00428d2c
pop ecx
pop ecx
cmp byte [ebp - 0xd], 0
mov dword [ebp - 4], 3
je 0x421951
push edi
call fcn.0044d83a
pop ecx
mov eax, dword [ebp + 8]
call fcn.00428f9e
ret
push 0xc8
lea ecx, [ebp - 0x38]
call fcn.00418f23
push 0x46e188
lea eax, [ebp - 0x38]
push eax
call fcn.0042be4c
int3
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x40856d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push ebx
push ebp
push esi
push edi
mov esi, ecx
push sub.MFC42.DLL_CString::CString
push sub.MFC42.DLL_CString::CString_2
push 5
lea eax, [esi + 0x1f38]
push 4
push eax
mov dword [esp + 0x38], esi
call fcn.00407a64
lea edi, [esi + 0x1f4c]
mov dword [esp + 0x230], 0
mov ecx, edi
call sub.MFC42.DLL_CString::CString_2
lea ebx, [esi + 0x1f50]
mov byte [esp + 0x230], 1
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x128]
mov byte [esp + 0x230], 2
push ecx
push 0xff
mov dword [esi], 0x409704
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esp + 0x1e]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x1a]
and eax, 0xffff
push eax
mov eax, dword [esp + 0x1c]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x18]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x1e]
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push eax
mov eax, dword [esp + 0x26]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
lea ecx, [esp + 0x44]
push str._02d_02d_04d__02d_02d_02d_03d.BMP
push ecx
call ebp
add esp, 0x24
lea edx, [esp + 0x128]
mov ecx, edi
push edx
call sub.MFC42.DLL_CString::operator
lea eax, [esp + 0x28]
mov ecx, edi
push eax
call fcn.004076ca
mov ecx, dword [esp + 0x1e]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x1a]
and ecx, 0xffff
push ecx
mov ecx, dword [esp + 0x1c]
and edx, 0xffff
and eax, 0xffff
push edx
mov edx, dword [esp + 0x18]
and ecx, 0xffff
push eax
push ecx
mov eax, dword [esp + 0x22]
mov ecx, dword [esp + 0x26]
and edx, 0xffff
and eax, 0xffff
push edx
and ecx, 0xffff
push eax
push ecx
lea edx, [esp + 0x44]
push str._02d_02d_04d__02d_02d_02d_03d.JPG
push edx
call ebp
add esp, 0x24
lea eax, [esp + 0x128]
mov ecx, ebx
push eax
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebx
call fcn.004076ca
xor edi, edi
push edi
push edi
push 1
push edi
mov dword [esi + 0x1f58], edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0x1f2c
mov dword [esi + 0x1f54], eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x240]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x23c]
add esp, 4
cmp eax, edi
mov dword [esi + 0x1f5c], eax
mov dword [esi + 0x1f60], ecx
mov dword [esi + 0x1f64], 0x3c
mov dword [esi + 8], edi
je 0x4011e3
push ecx
mov ecx, esi
call fcn.00403360
mov ecx, dword [esp + 0x228]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x224
ret 8
Function at 0x401220
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4085b4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], 0x409704
mov ecx, dword [esi + 8]
mov dword [esp + 0x1c], 2
test ecx, ecx
je 0x401262
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 8], 0
mov eax, dword [esi + 0x1f4c]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edi, [esi + 0x1f4c]
push eax
call ebx
mov eax, dword [esi + 0x1f50]
lea ebp, [esi + 0x1f50]
push eax
call ebx
mov ecx, ebp
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
mov ecx, edi
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
push sub.MFC42.DLL_CString::CString
push 5
add esi, 0x1f38
push 4
push esi
mov dword [esp + 0x2c], 0xffffffff
call fcn.00407970
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x401610
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3c
push ebx
push esi
mov esi, dword [esp + 0x48]
push edi
push 0
push 0
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea eax, [esp + 0x24]
push 0xe
push eax
call edi
push esi
push 1
lea ecx, [esp + 0x44]
push 0x28
push ecx
call edi
mov ecx, dword [esp + 0x5a]
mov ebx, dword [esp + 0x50]
and ecx, 0xffff
add esp, 0x2c
imul ecx, ebx
lea eax, [ecx + 0x1f]
and al, 0xe0
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, ecx
cdq
and edx, 7
add eax, edx
lea edx, [ebx + ebx*2]
sar edi, 3
sar eax, 3
sub edi, eax
mov eax, dword [esp + 0x28]
dec eax
mov dword [esp + 0xc], edx
test eax, eax
jl 0x4016d1
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x50]
push ebp
lea ebx, [ecx*4]
sub ebx, ecx
imul ecx, eax
lea edx, [edx + ecx*2]
neg ebx
add ecx, edx
inc eax
mov ebp, ecx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x10]
push esi
push 1
push eax
push ebp
call dword [sym.imp.MSVCRT.dll_fread]
push 1
push edi
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [esp + 0x6c]
add esp, 0x1c
add ebp, ebx
dec eax
mov dword [esp + 0x50], eax
jne 0x4016a7
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x3c
ret 0x1c

Function at 0x401aa0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
mov al, 0x46
mov edx, 0x100
mov byte [esp + 5], al
mov byte [esp + 7], al
xor al, al
mov word [esp], 0xe0ff
mov byte [esp + 8], al
mov byte [esp + 0xb], al
mov byte [esp + 0x10], al
mov byte [esp + 0x11], al
mov eax, dword [ecx + 4]
lea ecx, [esp]
push eax
push 1
push 0x12
push ecx
mov word [esp + 0x12], 0x1000
mov byte [esp + 0x14], 0x4a
mov byte [esp + 0x16], 0x49
mov word [esp + 0x19], 0x101
mov word [esp + 0x1c], dx
mov word [esp + 0x1e], dx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x24
ret

Function at 0x401b10
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x48
push ebx
push ebp
mov ebx, ecx
push esi
mov ebp, dword [sym.imp.MSVCRT.dll_fwrite]
push edi
mov eax, dword [ebx + 4]
lea esi, [ebx + 0x101c]
mov ecx, 0x10
lea edi, [esp + 0x15]
mov word [esp + 0x10], 0xdbff
mov word [esp + 0x12], 0x4300
mov byte [esp + 0x14], 0
push eax
rep movsd dword es:[edi], dword [esi]
push 1
lea ecx, [esp + 0x18]
push 0x45
push ecx
call ebp
mov edx, dword [ebx + 4]
lea esi, [ebx + 0x105c]
push edx
mov ecx, 0x10
lea edi, [esp + 0x29]
push 1
lea eax, [esp + 0x28]
mov byte [esp + 0x2c], 1
push 0x45
push eax
rep movsd dword es:[edi], dword [esi]
call ebp
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
Function at 0x401b90
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
mov ax, word [ecx + 0x14]
push ebx
mov edx, eax
mov word [esp + 4], 0xc0ff
and edx, 0xffff
mov word [esp + 6], 0x1100
and edx, 0x800000ff
mov byte [esp + 8], 8
jns 0x401bc3
dec edx
or edx, 0xffffff00
inc edx
xor ebx, ebx
movzx dx, dl
mov bl, ah
xor ax, ax
shl edx, 8
mov al, bl
add edx, eax
mov ax, word [ecx + 0x10]
mov word [esp + 9], dx
mov edx, eax
and edx, 0xffff
and edx, 0x800000ff
jns 0x401bf6
dec edx
or edx, 0xffffff00
inc edx
xor ebx, ebx
mov ecx, dword [ecx + 4]
movzx dx, dl
mov bl, ah
xor ax, ax
shl edx, 8
mov al, bl
push ecx
add edx, eax
mov al, 3
mov word [esp + 0xf], dx
mov edx, 1
mov byte [esp + 0x12], dl
mov byte [esp + 0x17], dl
mov byte [esp + 0x1a], dl
push edx
mov byte [esp + 0x15], al
mov byte [esp + 0x1c], al
lea edx, [esp + 0xc]
mov al, 0x11
push 0x13
push edx
mov byte [esp + 0x20], 0
mov byte [esp + 0x21], 2
mov byte [esp + 0x22], al
mov byte [esp + 0x25], al
mov byte [esp + 0x1f], al
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
pop ebx
add esp, 0x14
ret
Function at 0x401c60
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
mov edx, dword [0x409559]
push ebx
mov eax, dword [0x409551]
push esi
mov esi, ecx
push edi
mov ecx, dword [0x409555]
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
mov dword [esp + 0x19], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x1d], edx
push ecx
mov dword [esp + 0x19], eax
mov eax, dword [0x40955d]
push 1
lea edx, [esp + 0x18]
push 0x15
push edx
mov word [esp + 0x20], 0xc4ff
mov word [esp + 0x22], 0x1f00
mov byte [esp + 0x24], 0
mov dword [esp + 0x31], eax
call edi
add esp, 0x10
xor ebx, ebx
mov ecx, dword [esi + 4]
mov al, byte [ebx + 0x409564]
push ecx
push 1
lea edx, [esp + 0x17]
push 1
push edx
mov byte [esp + 0x1f], al
call edi
add esp, 0x10
inc ebx
cmp ebx, 0xb
jbe 0x401cbb
mov ecx, dword [0x409575]
mov edx, dword [0x409579]
mov eax, dword [0x409571]
mov dword [esp + 0x19], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x1d], edx
push ecx
mov dword [esp + 0x19], eax
mov eax, dword [0x40957d]
push 1
lea edx, [esp + 0x18]
push 0x15
push edx
mov byte [esp + 0x24], 1
mov dword [esp + 0x31], eax
call edi
add esp, 0x10
xor ebx, ebx
mov ecx, dword [esi + 4]
mov al, byte [ebx + 0x409584]
push ecx
push 1
lea edx, [esp + 0x17]
push 1
push edx
mov byte [esp + 0x1f], al
call edi
add esp, 0x10
inc ebx
cmp ebx, 0xb
jbe 0x401d1c
mov ecx, dword [0x409595]
mov edx, dword [0x409599]
mov eax, dword [0x409591]
mov dword [esp + 0x19], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x1d], edx
push ecx
mov dword [esp + 0x19], eax
mov eax, dword [0x40959d]
push 1
lea edx, [esp + 0x18]
push 0x15
push edx
mov word [esp + 0x22], 0xb500
mov byte [esp + 0x24], 0x10
mov dword [esp + 0x31], eax
call edi
add esp, 0x10
xor ebx, ebx
mov ecx, dword [esi + 4]
mov al, byte [ebx + 0x4095a4]
push ecx
push 1
lea edx, [esp + 0x17]
push 1
push edx
mov byte [esp + 0x1f], al
call edi
add esp, 0x10
inc ebx
cmp ebx, 0xa1
jbe 0x401d84
mov ecx, dword [0x40964d]
mov edx, dword [0x409651]
mov eax, dword [0x409649]
mov dword [esp + 0x19], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x1d], edx
push ecx
mov dword [esp + 0x19], eax
mov eax, dword [0x409655]
push 1
lea edx, [esp + 0x18]
push 0x15
push edx
mov byte [esp + 0x24], 0x11
mov dword [esp + 0x31], eax
call edi
add esp, 0x10
xor ebx, ebx
mov ecx, dword [esi + 4]
mov al, byte [ebx + 0x40965c]
push ecx
push 1
lea edx, [esp + 0x17]
push 1
push edx
mov byte [esp + 0x1f], al
call edi
add esp, 0x10
inc ebx
cmp ebx, 0xa1
jbe 0x401de8
pop edi
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x401e20
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
xor al, al
mov dl, 0x11
mov byte [esp + 6], al
mov byte [esp + 0xb], al
mov byte [esp + 0xd], al
mov eax, dword [ecx + 4]
push eax
push 1
lea ecx, [esp + 8]
push 0xe
push ecx
mov word [esp + 0x10], 0xdaff
mov word [esp + 0x12], 0xc00
mov byte [esp + 0x14], 3
mov byte [esp + 0x15], 1
mov byte [esp + 0x17], 2
mov byte [esp + 0x18], dl
mov byte [esp + 0x19], 3
mov byte [esp + 0x1a], dl
mov byte [esp + 0x1c], 0x3f
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x20
ret
Function at 0x402b50
Capabilities:
Write file on windows

Disassembly:
push ecx
mov al, byte [esp + 0xc]
push esi
dec al
mov esi, ecx
js 0x402c04
movsx eax, al
push ebp
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
lea ebp, [eax*2 + 0x409430]
inc eax
mov dword [esp + 0xc], eax
mov ax, word [ebp]
mov edx, dword [esp + 0x14]
and eax, edx
test ax, ax
je 0x402b97
movsx ecx, byte [esi + 1]
mov al, byte [esi]
mov dl, byte [ecx*2 + 0x409430]
or al, dl
mov byte [esi], al
mov al, byte [esi + 1]
sub ebp, 2
dec al
mov byte [esi + 1], al
jns 0x402bf3
mov al, byte [esi]
cmp al, 0xff
jne 0x402bd6
mov byte [esp + 0x18], al
mov eax, dword [esi + 4]
push eax
push 1
lea ecx, [esp + 0x20]
push 1
push ecx
call edi
mov edx, dword [esi + 4]
lea eax, [esp + 0x28]
push edx
push 1
push 1
push eax
mov byte [esp + 0x38], 0
call edi
add esp, 0x20
jmp 0x402bec
mov ecx, dword [esi + 4]
lea edx, [esp + 0x18]
push ecx
push 1
push 1
push edx
mov byte [esp + 0x28], al
call edi
add esp, 0x10
mov byte [esi + 1], 7
mov byte [esi], 0
mov eax, dword [esp + 0xc]
dec eax
mov dword [esp + 0xc], eax
jne 0x402b77
pop edi
pop ebp
pop esi
pop ecx
ret 8