joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a7093
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x4a7101
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x7509bc
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4a70f8
cmp dword [ebp - 0xc], 4
jne 0x4a70f8
cmp dword [ebp - 0x10], edi
je 0x4a70f8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x77b418], edi
xor eax, eax
jmp 0x4a7140
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x77b418], edi
jge 0x4a713b
lea eax, [ebp - 0x34]
push eax
mov dword [0x77b418], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x4a713b
cmp word [ebp - 0x14], 5
jb 0x4a713b
call fcn.004a706e
test eax, eax
je 0x4a713b
emms
mov dword [0x77b418], 1
mov eax, dword [0x77b418]
pop edi
leave
ret

Function at 0x4c8843
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4c887b
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004c68cd
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004c68a5
jmp 0x4c8887
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4c9f35
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4c9f77
call fcn.004cf9ef
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c9f77
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c9f6e
xor eax, eax
jmp 0x4c9f7f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c9f85
pop edi
pop esi
pop ebx
ret 4

Function at 0x4cff1f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4cff4d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4cff6b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004cfe85
jmp 0x4cff6b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4cff6b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004cfe85
test edi, edi
mov eax, edi
jne 0x4cff55
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40fdb0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
xor ecx, ecx
push esi
push edi
mov edx, 0x811c9dc5
mov esi, dword [eax + 4]
mov edi, dword [eax]
test esi, esi
je 0x40fde1
nop dword [eax + eax]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x40fdd0
pop edi
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x420870
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x5c
mov eax, dword [0x47c840]
xor eax, esp
mov dword [esp + 0x58], eax
push esi
call fcn.0040cb30
push 8
xorps xmm0, xmm0
mov dword [esp + 0x44], 0
push str.ClipArt1
lea ecx, [esp + 0x38]
movaps xmmword [esp + 0x38], xmm0
mov dword [esp + 0x4c], 0
call fcn.0040d070
cmp dword [esp + 0x44], 0xf
lea eax, [esp + 0x30]
cmova eax, dword [esp + 0x30]
push eax
push 0
push 0x1f0001
call dword [0x44a07c]
test eax, eax
je 0x4208dd
push 0xb7
call dword [0x44a064]
cmp dword [esp + 0x44], 0xf
lea eax, [esp + 0x30]
cmova eax, dword [esp + 0x30]
push eax
push 0
push 0
call dword [0x44a074]
mov esi, eax
mov dword [esp + 0x20], 0
xorps xmm0, xmm0
mov dword [esp + 0x24], 7
xor eax, eax
movaps xmmword [esp + 0x10], xmm0
lea ecx, [esp + 0x10]
mov word [esp + 0x10], ax
call fcn.00407330
test al, al
je 0x420979
lea eax, [esp + 0xc]
push eax
push 2
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [0x44a010]
test eax, eax
jne 0x420979
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x24], 7
lea ecx, [eax*2 + 2]
push ecx
lea eax, [esp + 0x14]
cmova eax, dword [esp + 0x14]
push eax
push 1
push 0
push 0x46f338
push dword [esp + 0x20]
call dword [0x44a00c]
push dword [esp + 0xc]
call dword [0x44a008]
call fcn.0040b800
test esi, esi
je 0x420990
push esi
call dword [0x44a078]
push esi
call dword [0x44a080]
mov ecx, dword [esp + 0x24]
cmp ecx, 7
jbe 0x4209c8
mov edx, dword [esp + 0x10]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4209be
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420a25
push ecx
push edx
call fcn.0043e6f2
add esp, 8
mov ecx, dword [esp + 0x44]
xor eax, eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 7
mov word [esp + 0x10], ax
cmp ecx, 0xf
jbe 0x420a11
mov edx, dword [esp + 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x420a07
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420a25
push ecx
push edx
call fcn.0043e6f2
add esp, 8
mov ecx, dword [esp + 0x5c]
xor eax, eax
pop esi
xor ecx, esp
call fcn.0043e59a
mov esp, ebp
pop ebp
ret 0x10
call fcn.004281df
int3
Function at 0x425910
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
lea esi, [ebp - 0x12c]
xor bl, bl
mov edi, 0x10
nop dword [eax]
movzx eax, bl
lea esi, [esi + 4]
add ecx, eax
add bl, 4
movzx edx, byte [ecx]
movzx eax, byte [ecx + 1]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 2]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 3]
mov ecx, dword [ebp - 4]
shl edx, 8
or edx, eax
mov dword [esi - 4], edx
sub edi, 1
jne 0x425930
lea eax, [ebp - 0x128]
mov ebx, 0x30
nop
mov edx, dword [eax]
lea eax, [eax + 4]
mov esi, dword [eax + 0x30]
mov edi, edx
mov ecx, edx
ror edi, 0x12
ror ecx, 7
xor edi, ecx
shr edx, 3
xor edi, edx
mov ecx, esi
mov edx, esi
ror ecx, 0x11
ror edx, 0x13
xor edx, ecx
shr esi, 0xa
xor edx, esi
add edi, edx
add edi, dword [eax + 0x1c]
add edi, dword [eax - 8]
mov dword [eax + 0x38], edi
sub ebx, 1
jne 0x425970
mov ebx, dword [ebp - 4]
add ebx, 0x50
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], 0x40
movups xmm0, xmmword [ebx]
movups xmmword [ebp - 0x24], xmm0
movups xmm0, xmmword [ebx + 0x10]
movups xmmword [ebp - 0x14], xmm0
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov edi, ebx
mov esi, dword [ebp - 0x20]
mov eax, ebx
ror eax, 0xb
mov ecx, ebx
ror edi, 0x19
not ecx
and ecx, dword [ebp - 0xc]
xor edi, eax
mov eax, ebx
ror eax, 6
xor edi, eax
mov eax, dword [ebp - 0x10]
and eax, ebx
xor ecx, eax
mov eax, dword [ebp - 4]
add edi, ecx
add dword [ebp - 4], 4
add edi, dword [eax + 0x473208]
add edi, dword [ebp + eax - 0x12c]
add edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov eax, edx
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
add ebx, edi
mov eax, esi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
mov ecx, eax
mov dword [ebp - 0x20], eax
ror eax, 0xd
ror ecx, 0x16
xor ecx, eax
mov eax, dword [ebp - 0x24]
ror eax, 2
xor ecx, eax
mov eax, esi
or eax, edx
and esi, edx
and eax, dword [ebp - 0x24]
add ecx, edi
or eax, esi
add eax, ecx
sub dword [ebp - 0x28], 1
mov dword [ebp - 0x24], eax
jne 0x4259d3
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x24]
mov ebx, dword [ebp - 0x2c]
mov edx, 8
mov eax, dword [ecx]
lea ecx, [ecx + 4]
add dword [ebx], eax
lea ebx, [ebx + 4]
sub edx, 1
jne 0x425a73
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x425d00
Capabilities:
Get number of processors

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44996d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x64
mov eax, dword [0x47c840]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x70], 0
movups xmmword [ebp - 0x6c], xmm0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0xf
mov byte [ebp - 0x6c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00426df0
xorps xmm0, xmm0
movq qword [ebp - 0x50], xmm0
mov dword [ebp - 4], 2
lea ecx, [esi + 0x28]
mov eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x30]
je 0x425db2
lea ecx, [ebp - 0x70]
push ecx
mov ecx, eax
call fcn.00426340
add dword [esi + 0x2c], 0x58
jmp 0x425dbc
lea edx, [ebp - 0x70]
push edx
push eax
call fcn.00427a90
mov esi, dword [esi + 0x2c]
lea ecx, [ebp - 0x70]
call fcn.00426220
lea eax, [esi - 0x58]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043e59a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x426af0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x24], ebx
push edi
mov eax, dword [esi + 0x28]
cmp eax, dword [esi + 0x2c]
jne 0x426b2e
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
cmp byte [esi + 0xc], 0
jne 0x426b1f
call fcn.0043ecb1
lea eax, [esi + 0xa0]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x3c], 0
jne 0x426b39
call fcn.004269c0
mov ecx, ebx
mov dword [ebp - 0xc], 0
lea eax, [esi + 0x34]
mov dword [ebp - 8], 0
xorps xmm0, xmm0
mov dword [ebp - 0x20], eax
movups xmmword [ebp - 0x1c], xmm0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x426b60
sub ecx, edx
push ecx
push ebx
lea ecx, [ebp - 0x1c]
call fcn.0040d070
cmp dword [ebp - 8], 0xf
lea edi, [ebp - 0x1c]
mov esi, dword [ebp - 0x1c]
mov edx, 0x811c9dc5
mov ebx, dword [ebp - 0xc]
cmova edi, esi
xor ecx, ecx
test ebx, ebx
je 0x426ba1
nop
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x426b90
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push edx
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00427a00
mov edi, dword [eax + 4]
mov eax, dword [ebp - 8]
cmp eax, 0xf
jbe 0x426be8
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x426bde
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x426cab
push ecx
push esi
call fcn.0043e6f2
add esp, 8
test edi, edi
je 0x426b09
mov edx, dword [ebp - 0x24]
xorps xmm0, xmm0
mov ecx, edx
mov dword [ebp - 0xc], 0
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 8], 0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x426c10
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x1c]
call fcn.0040d070
cmp dword [ebp - 8], 0xf
lea edi, [ebp - 0x1c]
mov esi, dword [ebp - 0x1c]
mov edx, 0x811c9dc5
mov ebx, dword [ebp - 0xc]
cmova edi, esi
xor ecx, ecx
test ebx, ebx
je 0x426c51
nop
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x426c40
mov ebx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push edx
push eax
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
call fcn.00427a00
mov eax, dword [eax + 4]
test eax, eax
jne 0x426c6e
mov eax, dword [ebx + 4]
mov edi, dword [eax + 0x20]
mov eax, dword [ebp - 8]
cmp eax, 0xf
jbe 0x426ca0
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x426c96
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x426cab
push ecx
push esi
call fcn.0043e6f2
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.004281df
int3
Function at 0x4276f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449ae5
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x47c840]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edx, dword [ebp + 0xc]
mov edi, edx
cmp dword [edx + 0x14], 0xf
jbe 0x427727
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
cmp dword [edx + 0x10], ecx
jbe 0x427745
movzx eax, byte [edi + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, dword [edx + 0x10]
jb 0x427733
push esi
push edx
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.00427a00
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x427776
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [ebx + 8], 0x71c71c7
je 0x4278e2
lea eax, [ebx + 4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
push 0x24
mov dword [ebp - 0x10], 0
call fcn.0043e5a8
add esp, 4
mov edi, eax
mov dword [ebp - 0x10], edi
push dword [ebp + 0xc]
lea ecx, [edi + 8]
call fcn.0040d160
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
mov dword [edi + 0x20], ecx
mov dword [ebp - 4], 1
mov eax, dword [ebx + 8]
inc eax
movss xmm3, dword [ebx]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x473350]
mov eax, dword [ebx + 0x1c]
cvtpd2ps xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x473350]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x427873
divss xmm2, xmm3
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x20], xmm0
fld qword [ebp - 0x20]
fstp qword [esp]
call fcn.0043c750
fstp qword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x20]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.00447fd0
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebx + 0x1c]
cmp eax, ecx
jae 0x427857
cmp eax, 0x200
jae 0x427855
shl eax, 3
cmp eax, ecx
jae 0x427857
mov eax, ecx
push eax
mov ecx, ebx
call fcn.00427200
push esi
lea eax, [edi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00427a00
mov edx, dword [eax]
jmp 0x427876
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 4]
inc dword [ebx + 8]
mov dword [edi + 4], eax
mov dword [edi], edx
mov dword [eax], edi
mov dword [edx + 4], edi
mov ecx, dword [ebx + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [ebx + 0x18]
and eax, esi
mov dword [ebp - 0x10], 0
mov esi, dword [ecx + eax*8]
cmp esi, dword [ebx + 4]
jne 0x4278a5
mov dword [ecx + eax*8], edi
jmp 0x4278b7
cmp esi, edx
jne 0x4278ae
mov dword [ecx + eax*8], edi
jmp 0x4278bb
mov edx, dword [ebp + 0xc]
cmp dword [ecx + eax*8 + 4], edx
jne 0x4278bb
mov dword [ecx + eax*8 + 4], edi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov dword [esi], edi
mov byte [esi + 4], 1
call fcn.00427990
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.00443985
int3
Function at 0x43f2db
Capabilities:
Parse pe header

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

Function at 0x446590
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4465bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4465bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401a60
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
push 1
push 0xf8
push 0x649590
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
ret

Function at 0x401ab0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
push 1
push 0xf8
push 0x649590
call dword [sym.imp.msvcrt.dll_fread]
fild dword [0x5383fc]
mov ecx, dword [0x5383fc]
add esp, 0x10
mov dword [0x649594], ecx
fmul qword [0x4f94e0]
fidiv dword [0x649588]
call sub.msvcrt.dll__ftol
mov dword [0x6495bc], eax
ret

Function at 0x4084a0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x65c344]
test eax, eax
je 0x4084e5
mov eax, dword [esp + 8]
test eax, eax
jne 0x4084cd
mov eax, dword [esp + 4]
push eax
push 1
push 0x3420
call fcn.004044d0
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
ret
mov ecx, dword [esp + 4]
push ecx
push 0x3420
call fcn.004044d0
push eax
call fcn.0041c6c0
add esp, 0xc
ret

Function at 0x408540
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x3420
call fcn.004f75e0
mov eax, dword [0x65c344]
test eax, eax
je 0x4085f2
mov eax, dword [esp + 0x3428]
test eax, eax
jne 0x408581
mov eax, dword [esp + 0x3424]
lea ecx, [esp]
push eax
push 1
push 0x3420
push ecx
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
jmp 0x40859b
mov edx, dword [esp + 0x3424]
lea eax, [esp]
push edx
push 0x3420
push eax
call fcn.0041c720
add esp, 0xc
lea ecx, [esp]
push ecx
call fcn.004065c0
mov ecx, dword [0x65c344]
mov eax, dword [0x5383fc]
add esp, 4
cmp eax, dword [ecx + 0x10]
je 0x4085f2
push esi
push edi
mov dword [0x65c33c], eax
mov dword [ecx + 0x10], eax
mov eax, dword [0x65c344]
push 8
push 0x90
push 0x90
push eax
mov esi, eax
lea edi, [eax + 0x33b0]
call fcn.00403110
mov edx, dword [esi + 0x18]
add esp, 0x10
mov dword [edi + 8], edx
mov eax, dword [esi + 0x1c]
mov dword [edi + 0xc], eax
pop edi
pop esi
add esp, 0x3420
ret

Function at 0x409050
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_fwrite]
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, 0x65cfd0
push edi
push 1
push 0xb0
push esi
call ebx
add esi, 0x2c
add esp, 0x10
cmp esi, 0x65d080
jl 0x409062
pop edi
pop esi
pop ebx
ret

Function at 0x4090e0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_fread]
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, 0x65cfd0
push edi
push 1
push 0xb0
push esi
call ebx
add esi, 0x2c
add esp, 0x10
cmp esi, 0x65d080
jl 0x4090f2
mov edi, dword [0x5383fc]
mov ebx, dword [0x68c568]
mov dword [esp + 0x10], edi
mov esi, 0x65cff4
cmp dword [ebx + 0xa8], 0x14
jne 0x409139
test edi, edi
je 0x40914e
fild dword [esp + 0x10]
fdivr qword [0x4f9828]
jmp 0x409147
test edi, edi
je 0x40914e
fild dword [esp + 0x10]
fdivr qword [0x4f9820]
call sub.msvcrt.dll__ftol
mov dword [esi], eax
add esi, 0x2c
cmp esi, 0x65d0a4
jl 0x409120
pop edi
pop esi
pop ebx
ret
Function at 0x4094c0
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_fwrite]
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, 0x65d110
push edi
push 1
push 0x30
push esi
call ebx
add esi, 0x30
add esp, 0x10
cmp esi, 0x65d410
jl 0x4094d2
pop edi
pop esi
pop ebx
ret

Function at 0x4094f0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_fread]
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, 0x65d110
push edi
push 1
push 0x30
push esi
call ebx
add esi, 0x30
add esp, 0x10
cmp esi, 0x65d410
jl 0x409502
pop edi
pop esi
pop ebx
ret
Function at 0x409cc0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x68c568]
mov ecx, 1
sub esp, 0x14
cmp dword [eax + 0x1c], ecx
jne 0x409ce9
cmp dword [eax + 0x20], ecx
jne 0x409ce9
push 0x5022c8
call fcn.00420450
mov eax, dword [0x68c568]
add esp, 4
cmp dword [eax + 0x20], 2
jne 0x409cfc
push 0x5022c0
call fcn.00420450
add esp, 4
mov eax, dword [0x71b9e0]
call dword [eax + 0x34]
mov eax, dword [0x680b08]
test eax, eax
je 0x409d29
mov ecx, dword [0x65d8b0]
mov edx, dword [0x65d8c0]
mov eax, dword [0x65d8bc]
push ecx
push edx
push eax
call fcn.00401b00
add esp, 0xc
mov eax, dword [0x680974]
push ebx
push ebp
push esi
test eax, eax
jne 0x409d43
mov ebp, dword [0x65d8bc]
mov ebx, dword [0x65d8c0]
jmp 0x409d4f
mov ebp, dword [0x65d8c0]
mov ebx, dword [0x65d8bc]
lea ecx, [esp + 0x14]
push 0
push ecx
lea ecx, [esp + 0x20]
mov esi, dword [0x65d89c]
push ecx
lea ecx, [esp + 0x28]
mov eax, dword [0x65d890]
push ecx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [0x65d8ac]
imul esi, ecx
mov edx, dword [eax]
push ecx
push esi
push eax
call dword [edx + 0x2c]
test eax, eax
jne 0x409e51
mov eax, dword [0x680a00]
mov ecx, dword [esp + 0xc]
test eax, eax
push edi
mov dword [esp + 0x14], ecx
je 0x409dde
mov edx, dword [0x65d8b0]
xor edi, edi
test edx, edx
jbe 0x409e0f
mov esi, ecx
mov ecx, ebp
sub ebx, ebp
movsx eax, word [ebx + ecx]
cdq
sub eax, edx
add ecx, 2
mov ebp, eax
add esi, 4
movsx eax, word [ecx - 2]
cdq
sub eax, edx
sar ebp, 1
sar eax, 1
add eax, ebp
inc edi
mov word [esi - 2], ax
mov word [esi - 4], ax
mov edx, dword [0x65d8b0]
cmp edi, edx
jb 0x409dad
jmp 0x409e0f
mov edx, dword [0x65d8b0]
xor esi, esi
test edx, edx
jbe 0x409e0f
mov edi, ebp
mov eax, ebx
sub edi, ebx
mov dx, word [edi + eax]
inc esi
mov word [ecx], dx
mov dx, word [eax]
mov word [ecx + 2], dx
mov edx, dword [0x65d8b0]
add eax, 2
add ecx, 4
cmp esi, edx
jb 0x409df0
mov eax, dword [0x65d8b8]
pop edi
test eax, eax
je 0x409e32
mov ecx, dword [esp + 0x10]
push eax
lea eax, [edx*4]
push 1
push eax
push ecx
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
mov ecx, dword [esp + 0x14]
mov eax, dword [0x65d890]
push ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
push ecx
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x18]
push ecx
push eax
call dword [edx + 0x4c]
mov edx, dword [0x65d89c]
pop esi
pop ebp
pop ebx
lea eax, [edx + 1]
xor edx, edx
div dword [0x65d8a4]
mov eax, dword [0x68c568]
mov dword [0x65d89c], edx
mov eax, dword [eax + 0x1c]
cmp eax, 1
je 0x409e7d
cmp eax, 2
jne 0x409e82
call fcn.004204b0
xor eax, eax
add esp, 0x14
ret