joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43df58
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 0x2bc
mov eax, 0x4500c0
call fcn.00447ac5
mov edi, ecx
push str.Expected_non_NULL_setup_log_location
push str._pSetupLogsLocation___NULL_
push str.WatsonReport::GetSetupLogsLocation
test edi, edi
push 0x10a
setne al
movzx eax, al
push str.d:dbs_shodct0629_224505_0cmdhclientonedriveProductUXSharedWatsonReport.cpp
push eax
call fcn.0043cf85
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
mov esi, 0x80004005
call sub.VCRUNTIME140.dll_memset
add esp, 0x24
lea eax, [ebp - 0x218]
push ebx
push 0x26
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, 1
jne 0x43e055
push 0x98
lea eax, [ebp - 0x2b0]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
pop ecx
pop ecx
lea ecx, [ebp - 0x2b0]
call fcn.0041e2c9
lea edx, [ebp - 0x218]
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x2b0]
call fcn.0041f170
mov edx, str._
mov ecx, eax
call fcn.0041f410
mov edx, 0x475aa4
mov ecx, eax
call fcn.0041f3f8
lea eax, [ebp - 0x2c8]
push eax
lea ecx, [ebp - 0x2ac]
call fcn.0041ef40
lea eax, [ebp - 0x2c8]
mov ecx, edi
push eax
call fcn.0040a898
lea ecx, [ebp - 0x2c8]
call fcn.0040521a
lea ecx, [ebp - 0x260]
mov esi, ebx
call fcn.0041e297
lea ecx, [ebp - 0x260]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
mov eax, esi
call fcn.00447a6f
ret

Function at 0x43e452
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.SHELL32.dll_ShellExecuteW]

Function at 0x43e672
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop ebp
ret 0x2c

Function at 0x43e7c2
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]

Function at 0x43e992
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.WININET.dll_InternetGetConnectedState]

Function at 0x43ebc2
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.USER32.dll_GetClipboardData]
Function at 0x441901
Capabilities:
Get disk information
Get disk size

Disassembly:
push 0x54
mov eax, 0x450545
call fcn.00447ac5
mov esi, ecx
push 8
lea edx, [esi + 0x14]
pop edi
cmp dword [edx + 0x14], edi
jb 0x44191c
mov edx, dword [edx]
lea ecx, [ebp - 0x38]
call fcn.00421084
and dword [ebp - 4], 0
lea edx, [esi + 0x2c]
cmp dword [edx + 0x14], edi
jb 0x441932
mov edx, dword [edx]
lea ecx, [ebp - 0x50]
call fcn.00421084
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
cmp dword [ebp - 0x24], edi
lea eax, [ebp - 0x38]
push 0
cmovae eax, dword [ebp - 0x38]
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0x58]
movlpd qword [ebp - 0x58], xmm0
push ecx
push eax
movlpd qword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push dword [ebp - 0x1c]
cmp dword [ebp - 0x24], edi
lea eax, [ebp - 0x38]
push dword [ebp - 0x20]
cmovae eax, dword [ebp - 0x38]
mov edx, 0x234
push eax
push ecx
call fcn.00440006
cmp dword [ebp - 0x3c], edi
lea ecx, [ebp - 0x18]
push 0
push ecx
lea ecx, [ebp - 0x60]
xorps xmm0, xmm0
lea eax, [ebp - 0x50]
movlpd qword [ebp - 0x60], xmm0
cmovae eax, dword [ebp - 0x50]
push ecx
push eax
movlpd qword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push dword [ebp - 0x14]
cmp dword [ebp - 0x3c], edi
lea eax, [ebp - 0x50]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x50]
mov edx, 0x239
push eax
push ecx
call fcn.00440006
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x4419ea
cmp dword [ebp - 0x24], edi
lea eax, [ebp - 0x38]
push 0x5c
cmovae eax, dword [ebp - 0x38]
pop edx
cmp word [eax + ecx*2 - 2], dx
je 0x4419ea
push edx
lea ecx, [ebp - 0x38]
call fcn.004202a1
cmp dword [ebp - 0x24], edi
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push 4
pop ecx
cmp eax, ecx
je 0x441a2c
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], ecx
jb 0x441a19
ja 0x441a14
cmp eax, dword [ebp - 0x20]
jbe 0x441a19
xor ecx, ecx
inc ecx
jmp 0x441a2c
cmp ecx, dword [ebp - 0x14]
jb 0x441a29
ja 0x441a25
cmp dword [ebp - 0x20], eax
jbe 0x441a29
push 2
jmp 0x441a2b
push 3
pop ecx
push dword [ebp + 8]
push ecx
push ecx
call fcn.004400b1
lea ecx, [ebp - 0x50]
call fcn.0040521a
lea ecx, [ebp - 0x38]
call fcn.0040521a
call fcn.00447a6f
ret 4
Function at 0x446220
Capabilities:
Get common file path

Disassembly:
push 0x444
mov eax, 0x450ce0
call fcn.00447ac5
mov esi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], cx
mov dword [ebp - 4], ebx
cmp word [eax], bx
jne 0x446288
push 0x410
lea eax, [ebp - 0x420]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x446294
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x438]
call fcn.0040acef
mov ecx, dword [ebp - 0x428]
test ecx, ecx
je 0x4462db
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x4462db
dec ecx
lea eax, [ebp - 0x438]
cmp dword [ebp - 0x424], 8
mov dword [ebp - 0x428], ecx
cmovae eax, dword [ebp - 0x438]
xor edx, edx
mov word [eax + ecx*2], dx
mov ecx, esi
call fcn.00446470
cmp dword [ebp - 0x424], 8
lea edx, [ebp - 0x438]
lea ecx, [ebp - 0x450]
cmovae edx, dword [ebp - 0x438]
call fcn.004210fa
cmp dword [eax + 0x14], 8
jb 0x446309
mov eax, dword [eax]
push ebx
push 0x2000000
push 3
push ebx
push 7
push 0x100001
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebp - 0x450]
mov dword [esi + 0x1c], eax
call fcn.0040521a
cmp dword [esi + 0x1c], 0xffffffff
je 0x44633d
mov ecx, esi
call method.BasicDirectoryListing.virtual_8
mov bl, al
lea ecx, [ebp - 0x438]
call fcn.0040521a
mov al, bl
call fcn.00447a6f
ret 4
Function at 0x100025e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x10236d1c], 0
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
jne 0x1000269a
xor ebx, ebx
nop dword [eax]
mov edx, ebx
mov eax, ebx
shr eax, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, eax
mov eax, edx
shr edx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, edx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [ebx*4 + 0x10236d18], eax
inc ebx
cmp ebx, 0x100
jb 0x10002600
mov ebx, dword [ebp + 8]
not ebx
mov eax, ebx
test edi, edi
jle 0x100026c6
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10236d18]
sub edi, 1
jne 0x100026a5
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x100026f8
nop dword [eax]
cmp cl, 0x23
jne 0x100026df
cmp byte [esi], cl
jne 0x100026df
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x10236d18]
test cl, cl
jne 0x100026d0
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
Function at 0x10002ab0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
test ebx, ebx
je 0x10002ac2
mov dword [ebx], 0
push 0x10031430
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x10002adb
pop esi
pop ebx
pop ebp
ret
push edi
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10002b93
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x10002b93
push 0
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10002b93
mov ecx, dword [0x1003b0a8]
lea eax, [edi + 1]
push eax
mov eax, dword [ecx + 0xbc]
inc dword [ecx + 0x310]
call eax
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
je 0x10002b93
push esi
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, edi
je 0x10002b75
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x1003b0a8]
mov ecx, dword [ebp + 8]
push ecx
dec dword [eax + 0x310]
mov eax, dword [eax + 0xc0]
call eax
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 8]
mov byte [ecx + edi], 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test ebx, ebx
je 0x10002b8b
mov dword [ebx], edi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1001c670
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002f5e6
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x1003b040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x30], 0
mov byte [ebp - 4], 2
mov eax, 0x3f
mov dword [esi + 4], 0x3f800000
mov word [esi + 0x3c], ax
call fcn.1001c7d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1001e300
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x1003b040]
xor eax, esp
mov dword [esp + 0x24], eax
cmp dword [0x1023acd0], 0
push esi
push edi
jne 0x1001e32d
cmp dword [0x1023acd8], 0
je 0x1001e32d
call fcn.1001e190
mov edi, dword [0x1003b0a8]
lea eax, [esp + 8]
push eax
push dword [0x1023ace0]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 8]
movd xmm1, eax
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0xc]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
lea eax, [esp + 0x20]
cvtdq2ps xmm0, xmm0
push eax
movss dword [edi + 4], xmm1
movss dword [edi + 8], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 0x20]
sub ecx, dword [0x1023ace8]
mov edx, dword [esp + 0x24]
sbb edx, dword [0x1023acec]
call fcn.1002f1a0
mov edx, dword [0x1023acf4]
mov ecx, dword [0x1023acf0]
movss dword [esp + 0x18], xmm0
call fcn.1002f1a0
movss xmm1, dword [esp + 0x18]
divss xmm1, xmm0
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
movss dword [edi + 0xc], xmm1
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [0x1023ace8], eax
mov dword [0x1023acec], ecx
call esi
shr eax, 0xf
and al, 1
push 0x10
mov byte [edi + 0xe1], al
call esi
shr eax, 0xf
and al, 1
push 0x12
mov byte [edi + 0xe2], al
call esi
shr eax, 0xf
and al, 1
mov byte [edi + 0xe4], 0
cmp byte [edi + 0x320], 0
mov byte [edi + 0xe3], al
je 0x1001e443
cvttss2si eax, dword [edi + 0xcc]
mov dword [esp + 0x18], eax
cvttss2si eax, dword [edi + 0xd0]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push dword [0x1023ace0]
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_SetCursorPos]
cmp byte [edi + 0xe0], 0
je 0x1001e454
push 0
call dword [sym.imp.USER32.dll_SetCursor]
call fcn.10003ab0
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor ecx, esp
call fcn.1002db20
mov esp, ebp
pop ebp
ret
Function at 0x1001ea00
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, dword [ecx + 0x430]
push edi
mov edi, dword [ebx + 8]
mov dword [ebp - 0xc], esi
lea eax, [esi + 1]
push eax
lea eax, [ecx + 0x3f0]
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor eax, eax
test esi, esi
jle 0x1001eb8d
cmp esi, 0x10
jb 0x1001eb80
movaps xmm2, xmmword [0x100367c0]
mov ecx, esi
and ecx, 0x8000000f
jns 0x1001ea64
dec ecx
or ecx, 0xfffffff0
inc ecx
movaps xmm0, xmmword [0x10036c70]
mov edx, esi
movups xmm3, xmmword [0x10036960]
sub edx, ecx
mov esi, 0xfffffffc
sub esi, edi
movaps xmmword [ebp - 0x20], xmm0
mov ecx, 4
mov dword [ebp - 4], edx
sub ecx, edi
lea edx, [edi + 8]
mov edi, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0x20]
nop word [eax + eax]
movd xmm0, eax
pshufd xmm1, xmm0, 0
paddd xmm1, xmm2
movd xmm0, ecx
andps xmm1, xmm3
lea ecx, [esi + edx]
packuswb xmm1, xmm1
packuswb xmm1, xmm1
psubb xmm1, xmm0
movd xmm0, dword [edx - 8]
xorps xmm1, xmm0
movd xmm0, ecx
movd dword [edx - 8], xmm1
lea ecx, [eax + 8]
pshufd xmm1, xmm0, 0
add eax, 0x10
movd xmm0, dword [ebp - 0x20]
paddd xmm1, xmm2
andps xmm1, xmm3
packuswb xmm1, xmm1
packuswb xmm1, xmm1
psubb xmm1, xmm0
movd xmm0, dword [edx - 4]
xorps xmm1, xmm0
movd xmm0, ecx
mov ecx, dword [ebp - 8]
movd dword [edx - 4], xmm1
add ecx, edx
pshufd xmm1, xmm0, 0
movd xmm0, dword [ebp - 0x20]
paddd xmm1, xmm2
andps xmm1, xmm3
packuswb xmm1, xmm1
packuswb xmm1, xmm1
psubb xmm1, xmm0
movd xmm0, dword [edx]
xorps xmm1, xmm0
movd xmm0, ecx
mov ecx, dword [ebp - 0x20]
movd dword [edx], xmm1
pshufd xmm1, xmm0, 0
paddd xmm1, xmm2
andps xmm1, xmm3
movd xmm0, ecx
packuswb xmm1, xmm1
packuswb xmm1, xmm1
psubb xmm1, xmm0
movd xmm0, dword [edx + 4]
xorps xmm1, xmm0
movd dword [edx + 4], xmm1
add edx, 0x10
cmp eax, edi
jl 0x1001eaa0
mov esi, dword [ebp - 0xc]
mov edi, dword [ebx + 8]
cmp eax, esi
jge 0x1001eb8d
nop word [eax + eax]
lea edx, [edi + eax]
lea ecx, [eax - 0x58]
inc eax
xor byte [edx], cl
cmp eax, esi
jl 0x1001eb80
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x1001fdf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov dword [ebp - 4], edx
xor edx, edx
push edi
mov edi, ebx
mov dword [ebp - 8], ecx
shr edi, 0x10
mov ecx, 0xa
mov eax, edi
shr ebx, 8
div ecx
mov dword [ebp + 0x10], ebx
mov eax, edx
shr eax, 1
lea eax, [eax + edx*4]
xor eax, edx
add eax, 0x20
lea eax, [edx + eax*2]
mov esi, eax
xor esi, edx
inc esi
lea eax, [esi + eax*2]
mov ecx, eax
xor ecx, esi
add ecx, 2
lea eax, [ecx + eax*2]
mov edx, eax
xor edx, ecx
lea esi, [edx + eax*2]
add edx, 3
lea ecx, [esi + 3]
xor edx, ecx
mov ecx, 3
add edx, 0xa
lea edx, [edx + esi*2]
shr edx, 0x10
xor bl, dl
add bl, 0x10
nop dword [eax + eax]
xor dl, bl
dec ecx
add dl, 0x10
test ecx, ecx
jg 0x1001fe60
mov eax, dword [ebp - 4]
mov ecx, 0x14
xor byte [eax], dl
xor edx, edx
mov eax, edi
div ecx
mov eax, edx
shr eax, 1
lea eax, [eax + edx*4]
xor eax, edx
add eax, 0x20
lea ecx, [edx + eax*2]
mov eax, ecx
xor eax, edx
inc eax
lea edx, [eax + ecx*2]
mov cl, dl
add dl, dl
xor cl, al
add cl, 2
add dl, cl
mov al, dl
add dl, dl
xor al, cl
mov ecx, 3
add dl, al
add al, 3
lea ebx, [edx + 3]
add dl, 5
add dl, dl
xor bl, al
add bl, dl
mov dl, byte [ebp + 0x10]
xor dl, bl
add dl, 0x10
nop
xor bl, dl
dec ecx
add bl, 0x10
test ecx, ecx
jg 0x1001fec0
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 0x1e
xor byte [eax], bl
mov eax, edi
div ecx
mov ebx, dword [ebp + 0x10]
mov eax, edx
shr eax, 1
lea eax, [eax + edx*4]
xor eax, edx
add eax, 0x20
lea esi, [edx + eax*2]
mov ecx, esi
xor ecx, edx
inc ecx
lea edx, [ecx + esi*2]
mov eax, edx
xor eax, ecx
add eax, 2
lea ecx, [eax + edx*2]
mov edx, ecx
xor edx, eax
lea esi, [edx + ecx*2]
lea eax, [edx + 3]
mov edx, 3
lea ecx, [esi + 3]
xor ecx, eax
lea eax, [esi + 5]
lea eax, [ecx + eax*2]
shr eax, 8
mov ch, al
xor ch, bl
add ch, 0x10
mov cl, ch
dec edx
xor cl, al
add cl, 0x10
mov al, cl
test edx, edx
jg 0x1001ff22
mov ecx, dword [ebp - 8]
xor edx, edx
xor byte [ecx], al
mov ecx, 0x28
mov eax, edi
div ecx
mov eax, edx
shr eax, 1
lea eax, [eax + edx*4]
xor eax, edx
add eax, 0x20
lea eax, [edx + eax*2]
mov ecx, eax
xor ecx, edx
inc ecx
lea eax, [ecx + eax*2]
mov esi, eax
xor esi, ecx
add esi, 2
lea eax, [esi + eax*2]
xor esi, eax
lea edx, [esi + eax*2]
lea ecx, [edx + 3]
lea eax, [esi + 3]
xor ecx, eax
lea edx, [edx + 5]
lea edx, [ecx + edx*2]
mov ecx, 3
shr edx, 0x18
xor bl, dl
add bl, 0x10
xor dl, bl
dec ecx
add dl, 0x10
test ecx, ecx
jg 0x1001ff81
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
xor byte [eax], dl
movzx eax, dl
mov esp, ebp
pop ebp
ret
Function at 0x1002b250
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x1002b292
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
push 0
push dword [ebp + 8]
mov dword [0x10237128], eax
push sym.FacMH.dll_void___stdcall_OnDllAttach_void__
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push dword [ebp + 8]
push 0x1002b110
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
pop ebp
ret 0xc

Function at 0x1002cca0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x1002cccc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x1002ccf4
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x1002ccfa
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x1002cd84
jg 0x1002cd11
test esi, esi
je 0x1002cd84
test ecx, ecx
jl 0x1002cd67
jg 0x1002cd1b
test eax, eax
je 0x1002cd67
cmp edi, ecx
jg 0x1002cd2f
jl 0x1002cd25
cmp esi, eax
jae 0x1002cd2f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 8]
add edx, ecx
sub esi, ecx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x1002cd84
jg 0x1002cd6a
test esi, esi
je 0x1002cd84
jmp 0x1002cd6a
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x1002cd84
push eax
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1002cda0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x1002cdcc
jl 0x1002cdc0
test ecx, ecx
jne 0x1002cdcc
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x1002cde5
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x1002ce33
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x1002ce39
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x1002ce39
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x1002cea6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1002ce62
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x1002ce94
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x1002cea6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x1002ce70
test edi, edi
je 0x1002cea6
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
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