joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002e90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1020d838]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
call fcn.1006dae0
mov edi, eax
mov dword [ebp - 0x28], edi
call fcn.1006dac0
test eax, eax
je 0x10002ec2
call fcn.1006dae0
mov ebx, dword [eax + 0xbc]
jmp 0x10002ec4
xor ebx, ebx
push esi
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x14], xmm0
push dword [ebx]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
movd xmm1, eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
lea eax, [ebp - 0x24]
cvtdq2ps xmm0, xmm0
push eax
movss dword [edi + 8], xmm1
movss dword [edi + 0xc], xmm0
xorps xmm0, xmm0
movlpd qword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebx + 8]
mov edx, dword [ebp - 0x20]
sbb edx, dword [ebx + 0xc]
call fcn.1011fe80
mov edx, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x18], xmm0
call fcn.1011fe80
movss xmm1, dword [ebp - 0x18]
cvtsd2ss xmm0, xmm0
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
divss xmm1, xmm0
movss dword [edi + 0x10], xmm1
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], ecx
call esi
shr eax, 0xf
and al, 1
push 0x10
mov byte [edi + 0xf4], al
call esi
shr eax, 0xf
and al, 1
push 0x12
mov byte [edi + 0xf5], al
call esi
shr eax, 0xf
and al, 1
mov byte [edi + 0xf7], 0
mov byte [edi + 0xf6], al
call fcn.1006dae0
mov esi, eax
call fcn.1006dac0
test eax, eax
je 0x10002fa8
call fcn.1006dae0
mov edi, dword [eax + 0xbc]
jmp 0x10002faa
xor edi, edi
cmp byte [esi + 0x34f], 0
je 0x10002fe5
cvttss2si eax, dword [esi + 0xdc]
mov dword [ebp - 0x1c], eax
cvttss2si eax, dword [esi + 0xe0]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x10002fe5
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_SetCursorPos]
mov dword [esi + 0xdc], 0xff7fffff
mov dword [esi + 0xe0], 0xff7fffff
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x10003053
mov ecx, dword [edi]
cmp eax, ecx
je 0x10003015
push ecx
push eax
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x10003053
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x10003053
lea eax, [ebp - 0x30]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x10003053
movd xmm0, dword [ebp - 0x30]
movd xmm1, dword [ebp - 0x2c]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [esi + 0xdc], xmm0
movss dword [esi + 0xe0], xmm1
mov eax, dword [ebp - 0x28]
pop esi
cmp byte [eax + 0xa8], 0
je 0x10003065
or eax, 0xffffffff
jmp 0x1000306a
call fcn.1007b160
cmp dword [ebx + 0x18], eax
je 0x10003077
mov dword [ebx + 0x18], eax
call fcn.10003090
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1011fcd3
mov esp, ebp
pop ebp
ret
Function at 0x10013640
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014e9c0
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x1020d838]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x10215238]
mov esi, dword [ebp + 0xc]
test al, 1
jne 0x1001368c
or eax, 1
mov dword [0x10215238], eax
mov eax, dword [0x1020d020]
mov eax, dword [eax]
mov dword [0x10215234], eax
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.10122c30
xorps xmm0, xmm0
mov dword [ebp - 0x11c], 0
movups xmmword [ebp - 0x12c], xmm0
add esp, 0xc
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [eax + 4]
mov eax, dword [eax]
cmp eax, 0x646f4d72
je 0x100136eb
cmp eax, 0x78655472
jne 0x100136fb
push 0x1015d810
jmp 0x100136f0
push 0x1015d80c
lea ecx, [ebp - 0x12c]
call fcn.10013110
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
cmovae eax, dword [ebp - 0x12c]
push eax
mov eax, dword [0x10215234]
push esi
mov eax, dword [eax + 0x1028]
add eax, 8
push eax
lea eax, [ebp - 0x114]
push str._s_s._s
push eax
call fcn.100130e0
add esp, 0x14
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10013750
test al, 0x10
jne 0x10013750
push esi
call fcn.100134f0
mov ecx, dword [ebp - 0x118]
cmp ecx, 0x10
jb 0x10013786
mov edx, dword [ebp - 0x12c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001377c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100137a2
push ecx
push edx
call fcn.1011fcc5
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1011fcd3
mov esp, ebp
pop ebp
ret 8
call fcn.1012687f
int3
Function at 0x10035c90
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
mov dword [ecx + 0x1384], 0xffffffff
lea edi, [ecx + 8]
mov dword [ecx + 4], edx
mov esi, 1
nop dword [eax]
mov eax, edx
lea edi, [edi + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi - 4], edx
cmp esi, 0x270
jb 0x10035cb0
pop edi
pop esi
mov dword [ecx], 0x270
mov eax, ecx
pop ebp
ret 4

Function at 0x10035ce0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
mov eax, dword [esi]
cmp eax, 0x270
jne 0x10035d3d
lea edx, [esi + 8]
mov edi, eax
nop dword [eax]
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x10035d00
mov eax, dword [esi]
jmp 0x10035e17
cmp eax, 0x4e0
jb 0x10035e17
lea edi, [esi + 0x9c4]
mov esi, 0xe3
push ebx
mov ebx, dword [edi]
mov eax, ebx
lea edi, [edi + 4]
mov ebx, dword [edi]
mov ecx, ebx
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub esi, 1
jne 0x10035d56
mov edi, dword [ebp - 4]
mov esi, 0x18c
add edi, 0xd50
mov ebx, dword [edi]
nop
mov eax, ebx
lea edi, [edi + 4]
mov ebx, dword [edi]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd50]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub esi, 1
jne 0x10035da0
mov esi, dword [ebp - 4]
pop ebx
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
xor eax, eax
mov dword [esi], 0
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10037390
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10150262
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x1020d838]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0x10163470
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x100374d8
mov eax, dword [0x1021529c]
test al, 1
jne 0x10037455
or eax, 1
mov dword [0x1021529c], eax
push 0x14
mov dword [ebp - 4], 0
call fcn.1011fc95
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 1
test edi, edi
je 0x10037444
push 8
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
call fcn.1011fc95
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [eax + 4], 0
mov dword [edi], eax
mov dword [eax], edi
mov dword [0x10215298], edi
jmp 0x1003745b
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov dword [0x10215298], edi
jmp 0x1003745b
mov edi, dword [0x10215298]
sub esp, 0x18
xorps xmm0, xmm0
mov esi, esp
mov ecx, esi
push 0x50
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
call fcn.1000b640
mov ecx, eax
mov dword [esi + 0x10], 0x45
mov dword [esi], ecx
mov dword [esi + 0x14], 0x4f
movups xmm0, xmmword [str._FastStart_:_Deleted_shaderlog.sig__restart_the_game_for_faster_loads]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x10163498]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [0x101634a8]
movups xmmword [ecx + 0x20], xmm0
movups xmm0, xmmword [0x101634b8]
movups xmmword [ecx + 0x30], xmm0
mov eax, dword [0x101634c8]
mov dword [ecx + 0x40], eax
mov al, byte [0x101634cc]
mov byte [ecx + 0x44], al
mov byte [ecx + 0x45], 0
mov ecx, edi
call fcn.1006c740
mov esi, dword [ebp - 0x10]
push 5
push 0x102156b4
push 0x10036d20
lea eax, [esi + 0x18]
mov ecx, esi
push eax
push 0x8db77d
call fcn.1000b9d0
push 5
push 0x102156b8
push 0x10036d60
lea eax, [esi + 0x1c]
mov ecx, esi
push eax
push 0x739632
call fcn.1000b9d0
mov eax, dword [ebp + 8]
mov byte [eax + 0x18], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x100423c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10150b1d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x1020d838]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.1011fc95
mov edi, eax
add esp, 4
test edi, edi
je 0x1004245d
push 1
mov dword [ebp - 4], 0
call fcn.1011ee54
add esp, 4
mov dword [edi + 4], eax
jmp 0x1004245f
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.1003f8f0
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x20]
mov ecx, eax
call edx
mov dword [ebp - 4], 0xffffffff
mov bl, al
test edi, edi
je 0x100424ba
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x100424ba
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x100424d6
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x100424f9
cmp byte [ebp + 0xc], 0
je 0x100424e5
push esi
call fcn.1011f2e9
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x10042505
mov esi, str.ios_base::badbit_set
jmp 0x10042515
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.10042540
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.1003fe20
push 0x102061fc
lea eax, [ebp - 0x28]
push eax
call fcn.1012228b
int3

Function at 0x10043200
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x10], 0
je 0x1004326e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov edx, dword [edi + 0xc]
mov ecx, edx
mov eax, dword [edi + 8]
and edx, 3
dec eax
shr ecx, 2
and ecx, eax
mov eax, dword [edi + 4]
mov eax, dword [eax + ecx*4]
push dword [eax + edx*4]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x10043246
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
add dword [edi + 0x10], 0xffffffff
jne 0x10043255
mov dword [edi + 0xc], 0
jmp 0x10043258
inc dword [edi + 0xc]
xor eax, eax
test esi, esi
cmovns eax, esi
test eax, eax
je 0x10043266
push eax
call ebx
cmp dword [edi + 0x10], 0
jne 0x10043215
pop esi
pop ebx
pop edi
mov dword [ebp + 8], 0x1021586c
pop ebp
jmp fcn.1011eb2d
Function at 0x10043280
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10150bae
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x1020d838]
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 dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], 0
push 8
mov dword [ebp - 4], 0
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
call fcn.1011fc95
mov dword [eax + 4], 0
mov dword [ebx], eax
mov dword [eax], ebx
push 0x1021586c
mov dword [ebp - 4], 0
mov dword [ebp - 0x34], 1
call fcn.1011eb1c
add esp, 8
test eax, eax
jne 0x10043490
cmp dword [0x10215898], 0x7fffffff
je 0x10043497
push eax
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x40], edi
mov dword [ebp - 4], 1
cmp edi, 0xffffffff
je 0x10043472
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x1c
xorps xmm0, xmm0
push eax
push edi
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
movlpd qword [ebp - 0x18], xmm0
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x10043465
nop
cmp dword [ebp - 0x2c], 0x10
jb 0x1004344c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x24], eax
je 0x1004344c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x20], eax
jne 0x1004344c
push dword [ebp - 0x24]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
mov dword [ebp - 0x44], esi
mov byte [ebp - 4], 2
test esi, esi
je 0x1004343b
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
add eax, ecx
test al, 3
jne 0x100433d6
lea eax, [ecx + 4]
shr eax, 2
cmp dword [ebx + 8], eax
ja 0x100433d6
push 1
mov ecx, ebx
call fcn.10043050
mov ecx, dword [ebx + 8]
lea eax, [ecx*4 - 1]
dec ecx
and eax, dword [ebx + 0xc]
mov dword [ebx + 0xc], eax
mov edx, dword [ebx + 0x10]
add edx, eax
mov eax, edx
mov dword [ebp - 0x38], edx
shr eax, 2
and ecx, eax
mov eax, dword [ebx + 4]
shl ecx, 2
mov dword [ebp - 0x30], ecx
cmp dword [ecx + eax], 0
jne 0x10043420
push 0x10
call fcn.1011fc95
mov edx, dword [ebp - 0x30]
mov ecx, eax
mov eax, dword [ebx + 4]
add esp, 4
mov dword [edx + eax], ecx
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebx + 4]
and edx, 3
push esi
mov eax, dword [ecx + eax]
lea ecx, [eax + edx*4]
mov eax, dword [ebp - 0x24]
mov dword [ecx], eax
inc dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov byte [ebp - 4], 1
test esi, esi
js 0x1004344c
je 0x1004344c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x10043370
test edi, edi
js 0x10043472
je 0x10043472
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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.1011fcd3
mov esp, ebp
pop ebp
ret
push 5
call fcn.1011eba5
push 6
mov dword [0x10215898], 0x7ffffffe
call fcn.1011eba5
int3
Function at 0x10043ab0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10150ca0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1020d838]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push 8
mov dword [ebx], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1011fc95
mov esi, eax
add esp, 4
test esi, esi
je 0x10043b09
push 1
mov dword [ebp - 4], 0
call fcn.1011ee54
add esp, 4
mov dword [esi + 4], eax
jmp 0x10043b0b
xor esi, esi
mov ecx, ebx
mov dword [ebx + 0x34], esi
call fcn.10040990
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
lea esi, [eax + 8]
lea ebx, [eax + 4]
mov dword [eax + 0x2c], edx
mov dword [eax + 0xc], ebx
lea edi, [eax + 0x14]
mov dword [eax], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [eax + 0x48], 0
mov byte [eax + 0x3d], 0
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x4c], 0
mov eax, dword [0x102158a0]
mov ecx, dword [0x102158a4]
mov dword [edx + 0x40], eax
mov eax, edx
mov dword [edx + 0x44], ecx
mov dword [edx + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10047df0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push edi
mov edi, dword [ebp + 0xc]
push ecx
push 0x40
mov dword [ebp + 0xc], 0
mov eax, dword [edi + 4]
sub eax, dword [edi]
sar eax, 1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10047e84
mov ecx, dword [edi]
push esi
mov esi, dword [edi + 4]
cmp ecx, esi
je 0x10047e48
mov edx, ebx
mov dword [ebp - 4], 0xff
nop
movzx eax, word [ecx]
mov ebx, eax
cmp ax, word [ebp - 4]
ja 0x10047e3d
mov byte [edx], bl
add ecx, 2
inc edx
cmp ecx, esi
jne 0x10047e30
mov ebx, dword [ebp + 8]
mov esi, dword [edi + 4]
sub esi, dword [edi]
sar esi, 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov eax, dword [edi + 4]
push dword [ebp + 0xc]
sub eax, dword [edi]
sar eax, 1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1004b200
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push esi
push edi
mov edi, ecx
xor esi, esi
nop dword [eax]
push esi
call ebx
mov cl, byte [edi + esi*8]
shr ax, 0xf
test al, al
je 0x1004b22c
test cl, cl
jne 0x1004b23a
mov dword [edi + esi*8 + 4], 1
jmp 0x1004b242
test cl, cl
je 0x1004b23a
mov dword [edi + esi*8 + 4], 2
jmp 0x1004b242
mov dword [edi + esi*8 + 4], 0
mov byte [edi + esi*8], al
inc esi
cmp esi, 0x100
jb 0x1004b210
pop edi
pop esi
pop ebx
ret

Function at 0x1004b4c0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
mov eax, 0x5e6ea9af
push edi
mov edi, dword [ebp + 0x10]
mul edi
movzx ecx, si
shr edx, 0xb
imul eax, edx, 0x15b0
mov edx, edi
shr esi, 0x10
mov dword [ebp + 8], esi
sub edx, eax
mov dword [ebp - 4], edx
test edi, edi
je 0x1004b612
mov edi, dword [ebp + 0xc]
push ebx
nop word [eax + eax]
xor ebx, ebx
cmp edx, 7
jbe 0x1004b562
mov eax, 7
sub eax, edi
mov dword [ebp + 8], eax
movzx eax, byte [edi]
add ebx, 8
add ecx, eax
movzx eax, byte [edi + 1]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 2]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 3]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 4]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 5]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 6]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 7]
add esi, ecx
add edi, 8
add ecx, eax
mov eax, dword [ebp + 8]
add eax, edi
add esi, ecx
cmp eax, edx
jb 0x1004b511
mov dword [ebp + 8], esi
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [ebp - 0xc], 0
cmp ebx, eax
jae 0x1004b5d6
sub eax, ebx
cmp eax, 2
jb 0x1004b5c2
mov edx, dword [ebp - 4]
sub edx, ebx
sub edx, 2
shr edx, 1
inc edx
lea eax, [ebx + edx*2]
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov esi, ebx
nop
movzx eax, byte [edi]
add ecx, eax
movzx eax, byte [edi + 1]
add ebx, ecx
add edi, 2
add ecx, eax
add esi, ecx
sub edx, 1
jne 0x1004b590
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], esi
mov esi, dword [ebp + 8]
cmp eax, dword [ebp - 4]
jae 0x1004b5ce
movzx eax, byte [edi]
mov edx, dword [ebp - 8]
add ecx, eax
add esi, ecx
inc edi
jmp 0x1004b5d1
movzx eax, byte [edi]
mov ebx, edx
add ecx, eax
add esi, ecx
inc edi
jmp 0x1004b5d1
mov edx, dword [ebp - 8]
lea eax, [edx + ebx]
add esi, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul esi
shr edx, 0xf
imul eax, edx, 0xffff000f
mov edx, dword [ebp - 4]
add esi, eax
sub dword [ebp + 0x10], edx
mov edx, 0x15b0
mov dword [ebp + 8], esi
mov dword [ebp - 4], edx
jne 0x1004b500
pop ebx
shl esi, 0x10
pop edi
lea eax, [ecx + esi]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10052b50
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test esi, esi
je 0x10052b7e
lea eax, [esi - 1]
push eax
push edi
call fcn.10052b50
add esp, 8
mov ecx, eax
movsx eax, byte [edi + esi]
xor eax, ecx
imul eax, eax, 0x1000193
pop edi
pop esi
pop ebp
ret
movsx eax, byte [edi + esi]
mov ecx, 0x811c9dc5
xor eax, ecx
pop edi
imul eax, eax, 0x1000193
pop esi
pop ebp
ret
Function at 0x10059330
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
mov edi, ecx
mov eax, edi
cmp dword [edi + 0x14], 0x10
jb 0x10059343
mov eax, dword [edi]
push eax
lea eax, [edi + 0x40]
push eax
call fcn.100bc540
push 0
call fcn.10079080
add esp, 0xc
test al, al
je 0x100593ab
movups xmm0, xmmword [edi + 0x30]
lea eax, [ebp - 0x10]
push esi
push eax
movups xmmword [ebp - 0x20], xmm0
call fcn.10079620
lea eax, [ebp - 8]
push eax
call fcn.10079660
movss xmm0, dword [ebp - 4]
movss dword [ebp - 0xc], xmm0
call fcn.100749d0
mov esi, eax
lea eax, [ebp - 0x20]
push eax
call fcn.1007a290
add esp, 8
mov ecx, esi
mov dword [esp], 0x3f800000
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.100a1670
pop esi
push 0
call fcn.100792a0
add esp, 4
test al, al
je 0x100593d8
add edi, 0x18
cmp dword [edi + 0x14], 0x10
jb 0x100593c4
mov edi, dword [edi]
push 1
push 0
push 0
push edi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
mov esp, ebp
pop ebp
ret