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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
mov eax, dword [0x4db06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xd0]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push eax
push edi
lea eax, [ebp - 0xd4]
mov dword [ebp - 0xd4], 4
push eax
mov eax, dword [esi + 4]
push 0
push ebx
mov dword [ebp - 0xd0], 4
push dword [esi + eax*4 + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x469d79
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xd8], 0xc8
push eax
lea eax, [ebp - 0xcc]
push eax
mov eax, dword [esi + 4]
push ebx
push dword [esi + eax*4 + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
je 0x469d64
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00487555
mov esp, ebp
pop ebp
ret 8
push 0xa
lea eax, [ebp - 0xcc]
push 0
push eax
call fcn.00490fa0
add esp, 0xc
mov dword [edi], eax
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00487555
mov esp, ebp
pop ebp
ret 8

Function at 0x469eb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp + 0x10]
mov dword [ebp - 4], 1
push eax
push dword [ebp + 0xc]
mov esi, ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
mov eax, dword [esi + 4]
push dword [esi + eax*4 + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x469f03
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
mov eax, dword [esi + 4]
push dword [ebp + 8]
push dword [esi + eax*4 + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
je 0x469f03
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x469f80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 0x10]
lea eax, [ebp - 4]
mov dword [ebp - 4], 3
push dword [ebp + 0xc]
push eax
mov eax, dword [ecx + 4]
push 0
push dword [ebp + 8]
push dword [ecx + eax*4 + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
sbb eax, eax
inc eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x46a030
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push 0
push 0
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x40
push eax
push dword [ebp + 0xc]
mov eax, dword [ecx + 4]
push dword [ebp + 8]
push dword [ecx + eax*4 + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
neg eax
sbb eax, eax
inc eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x46dfc0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
mov ebx, ecx
test edi, edi
je 0x46dff4
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00487989
mov esi, eax
add esp, 4
xor eax, eax
mov word [esi], ax
push edi
push esi
push dword [ebx + 0x48]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jns 0x46e008
or edi, 0xffffffff
jmp 0x46e021
mov edx, dword [ebp + 8]
test esi, esi
mov ecx, 0x4c1430
cmovne ecx, esi
push ecx
push edi
call fcn.004633f0
add esp, 8
mov edi, eax
test esi, esi
je 0x46e02e
push esi
call fcn.00487954
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x46ff40
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9ac8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4db06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0
push ebx
call dword [sym.imp.KERNEL30.dll_GetFileSize]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x2c]
push 0
add eax, 0x1000
push eax
call fcn.0045ec10
push 0
mov dword [ebp - 4], 0
push dword [ebp - 0x10]
push 0
push 4
push 0
push ebx
call dword [sym.imp.KERNEL30.dll_CreateFileMappingA]
mov esi, eax
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x47004a
cmp esi, 0xffffffff
je 0x47003a
push 0
push 0
push 0
push 2
push esi
call dword [sym.imp.KERNEL30.dll_MapViewOfFile]
mov edi, eax
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 2
test edi, edi
je 0x47003a
cmp edi, 0xffffffff
je 0x47002f
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
call fcn.0046fea0
add esp, 4
test eax, eax
je 0x47002f
push edi
call dword [sym.imp.KERNEL30.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL30.dll_CloseHandle]
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL30.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x2c]
push ebx
call dword [sym.imp.KERNEL30.dll_WriteFile]
test eax, eax
je 0x47004a
push ebx
call dword [sym.imp.KERNEL30.dll_SetEndOfFile]
mov esi, 1
jmp 0x47004c
test edi, edi
je 0x47003a
push edi
call dword [sym.imp.KERNEL30.dll_UnmapViewOfFile]
test esi, esi
je 0x47004a
cmp esi, 0xffffffff
je 0x47004a
push esi
call dword [sym.imp.KERNEL30.dll_CloseHandle]
xor esi, esi
lea ecx, [ebp - 0x2c]
call fcn.0045ec60
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

Function at 0x470240
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push ecx
push 0x470220
push 0
push 0
call dword [sym.imp.KERNEL30.dll_CreateThread]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL30.dll_WaitForSingleObject]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push esi
call dword [sym.imp.KERNEL30.dll_GetExitCodeThread]
mov edi, dword [ebp - 4]
test esi, esi
je 0x470295
cmp esi, 0xffffffff
je 0x470295
push esi
call dword [sym.imp.KERNEL30.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x472c50
Capabilities:
Get graphical window text
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4db06c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov edi, ecx
call fcn.0046e520
test eax, eax
jne 0x472c86
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00487555
mov esp, ebp
pop ebp
ret 8
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x472d3e
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 0x110]
push 5
push esi
mov dword [edi + 0x64], eax
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
je 0x472d3e
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x472d02
mov eax, ebx
lea ecx, [ebp - 0x20c]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x472cf9
test dx, dx
je 0x472cf5
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x472cf9
add ecx, 4
add eax, 4
test dx, dx
jne 0x472cd3
xor eax, eax
jmp 0x472cfe
sbb eax, eax
or eax, 1
test eax, eax
je 0x472d13
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
jne 0x472cb4
jmp 0x472d3e
push 0
push dword [edi + 0x64]
mov dword [edi + 0x68], esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [edi + 0x64]
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
push 1
push 0xf4
push dword [edi + 0x68]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 4]
mov eax, 1
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.00487555
mov esp, ebp
pop ebp
ret 8
Function at 0x473890
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9df8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4db06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.00473670
mov eax, dword [0x4e030c]
test eax, eax
je 0x4738cd
mov eax, dword [eax + 0x20]
jmp 0x4738cf
xor eax, eax
push 0x4bcb84
push 0x384
push eax
call dword [sym.imp.KERNEL30.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4738fa
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x4e030c]
test eax, eax
je 0x473908
mov eax, dword [eax + 0x20]
jmp 0x47390a
xor eax, eax
push esi
push eax
call dword [sym.imp.KERNEL30.dll_SizeofResource]
mov ecx, dword [0x4e030c]
mov dword [ebp - 0x14], eax
test ecx, ecx
je 0x473924
mov ecx, dword [ecx + 0x20]
jmp 0x473926
xor ecx, ecx
push esi
push ecx
call dword [sym.imp.KERNEL30.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL30.dll_LockResource]
sub esp, 8
lea ecx, [ebx + 0x34]
mov esi, eax
push dword [ebp - 0x14]
call fcn.00473600
push dword [ebp - 0x14]
push esi
push dword [ebx + 0x38]
call fcn.00489a20
add esp, 0xc
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0
push dword [ebx + 0x34]
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jns 0x473979
xor esi, esi
jmp 0x4739d0
mov edi, dword [ebp - 0x10]
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
test esi, esi
je 0x4739a6
lea eax, [esi + 4]
mov dword [esi], vtable.Gdiplus::Image.0
push eax
push edi
mov dword [eax], 0
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromStream]
mov dword [esi + 8], eax
jmp 0x4739a8
xor esi, esi
lea eax, [ebp - 0x14]
cmp ebx, eax
je 0x4739bb
mov ecx, dword [ebx]
mov dword [ebx], esi
test ecx, ecx
je 0x4739c7
mov eax, dword [ecx]
jmp 0x4739c3
test esi, esi
je 0x4739c7
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov ecx, ebx
call fcn.00473a00
mov esi, eax
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4739e4
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
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 4
Function at 0x474a30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [ebp + 8]
push ebx
mov dword [esp + 0xc], eax
lea ebx, [ecx + 8]
mov eax, dword [ebp + 0xc]
push esi
mov esi, edx
mov dword [esp + 0x14], eax
mov eax, esi
mov dword [esp + 0x18], edx
sub eax, ecx
mov dword [esp + 0x1c], ebx
push edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x24], 4
nop word [eax + eax]
movq xmm0, qword [eax + ebx]
mov eax, dword [ebx + 4]
mov edi, dword [ebx - 8]
mov ecx, dword [ebx]
movq qword [esp + 0x30], xmm0
xor eax, dword [esp + 0x34]
xor ecx, dword [esp + 0x30]
movq xmm0, qword [esi]
mov dword [esp + 0x10], eax
mov eax, dword [ebx - 4]
movq qword [esp + 0x28], xmm0
xor eax, dword [esp + 0x2c]
xor edi, dword [esp + 0x28]
mov dword [esp + 0xc], eax
mov eax, edi
mul ecx
mov ebx, eax
mov esi, edx
mov eax, dword [esp + 0xc]
mul ecx
mov ecx, eax
mov dword [esp + 0x28], edx
mov eax, edi
mul dword [esp + 0x10]
add eax, esi
mov edi, edx
mov esi, dword [esp + 0x1c]
adc edi, 0
add eax, ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xc]
adc edi, 0
mul dword [esp + 0x10]
xor ecx, ecx
or ecx, ebx
mov ebx, dword [esp + 0x20]
add eax, edi
mov edi, dword [esp + 0x14]
adc edx, 0
add eax, dword [esp + 0x28]
adc edx, 0
xor ecx, eax
mov eax, dword [esp + 0x30]
xor eax, edx
mov edx, dword [esp + 0x18]
add edi, ecx
mov dword [esp + 0x14], edi
adc edx, eax
mov eax, dword [esp + 0x3c]
add esi, 0x10
mov dword [esp + 0x18], edx
add ebx, 0x10
mov dword [esp + 0x1c], esi
sub dword [esp + 0x24], 1
mov dword [esp + 0x20], ebx
jne 0x474a70
push 0x16566791
mov ecx, edx
xor eax, eax
push 0x9e3779f9
shr ecx, 5
xor eax, edx
xor ecx, edi
push eax
push ecx
call fcn.00488190
mov ecx, edx
xor esi, esi
pop edi
xor eax, ecx
xor edx, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x483830
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004835b0

Function at 0x483840
Capabilities:
Hash data with crc32

Disassembly:
mov edx, ecx
movzx eax, dl
shr edx, 8
xor edx, dword [eax*4 + 0x4bdda0]
movzx eax, dl
shr edx, 8
xor edx, dword [eax*4 + 0x4bdda0]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x4bdda0]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x4bdda0]
mov eax, edx
ret

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

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00483880

Function at 0x49c674
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049c334
Function at 0x10005eab
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x100730e7
call fcn.1004e336
mov esi, ecx
mov dword [ebp - 0x30], esi
mov ecx, dword [ebp + 8]
or ebx, 0xffffffff
cmp ecx, ebx
sete al
test al, al
je 0x10005ed7
xor eax, eax
cmp ecx, ebx
cmovne eax, ecx
jmp 0x10006038
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x10005f05
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x10005f05
mov eax, dword [ebp + 8]
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], al
jmp 0x10006038
cmp dword [esi + 0x4c], 0
je 0x10006036
mov ecx, esi
call fcn.100068ee
xor ecx, ecx
cmp dword [esi + 0x38], ecx
jne 0x10005f35
push dword [esi + 0x4c]
mov esi, dword [ebp + 8]
push esi
call fcn.100038e0
test al, al
pop ecx
pop ecx
cmovne ebx, esi
jmp 0x10006036
mov eax, dword [ebp + 8]
push ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
lea ecx, [ebp - 0x28]
push 8
mov byte [ebp - 0x2c], al
mov dword [ebp - 0x14], 0xf
call fcn.1000686a
and dword [ebp - 4], 0
lea eax, [esi + 0x40]
mov dword [ebp - 0x34], eax
mov edi, dword [ebp - 0x14]
mov esi, dword [esi + 0x38]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmp edi, 0x10
lea edx, [ebp - 0x28]
mov edi, dword [esi]
cmovae ecx, dword [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
add eax, ecx
push eax
push edx
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
lea eax, [ebp - 0x2b]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x34]
call dword [edi + 0x1c]
test eax, eax
js 0x1000602a
cmp eax, 1
jg 0x1000600f
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp edi, 0x10
mov edx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x30]
cmovae eax, ecx
sub edx, eax
mov dword [ebp - 0x3c], edx
je 0x10005fe0
push dword [esi + 0x4c]
cmp edi, 0x10
lea eax, [ebp - 0x28]
push edx
cmovae eax, ecx
push 1
push eax
call fcn.100556d4
mov edx, dword [ebp - 0x3c]
add esp, 0x10
cmp edx, eax
jne 0x1000602a
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x40], eax
jne 0x1000600a
test edx, edx
jne 0x10005f60
cmp dword [ebp - 0x18], 0x20
jae 0x1000602a
push edx
push 8
lea ecx, [ebp - 0x28]
call fcn.1000275f
jmp 0x10005f5d
mov ebx, dword [ebp + 8]
jmp 0x1000602a
cmp eax, 3
jne 0x1000602a
mov eax, dword [ebp - 0x30]
push dword [eax + 0x4c]
push dword [ebp - 0x2c]
call fcn.100038e0
test al, al
pop ecx
cmovne ebx, dword [ebp + 8]
pop ecx
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.10001805
mov eax, ebx
call fcn.1004e2e0
ret 4
Function at 0x1000693c
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x10073135
call fcn.1004e336
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x10006a3c
cmp byte [ebx + 0x3d], 0
je 0x10006a3c
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x10006976
xor al, al
jmp 0x10006a3e
xor eax, eax
mov dword [ebp - 0x18], 0xf
push eax
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
call fcn.1000686a
and dword [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
lea eax, [ebp - 0x30]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x1c]
lea esi, [ebp - 0x2c]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x100069d4
sub eax, 1
je 0x100069d8
dec eax
sub eax, 1
je 0x10006a2a
xor bl, bl
jmp 0x10006a2c
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
cmp ecx, 0x10
mov esi, dword [ebp - 0x30]
cmovae eax, edx
sub esi, eax
je 0x10006a10
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.100556d4
add esp, 0x10
cmp esi, eax
jne 0x100069d0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
cmp byte [ebx + 0x3d], 0
je 0x10006a2a
test esi, esi
jne 0x1000699a
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.1000275f
jmp 0x10006994
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.10001805
mov al, bl
jmp 0x10006a3e
mov al, 1
call fcn.1004e2e0
ret
Function at 0x1000a3dc
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x100738d0
call fcn.1004e36d
mov ebx, edx
mov edi, ecx
and dword [ebp - 4], 0
push 0x28
mov byte [ebp - 4], 1
call fcn.1004d79f
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
and dword [esi + 0x24], 0
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x1000a418
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
push ebx
push edi
push esi
push 0x1000a446
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
jmp 0x1000a436
lea ecx, [ebp + 8]
call fcn.100094f8
mov eax, esi
call fcn.1004e2cb
ret
Function at 0x1000b762
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov ebx, ecx
push dword [ebp + 8]
call fcn.1000b851
mov edi, eax
test edi, edi
je 0x1000b7c4
push dword [ebp + 8]
push str.delete_stream_info_on_closed:__d_n
call fcn.1000a2f1
lea esi, [edi + 0xc]
cmp dword [esi + 0x14], 8
pop ecx
pop ecx
jb 0x1000b79a
mov eax, dword [esi]
jmp 0x1000b79c
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 1
lea ecx, [edi + 0x28]
call fcn.10001805
push 0
push 1
mov ecx, esi
call fcn.100065b4
push 0x44
push edi
call fcn.1004d9d6
pop ecx
pop ecx
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebx + 4]
call fcn.1000effa
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov dword [ebp - 4], edi
cmp edi, esi
je 0x1000b7f8
lea ecx, [ebp - 4]
call fcn.1000657a
cmp dword [ebp - 4], esi
jne 0x1000b7eb
push esi
push edi
lea eax, [ebp - 4]
push eax
lea ecx, [ebx + 4]
call fcn.1000dc61
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebx + 0x14]
call fcn.1000effa
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov dword [ebp + 0xc], edi
cmp edi, esi
je 0x1000b830
lea ecx, [ebp + 0xc]
call fcn.1000657a
cmp dword [ebp + 0xc], esi
jne 0x1000b823
push esi
push edi
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebx + 0x14]
call fcn.1000dc61
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10011625
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x100a0070]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x230], 0
lea eax, [ebp - 0x210]
push esi
push edi
push 0x208
mov edi, ecx
mov esi, edx
push 0
push eax
mov dword [ebp - 0x22c], edi
call fcn.10050900
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp dword [esi + 0x14], 8
jb 0x1001167b
mov esi, dword [esi]
push esi
push ecx
call fcn.10030905
pop ecx
push eax
lea eax, [ebp - 0x228]
push 0x1008a6a4
push eax
call fcn.100324b2
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x100116a0
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
push 1
lea ecx, [ebp - 0x228]
call fcn.100065b4
push ecx
push ecx
lea ecx, [ebp - 0x210]
call fcn.1002fde5
lea eax, [ebp - 0x210]
mov ecx, edi
push eax
call fcn.1000587d
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.1004d78e
mov esp, ebp
pop ebp
ret
Function at 0x10013f15
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10074a4a
mov eax, dword fs:[0]
push eax
mov eax, 0x1020
call fcn.1004e980
mov eax, dword [0x100a0070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x101c], edi
mov cl, byte [ebp + 0x10]
xor ebx, ebx
push ebx
push ebx
push 2
pop eax
push 4
pop esi
test cl, cl
mov byte [ebp - 0x1015], cl
cmovne eax, esi
push eax
push ebx
push ebx
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x1028], esi
mov dword [ebp - 4], ebx
test esi, esi
je 0x10014036
cmp esi, 0xffffffff
je 0x10014036
cmp byte [ebp - 0x1015], bl
je 0x10013fa5
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 8]
mov edi, dword [edi]
mov ecx, dword [ebp - 0x101c]
push ebx
cdq
push edx
push eax
call dword [edi + 8]
mov dword [ebp - 0x1024], ebx
jmp 0x10014004
push ebx
lea eax, [ebp - 0x1020]
push eax
push edi
lea eax, [ebp - 0x1014]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10014036
cmp dword [ebp - 0x1020], edi
jne 0x10014036
mov ecx, dword [ebp - 0x1024]
add ecx, dword [ebp - 0x1020]
cmp dword [ebp + 0xc], 0xffffffff
mov dword [ebp - 0x1024], ecx
je 0x10014004
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
cmp ecx, eax
jg 0x10014023
mov ecx, dword [ebp - 0x101c]
lea edx, [ebp - 0x1014]
push 0x1000
push edx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edi, eax
test edi, edi
jg 0x10013fbf
jmp 0x10014034
push ebx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov bl, 1
lea ecx, [ebp - 0x1028]
call fcn.1000391f
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1004d78e
mov esp, ebp
pop ebp
ret