joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10018350
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100552e6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x100735cc]
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 dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x100183fc
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x100183fc
call fcn.10017690
mov esi, eax
jmp 0x100184ec
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1001841f
call fcn.10017690
jmp 0x100184df
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x1001843d
call fcn.10017690
jmp 0x100184df
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x1001845e
mov esi, 0x8007000e
jmp 0x100184e1
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.10017560
jmp 0x10018488
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x1001849f
mov esi, 0x8007000e
jmp 0x100184e1
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x100184bf
call fcn.10017690
jmp 0x100184df
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.100181b0
mov esi, eax
test edi, edi
je 0x100184ec
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10018510
lea ecx, [ebp - 0x418]
call fcn.100179d0
nop word [eax + eax]
mov eax, esi
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.10028080
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1001b230
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100735cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push esi
push edi
push 0x208
push 0
push eax
mov edi, ecx
mov dword [ebp - 0x210], ebx
call fcn.10030d40
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [0x10075678]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call esi
push str.UtilsWebCtrl.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001b309
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1001b309
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetWebViewFactory
push esi
call ebx
test eax, eax
je 0x1001b2e7
call eax
mov dword [edi + 0xa4], eax
push str.IWebViewToIWebViewEx
push esi
call ebx
push str.IsSupportedWebViewEngine
push esi
mov dword [edi + 0xa8], eax
call ebx
mov ebx, dword [ebp - 0x210]
mov dword [edi + 0xac], eax
cmp dword [edi + 0xa4], 0
je 0x1001b355
mov eax, dword [edi + 0xac]
test eax, eax
je 0x1001b355
push 0
push 2
call eax
test eax, eax
je 0x1001b355
mov eax, dword [ebp + 8]
mov dword [edi + 0xb0], eax
lea eax, [edi + 0xb4]
push ebx
push eax
call dword [sym.imp.USER32.dll_CopyRect]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028080
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10028080
mov esp, ebp
pop ebp
ret 8
Function at 0x10022760
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10055a9e
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x100735cc]
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
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x228], 0
call fcn.10007950
mov ecx, eax
test ecx, ecx
je 0x100229b4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x228], 1
call fcn.10017cc0
add esp, 4
lea ecx, [ebp - 0x224]
mov esi, eax
push dword [esi + 0xc]
call fcn.10009e70
mov dword [ebp - 4], 1
call fcn.10007950
mov ecx, eax
test ecx, ecx
je 0x100229be
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push str.InstallDate
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 2
call fcn.1000b1c0
test al, al
jne 0x1002283c
push 0xb
push str.InstallDate
lea ecx, [ebp - 0x21c]
call fcn.10008640
cmp dword [esi], 2
mov byte [ebp - 4], 3
jne 0x10022857
push 4
push str.Date
lea ecx, [ebp - 0x21c]
call fcn.10008640
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
push 0x20219
push dword [ebp - 0x224]
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 4
push SysStringLen
call fcn.10017c10
mov esi, dword [ebp - 0x21c]
mov edi, dword [ebp - 0x238]
test eax, eax
jne 0x1002294e
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10030d40
add esp, 0xc
mov dword [ebp - 0x220], 0x208
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x22c]
push eax
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002294e
mov eax, dword [ebp - 0x22c]
cmp eax, 1
je 0x100228fb
cmp eax, 2
jne 0x1002294e
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x10022918
test al, 1
jne 0x1002294e
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], 0
je 0x10022921
jmp 0x1002294e
xor eax, eax
mov word [ebp - 0x218], ax
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10022930
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.10008640
test edi, edi
je 0x10022959
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10022977
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x224]
mov byte [ebp - 4], 0
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x10022996
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.10028080
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10006370
push 0x80004005
call fcn.10006370
int3
Function at 0x10022f60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10055a9e
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x100735cc]
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
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x228], 0
call fcn.10007950
mov ecx, eax
test ecx, ecx
je 0x10023194
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x228], 1
call fcn.10017cc0
add esp, 4
lea ecx, [ebp - 0x224]
mov eax, dword [eax + 0xc]
push eax
call fcn.10009e70
mov dword [ebp - 4], 1
call fcn.10007950
mov ecx, eax
test ecx, ecx
je 0x1002319e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push 0x1005eb4c
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 2
call fcn.1000b1c0
test al, al
jne 0x1002303b
push 3
push 0x1005eb4c
lea ecx, [ebp - 0x21c]
call fcn.10008640
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
push 0x20219
push dword [ebp - 0x224]
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 4
push SysStringLen
call fcn.10017c10
mov esi, dword [ebp - 0x21c]
mov edi, dword [ebp - 0x238]
test eax, eax
jne 0x1002312e
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10030d40
add esp, 0xc
mov dword [ebp - 0x220], 0x208
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x22c]
push eax
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002312e
mov eax, dword [ebp - 0x22c]
cmp eax, 1
je 0x100230df
cmp eax, 2
jne 0x1002312e
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x100230fc
test al, 1
jne 0x1002312e
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], 0
je 0x10023105
jmp 0x1002312e
xor eax, eax
mov word [ebp - 0x218], ax
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10023110
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.10008640
test edi, edi
je 0x10023139
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10023157
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x224]
mov byte [ebp - 4], 0
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x10023176
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.10028080
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10006370
push 0x80004005
call fcn.10006370
int3
Function at 0x100231f0
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [0x100735cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
js 0x10023384
push 0x208
lea eax, [ebp - 0x228]
push 0
push eax
call fcn.10030d40
add esp, 0xc
lea eax, [ebp - 0x228]
push 0x104
push eax
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x228]
push eax
call edi
test esi, esi
jle 0x1002325f
lea eax, [ebp - 0x228]
push eax
call edi
sub esi, 1
jne 0x10023251
lea eax, [ebp - 0x63c]
mov dword [ebp - 0x63c], 0
push eax
call fcn.100179e0
mov ecx, dword [ebp - 0x63c]
mov edi, eax
add esp, 4
mov esi, edi
lea ecx, [ecx + ecx*4]
shl ecx, 4
add ecx, edi
cmp edi, ecx
je 0x10023384
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
nop dword [eax + eax]
push 0x208
lea eax, [ebp - 0x638]
push 0
push eax
call fcn.10030d40
add esp, 0xc
lea eax, [ebp - 0x228]
push dword [esi + 8]
push eax
lea eax, [ebp - 0x638]
push eax
call ebx
lea eax, [ebp - 0x638]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [esi]
test eax, eax
jne 0x100233aa
cmp ecx, 2
jne 0x1002336b
push 0x208
push eax
lea eax, [ebp - 0x430]
push eax
call fcn.10030d40
add esp, 0xc
mov dword [ebp - 0x20], 0x61004d
lea eax, [ebp - 0x430]
mov dword [ebp - 0x1c], 0x740073
mov dword [ebp - 0x18], 0x720065
mov dword [ebp - 0x14], 0x440050
push 0
push 0x1a
push eax
push 0
mov dword [ebp - 0x10], 0x440046
mov dword [ebp - 0xc], 0x740061
mov dword [ebp - 8], 0x61
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x10023397
mov eax, dword [ebp - 0x63c]
add esi, 0x50
lea eax, [eax + eax*4]
shl eax, 4
add eax, edi
cmp esi, eax
jne 0x100232a0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028080
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028080
mov esp, ebp
pop ebp
ret
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10028080
mov esp, ebp
pop ebp
ret

Function at 0x10024950
Capabilities:
Get number of processors
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx]
test ecx, ecx
je 0x1002495f
pop ebp
jmp fcn.10025020
xor eax, eax
pop ebp
ret 0xc
Function at 0x10025020
Capabilities:
Get number of processors
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10055cb0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x100735cc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x30]
mov dword [ebp - 0x18], vtable._BaseModule::CAutoLocker.0
mov dword [ebp - 0x14], edi
test edi, edi
je 0x10025060
mov eax, dword [edi]
push edi
call dword [eax]
cmp dword [esi + 0x20], 0
mov dword [ebp - 4], 0
jl 0x10025077
mov esi, 1
jmp 0x100251c4
mov ebx, dword [ebp + 8]
mov dword [esi + 0x20], ebx
test ebx, ebx
jns 0x10025088
xor esi, esi
jmp 0x100251c4
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10025098
push eax
lea ecx, [esi + 0x2c]
call fcn.10010a40
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100250aa
push eax
lea ecx, [esi + 0x28]
call fcn.10010a40
jmp 0x100250e3
lea eax, [ebp + 8]
push ebx
push eax
call fcn.10022500
add esp, 8
push eax
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 1
call fcn.1000a6a0
mov edx, dword [ebp + 8]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100250e3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, esi
call fcn.10025350
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.10022260
add esp, 8
push dword [ebp - 0x10]
mov byte [ebp - 4], 2
push 0
push str.stat_rand
push str.statistic
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi + 0x18], eax
test eax, eax
jne 0x100251a0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.1004198e
add esp, 4
call fcn.1004196d
cdq
mov ecx, 0x64
idiv ecx
inc edx
mov dword [esi + 0x18], edx
call fcn.10007950
mov ecx, eax
test ecx, ecx
je 0x100251eb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
push dword [esi + 0x18]
lea eax, [ebp + 8]
mov byte [ebp - 4], 3
push 0x100578f4
push eax
call fcn.10007660
mov esi, dword [ebp + 8]
add esp, 0xc
push dword [ebp - 0x10]
push esi
push str.stat_rand
push str.statistic
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100251a0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov esi, 1
mov byte [ebp - 4], 0
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100251c4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 4
test edi, edi
je 0x100251d5
mov ecx, dword [edi]
push edi
call dword [ecx + 4]
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 0xc
push 0x80004005
call fcn.10006370
int3
Function at 0x10025200
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10055ce3
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x100735cc]
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
mov ebx, ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], 0
test esi, esi
je 0x100252a5
cmp word [esi], di
je 0x100252a5
test eax, eax
je 0x10025261
cmp word [eax], di
je 0x10025261
push edi
push edi
push eax
push esi
push edi
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
js 0x100252a5
jmp 0x100252a0
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.10030d40
add esp, 0xc
lea eax, [ebp - 0x420]
push 0
push 0
push 0x104
push eax
push esi
push 0
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
js 0x100252a5
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 1
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x1002531c
mov eax, dword [ebx + 0x20]
test eax, eax
js 0x10025307
lea esi, [ebx + 0x30]
mov dword [ebp - method._BaseModule::CAutoLocker.virtual_0], vtable._BaseModule::CAutoLocker.0
mov dword [ebp - 0x428], esi
test esi, esi
je 0x100252d5
mov eax, dword [esi]
push esi
call dword [eax]
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebp + 0x34]
mov byte [ebp - 4], 1
test eax, eax
js 0x100252f6
mov dword [ebp - 0x424], edi
test ecx, ecx
je 0x1002533c
mov eax, dword [ecx]
lea edx, [ebp - 0x424]
push edx
call dword [eax + 8]
mov ecx, dword [ebp + 0x34]
mov byte [ebp - 4], 2
test esi, esi
je 0x10025307
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x1002531c
mov edx, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
xor eax, eax
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.10028080
mov esp, ebp
pop ebp
ret 0x30
call fcn.1001bf41
int3
Function at 0x10027820
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10055fcb
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x100735cc]
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
mov edi, ecx
cmp dword [edi + 0x20], 8
lea esi, [edi + 0xc]
jb 0x1002785b
mov esi, dword [esi]
push 0x180
push 0x40
push 0x8101
lea ebx, [edi + 0x24]
push esi
push ebx
call fcn.100422d6
add esp, 0x14
mov dword [ebp - 0xac], eax
test eax, eax
je 0x1002792c
push 0x98
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.10030d40
add esp, 0xc
lea ecx, [ebp - 0xa8]
push 1
push 2
call fcn.10026380
push 0x1005ec98
push dword [ebp - 0xac]
lea eax, [ebp - 0xa8]
mov dword [ebp - 4], 0
push str._error.__
push esi
push str.open
push eax
call fcn.10008f50
add esp, 8
push eax
call fcn.10008f50
add esp, 8
push eax
call fcn.10008f50
add esp, 8
mov ecx, eax
call fcn.10002c40
push eax
call fcn.10008f50
add esp, 8
lea eax, [ebp - 0xc4]
lea ecx, [ebp - 0xa8]
push eax
call fcn.10027970
cmp dword [eax + 0x14], 8
jb 0x1002790f
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0xc4]
call fcn.10002840
lea ecx, [ebp - 0xa8]
call fcn.10002ee0
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x10027945
push 2
push 0
push eax
call fcn.100426ff
add esp, 0xc
mov dword [edi + 4], eax
jmp 0x1002794c
mov dword [edi + 4], 0xffffffff
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.10028080
mov esp, ebp
pop ebp
ret
Function at 0x10027cb0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100560c8
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x100735cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x44]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x30], esi
cmp eax, 2
je 0x10027e92
cmp eax, 1
jne 0x10027eaa
cmp byte [edi + 8], 0
je 0x10027d06
call fcn.10027820
mov byte [edi + 8], 0
cmp dword [edi + 4], 0x40000000
jle 0x10027d42
mov eax, dword [edi + 0x24]
cmp eax, 0xffffffff
je 0x10027d27
push eax
call fcn.100423a0
add esp, 4
mov dword [edi + 0x24], 0xffffffff
cmp dword [edi + 0x20], 8
lea eax, [edi + 0xc]
jb 0x10027d32
mov eax, dword [eax]
push eax
call fcn.100419c8
add esp, 4
mov ecx, edi
call fcn.10027820
cmp dword [edi + 0x28], 0
jne 0x10027ddd
push 0
lea eax, [ebp - 0x60]
push esi
push eax
call fcn.10027a30
add esp, 0xc
push 2
push 0x1005ecd8
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.10004980
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x48], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x38], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x48]
cmp dword [ebp - 0x34], 0x10
mov ecx, dword [edi + 0x24]
cmovae eax, dword [ebp - 0x48]
cmp ecx, 0xffffffff
je 0x10027dc2
push dword [ebp - 0x38]
push eax
push ecx
call fcn.10042cb5
add esp, 0xc
jmp 0x10027dc5
or eax, 0xffffffff
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x2c], eax
call fcn.100027f0
lea ecx, [ebp - 0x60]
call fcn.100027f0
jmp 0x10027e86
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push 0
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 1
push esi
push eax
call fcn.10027a30
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
push ecx
lea ecx, [edi + 0x2c]
push ecx
push eax
call fcn.10020c00
add esp, 0x18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
mov esi, eax
call fcn.100027f0
test esi, esi
jne 0x10027e38
push 0xd
push str.write_failed.
lea ecx, [ebp - 0x28]
call fcn.1001c9d8
push 0x1005ecd8
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.10025b60
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x10027e58
mov eax, dword [eax]
mov ecx, dword [edi + 0x24]
cmp ecx, 0xffffffff
je 0x10027e6d
push edx
push eax
push ecx
call fcn.10042cb5
add esp, 0xc
jmp 0x10027e70
or eax, 0xffffffff
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x2c], eax
call fcn.100027f0
lea ecx, [ebp - 0x28]
call fcn.100027f0
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
test eax, eax
jle 0x10027e92
add dword [edi + 4], eax
jmp 0x10027eaa
cmp dword [esi + 0x14], 8
jb 0x10027e9a
mov esi, dword [esi]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call esi
push 0x1005ecd0
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10028080
mov esp, ebp
pop ebp
ret 4

Function at 0x1002a750
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.1002a320