joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100054ac
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x18]
and esi, 3
cmp eax, dword [ebp + 0xc]
je 0x100054e4
mov ecx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
mov dl, byte [esi + edi]
xor dl, byte [eax]
inc esi
mov byte [ecx], dl
and esi, 3
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
inc ecx
inc eax
mov dword [ebp + 0x10], ecx
mov dword [ebp + 8], eax
cmp eax, dword [ebp + 0xc]
jne 0x100054c5
pop edi
pop esi
pop ebp
ret

Function at 0x10011165
Capabilities:
Encode data using base64

Disassembly:
push 0x10
mov eax, 0x1002c38d
call fcn.10029759
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x1c], ebx
mov edi, dword [ebp + 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], 0xf
mov byte [edi], bl
mov eax, dword [ebp + 0x10]
mov edi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], 1
test eax, eax
je 0x100112f4
push 3
pop esi
mov ecx, dword [ebp + 0xc]
dec eax
mov dword [ebp + 0x10], eax
mov al, byte [ecx]
inc ecx
mov byte [ebp + edi - 0x14], al
inc edi
mov dl, byte [ebp - 0x13]
mov dword [ebp + 0xc], ecx
mov ch, byte [ebp - 0x12]
mov cl, byte [ebp - 0x14]
mov byte [ebp - 0xf], ch
mov byte [ebp - 0xd], dl
mov byte [ebp - 0xe], cl
cmp edi, esi
jne 0x1001123d
mov esi, dword [ebp + 8]
mov al, cl
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov edi, ebx
shl cl, 4
mov al, dl
shr al, 4
add cl, al
mov al, ch
mov byte [ebp - 0x17], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
and ch, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], ch
cmp dword [0x10043d7c], 0xf
mov ecx, 0x10043d68
movzx eax, byte [ebp + edi - 0x18]
cmova ecx, dword [0x10043d68]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
call fcn.1001f265
inc edi
cmp edi, 4
jl 0x10011205
mov dl, byte [ebp - 0xd]
mov edi, ebx
mov cl, byte [ebp - 0xe]
mov ch, byte [ebp - 0xf]
push 3
pop esi
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x100111a8
mov dword [ebp + 0x10], edi
test edi, edi
je 0x100112f4
mov eax, edi
cmp edi, esi
jge 0x10011273
cmp eax, esi
jae 0x100112fd
mov byte [ebp + eax - 0x14], bl
inc eax
cmp eax, esi
jl 0x1001125b
mov ch, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl cl, 4
add cl, al
shl dl, 2
mov al, ch
mov byte [ebp - 0x17], cl
shr al, 6
and ch, 0x3f
add dl, al
mov byte [ebp - 0x15], ch
lea eax, [edi + 1]
mov byte [ebp - 0x16], dl
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x100112df
mov esi, dword [ebp + 8]
mov edi, eax
cmp dword [0x10043d7c], 0xf
mov ecx, 0x10043d68
movzx eax, byte [ebp + ebx - 0x18]
cmova ecx, dword [0x10043d68]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
call fcn.1001f265
inc ebx
cmp ebx, edi
jl 0x100112b0
mov edi, dword [ebp + 0x10]
push 3
pop esi
cmp edi, esi
jge 0x100112f4
sub esi, edi
mov ecx, dword [ebp + 8]
push 0x3d
call fcn.1001f265
sub esi, 1
jne 0x100112e5
mov eax, dword [ebp + 8]
call fcn.10029727
ret
call fcn.10029589
int3
Function at 0x1001142e
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
xor edi, edi
mov dword [esp + 0x18], esi
test edx, edx
je 0x10011466
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
sub ebx, ebp
mov eax, edi
lea ecx, [edi + ebp]
and eax, 3
mov al, byte [esp + eax + 0x20]
xor al, byte [ecx + ebx]
inc edi
mov byte [ecx], al
cmp edi, edx
jb 0x1001144e
pop ebp
pop ebx
and edx, 3
je 0x10011472
shl dl, 3
mov cl, dl
ror esi, cl
pop edi
mov eax, esi
pop esi
ret

Function at 0x10011490
Capabilities:
Hash data using sha1

Disassembly:
sub esp, 0x160
mov eax, dword [0x10040140]
xor eax, esp
mov dword [esp + 0x15c], eax
mov eax, dword [esp + 0x16c]
push ebx
push ebp
mov ebp, dword [esp + 0x170]
push esi
xor esi, esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
mov dword [esp + 0x24], 0xc3d2e1f0
push edi
mov edi, esi
cmp ebp, 0x40
jb 0x1001155d
lea eax, [ebp - 0x40]
mov ebp, dword [esp + 0x174]
mov esi, eax
lea eax, [edi + 0x40]
cmp edi, eax
jae 0x1001153f
lea edx, [ebp + 2]
push 0x10
add edx, edi
lea ebx, [esp + 0x30]
pop ebp
add edi, 0x40
movzx ecx, byte [edx - 2]
movzx eax, byte [edx - 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
lea edx, [edx + 4]
or ecx, eax
movzx eax, byte [edx - 3]
shl ecx, 8
or ecx, eax
mov dword [ebx], ecx
lea ebx, [ebx + 4]
sub ebp, 1
jne 0x1001150d
mov ebp, dword [esp + 0x174]
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.10019c46
pop ecx
pop ecx
cmp edi, esi
jbe 0x100114f7
mov ebp, dword [esp + 0x178]
xor esi, esi
mov ebx, ebp
push 0xf
sub ebx, edi
pop eax
mov dword [esp + eax*4 + 0x2c], esi
sub eax, 1
jns 0x10011564
test ebx, ebx
je 0x10011599
add edi, dword [esp + 0x174]
mov eax, esi
mov edx, esi
and eax, 3
shr edx, 2
push 3
pop ecx
sub ecx, eax
movzx eax, byte [edi + esi]
shl ecx, 3
shl eax, cl
or dword [esp + edx*4 + 0x2c], eax
inc esi
cmp esi, ebx
jb 0x10011578
mov edx, esi
mov eax, 0x80
push 3
and esi, 3
shr edx, 2
pop ecx
sub ecx, esi
shl ecx, 3
shl eax, cl
or dword [esp + edx*4 + 0x2c], eax
cmp ebx, 0x38
jb 0x100115d5
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.10019c46
pop ecx
pop ecx
push 0x10
pop ecx
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov eax, ebp
shl eax, 3
mov dword [esp + 0x68], eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.10019c46
mov esi, dword [esp + 0x1c]
pop ecx
pop ecx
push 0x13
pop edx
mov eax, edx
mov ecx, edx
and eax, 0xfffffffc
not ecx
and ecx, 3
shl ecx, 3
mov eax, dword [esp + eax + 0x18]
shr eax, cl
mov byte [esi + edx], al
sub edx, 1
jns 0x100115f6
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10029719
add esp, 0x160
ret
Function at 0x10012479
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp edi, 0xffffffff
je 0x10012557
cmp byte [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
je 0x100124c1
test byte [ebx], 8
je 0x100124c1
xor eax, eax
mov dword [ebp + 8], eax
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp + 8]
push eax
push 0x80
push 0xffff
push ebx
push edi
call fcn.1002189a
add esp, 0x1c
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
test esi, esi
setne cl
movzx ecx, cl
push ecx
push dword [ebp + 0x14]
call fcn.10015e02
pop ecx
pop ecx
test esi, esi
je 0x10012556
push 0
push 0x2733
lea ecx, [ebp - 0xc]
call fcn.10002227
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
call fcn.1000db54
pop ecx
pop ecx
test al, al
jne 0x10012523
push 0
push 0x4d5
lea ecx, [ebp - 0xc]
call fcn.10002227
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
call fcn.1000db54
pop ecx
pop ecx
test al, al
je 0x10012556
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [ebx], 0xfc
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
test esi, esi
setne al
movzx eax, al
push eax
push dword [ebp + 0x14]
call fcn.10015e02
pop ecx
pop ecx
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x10019ffe
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
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, 0x10043dbc
lock xadd dword [ecx], eax
mov ecx, dword [esi + 4]
push 0
push ecx
test eax, eax
je 0x1001a048
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x1001a05e
push method.boost::asio::execution_context::service.virtual_8
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
leave
ret

Function at 0x1001b113
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret

Function at 0x10020b11
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
xor eax, eax
push eax
push eax
push dword [esp + 0x38]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call dword [sym.imp.WS2_32.dll_WSASend]
mov ebp, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x10040078
push eax
lea ecx, [esp + 0x1c]
call fcn.1000b7c9
mov ebx, dword [esp + 0x34]
mov esi, eax
mov edi, ebx
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.10023f1d
cmp eax, 0x40
jne 0x10020b75
push 0x10040078
push 0x2746
jmp 0x10020b8d
mov ecx, ebx
call fcn.10023f1d
cmp eax, 0x4d2
jne 0x10020b9f
push 0x10040078
push 0x274d
lea ecx, [esp + 0x1c]
call fcn.1000b7c9
mov edi, ebx
lea esi, [esp + 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
test ebp, ebp
je 0x10020ba8
or eax, 0xffffffff
jmp 0x10020bc3
xor eax, eax
lea esi, [esp + 0x14]
mov edi, ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x1002189a
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0xffffffff
push esi
push edi
jne 0x100218cb
push 0x10040078
push 0x2719
lea ecx, [ebp - 0xc]
call fcn.1000b7c9
mov edi, dword [ebp + 0x20]
lea esi, [ebp - 0xc]
or eax, 0xffffffff
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x10021968
cmp dword [ebp + 0x10], 0xa5100000
mov ecx, dword [ebp + 0x14]
jne 0x10021927
cmp ecx, 2
jne 0x100218e8
push 0x10040078
push 0x2726
jmp 0x100218b2
cmp ecx, 1
jne 0x1002193e
cmp dword [ebp + 0x1c], 4
jne 0x100218dc
mov esi, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov cl, byte [esi]
mov al, cl
or cl, 4
and al, 0xfb
movzx edx, cl
movzx ecx, al
mov eax, dword [ebp + 0x18]
cmp dword [eax], edi
mov edi, dword [ebp + 0x20]
cmove edx, ecx
xor eax, eax
mov byte [esi], dl
lea esi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x10021968
cmp dword [ebp + 0x10], 0xffff
jne 0x1002193e
cmp ecx, 0x80
jne 0x1002193e
mov eax, dword [ebp + 0xc]
or byte [eax], 8
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
test esi, esi
setne cl
movzx ecx, cl
push ecx
push dword [ebp + 0x20]
call fcn.10015e02
pop ecx
pop ecx
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x100220ab
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
add eax, 0x18
lock inc dword [eax]
cmp byte [ebp + 0x18], 0
je 0x100220c6
push 0
push 0
jmp 0x1002212f
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp ecx, 0xffffffff
jne 0x100220d9
push 0
push 0x2719
jmp 0x1002212f
mov eax, dword [ebp + 0x14]
and dword [ebp + 0x18], 0
push edi
push 0
push dword [ebp + 0x1c]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x10022112
mov eax, 0x2746
jmp 0x1002211f
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test edi, edi
pop edi
je 0x1002213c
cmp eax, 0x3e5
je 0x1002213c
push dword [ebp + 0x18]
push eax
push dword [ebp + 0x1c]
mov ecx, dword [esi + 4]
call fcn.1001c0d9
jmp 0x10022147
push dword [ebp + 0x1c]
mov ecx, dword [esi + 4]
call fcn.1001c7df
pop esi
pop ebp
ret 0x18
Function at 0x1002214c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
mov eax, dword [edi + 4]
add eax, 0x18
lock inc dword [eax]
cmp byte [ebp + 0x18], 0
je 0x10022167
push 0
push 0
jmp 0x100221bd
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x1002217a
push 0
push 0x2719
jmp 0x100221bd
and dword [ebp + 0x18], 0
lea ecx, [ebp + 0x18]
push esi
push 0
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
pop esi
je 0x100221ca
cmp eax, 0x3e5
je 0x100221ca
push dword [ebp + 0x18]
push eax
push dword [ebp + 0x1c]
mov ecx, dword [edi + 4]
call fcn.1001c0d9
jmp 0x100221d5
push dword [ebp + 0x1c]
mov ecx, dword [edi + 4]
call fcn.1001c7df
pop edi
pop ebp
ret 0x18
Function at 0x100221da
Capabilities:
Create thread

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
xor esi, esi
mov ebp, ecx
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, dword [esp + 0x34]
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
jne 0x10022255
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
push 0x10040078
push esi
lea ecx, [esp + 0x1c]
call fcn.1000b7c9
lea eax, [esp + 0x20]
mov dword [esp + 0x20], str.C:_build_tools_vcpkginstalledx86_windows_static_md_sharewebsocketpp....include_boost_asio_detail_impl_win_thread.ipp
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x28], str.start_thread
push str.thread.entry_event
push eax
mov dword [esp + 0x34], 0x4c
mov dword [esp + 0x38], 0x1a
call fcn.10023116
add esp, 0xc
xor esi, esi
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp + 8], eax
mov dword [ebx + 8], eax
cmp dword [ebp + 8], esi
jne 0x100222c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
push 0x10040078
push esi
lea ecx, [esp + 0x1c]
call fcn.1000b7c9
lea eax, [esp + 0x20]
mov dword [esp + 0x20], str.C:_build_tools_vcpkginstalledx86_windows_static_md_sharewebsocketpp....include_boost_asio_detail_impl_win_thread.ipp
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x28], str.start_thread
push str.thread.exit_event
push eax
mov dword [esp + 0x34], 0x56
mov dword [esp + 0x38], 0x1a
call fcn.10023116
add esp, 0xc
xor esi, esi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], esi
push eax
push esi
push ebx
push 0x10024128
push dword [esp + 0x48]
push esi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x18
mov dword [ebp + 4], eax
test eax, eax
jne 0x1002235b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov dword [esp + 0x38], eax
call dword [edx]
test edi, edi
je 0x10022307
push edi
call esi
cmp dword [ebp + 8], 0
je 0x10022312
push dword [ebp + 8]
call esi
push 0x10040078
push dword [esp + 0x38]
lea ecx, [esp + 0x1c]
call fcn.1000b7c9
lea eax, [esp + 0x20]
mov dword [esp + 0x20], str.C:_build_tools_vcpkginstalledx86_windows_static_md_sharewebsocketpp....include_boost_asio_detail_impl_win_thread.ipp
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x28], str.start_thread
push str.thread
push eax
mov dword [esp + 0x34], 0x66
mov dword [esp + 0x38], 0x1a
call fcn.10023116
add esp, 0xc
test edi, edi
je 0x1002236b
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
Function at 0x10022375
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x10040140]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, dword [ebp + 8]
inc eax
lock xadd dword [esi], eax
inc eax
cmp eax, 1
jne 0x100223be
movzx ecx, byte [ebp + 0x10]
lea eax, [ebp - 0x194]
push eax
movzx eax, byte [ebp + 0xc]
shl cx, 8
or cx, ax
movzx eax, cx
push eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea ecx, [esi + 4]
xchg dword [ecx], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10029719
leave
ret

Function at 0x10024ecd
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
xor ecx, ecx
sub eax, ecx
je 0x10024eee
sub eax, 1
jne 0x10024ef3
push ecx
push ecx
push ecx
push 0x10021d58
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x10024ef3
call fcn.100125e4
xor eax, eax
inc eax
ret 0xc

Function at 0x10026544
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10040140]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x1002659c
cmp byte [esi + 0x3d], bl
je 0x1002659c
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x100265d6
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, ebx
je 0x100265ad
sub eax, 1
je 0x100265b0
dec eax
sub eax, 1
jne 0x100265d6
mov byte [esi + 0x3d], bl
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10029719
leave
ret
mov byte [esi + 0x3d], bl
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100265ce
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 0x100265d6
cmp byte [esi + 0x3d], bl
sete al
jmp 0x1002659e
xor al, al
jmp 0x1002659e

Function at 0x100274c9
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0xa
push 0
push dword [ebp + 0xc]
call fcn.1002242a
add esp, 0xc
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
push eax
push dword [ebp + 8]
call fcn.100253a3
mov eax, dword [ebp + 8]
pop ecx
pop ecx
leave
ret

Function at 0x10027b7b
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x14], 0xf
jbe 0x10027b87
mov eax, dword [eax]
push 1
xor ecx, ecx
push ecx
push ecx
push eax
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret
Function at 0x10027b9b
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x10040140]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push ebp
or ebp, 0xffffffff
push edi
mov edi, ecx
cmp ebx, ebp
jne 0x10027bc0
xor eax, eax
jmp 0x10027c92
push esi
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
test eax, eax
je 0x10027bed
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const]
mov ecx, edi
mov esi, eax
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
cmp eax, esi
jae 0x10027bed
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
mov byte [eax], bl
jmp 0x10027c5c
cmp dword [edi + 0x4c], 0
je 0x10027c8f
mov ecx, edi
call fcn.10026cf7
mov ecx, dword [edi + 0x38]
mov al, bl
test ecx, ecx
jne 0x10027c0d
push dword [edi + 0x4c]
push eax
jmp 0x10027c50
mov byte [esp + 0x10], al
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x21]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [edi + 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 0x10027c60
sub eax, 1
je 0x10027c60
dec eax
sub eax, 1
jne 0x10027c8f
push dword [edi + 0x4c]
push dword [esp + 0x14]
call fcn.10025300
test al, al
pop ecx
pop ecx
cmove ebx, ebp
mov eax, ebx
jmp 0x10027c91
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x1c]
sub esi, eax
je 0x10027c80
push dword [edi + 0x4c]
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x10027c8f
lea eax, [esp + 0x10]
mov byte [edi + 0x3d], 1
cmp dword [esp + 0x18], eax
cmovne ebp, ebx
mov eax, ebp
pop esi
mov ecx, dword [esp + 0x38]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.10029719
add esp, 0x30
ret 4
Function at 0x10028369
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, ecx
mov dword [esp + 8], esi
push edi
mov edi, dword [esp + 0x18]
test ebp, ebp
jg 0x1002838e
jl 0x10028385
test edi, edi
jne 0x1002838e
xor eax, eax
xor edx, edx
jmp 0x1002845a
cmp dword [esi + 0x38], 0
je 0x100283a5
push ebp
push edi
push dword [esp + 0x1c]
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__]
jmp 0x1002845a
push ebx
mov ebx, edi
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const]
test eax, eax
je 0x100283eb
mov ecx, dword [esp + 0x10]
cmp eax, edi
mov esi, edi
cmovb esi, eax
push esi
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const]
mov ebx, dword [esp + 0x1c]
push eax
push ebx
call fcn.100134b1
add ebx, esi
add esp, 0xc
mov dword [esp + 0x18], ebx
mov ebx, edi
sub ebx, esi
push esi
mov esi, dword [esp + 0x14]
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int_]
jmp 0x100283f3
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
cmp dword [esi + 0x4c], 0
mov ecx, ebx
je 0x10028450
mov ecx, esi
call fcn.10026cf7
mov edx, dword [esp + 0x18]
mov ecx, ebx
jmp 0x1002842f
push dword [esi + 0x4c]
push eax
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, dword [esp + 0x28]
sub ebx, eax
add edx, eax
add esp, 0x10
mov dword [esp + 0x18], edx
mov ecx, ebx
cmp eax, 0xfff
jne 0x10028461
mov eax, 0xfff
cmp ebx, eax
ja 0x1002840a
test ecx, ecx
je 0x10028450
push dword [esi + 0x4c]
push ebx
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, ebx
add esp, 0x10
sub ecx, eax
sub edi, ecx
sbb ebp, 0
mov eax, edi
mov edx, ebp
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
sub edi, ebx
jmp 0x10028452