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

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x1000ab91
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x1f4
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
pop ebp
ret 4
xor eax, eax
pop edi
pop ebp
ret 4

Function at 0x1000af40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push str.SoftwareTencentQQPCMgrPerfConfig
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1000af95
mov eax, dword [ebp + 0xc]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 8]
test eax, eax
push dword [ebp - 0x10]
cmovne ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 8

Function at 0x1000afe0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareTencentQQPCMgrPerfConfig
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x1000b039
push 4
lea eax, [ebp - 8]
push eax
push 4
push esi
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 8
Function at 0x1000ea30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, edx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x424], ecx
test edi, edi
je 0x1000ebdd
test ebx, ebx
je 0x1000ebdd
test esi, esi
je 0x1000ebdd
test eax, eax
je 0x1000ebdd
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x418], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push esi
lea ecx, [ebp - 0x414]
call fcn.1000e950
add esp, 0x1c
test eax, eax
jne 0x1000ead2
mov eax, dword [ebp - 0x418]
mov esi, 0x80004005
jmp 0x1000ebbd
push 0xffffffffffffffff
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
lea eax, [ebp - 0x20c]
push 0xffffffffffffffff
push 0x10067494
push 0x104
push eax
call esi
push 0x103
push dword [ebp - 0x41c]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call esi
add esp, 0x30
lea eax, [ebp - 0x20c]
push 1
push eax
push ecx
lea ecx, [ebp - 0x418]
call fcn.1000e750
test eax, eax
je 0x1000ebb2
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x41c], 0
test eax, eax
je 0x1000ebb8
lea ecx, [ebp - 0x41c]
push ecx
push 0
lea ecx, [ebp - 0x420]
push ecx
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000ebb2
mov eax, dword [ebp - 0x41c]
cmp eax, dword [ebp + 0x10]
jbe 0x1000eb89
mov dword [edi], eax
mov esi, 0x80028016
mov eax, dword [ebp - 0x418]
jmp 0x1000ebbd
lea eax, [ebp + 0x10]
push eax
push dword [ebp - 0x424]
lea ecx, [ebp - 0x418]
push ebx
call fcn.1000e8f0
test eax, eax
je 0x1000ebb2
mov eax, dword [ebp + 0x10]
xor esi, esi
mov dword [edi], eax
mov eax, dword [ebp - 0x418]
jmp 0x1000ebbd
mov eax, dword [ebp - 0x418]
mov esi, 0x80004005
test eax, eax
je 0x1000ebc8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
mov eax, 0x80004005
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1000ec00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
mov eax, edx
mov dword [ebp - 0x41c], eax
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x420], ecx
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x1000ed68
test edi, edi
je 0x1000ed68
test esi, esi
je 0x1000ed68
test eax, eax
je 0x1000ed68
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x418], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push esi
lea ecx, [ebp - 0x414]
call fcn.1000e950
add esp, 0x1c
test eax, eax
jne 0x1000eca2
mov eax, dword [ebp - 0x418]
mov esi, 0x80004005
jmp 0x1000ed48
push 0xffffffffffffffff
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
lea eax, [ebp - 0x20c]
push 0xffffffffffffffff
push 0x10067494
push 0x104
push eax
call esi
push 0x103
push dword [ebp - 0x41c]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call esi
add esp, 0x30
lea eax, [ebp - 0x20c]
push 0
push eax
push ecx
lea ecx, [ebp - 0x418]
call fcn.1000e750
test eax, eax
je 0x1000ed3d
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x1000ed43
mov esi, dword [ebp + 0x10]
push esi
push dword [ebp - 0x420]
push 3
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1000ed3d
mov eax, dword [ebp - 0x418]
mov dword [ebx], esi
xor esi, esi
jmp 0x1000ed48
mov eax, dword [ebp - 0x418]
mov esi, 0x80004005
test eax, eax
je 0x1000ed53
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
mov eax, 0x80004005
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1000f8b0
Capabilities:
Check for time delay via gettickcount
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
jne 0x1000f8f1
mov eax, dword [0x1007e434]
test eax, eax
jne 0x1000f8df
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov ecx, 1
cmp ecx, eax
sbb eax, eax
and eax, 0xffffffe0
add eax, 0x20
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
cmp eax, 8
jb 0x1000f98b
cmp eax, 0x20
jae 0x1000f916
pause
inc dword [esi + 0xc]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
jne 0x1000f970
call fcn.1000f800
mov ecx, 9
mov dword [esi + 8], eax
call fcn.10012320
lea ecx, [ebp - 0x10]
push ecx
call eax
test eax, eax
jne 0x1000f953
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
mov dword [esi], eax
inc dword [esi + 0xc]
mov dword [esi + 4], ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
inc dword [esi + 0xc]
mov dword [esi], eax
mov dword [esi + 4], ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
cmp dword [esi + 8], 0
jne 0x1000f99d
and al, 1
je 0x1000f9d8
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
test eax, eax
jne 0x1000f98b
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
inc dword [esi + 0xc]
xor ecx, ebp
pop esi
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
mov ecx, 9
call fcn.10012320
lea ecx, [ebp - 0x10]
push ecx
call eax
test eax, eax
jne 0x1000f9bb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
jmp 0x1000f9c1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
sub eax, dword [esi]
sbb ecx, dword [esi + 4]
test ecx, ecx
jb 0x1000f97a
ja 0x1000f9d1
cmp eax, dword [esi + 8]
jb 0x1000f97a
mov dword [esi + 8], 0
push 1
jmp 0x1000f985
Function at 0x100166f0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005dc98
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x1007b00c]
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 eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], 0xffffffff
mov eax, dword [eax]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x68], eax
cmp ecx, 0xc0000001
jg 0x1001677c
je 0x10016773
cmp ecx, 0x80000000
je 0x100167ad
cmp ecx, 0xc0000000
jne 0x10016784
mov dword [ebp - 0x64], 2
jmp 0x100167b4
mov dword [ebp - 0x64], 1
jmp 0x100167b4
cmp ecx, 0xc0000002
je 0x100167ad
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], 0x11
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.1000f590
push 0x10074260
lea eax, [ebp - 0x60]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
mov dword [ebp - 0x64], 4
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 4], 0
mov ebx, dword [0x1007e438]
test ebx, ebx
jne 0x100167d9
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x3c]
push 0
push ebx
push 0
push 0
call fcn.1005c9b0
mov esi, eax
mov ecx, 4
imul esi, ebx
neg esi
call fcn.10012320
mov ebx, dword [ebp - 0x68]
lea ecx, [ebp - 0x34]
push 0
push 0x10
push ecx
push 0
push ebx
call eax
test eax, eax
je 0x10016821
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x6c]
call fcn.1000f480
push ecx
mov eax, ecx
jmp 0x10016796
push 0
push esi
sub esp, 8
lea ecx, [ebp - 0x18]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.1000fac0
mov ecx, dword [ebp - 0x18]
add esp, 0x18
add ecx, esi
mov eax, esi
neg eax
mov edx, 0
push 0
push ecx
adc edx, edx
push eax
neg edx
push edx
push dword [ebp - 0x64]
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
test eax, eax
jne 0x10016874
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x6c]
call fcn.1000f480
push ecx
mov eax, ecx
jmp 0x10016796
add eax, esi
mov dword [edi + 8], esi
mov dword [edi], eax
mov eax, dword [ebp - 0x18]
push 0xffffffffffffffff
mov dword [edi + 4], eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [edi + 0x10]
push 2
push 0
push 0
push eax
call esi
push eax
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x100168e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x20]
call fcn.1000f480
mov ecx, edi
call fcn.1000fa80
push ecx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x98]
call fcn.1000f590
push 0x10074260
lea eax, [ebp - 0x98]
jmp 0x100167a7
mov eax, edi
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.1005b6db
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x1001c4e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x1007b00c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 0x1c], 0
je 0x1001c513
mov edi, 1
jmp 0x1001c5f3
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x10], 0xc
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x1001c55c
push 0
push 0
push 1
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
lea ecx, [esp + 0x18]
cmove ecx, dword [esp + 0x10]
mov dword [esp + 0x10], ecx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
lea eax, [esp + 0xc]
push str.Global5573A481_5F61_4a54_BFC4_33FC03248CDB
push 0
push 1
push eax
call ebx
mov dword [edi + 0x24], eax
test eax, eax
je 0x1001c5b1
push 0
push 0
push 0
push 0
call ebx
mov dword [edi + 0x28], eax
test eax, eax
je 0x1001c5b1
lea eax, [edi + 0x5c]
push eax
push 0
push edi
push 0x1001c7b0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [edi + 0x20], eax
test eax, eax
je 0x1001c5b1
mov dword [edi + 0x1c], 1
cmp dword [edi + 0x1c], 0
jne 0x1001c5f0
mov eax, dword [edi + 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1001c5ce
push eax
call ebx
mov dword [edi + 0x28], 0
mov eax, dword [edi + 0x24]
test eax, eax
je 0x1001c5df
push eax
call ebx
mov dword [edi + 0x24], 0
mov eax, dword [edi + 0x20]
test eax, eax
je 0x1001c5f0
push eax
call ebx
mov dword [edi + 0x20], 0
mov edi, dword [edi + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x2c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
Function at 0x1001d2a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005e198
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movups xmm0, xmmword [str.QMChangedSwitch]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x3c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x38], 0
movups xmm0, xmmword [0x1006835c]
mov eax, dword [ebx]
mov dword [ebx + 4], eax
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x3c], 0
xorps xmm0, xmm0
movq qword [ebp - 0x44], xmm0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
push 0x2001f
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0
call fcn.1001e6e0
mov edi, dword [ebp - 0x44]
test eax, eax
jne 0x1001d3e3
lea eax, [ebp - 0x38]
push eax
push 0
lea eax, [ebp - 0x34]
push eax
push 0
lea eax, [ebp - 0x30]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001d362
cmp dword [ebp - 0x34], 3
jne 0x1001d3e3
mov ecx, dword [ebp - 0x38]
mov esi, ecx
shr esi, 2
test eax, eax
jne 0x1001d3e3
test esi, esi
je 0x1001d3e3
test cl, 3
jne 0x1001d3e3
xor ecx, ecx
mov eax, esi
mov edx, 4
mul edx
push 0x1007da74
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1005be25
add esp, 8
mov dword [ebp - 0x34], eax
test eax, eax
je 0x1001d3e3
lea ecx, [ebp - 0x38]
push ecx
push eax
lea eax, [ebp - 0x48]
push eax
push 0
lea eax, [ebp - 0x30]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001d3d8
cmp dword [ebp - 0x48], 3
jne 0x1001d3d8
test esi, esi
je 0x1001d3d8
mov edi, dword [ebp - 0x34]
push edi
mov ecx, ebx
call fcn.1000f070
add edi, 4
sub esi, 1
jne 0x1001d3c5
mov edi, dword [ebp - 0x44]
push dword [ebp - 0x34]
call fcn.1005be17
add esp, 4
test edi, edi
je 0x1001d3ee
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret 4
Function at 0x10021360
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, edx
test ecx, ecx
je 0x10021447
xor eax, eax
cmp ax, word [ecx]
je 0x10021447
cmp dword [esi], eax
jne 0x10021447
push ebx
push 0
push 0x80
push 3
push 0
mov dword [esi], eax
mov eax, dword [ebp + 8]
push 1
push SysReAllocString
push ecx
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100213b6
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 0
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x10021417
cmp edi, 0xffffffff
je 0x10021417
push 0x1007da74
push edi
call fcn.1005be25
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x10021417
push 0
push dword [ebp + 8]
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10021417
mov eax, dword [ebp + 8]
cmp dword [eax], edi
jne 0x10021417
push ebx
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [esi]
test edi, edi
je 0x10021430
push edi
call fcn.1005be17
add esp, 4
test edi, edi
je 0x10021430
mov dword [esi], 0x8123
push ebx
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10021450
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
push esi
test ecx, ecx
je 0x10021515
xor eax, eax
cmp ax, word [ecx]
je 0x10021515
test ebx, ebx
je 0x10021515
mov esi, dword [ebp + 8]
test esi, esi
je 0x10021515
push edi
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100214bb
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100214f9
cmp dword [ebp - 8], esi
jne 0x100214f9
push edi
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
Function at 0x100215c0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x1007b00c]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edx
push edi
push 0x80
push 3
push edi
push 1
xor ebx, ebx
xorps xmm0, xmm0
push SysReAllocString
push ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
movq qword [esp + 0x44], xmm0
mov dword [esp + 0x4c], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x1002179a
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x1002177e
cmp esi, 0xffffffff
je 0x1002177e
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
je 0x1002177e
push edi
lea ecx, [esp + 0x24]
push ecx
push esi
push eax
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10021765
cmp esi, dword [esp + 0x20]
jne 0x10021765
push edi
push 0x80
push 2
push edi
push 1
push 0xc0000000
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x1002169f
xor esi, esi
mov dword [esp + 0x14], esi
jmp 0x10021765
mov ecx, esi
mov edx, esi
shr ecx, 0xe
mov eax, esi
shr edx, 0x19
add ecx, esi
shr eax, 0xc
add ecx, edx
add eax, 0xd
add eax, ecx
mov dword [esp + 0x10], eax
je 0x10021765
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x10021765
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push edi
mov edx, esi
call fcn.10021530
add esp, 8
test eax, eax
je 0x10021765
mov eax, dword [esp + 0x10]
mov edx, 0x26
push eax
push edi
push eax
push edi
mov ecx, str.C6642F75_8DBE_473d_A98B_940F84EF702C
call fcn.100241e0
add esp, 0x10
test eax, eax
jne 0x10021765
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x18]
push eax
push 0x10
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0x54534346
push eax
push esi
mov dword [esp + 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10021765
cmp dword [esp + 0x20], 0x10
jne 0x10021765
push 0
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x18]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10021765
mov eax, dword [esp + 0x10]
mov ecx, 1
cmp dword [esp + 0x20], eax
cmove ebx, ecx
push dword [esp + 0x18]
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call esi
add esp, 4
test edi, edi
je 0x1002177e
push edi
call esi
add esp, 4
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1002178f
push eax
call esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1002179a
push eax
call esi
mov ecx, dword [esp + 0x34]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret