joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46344c
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 0x4635f7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4635d8
mov dl, 1
mov eax, dword [0x4178f4]
call fcn.0040377c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404580
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4635c7
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.00451344
test al, al
je 0x4635ba
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, 0x463608
lea eax, [ebp - 0x254]
call fcn.00409b3c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4635ba
xor eax, eax
push ebp
push 0x4635b3
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 0x463640
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46359c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004047f0
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 0x46359c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004047f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4635ba
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4634bd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041c050
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 0x4635fe
lea eax, [ebp - 0x260]
call fcn.00404580
ret

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

Disassembly:
push ecx
mov eax, dword [0x4e9bec]
cmp byte [eax + 0xa5], 0
jne 0x463fe5
cmp dword [0x4e9c04], 0
jne 0x463fa6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x463f30
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4e9c04], eax
cmp dword [0x4e9c00], 0
jne 0x463fc1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4e9c00], eax
cmp dword [0x4e9c08], 0
jne 0x463fe5
push esp
push 0
push 0
push 0x463ed4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4e9c08], eax
pop edx
ret
Function at 0x4640dc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4640f3
add esp, 0xfffffff0
call fcn.00403ad0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004204e8
mov eax, dword [0x4e8bc0]
cmp word [eax + 2], 0
jne 0x46411b
mov eax, dword [0x4e8bc0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046585c
mov eax, dword [0x4e8d3c]
cmp word [eax + 2], 0
jne 0x464135
mov eax, dword [0x4e8d3c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00465a54
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x417290]
call fcn.0040377c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x417290]
call fcn.0040377c
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 [0x422b1c]
call fcn.0042b240
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4642bc
mov eax, dword [0x4e8a14]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042b610
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x465ff4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4e8a14]
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.0040daa0
test eax, eax
je 0x46422a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040951c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040dac8
test eax, eax
je 0x46423e
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.004047f0
mov eax, dword [0x4e8768]
cmp byte [eax], 0
jne 0x464272
mov eax, ebx
call fcn.004643e4
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.004661d0
mov eax, ebx
call fcn.00466b94
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4642b2
call fcn.00403b28
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x464664
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4e9bec]
cmp dword [eax + 0x30], 0
je 0x46470e
cmp dword [ebx + 0x94], 0
jne 0x464708
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4645f4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x464708
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 0x4646ce
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x464708
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.0041997c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4646dd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x465270
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 0x4652a5
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.00404670
jmp 0x4652b2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004045d4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4663ac
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4663ed
mov eax, esi
call fcn.0044c92c
test al, al
je 0x4663ed
mov eax, dword [ebx + 0x84]
call fcn.0044c628
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4663ed
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044c628
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4670ac
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x416818]
call fcn.00404f38
xor eax, eax
push ebp
push 0x4671f0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4e6f3c], 0
jne 0x4670ff
mov ecx, dword [0x4e879c]
mov dl, 1
mov eax, dword [0x407a54]
call fcn.0040cc8c
call fcn.00403f38
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402fe4
mov eax, ebx
call fcn.00404de8
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x467200
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405fd0
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404df8
test eax, eax
jle 0x467197
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x467190
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404808
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004047f0
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004089d8
test eax, eax
jne 0x467190
mov ebx, 0x15
jmp 0x46719c
mov ebx, 0x10
jmp 0x46719c
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4e6f3c]
call fcn.00467004
mov eax, dword [ebp - 8]
call fcn.00467004
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405fe8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4671f7
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004045a4
lea eax, [ebp - 0x10]
mov edx, dword [0x416818]
call fcn.00405008
ret

Function at 0x471498
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 4]
inc ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.00424900
cmp ebx, dword [ebp - 8]
jge 0x4714fb
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.00424cfc
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.00424cfc
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.00424d28
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x4714c1
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x471504
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp - 4]
inc ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.00424900
cmp ebx, dword [ebp - 8]
jge 0x471567
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.00424cfc
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.00424cfc
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.00424d28
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x47152d
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4751dc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47543c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x47523f
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00474ca4
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040d5d4
cmp al, 1
jne 0x47523f
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00474fbc
test al, al
je 0x4753cb
cmp dword [ebp - 8], 0
jge 0x47525d
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.00474ca4
mov eax, dword [ebp - 0x210]
call fcn.00404840
cmp ebx, eax
jge 0x4752a7
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00474ca4
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4e8fa4]
and eax, 0xff
bt dword [edx], eax
jae 0x4752a7
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4752bb
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004751b8
cmp ebx, dword [ebp - 8]
je 0x4753bd
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4752e7
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004039a8
and eax, 0x7f
movzx eax, word [eax*2 + 0x4e70ec]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x4753aa
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004039a8
and eax, 0x7f
movzx eax, word [eax*2 + 0x4e70ec]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0044c628
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004039a8
and eax, 0x7f
movzx eax, word [eax*2 + 0x4e70ec]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0044c628
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4753b1
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x47541e
cmp dword [ebp - 8], 0
jge 0x4753d6
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00474ca4
mov eax, dword [ebp - 0x218]
call fcn.00404840
cmp eax, dword [ebp - 8]
jg 0x475410
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00474ca4
mov eax, dword [ebp - 0x21c]
call fcn.00404840
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004751b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475443
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.004045a4
ret
Function at 0x493d0c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x493d3a
mov eax, ebx
call fcn.004947c0
cmp dword [ebx + 0x40], 0
je 0x493d33
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x493dab
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x493d9d
cmp dword [ebx + 8], 0
je 0x493d5c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x493d6e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x493d9d
cmp dword [ebx + 8], 0
je 0x493d4f
cmp eax, 3
je 0x493d81
dec eax
jne 0x493d4f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x493d4f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x493d4f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x493dc9
cmp dword [ebx + 0x14], 0xcc
je 0x493dc9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00493dd4
pop ebx
ret
Function at 0x4b2110
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4b2118
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4b230a
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x4b2320
mov eax, esi
call fcn.004aff9c
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.004045d4
lea ecx, [ebp - 0x10]
mov edx, 0x4b2334
mov eax, esi
call fcn.004aff9c
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.004045d4
lea ecx, [ebp - 0x14]
mov edx, 0x4b234c
mov eax, esi
call fcn.004aff9c
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.004045d4
lea ecx, [ebp - 0x18]
mov edx, 0x4b2368
mov eax, esi
call fcn.004aff9c
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.004045d4
lea ecx, [ebp - 0x1c]
mov edx, 0x4b2384
mov eax, esi
call fcn.004aff9c
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.004045d4
lea ecx, [ebp - 0x24]
mov edx, 0x4b239c
mov eax, esi
call fcn.004aff9c
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408a48
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00408f90
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x4b23b4
mov eax, esi
call fcn.004aff9c
mov eax, dword [ebp - 0x28]
call fcn.004a98c4
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x4b23c4
mov eax, esi
call fcn.004aff9c
mov eax, dword [ebp - 0x2c]
call fcn.004a98c4
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x4b23dc
mov eax, esi
call fcn.004aff9c
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00408f90
inc eax
je 0x4b22ad
lea ecx, [ebp - 0x34]
mov edx, 0x4b23dc
mov eax, esi
call fcn.004aff9c
mov eax, dword [ebp - 0x34]
call fcn.00408f54
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040a970
fstp qword [ebp - 0x3c]
wait
call fcn.0040ad00
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x4b22c8
lea ecx, [ebp - 0x40]
mov edx, 0x4b23dc
mov eax, esi
call fcn.004aff9c
mov eax, dword [ebp - 0x40]
call fcn.004a98c4
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x4b23ec
mov eax, esi
call fcn.004aff9c
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.004045d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b2311
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004045a4
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.004045a4
ret
Function at 0x4b902c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4b9086
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004b901c
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004a8530
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004a8130
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b908d
lea eax, [ebp - 4]
call fcn.00404580
ret
Function at 0x4dd578
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebp, ecx
mov ebx, edx
mov dword [esp], eax
mov eax, ebp
mov edx, dword [esp]
call fcn.004045d4
mov esi, ebx
mov eax, dword [ebp]
call fcn.00404840
test ax, ax
jbe 0x4dd5e3
mov word [esp + 4], ax
mov bx, 1
mov eax, ebp
call fcn.00404a98
movzx edi, bx
mov edx, dword [ebp]
mov dl, byte [edx + edi - 1]
movzx ecx, si
shr ecx, 8
xor dl, cl
mov byte [eax + edi - 1], dl
mov eax, dword [esp]
movzx eax, byte [eax + edi - 1]
add si, ax
imul ax, si, 0xcad8
add ax, 0x566a
mov esi, eax
inc ebx
dec word [esp + 4]
jne 0x4dd5a8
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4e1954
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4e19ce
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xff
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00404bcc
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404a40
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x4e19ac
push ebx
mov ecx, dword [ebp - 8]
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404aa0
jmp 0x4e19b8
mov eax, ebx
mov edx, 0x4e19e4
call fcn.004045d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e19d5
lea eax, [ebp - 4]
call fcn.00404580
ret

Function at 0x4e1a54
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
mov dword [esp], pe_nt_image_headers32
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x101
call fcn.004047f0
add esp, 0x108
pop ebx
ret
Function at 0x1001b520
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [eax]
mov dword [ecx], edx
mov dword [ecx + 0x9c0], 1
push ebx
mov eax, dword [ecx + 0x9c0]
mov edx, dword [ecx + eax*4 - 4]
mov ebx, edx
shr ebx, 0x1e
xor ebx, edx
imul ebx, ebx, 0x6c078965
add ebx, eax
mov dword [ecx + eax*4], ebx
inc dword [ecx + 0x9c0]
cmp dword [ecx + 0x9c0], 0x270
jb 0x1001b533
mov eax, dword [ecx + 0x9bc]
xor eax, dword [ecx + 0x630]
pop ebx
test eax, eax
jns 0x1001b57e
xor eax, 0x1908b0df
add eax, eax
or eax, 1
jmp 0x1001b580
add eax, eax
mov edx, dword [ecx]
xor edx, eax
and edx, 0x7fffffff
xor dword [ecx], edx
xor eax, eax
mov edi, edi
cmp dword [ecx + eax*4], 0
jne 0x1001b5a4
inc eax
cmp eax, 0x270
jb 0x1001b590
mov dword [ecx], 0x80000000
ret 4

Function at 0x100215d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x100818ab
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1009fc80]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x18], ebx
lea ecx, [esi + 0x20]
mov dword [esi + 0x1c], ebx
call fcn.100200e0
lea ecx, [esi + 0x50]
mov dword [esp + 0x1c], ebx
call fcn.1001bfc0
xor eax, eax
lea edi, [esi + 0x3db0]
mov ecx, 0x169
rep stosd dword es:[edi], eax
push 0x9c4
lea eax, [esi + 0x4354]
push ebx
push eax
mov dword [esi + 0x3dac], ebx
call fcn.10066000
xor eax, eax
lea edi, [esi + 0x4d18]
mov ecx, 0x271
rep stosd dword es:[edi], eax
lea edi, [esi + 0x56dc]
mov ecx, 0x271
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x30]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.100198b0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4