joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100547f0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push esi
push edi
push 0x3c
lea eax, [ebp - 0x5c]
push 0
push eax
mov edi, ecx
mov dword [ebp - 0x60], 0
call fcn.10073220
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
add esp, 0xc
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
movq qword [ebp - 0x18], xmm0
movq qword [ebp - 0x10], xmm0
movq qword [ebp - 8], xmm0
movq qword [ebp - 0x84], xmm0
movq qword [ebp - 0x7c], xmm0
movq qword [ebp - 0x74], xmm0
movq qword [ebp - 0x6c], xmm0
mov dword [ebp - 0x64], 0
mov ecx, 0x3c
mov eax, esi
lea esp, [esp]
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x10054860
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov word [ebp - 0x13], 0
mov byte [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, dword [edi + 0x98]
mov dword [ebp - 0x18], eax
lea eax, [esi + 0x34]
mov dword [ebp - 0x20], eax
test edx, 0x100000
je 0x100548b7
mov eax, edx
shr eax, 0x15
and al, 1
mov byte [ebp - 0x11], al
mov eax, dword [ebp - 0x78]
xor ecx, ecx
add eax, 1
adc ecx, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
test edx, edx
jns 0x100548c6
cmp dword [0x1017441c], 0
setne byte [ebp - 0x10]
and dword [ebp - 0x54], 0xfffffffe
lea eax, [ebp - 0x20]
mov dword [ebp - 0x50], eax
mov eax, dword [edi + 0x54]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x60]
push eax
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x4c], 0x20
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x48], 1
call eax
test eax, eax
jne 0x10054953
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
mov dword [esi], eax
mov eax, dword [ebp - 0x38]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x3c]
mov dword [esi + 4], ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], 0
mov dword [esi + 0x14], eax
test dword [edi + 0x98], 0x80000000
je 0x10054946
mov eax, dword [0x1017441c]
mov dword [esi + 0x38], eax
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1006ca40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1017a458]
push esi
mov dword [ebp - 4], 0
mov dword [eax + 4], 1
mov eax, dword [0x1017a458]
xor esi, esi
mov dword [eax + 8], esi
lea eax, [ebp - 4]
push eax
push 1
push esi
push str.SOFTWAREIntelEventTrace
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1006cb2c
mov eax, dword [0x1017a458]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [eax + 4], esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push dword [esi*4 + 0x1016f094]
mov dword [ebp - 0xc], 4
push dword [ebp - 4]
call edi
test eax, eax
jne 0x1006caf4
test esi, esi
jne 0x1006cae0
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x1006cb16
test eax, eax
jne 0x1006cb01
mov eax, dword [0x1017a458]
mov dword [eax + 8], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x1017a458]
xor ecx, ecx
cmp dword [ebp - 8], 1
sete cl
mov dword [eax + esi*4 + 0xc], ecx
jmp 0x1006cb01
mov eax, dword [0x1017a458]
mov dword [eax + esi*4 + 0xc], 0
inc esi
cmp esi, 0xb
jl 0x1006ca92
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x1017a458]
mov dword [eax + 4], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1007f350
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x101722a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.100768b7
mov dword [ebp - 0x14], eax
cmp dword [0x1017c41c], edi
jne 0x1007f441
push 0x800
push edi
push 0x10096ef4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x1007f3ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1007f521
push 0x10096ef4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1007f521
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007f521
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x1017c41c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x1017c420], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x1017c424], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1017c42c], eax
test eax, eax
je 0x1007f43e
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1017c428], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1007f466
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1007f459
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x1007f47b
push 4
pop eax
jmp 0x1007f523
cmp dword [ebp - 0x14], edi
je 0x1007f47b
push dword [0x1017c41c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1007f460
mov eax, dword [0x1017c428]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x1007f4d9
cmp dword [0x1017c42c], esi
je 0x1007f4d9
push eax
call ebx
push dword [0x1017c42c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1007f4d9
test eax, eax
je 0x1007f4d9
call ecx
test eax, eax
je 0x1007f4ce
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1007f4ce
test byte [ebp - 8], 1
jne 0x1007f4d9
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x1007f509
mov eax, dword [0x1017c420]
cmp eax, esi
je 0x1007f506
push eax
call ebx
test eax, eax
je 0x1007f506
call eax
mov edi, eax
test edi, edi
je 0x1007f506
mov eax, dword [0x1017c424]
cmp eax, esi
je 0x1007f506
push eax
call ebx
test eax, eax
je 0x1007f506
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x1017c41c]
call ebx
test eax, eax
je 0x1007f521
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x1007f523
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10071c54
leave
ret
Function at 0x100029a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x10234d0c], 0
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
jne 0x10002a5a
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 + 0x10234d08], eax
inc ebx
cmp ebx, 0x100
jb 0x100029c0
mov ebx, dword [ebp + 8]
not ebx
mov eax, ebx
test edi, edi
jle 0x10002a86
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10234d08]
sub edi, 1
jne 0x10002a65
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x10002ab8
nop dword [eax]
cmp cl, 0x23
jne 0x10002a9f
cmp byte [esi], cl
jne 0x10002a9f
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 + 0x10234d08]
test cl, cl
jne 0x10002a90
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
Function at 0x10003110
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
test ebx, ebx
je 0x10003122
mov dword [ebx], 0
push 0x1003047c
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 0x1000313b
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 0x100031f3
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 0x100031f3
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 0x100031f3
mov ecx, dword [0x10039098]
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 0x100031f3
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 0x100031d5
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x10039098]
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 0x100031eb
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 0x1001f020
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002e7c6
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x10039040]
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.1001f180
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 0x10020c80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x10039040]
xor eax, esp
mov dword [esp + 0x24], eax
cmp dword [0x10238ccc], 0
push esi
push edi
jne 0x10020cad
cmp dword [0x10238cd4], 0
je 0x10020cad
call fcn.10020b10
mov edi, dword [0x10039098]
lea eax, [esp + 8]
push eax
push dword [0x10238cdc]
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 [0x10238ce0]
mov edx, dword [esp + 0x24]
sbb edx, dword [0x10238ce4]
call fcn.1002e370
mov edx, dword [0x10238cec]
mov ecx, dword [0x10238ce8]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x18], xmm0
call fcn.1002e370
movss xmm1, dword [esp + 0x18]
cvtsd2ss xmm0, xmm0
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
divss xmm1, xmm0
movss dword [edi + 0xc], xmm1
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [0x10238ce0], eax
mov dword [0x10238ce4], 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 0x10020dcb
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 [0x10238cdc]
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 0x10020ddc
push 0
call dword [sym.imp.USER32.dll_SetCursor]
call fcn.10004080
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor ecx, esp
call fcn.1002cce0
mov esp, ebp
pop ebp
ret
Function at 0x1002a030
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x1002a072
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
push 0
push dword [ebp + 8]
mov dword [0x10235118], eax
push sym.StormZ_2024.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 0x10029f00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
pop ebp
ret 0xc

Function at 0x1002be60
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 0x1002be8c
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 0x1002beb4
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x1002beba
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 0x1002bf22
jg 0x1002bed1
test esi, esi
je 0x1002bf22
test ecx, ecx
jl 0x1002bf1d
jg 0x1002bedb
test eax, eax
je 0x1002bf1d
cmp edi, ecx
jg 0x1002beef
jl 0x1002bee5
cmp esi, eax
jae 0x1002beef
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 edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x1002bf25
mov ecx, dword [ebp + 8]
jmp 0x1002bf2f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x1002bf49
jg 0x1002bf2f
test esi, esi
je 0x1002bf49
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x1002bf49
push eax
push esi
push 1
push ecx
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 0x1002bf60
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 0x1002bf8c
jl 0x1002bf80
test ecx, ecx
jne 0x1002bf8c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x1002bfa5
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 0x1002bff3
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x1002bff9
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 0x1002bff9
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x1002c066
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1002c022
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 0x1002c054
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 0x1002c066
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x1002c030
test edi, edi
je 0x1002c066
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
Function at 0x1002c3e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10039040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1002c410
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002cce0
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1002c44c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1002c44c
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002cce0
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x1002c523
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1002c474
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1002c480
movsx eax, bl
jmp 0x1002c4b8
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x1002c4e2
sub eax, 1
je 0x1002c4e2
sub eax, 2
jne 0x1002c523
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002cce0
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1002c500
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1002c523
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002cce0
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002cce0
mov esp, ebp
pop ebp
ret 4
Function at 0x1002c740
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10039040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1002c7fc
cmp byte [esi + 0x3d], 0
je 0x1002c7fc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1002c7ea
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x1002c7b1
sub eax, 1
je 0x1002c7b5
sub eax, 2
jne 0x1002c7ea
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002cce0
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1002c7d3
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1002c7ea
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002cce0
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002cce0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1002cce0
mov esp, ebp
pop ebp
ret
Function at 0x10006b90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
xor esi, esi
lea eax, [edx + eax*2]
mov dword [ebp - 0x10], eax
movzx eax, byte [edx + 1]
cmp byte [edx], ch
lea edx, [edx + 2]
lea edi, [esi + eax]
jne 0x10006be0
cmp edi, esi
jb 0x10006c4b
cmp edi, dword [ebp + 0x10]
ja 0x10006c5e
add esi, dword [ebp + 0xc]
nop word [eax + eax]
test eax, eax
je 0x10006be2
dec eax
cmp byte [esi], cl
lea esi, [esi + 1]
jne 0x10006bd0
jmp 0x10006c3f
ja 0x10006be9
cmp edx, dword [ebp - 0x10]
mov esi, edi
jne 0x10006ba5
mov edi, dword [ebp + 0x18]
movzx ecx, cx
mov al, 1
add edi, ebx
nop word cs:[eax + eax]
nop dword [eax]
movzx edx, byte [ebx]
lea esi, [ebx + 1]
test dl, dl
js 0x10006c20
mov ebx, esi
sub ecx, edx
jns 0x10006c37
jmp 0x10006c41
cmp esi, edi
je 0x10006c72
movzx esi, byte [ebx + 1]
and edx, 0x7f
add ebx, 2
shl edx, 8
or edx, esi
sub ecx, edx
js 0x10006c41
xor al, 1
cmp ebx, edi
jne 0x10006c00
jmp 0x10006c41
xor eax, eax
and al, 1
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
mov edx, edi
push 0x410e3b8
call fcn.100057a0
add esp, 4
ud2
mov edx, dword [ebp + 0x10]
mov ecx, edi
push 0x410e3b8
call fcn.10004ed0
add esp, 4
ud2
mov ecx, 0x41169e4
mov edx, 0x2b
push 0x410e3a8
call fcn.100053c0
add esp, 4
ud2