joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43878c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x4387d8
mov eax, esi
call fcn.0044dcd4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4387d8
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x4387d8
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x438917
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x438818
cmp eax, 0x108
ja 0x438818
mov eax, esi
call fcn.0044dcd4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x43890e
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x438917
jmp 0x43890e
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x4388f7
cmp eax, 0x20a
ja 0x4388f7
test byte [esi + 0x50], 0x80
jne 0x43884a
sub eax, 0x203
je 0x438847
sub eax, 3
je 0x438847
sub eax, 3
jne 0x43884a
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x43885e
dec eax
je 0x438873
dec eax
je 0x438890
dec eax
je 0x438873
jmp 0x438897
mov ecx, ebx
mov eax, dword [0x48bff8]
mov eax, dword [eax]
mov edx, esi
call fcn.00457678
jmp 0x43890e
cmp byte [esi + 0x5d], 1
jne 0x438889
mov eax, esi
mov si, 0xffed
call fcn.00403984
jmp 0x438917
or word [esi + 0x54], 1
jmp 0x43890e
and word [esi + 0x54], 0xfffe
jmp 0x43890e
mov eax, dword [0x48db14]
cmp byte [eax + 0x20], 0
je 0x43890e
mov eax, dword [0x48db14]
cmp dword [eax + 0x1c], 0
je 0x43890e
mov eax, dword [ebx]
mov edx, dword [0x48db14]
cmp eax, dword [edx + 0x1c]
jne 0x43890e
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.0044dc18
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.00403984
jmp 0x438917
cmp eax, 0xb00b
jne 0x43890e
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.004370c8
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43bdb8
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x43bdd4
cmp dword [esi + 4], 0
je 0x43be01
test byte [ebx + 0x55], 1
jne 0x43bdf3
mov eax, ebx
call fcn.0043a9c4
test eax, eax
jne 0x43bdf3
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x43bf11
mov edx, esi
mov eax, ebx
call fcn.0043b8dc
jmp 0x43bf11
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x43bf0a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043dc28
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.004386c0
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0043bdb8
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043dc28
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43bf11
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x442398
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x48c1a4]
cmp byte [eax + 0xc], 0
je 0x442505
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4424fe
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x48db68], 0
jne 0x4423ec
push 0x44250c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x442514
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48db68], eax
cmp dword [0x489cf0], 0
jne 0x4424e7
push 0x442524
call sub.kernel32.dll_LoadLibraryA
mov dword [0x489cf0], eax
cmp dword [0x489cf0], 0
je 0x4424e7
push 0x442530
mov eax, dword [0x489cf0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48db6c], eax
push 0x442540
mov eax, dword [0x489cf0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48db70], eax
push 0x442554
mov eax, dword [0x489cf0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48db74], eax
push 0x44256c
mov eax, dword [0x489cf0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48db78], eax
push 0x442584
mov eax, dword [0x489cf0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48db7c], eax
push 0x442598
mov eax, dword [0x489cf0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48db80], eax
push 0x4425b0
mov eax, dword [0x489cf0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48db84], eax
push 0x4425c8
mov eax, dword [0x489cf0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48db88], eax
push 0x4425e4
mov eax, dword [0x489cf0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48db8c], eax
push 0x4425f0
mov eax, dword [0x489cf0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48db90], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x442505
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x446390
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.00404528
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4463df
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.00404798
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44db88
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44dbd8]
test si, 4
je 0x44db9c
or bl, 1
test si, 8
je 0x44dba6
or bl, 4
test si, 1
je 0x44dbb0
or bl, 8
test si, 2
je 0x44dbba
or bl, 0x10
test si, 0x10
je 0x44dbc4
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44dbd3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44dbdc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44dc14]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44dbf5
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44dc04
or bl, 4
test esi, 0x20000000
je 0x44dc0f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4542d8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4542ea
add esp, 0xfffffff0
call fcn.00403ab4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00420598
mov eax, dword [0x48bdd0]
mov dword [eax + 4], ebx
mov dword [eax], 0x45467c
mov eax, dword [0x48bddc]
mov dword [eax + 4], ebx
mov dword [eax], 0x454688
mov eax, ebx
call fcn.00454694
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x417bd8]
call fcn.0040374c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x417bd8]
call fcn.0040374c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x417bd8]
call fcn.0040374c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x417bd8]
call fcn.0040374c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x417bd8]
call fcn.0040374c
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, 0x450aac
push eax
push 0
push 0
mov eax, dword [0x48bf58]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x421fec]
call fcn.004236ac
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x421fec]
call fcn.004236ac
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x421fec]
call fcn.004236ac
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00454b98
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x454a18
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x454a18
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x454a18
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x454427
call fcn.00403b0c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4547fc
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 0x4549a7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x454988
mov dl, 1
mov eax, dword [0x41823c]
call fcn.0040374c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404528
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x454977
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.004426f8
test al, al
je 0x45496a
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, 0x4549b8
lea eax, [ebp - 0x254]
call fcn.00409b00
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45496a
xor eax, eax
push ebp
push 0x454963
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 0x4549f0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45494c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404798
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 0x45494c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404798
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45496a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45486d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041c6f4
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 0x4549ae
lea eax, [ebp - 0x260]
call fcn.00404528
ret

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

Disassembly:
push ecx
mov eax, dword [0x48dbb4]
cmp byte [eax + 0xa5], 0
jne 0x4553a9
cmp dword [0x48dbcc], 0
jne 0x45536a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4552f4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x48dbcc], eax
cmp dword [0x48dbc8], 0
jne 0x455385
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x48dbc8], eax
cmp dword [0x48dbd0], 0
jne 0x4553a9
push esp
push 0
push 0
push 0x455298
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x48dbd0], eax
pop edx
ret
Function at 0x455a3c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x48dbb4]
cmp dword [eax + 0x30], 0
je 0x455ae6
cmp dword [ebx + 0x94], 0
jne 0x455ae0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4559cc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x455ae0
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 0x455aa6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x455ae0
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.0041a188
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x455ab5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x456644
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 0x456679
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.00404618
jmp 0x456686
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040457c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4577c0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x457801
mov eax, esi
call fcn.0043df00
test al, al
je 0x457801
mov eax, dword [ebx + 0x84]
call fcn.0043dc28
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x457801
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043dc28
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x45b020
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x10]
push ebp
push 0x45b1a7
push dword fs:[0]
mov dword fs:[0], esp
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0x2c]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
test al, al
je 0x45b070
call fcn.00403fc8
jmp 0x45b1ae
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x30]
mov edi, eax
imul edi, edx
dec edi
xor ecx, ecx
xor edx, edx
mov eax, esi
call fcn.00462f74
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov esi, dword [edx + 0x40]
xor edx, edx
mov dl, bl
cmp edx, 5
ja case.default.0x45b0a0
jmp dword [edx*4 + 0x45b0a7]
add eax, 2
mov ebx, edi
test ebx, ebx
jl case.default.0x45b0a0
inc ebx
mov dl, byte [eax]
mov byte [esi], dl
inc esi
add eax, 4
dec ebx
jne 0x45b0cd
jmp case.default.0x45b0a0
inc eax
mov ebx, edi
test ebx, ebx
jl case.default.0x45b0a0
inc ebx
mov dl, byte [eax]
mov byte [esi], dl
inc esi
add eax, 4
dec ebx
jne 0x45b0e9
jmp case.default.0x45b0a0
mov ebx, edi
test ebx, ebx
jl case.default.0x45b0a0
inc ebx
mov dl, byte [eax]
mov byte [esi], dl
inc esi
add eax, 4
dec ebx
jne 0x45b104
jmp case.default.0x45b0a0
add eax, 3
mov ebx, edi
test ebx, ebx
jl case.default.0x45b0a0
inc ebx
mov dl, byte [eax]
mov byte [esi], dl
inc esi
add eax, 4
dec ebx
jne 0x45b11b
jmp case.default.0x45b0a0
mov ebx, edi
test ebx, ebx
jl case.default.0x45b0a0
inc ebx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov eax, ecx
and eax, 0xff0000
shr eax, 0x10
mov edx, ecx
and edx, 0xff00
shr edx, 8
add eax, edx
and ecx, 0xff
add eax, ecx
mov ecx, eax
mov eax, ecx
mov ecx, 3
xor edx, edx
div ecx
mov ecx, eax
mov byte [esi], cl
inc esi
add dword [ebp - 8], 4
dec ebx
jne 0x45b12f
jmp case.default.0x45b0a0
mov ebx, edi
test ebx, ebx
jl case.default.0x45b0a0
inc ebx
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00461bc0
mov byte [esi], al
inc esi
add dword [ebp - 8], 4
dec ebx
jne 0x45b175
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b1ae
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xc]
ret
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x47214c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, ecx
mov edi, edx
mov ebp, eax
xor esi, esi
test edi, edi
jle 0x4721aa
dec byte [ebx]
cmp byte [ebx], 0
jne 0x472189
dec dword [ebx + 8]
mov ecx, dword [ebx + 8]
mov edx, ebx
mov eax, ebp
call fcn.00471fa4
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 4]
mov al, byte [edx + eax]
mov byte [ebx + 1], al
and eax, 0xff
xor dword [ebx + 0x14], eax
mov byte [ebx], 8
add esi, esi
mov al, byte [ebx + 1]
mov edx, eax
and dl, 1
and edx, 0xff
or esi, edx
and eax, 0xff
shr eax, 1
mov byte [ebx + 1], al
dec edi
test edi, edi
jg 0x47215c
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4771e4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x48bae8], 0x8088405
inc edx
mov dword [0x48bae8], edx
mul edx
mov eax, edx
ret

Function at 0x477224
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
imul eax, eax, 0x2710
inc edx
imul edx, edx, 0x64
add eax, edx
inc ecx
add eax, ecx
mov dword [0x48bae8], eax
mov ecx, dword [ebp + 8]
mov edx, 0xa
mov al, 0x20
call fcn.00404bd8
mov eax, 2
call fcn.004771e4
mov ebx, eax
mov esi, 1
mov eax, 0x1a
call fcn.004771e4
mov eax, ebx
call fcn.004771fc
mov byte [ebp - 1], al
xor bl, 1
mov eax, dword [ebp + 8]
call fcn.00404a40
mov dl, byte [ebp - 1]
mov byte [eax + esi - 1], dl
inc esi
cmp esi, 0xb
jne 0x47725e
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x4773cc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov dl, 1
mov eax, dword [0x41823c]
call fcn.0040374c
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x477425
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47742c
mov eax, dword [ebp - 8]
call fcn.0040377c
ret

Function at 0x4795e4
Capabilities:
Inspect section memory permissions

Disassembly:
xor edx, edx
test eax, 0x4000000
je 0x4795f3
or edx, 0x200
test eax, 0x20000000
je 0x479627
test eax, 0x40000000
je 0x479612
test eax, 0x80000000
je 0x47960d
or edx, 0x40
jmp 0x47964e
or edx, 0x20
jmp 0x47964e
test eax, 0x80000000
je 0x479621
or edx, 0x80
jmp 0x47964e
or edx, 0x10
mov eax, edx
ret
test eax, 0x40000000
je 0x47963f
test eax, 0x80000000
je 0x47963a
or edx, 4
jmp 0x47964e
or edx, 2
jmp 0x47964e
test eax, 0x80000000
je 0x47964b
or edx, 8
jmp 0x47964e
or edx, 1
mov eax, edx
ret
Function at 0x484b90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x484cb4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx + 0x2f8]
mov eax, dword [eax + 0x24]
mov esi, dword [eax + 0x30]
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
call fcn.00458368
lea edx, [ebp - 0xc]
call fcn.00458170
lea eax, [ebp - 0xc]
mov edx, 0x484ccc
call fcn.004047f0
mov eax, dword [ebp - 0xc]
mov cl, 0x20
mov edx, 4
call fcn.00458220
mov eax, dword [ebp - 4]
push eax
mov edi, dword [ebx + 0x2f8]
mov eax, dword [edi + 0x18]
inc eax
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0
lea edx, [ebp - 0x48]
mov eax, dword [edi + 0x24]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x44]
call fcn.00408a2c
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebx + 0x2f8]
mov eax, dword [eax + 0x24]
mov esi, dword [eax + 0x30]
mov eax, dword [esi + 8]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, dword [ebx + 0x2f8]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x44]
push eax
lea edx, [ebp - 0x4c]
mov eax, dword [0x48c070]
call fcn.004066e4
mov eax, dword [ebp - 0x4c]
mov ecx, 6
pop edx
call fcn.00409b98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x484cbb
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.0040454c
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0040454c
ret