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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4ab0d4]
cmp byte [eax + 0xc], 0
je 0x43dfb9
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43dfb2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4acbe8], 0
jne 0x43dea0
push 0x43dfc0
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43dfc8
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4acbe8], eax
cmp dword [0x48c9f8], 0
jne 0x43df9b
push 0x43dfd8
call sub.kernel32.dll_LoadLibraryA
mov dword [0x48c9f8], eax
cmp dword [0x48c9f8], 0
je 0x43df9b
push 0x43dfe4
mov eax, dword [0x48c9f8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4acbec], eax
push 0x43dff4
mov eax, dword [0x48c9f8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4acbf0], eax
push 0x43e008
mov eax, dword [0x48c9f8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4acbf4], eax
push 0x43e020
mov eax, dword [0x48c9f8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4acbf8], eax
push 0x43e038
mov eax, dword [0x48c9f8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4acbfc], eax
push 0x43e04c
mov eax, dword [0x48c9f8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4acc00], eax
push 0x43e064
mov eax, dword [0x48c9f8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4acc04], eax
push 0x43e07c
mov eax, dword [0x48c9f8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4acc08], eax
push 0x43e098
mov eax, dword [0x48c9f8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4acc0c], eax
push 0x43e0a4
mov eax, dword [0x48c9f8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4acc10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43dfb9
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x441bcc
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.00404484
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x441c1b
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.004046ec
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x449b04
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x449b54]
test si, 4
je 0x449b18
or bl, 1
test si, 8
je 0x449b22
or bl, 4
test si, 1
je 0x449b2c
or bl, 8
test si, 2
je 0x449b36
or bl, 0x10
test si, 0x10
je 0x449b40
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449b4f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x449b58
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x449b90]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449b71
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449b80
or bl, 4
test esi, 0x20000000
je 0x449b8b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x450194
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4501a6
add esp, 0xfffffff0
call fcn.00403a7c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041bd08
mov eax, dword [0x4aada0]
mov dword [eax + 4], ebx
mov dword [eax], 0x450538
mov eax, dword [0x4aadac]
mov dword [eax + 4], ebx
mov dword [eax], 0x450544
mov eax, ebx
call fcn.00450550
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411d18]
call fcn.004036d4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411d18]
call fcn.004036d4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411d18]
call fcn.004036d4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411d18]
call fcn.004036d4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411d18]
call fcn.004036d4
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, 0x44ca18
push eax
push 0
push 0
mov eax, dword [0x4aaee8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41d720]
call fcn.0041edf4
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41d720]
call fcn.0041edf4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41d720]
call fcn.0041edf4
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00450970
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45084c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45084c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45084c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4502e3
call fcn.00403ad4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x450630
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 0x4507db
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4507bc
mov dl, 1
mov eax, dword [0x412208]
call fcn.004036d4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404484
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4507ab
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.0043e1ac
test al, al
je 0x45079e
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, 0x4507ec
lea eax, [ebp - 0x254]
call fcn.0040931c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45079e
xor eax, eax
push ebp
push 0x450797
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 0x450824
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x450780
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004046ec
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 0x450780
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004046ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45079e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4506a1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00416350
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 0x4507e2
lea eax, [ebp - 0x260]
call fcn.00404484
ret

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

Disassembly:
push ecx
mov eax, dword [0x4acc2c]
cmp byte [eax + 0xa5], 0
jne 0x451181
cmp dword [0x4acc44], 0
jne 0x451142
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4510cc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4acc44], eax
cmp dword [0x4acc40], 0
jne 0x45115d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4acc40], eax
cmp dword [0x4acc48], 0
jne 0x451181
push esp
push 0
push 0
push 0x451070
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4acc48], eax
pop edx
ret
Function at 0x451278
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45128f
add esp, 0xfffffff0
call fcn.00403a7c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041bd08
mov eax, dword [0x4aaed8]
cmp word [eax + 2], 0
jne 0x4512b7
mov eax, dword [0x4aaed8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004528ac
mov eax, dword [0x4aaf70]
cmp word [eax + 2], 0
jne 0x4512d1
mov eax, dword [0x4aaf70]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00452aa4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411d18]
call fcn.004036d4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411d18]
call fcn.004036d4
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], 0x80000018
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 [0x41e1a0]
call fcn.00425504
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x451458
mov eax, dword [0x4aadf8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004258d4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x453024
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4aadf8]
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.0040ac74
test eax, eax
je 0x4513c6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408c78
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040ac9c
test eax, eax
je 0x4513da
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.004046ec
mov eax, dword [0x4aace8]
cmp byte [eax], 0
jne 0x45140e
mov eax, ebx
call fcn.00451580
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.00453200
mov eax, ebx
call fcn.00453b40
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45144e
call fcn.00403ad4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4517f4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4acc2c]
cmp dword [eax + 0x30], 0
je 0x45189e
cmp dword [ebx + 0x94], 0
jne 0x451898
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x451784
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x451898
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 0x45185e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x451898
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.004143b8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45186d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45237c
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 0x4523b1
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.00404574
jmp 0x4523be
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004044d8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4533dc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45341d
mov eax, esi
call fcn.00439928
test al, al
je 0x45341d
mov eax, dword [ebx + 0x84]
call fcn.00439624
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45341d
push 0
mov eax, dword [ebx + 0x84]
call fcn.00439624
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4596a8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404924
xor eax, eax
push ebp
push 0x45973f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00404484
mov eax, dword [ebp - 4]
call fcn.0040473c
test eax, eax
jle 0x459721
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 1
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dl, byte [edx + ecx - 1]
xor dl, 0x10
and edx, 0xff
sub edx, 0xf
call fcn.00404664
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.00404744
mov eax, dword [ebp - 8]
inc dword [ebp - 0xc]
dec dword [ebp - 0x10]
jne 0x4596ed
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459746
lea eax, [ebp - 0x14]
call fcn.00404484
lea eax, [ebp - 4]
call fcn.00404484
ret
Function at 0x461004
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x4610dc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x78]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
dec eax
test eax, eax
jb 0x4610dc
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
add eax, dword [edx + 0x20]
mov edx, dword [ebp - 0x20]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_lstrcmpA
test eax, eax
jne 0x4610d4
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
add eax, dword [edx + 0x24]
mov edx, dword [ebp - 0x20]
add edx, edx
add eax, edx
mov ax, word [eax]
mov word [ebp - 0x2e], ax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
add eax, dword [edx + 0x1c]
movzx edx, word [ebp - 0x2e]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x34]
mov dword [ebp - 0xc], eax
jmp 0x4610dc
inc dword [ebp - 0x20]
dec dword [ebp - 0x38]
jne 0x46106b
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x462214
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
test dl, dl
je 0x462226
add esp, 0xfffffff0
call fcn.00403a7c
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
push 1
push 0
push 0x462318
push 0x80000000
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4622f6
mov dword [ebp - 0x1c], 0x105
mov eax, dword [ebp - 0x1c]
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00407404
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x462354
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4622ed
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x4622e4
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x412390]
call fcn.0041684c
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00462370
mov eax, dword [ebp - 0x10]
call fcn.00403704
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFree_1
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x46230e
call fcn.00403ad4
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x466448
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
and edx, edx
je 0x466466
and ecx, ecx
jle 0x466466
push ebx
xor al, byte [edx]
imul eax, eax, 0x8088405
inc eax
mov ebx, eax
shr ebx, 0x18
mov byte [edx], bl
inc edx
dec ecx
jne 0x466451
pop ebx
ret

Function at 0x4666d4
Capabilities:
Encode data using xor

Disassembly:
and edx, edx
je 0x4666f7
and ecx, ecx
jle 0x4666f7
push ebx
push edi
xor ebx, ebx
lea edi, cs:[0x4666fd]
mov bl, al
shr eax, 8
xor bl, byte [edx]
xor eax, dword [edi + ebx*4]
inc edx
dec ecx
jne 0x4666e7
pop edi
pop ebx
ret
Function at 0x472c68
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov esi, eax
lea ebx, [esi + 0x1c]
mov eax, edx
lea edx, [ebx + 0x20]
mov ecx, 0x20
call fcn.004029b0
mov eax, dword [esi + 0x14]
dec eax
test eax, eax
jb 0x472d4d
inc eax
mov dword [esp + 8], eax
mov dword [esp], 0
mov dword [esp + 4], 4
mov eax, 0x494500
mov dword [esp + 0xc], eax
xor eax, eax
mov edx, dword [esp]
add edx, edx
mov ecx, eax
shr ecx, 1
and ecx, 1
add edx, ecx
shl edx, 7
lea ecx, [edx*8 + 0x48cff8]
mov edx, dword [ebx + eax*4]
and edx, 0xff
mov esi, dword [ecx + edx*4]
lea edx, [eax + 1]
and edx, 0xf
xor dword [ebx + edx*4], esi
lea edx, [eax + 0xf]
and edx, 0xf
xor dword [ebx + edx*4], esi
inc eax
mov edx, dword [ebx + eax*4]
and edx, 0xff
mov esi, dword [ecx + edx*4]
lea edx, [eax + 1]
and edx, 0xf
xor dword [ebx + edx*4], esi
lea edx, [eax + 0xf]
and edx, 0xf
xor dword [ebx + edx*4], esi
inc eax
cmp eax, 0x10
jb 0x472cae
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
mov esi, 0x20
sub esi, edx
xor eax, eax
mov ecx, edx
mov edi, dword [ebx + eax*4]
shr edi, cl
mov ecx, esi
mov ebp, dword [ebx + eax*4]
shl ebp, cl
or edi, ebp
mov dword [ebx + eax*4], edi
inc eax
cmp eax, 0x10
jne 0x472d18
add dword [esp + 0xc], 4
dec dword [esp + 4]
jne 0x472cac
inc dword [esp]
dec dword [esp + 8]
jne 0x472c9b
xor eax, eax
mov edx, 0xf
sub edx, eax
mov edx, dword [ebx + edx*4]
xor dword [ebx + eax*4], edx
inc eax
cmp eax, 8
jne 0x472d4f
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x477188
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 8], edx
mov edi, dword [0x4ab054]
mov edi, dword [edi]
mov esi, dword [ebp - 8]
mov eax, dword [esi]
call edi
mov dword [ebp - 4], eax
movzx edi, word [ebp - 2]
movzx eax, word [ebp - 4]
mov dword [ebp - 0xc], eax
mov edx, dword [0x4ab054]
mov edx, dword [edx]
mov eax, dword [esi + 4]
call edx
mov dword [ebp - 4], eax
movzx eax, word [ebp - 2]
mov dword [ebp - 0x10], eax
movzx eax, word [ebp - 4]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 4], eax
movzx edx, word [ebx]
mov eax, edi
call fcn.00477158
mov edi, eax
movzx eax, word [ebx + 2]
add dword [ebp - 0xc], eax
movzx eax, word [ebx + 4]
add dword [ebp - 0x10], eax
movzx edx, word [ebx + 6]
mov eax, dword [ebp - 0x14]
call fcn.00477158
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x10]
xor esi, edi
movzx edx, word [ebx + 8]
mov eax, esi
call fcn.00477158
mov esi, eax
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x14]
add eax, esi
movzx edx, word [ebx + 0xa]
call fcn.00477158
add esi, eax
xor edi, eax
xor dword [ebp - 0x14], esi
xor esi, dword [ebp - 0xc]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esi
add ebx, 0xc
inc dword [ebp - 4]
cmp dword [ebp - 4], 8
jne 0x4771d6
movzx edx, word [ebx]
mov eax, edi
call fcn.00477158
mov word [ebp - 2], ax
mov ax, word [ebp - 0x10]
add ax, word [ebx + 2]
mov word [ebp - 4], ax
mov edi, dword [0x4ab054]
mov edi, dword [edi]
mov eax, dword [ebp - 4]
call edi
mov esi, dword [ebp - 8]
mov dword [esi], eax
mov ax, word [ebp - 0xc]
add ax, word [ebx + 4]
mov word [ebp - 2], ax
movzx edx, word [ebx + 6]
mov eax, dword [ebp - 0x14]
call fcn.00477158
mov word [ebp - 4], ax
mov ebx, dword [0x4ab054]
mov ebx, dword [ebx]
mov eax, dword [ebp - 4]
call ebx
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4778fc
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x38]
mov esi, eax
mov edx, dword [ebp + 8]
mov edi, eax
add edi, 0x100
mov ecx, 1
xor ebx, ebx
mov eax, ecx
and al, 0xff
mov byte [esi], al
mov eax, ecx
and eax, 0xff
mov byte [edi + eax], bl
lea eax, [ecx + ecx*4]
lea eax, [eax + eax*8]
mov ecx, 0x101
cdq
idiv ecx
mov ecx, edx
inc esi
inc ebx
cmp ebx, 0x100
jne 0x47791f
pop edi
pop esi
pop ebx
pop ebp
ret