joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4177e2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xac]
sub esp, 0xac
push 0xffffffffffffffff
push 0x450346
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x4711b0]
xor eax, ebp
mov dword [ebp + 0xa8], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x28], edi
mov esi, dword [ebp + 0xb4]
lea ecx, [ebp + 0x78]
mov ebx, dword [ebp + 0xb8]
mov eax, dword [ebp + 0xbc]
mov dword [ebp - 0x18], esi
push ebx
mov dword [ebp - 0x18], eax
call fcn.0041722a
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp + 0x88], eax
je 0x417882
push eax
lea eax, [ebp + 0x78]
push eax
push edi
lea ecx, [ebp + 0x3c]
call fcn.004172a6
push dword [ebp - 0x18]
lea ecx, [ebp + 0x90]
mov byte [ebp - 4], 1
push ecx
push esi
mov ecx, eax
call fcn.004177e2
lea ecx, [ebp + 0x3c]
call fcn.00417420
jmp 0x417919
mov ecx, eax
mov dword [ebp - 0x1c], eax
mov edx, eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov byte [ebp - 4], 2
mov eax, edx
sub eax, ecx
cmp ecx, edx
mov dword [ebp - 0x14], eax
sete byte [ebp - 0xd]
xor eax, eax
cmp ecx, edx
cmove ecx, eax
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x4178b1
mov eax, dword [ebx]
lea edx, [ebp - 0x14]
push edx
push ecx
push dword [ebp - 0x18]
push 0
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x14]
mov edi, eax
cmp edi, 0xea
je 0x4178df
cmp byte [ebp - 0xd], 0
je 0x4178f7
test edi, edi
jne 0x417953
test ecx, ecx
je 0x4178fb
lea eax, [ebp - 0xd]
push eax
push ecx
lea ecx, [ebp - 0x24]
call fcn.0040760c
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
jmp 0x417893
test edi, edi
jne 0x417953
lea eax, [ebp - 0xd]
push eax
push ecx
lea ecx, [ebp - 0x24]
call fcn.0040760c
mov eax, dword [ebp - 0x24]
mov dword [esi], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 8], eax
lea ecx, [ebp + 0x90]
call fcn.0040529d
lea ecx, [ebp + 0x78]
call fcn.0040529d
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa8]
xor ecx, ebp
call fcn.00429eb0
add ebp, 0xac
leave
ret 0xc
push str.query_value
lea ecx, [ebp + 0x60]
call fcn.00403439
lea ecx, [ebp]
call fcn.00403624
mov ecx, dword [ebp - 0x28]
push eax
push ebx
lea eax, [ebp + 0x60]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp + 0x48]
push eax
call fcn.00417590
push eax
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 5
call fcn.0040e858
push str.System_error
push edi
push dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x38]
call fcn.004180bb
mov esi, eax
push 0x12b
push str.Registry::getValue
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_sans_NAS_jdk8u381_237_install_src_windows_common_Registry.cpp
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 7
call fcn.0040371a
push eax
lea eax, [ebp + 0x18]
push esi
push eax
call fcn.0040744d
add esp, 0xc
lea eax, [ebp + 0x18]
push 0x469ec8
push eax
call fcn.0042ccac
int3
Function at 0x4183d9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x10c
mov eax, 0x450621
call fcn.00429f23
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x68], eax
call fcn.00418322
mov ebx, eax
test ebx, ebx
je 0x4184c6
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
push ebx
push dword [esi + 0x38]
call edi
test eax, eax
jne 0x41847c
push str.cannot_load_resource
lea ecx, [ebp - 0x28]
call fcn.00403439
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
call fcn.00418340
push eax
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 5
call fcn.0040e858
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.004180bb
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_jdk8u381_237_install_src_windows_common_Resources.cpp
jmp 0x418530
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp dword [esi + 0x34], 6
mov edi, eax
jne 0x4184ad
mov edx, dword [esi + 0x18]
mov ecx, edi
and edx, 0xf
jbe 0x4184a3
movzx eax, word [ecx]
lea ecx, [ecx + eax*2]
add ecx, 2
sub edx, 1
jne 0x418495
movzx eax, word [ecx]
lea edi, [ecx + 2]
add eax, eax
jmp 0x4184b7
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.00429ed2
ret 4
push str.cannot_find_resource
lea ecx, [ebp - 0x28]
call fcn.00403439
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
call fcn.00418340
push eax
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 1
call fcn.0040e858
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.004180bb
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_jdk8u381_237_install_src_windows_common_Resources.cpp
call fcn.0040371a
push eax
lea eax, [ebp - 0x4c]
push esi
push eax
call fcn.0040744d
add esp, 0xc
lea eax, [ebp - 0x4c]
push 0x469ec8
push eax
call fcn.0042ccac
int3
Function at 0x41b6d5
Capabilities:
Write file on windows

Disassembly:
push 0xd4
mov eax, 0x451013
call fcn.00429f23
mov esi, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0xe0]
xor ebx, ebx
call fcn.00422361
push dword [esi + 4]
lea eax, [ebp - 0xe0]
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x30], 1
mov dword [ebp - 0x2c], eax
call fcn.00420dfb
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xd4]
call fcn.004065e5
push edi
mov byte [ebp - 4], 1
call fcn.00421d2d
pop ecx
cmp dword [ebp - 0x18], ebx
jne 0x41b746
mov esi, 0x454fac
push esi
call fcn.0042e980
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.0040541f
push 0x45cd10
push 0x457c6c
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.00422033
add esp, 0x10
mov cl, byte [eax + 4]
mov edx, dword [eax]
mov byte [eax + 4], bl
mov dword [ebp - 0x38], edx
mov byte [ebp - 0x34], cl
cmp byte [ebp - 0x3c], 0
mov byte [ebp - 4], 3
je 0x41b784
push dword [ebp - 0x40]
mov byte [ebp - 0x3c], bl
call fcn.0044ce61
mov edx, dword [ebp - 0x38]
pop ecx
mov byte [ebp - 4], 2
test edx, edx
jne 0x41b7ff
lea eax, [ebp - 0x30]
push edi
push eax
call fcn.00421ceb
pop ecx
pop ecx
mov bl, byte [eax + 4]
mov esi, dword [eax]
mov byte [eax + 4], 0
mov dword [ebp - 0x40], esi
mov byte [ebp - 0x3c], bl
cmp byte [ebp - 0x2c], 0
mov byte [ebp - 4], 5
je 0x41b7be
push dword [ebp - 0x30]
mov byte [ebp - 0x2c], 0
call fcn.0044ce55
pop ecx
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0x132
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push dword [ebp - 0x18]
mov byte [ebp - 4], 4
push eax
push esi
call fcn.00436735
add esp, 0xc
push eax
call fcn.0041b362
add esp, 0xc
mov byte [ebp - 4], 6
test bl, bl
je 0x41b878
push esi
call fcn.0044ce55
jmp 0x41b877
lea eax, [ebp - 0x38]
push eax
push 0x457c70
lea eax, [ebp - 0x30]
push edi
push eax
call fcn.00422068
add esp, 0x10
mov bl, byte [eax + 4]
mov esi, dword [eax]
mov byte [eax + 4], 0
mov dword [ebp - 0x40], esi
mov byte [ebp - 0x3c], bl
cmp byte [ebp - 0x2c], 0
mov byte [ebp - 4], 9
je 0x41b83b
push dword [ebp - 0x30]
mov byte [ebp - 0x2c], 0
call fcn.0044ce61
pop ecx
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
push 1
push dword [ebp - 0x18]
mov byte [ebp - 4], 8
push eax
call fcn.00432327
push dword [ebp - 0x34]
push 0x132
push eax
push 1
call fcn.0041b315
add esp, 0x20
mov byte [ebp - 4], 0xa
test bl, bl
je 0x41b878
push esi
call fcn.0044ce61
pop ecx
cmp byte [ebp - 0x34], 0
mov byte [ebp - 4], 0xb
je 0x41b88f
push dword [ebp - 0x38]
mov byte [ebp - 0x34], 0
call fcn.0044ce61
pop ecx
lea ecx, [ebp - 0x28]
call fcn.0040529d
lea ecx, [ebp - 0xd8]
call fcn.004040c1
call fcn.00429ed2
ret 4

Function at 0x4216b3
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
add eax, 0x18
cmp dword [eax + 0x14], 8
jb 0x4216c2
mov eax, dword [eax]
push eax
call fcn.00437c6b
pop ecx
ret
Function at 0x42281e
Capabilities:
Read file on windows

Disassembly:
push 0x2c
mov eax, 0x452097
call fcn.00429ef0
push 0x4586f0
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
xor ebx, ebx
push eax
call fcn.00421fee
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 0x422868
push dword [ebp - 0x20]
mov byte [ebp - 0x1c], bl
call fcn.0044ce61
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.0040760c
push edi
push 0x100000
push esi
mov esi, dword [ebp - 0x24]
push esi
call fcn.00431cbb
mov ebx, eax
add esp, 0x10
cmp ebx, 0x100000
ja 0x422939
push edi
call fcn.00438cbb
pop ecx
test eax, eax
je 0x4228bc
push 0x133
jmp 0x42293e
push edi
call fcn.00438c8f
pop ecx
test eax, eax
jne 0x4228ce
push 0x13b
jmp 0x42293e
push ebx
push esi
call fcn.004230af
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.00409285
test esi, esi
je 0x42291c
mov eax, dword [ebp - 0x1c]
sub eax, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], eax
cmp eax, 0x1000
jb 0x422913
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004043d5
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
pop ecx
pop ecx
push eax
push esi
call fcn.00429c4c
pop ecx
pop ecx
cmp byte [ebp - 0xd], 0
mov dword [ebp - 4], 3
je 0x422930
push edi
call fcn.0044ce61
pop ecx
mov eax, dword [ebp + 8]
call fcn.00429ebe
ret
push 0xc8
lea ecx, [ebp - 0x38]
call fcn.0041996e
push 0x46ceb0
lea eax, [ebp - 0x38]
push eax
call fcn.0042ccac
int3

Function at 0x4230ea
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x23c]
sub esp, 0x23c
push 0xffffffffffffffff
push 0x45220a
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, dword [0x4711b0]
xor eax, ebp
mov dword [ebp + 0x238], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x244]
lea eax, [ebp + 0x30]
push eax
xor edi, edi
mov dword [ebp - 0x10], esi
push edi
push edi
push 0x2c
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push dword [ebp - 0x10]
push 0xc8
push eax
push edi
call fcn.0041b315
add esp, 0x10
lea eax, [ebp + 0x30]
lea ecx, [ebp]
push eax
call fcn.004096e4
push dword [0x471194]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.004092b4
push eax
push esi
mov byte [ebp - 4], 1
call fcn.004216ca
add esp, 0x14
lea ecx, [ebp + 0x18]
call fcn.0040803d
lea ecx, [ebp]
call fcn.0040803d
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x238]
xor ecx, ebp
call fcn.00429eb0
add ebp, 0x23c
leave
ret
Function at 0x425fca
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ebp, 0x7fffffff
push edi
mov edi, dword [esp + 0x24]
test edi, edi
jl 0x42604e
jg 0x425ff7
test esi, esi
je 0x42604e
test edi, edi
jg 0x425ff7
jl 0x425ff3
cmp esi, ebp
jae 0x425ff7
mov eax, esi
jmp 0x425ff9
mov eax, ebp
and dword [esp + 0x1c], 0
cmp dword [esp + 0x14], 0xffffffff
je 0x42603f
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
push ebx
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x426029
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x426049
jmp 0x42603f
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x42603a
add ebx, eax
cdq
sub esi, eax
sbb edi, edx
jmp 0x425fdf
cmp eax, 0xffffffff
jne 0x426049
call fcn.00430ab0
cmp dword [eax], 4
je 0x425fdf
or eax, 0xffffffff
jmp 0x426050
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x428086
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
push 4
pop edx
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x459760]
sub edx, 1
jne 0x42808d
ret

Function at 0x42a705
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42a744
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42a744
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42a744
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42a744
cmp dword [ecx + 0x74], 0xe
jbe 0x42a744
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x440292
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00440108

Function at 0x446903
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00446456

Function at 0x44cf80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44cfad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44cfad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10038c10
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d0ad4
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
push edi
mov eax, dword [0x100f2040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xorps xmm0, xmm0
movq qword [edi + 4], xmm0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
movups xmmword [edi + 0x20], xmm0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0xf
mov byte [edi + 0x20], 0
movups xmmword [edi + 0x38], xmm0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0xf
mov byte [edi + 0x38], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov word [edi + 0x68], 0
mov dword [ebp - 4], 0
lea esi, [edi + 0x6c]
mov dword [edi], vtable.Playerlist.0
mov dword [ebp - 0x14], esi
push 0x28
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.100cee22
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
xorps xmm0, xmm0
movups xmmword [edi + 0x80], xmm0
mov dword [edi + 0x90], 0
mov dword [edi + 0x94], 0xf
mov byte [edi + 0x80], 0
movups xmmword [edi + 0x98], xmm0
mov dword [edi + 0xa8], 0
mov dword [edi + 0xac], 0xf
mov byte [edi + 0x98], 0
mov byte [ebp - 4], 4
mov dword [edi + 0xb0], 0
add edi, 0xb4
mov dword [ebp - 0x14], edi
push 0x28
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.100cee22
add esp, 8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 4], eax
lea ecx, [edi + 0xc]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [ebp - 4], 6
mov dword [edi + 0x18], 7
mov dword [edi + 0x1c], 8
mov dword [edi], 0x3f800000
push dword [edi + 4]
push 0x10
call fcn.10034f80
mov byte [ebp - 4], 7
mov esi, dword [ebp - 0x10]
add esi, 0xd4
mov dword [ebp - 0x14], esi
push 0x18
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.100cee22
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x10]
xorps xmm0, xmm0
push 4
push str.silv
mov dword [ebp - 0x34], 0xb8566e2
mov dword [esi + 0x50], 1
mov dword [esi + 0x54], 9
mov byte [esi + 0x68], 1
mov dword [esi + 0xc], 0xc8
mov dword [esi + 0x10], 0x190
mov dword [ebp - 0x30], 0x1100001
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.10035960
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x34]
push eax
push ecx
mov ecx, edi
call fcn.1003b5a0
push 0x10039050
push 1
push 0x20
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 8
push eax
call fcn.100cee52
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1003c2e0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 1]
xor ecx, eax
movzx eax, byte [edx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 4]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 5]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 6]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 7]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
pop ebp
ret 4
Function at 0x1003f0b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x1003f0dc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x1003f104
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x1003f10a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x1003f194
jg 0x1003f121
test esi, esi
je 0x1003f194
test ecx, ecx
jl 0x1003f177
jg 0x1003f12b
test eax, eax
je 0x1003f177
cmp edi, ecx
jg 0x1003f13f
jl 0x1003f135
cmp esi, eax
jae 0x1003f13f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 8]
add edx, ecx
sub esi, ecx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x1003f194
jg 0x1003f17a
test esi, esi
je 0x1003f194
jmp 0x1003f17a
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x1003f194
push eax
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1003f1b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x1003f1dc
jl 0x1003f1d0
test ecx, ecx
jne 0x1003f1dc
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x1003f1f5
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x1003f243
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x1003f249
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x1003f249
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x1003f2b6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1003f272
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x1003f2a4
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x1003f2b6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x1003f280
test edi, edi
je 0x1003f2b6
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1003f640
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100f2040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1003f670
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100cee06
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1003f6ac
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1003f6ac
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100cee06
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x1003f783
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1003f6d4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1003f6e0
movsx eax, bl
jmp 0x1003f718
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x1003f742
sub eax, 1
je 0x1003f742
sub eax, 2
jne 0x1003f783
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100cee06
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1003f760
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1003f783
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100cee06
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100cee06
mov esp, ebp
pop ebp
ret 4