joyce8/EMBER2024-capa huggingface dataset:
Function at 0x484cb0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Start tcp server

Disassembly:
sub esp, 0x34
mov eax, dword [0x4df040]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov ebx, dword [esp + 0x48]
push esi
mov esi, dword [sym.imp.WS2_32.dll_socket]
push edi
push 6
push 1
push 2
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x18], 1
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x484e96
xorps xmm0, xmm0
mov eax, 2
push 0x7f000001
movlpd qword [esp + 0x20], xmm0
mov word [esp + 0x18], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x18], eax
xor eax, eax
push 4
mov word [esp + 0x1a], ax
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push edi
mov dword [ebx + 4], 0xffffffff
mov dword [ebx], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x484e84
push 0x10
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x484e84
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x484e84
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x484e84
push 0
push 1
push 2
call esi
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x484e84
push 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x484e84
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x484e84
push ebx
push 0x4d0538
lea eax, [esp + 0x2c]
push 0xc
push eax
call fcn.00479e80
lea esi, [esp + 0x34]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x484de2
push 0
sub esi, ecx
lea eax, [esp + 0x28]
push esi
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jne 0x484e84
push 0
push 0xc
lea eax, [esp + 0x38]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
jne 0x484e84
lea ecx, [esp + 0x24]
lea edx, [esp + 0x30]
sub esi, 4
jb 0x484e37
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x484e3c
add ecx, 4
add edx, 4
sub esi, 4
jae 0x484e26
cmp esi, 0xfffffffc
je 0x484e69
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x484e84
cmp esi, 0xfffffffd
je 0x484e69
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x484e84
cmp esi, 0xfffffffe
je 0x484e69
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x484e84
cmp esi, 0xffffffff
je 0x484e69
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x484e84
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004acccf
add esp, 0x34
ret
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push edi
call esi
push dword [ebx]
call esi
push dword [ebx + 4]
call esi
mov ecx, dword [esp + 0x3c]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004acccf
add esp, 0x34
ret
Function at 0x488d40
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push esi
xor esi, esi
mov dword [esp + 4], esi
mov dword [eax], esi
lea eax, [esp + 8]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x488ef2
push ebx
mov ebx, dword [esp + 0xc]
push edi
test ebx, ebx
je 0x488edc
push ebp
mov eax, dword [ebx + 4]
cmp eax, 2
jne 0x488d8f
lea ebp, [eax + 0xe]
jmp 0x488d9b
cmp eax, 0x17
jne 0x488e49
lea ebp, [eax + 5]
cmp dword [ebx + 0x18], 0
je 0x488e49
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x488e49
cmp eax, ebp
jb 0x488e49
push 0x20
call dword [0x4df014]
mov edi, eax
add esp, 4
test edi, edi
je 0x488ed1
mov ecx, dword [ebx]
mov dword [edi], ecx
mov ecx, dword [ebx + 4]
mov dword [edi + 4], ecx
mov ecx, dword [ebx + 8]
mov dword [edi + 8], ecx
mov eax, dword [ebx + 0xc]
push ebp
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ebp
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
call dword [0x4df014]
add esp, 4
mov dword [edi + 0x18], eax
test eax, eax
je 0x488ec0
push ebp
push dword [ebx + 0x18]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x14]
add esp, 0xc
test eax, eax
je 0x488e35
push eax
call dword [0x4df020]
add esp, 4
mov dword [edi + 0x14], eax
test eax, eax
je 0x488ea6
mov eax, dword [esp + 0x10]
test esi, esi
cmove esi, edi
test eax, eax
je 0x488e45
mov dword [eax + 0x1c], edi
mov dword [esp + 0x10], edi
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x488d82
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop ebp
test eax, eax
je 0x488e68
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
je 0x488ed8
test esi, esi
je 0x488e95
push dword [esi + 0x18]
call dword [0x4df018]
push dword [esi + 0x14]
call dword [0x4df018]
mov edi, dword [esi + 0x1c]
push esi
call dword [0x4df018]
add esp, 0xc
mov esi, edi
test edi, edi
jne 0x488e70
mov eax, dword [esp + 0x28]
xor esi, esi
pop edi
mov dword [eax], esi
mov eax, ebx
pop ebx
pop esi
add esp, 0xc
ret
push dword [edi + 0x18]
mov ebx, 8
call dword [0x4df018]
push edi
call dword [0x4df018]
add esp, 8
jmp 0x488e58
push edi
mov ebx, 8
call dword [0x4df018]
add esp, 4
jmp 0x488e58
mov ebx, 8
jmp 0x488e58
test esi, esi
jne 0x488ee8
mov ebx, 0x2af9
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], esi
mov eax, ebx
pop ebx
pop esi
add esp, 0xc
ret

Function at 0x489350
Capabilities:
Create thread

Disassembly:
push 0
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, eax
add esp, 0x18
xor eax, eax
test ecx, ecx
je 0x489377
cmp ecx, 0xffffffff
cmovne eax, ecx
ret
Function at 0x48cb10
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
xor ebp, ebp
push esi
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0x4df01c]
mov edi, eax
add esp, 8
test edi, edi
je 0x48cb67
nop word [eax + eax]
push esi
push edi
push dword [esp + 0x1c]
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x48cb7f
cmp esi, ebx
je 0x48cb7f
cmp esi, 0x8000
ja 0x48cb7f
cmp esi, ebx
jb 0x48cb78
push esi
push edi
call dword [0x4df01c]
mov edi, eax
add esp, 8
test edi, edi
jne 0x48cb30
push ebp
call dword [0x4df018]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0x4df018]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4925e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x88
mov eax, dword [0x4df040]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x9c]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x80
push eax
mov ebp, dword [edi + 0x424]
or esi, 0xffffffff
mov ebx, dword [edi]
push ebp
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x492642
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x80
push eax
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
push ebp
push edi
call fcn.00477910
add esp, 8
cmp esi, 0xffffffff
jne 0x492666
push str.Error_accept__ing_server_connect
push ebx
call fcn.00476d60
add esp, 8
mov eax, 0x1e
jmp 0x4926d5
push str.Connection_accepted_from_server_n
push ebx
call fcn.00476e40
push 1
push esi
mov byte [edi + 0x514], 0
mov dword [edi + 0x424], esi
call fcn.00484eb0
add esp, 0x10
mov byte [edi + 0x7f0], 1
cmp dword [ebx + 0x610], 0
je 0x4926d3
push 1
push ebx
call fcn.00468ad0
mov eax, dword [ebx + 0x610]
push 1
push esi
push dword [ebx + 0x614]
call eax
push 0
push ebx
mov esi, eax
call fcn.00468ad0
add esp, 0x1c
test esi, esi
je 0x4926d3
push edi
call fcn.00492b70
add esp, 4
mov eax, 0x2a
jmp 0x4926d5
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004acccf
add esp, 0x88
ret
Function at 0x499b50
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
push 0
mov byte [esp + 0x16], al
lea eax, [esp + 0x14]
mov edi, dword [esi]
push 3
push eax
push dword [esi + 0x420]
mov byte [esp + 0x20], 0xff
mov byte [esp + 0x21], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x499b9c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.00476d60
add esp, 0xc
push dword [esp + 0x18]
push ebx
push str.SENT
push dword [esi]
call fcn.00499760
add esp, 0x10
pop edi
pop esi
pop ebx
ret

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

Disassembly:
cmp dword [esp + 8], 0x1f
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebp, dword [ebp]
mov ebx, dword [ebp + 0x14c]
jne 0x499e2c
lea ecx, [ebx + 0x1cb0]
push edi
lea edi, [ebx + 0x1eb0]
mov eax, ecx
mov dword [edi], ecx
cmp ecx, edi
jae 0x499d17
lea eax, [ecx + 1]
mov byte [ecx], 0xff
mov dword [edi], eax
cmp eax, edi
jae 0x499d2b
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x499d2b
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebx + 0x1ca8]
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [esp + 0x18], eax
movzx eax, word [ebx + 0x1caa]
push eax
call esi
mov edx, dword [esp + 0x18]
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x499d96
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x499d96
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x499d96
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x499d96
shr ecx, 8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x499d96
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x499d96
mov byte [eax], 0xf0
mov eax, dword [edi]
inc eax
mov dword [ebx + 0x1eb4], eax
lea esi, [ebx + 0x1cb0]
sub eax, esi
mov dword [edi], esi
sub eax, 2
push eax
lea eax, [ebx + 0x1cb2]
push eax
push 0x3e
push ebp
call fcn.00499860
add esp, 0x10
push 0
push 3
push esi
mov esi, dword [esp + 0x20]
push dword [esi + 0x420]
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x499dec
call edi
push eax
push str.Sending_data_failed___d_
push ebp
call fcn.00476d60
add esp, 0xc
push 4
lea eax, [ebx + 0x1cb3]
push eax
push esi
call fcn.00499bc0
add esp, 0xc
lea eax, [ebx + 0x1cb7]
push 0
push 2
push eax
push dword [esi + 0x420]
call dword [sym.imp.WS2_32.dll_send]
pop esi
test eax, eax
jns 0x499e2b
call edi
push eax
push str.Sending_data_failed___d_
push ebp
call fcn.00476d60
add esp, 0xc
pop edi
pop ebp
pop ebx
ret
Function at 0x4aca40
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x4aca8c
push ebx
mov ebx, dword [esp + 0x10]
mov cl, byte [esi + ebx]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [esi + ebx], cl
inc esi
cmp esi, edi
jb 0x4aca51
pop ebx
pop edi
pop esi
ret

Function at 0x4acba0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x4df014]
mov esi, eax
add esp, 4
test esi, esi
jne 0x4acbcb
pop esi
pop ebp
add esp, 0xc
ret
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x4acc1a
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [edi]
push ebx
push dword [esp + 0x2c]
push dword [esi + 4]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x28], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov ebx, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x28], ebx
jmp 0x4acc22
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x30]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4acc93
mov ebp, dword [esp + 0x14]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x4acc50
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
cmp ebx, dword [ebp + 0x10]
jae 0x4accc5
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x4d7376
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x4d7377
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x4acca0
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret

Function at 0x4ae013
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4ae052
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4ae052
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4ae052
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4ae052
cmp dword [ecx + 0x74], 0xe
jbe 0x4ae052
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x27502294
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
xor eax, eax
mov dword [esp + 0xc], eax
push edi
push 4
mov eax, dword [esi + 0x30]
add eax, 0x4c
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.27501cd4
mov eax, dword [esi + 0x30]
add eax, 0x40
push 4
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.27501cd4
mov ecx, dword [esp + 0x48]
xor ebp, ebp
add esp, 0x18
mov dword [esp + 0x14], ebp
xor eax, eax
mov dword [esp + 0x18], ebp
mov ebx, ecx
mov dword [esp + 0x1c], eax
lea edi, [ebx + 1]
mov eax, ecx
sub eax, ebx
xor esi, esi
mov ebx, dword [esp + 0x34]
add ebx, 0xfffffff0
add ebx, eax
je 0x275023f0
nop dword [eax + eax]
xor eax, eax
mov dl, byte [esp + eax + 0x24]
lea ecx, [eax + esi]
cmp byte [ecx + edi], dl
je 0x27502317
cmp dl, 0x3f
jne 0x27502394
inc eax
cmp eax, 8
jb 0x27502306
lea ebx, [esi + edi]
test ebx, ebx
je 0x275023f0
mov ecx, dword [ebx]
lea edi, [ebx + 8]
movzx esi, cl
shl esi, 8
movzx eax, ch
add esi, eax
mov dword [esp + 0x20], ecx
movzx eax, byte [esp + 0x22]
shl esi, 8
add esi, eax
shr ecx, 0x18
shl esi, 8
add esi, ecx
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x50]
cmp dword [edi], eax
jne 0x2750239f
test ebp, ebp
jne 0x275023ab
mov eax, dword [edi + 8]
add eax, 0x10
mov dword [esp + 0x1c], edi
push eax
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0x64]
push 0x40
call eax
push esi
mov ebp, eax
push edi
push ebp
mov dword [esp + 0x20], ebp
call fcn.27501cd4
mov ecx, dword [esp + 0x3c]
add esp, 0xc
add dword [esp + 0x10], esi
jmp 0x275022e4
inc esi
cmp esi, ebx
jb 0x27502304
jmp 0x275023f0
mov ecx, dword [esp + 0x30]
test ebp, ebp
je 0x275022e4
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
lea ebp, [esi + ecx]
cmp ebp, eax
ja 0x275023dc
mov eax, dword [esp + 0x14]
push esi
add eax, ecx
push edi
push eax
call fcn.27501cd4
mov ecx, dword [esp + 0x3c]
add esp, 0xc
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x14]
jmp 0x275022e4
mov ebp, dword [esp + 0x14]
sub eax, ecx
push eax
push edi
lea eax, [ecx + ebp]
push eax
call fcn.27501cd4
add esp, 0xc
test ebp, ebp
jne 0x275023fe
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
test al, 3
je 0x27502411
dec eax
test al, 3
jne 0x2750240c
xor ecx, ecx
test eax, eax
je 0x27502422
xor dword [ecx + ebp + 0x10], edx
add ecx, 4
cmp ecx, eax
jb 0x27502417
mov eax, dword [esp + 0x38]
pop edi
pop esi
mov dword [eax], ebp
mov eax, dword [esp + 8]
test eax, eax
pop ebp
setne al
pop ebx
add esp, 0x1c
ret
Function at 0x27596950
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x275abf10
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x275ba2ec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x14], ebx
cmp dword [ecx + 0x6c], ebx
mov dword [ebp - 4], ebx
jne 0x275969a0
mov eax, 0x80048008
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ecx + 0x6c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x30]
call edx
lea ecx, [ebp - 0x10]
push ecx
push 1
push ebx
push eax
push SysReAllocString
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, ebx
je 0x27596a13
mov edx, dword [0x275bc8c4]
mov eax, dword [edx + 0xc]
mov ecx, 0x275bc8c4
mov edi, 0x80048251
call eax
add eax, 0x10
mov dword [ebp + 8], eax
lea ecx, [ebp + 8]
push ecx
push esi
mov byte [ebp - 4], 1
call fcn.2759ea40
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x27596a63
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x27596a63
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x10]
lea ecx, [ebp + 8]
push ecx
push eax
lea edx, [ebp - 0x10]
push edx
mov dword [eax], ebx
mov eax, dword [0x275b91d8]
push ebx
push eax
push esi
mov dword [ebp + 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x27596a4a
cmp dword [ebp - 0x10], 4
je 0x27596a58
mov eax, 0xd
jmp 0x27596a4c
jle 0x27596a56
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp esi, ebx
je 0x27596a63
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x275973d0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x58], 0
je 0x27597443
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x275973ea
call fcn.27596620
jmp 0x275973ec
mov eax, dword [eax]
push 0x3e3
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edi, 0xffab9010
adc eax, sym.imp.KERNEL32.dll_GetLastError
push edi
mov edi, dword [esi + 0x54]
test edi, edi
je 0x2759741a
mov ecx, edi
call fcn.275713a0
push edi
call fcn.2757e8ec
add esp, 4
mov dword [esi + 0x54], 0
mov eax, dword [esi + 0x5c]
test eax, eax
pop edi
je 0x2759743c
cmp eax, 0xffffffff
je 0x2759743c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x5c], 0xffffffff
mov dword [esi + 0x58], 0
pop esi
ret
Function at 0x401000
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
jne 0x401027
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push ebx
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
push 1
call dword [sym.imp.USER32.dll_LockSetForegroundWindow]
push 3
push edi
call dword [sym.imp.USER32.dll_GetAncestor]
mov edi, eax
call dword [sym.imp.USER32.dll_GetFocus]
push 1
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
je 0x40111b
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, dword [ebp + 0xc]
test eax, eax
je 0x401079
cmp eax, ebx
jne 0x401105
push 0
push 2
push 7
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
push 7
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
call dword [sym.imp.USER32.dll_GetFocus]
test eax, eax
je 0x4010a9
cmp eax, ebx
jne 0x401105
push 0
push 2
push 6
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
push 7
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
call dword [sym.imp.USER32.dll_GetFocus]
test eax, eax
je 0x4010d9
cmp eax, ebx
jne 0x401105
push 0
push 1
push 0x1c
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
push 7
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, ebx
je 0x401107
mov dword [esi], eax
push 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
jmp 0x401124
mov esi, dword [ebp + 0xc]
mov dword [esi], 0
push 2
call dword [sym.imp.USER32.dll_LockSetForegroundWindow]
xor eax, eax
cmp dword [esi], eax
pop ebx
pop edi
setne al
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x401140
Capabilities:
Get keyboard layout
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x40c080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push edi
test eax, eax
je 0x4011f7
cmp eax, 0x10000
jge 0x4011f7
push 0
push ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
test edi, edi
je 0x4011f7
push 1
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
je 0x4011f7
push esi
push edi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 0x100
mov esi, eax
lea eax, [ebp - 0x104]
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
push esi
push ebx
call fcn.00401210
mov ecx, dword [ebp + 0xc]
mov esi, eax
lea ecx, [ecx + ecx*2]
push ecx
call fcn.00401570
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407c40
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.00407c40
mov esp, ebp
pop ebp
ret