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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
lea eax, [ebp - 0x10]
push esi
push eax
xor ebx, ebx
push 0x20019
push ebx
mov esi, ecx
push dword [0x43e4a4]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407c8f
push edi
push 4
pop eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [0x43e4a8]
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x407b03
mov eax, dword [ebp - 4]
mov word [esi + 0x42], ax
mov word [esi + 0x44], ax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [0x43e4b0]
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x407b43
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
fild qword [ebp - 0x18]
fmul qword [0x438458]
fst qword [esi + 0x330]
fst qword [esi + 0x308]
fstp qword [esi + 0x2e0]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [0x43e4b4]
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x407b83
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
fild qword [ebp - 0x18]
fmul qword [0x438458]
fst qword [esi + 0x338]
fst qword [esi + 0x310]
fstp qword [esi + 0x2e8]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [0x43e4b8]
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x407bc3
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
fild qword [ebp - 0x18]
fmul qword [0x438458]
fst qword [esi + 0x340]
fst qword [esi + 0x318]
fstp qword [esi + 0x2f0]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [0x43e4bc]
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x407c03
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
fild qword [ebp - 0x18]
fmul qword [0x438458]
fst qword [esi + 0x348]
fst qword [esi + 0x320]
fstp qword [esi + 0x2f8]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [0x43e4c0]
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x407c43
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
fild qword [ebp - 0x18]
fmul qword [0x438458]
fst qword [esi + 0x350]
fst qword [esi + 0x328]
fstp qword [esi + 0x300]
lea ecx, [ebp - 8]
lea eax, [esi + 0x27c8]
push ecx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 1
push eax
push ebx
push dword [0x43e4ac]
mov dword [ebp - 8], 0x104
push dword [ebp - 0x10]
call edi
test eax, eax
pop edi
jne 0x407c86
lea eax, [esi + 0x27c8]
add esi, 0x28cc
push eax
push esi
call fcn.00429850
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
leave
ret
Function at 0x408b7d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push edi
xor ebx, ebx
mov edi, 0x80000001
lea eax, [ebp - 4]
test ebx, ebx
push eax
jne 0x408ba0
push str.Control_PanelDesktop
jmp 0x408ba5
push str.SoftwarePoliciesMicrosoftWindowsControl_PanelDesktop
push edi
call esi
cmp dword [ebp - 4], 0
je 0x408bd0
push 2
push 0x43e82c
push 1
push 0
push str.ScreenSaveActive
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebx
cmp ebx, 2
jl 0x408b91
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408bdb
Capabilities:
Get common file path
Persist via screensaver registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push ebx
push esi
push edi
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x210]
push 0x43e6e8
push eax
lea eax, [ebp - 0x314]
push str._s_s.scr
push eax
call fcn.0042a24c
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add esp, 0x10
and dword [ebp - 8], 0
mov edi, str.SCRNSAVE.EXE
cmp dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
jne 0x408c3f
push str.Control_PanelDesktop
jmp 0x408c44
push str.SoftwarePoliciesMicrosoftWindowsControl_PanelDesktop
push 0x80000001
call ebx
cmp dword [ebp - 4], 0
je 0x408cdb
lea eax, [ebp - 0x10c]
push 0x104
push eax
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
jne 0x408c7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x408cd2
cmp dword [ebp - 8], 0
jne 0x408c9a
lea eax, [ebp - 0x10c]
push str.System.ini
push eax
push edi
push str.boot
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea eax, [ebp - 0x10c]
push eax
call fcn.00429eb0
pop ecx
inc eax
push eax
lea eax, [ebp - 0x10c]
push eax
push 1
push 0
push edi
push dword [ebp - 4]
call esi
test eax, eax
jne 0x408cd2
push 2
push 0x43e884
push 1
push eax
push str.ScreenSaveActive
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 8]
cmp dword [ebp - 8], 2
jl 0x408c2e
pop edi
pop esi
pop ebx
leave
ret
Function at 0x422569
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
cmp edi, ebp
mov ebx, ecx
jne 0x422583
mov eax, 0x80070057
jmp 0x422700
cmp dword [ebx + 0x104], 0xffffffff
je 0x422593
mov ecx, ebx
call fcn.00422707
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov eax, ecx
mov esi, edi
mov edi, ebx
push 0x10000080
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 4
push ebp
mov ecx, eax
push ebp
push 0xc0000000
and ecx, 3
push dword [esp + 0x2c]
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 0x114], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebx + 0x104], eax
je 0x422648
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x28
mov dword [ebx + 0x110], eax
sbb esi, esi
neg esi
mov dword [esp + 0x14], esi
je 0x4225fc
mov eax, 0x1000
jmp 0x422605
add eax, 0xfff
and ax, 0xf000
push ebp
push eax
push ebp
push 4
push ebp
mov dword [ebx + 0x110], eax
push dword [ebx + 0x104]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [ebx + 0x108], eax
je 0x422648
push dword [ebx + 0x110]
push ebp
push ebp
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
cmp edx, ebp
mov dword [ebx + 0x10c], edx
jne 0x422678
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x42265a
call esi
mov esi, eax
jmp 0x42266a
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
mov ecx, ebx
call fcn.00422707
mov eax, esi
jmp 0x422700
cmp esi, ebp
jne 0x4226cf
push 8
mov edi, str.D3DX_r_n
pop ecx
mov esi, edx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4226a7
cmp dword [edx + 8], ebp
jne 0x4226a7
cmp dword [edx + 0x14], 0x10
jne 0x4226a7
mov eax, dword [edx + 0x18]
cmp eax, 0x28
jb 0x4226a7
cmp eax, dword [ebx + 0x110]
jbe 0x4226c7
mov ecx, dword [ebx + 0x110]
xor eax, eax
mov esi, ecx
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
mov dword [esp + 0x14], 1
and ecx, 3
rep stosb byte es:[edi], al
mov esi, dword [esp + 0x14]
cmp esi, ebp
je 0x4226fe
mov eax, dword [str.D3DX_r_n]
mov dword [edx], eax
mov eax, dword [0x43b444]
mov dword [edx + 4], eax
mov dword [edx + 8], ebp
mov dword [edx + 0xc], ebp
mov dword [edx + 0x10], ebp
mov dword [edx + 0x14], 0x10
mov dword [edx + 0x18], 0x28
mov dword [edx + 0x1c], ebp
mov dword [edx + 0x20], ebp
mov dword [edx + 0x24], ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x427744
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
push edi
mov ebx, ecx
call fcn.0042254e
test eax, eax
jne 0x4277d5
lea eax, [ebp - 0x100]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, 0x43b76c
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp + edx - 0x100], 0x5c
repne scasb al, byte es:[edi]
not ecx
mov eax, ecx
lea edi, [ebp + edx - 0xff]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x100]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00422569
test eax, eax
jl 0x4277d7
mov ecx, ebx
call fcn.00422562
cmp eax, 0x100000
jbe 0x4277d5
mov ecx, ebx
call fcn.00422762
lea eax, [ebp - 0x100]
mov ecx, ebx
push eax
call fcn.00422569
test eax, eax
jl 0x4277d7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42a6e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42a700
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042ed31
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x42a723
test byte [esp + 8], 2
je 0x42a723
call fcn.0042eda4
mov dword [eax], 0xd
call fcn.0042edad
mov dword [eax], 5
jmp 0x42a6fc
xor eax, eax
ret
Function at 0x10001510
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, edx
mov ebx, ecx
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000153a
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10001552
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10001547
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x10001583
cmp esi, ecx
jae 0x10001547
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x10001571
cmp esi, ecx
jae 0x10001547
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100015a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
mov ecx, 0x100a7434
push 0
mov dword [ebp - 8], esi
call fcn.10045c7b
mov ebx, eax
mov dword [ebp - 4], 1
test ebx, ebx
je 0x10001657
mov ecx, esi
shr ecx, 4
inc ecx
movzx eax, cx
mov dword [ebp - 0xc], eax
push 0
push eax
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
je 0x10001631
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10001631
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10001631
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x10001627
cmp esi, edx
jae 0x10001631
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x10001615
cmp esi, edx
jae 0x10001631
cmp word [esi], 0
jne 0x1000164e
mov ecx, dword [ebp - 4]
push ecx
inc ecx
mov dword [ebp - 4], ecx
mov ecx, 0x100a7434
call fcn.10045c7b
mov ebx, eax
test ebx, ebx
je 0x10001657
mov eax, dword [ebp - 0xc]
jmp 0x100015d7
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100092d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x100093b7
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x100093a6
jg 0x10009310
test edx, edx
je 0x100093a6
nop dword [eax]
call fcn.1000c1d0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x10009363
jg 0x10009327
test esi, esi
je 0x10009363
cmp ebx, eax
jg 0x10009337
jl 0x10009331
cmp edi, esi
jae 0x10009337
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
push esi
push dword [esp + 0x14]
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.1005d630
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x1000938a
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x100093a0
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x10009310
jl 0x100093a0
test edi, edi
jne 0x10009310
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x100093d9
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x100093db
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x10009459
jg 0x100093ee
test esi, esi
je 0x10009459
test eax, eax
jl 0x1000943d
jg 0x100093f8
test ebx, ebx
je 0x1000943d
cmp edi, eax
jg 0x10009408
jl 0x10009402
cmp esi, ebx
jae 0x10009408
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.1005d630
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x10009459
jg 0x10009440
test esi, esi
je 0x10009459
jmp 0x10009440
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x10009459
push eax
push esi
push 1
push edx
call fcn.100687cc
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10009470
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x100094a2
jl 0x10009495
test ecx, ecx
jne 0x100094a2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10009562
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.1000c1f0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x1000950e
jg 0x100094cd
test esi, esi
je 0x1000950e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x100094e5
mov eax, dword [esp + 0x10]
jl 0x100094df
cmp eax, esi
jae 0x100094e5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.1005d630
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x1000952f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x1000954b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x100094b4
jl 0x1000954b
test ecx, ecx
jne 0x100094b4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x1000959b
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x1000959b
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.1005d630
mov eax, dword [ebx + 0x2c]
add esp, 0xc
add dword [esp + 0xc], esi
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x1000960b
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x100095c1
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
mov ecx, edi
cmp edi, 0xfff
jbe 0x100095f4
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.10069205
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x1000961f
cmp edi, eax
ja 0x100095d0
test ecx, ecx
je 0x1000960b
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.10069205
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
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 0x10009990
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100a5064]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x100099c0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b901
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x100099fc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x100099fc
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b901
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10009ae6
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10009a24
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 0x10009a57
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.10060a0f
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b901
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x25], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
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 edx
sub eax, 0
je 0x10009ab9
sub eax, 1
je 0x10009ab9
sub eax, 2
jne 0x10009ae6
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.10060a0f
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b901
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10009ad6
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.100687cc
add esp, 0x10
cmp edi, eax
jne 0x10009ae6
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x100099e7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005b901
mov esp, ebp
pop ebp
ret 4
Function at 0x1000c210
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10083e38
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x100a5064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [esi]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + esi - 4], eax
mov eax, dword [esi]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov edi, dword [eax + 4]
add edi, esi
mov ecx, edi
call fcn.10002b80
mov eax, dword [ebp + 8]
mov dword [edi + 0x38], eax
mov eax, dword [edi + 0x30]
mov dword [edi + 0x3c], 0
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 2
push eax
call fcn.1000fcd0
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x30]
mov ecx, eax
call edx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
movzx ebx, ax
test ecx, ecx
je 0x1000c2cb
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x1000c2cb
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
cmp dword [edi + 0x38], 0
mov word [edi + 0x40], bx
jne 0x1000c2e5
mov eax, dword [edi + 0xc]
mov ecx, edi
push 0
or eax, 4
push eax
call fcn.10002b00
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 4]
mov dword [esi + eax + 0x10], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + esi + 0xc], eax
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + esi - 4], eax
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