joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401200
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push 0
push 0
push eax
push 0x401160
push 0
push 0
mov dword [0x65f128], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x65f128], 0
mov dword [0x65f120], eax
jne 0x40124a
push 0x65f48c
push 0x32
push 0xa
call fcn.00404090
add esp, 0xc
cmp dword [0x65f128], 0
je 0x401230
ret

Function at 0x401300
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.004aeca2

Function at 0x4026e0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402754
lea ecx, [esp + 4]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
push 0
push 0
push 0x10
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x10]
push 0
push edx
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x402754
xor eax, eax
add esp, 0x1c
ret
mov eax, dword [esp + 0x20]
push 0x80020003
or eax, 0x10
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
add esp, 0x1c
ret

Function at 0x4038d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4038e9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403924
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x403920
lea ebx, [ebx]
cmp esi, eax
jae 0x403924
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403910
cmp esi, eax
jb 0x40392a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x403e60
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ecx
push esi
xor esi, esi
push esi
mov dword [esp + 8], esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x403eff
push ebp
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ebp, dword [esp + 0x14]
mov eax, ebp
lea edx, [eax + 2]
jmp 0x403e90
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403e90
sub eax, edx
sar eax, 1
lea edi, [eax + eax]
lea eax, [edi + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x403ef0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x403eef
push edi
push ebp
push ebx
call fcn.004cf320
add esp, 0xc
xor ecx, ecx
push esi
mov word [edi + ebx], cx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x403eef
mov dword [esp + 0x10], 1
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [esp + 0xc]
pop edi
pop ebp
pop esi
pop ecx
ret
mov eax, esi
pop esi
pop ecx
ret
Function at 0x404b90
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x14
mov eax, dword [0x65d4c0]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
push ebx
mov bx, word [esp + 0x1c]
push ebp
push esi
push edi
cmp bx, 0x61
jb 0x404bb7
cmp bx, 0x7a
jbe 0x404bc4
lea ecx, [eax - 0x41]
cmp cx, 0x19
ja 0x404c55
mov esi, dword [sym.imp.USER32.dll_keybd_event]
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
add eax, 0xffffffbf
mov dword [esp + 0x10], 0
cmp ax, 0x19
ja 0x404bf8
push 0
push 0
push 0
push 0x10
mov dword [esp + 0x20], 1
call edi
push eax
push 0x10
call esi
movzx edx, bx
push edx
call fcn.004cfd22
add esp, 4
movzx ebx, ax
push 0
push 0
movzx ebp, bx
push 0
push ebp
mov dword [esp + 0x38], ebx
call edi
push eax
push ebx
call esi
push 0
push 2
push 0
push ebp
call edi
push eax
push ebx
call esi
cmp dword [esp + 0x10], 0
je 0x404d18
push 0
push 2
push 0
push 0x10
call edi
push eax
push 0x10
call esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004cead5
add esp, 0x14
ret
mov eax, 0xff
cmp bx, ax
jbe 0x404c74
mov al, byte [esp + 0x28]
mov cl, byte [esp + 0x29]
mov byte [esp + 0x28], cl
mov byte [esp + 0x29], al
mov bx, word [esp + 0x28]
movzx edx, bx
push edx
lea eax, [esp + 0x18]
push 0x519b68
push eax
call fcn.004cfb8f
lea ebp, [esp + 0x20]
add esp, 0xc
lea ecx, [ebp + 1]
mov al, byte [ebp]
inc ebp
test al, al
jne 0x404c91
sub ebp, ecx
mov eax, 0
je 0x404cb5
mov cl, byte [esp + eax + 0x14]
sub cl, 0x30
or cl, 0x60
mov byte [esp + eax + 0x14], cl
inc eax
cmp eax, ebp
jb 0x404ca2
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push 0
push 0
push 0
push 0x12
call edi
mov ebx, dword [sym.imp.USER32.dll_keybd_event]
push eax
push 0x12
call ebx
xor esi, esi
test ebp, ebp
jbe 0x404d09
movsx edx, byte [esp + esi + 0x14]
push 0
push 0
push 0
push edx
call edi
push eax
movzx eax, byte [esp + esi + 0x20]
push eax
call ebx
movsx ecx, byte [esp + esi + 0x14]
push 0
push 2
push 0
push ecx
call edi
movzx edx, byte [esp + esi + 0x1c]
push eax
push edx
call ebx
inc esi
cmp esi, ebp
jb 0x404cd6
push 0
push 2
push 0
push 0x12
call edi
push eax
push 0x12
call ebx
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004cead5
add esp, 0x14
ret

Function at 0x404d30
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x65f120]
push 0
push eax
mov dword [0x65f128], 0
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [0x65f120]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x65f120], 0
ret
mov eax, dword [0x65f128]
mov ecx, dword [eax + 0x20]
push esi
push 0x64
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
xor esi, esi
cmp dword [0x65f598], esi
jbe 0x404d83
lea esp, [esp]
mov edx, dword [0x65f590]
mov eax, dword [edx + esi*4]
mov ecx, dword [0x65f570]
mov eax, dword [ecx + eax*4]
cdq
and edx, 3
add eax, edx
mov edx, dword [0x65f584]
sar eax, 2
lea eax, [edx + eax*4]
push eax
call fcn.004298d0
inc esi
cmp esi, dword [0x65f598]
jb 0x404d50
mov dword [0x65f48c], 1
pop esi
jmp 0x401250
Function at 0x407f50
Capabilities:
Acquire debug privileges
Allocate thread local storage
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5060ab
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push esi
push edi
mov eax, dword [0x65d4c0]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
push edi
push 0x65f278
call fcn.004044d0
add esp, 8
push 0x65f278
mov ecx, 0x65f668
call fcn.00407900
mov edx, dword [0x65f5bc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x407fcb
push 0x104
mov ecx, 0x65f5bc
call fcn.00401890
mov edx, dword [0x65f5bc]
push edi
push 0x1a
push edx
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [0x65f5bc]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004cfa57
add esp, 8
cmp eax, edi
jl 0x408116
mov ecx, dword [0x65f5bc]
cmp eax, dword [ecx - 8]
jg 0x408116
mov dword [ecx - 0xc], eax
mov edx, dword [0x65f5bc]
xor ecx, ecx
push 1
push str.SeDebugPrivilege
mov word [edx + eax*2], cx
call fcn.00404570
add esp, 8
push 0x65f160
mov dword [0x65f160], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
call fcn.004b91f8
call fcn.004b91f8
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [0x65f158], eax
push edi
lea eax, [esp + 0x10]
push eax
lea ecx, [esi + 0xa4]
push ecx
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call sub.gdiplus.dll_GdiplusStartup
push edi
call fcn.004b9cb9
push edi
call fcn.004cef7d
push eax
call fcn.004cf2df
mov edx, dword [esi + 0x44]
push edx
call fcn.00478470
add esp, 0x10
call fcn.0045caf0
call fcn.00478260
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push edi
lea ecx, [esp + 0x20]
mov dword [0x65f15c], eax
call fcn.0041a1f0
lea eax, [esp + 0x1c]
push edi
push 0x66
mov ecx, eax
mov dword [esp + 0xa4], edi
mov dword [esi + 0x20], eax
call fcn.004aeca2
push edi
lea ecx, [esp + 0x20]
call fcn.004b15dc
mov ecx, dword [0x65f15c]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsFree]
lea ecx, [esp + 0x1c]
mov dword [0x65f15c], edi
mov dword [esp + 0x9c], 0xffffffff
call fcn.004ae317
xor eax, eax
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x94
ret
push 0x80070057
call fcn.00401000
int3
Function at 0x408130
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x5060e9
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65d4c0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2c]
xor esi, esi
push esi
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov ebp, eax
shl ebp, 0x10
cmp dword [esp + 0x30], esi
je 0x40817c
or ebp, 0x1000000
call fcn.004b5c19
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x408196
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov edi, dword [esp + 0x28]
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], 1
mov esi, 0x40
mov eax, dword [edi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
add esi, esi
sub eax, esi
or eax, ecx
jge 0x4081d9
push esi
mov ecx, edi
call fcn.00401890
mov eax, dword [edi]
test esi, esi
jl 0x408245
cmp esi, dword [eax - 8]
jg 0x408245
mov dword [eax - 0xc], esi
mov ecx, dword [edi]
xor edx, edx
mov word [ecx + esi*2], dx
lea ecx, [esi + 1]
push ecx
push eax
push ebp
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x408215
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x408219
push ecx
push eax
call fcn.004cfa57
add esp, 8
test eax, eax
jl 0x408245
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x408245
mov dword [ecx - 0xc], eax
mov edx, dword [edi]
xor ecx, ecx
mov word [edx + eax*2], cx
cmp ebx, esi
je 0x4081b9
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 0x80070057
call fcn.00401000
int3

Function at 0x409580
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5061b9
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x65d4c0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
call fcn.004b5c19
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4095cf
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov edi, dword [esp + 0x20]
add eax, 0x10
mov dword [edi], eax
mov ecx, dword [esi + 0x28]
sub ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
sub edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x20]
push ecx
mov ecx, dword [esi + 0x1c]
push edx
push eax
push ecx
push str.Random_Mouse_Position_in_region___d__d__dx_d_
push edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x24], 1
call fcn.00401c80
add esp, 0x18
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x40a0d0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x506229
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65d4c0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x18], esi
call fcn.004b5c19
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40a11b
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
push esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x1c], 1
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40a178
mov ecx, dword [0x65f4f4]
push ecx
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [esp + 0x20], eax
cmp eax, esi
je 0x40a172
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
cmp byte [ebx], 0
jne 0x40a192
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
xor esi, esi
lea edx, [esp + 0x14]
push edx
push ebx
mov dword [esp + 0x1c], esi
call fcn.00403a90
mov edx, eax
add esp, 8
cmp edx, esi
mov dword [esp + 0x1c], edx
jle 0x40a167
cmp word [esp + 0x14], si
je 0x40a167
mov eax, dword [edi]
mov ebp, dword [eax - 0xc]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
lea esi, [ebp + 1]
sub eax, esi
or eax, ecx
jge 0x40a1da
push esi
mov ecx, edi
call fcn.00401890
mov edx, dword [esp + 0x1c]
mov eax, dword [edi]
mov cx, word [esp + 0x14]
mov word [eax + ebp*2], cx
test esi, esi
jl 0x40a206
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x40a206
mov dword [eax - 0xc], esi
mov eax, dword [edi]
xor ecx, ecx
add ebx, edx
mov word [eax + esi*2], cx
cmp byte [ebx], cl
jne 0x40a190
jmp 0x40a167
push 0x80070057
call fcn.00401000
int3

Function at 0x40d2f0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x5061b9
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x65d4c0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
call fcn.004b5c19
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40d33d
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov edi, dword [esp + 0x20]
add eax, 0x10
mov dword [edi], eax
push 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], 1
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40d395
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x40d38f
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.00402c80
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x40f990
Capabilities:
Enumerate gui resources

Disassembly:
push 0xffffffffffffffff
push 0x5066c8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x65d4c0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0xc]
call fcn.0040f090
xor esi, esi
lea ecx, [esp + 8]
mov dword [esp + 0x1c], esi
call fcn.004085c0
mov ecx, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push 0x409630
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ecx
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 8]
mov esi, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fa19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x18
ret
Function at 0x413290
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x506b1f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x65d4c0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.004057d0
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esi], vtable.ForLoopEvent.0
call fcn.004b5c19
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4132e4
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
lea ecx, [esi + 0x38]
mov byte [esp + 0x18], 5
call fcn.00412cc0
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], 3
mov dword [esi + 0xac], edi
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x4147e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x506eb9
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x65d4c0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.004057d0
mov dword [esp + 0x18], 0
mov dword [esi], vtable.WaitWindowEvent.0
call fcn.004b5c19
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x414836
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x20], eax
mov byte [esp + 0x18], 1
lea edi, [esi + 0x28]
call fcn.004b5c19
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x414867
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
lea ecx, [esi + 0x34]
mov byte [esp + 0x18], 2
call fcn.00412cc0
push 3
push 0x51ba7c
mov ecx, edi
mov byte [esp + 0x20], 3
mov dword [esi + 0x1c], 1
mov dword [esi + 0x24], 0xa
call fcn.00401a20
mov dword [esi + 0x2c], 1
mov dword [esi + 0x30], 0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x41ad00
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
sub ecx, 3
xor eax, eax
push edi
test ecx, ecx
jle 0x41ad22
mov edi, dword [esp + 0xc]
mov edx, dword [esi]
xor dword [edx + eax], edi
add edx, eax
add eax, 4
cmp eax, ecx
jl 0x41ad14
cmp eax, dword [esi + 4]
jge 0x41ad40
lea edi, [esp + 0xc]
jmp 0x41ad30
mov edx, dword [esi]
mov cl, byte [edi]
xor byte [edx + eax], cl
add edx, eax
inc eax
inc edi
cmp eax, dword [esi + 4]
jl 0x41ad30
pop edi
pop esi
ret 4

Function at 0x41b4c0
Capabilities:
Hide graphical window
Log keystrokes

Disassembly:
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, dword [esp + 8]
cmp eax, esi
jne 0x41b4d6
mov eax, 1
pop esi
ret
push ebx
push ebp
push edi
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebp, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
mov ebx, eax
push edi
push ebx
call ebp
cmp dword [esp + 0x18], 0
je 0x41b52e
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push edi
push ebx
mov esi, eax
call ebp
pop edi
pop ebp
pop ebx
mov eax, esi
pop esi
ret

Function at 0x41b6a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41b6ae
mov dword [eax], 0
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push 0
lea eax, [esp + 0x14]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
sbb eax, eax
not eax
and eax, dword [esp + 0xc]
ret

Function at 0x41b6e0
Capabilities:
Get mac address on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push edi
push 0x288
push 0x40
xor ebx, ebx
call esi
mov edi, eax
lea eax, [esp + 0xc]
push eax
push edi
mov dword [esp + 0x14], 0x288
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
je 0x41b720
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0xc]
push ecx
push 0x40
call esi
mov edi, eax
lea edx, [esp + 0xc]
push edx
push edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x41b79b
mov esi, edi
test edi, edi
je 0x41b79b
jmp 0x41b740
lea eax, [esi + 0x10c]
push 0x61c9fc
push eax
call fcn.004d0a70
add esp, 8
test eax, eax
ja 0x41b775
cmp dword [esi + 0x1a0], 0x47
je 0x41b775
mov esi, dword [esi]
test esi, esi
jne 0x41b740
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
ret
mov eax, dword [esi + 0x190]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push eax
add esi, 0x194
push esi
push edx
mov dword [ecx], eax
call fcn.004cf320
add esp, 0xc
mov ebx, 1
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
ret
Function at 0x41b8c0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x14]
dec ebp
xor eax, eax
test edx, edx
jle 0x41b8f9
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x1c]
jmp 0x41b8e0
mov ecx, ebp
test ebp, ebp
jl 0x41b8f1
mov bl, byte [ecx + edi]
xor byte [eax + esi], bl
sub ecx, 1
jns 0x41b8e6
inc eax
cmp eax, edx
jl 0x41b8e0
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41ba10
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
lea ecx, [esp]
push ecx
push 0x41b9d0
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 4]
add esp, 8
ret
Function at 0x41c1a0
Capabilities:
Get common file path
Get disk size
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x507822
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x65d4c0]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65d4c0]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x268]
xor esi, esi
mov dword [esp + 0x260], esi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x34], esi
call fcn.004b5c19
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x41c20d
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp], eax
mov dword [esp + 0x260], esi
mov dword [esp + 0x34], 1
mov eax, 1
xor edx, edx
cpuid
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
push 0x206
xor ebx, ebx
lea edx, [esp + 0x52]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x58], cx
call fcn.004cfde0
add esp, 0xc
push 0x104
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [esp + 0x4c]
push 0x5c
push ecx
call fcn.004ce35f
add esp, 8
cmp eax, ebx
je 0x41c289
xor edx, edx
mov word [eax + 2], dx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x58]
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x41c2c4
mov ecx, dword [esp + 0x26c]
xor edx, edx
add ecx, dword [esp + 0x14]
adc edx, dword [esp + 0x18]
add esi, ecx
adc edi, edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x30], ebx
call fcn.0041b6e0
add esp, 8
test eax, eax
je 0x41c301
cmp dword [esp + 0x28], 8
ja 0x41c301
mov edx, dword [esp + 0x2c]
add edx, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
adc eax, dword [esp + 0x18]
add esi, edx
adc edi, eax
push 0x208
lea ecx, [esp + 0x50]
push ebx
push ecx
mov dword [esp + 0x28], 0x104
call fcn.004cfde0
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x41c33d
xor ecx, ecx
add esi, dword [esp + 0x4c]
mov word [esp + 0x54], cx
adc edi, ebx
push esi
push edi
push str._X_08X
push ebp
call fcn.00401c80
add esp, 0x10
mov eax, ebp
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.004cead5
add esp, 0x250
ret