joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40407b
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xf90]
mov eax, 0x1010
call fcn.00412b20
mov eax, dword [0x42cc20]
xor eax, ebp
mov dword [ebp + 0xf8c], eax
mov eax, dword [ebp + 0xf98]
push ebx
push esi
mov esi, dword [0x4243e0]
xor ebx, ebx
push ebx
mov dword [ebp - 0x7c], eax
push 4
lea eax, [ebp - 0x78]
push eax
push dword [edi]
call esi
cmp eax, 4
je 0x4040c1
xor eax, eax
jmp 0x404109
cmp dword [ebp - 0x78], ebx
jbe 0x4040f8
push 0
push 0x1000
lea eax, [ebp - 0x74]
push eax
push dword [edi]
call esi
mov dword [ebp - 0x80], eax
test eax, eax
je 0x4040f8
mov ecx, dword [ebp - 0x7c]
push dword [ecx]
push eax
lea eax, [ebp - 0x74]
push 1
push eax
call fcn.0040eeac
add ebx, dword [ebp - 0x80]
add esp, 0x10
cmp ebx, dword [ebp - 0x78]
jb 0x4040c6
mov eax, dword [ebp - 0x7c]
push dword [eax]
call fcn.0040ecce
cmp ebx, dword [ebp - 0x78]
pop ecx
sbb eax, eax
inc eax
mov ecx, dword [ebp + 0xf8c]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e5e6
add ebp, 0xf90
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10005e8c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1007b4bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0x1006150c
push eax
lea eax, [ebp - 0x28]
xor esi, esi
push eax
call fcn.10044283
add esp, 0xc
test eax, eax
jne 0x10005ef0
push dword [ebp - 0x28]
lea eax, [ebp - 0x24]
push 0x20
push 1
push eax
call fcn.1004458c
add esp, 0x10
cmp eax, 0x20
jne 0x10005ee7
lea eax, [ebp - 0x24]
cmp dword [eax], 0x49444851
jne 0x10005ee7
cmp dword [eax + 4], 0x31304646
jne 0x10005ee7
push 2
pop esi
push dword [ebp - 0x28]
call fcn.10044340
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1003eec9
leave
ret
Function at 0x1000730e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
test edi, edi
je 0x1000731f
mov dword [edi], ecx
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1000746b
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x13c4], ecx
test eax, eax
je 0x1000746b
mov ebx, dword [ebp + 0x14]
test ebx, ebx
js 0x1000746b
cmp byte [esi + 0x1390], cl
je 0x10007361
test edi, edi
je 0x10007355
or dword [edi], 0xffffffff
or dword [esi + 0x13c4], 0xffffffff
jmp 0x1000747e
test ebx, ebx
jne 0x10007376
test edi, edi
je 0x1000736b
mov dword [edi], ecx
mov dword [esi + 0x13c4], ecx
jmp 0x1000747e
mov dword [esi + 0x13a8], ebx
mov dword [esi + 0x13a4], eax
jmp 0x1000741a
cmp dword [esi + 0x1398], 0
jne 0x100073d7
push dword [esi]
call fcn.1000656a
pop ecx
test al, al
jne 0x100073d7
push dword [esi]
lea eax, [esi + 4]
push 0x1388
push 1
push eax
call fcn.1004458c
push dword [esi]
mov dword [ebp + 8], eax
call fcn.10045607
add esp, 0x14
test eax, eax
jne 0x1000742a
mov eax, dword [ebp + 8]
mov dword [esi + 0x138c], eax
mov dword [esi + 0x1398], eax
lea eax, [esi + 4]
mov dword [esi + 0x1394], eax
lea eax, [esi + 0x1394]
push eax
call fcn.10007107
test eax, eax
jne 0x1000744e
push dword [esi]
call fcn.1000656a
pop ecx
test al, al
je 0x10007410
xor eax, eax
cmp dword [esi + 0x1398], eax
jne 0x10007412
cmp dword [esi + 0x13a8], eax
jbe 0x10007412
push 0xfffffffffffffff9
pop eax
test edi, edi
je 0x10007478
mov dword [edi], eax
jmp 0x10007478
xor eax, eax
cmp dword [esi + 0x13a8], eax
je 0x10007440
push dword [esi]
call fcn.10045607
pop ecx
test eax, eax
je 0x10007387
test edi, edi
je 0x10007434
mov dword [edi], 0xfffffffa
mov dword [esi + 0x13c4], 0xfffffffa
jmp 0x1000747e
test edi, edi
je 0x10007446
mov dword [edi], eax
mov dword [esi + 0x13c4], eax
jmp 0x10007467
push 4
pop ecx
cmp eax, ecx
jne 0x10007408
test edi, edi
je 0x1000745b
mov dword [edi], ecx
sub ebx, dword [esi + 0x13a8]
mov dword [esi + 0x13c4], ecx
mov eax, ebx
jmp 0x10007480
push 0xfffffffffffffffe
pop eax
test edi, edi
je 0x10007474
mov dword [edi], eax
test esi, esi
je 0x1000747e
mov dword [esi + 0x13c4], eax
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
or ecx, 0xffffffff
push esi
mov esi, dword [ebp + 8]
test edx, edx
je 0x1000b9fe
movsx eax, byte [esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x1007ac98]
inc esi
sub edx, 1
jne 0x1000b9e6
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x1000bb21
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
lea eax, [ebp - 4]
push edi
xor edi, edi
push edi
push 1
push edi
push edi
push eax
mov dword [ebp - 4], edi
call esi
test eax, eax
jne 0x1000bb62
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x1000bb5e
push 8
push 1
push edi
push edi
lea eax, [ebp - 4]
push eax
call esi
test eax, eax
jne 0x1000bb62
xor eax, eax
jmp 0x1000bb7f
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push edi
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x1000e077
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x1007b4bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x30]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x38], ecx
push esi
push eax
push 0x18
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000e192
cmp dword [ebp - 0x30], 0x18
jne 0x1000e192
cmp dword [ebp - 0x2c], 3
jne 0x1000e192
mov eax, dword [ebp - 0x28]
mov ecx, 0x23c
cmp eax, ecx
jb 0x1000e192
xor edx, edx
div ecx
test edx, edx
jne 0x1000e192
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xa00000
jg 0x1000e192
cmp dword [ebp - 0x34], esi
jne 0x1000e192
mov edx, dword [ebp - 0x28]
lea ecx, [edx + 0x18]
cmp eax, ecx
jne 0x1000e192
push edx
call fcn.1003f5d0
mov edi, eax
pop ecx
test edi, edi
je 0x1000e192
push esi
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x28]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000e183
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x30], eax
jne 0x1000e183
lea ecx, [ebp - 0x14]
push ecx
push eax
push edi
call fcn.1000efa5
add esp, 0xc
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x24]
mov eax, dword [ecx + esi*4]
cmp eax, dword [edx + esi*4]
jne 0x1000e183
inc esi
cmp esi, 4
jne 0x1000e14c
mov ebx, dword [ebp - 0x38]
lea esi, [ebx + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x28]
xor edx, edx
mov ecx, 0x23c
div ecx
mov ecx, ebx
push eax
push edi
call fcn.1000e9a3
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 1
push edi
call fcn.1003eead
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x1000e194
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003eec9
leave
ret 4
Function at 0x1000e3d1
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x1005d29e
call fcn.1003ef45
mov esi, ecx
mov dword [ebp - 0x38], esi
mov eax, dword [ebp + 8]
test eax, eax
je 0x1000e541
xor ebx, ebx
cmp dword [esi + 0x28], ebx
jne 0x1000e3fc
xor eax, eax
inc eax
jmp 0x1000e541
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
push ebx
push ebx
push 0x80
push 2
push 7
push 0x40000000
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], ebx
call fcn.1000de11
test eax, eax
jne 0x1000e530
lea edi, [esi + 0xc]
push edi
mov dword [ebp - 0x2c], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
imul eax, dword [esi + 8], 0x23c
mov dword [ebp - 0x28], 3
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x1000e457
push edi
mov dword [esi + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1000e52d
push eax
call fcn.1003f5d0
mov edi, eax
mov dword [ebp - 0x3c], edi
pop ecx
test edi, edi
jne 0x1000e476
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1000e530
mov ecx, dword [esi + 4]
mov edx, edi
mov eax, dword [ecx]
mov dword [ebp - 0x2c], eax
cmp eax, ecx
je 0x1000e4b7
mov ebx, dword [ebp - 0x38]
mov edi, edx
lea esi, [eax + 0x14]
mov ecx, 0x8f
add edx, 0x23c
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x40], edx
call fcn.1000a9ce
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x40]
cmp eax, dword [ebx + 4]
jne 0x1000e487
mov esi, dword [ebp - 0x38]
xor ebx, ebx
mov edi, dword [ebp - 0x3c]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
push edi
call fcn.1000efa5
add esp, 0xc
mov dword [esi + 0x28], ebx
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x7d0
push 1
push dword [ebp - 0x34]
call fcn.1000f7ee
add esp, 0xc
test eax, eax
je 0x1000e523
push ebx
lea eax, [ebp - 0x3c]
push eax
push 0x18
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1000e507
call fcn.1000ddfa
push ebx
push dword [ebp - 0x24]
lea ecx, [ebp - 0x34]
push edi
call fcn.1000e59a
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
push ebx
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_UnlockFile]
push 1
push edi
call fcn.1003eead
pop ecx
pop ecx
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x34], 0
je 0x1000e53f
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
call fcn.1003eeef
ret 4
Function at 0x1000f234
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x654
mov eax, dword [0x1007b4bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, 0x1007de98
push esi
push edi
mov edi, dword [ebp + 8]
push ebx
push edi
call fcn.10021228
test eax, eax
jne 0x1000f2ed
push 0x118
xor esi, esi
lea eax, [edi + 4]
push esi
push eax
call fcn.10040d30
add esp, 0xc
mov dword [edi], 0x11c
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
imul eax, dword [edi + 4], 0xa
push str.RtlGetVersion
push str.ntdll
add eax, dword [edi + 8]
or dword [ebx], 0xffffffff
mov dword [ebp - 0x654], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000f303
lea ecx, [ebp - 0x530]
mov dword [ebp - 0x530], 0x11c
push ecx
call eax
test eax, eax
js 0x1000f303
imul eax, dword [ebp - 0x52c], 0xa
add eax, dword [ebp - 0x528]
cmp eax, dword [ebp - 0x654]
jle 0x1000f2ff
push 0x47
pop ecx
lea esi, [ebp - 0x530]
mov dword [ebx], 1
rep movsd dword es:[edi], dword [esi]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003eec9
leave
ret
mov dword [ebx], esi
jmp 0x1000f2ed
push 0x410
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.10040d30
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push esi
push esi
push 0x25
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1000f3bb
push str._ntoskrnl.exe
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x1000f3bb
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000f3bb
push 8
lea eax, [ebp - 0x650]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.1000def4
mov ecx, eax
call fcn.1000e1f6
test eax, eax
je 0x1000f3bb
test byte [ebp - 0x650], 8
je 0x1000f3bb
mov eax, dword [ebp - 0x420]
mov ecx, eax
shr ecx, 0x10
movzx edx, ax
imul eax, ecx, 0xa
add eax, edx
cmp dword [ebp - 0x654], eax
jge 0x1000f2ff
mov eax, dword [ebp - 0x41c]
xor esi, esi
shr eax, 0x10
inc esi
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
jmp 0x1000f2ff
xor eax, eax
jmp 0x1000f2f0
Function at 0x1000f424
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x238
mov eax, 0x1005d33b
call fcn.1003efb3
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x240], eax
mov ebx, esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x244], eax
lea eax, [ebp - 0x238]
push eax
push 1
push esi
push dword [0x1007b0a4]
mov dword [ebp - 0x23c], esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000f67f
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x224]
push eax
push esi
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x22c], 7
push eax
push esi
push dword [0x1007b0a8]
mov dword [ebp - 0x224], esi
push dword [ebp - 0x238]
call edi
test eax, eax
je 0x1000f4b8
cmp eax, 0xea
jne 0x1000f673
cmp dword [ebp - 0x22c], 7
jne 0x1000f673
mov eax, dword [ebp - 0x224]
add eax, 0x64
push eax
call fcn.1003f5d0
mov esi, eax
pop ecx
test esi, esi
je 0x1000f673
lea eax, [ebp - 0x224]
xor ecx, ecx
push eax
push esi
lea eax, [ebp - 0x22c]
mov dword [esi], ecx
push eax
push ecx
push dword [0x1007b0a8]
push dword [ebp - 0x238]
call edi
test eax, eax
jne 0x1000f66c
mov edx, eax
mov ecx, eax
mov eax, dword [ebp - 0x224]
mov edi, esi
add eax, esi
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x234], ecx
cmp esi, eax
jmp 0x1000f660
test dl, 1
jne 0x1000f593
push 4
push 0x100618c4
xor eax, eax
push edi
mov dword [ebp - 0x234], eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNW]
test eax, eax
jne 0x1000f61f
push eax
lea eax, [ebp - 0x220]
push eax
push 0x106
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x1000f61f
push dword [ebp - 0x240]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x1000f61f
inc eax
mov dword [ebp - 0x234], eax
jmp 0x1000f61f
test ecx, ecx
je 0x1000f625
push 0x100618c4
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrW]
mov edi, eax
test edi, edi
jne 0x1000f5b5
mov edi, dword [ebp - 0x230]
jmp 0x1000f5b8
add edi, 8
xor eax, eax
push 0x20c
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.10040d30
xor ecx, ecx
add esp, 0xc
cmp word [edi], cx
je 0x1000f5ec
push ecx
lea eax, [ebp - 0x220]
push eax
push 0x106
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
xor ecx, ecx
mov eax, dword [ebp - 0x244]
test eax, eax
jne 0x1000f600
xor ebx, ebx
cmp word [edi], cx
sete bl
jmp 0x1000f615
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
test ebx, ebx
jne 0x1000f66c
mov edi, dword [ebp - 0x230]
mov edx, dword [ebp - 0x228]
mov ecx, edi
inc edx
mov dword [ebp - 0x228], edx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x23c]
jne 0x1000f631
mov eax, dword [ebp - 0x224]
sub ecx, edx
mov edx, dword [ebp - 0x228]
add eax, esi
sar ecx, 1
lea edi, [edi + ecx*2]
mov ecx, dword [ebp - 0x234]
add edi, 2
cmp edi, eax
mov dword [ebp - 0x230], edi
jb 0x1000f52a
push esi
call fcn.1003f5d9
pop ecx
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
call fcn.1003ef00
ret
Function at 0x1000f8f1
Capabilities:
Check if file exists
Create directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1000f939
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000f925
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1000f934
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x1000f939
xor eax, eax
inc eax
jmp 0x1000f93b
xor eax, eax
pop esi
pop ebp
ret

Function at 0x1000fb2b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push dword [esi + 0x10]
call fcn.1000a48c
pop ecx
test eax, eax
je 0x1000fb46
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop esi
pop ebp
ret

Function at 0x1000fb49
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x1007b4bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.1000a48c
pop ecx
test eax, eax
je 0x1000fc18
push edi
push 0x44
pop edi
push edi
lea eax, [ebp - 0x468]
push 0
push eax
call fcn.10040d30
mov ax, word [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 0x468], edi
lea edi, [ebp - 0x424]
mov word [ebp - 0x438], ax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x414]
pop edi
test ebx, ebx
je 0x1000fbc8
push ebx
push esi
push str.__s___s
push 0x208
push eax
call fcn.1000fed9
add esp, 0x14
jmp 0x1000fbdc
push esi
push str.__s_
push 0x208
push eax
call fcn.1000fed9
add esp, 0x10
xor ecx, ecx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x468]
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
lea eax, [ebp - 0x414]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1000fc18
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x424]
jmp 0x1000fc1a
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1003eec9
leave
ret

Function at 0x1000fff7
Capabilities:
Check if file exists
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, 0x80
test eax, eax
je 0x10010017
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push esi
push 4
push 0
push 3
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
pop esi
cmp eax, 0xffffffff
jne 0x10010038
xor eax, eax
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop ebp
ret
Function at 0x10010c56
Capabilities:
Write file on windows

Disassembly:
push 0xc
mov eax, 0x1005d4fc
call fcn.1003ef45
call fcn.1000ada5
push eax
lea ecx, [ebp - 0x14]
call fcn.1000a8c4
lea eax, [ebp + 0x18]
xor ebx, ebx
push eax
push dword [ebp + 0x14]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.1000f0db
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x18], ebx
cmp dword [ebp + 0x10], ebx
je 0x10010c9d
mov eax, dword [esi - 0xc]
lea ecx, [ebp - 0x18]
push ebx
push ecx
add eax, eax
push eax
push esi
jmp 0x10010cef
test esi, esi
je 0x10010cfa
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x10010ca6
sub ecx, edx
sar ecx, 1
lea edi, [ecx + 1]
cmp edi, 0x3fffffff
jg 0x10010cfa
add edi, edi
mov eax, edi
call fcn.1003f5e0
mov eax, esp
push ebx
push edi
push esi
push eax
call fcn.10010bbe
mov edx, eax
test edx, edx
je 0x10010cfa
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10010cdf
push ebx
lea eax, [ebp - 0x18]
sub ecx, edi
push eax
push ecx
push edx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
lea ecx, [esi - 0x10]
call fcn.10009de4
mov eax, ebx
lea esp, [ebp - 0x28]
call fcn.1003eeef
ret

Function at 0x100110b8
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
call fcn.10010c1d
push dword [ebp + 8]
call fcn.10009f9c
pop ecx
push eax
push dword [ebp + 8]
lea ecx, [ebx + 0x1c]
call fcn.10009f28
mov eax, dword [ebp + 0xc]
xor esi, esi
push 0x7d0
push esi
push dword [ebp + 8]
mov ecx, ebx
mov dword [ebx + 4], eax
call fcn.10011acc
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x10011103
xor eax, eax
jmp 0x100111ae
push edi
lea ecx, [ebp - 8]
mov dword [ebp - 8], esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, esi
mov dword [ebp - 4], eax
cmp dword [ebp - 8], esi
jne 0x10011174
lea ecx, [eax - 7]
cmp ecx, 0x31ffff8
ja 0x10011174
add eax, 4
push eax
mov dword [ebp - 0xc], eax
call fcn.1003f5d0
mov edi, eax
pop ecx
test edi, edi
je 0x10011174
push dword [ebp - 0xc]
push esi
push edi
call fcn.10040d30
add esp, 0xc
mov dword [ebp - 0xc], esi
lea eax, [ebp - 0xc]
push esi
push eax
push dword [ebp - 4]
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10011168
mov eax, dword [ebp - 4]
cmp dword [ebp - 0xc], eax
je 0x10011174
push 1
push edi
call fcn.1003eead
pop ecx
pop ecx
mov edi, esi
push dword [ebp - 0x10]
mov ecx, ebx
call fcn.10011b2e
test edi, edi
je 0x1001119a
push esi
push dword [ebp - 4]
mov ecx, ebx
push edi
call fcn.10011870
xor esi, esi
inc esi
push esi
push edi
call fcn.1003eead
pop ecx
pop ecx
cmp dword [ebp + 0xc], 0
pop edi
je 0x100111ac
push dword [ebp + 8]
lea ecx, [ebx + 0x14]
call fcn.1001101d
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x10011476
Capabilities:
Write file on windows

Disassembly:
push 0x18
mov eax, 0x1005d646
call fcn.1003ef11
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [ebp - 0x18], 0xfeff
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
push edi
push edi
push 0x80
push 2
push edi
push 0x40000000
push dword [ebp + 8]
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], edi
call fcn.1000de11
mov ebx, dword [ebp - 0x24]
test eax, eax
jne 0x10011590
cmp dword [ebp + 0xc], edi
je 0x100114ea
push edi
lea eax, [ebp + 8]
push eax
push 2
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100114e0
call fcn.1000ddfa
jmp 0x100114e2
mov eax, edi
test eax, eax
jne 0x10011590
lea eax, [esi + 0x20]
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0xc]
mov byte [ebp - 4], 1
mov esi, dword [eax]
mov dword [ebp - 0x14], esi
cmp esi, eax
je 0x10011584
mov eax, dword [ebp - 0x10]
push dword [esi + 0x10]
push str.__s__r_n
push dword [ebp + 0xc]
push ebx
push eax
call fcn.10010c56
add esp, 0x14
test eax, eax
je 0x10011587
mov eax, dword [esi + 0x14]
mov ecx, dword [eax]
mov dword [ebp + 8], ecx
cmp ecx, eax
je 0x1001155d
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push str._s_s_r_n
push dword [ebp + 0xc]
push ebx
push dword [ebp - 0x10]
call fcn.10010c56
add esp, 0x18
test eax, eax
je 0x10011587
lea ecx, [ebp + 8]
call fcn.1000a9ce
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 0x14]
jne 0x1001152f
push 0x10061914
push dword [ebp + 0xc]
push ebx
push dword [ebp - 0x10]
call fcn.10010c56
add esp, 0x10
lea ecx, [ebp - 0x14]
call fcn.1000a9ce
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
cmp esi, dword [eax + 0xc]
jne 0x1001150a
xor edi, edi
inc edi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
je 0x1001159b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
call fcn.1003eeda
ret 8