joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43caec
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43cc91
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40bc98]
call fcn.00402d5c
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403924
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x43cc67
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0042ca2c
test al, al
je 0x43cc5a
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x43cca0
lea eax, [ebp - 0x254]
call fcn.00408380
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x43cc5a
xor eax, eax
push ebp
push 0x43cc53
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x43ccd8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x43cc3c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403b50
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x43cc3c
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403b50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43cc5a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x43cb5d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0040eb40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43cc98
lea eax, [ebp - 0x260]
call fcn.00403924
ret

Function at 0x43d3f4
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x44c7a4]
cmp byte [eax + 0x8d], 0
jne 0x43d465
cmp dword [0x44c7e0], 0
jne 0x43d426
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x43d3b0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x44c7e0], eax
cmp dword [0x44c7dc], 0
jne 0x43d441
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x44c7dc], eax
cmp dword [0x44c7e4], 0
jne 0x43d465
push esp
push 0
push 0
push 0x43d354
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x44c7e4], eax
pop edx
ret
Function at 0x43d55c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x43d573
add esp, 0xfffffff0
call fcn.00403070
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004119d0
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40b998]
call fcn.00402d5c
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x40b998]
call fcn.00402d5c
mov dword [ebx + 0x90], eax
xor eax, eax
mov dword [ebx + 0x48], eax
xor eax, eax
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x44], 0x80000018
mov dword [ebx + 0x60], 0x1f4
mov byte [ebx + 0x64], 1
xor eax, eax
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x5c], 0x9c4
mov byte [ebx + 0x70], 0
mov byte [ebx + 0x85], 1
mov dl, 1
mov eax, dword [0x41375c]
call fcn.0041a828
mov esi, eax
mov dword [ebx + 0x80], esi
push 0x43d6e4
mov eax, dword [0x44b7e0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041abcc
mov eax, dword [ebx + 0x80]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x43efe0
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x44b7e0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.00409624
test eax, eax
je 0x43d663
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00407ce0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040964c
test eax, eax
je 0x43d677
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x74]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00403b50
mov eax, dword [0x44b6a0]
cmp byte [eax], 0
jne 0x43d6a8
mov eax, ebx
call fcn.0043d7d0
mov byte [ebx + 0x41], 1
mov byte [ebx + 0x42], 1
mov byte [ebx + 0x43], 1
mov byte [ebx + 0x86], 1
xor eax, eax
mov dword [ebx + 0x88], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x43d6da
call fcn.004030c8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43da2c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x44c7a4]
cmp dword [eax + 0x24], 0
je 0x43dabc
cmp dword [ebx + 0x7c], 0
jne 0x43dab9
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x43d9c0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x78]
cmp dword [eax + 8], 0
je 0x43dab9
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x43da88
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x78]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x43dab9
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x78]
call fcn.0040cfbc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x43da94
inc dword [ebx + 0x7c]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x43e40c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x8c], 0
je 0x43e441
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403a08
jmp 0x43e44b
mov eax, esi
mov edx, dword [ebx + 0x74]
call fcn.004039bc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x43f310
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x6c]
test esi, esi
je 0x43f348
mov eax, esi
call fcn.004288e0
test al, al
je 0x43f348
mov eax, dword [ebx + 0x6c]
call fcn.00428500
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43f348
push 0
mov eax, dword [ebx + 0x6c]
call fcn.00428500
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x445f94
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x445f9d
mov eax, dword [ebp - 4]
add esp, 4
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x446117
push dword fs:[eax]
mov dword fs:[eax], esp
cmp word [edx + 0xa], 0
jbe 0x445fd0
mov byte [ebx + 0xb4], 0
jmp 0x445fd7
mov byte [ebx + 0xb4], 1
mov eax, dword [edx]
sub eax, 0x465
je 0x445ffa
dec eax
je 0x4460d1
dec eax
je 0x4460fd
dec eax
je 0x446106
jmp 0x44610d
movzx eax, word [edx + 8]
cmp eax, 8
jg 0x44601c
je 0x4460b9
dec eax
je 0x4460a7
dec eax
je 0x4460b0
jmp 0x44610d
sub eax, 0x10
je 0x44602b
sub eax, 0x10
je 0x446057
jmp 0x44610d
cmp byte [ebx + 0xb4], 0
je 0x44610d
mov byte [ebx + 0x2a0], 1
cmp word [ebx + 0x3a], 0
je 0x44610d
mov edx, ebx
mov eax, dword [ebx + 0x3c]
call dword [ebx + 0x38]
jmp 0x44610d
push 0
push 0x3fff
lea eax, [ebp - 0x4000]
push eax
movzx eax, word [ebx + 0x294]
push eax
call sub.wsock32.dll_recv
mov esi, eax
test esi, esi
jle 0x44608b
lea edx, [ebp - 0x4000]
mov eax, dword [ebx + 0x29c]
mov ecx, esi
call fcn.0040ec68
dec esi
jl 0x446097
cmp byte [ebx + 0x84], 0
je 0x446057
mov byte [ebx + 0x2a0], 0
mov eax, ebx
call fcn.004465c0
jmp 0x44610d
mov eax, ebx
call fcn.00446128
jmp 0x44610d
mov eax, ebx
call fcn.0044635c
jmp 0x44610d
mov byte [ebx + 0x2a0], 1
cmp word [ebx + 0x32], 0
je 0x44610d
mov edx, ebx
mov eax, dword [ebx + 0x34]
call dword [ebx + 0x30]
jmp 0x44610d
mov byte [ebx + 0xd4], 1
cmp word [edx + 8], 8
jne 0x44610d
mov byte [ebx + 0x2a0], 1
test byte [ebx + 0x20], 8
jne 0x44610d
cmp word [ebx + 0x42], 0
je 0x44610d
mov edx, ebx
mov eax, dword [ebx + 0x44]
call dword [ebx + 0x40]
jmp 0x44610d
mov eax, ebx
call fcn.0044635c
jmp 0x44610d
mov eax, ebx
call fcn.00446128
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x446121
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x446128
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x446131
mov eax, dword [ebp - 4]
add esp, 0xfffffff4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x4010], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44634e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x84], 0
je 0x4461ac
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x298]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x294]
push eax
call sub.wsock32.dll_WSAAsyncSelect
mov eax, dword [ebp - 4]
cmp word [eax + 0x28e], 0
je 0x4461ac
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x290]
call dword [ebx + 0x28c]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x79], 0
jne 0x44632d
xor eax, eax
push ebp
push 0x446326
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x79], 1
lea edx, [ebp - 0x4010]
mov eax, dword [0x44b708]
call fcn.00404f90
mov ecx, dword [ebp - 0x4010]
mov dl, 8
mov eax, dword [ebp - 4]
call fcn.00446778
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x29c]
mov eax, ebx
call fcn.0040ebb4
mov edx, eax
mov eax, ebx
call fcn.0040eba8
push 0
push 0x3fff
lea eax, [ebp - 0x4009]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x294]
push eax
call sub.wsock32.dll_recv
mov ebx, eax
cmp ebx, 0xffffffff
je 0x44629b
lea edx, [ebp - 0x4009]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x29c]
mov ecx, ebx
call fcn.0040ec68
mov eax, dword [ebp - 4]
cmp byte [eax + 0x78], 0
je 0x446273
mov eax, dword [ebp - 4]
add dword [eax + 0xc0], ebx
mov eax, dword [ebp - 4]
cmp word [eax + 0xc6], 0
je 0x446273
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xc8]
call dword [esi + 0xc4]
mov byte [ebp - 9], 1
cmp ebx, 0x3fff
jne 0x4462f5
mov eax, dword [ebp - 4]
push eax
push 0
push 0x468
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x298]
push eax
call sub.user32.dll_PostMessageA
jmp 0x4462f5
call sub.wsock32.dll_WSAGetLastError
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x88], ebx
lea ecx, [ebp - 8]
mov edx, ebx
cmp edx, 0xffff
jbe 0x4462bd
call fcn.00402ccc
mov eax, dword [ebp - 4]
call fcn.00445a2c
mov eax, dword [ebp - 4]
cmp word [eax + 0x4a], 0
je 0x4462f5
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
cmp ecx, 0xffff
jbe 0x4462e9
call fcn.00402ccc
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x4c]
call dword [ebx + 0x48]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44632d
mov eax, dword [ebp - 4]
mov byte [eax + 0x79], 0
cmp byte [ebp - 9], 0
je 0x446325
mov eax, dword [ebp - 4]
cmp word [eax + 0x2a], 0
je 0x446325
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x2c]
call dword [ebx + 0x28]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x446355
lea eax, [ebp - 0x4010]
call fcn.00403924
lea eax, [ebp - 8]
call fcn.00403924
ret
Function at 0x44635c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x446365
mov eax, dword [ebp - 4]
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x4004], ecx
mov ebx, eax
xor eax, eax
push ebp
push 0x4465b1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x79], 0
jne 0x446598
mov byte [ebx + 0x79], 1
lea edx, [ebp - 0x4004]
mov eax, dword [0x44ba10]
call fcn.00404f90
mov ecx, dword [ebp - 0x4004]
mov dl, 8
mov eax, ebx
call fcn.00446778
cmp byte [ebx + 0x288], 0
je 0x4463df
mov eax, dword [ebx + 0xa8]
call fcn.0040eb98
mov esi, eax
mov eax, dword [ebx + 0xa8]
call fcn.0040ebb4
cmp esi, eax
jl 0x4463ff
cmp byte [ebx + 0x288], 0
jne 0x446594
mov eax, dword [ebx + 0xa8]
call fcn.0040ebb4
test eax, eax
je 0x446594
cmp byte [ebx + 0x84], 0
jne 0x446594
cmp byte [ebx + 0x288], 0
jne 0x446424
xor edx, edx
mov eax, dword [ebx + 0xa8]
call fcn.0040eba8
jmp 0x446435
mov edx, dword [ebx + 0x80]
mov eax, dword [ebx + 0xa8]
call fcn.0040eba8
lea edx, [ebp - 0x4000]
mov ecx, 0x3fff
mov eax, dword [ebx + 0xa8]
mov esi, dword [eax]
call dword [esi + 4]
mov edi, eax
push 0
push edi
lea eax, [ebp - 0x4000]
push eax
movzx eax, word [ebx + 0x294]
push eax
call sub.wsock32.dll_send
mov esi, eax
cmp esi, 0xffffffff
jle 0x446578
mov eax, dword [ebx + 0xa8]
call fcn.0040eb98
sub eax, edi
add eax, esi
push eax
mov eax, dword [ebx + 0xa8]
call fcn.0040ebb4
pop edx
cmp edx, eax
jl 0x4464af
cmp byte [ebx + 0x288], 0
jne 0x4464a3
mov eax, dword [ebx + 0xa8]
call fcn.0040eff8
mov byte [ebx + 0x286], 1
jmp 0x446552
cmp byte [ebx + 0x288], 0
jne 0x446522
mov eax, dword [ebx + 0xac]
call fcn.0040eff8
mov edx, esi
mov eax, dword [ebx + 0xa8]
call fcn.0040eba8
mov edi, dword [ebx + 0xa8]
mov eax, edi
call fcn.0040ebb4
mov ecx, eax
sub ecx, esi
mov edx, edi
mov eax, dword [ebx + 0xac]
call fcn.0040ece4
mov eax, dword [ebx + 0xa8]
call fcn.0040eff8
mov eax, dword [ebx + 0xac]
mov edx, dword [ebx + 0xa8]
mov dword [ebx + 0xac], edx
mov edx, eax
mov dword [ebx + 0xa8], edx
mov eax, edx
xor edx, edx
call fcn.0040eba8
mov byte [ebx + 0x79], 0
jmp 0x44653e
mov eax, dword [ebx + 0xa8]
call fcn.0040eb98
mov edx, eax
sub edx, edi
add edx, esi
mov eax, dword [ebx + 0xa8]
call fcn.0040eba8
push ebx
push 0
push 0x467
mov eax, dword [ebx + 0x298]
push eax
call sub.user32.dll_PostMessageA
add dword [ebx + 0x80], esi
cmp byte [ebx + 0x78], 0
je 0x446594
cmp word [ebx + 0xce], 0
je 0x446594
mov edx, ebx
mov eax, dword [ebx + 0xd0]
call dword [ebx + 0xcc]
jmp 0x446594
call sub.wsock32.dll_WSAGetLastError
mov dword [ebx + 0x88], eax
xor edx, edx
mov eax, dword [ebx + 0xa8]
call fcn.0040eba8
mov byte [ebx + 0x79], 0
mov byte [ebx + 0x79], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4465b8
lea eax, [ebp - 0x4004]
call fcn.00403924
ret
Function at 0x4465c0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x44668e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, dword [0x44b924]
call fcn.00404f90
mov ecx, dword [ebp - 4]
mov dl, 4
mov eax, ebx
call fcn.00446778
mov byte [ebx + 0x2a0], 0
mov si, word [ebx + 0x294]
cmp si, 0xffff
je 0x446678
movzx eax, si
push eax
call sub.wsock32.dll_closesocket
test eax, eax
jne 0x44666a
test byte [ebx + 0x20], 8
jne 0x446627
cmp word [ebx + 0x42], 0
je 0x446627
mov edx, ebx
mov eax, dword [ebx + 0x44]
call dword [ebx + 0x40]
cmp byte [ebx + 0x85], 0
jne 0x446678
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
cmp esi, 0xffff
jbe 0x44664a
call fcn.00402ccc
mov word [ebx + 0x294], si
push 0x3f
push 0x465
mov eax, dword [ebx + 0x298]
push eax
movzx eax, si
push eax
call sub.wsock32.dll_WSAAsyncSelect
jmp 0x446678
lea ecx, [ebp - 4]
mov dx, 0x2733
mov eax, ebx
call fcn.0044669c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x446695
lea eax, [ebp - 4]
call fcn.00403924
ret
Function at 0x40bc40
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46e5cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00462bd0
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40bcc2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004608dd
mov eax, dword [eax]
push 0x54e1d0
push eax
call fcn.00452d64
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00462e5b
test bl, bl
je 0x40bcc2
push 0x54e1d0
lea ecx, [esp + 0xc]
call fcn.004631eb
push 0x551d4c
lea ecx, [esp + 0xc]
call fcn.004631eb
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40bcfe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00462e5b
jmp 0x40bdc9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40bd82
lea edx, [esp + 0x7c]
push 0x551d48
push edx
call fcn.00452d64
add esp, 8
test eax, eax
je 0x40bd82
lea eax, [esp + 0x7c]
push 0x551d44
push eax
call fcn.00452d64
add esp, 8
test eax, eax
je 0x40bd82
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40bd12
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00462e5b
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40c5c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40c622
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x40c630
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46e64b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5586d8]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40c768
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40c696
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00462e5b
xor eax, eax
jmp 0x40c7df
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00462f98
push esi
lea ecx, [esp + 0xc]
call fcn.00463227
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40c7bd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040c5c0
test eax, eax
jne 0x40c7bd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.0040c5c0
test eax, eax
jne 0x40c7bd
lea eax, [esp + 0x14]
push 0x551d60
push eax
call fcn.00453da0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c79c
lea ecx, [esp + 0x14]
push 0x551d5c
push ecx
call fcn.00453d20
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c79c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40c79f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00462f48
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40c6ae
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00462e5b
xor eax, eax
jmp 0x40c7df
mov byte [esi], 0
push 0x551d58
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00462e5b
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x41f8d0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x41f93e
cmp si, 0x69
ja 0x41f93e
add esi, 0xffd0
cmp si, 0x11
je 0x41f90e
push 0x11
call edi
test ax, ax
jge 0x41f90e
or esi, 0x2000
cmp si, 0x10
je 0x41f923
push 0x10
call edi
test ax, ax
jge 0x41f923
or esi, 0x4000
cmp si, 0x12
je 0x41f938
push 0x12
call edi
test ax, ax
jge 0x41f938
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41f94b
mov esi, 0xbd
jmp 0x41f8ff
cmp si, 0x6e
jne 0x41f958
mov esi, 0xbe
jmp 0x41f8ff
cmp si, 0x6f
jne 0x41f8f9
mov esi, 0xbf
jmp 0x41f8ff

Function at 0x420ff0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x568de8]
xor edx, edx
cmp eax, edx
jne 0x421016
xor eax, eax
mov byte [eax + 0x568ce8], al
inc eax
cmp eax, 0x100
jl 0x420ffe
mov dword [0x568de8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x568ce8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4210a7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x42107a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x421048
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x421120
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x421173
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x42115a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret