joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100270a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
push esi
push edi
mov edi, 1
mov esi, 1
mov ecx, dword [ebx + 0x30]
shl edi, cl
mov ecx, dword [ebx + 0x50]
shl esi, cl
add ecx, 2
mov dword [ebx + 0x2c], edi
lea eax, [edi - 1]
mov dword [ebx + 0x4c], esi
mov dword [ebx + 0x34], eax
add edi, edi
lea eax, [esi - 1]
mov dword [ebp - 8], edi
mov dword [ebx + 0x54], eax
mov eax, 0xaaaaaaab
mul ecx
mov eax, dword [ebx + 0x169c]
lea ecx, [esi + esi]
shr edx, 1
lea esi, [ebx + 0xc]
cmp dword [esi], 0
mov dword [ebx + 0x58], edx
lea eax, [edi + eax*2]
mov dword [ebp - 4], ecx
lea edi, [ecx + eax*2]
je 0x10027104
cmp dword [ebx + 8], edi
je 0x1002712f
push edi
call fcn.1003e0e9
lea ecx, [ebp - 0x18]
add esp, 4
cmp esi, ecx
je 0x1002711f
mov ecx, dword [esi]
mov dword [esi], eax
test ecx, ecx
je 0x1002712c
push ecx
jmp 0x10027124
test eax, eax
je 0x1002712c
push eax
call fcn.1003e0f2
add esp, 4
mov dword [ebx + 8], edi
mov eax, dword [esi]
mov edi, dword [ebp - 8]
push edi
mov dword [ebx + 0x38], eax
add eax, edi
push 0
push eax
mov dword [ebx + 0x40], eax
call fcn.1003fbe0
mov ecx, dword [esi]
add esp, 0xc
mov edx, dword [ebp - 4]
add edx, ecx
mov dword [ebx + 0x16c0], 0
add edx, edi
mov dword [ebx + 0x20], 0
lea eax, [ecx + edi]
mov dword [ebx + 0x10], 0x71
mov ecx, dword [ebx + 0x169c]
add eax, edi
mov dword [ebx + 0x44], eax
add edx, edi
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x1c], edx
lea eax, [ecx*4]
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x18], eax
lea eax, [edx + ecx]
mov dword [ebx + 0x1698], eax
dec ecx
mov byte [ebx + 0x24], 1
lea eax, [ecx + ecx*2]
mov ecx, dword [ebx]
mov dword [ebx + 0x16a4], eax
lea eax, [ebx + 0x94]
mov dword [ebx + 0xb18], eax
lea eax, [ecx + 0x8b4]
mov dword [ebx + 0xb20], eax
lea eax, [ebx + 0x988]
mov dword [ebx + 0xb24], eax
lea eax, [ecx + 0x8c4]
mov dword [ebx + 0xb2c], eax
lea eax, [ebx + 0xa7c]
mov dword [ebx + 0xb30], eax
lea eax, [ecx + 0x8d4]
mov dword [ebx + 0xb38], eax
mov ecx, ebx
xor eax, eax
mov word [ebx + 0x16b8], ax
mov dword [ebx + 0x16bc], eax
call fcn.100272d0
mov eax, dword [ebx + 0x2c]
xor edx, edx
mov ecx, dword [ebx + 0x4c]
add eax, eax
mov dword [ebx + 0x3c], eax
mov eax, dword [ebx + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [ebx + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [ebx + 0x44]
call fcn.1003fbe0
mov esi, dword [ebx + 0x84]
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.10025b60
push esi
movzx eax, word [eax + 2]
mov dword [ebx + 0x80], eax
lea eax, [ebp - 0x14]
push eax
call fcn.10025b60
push esi
movzx eax, word [eax]
mov dword [ebx + 0x8c], eax
lea eax, [ebp - 0x14]
push eax
call fcn.10025b60
movzx eax, word [eax + 4]
mov dword [ebx + 0x90], eax
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.10025b60
add esp, 0x2c
movzx eax, word [eax + 6]
pop edi
pop esi
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x74], 0
mov dword [ebx + 0x16b4], 0
mov dword [ebx + 0x78], 2
mov dword [ebx + 0x60], 2
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x48], 0
mov byte [ebx + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100276c0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1007224c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0
mov eax, dword [esi + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 4]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, 0x10074aa4
lock xadd dword [ecx], eax
mov ecx, dword [esi + 4]
push 0
push ecx
test eax, eax
je 0x10027722
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003e0d6
mov esp, ebp
pop ebp
ret
push method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_56
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1003e0d6
mov esp, ebp
pop ebp
ret
Function at 0x100280d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1007224c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
push edi
mov edi, dword [ecx + 4]
mov ecx, dword [ecx]
mov dword [ebp - 0x1c], eax
mov eax, dword [eax]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], eax
cmp edi, 4
jb 0x10028121
mov bl, byte [ebp - 5]
mov edx, edi
mov bh, byte [ebp - 6]
shr edx, 2
xor byte [ecx], al
sub edi, 4
xor byte [ecx + 1], ah
xor byte [ecx + 2], bh
xor byte [ecx + 3], bl
add ecx, 4
sub edx, 1
jne 0x10028108
mov dword [ebp - 0xc], edi
test edi, edi
je 0x1002825d
push esi
xor esi, esi
cmp edi, 8
jb 0x10028200
lea edx, [ecx - 1]
lea eax, [ebp + edi - 9]
add edx, edi
cmp ecx, eax
ja 0x1002814d
lea eax, [ebp - 8]
cmp edx, eax
jae 0x10028200
lea edx, [ebp - 8]
sub edx, ecx
cmp edi, 0x40
jb 0x100281d3
mov ebx, edi
mov eax, edi
and ebx, 0x3f
sub eax, ebx
mov dword [ebp - 0x10], ebx
lea ebx, [ebp + 8]
mov dword [ebp - 0x18], eax
sub ebx, ecx
lea eax, [ecx + 0x20]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
nop word [eax + eax]
movups xmm0, xmmword [eax - 0x20]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ebp + esi - 8]
xorps xmm1, xmm0
movups xmmword [eax - 0x60], xmm1
movups xmm0, xmmword [eax - 0x50]
movups xmm1, xmmword [ebp + esi + 8]
add esi, 0x40
xorps xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [edx + eax - 0x40]
xorps xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [edi + eax - 0x40]
xorps xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
cmp esi, dword [ebp - 0x18]
jb 0x10028180
mov edi, dword [ebp - 0xc]
cmp ebx, 8
jb 0x100281fc
mov ebx, edi
lea eax, [esi + ecx]
and ebx, 0xfffffff8
nop dword [eax + eax]
movq xmm0, qword [eax]
lea eax, [eax + 8]
movq xmm1, qword [edx + eax - 8]
add esi, 8
xorps xmm1, xmm0
movq qword [eax - 8], xmm1
cmp esi, ebx
jb 0x100281e0
cmp esi, edi
jae 0x1002821e
lea ebx, [ebp - 8]
lea edx, [esi + ecx]
sub ebx, ecx
mov ecx, edi
sub ecx, esi
nop dword [eax]
mov al, byte [ebx + edx]
lea edx, [edx + 1]
xor byte [edx - 1], al
sub ecx, 1
jne 0x10028210
mov ecx, dword [ebp - 0x1c]
pop esi
mov eax, dword [ecx]
mov dword [ebp - 0xc], eax
mov eax, edi
and eax, 3
movzx eax, byte [ebp + eax - 0xc]
mov byte [ecx], al
lea eax, [edi + 1]
and eax, 3
movzx eax, byte [ebp + eax - 0xc]
mov byte [ecx + 1], al
lea eax, [edi - 2]
and eax, 3
movzx eax, byte [ebp + eax - 0xc]
mov byte [ecx + 2], al
lea eax, [edi - 1]
and eax, 3
movzx eax, byte [ebp + eax - 0xc]
mov byte [ecx + 3], al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1003e0d6
mov esp, ebp
pop ebp
ret
Function at 0x1002c9b0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x1007224c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
cmp ecx, 0xffffffff
jne 0x1002ca3d
mov ecx, dword [0x10072008]
mov eax, dword [0x1007200c]
cmp ecx, 0x257edfd1
jne 0x1002c9ed
cmp eax, 0xb2ab117a
je 0x1002c9fc
cmp ecx, 0x257edfd0
jne 0x1002ca00
cmp eax, 0xb2ab117a
jne 0x1002ca00
mov al, 1
jmp 0x1002ca14
mov eax, dword [section..data]
mov ecx, section..data
push 0x2719
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
mov dword [esi], 0x2719
add eax, 2
mov dword [esi + 4], 0x10072000
mov dword [esi + 8], eax
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003e0d6
mov esp, ebp
pop ebp
ret
push ebx
mov bl, byte [ebp + 0xc]
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x110], 1
and bl, 1
je 0x1002ca69
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
jmp 0x1002ca92
test edi, edi
js 0x1002ca90
mov eax, 0x10624dd3
mul edi
shr edx, 6
imul eax, edx, 0x3e8
mov dword [ebp - 0xc], edx
sub edi, eax
imul eax, edi, 0x3e8
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
jmp 0x1002ca92
xor eax, eax
push eax
push 0
push 0
lea eax, [ebp - 0x110]
push eax
lea eax, [ecx + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov edi, eax
test edi, edi
js 0x1002cb18
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
jne 0x1002cb3d
test bl, bl
je 0x1002cb3d
mov ecx, dword [0x10072008]
mov eax, dword [0x1007200c]
cmp ecx, 0x257edfd1
jne 0x1002cadc
cmp eax, 0xb2ab117a
je 0x1002caeb
cmp ecx, 0x257edfd0
jne 0x1002caef
cmp eax, 0xb2ab117a
jne 0x1002caef
mov al, 1
jmp 0x1002cb03
mov eax, dword [section..data]
mov ecx, section..data
push 0x2733
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
mov dword [esi], 0x2733
add eax, 2
mov dword [esi + 4], 0x10072000
jmp 0x1002cb3a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push section..data
push eax
lea ecx, [ebp - 0x11c]
call fcn.10002330
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.1003e0d6
mov esp, ebp
pop ebp
ret
Function at 0x1002e320
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1007224c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x18]
push edi
push 0
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 0x10]
push ecx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSARecv]
mov dword [ebp - 0x14], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push section..data
push eax
lea ecx, [ebp - 0x20]
call fcn.10002330
mov dword [ebp - 0x10], 0x1ffff7
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov ebx, eax
mov dword [esi + 8], eax
cmp ebx, 1
je 0x1002e398
mov eax, dword [esi]
mov ecx, eax
jmp 0x1002e3aa
mov eax, dword [esi + 4]
xor edx, edx
div dword [ebp - 0x10]
mov ecx, dword [esi]
imul eax, edx, 0x3e8
add eax, ecx
cmp eax, 0x40
jne 0x1002e40b
mov ecx, dword [0x10072008]
mov eax, dword [0x1007200c]
cmp ecx, 0x257edfd1
jne 0x1002e3c9
cmp eax, 0xb2ab117a
je 0x1002e3d8
cmp ecx, 0x257edfd0
jne 0x1002e3dc
cmp eax, 0xb2ab117a
jne 0x1002e3dc
mov al, 1
jmp 0x1002e3f0
mov eax, dword [section..data]
mov ecx, section..data
push 0x2746
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
mov dword [esi], 0x2746
add eax, 2
mov dword [esi + 4], 0x10072000
mov dword [esi + 8], eax
jmp 0x1002e4c5
cmp ebx, 1
je 0x1002e414
mov eax, ecx
jmp 0x1002e424
mov eax, dword [esi + 4]
xor edx, edx
div dword [ebp - 0x10]
imul eax, edx, 0x3e8
add eax, ecx
cmp eax, 0x4d2
jne 0x1002e484
mov ecx, dword [0x10072008]
mov eax, dword [0x1007200c]
cmp ecx, 0x257edfd1
jne 0x1002e445
cmp eax, 0xb2ab117a
je 0x1002e454
cmp ecx, 0x257edfd0
jne 0x1002e458
cmp eax, 0xb2ab117a
jne 0x1002e458
mov al, 1
jmp 0x1002e46c
mov eax, dword [section..data]
mov ecx, section..data
push 0x274d
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
mov dword [esi], 0x274d
add eax, 2
mov dword [esi + 4], 0x10072000
mov dword [esi + 8], eax
jmp 0x1002e4c5
cmp ebx, 1
je 0x1002e48d
mov eax, ecx
jmp 0x1002e49d
mov eax, dword [esi + 4]
xor edx, edx
div dword [ebp - 0x10]
imul eax, edx, 0x3e8
add eax, ecx
cmp eax, 0x2738
je 0x1002e4df
cmp ebx, 1
jne 0x1002e4bd
mov eax, dword [esi + 4]
xor edx, edx
mov ebx, 0x1ffff7
div ebx
imul eax, edx, 0x3e8
add ecx, eax
cmp ecx, 0xea
je 0x1002e4df
cmp dword [ebp - 0x14], 0
je 0x1002e4df
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003e0d6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xorps xmm0, xmm0
mov eax, dword [ebp - 8]
xor ecx, ebp
movq qword [esi], xmm0
pop edi
mov dword [esi + 8], 0
pop esi
pop ebx
call fcn.1003e0d6
mov esp, ebp
pop ebp
ret
Function at 0x1002ebe0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005c400
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1007224c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 8]
test eax, eax
je 0x1002ec2c
mov eax, dword [eax + 0x20]
mov dword [ebp - 4], 0
test eax, eax
je 0x1002ec25
push 0
push eax
mov eax, dword [eax]
call eax
add esp, 8
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x1002ec6f
push dword [0x10074ab0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1002ec5f
mov edx, dword [eax + 4]
test edx, edx
je 0x1002ec5f
xor eax, eax
nop dword [eax]
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x1002ec80
inc eax
cmp eax, 2
jl 0x1002ec50
push esi
call fcn.1003e0e4
add esp, 4
mov dword [edi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov al, byte [esi + 0x28]
mov byte [esi], al
mov dword [ecx], esi
jmp 0x1002ec68

Function at 0x1002eff0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005c465
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x1007224c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ecx + 0xc]
xorps xmm0, xmm0
movq qword [ebp - 0x5c], xmm0
xor edx, edx
mov dword [ebp - 0x54], 0
lea eax, [esi + 0x18]
lock xadd dword [eax], edx
test edx, edx
jne 0x1002f044
mov ecx, esi
call fcn.10032060
jmp 0x1002f119
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], 0
push eax
call fcn.1003c476
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
add esp, 4
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x50], xmm0
movups xmmword [ebp - 0x40], xmm0
push dword [0x10074ab0]
mov ecx, esi
movq qword [ebp - 0x1c], xmm0
neg ecx
mov dword [ebp - 4], 0
lea eax, [esi + 0x14]
mov dword [ebp - 0x14], 0
sbb ecx, ecx
and ecx, eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push dword [0x10074ab0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x50]
mov ecx, esi
push eax
push 0xffffffffffffffff
call fcn.10021910
test eax, eax
je 0x1002f0e5
nop
lea eax, [ebp - 0x5c]
mov ecx, esi
push eax
lea eax, [ebp - 0x50]
push eax
push 0xffffffffffffffff
call fcn.10021910
test eax, eax
jne 0x1002f0d0
push dword [ebp - 0x14]
push dword [0x10074ab0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor esi, esi
mov eax, dword [ebp + esi*4 - 0x50]
test eax, eax
je 0x1002f107
push eax
call fcn.1003e0e4
add esp, 4
inc esi
cmp esi, 0xa
jl 0x1002f0f6
lea eax, [ebp - 0x24]
push eax
call fcn.1003c561
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003e0d6
mov esp, ebp
pop ebp
ret
Function at 0x1002f550
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1007224c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 8]
push ebx
push esi
mov esi, dword [ebp + 0x18]
push edi
push 0
push 0
push dword [ebp + 0x14]
mov dword [ebp - 8], 0
push ecx
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push section..data
push eax
lea ecx, [ebp - 0x18]
call fcn.10002330
mov dword [ebp - 0xc], 0x1ffff7
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov edi, eax
mov dword [esi + 8], eax
cmp edi, 1
je 0x1002f5c0
mov eax, dword [esi]
mov ecx, eax
jmp 0x1002f5d2
mov eax, dword [esi + 4]
xor edx, edx
div dword [ebp - 0xc]
mov ecx, dword [esi]
imul eax, edx, 0x3e8
add eax, ecx
cmp eax, 0x40
jne 0x1002f629
mov ecx, dword [0x10072008]
mov eax, dword [0x1007200c]
cmp ecx, 0x257edfd1
jne 0x1002f5f1
cmp eax, 0xb2ab117a
je 0x1002f600
cmp ecx, 0x257edfd0
jne 0x1002f60d
cmp eax, 0xb2ab117a
jne 0x1002f60d
mov al, 1
mov dword [esi], 0x2746
jmp 0x1002f691
mov eax, dword [section..data]
mov ecx, section..data
push 0x2746
mov eax, dword [eax + 0x18]
call eax
mov dword [esi], 0x2746
jmp 0x1002f691
cmp edi, 1
jne 0x1002f642
mov eax, dword [esi + 4]
xor edx, edx
mov edi, 0x1ffff7
div edi
imul eax, edx, 0x3e8
add ecx, eax
cmp ecx, 0x4d2
jne 0x1002f6a1
mov ecx, dword [0x10072008]
mov eax, dword [0x1007200c]
cmp ecx, 0x257edfd1
jne 0x1002f664
cmp eax, 0xb2ab117a
je 0x1002f673
cmp ecx, 0x257edfd0
jne 0x1002f677
cmp eax, 0xb2ab117a
jne 0x1002f677
mov al, 1
jmp 0x1002f68b
mov eax, dword [section..data]
mov ecx, section..data
push 0x274d
mov eax, dword [eax + 0x18]
call eax
mov dword [esi], 0x274d
movzx eax, al
add eax, 2
mov dword [esi + 4], 0x10072000
mov dword [esi + 8], eax
test ebx, ebx
je 0x1002f6b9
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003e0d6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xorps xmm0, xmm0
mov eax, dword [ebp - 8]
xor ecx, ebp
movq qword [esi], xmm0
pop edi
mov dword [esi + 8], 0
pop esi
pop ebx
call fcn.1003e0d6
mov esp, ebp
pop ebp
ret
Function at 0x10035f20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005bba0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1007224c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
push 8
mov dword [ebp - 0x14], edi
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1003dd7e
mov esi, eax
add esp, 4
test esi, esi
je 0x10035f86
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1003cd21
add esp, 4
mov dword [esi + 4], eax
jmp 0x10035f88
xor esi, esi
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.1001c620
mov eax, dword [ebp - 0x10]
lea ebx, [edi + 4]
mov dword [edi + 0xc], ebx
lea esi, [edi + 8]
mov dword [edi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
lea ecx, [eax + 0x18]
mov byte [edi + 0x48], 0
lea edx, [eax + 0x24]
mov byte [edi + 0x3d], 0
mov dword [edi + 0x10], esi
add edi, 0x14
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
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 eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov dword [eax + 0x4c], 0
mov ecx, dword [0x100790f8]
mov edx, dword [0x100790fc]
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], edx
mov dword [eax + 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 0x10039010
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0
test eax, eax
je 0x10039033
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx eax, ax
push eax
mov esi, dword [ebp + 8]
push esi
call fcn.10033230
add esp, 8
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10039050
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005cc4d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x1007224c]
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, dword [ebp + 8]
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
call fcn.10044e48
cmp dword [ebp + 0x20], 0x10
lea esi, [ebp + 0xc]
mov ebx, eax
lea eax, [ebp - 0x14]
cmovae esi, dword [ebp + 0xc]
push 0xa
push eax
push esi
mov dword [ebx], 0
call fcn.10045707
add esp, 0xc
cmp esi, dword [ebp - 0x14]
je 0x10039119
cmp dword [ebx], 0x22
je 0x10039123
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
push eax
push edi
call fcn.10033230
mov ecx, dword [ebp + 0x20]
add esp, 8
cmp ecx, 0x10
jb 0x100390fb
mov edx, dword [ebp + 0xc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100390f1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003912d
push ecx
push edx
call fcn.1003ddae
add esp, 8
mov eax, edi
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.1003e0d6
mov esp, ebp
pop ebp
ret
push str.invalid_stoi_argument
call fcn.1003b7f0
push str.stoi_argument_out_of_range
call fcn.1003b830
call fcn.10042d2f
int3
Function at 0x10039f40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005cdbd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x1007224c]
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.1003dd7e
mov edi, eax
add esp, 4
test edi, edi
je 0x10039fe4
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1003cd21
add esp, 4
mov dword [edi + 4], eax
jmp 0x10039fe6
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.10012130
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x20]
mov ecx, eax
call edx
mov ecx, dword [ebp - 0x10]
mov bl, al
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x1003a040
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x1003a040
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x1003a05c
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 0x1003a07f
cmp byte [ebp + 0xc], 0
je 0x1003a06b
push esi
call fcn.1003d1b6
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 0x1003a08b
mov esi, str.ios_base::badbit_set
jmp 0x1003a09b
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.10027c20
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.10016110
push 0x1006fab0
lea eax, [ebp - 0x28]
push eax
call fcn.1003f230
int3