joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a394
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 0x45a53f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45a520
mov dl, 1
mov eax, dword [0x417888]
call fcn.004032f4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404154
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45a50f
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.004483ac
test al, al
je 0x45a502
lea eax, [ebp - 0xc]
push eax
push 0x20019
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, 0x45a550
lea eax, [ebp - 0x254]
call fcn.00409454
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45a502
xor eax, eax
push ebp
push 0x45a4fb
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 0x45a588
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45a4e4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004043c4
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45a4e4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004043c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a502
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45a405
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041c208
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a546
lea eax, [ebp - 0x260]
call fcn.00404154
ret

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

Disassembly:
push ecx
mov eax, dword [0x481be8]
cmp byte [eax + 0xa5], 0
jne 0x45aee5
cmp dword [0x481c00], 0
jne 0x45aea6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45ae30
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x481c00], eax
cmp dword [0x481bfc], 0
jne 0x45aec1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x481bfc], eax
cmp dword [0x481c04], 0
jne 0x45aee5
push esp
push 0
push 0
push 0x45add4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x481c04], eax
pop edx
ret
Function at 0x45afdc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45aff3
add esp, 0xfffffff0
call fcn.00403648
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004201b8
mov eax, dword [0x480418]
cmp word [eax + 2], 0
jne 0x45b01b
mov eax, dword [0x480418]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045c75c
mov eax, dword [0x4804dc]
cmp word [eax + 2], 0
jne 0x45b035
mov eax, dword [0x4804dc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045c954
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x417134]
call fcn.004032f4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x417134]
call fcn.004032f4
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x422704]
call fcn.00429af0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45b1bc
mov eax, dword [0x48031c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00429ec0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45cf04
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x48031c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
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.0040cba0
test eax, eax
je 0x45b12a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408e0c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cbc8
test eax, eax
je 0x45b13e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004043c4
mov eax, dword [0x4801e4]
cmp byte [eax], 0
jne 0x45b172
mov eax, ebx
call fcn.0045b2e4
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045d0e0
mov eax, ebx
call fcn.0045daa4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45b1b2
call fcn.004036a0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45b564
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x481be8]
cmp dword [eax + 0x30], 0
je 0x45b60e
cmp dword [ebx + 0x94], 0
jne 0x45b608
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45b4f4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45b608
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 0x45b5ce
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45b608
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004198ac
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45b5dd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45c170
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45c1a5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404244
jmp 0x45c1b2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004041a8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45d2bc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45d2fd
mov eax, esi
call fcn.00443a28
test al, al
je 0x45d2fd
mov eax, dword [ebx + 0x84]
call fcn.00443724
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45d2fd
push 0
mov eax, dword [ebx + 0x84]
call fcn.00443724
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x45dc50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff68
push ebx
xor eax, eax
mov dword [ebp - 0x98], eax
xor eax, eax
push ebp
push 0x45dd96
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x47fee0], 0
jne 0x45dd77
mov byte [0x47fee0], 1
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x84]
sub eax, 1
jb 0x45dcaf
je 0x45dcbb
dec eax
je 0x45dd15
jmp 0x45dd70
mov byte [0x481c0c], 1
jmp 0x45dd77
cmp dword [ebp - 0x90], 4
jne 0x45dcf1
cmp dword [ebp - 0x8c], 0
jne 0x45dcf1
cmp dword [ebp - 0x88], 0x3e8
jbe 0x45dce5
mov byte [0x481c0c], 3
jmp 0x45dd77
mov byte [0x481c0c], 2
jmp 0x45dd77
cmp dword [ebp - 0x90], 4
jne 0x45dd0c
cmp dword [ebp - 0x8c], 0xa
jne 0x45dd0c
mov byte [0x481c0c], 4
jmp 0x45dd77
mov byte [0x481c0c], 0
jmp 0x45dd77
mov eax, dword [ebp - 0x90]
sub eax, 4
jb 0x45dd27
je 0x45dd30
dec eax
je 0x45dd67
jmp 0x45dd77
mov byte [0x481c0c], 5
jmp 0x45dd77
lea eax, [ebp - 0x98]
lea edx, [ebp - 0x80]
mov ecx, 0x80
call fcn.004043c4
mov eax, dword [ebp - 0x98]
mov edx, 0x45ddac
call fcn.00404560
jne 0x45dd5e
mov byte [0x481c0c], 7
jmp 0x45dd77
mov byte [0x481c0c], 6
jmp 0x45dd77
mov byte [0x481c0c], 8
jmp 0x45dd77
mov byte [0x481c0c], 0
mov bl, byte [0x481c0c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45dd9d
lea eax, [ebp - 0x98]
call fcn.00404154
ret
Function at 0x45df08
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe80
push ebx
xor edx, edx
mov dword [ebp - 0x178], edx
mov dword [ebp - 0x17c], edx
mov dword [ebp - 0x180], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404604
xor eax, eax
push ebp
push 0x45e0a3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x2000
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00404614
push eax
call sub.shell32.dll_SHGetFileInfoA
mov ebx, eax
lea eax, [ebp - 0x16c]
mov edx, ebx
and edx, 0xff
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x16c]
lea eax, [ebp - 0x170]
call fcn.00402c1c
lea eax, [ebp - 0x174]
mov edx, ebx
and edx, 0xff00
shr edx, 8
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x174]
lea eax, [ebp - 0x170]
mov cl, 2
call fcn.00402bec
lea edx, [ebp - 0x170]
lea eax, [ebp - 8]
call fcn.004043b8
mov eax, dword [ebp - 8]
mov edx, 0x45e0bc
call fcn.00404560
jne 0x45dfd8
mov bl, 1
jmp 0x45e078
mov eax, dword [ebp - 8]
mov edx, 0x45e0c8
call fcn.00404560
jne 0x45dfee
mov bl, 2
jmp 0x45e078
mov eax, dword [ebp - 8]
mov edx, 0x45e0d4
call fcn.00404560
jne 0x45e00d
mov eax, ebx
call fcn.004070e8
test ax, ax
jne 0x45e00d
mov bl, 3
jmp 0x45e078
mov eax, dword [ebp - 8]
mov edx, 0x45e0d4
call fcn.00404560
jne 0x45e02c
mov eax, ebx
call fcn.004070e8
test ax, ax
jbe 0x45e02c
mov bl, 4
jmp 0x45e078
lea edx, [ebp - 0x178]
mov eax, 0x45e0e0
call fcn.00408474
mov eax, dword [ebp - 0x178]
push eax
lea edx, [ebp - 0x180]
mov eax, dword [ebp - 4]
call fcn.00408ca0
mov eax, dword [ebp - 0x180]
lea edx, [ebp - 0x17c]
call fcn.00408474
mov eax, dword [ebp - 0x17c]
pop edx
call fcn.004083fc
test eax, eax
jne 0x45e076
mov bl, 1
jmp 0x45e078
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e0aa
lea eax, [ebp - 0x180]
mov edx, 3
call fcn.00404178
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404178
ret
Function at 0x47d090
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
shl eax, 2
mov ecx, 3
cdq
idiv ecx
mov ebx, eax
mov edx, ebx
add edx, 4
mov eax, esi
call fcn.004047a0
mov eax, esi
call fcn.0040466c
push eax
mov edx, ebx
add edx, 2
xor ecx, ecx
pop eax
call fcn.00402d38
cmp byte [ebp - 1], 0
jne 0x47d103
mov eax, esi
call fcn.0040466c
mov dl, byte [ebp - 0xc]
dec edx
and dl, 0x3f
add dl, 0x21
mov byte [eax], dl
mov eax, dword [ebp - 0xc]
add eax, 2
mov ecx, 3
cdq
idiv ecx
lea eax, [eax + eax*2]
mov dword [ebp - 0xc], eax
mov edi, 2
xor eax, eax
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov al, byte [ebp - 1]
sub al, 1
jb 0x47d11c
sub al, 2
jb 0x47d123
jmp 0x47d128
mov ebx, 2
jmp 0x47d128
mov ebx, 1
mov eax, esi
call fcn.0040466c
mov byte [eax + ebx - 1], 0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jge 0x47d20a
test edi, edi
jle 0x47d184
mov eax, esi
call fcn.0040466c
lea eax, [eax + ebx - 1]
push eax
mov ecx, edi
mov eax, 0x3f
shl eax, cl
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx edx, byte [edx + ecx]
and eax, edx
mov ecx, edi
shr eax, cl
mov edx, dword [esi]
or al, byte [edx + ebx - 1]
pop edx
mov byte [edx], al
sub edi, 6
inc ebx
mov eax, esi
call fcn.0040466c
mov byte [eax + ebx - 1], 0
jmp 0x47d1fe
test edi, edi
jge 0x47d1ca
mov eax, edi
cdq
xor eax, edx
sub eax, edx
mov edi, eax
mov eax, esi
call fcn.0040466c
lea eax, [eax + ebx - 1]
push eax
mov ecx, edi
mov eax, 0x3f
shr eax, cl
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
and al, byte [edx + ecx]
mov ecx, edi
shl al, cl
mov edx, dword [esi]
or al, byte [edx + ebx - 1]
pop edx
mov byte [edx], al
mov eax, 8
sub eax, edi
mov edi, eax
inc dword [ebp - 0x10]
jmp 0x47d1fe
mov eax, esi
call fcn.0040466c
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov dl, byte [edx + ecx]
and dl, 0x3f
mov ecx, dword [esi]
mov cl, byte [ecx + ebx - 1]
or dl, cl
mov byte [eax + ebx - 1], dl
inc ebx
inc dword [ebp - 0x10]
mov eax, esi
call fcn.0040466c
mov byte [eax + ebx - 1], 0
mov edi, 2
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jl 0x47d140
mov al, byte [ebp - 1]
sub al, 1
jb 0x47d21a
sub al, 2
jb 0x47d253
jmp 0x47d29a
cmp edi, 2
jne 0x47d220
dec ebx
mov eax, ebx
sub eax, 2
jl 0x47d29a
inc eax
mov dword [ebp - 0x14], eax
mov edi, 2
mov eax, esi
call fcn.0040466c
mov edx, dword [esi]
movzx edx, byte [edx + edi - 1]
mov ecx, dword [0x48017c]
mov dl, byte [ecx + edx]
mov byte [eax + edi - 1], dl
inc edi
dec dword [ebp - 0x14]
jne 0x47d230
jmp 0x47d29a
cmp edi, 2
jne 0x47d259
dec ebx
test ebx, ebx
jle 0x47d295
mov dword [ebp - 0x14], ebx
mov edi, 1
mov eax, esi
call fcn.0040466c
mov edx, dword [esi]
movzx edx, byte [edx + edi - 1]
mov ecx, dword [0x480180]
mov dl, byte [ecx + edx]
mov byte [eax + edi - 1], dl
inc edi
dec dword [ebp - 0x14]
jne 0x47d265
jmp 0x47d295
inc ebx
mov eax, esi
call fcn.0040466c
mov byte [eax + ebx - 1], 0x3d
test bl, 3
jne 0x47d288
mov eax, esi
mov edx, ebx
call fcn.004047a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x47dbc0
Capabilities:
Terminate process

Disassembly:
push ebx
push ecx
mov ebx, edx
xor eax, eax
mov dword [esp], eax
push ebx
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov ebx, eax
push esp
push ebx
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [esp]
push eax
push ebx
call sub.kernel32.dll_TerminateProcess
pop edx
pop ebx
ret

Function at 0x47dd58
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, edx
push esp
push 0xfe
call sub.kernel32.dll_GetTempPathA
lea eax, [esp + 0xff]
push eax
push 0
push 0x47dda0
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetTempFileNameA
mov eax, ebx
lea edx, [esp + 0xff]
mov ecx, 0xff
call fcn.004043c4
add esp, 0x200
pop ebx
ret
Function at 0x40b5c0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46784b
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.0045c249
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40b642
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045a160
mov eax, dword [eax]
push 0x97a1f0
push eax
call fcn.0044cd94
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045c4d4
test bl, bl
je 0x40b642
push 0x97a1f0
lea ecx, [esp + 0xc]
call fcn.0045c864
push 0x97dd6c
lea ecx, [esp + 0xc]
call fcn.0045c864
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 0x40b67e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045c4d4
jmp 0x40b749
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 0x40b702
lea edx, [esp + 0x7c]
push 0x97dd68
push edx
call fcn.0044cd94
add esp, 8
test eax, eax
je 0x40b702
lea eax, [esp + 0x7c]
push 0x97dd64
push eax
call fcn.0044cd94
add esp, 8
test eax, eax
je 0x40b702
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 0x40b692
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.0045c4d4
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 0x40bf40
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 0x40bfa2
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 0x40bfb0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4678cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x9842e0]
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 0x40c0e8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40c016
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045c4d4
xor eax, eax
jmp 0x40c15f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045c611
push esi
lea ecx, [esp + 0xc]
call fcn.0045c8a0
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 0x40c13d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040bf40
test eax, eax
jne 0x40c13d
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.0040bf40
test eax, eax
jne 0x40c13d
lea eax, [esp + 0x14]
push 0x97dd80
push eax
call fcn.0044ddd0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c11c
lea ecx, [esp + 0x14]
push 0x97dd7c
push ecx
call fcn.0044dd50
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c11c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40c11f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045c5c1
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40c02e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045c4d4
xor eax, eax
jmp 0x40c15f
mov byte [esi], 0
push 0x97dd78
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.0045c4d4
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 0x41cae0
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 0x41cb4e
cmp si, 0x69
ja 0x41cb4e
add esi, 0xffd0
cmp si, 0x11
je 0x41cb1e
push 0x11
call edi
test ax, ax
jge 0x41cb1e
or esi, 0x2000
cmp si, 0x10
je 0x41cb33
push 0x10
call edi
test ax, ax
jge 0x41cb33
or esi, 0x4000
cmp si, 0x12
je 0x41cb48
push 0x12
call edi
test ax, ax
jge 0x41cb48
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41cb5b
mov esi, 0xbd
jmp 0x41cb0f
cmp si, 0x6e
jne 0x41cb68
mov esi, 0xbe
jmp 0x41cb0f
cmp si, 0x6f
jne 0x41cb09
mov esi, 0xbf
jmp 0x41cb0f

Function at 0x41e200
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x994960]
xor edx, edx
cmp eax, edx
jne 0x41e226
xor eax, eax
mov byte [eax + 0x994860], al
inc eax
cmp eax, 0x100
jl 0x41e20e
mov dword [0x994960], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x994860
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41e2b7
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 0x41e28a
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 0x41e258
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41e330
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 0x41e383
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 0x41e36a
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
Function at 0x4300d0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4697b8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.0042a9d0
test eax, eax
je 0x4301d8
lea ecx, [esp + 0xc]
call fcn.00402cf0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.0042a9d0
mov ecx, eax
call fcn.004280a0
test eax, eax
je 0x4301bf
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x4301bf
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4301bf
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
neg esi
push edi
push ebx
sbb esi, esi
and esi, edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.00402ef0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x4301a1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4301bf
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x994db0]
push ebx
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x96a1b8
call fcn.00402ef0
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10