joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446d38
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x48c034]
cmp byte [eax + 0xc], 0
je 0x446ea5
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x446e9e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x48dba0], 0
jne 0x446d8c
push 0x446eac
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x446eb4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48dba0], eax
cmp dword [0x48ac74], 0
jne 0x446e87
push 0x446ec4
call sub.kernel32.dll_LoadLibraryA
mov dword [0x48ac74], eax
cmp dword [0x48ac74], 0
je 0x446e87
push 0x446ed0
mov eax, dword [0x48ac74]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48dba4], eax
push 0x446ee0
mov eax, dword [0x48ac74]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48dba8], eax
push 0x446ef4
mov eax, dword [0x48ac74]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48dbac], eax
push 0x446f0c
mov eax, dword [0x48ac74]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48dbb0], eax
push 0x446f24
mov eax, dword [0x48ac74]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48dbb4], eax
push 0x446f38
mov eax, dword [0x48ac74]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48dbb8], eax
push 0x446f50
mov eax, dword [0x48ac74]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48dbbc], eax
push 0x446f68
mov eax, dword [0x48ac74]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48dbc0], eax
push 0x446f84
mov eax, dword [0x48ac74]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48dbc4], eax
push 0x446f90
mov eax, dword [0x48ac74]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48dbc8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x446ea5
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404598
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44adc3
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404808
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x452710
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x452760]
test si, 4
je 0x452724
or bl, 1
test si, 8
je 0x45272e
or bl, 4
test si, 1
je 0x452738
or bl, 8
test si, 2
je 0x452742
or bl, 0x10
test si, 0x10
je 0x45274c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45275b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x452764
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45279c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45277d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45278c
or bl, 4
test esi, 0x20000000
je 0x452797
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x458e60
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x458e72
add esp, 0xfffffff0
call fcn.00403aa0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004207b4
mov eax, dword [0x48ba8c]
mov dword [eax + 4], ebx
mov dword [eax], 0x459204
mov eax, dword [0x48ba9c]
mov dword [eax + 4], ebx
mov dword [eax], 0x459210
mov eax, ebx
call fcn.0045921c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4175a4]
call fcn.00403738
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4175a4]
call fcn.00403738
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4175a4]
call fcn.00403738
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4175a4]
call fcn.00403738
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4175a4]
call fcn.00403738
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x455634
push eax
push 0
push 0
mov eax, dword [0x48bcf4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x422218]
call fcn.004239b0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x422218]
call fcn.004239b0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x422218]
call fcn.004239b0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045966c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x459534
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x459534
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x459534
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x458faf
call fcn.00403af8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x459318
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 0x4594c3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4594a4
mov dl, 1
mov eax, dword [0x417c08]
call fcn.00403738
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404598
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x459493
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.00447098
test al, al
je 0x459486
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, 0x4594d4
lea eax, [ebp - 0x254]
call fcn.00409bb4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x459486
xor eax, eax
push ebp
push 0x45947f
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 0x45950c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x459468
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404808
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 0x459468
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404808
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459486
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x459389
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041c36c
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 0x4594ca
lea eax, [ebp - 0x260]
call fcn.00404598
ret

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

Disassembly:
push ecx
mov eax, dword [0x48dbec]
cmp byte [eax + 0xa5], 0
jne 0x459e7d
cmp dword [0x48dc04], 0
jne 0x459e3e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x459dc8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x48dc04], eax
cmp dword [0x48dc00], 0
jne 0x459e59
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x48dc00], eax
cmp dword [0x48dc08], 0
jne 0x459e7d
push esp
push 0
push 0
push 0x459d6c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x48dc08], eax
pop edx
ret
Function at 0x45a510
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x48dbec]
cmp dword [eax + 0x30], 0
je 0x45a5ba
cmp dword [ebx + 0x94], 0
jne 0x45a5b4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45a4a0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45a5b4
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 0x45a57a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45a5b4
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.00419c5c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45a589
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45b118
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 0x45b14d
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.00404688
jmp 0x45b15a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004045ec
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45c2fc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45c33d
mov eax, esi
call fcn.00442758
test al, al
je 0x45c33d
mov eax, dword [ebx + 0x84]
call fcn.00442454
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45c33d
push 0
mov eax, dword [ebx + 0x84]
call fcn.00442454
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x479690
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 0x479698
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x47988a
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x4798a0
mov eax, esi
call fcn.0047751c
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.004045ec
lea ecx, [ebp - 0x10]
mov edx, 0x4798b4
mov eax, esi
call fcn.0047751c
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.004045ec
lea ecx, [ebp - 0x14]
mov edx, 0x4798cc
mov eax, esi
call fcn.0047751c
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.004045ec
lea ecx, [ebp - 0x18]
mov edx, 0x4798e8
mov eax, esi
call fcn.0047751c
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.004045ec
lea ecx, [ebp - 0x1c]
mov edx, 0x479904
mov eax, esi
call fcn.0047751c
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.004045ec
lea ecx, [ebp - 0x24]
mov edx, 0x47991c
mov eax, esi
call fcn.0047751c
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408ba0
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00408f94
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x479934
mov eax, esi
call fcn.0047751c
mov eax, dword [ebp - 0x28]
call fcn.00470ff4
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x479944
mov eax, esi
call fcn.0047751c
mov eax, dword [ebp - 0x2c]
call fcn.00470ff4
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x47995c
mov eax, esi
call fcn.0047751c
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00408f94
inc eax
je 0x47982d
lea ecx, [ebp - 0x34]
mov edx, 0x47995c
mov eax, esi
call fcn.0047751c
mov eax, dword [ebp - 0x34]
call fcn.00408f58
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.0040a524
fstp qword [ebp - 0x3c]
wait
call fcn.0040a904
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x479848
lea ecx, [ebp - 0x40]
mov edx, 0x47995c
mov eax, esi
call fcn.0047751c
mov eax, dword [ebp - 0x40]
call fcn.00470ff4
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x47996c
mov eax, esi
call fcn.0047751c
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.004045ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479891
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004045bc
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.004045bc
ret
Function at 0x48061c
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 0x480676
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.0048060c
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.0046fc60
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.0046f860
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 0x48067d
lea eax, [ebp - 4]
call fcn.00404598
ret

Function at 0x48437c
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.004075c8
ret

Function at 0x484a44
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 [0x416d6c]
call fcn.00404fd0
xor eax, eax
push ebp
push 0x484b88
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x48b6ec], 0
jne 0x484a97
mov ecx, dword [0x48b940]
mov dl, 1
mov eax, dword [0x407ba4]
call fcn.0040c89c
call fcn.00403f08
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00403150
mov eax, ebx
call fcn.00404e1c
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x484b98
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.0040625c
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404e2c
test eax, eax
jle 0x484b2f
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 0x484b28
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.0040483c
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404808
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408b30
test eax, eax
jne 0x484b28
mov ebx, 0x15
jmp 0x484b34
mov ebx, 0x10
jmp 0x484b34
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 [0x48b6ec]
call fcn.0048499c
mov eax, dword [ebp - 8]
call fcn.0048499c
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406274
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x484b8f
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004045bc
lea eax, [ebp - 0x10]
mov edx, dword [0x416d6c]
call fcn.004050a0
ret
Function at 0x486490
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xfffffdfc
mov ebx, eax
mov word [esp + 4], 0
mov eax, ebx
call fcn.00404598
mov dword [esp], pe_nt_image_headers32
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x4864cd
mov eax, ebx
lea edx, [esp + 4]
mov ecx, pe_nt_image_headers32
call fcn.00404820
add esp, 0x204
pop ebx
ret

Function at 0x487c60
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x487cc2
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, ebx
mov edx, 0x487cd8
mov eax, 0x487cec
call fcn.00487b18
lea edx, [ebp - 0x14]
mov eax, dword [ebx]
call fcn.004844a4
lea eax, [ebp - 0x14]
lea edx, [ebp - 4]
call fcn.00484518
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004045ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487cc9
lea eax, [ebp - 4]
call fcn.00404598
ret
Function at 0x405160
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41be03
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x431f04]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
xor eax, eax
mov dword [ebp - 4], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 7
mov word [edi + 0xc], ax
lea esi, [edi + 0x28]
mov dword [edi + 0x24], eax
push 0x40
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.0040c016
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
xor eax, eax
mov word [edi + 0x30], ax
mov eax, edi
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407cd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x431f04]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
mov ecx, edx
push esi
mov esi, dword [ebp + 0x10]
mov word [ebp - 0x1c], ax
lea eax, [ecx + 2]
mov dword [ebp - 0xc], 0
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 8], 7
mov dword [ebp - 0x20], eax
jmp 0x407d10
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407d10
sub ecx, dword [ebp - 0x20]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1c]
call fcn.00402660
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x24]
push ecx
push 0x20219
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], 0
cmovae eax, dword [ebp - 0x1c]
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407d93
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x18]
add eax, eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push edi
lea eax, [ebp - 0x20]
push eax
push 0
push esi
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x24]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x407d93
mov eax, dword [ebp - 0x20]
cmp eax, 1
je 0x407d8f
cmp eax, 2
jne 0x407d93
xor esi, esi
jmp 0x407d98
mov esi, 0x80004005
mov edx, dword [ebp - 8]
cmp edx, 8
jb 0x407dce
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407dc4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407de1
push edx
push ecx
call fcn.0040c046
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c2b3
mov esp, ebp
pop ebp
ret
call fcn.0040fa8a
int3
Function at 0x408510
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ecx]
cmp esi, 0x10
je 0x408527
cmp esi, 0x20
jne 0x4086fb
shr esi, 2
mov edx, 4
cmp esi, edx
mov dword [ebp - 0xc], esi
mov eax, esi
cmovb eax, edx
push edi
mov edi, dword [ebp + 8]
lea eax, [eax*4 + 0x1c]
mov dword [ebp - 8], eax
test edi, edi
je 0x4086fa
mov dword [edi], 0x10
push ebx
mov dword [edi + 4], eax
xor ebx, ebx
add edi, 8
test esi, esi
je 0x408592
lea edx, [ecx + 5]
movzx ecx, byte [edx - 1]
lea edx, [edx + 4]
movzx eax, byte [edx - 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 2]
shl ecx, 8
or ecx, eax
mov dword [edi + ebx*4], ecx
inc ebx
cmp ebx, esi
jl 0x408565
mov eax, dword [ebp - 8]
mov ebx, dword [edi + ebx*4 - 4]
mov ecx, esi
cmp esi, eax
jge 0x40867a
mov dword [ebp + 8], 0
mov dword [ebp - 4], edi
lea ebx, [ebx]
mov eax, ecx
cdq
idiv esi
test edx, edx
jne 0x408610
mov eax, dword [ebp + 8]
cdq
idiv esi
mov dl, byte [eax + 0x420d88]
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx esi, byte [eax + 0x41eb88]
movzx eax, dl
xor esi, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl esi, 8
movzx eax, byte [eax + 0x41eb88]
xor esi, eax
movzx eax, bl
shl esi, 8
shr ebx, 0x18
movzx eax, byte [eax + 0x41eb88]
xor esi, eax
movzx ebx, byte [ebx + 0x41eb88]
shl esi, 8
xor ebx, esi
mov esi, dword [ebp - 0xc]
jmp 0x40865d
cmp esi, 6
jbe 0x40865d
cmp edx, 4
jne 0x40865d
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + 0x41eb88]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x41eb88]
shl eax, 8
xor edx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x41eb88]
xor edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + 0x41eb88]
xor ebx, edx
mov eax, dword [ebp - 4]
inc dword [ebp + 8]
xor ebx, dword [eax]
add eax, 4
mov dword [edi + ecx*4], ebx
inc ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
cmp ecx, eax
jl 0x4085b0
xor esi, esi
sub ecx, 1
js 0x4086f9
lea eax, [edi + eax*4]
mov dword [ebp + 8], eax
mov ebx, dword [edi + ecx*4]
cmp esi, 4
jl 0x4086e9
cmp ecx, 4
jb 0x4086e9
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + 0x41eb88]
mov eax, ebx
shr eax, 8
movzx eax, al
mov edx, dword [edx*4 + 0x420188]
movzx eax, byte [eax + 0x41eb88]
xor edx, dword [eax*4 + 0x420588]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x41eb88]
xor edx, dword [eax*4 + 0x41fd88]
movzx eax, bl
movzx eax, byte [eax + 0x41eb88]
xor edx, dword [eax*4 + 0x420988]
mov eax, dword [ebp + 8]
jmp 0x4086eb
mov edx, ebx
mov dword [eax], edx
inc esi
add eax, 4
sub ecx, 1
mov dword [ebp + 8], eax
jns 0x408687
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4