joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5d80b0
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5d8260
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
jne 0x5d823f
mov dl, 1
mov eax, dword [0x4849b0]
call fcn.004b0a70
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.0040a51c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x5d822e
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.00545dcc
test al, al
je 0x5d8221
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
movzx eax, word [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x5d8270
lea eax, [ebp - 0x394]
call fcn.004268f8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x5d8221
xor eax, eax
push ebp
push 0x5d821a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x5d82e0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x5d8201
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040b01c
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov ebx, dword [eax]
call dword [ebx + 0x40]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x4c]
jne 0x5d8201
mov eax, dword [ebp - 4]
add eax, 0x48
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040b01c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d8221
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x5d8121
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov byte [eax + 0x2d], 0
mov dl, 1
call fcn.004b0998
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x44]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d8267
lea eax, [ebp - 0x3a0]
call fcn.0040a51c
pop eax
jmp eax

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

Disassembly:
push ecx
mov eax, dword [0x60bc18]
cmp byte [eax + 0xc5], 0
jne 0x5d8eea
cmp dword [0x60bc40], 0
jne 0x5d8eaa
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, dword [0x603cf0]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x60bc40], eax
cmp dword [0x60bc3c], 0
jne 0x5d8ec5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x60bc3c], eax
cmp dword [0x60bc44], 0
jne 0x5d8eea
push esp
push 0
push 0
mov eax, dword [0x603cec]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x60bc44], eax
pop edx
ret
Function at 0x5d9464
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x5d947b
add esp, 0xfffffff0
call fcn.00408d60
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004c1810
mov eax, dword [0x603db8]
cmp byte [eax], 0
jne 0x5d94a8
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x19c], al
mov eax, dword [0x604140]
cmp word [eax + 2], 0
jne 0x5d94c2
mov eax, dword [0x604140]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005db928
mov eax, dword [0x604284]
cmp word [eax + 2], 0
jne 0x5d94dc
mov eax, dword [0x604284]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005dbd40
mov byte [ebx + 0x41], 0
mov dl, 1
mov eax, dword [0x508d54]
call fcn.0050f8d0
mov esi, eax
mov dword [ebx + 0x54], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x5dc2ec
mov dl, 1
mov eax, dword [0x480c64]
call fcn.00408744
mov dword [ebx + 0xa8], eax
mov dl, 1
mov eax, dword [0x480c64]
call fcn.00408744
mov dword [ebx + 0xc8], eax
xor eax, eax
mov dword [ebx + 0x74], eax
xor eax, eax
mov dword [ebx + 0x98], eax
mov dword [ebx + 0x70], 0xff000018
mov dword [ebx + 0x8c], 0x1f4
mov byte [ebx + 0x90], 1
xor eax, eax
mov dword [ebx + 0x94], eax
mov dword [ebx + 0x88], 0x9c4
mov byte [ebx + 0xbd], 1
mov byte [ebx + 0xd4], 1
mov dl, 1
mov eax, dword [0x50dec4]
call fcn.00519ee4
mov esi, eax
mov dword [ebx + 0xb8], esi
push 0x5d96cc
mov eax, dword [0x603fd8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.0051a400
mov eax, dword [ebx + 0xb8]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x5dc5d8
mov dl, 1
mov eax, dword [0x480c64]
call fcn.00408744
mov dword [ebx + 0xb0], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x603fd8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.004266f8
test eax, eax
je 0x5d95ef
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.00426550
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.004266dc
test eax, eax
je 0x5d9607
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0xa4]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.0040b01c
push ebx
push 0x5db2fc
call fcn.005cd8f8
mov dword [ebx + 0x198], eax
mov byte [ebx + 0xe8], 0
mov eax, dword [0x603db8]
cmp byte [eax], 0
jne 0x5d9658
mov eax, ebx
call fcn.005d9894
mov byte [ebx + 0x6d], 1
mov byte [ebx + 0x6e], 1
mov byte [ebx + 0x6f], 1
mov byte [ebx + 0xbe], 1
mov byte [ebx + 0xe9], 0
mov byte [ebx + 0xf4], 0
xor eax, eax
mov dword [ebx + 0xec], eax
mov byte [ebx + 0xeb], 0
xor eax, eax
mov dword [ebx + 0xc0], eax
mov eax, ebx
call fcn.005dc980
mov eax, ebx
call fcn.005dd4bc
mov byte [ebx + 0x19e], 0
mov byte [ebx + 0xf5], 1
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5d96c3
call fcn.00408db8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5d9bc4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x190]
test eax, eax
je 0x5d9c66
cmp dword [ebx + 0xac], 0
jne 0x5d9c60
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x5d9b04
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0xa8]
cmp dword [eax + 8], 0
je 0x5d9c60
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_GetWindowLongW
test al, 8
je 0x5d9c26
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0xa8]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x5d9c60
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [ebx + 0xa8]
mov edx, esi
call fcn.004ab878
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x5d9c35
inc dword [ebx + 0xac]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x5d9fa8
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x60bc18]
cmp dword [eax + 0x190], 0
je 0x5da111
test bl, bl
jne 0x5da064
cmp dword [esi + 0xb4], 0
jne 0x5da059
mov eax, esi
call fcn.005dd30c
push eax
push 0x5d9ea8
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x58], 0
je 0x5da02a
mov eax, dword [0x60bc18]
cmp byte [eax + 0xeb], 0
je 0x5da02a
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x5da00b
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x5da02a
push 0
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5da013
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5da059
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.004ab878
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5da039
inc dword [esi + 0xb4]
jmp 0x5da111
cmp dword [esi + 0xb4], 0
jle 0x5da111
dec dword [esi + 0xb4]
cmp dword [esi + 0xb4], 0
jne 0x5da111
cmp dword [esi + 0x58], 0
je 0x5da0c6
mov eax, dword [0x60bc18]
cmp byte [eax + 0xeb], 0
je 0x5da0c6
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x5da0a7
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x5da0c6
push 5
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5da0af
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5da0f5
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.004ab878
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5da0d5
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
call dword [edx + 8]
lea eax, [esi + 0xf0]
mov edx, dword [0x5c9d98]
call fcn.0040d318
pop edi
pop esi
pop ebx
ret
Function at 0x5daf08
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xc4], 0
je 0x5daf65
cmp byte [ebx + 0xeb], 0
jne 0x5daf65
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x190]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040a6b4
mov eax, dword [esi]
test eax, eax
je 0x5daf52
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x5daf72
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.0040a90c
jmp 0x5daf72
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.0040a90c
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x5dcb94
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x98]
test esi, esi
je 0x5dcc05
mov eax, esi
call fcn.0053f8b4
test al, al
je 0x5dcc05
mov eax, dword [ebx + 0x98]
call fcn.0053f44c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x5dcc05
mov eax, dword [ebx + 0x98]
mov edx, dword [eax]
call dword [edx + 0x160]
test al, al
je 0x5dcbf6
push 0
mov eax, dword [ebx + 0x98]
call fcn.0053f44c
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebx + 0x98]
xor edx, edx
call fcn.00535684
jmp 0x5dcc05
mov edx, dword [ebx + 0x88]
mov cl, 1
mov eax, ebx
call fcn.005dc9a0
pop esi
pop ebx
ret
Function at 0x5e53c0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x94], 0
jne 0x5e5446
mov eax, dword [ebx + 8]
call fcn.0053f44c
mov ecx, eax
mov dl, 1
mov eax, dword [0x54e60c]
call fcn.00538f30
mov dword [ebx + 0x94], eax
mov esi, dword [ebx + 0x94]
xor edx, edx
mov eax, esi
call fcn.0055c3e4
mov dword [esi + 0x2dc], ebx
mov dword [esi + 0x2d8], 0x5e4c90
push 8
mov edx, 3
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xe0]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x94]
call fcn.0053f44c
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x94]
call fcn.0053f44c
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0xa4], 0
jne 0x5e54c8
mov eax, dword [ebx + 8]
call fcn.0053f44c
mov ecx, eax
mov dl, 1
mov eax, dword [0x54e60c]
call fcn.00538f30
mov dword [ebx + 0xa4], eax
mov esi, dword [ebx + 0xa4]
mov dl, 1
mov eax, esi
call fcn.0055c3e4
mov dword [esi + 0x2dc], ebx
mov dword [esi + 0x2d8], 0x5e4cdc
push 8
push 0
mov edx, 2
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xe0]
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0xa4]
call fcn.0053f44c
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0xa4]
call fcn.0053f44c
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x9c], 0
jne 0x5e5546
mov eax, dword [ebx + 8]
call fcn.0053f44c
mov ecx, eax
mov dl, 1
mov eax, dword [0x54f100]
call fcn.00538f30
mov dword [ebx + 0x9c], eax
mov esi, dword [ebx + 0x9c]
mov byte [esi + 0x2b0], 1
push 8
mov edx, 3
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xe0]
push eax
mov edx, 2
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xe0]
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x9c]
call fcn.0053f44c
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x9c]
call fcn.0053f44c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x5ed3cc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x5ed543
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x5ed51c
push dword fs:[edx]
mov dword fs:[edx], esp
mov word [ebp - 0x216], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x216]
push eax
lea eax, [ebp - 0x21c]
mov edx, esi
call fcn.0040afa0
lea eax, [ebp - 0x21c]
mov edx, 0x5ed55c
call fcn.0040b174
mov eax, dword [ebp - 0x21c]
call fcn.0040af80
push eax
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x5ed48b
lea eax, [ebp - 0x216]
call fcn.0040aa14
lea edx, [ebp - 0x216]
mov ecx, ebx
xchg ecx, eax
call fcn.0040a6b4
jmp 0x5ed492
mov eax, ebx
call fcn.0040a51c
cmp si, 0x61
jae 0x5ed4b4
lea edx, [ebp - 0x220]
mov eax, dword [ebx]
call fcn.00424ca8
mov edx, dword [ebp - 0x220]
mov eax, ebx
call fcn.0040a90c
jmp 0x5ed4ce
lea edx, [ebp - 0x224]
mov eax, dword [ebx]
call fcn.00424cd4
mov edx, dword [ebp - 0x224]
mov eax, ebx
call fcn.0040a90c
lea eax, [ebp - 0x228]
push eax
mov eax, dword [ebx]
mov dword [ebp - 0x230], eax
mov byte [ebp - 0x22c], 0x11
lea edx, [ebp - 0x230]
xor ecx, ecx
mov eax, 0x5ed570
call fcn.004269c8
mov edx, dword [ebp - 0x228]
mov eax, ebx
call fcn.0040a90c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ed523
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
pop eax
jmp eax
Function at 0x401000
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Get windows directory from kuser_shared_data

Disassembly:
mov eax, dword [0x816808]
sub esp, 0x20c
push ebp
mov ebp, ecx
push esi
push edi
test eax, eax
je 0x4011ad
cmp dword [0x81680c], 0
jne 0x401199
xor eax, eax
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], ax
mov byte [esp + 0x1e], al
lea eax, [esp + 0x20]
push eax
call fcn.00404090
add esp, 0xc
xor edi, edi
xor eax, eax
nop
mov byte [esp + eax + 0x18], al
inc eax
cmp eax, 0x100
jb 0x401050
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x18]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x41a0d4]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
inc esi
mov byte [esp + edi + 0x18], dl
cmp esi, 0x100
jb 0x401060
xor esi, esi
xor edi, edi
xor edx, edx
lea eax, [esi + 1]
movzx esi, al
mov cl, byte [esp + esi + 0x18]
movzx eax, cl
add eax, edi
movzx edi, al
movzx eax, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
mov byte [esp + edi + 0x18], cl
movzx eax, byte [esp + esi + 0x18]
movzx ecx, cl
add ecx, eax
movzx eax, cl
movzx eax, byte [esp + eax + 0x18]
xor al, byte [edx + 0x41a0d8]
mov byte [esp + edx + 0xc], al
inc edx
cmp edx, 0xb
jb 0x401095
push 0x200
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00404090
mov edx, 0x7ffe0030
add esp, 0xc
xor ecx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4010f4
sub edx, esi
sar edx, 1
je 0x4011ad
mov esi, ebp
lea edi, [esi + 1]
mov edi, edi
mov al, byte [esi]
inc esi
test al, al
jne 0x401110
sub esi, edi
add edx, 0xc
add edx, esi
cmp edx, 0x200
ja 0x4011ad
xor eax, eax
push ebx
test edx, edx
je 0x401148
movzx ebx, word [eax + eax + 0x7ffe0030]
test bx, bx
je 0x401148
mov byte [esp + eax + 0x1c], bl
inc ecx
inc eax
cmp eax, edx
jb 0x401131
xor eax, eax
test edx, edx
je 0x401162
mov edi, edi
mov bl, byte [esp + eax + 0x10]
test bl, bl
je 0x401162
mov byte [esp + ecx + 0x1c], bl
inc eax
inc ecx
cmp eax, edx
jb 0x401150
xor eax, eax
test edx, edx
je 0x40117f
lea ecx, [esp + ecx + 0x1c]
lea esp, [esp]
mov bl, byte [eax + ebp]
test bl, bl
je 0x40117f
mov byte [ecx], bl
inc eax
inc ecx
cmp eax, edx
jb 0x401170
push 8
push 0
lea eax, [esp + 0x24]
push eax
call dword [0x816808]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
push 0x800
push 0
push ebp
call eax
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20c
ret
Function at 0x401200
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
sub esp, 0x40
push ebx
push esi
push edi
test ecx, ecx
jle 0x401228
mov eax, dword [ebp + 0x10]
lea edx, [ebp + 0x18]
dec ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0xc], eax
jmp 0x401236
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
test ecx, ecx
jle 0x40124f
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x14], eax
jmp 0x40125d
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test ecx, ecx
jle 0x401276
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x1c], eax
jmp 0x401284
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
test ecx, ecx
jle 0x40129d
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x24], eax
jmp 0x4012ab
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov eax, edx
mov dword [ebp - 0x30], 0
cdq
mov dword [ebp - 0x40], eax
mov eax, ecx
mov dword [ebp - 0x3c], edx
cdq
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov word [ebp - 8], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 4], esp
and esp, 0xfffffff0
push 0x33
call fcn.004012f2
Function at 0x402450
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x81741c]
sub esp, 0x11c
test eax, eax
jne 0x40254e
push ebx
push esi
push edi
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], ax
lea eax, [esp + 0x30]
push eax
call fcn.00404090
add esp, 0xc
xor edi, edi
xor eax, eax
lea ebx, [ebx]
mov byte [esp + eax + 0x28], al
inc eax
cmp eax, 0x100
jb 0x4024a0
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x28]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x41a100]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x28]
mov byte [esp + esi + 0x28], al
inc esi
mov byte [esp + edi + 0x28], dl
cmp esi, 0x100
jb 0x4024b0
xor edi, edi
xor ebx, ebx
xor esi, esi
lea eax, [edi + 1]
movzx edi, al
mov cl, byte [esp + edi + 0x28]
movzx edx, cl
lea eax, [edx + ebx]
movzx ebx, al
movzx eax, byte [esp + ebx + 0x28]
mov byte [esp + edi + 0x28], al
mov byte [esp + ebx + 0x28], cl
movzx eax, byte [esp + edi + 0x28]
add eax, edx
movzx eax, al
movzx eax, byte [esp + eax + 0x28]
xor al, byte [esi + 0x41a104]
mov byte [esp + esi + 0xc], al
inc esi
cmp esi, 0x1a
jb 0x4024e5
xor edx, edx
lea ecx, [esp + 0xc]
call fcn.00403f80
pop edi
pop esi
pop ebx
test eax, eax
je 0x402549
mov eax, dword [eax + 0x18]
test eax, eax
je 0x402549
mov dword [0x81741c], eax
add esp, 0x11c
ret
mov eax, dword [0x81741c]
add esp, 0x11c
ret
Function at 0x403c10
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0xc08
push ebx
push ebp
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 8], edx
push esi
push edi
test ecx, ecx
je 0x403c5b
xor esi, esi
lea edi, [esp + 0x818]
mov al, byte [esi + ecx]
test al, al
je 0x403c4b
cbw
inc esi
mov word [edi], ax
add edi, 2
cmp esi, 0x1ff
jb 0x403c31
jmp 0x403c50
xor eax, eax
mov word [edi], ax
lea edx, [esp + 0x818]
mov dword [esp + 0x10], edx
xor edi, edi
xor ebp, ebp
test edx, edx
je 0x403cab
mov edi, edx
lea ecx, [edi + 2]
jmp 0x403c70
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x403c70
sub edi, ecx
sar edi, 1
cmp edi, 0x200
jb 0x403c8c
mov edi, 0x1ff
push edi
push edx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.00402560
add esp, 0xc
xor eax, eax
mov word [esp + ebp + 0x418], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x403ccd
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x403d40
mov esi, dword [ebx]
cmp esi, ebx
je 0x403d40
test esi, esi
je 0x403d40
cmp word [esi + 0x24], 2
jbe 0x403d3a
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x403d3a
cmp dword [esi + 0x18], 0
je 0x403d3a
test ebp, ebp
je 0x403cf5
cmp ebp, eax
jne 0x403d3a
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.00402560
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x403d1a
cmp eax, dword [esi + 0x18]
jne 0x403d3a
cmp dword [esp + 0x10], 0
je 0x403d4d
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.00401380
add esp, 8
test eax, eax
je 0x403d4d
mov esi, dword [esi]
cmp esi, ebx
jne 0x403cd3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc08
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc08
ret