joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b9a98
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 0x5b9c43
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
jne 0x5b9c24
mov dl, 1
mov eax, dword [0x4799b8]
call fcn.0049ca38
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.00408fc8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x5b9c13
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.0050f0a0
test al, al
je 0x5b9c06
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x5b9c54
lea eax, [ebp - 0x394]
call fcn.00423d74
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x5b9c06
xor eax, eax
push ebp
push 0x5b9bff
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 0x5b9cc4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x5b9be8
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00409d80
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 0x5b9be8
mov eax, dword [ebp - 4]
add eax, 0x48
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00409d80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b9c06
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x5b9b09
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov byte [eax + 0x39], 0
mov dl, 1
call fcn.0049c988
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 0x5b9c4a
lea eax, [ebp - 0x3a0]
call fcn.00408fc8
ret

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

Disassembly:
push ecx
mov eax, dword [0x69f978]
cmp byte [eax + 0xc5], 0
jne 0x5ba862
cmp dword [0x69f99c], 0
jne 0x5ba822
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, dword [0x695aec]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x69f99c], eax
cmp dword [0x69f998], 0
jne 0x5ba83d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x69f998], eax
cmp dword [0x69f9a0], 0
jne 0x5ba862
push esp
push 0
push 0
mov eax, dword [0x695ae8]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x69f9a0], eax
pop edx
ret
Function at 0x5bad54
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x5bad6b
add esp, 0xfffffff0
call fcn.0040791c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004abd24
mov eax, dword [0x697468]
cmp byte [eax], 0
jne 0x5bad98
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x194], al
mov eax, dword [0x69780c]
cmp word [eax + 2], 0
jne 0x5badb2
mov eax, dword [0x69780c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005bcfac
mov eax, dword [0x697964]
cmp word [eax + 2], 0
jne 0x5badcc
mov eax, dword [0x697964]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005bd1b0
mov byte [ebx + 0x41], 0
mov dl, 1
mov eax, dword [0x4d2770]
call fcn.004d8930
mov esi, eax
mov dword [ebx + 0x54], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x5bd62c
mov dl, 1
mov eax, dword [0x47621c]
call fcn.0040732c
mov dword [ebx + 0xa8], eax
mov dl, 1
mov eax, dword [0x47621c]
call fcn.0040732c
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 + 0x9c], 0
mov byte [ebx + 0xbd], 1
mov byte [ebx + 0xd4], 1
mov dl, 1
mov eax, dword [0x4d7090]
call fcn.004e1724
mov esi, eax
mov dword [ebx + 0xb8], esi
push 0x5bafb4
mov eax, dword [0x697674]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.004e1b20
mov eax, dword [ebx + 0xb8]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x5bd8ec
mov dl, 1
mov eax, dword [0x47621c]
call fcn.0040732c
mov dword [ebx + 0xb0], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x697674]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.00423b58
test eax, eax
je 0x5baee6
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.00423938
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.00423b3c
test eax, eax
je 0x5baefe
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.00409d80
push ebx
push 0x5bc990
call fcn.005b0ac4
mov dword [ebx + 0x190], eax
mov byte [ebx + 0xe8], 0
mov eax, dword [0x697468]
cmp byte [eax], 0
jne 0x5baf4f
mov eax, ebx
call fcn.005bb198
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.005bdb20
mov eax, ebx
call fcn.005be768
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5bafac
call fcn.00407974
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5bb4dc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x188]
test eax, eax
je 0x5bb57e
cmp dword [ebx + 0xac], 0
jne 0x5bb578
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x5bb418
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0xa8]
cmp dword [eax + 8], 0
je 0x5bb578
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 0x5bb53e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0xa8]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x5bb578
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0xa8]
call fcn.00498d8c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x5bb54d
inc dword [ebx + 0xac]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x69f978]
cmp dword [eax + 0x188], 0
je 0x5bb901
test bl, bl
jne 0x5bb84f
cmp dword [esi + 0xb4], 0
jne 0x5bb844
mov eax, esi
call fcn.005be5b8
push eax
push 0x5bb6a8
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x58], 0
je 0x5bb815
mov eax, dword [0x69f978]
cmp byte [eax + 0xeb], 0
je 0x5bb815
mov eax, dword [esi + 0xf0]
call fcn.0040af50
mov edi, eax
cmp edi, 0
jl 0x5bb815
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 0x5bb7fe
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5bb844
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0xb0]
call fcn.00498d8c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5bb824
inc dword [esi + 0xb4]
jmp 0x5bb901
cmp dword [esi + 0xb4], 0
jle 0x5bb901
dec dword [esi + 0xb4]
cmp dword [esi + 0xb4], 0
jne 0x5bb901
cmp dword [esi + 0x58], 0
je 0x5bb8ac
mov eax, dword [0x69f978]
cmp byte [eax + 0xeb], 0
je 0x5bb8ac
mov eax, dword [esi + 0xf0]
call fcn.0040af50
mov edi, eax
cmp edi, 0
jl 0x5bb8ac
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 0x5bb895
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5bb8db
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0xb0]
call fcn.00498d8c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5bb8bb
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xf0]
mov ecx, 1
mov edx, dword [0x5ad388]
call fcn.0040b164
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x5bc520
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 0x5bc57d
cmp byte [ebx + 0xeb], 0
jne 0x5bc57d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x188]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00409150
mov eax, dword [esi]
test eax, eax
je 0x5bc56a
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x5bc58a
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.004093a8
jmp 0x5bc58a
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.004093a8
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x5bdd00
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x98]
test esi, esi
je 0x5bdd71
mov eax, esi
call fcn.00508f6c
test al, al
je 0x5bdd71
mov eax, dword [ebx + 0x98]
call fcn.00508b9c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x5bdd71
mov eax, dword [ebx + 0x98]
mov edx, dword [eax]
call dword [edx + 0x114]
test al, al
je 0x5bdd62
push 0
mov eax, dword [ebx + 0x98]
call fcn.00508b9c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x98]
call fcn.004ffc14
jmp 0x5bdd71
mov cl, 1
mov edx, dword [ebx + 0x88]
mov eax, ebx
call fcn.005bdb40
pop esi
pop ebx
ret
Function at 0x5cb4c8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x69fdb4], 0
jne 0x5cb4df
call fcn.005cb484
mov eax, edi
dec eax
test eax, eax
jl 0x5cb507
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x69f9b4]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x5cb4e9
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x5ce158
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax + 0x461]
movzx ecx, dl
cmp ecx, 6
ja case.0x5ce1f2.0
jmp dword [ecx*4 + 0x5ce18b]
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x5ce1bd
sub dl, 8
je 0x5ce1cc
jmp case.0x5ce1f2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5cde24
jmp case.0x5ce1f2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5cde78
jmp case.0x5ce1f2.0
movzx ecx, byte [eax + 0x460]
cmp ecx, 0x10
ja case.0x5ce1f2.0
movzx ecx, byte [ecx + 0x5ce1f9]
jmp dword [ecx*4 + 0x5ce20a]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5cdf18
jmp case.0x5ce1f2.0
cmp dl, 3
jne 0x5ce237
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5cdf70
jmp case.0x5ce1f2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5cdf2c
jmp case.0x5ce1f2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5cdfb4
jmp case.0x5ce1f2.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x5ce262
sub dl, 8
je 0x5ce26e
jmp case.0x5ce1f2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5cdfe0
jmp case.0x5ce1f2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5ce044
jmp case.0x5ce1f2.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x5ce28d
sub dl, 8
je 0x5ce299
jmp case.0x5ce1f2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5ce0f4
jmp case.0x5ce1f2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5ce11c
mov ecx, dword [eax + 0x468]
mov edx, dword [ebx + 0x1c]
dec edx
imul ecx, edx
mov esi, ecx
add esi, dword [eax + 0x450]
mov dword [ebp - 0xc], esi
mov esi, dword [eax + 0x454]
mov dword [ebp - 8], esi
add ecx, dword [eax + 0x44c]
mov dword [ebp - 0x10], ecx
mov esi, edx
test esi, esi
jb 0x5ce33b
inc esi
mov eax, dword [ebx + 0x20]
inc eax
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
movzx eax, byte [ebx + 0x48]
mov ecx, dword [ebx + eax*4 + 0x40]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.005cd36c
test eax, eax
je 0x5ce33b
mov eax, ebx
call fcn.005ce344
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
lea edx, [eax + 1]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call dword [ebp - 0x18]
movzx eax, byte [ebx + 0x48]
xor al, 1
mov byte [ebx + 0x48], al
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x468]
sub dword [ebp - 0xc], eax
sub dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
add dword [ebp - 8], eax
dec esi
jne 0x5ce2d4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5ce344
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x5ce375
dec al
je 0x5ce3b0
dec al
je 0x5ce3ed
dec al
je 0x5ce456
jmp 0x5ce4e0
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x5ce4e0
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x5ce385
jmp 0x5ce4e0
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x5ce4e0
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov ecx, eax
xor cl, 1
and ecx, 0x7f
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ecx, byte [ecx + esi]
movzx edx, al
mov edx, dword [ebx + edx*4 + 0x40]
add cl, byte [edx + esi]
and cl, 0xff
mov byte [edx + esi], cl
inc esi
dec edi
jne 0x5ce3c0
jmp 0x5ce4e0
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x5ce4e0
mov esi, 1
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x5ce4e0
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x5ce4af
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.005cb510
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x5ce46a

Function at 0x5d2b84
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call sub.kernel32.dll_GetVersionExW
cmp dword [ebp - 0x108], 2
jne 0x5d2bc7
cmp dword [ebp - 0x114], 5
ja 0x5d2bcb
cmp dword [ebp - 0x114], 5
jne 0x5d2bc7
cmp dword [ebp - 0x110], 1
jae 0x5d2bcb
xor eax, eax
jmp 0x5d2bcd
mov al, 1
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x5d461c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 0xd], 0
mov eax, dword [ebp + 8]
add eax, 4
mov edx, dword [ebp - 0xc]
call fcn.004093a8
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
je 0x5d46be
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
inc dword [ebp - 0x20]
mov dword [ebp - 0x18], 5
mov eax, dword [ebp + 8]
lea edx, [eax + 8]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
call fcn.00406b0c
lea eax, [ebp - 0x14]
push eax
push 0x40
push 0x10
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x5d46be
mov eax, dword [ebp - 0x1c]
mov byte [eax], 0xe9
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 4]
sub eax, 5
mov edx, dword [ebp - 0x20]
mov dword [edx], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0x10
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
mov byte [ebp - 0xd], 1
cmp byte [ebp - 0xd], 0
jne 0x5d46cc
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x10], edx
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret 4

Function at 0x5d4d9c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov byte [ebp - 5], 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x5d4df1
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 4]
add eax, 8
mov ecx, 5
call fcn.00406b0c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.kernel32.dll_VirtualProtect
mov byte [ebp - 5], 1
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret

Function at 0x5da7b8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov word [ebp - 0xc], 0
cmp dword [ebp - 8], 0
je 0x5da806
dec dword [ebp - 8]
movzx eax, word [ebp - 0xc]
shr eax, 8
mov edx, dword [ebp - 4]
movzx edx, byte [edx]
xor eax, edx
and eax, 0xff
mov ax, word [eax*2 + 0x695c9c]
mov dx, word [ebp - 0xc]
shl edx, 8
xor ax, dx
mov word [ebp - 0xc], ax
inc dword [ebp - 4]
cmp dword [ebp - 8], 0
jne 0x5da7d0
mov ax, word [ebp - 0xc]
mov word [ebp - 0xa], ax
mov ax, word [ebp - 0xa]
mov esp, ebp
pop ebp
ret
Function at 0x5e288c
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff70
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x90], eax
xor eax, eax
mov dword [ebp - 0x8c], eax
fild qword [ebp - 0x90]
mov eax, dword [ebp - 4]
fstp qword [eax + 0x21360]
wait
mov eax, dword [ebp - 4]
cmp word [eax + 0x21382], 0
jne 0x5e28e0
mov eax, dword [ebp - 4]
call fcn.005e4134
mov edx, dword [ebp - 4]
mov word [edx + 0x21382], ax
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
mov ax, word [ebp - 0xc]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x88]
xor ecx, ecx
mov edx, 0x60
call fcn.00406f00
mov byte [ebp - 0x85], 0x48
mov eax, dword [ebp - 0xc]
shl eax, 0xb
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x73], 0xa
mov byte [ebp - 0x58], 0x28
lea edx, [ebp - 0x56]
lea eax, [ebp - 8]
call fcn.005d9f88
lea edx, [ebp - 0x51]
lea eax, [ebp - 0x10]
call fcn.005d9fd4
fild dword [ebp - 0x7c]
mov eax, dword [ebp - 4]
fadd qword [eax + 0x21378]
mov eax, dword [ebp - 4]
fstp qword [eax + 0x21378]
wait
lea edx, [ebp - 0x88]
mov eax, dword [ebp - 4]
call fcn.005e1bb8
cmp byte [ebp - 0x87], 1
sete byte [ebp - 0xd]
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x90], eax
xor eax, eax
mov dword [ebp - 0x8c], eax
fild qword [ebp - 0x90]
mov eax, dword [ebp - 4]
fstp qword [eax + 0x21368]
wait
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 4]
fld qword [eax + 0x21368]
fsub qword [edx + 0x21360]
mov eax, dword [ebp - 4]
fadd qword [eax + 0x21370]
mov eax, dword [ebp - 4]
fstp qword [eax + 0x21370]
wait
mov eax, dword [ebp - 4]
fld qword [eax + 0x21370]
fdiv dword [0x5e2a50]
fldz
fcompp
wait
fnstsw ax
sahf
jae 0x5e29f9
mov eax, dword [ebp - 4]
fld qword [eax + 0x21378]
fdiv dword [0x5e2a54]
mov eax, dword [ebp - 4]
fld qword [eax + 0x21370]
fdiv dword [0x5e2a50]
fdivp st(1)
fdiv dword [0x5e2a58]
fmul dword [0x5e2a58]
fstp qword [ebp - 0x18]
wait
jmp 0x5e2a01
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
fld qword [ebp - 0x18]
call fcn.00406e00
mov edx, dword [ebp - 4]
mov word [edx + 0x21382], ax
mov eax, dword [ebp - 4]
inc byte [eax + 0x21380]
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
sub eax, dword [ebp - 0x20]
sbb edx, dword [ebp - 0x1c]
push edx
push eax
mov eax, dword [ebp - 0xc]
shl eax, 0xb
cdq
push edx
push eax
mov eax, dword [ebp - 4]
call fcn.005e471c
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret 4
Function at 0x5e2a5c
Capabilities:
Check for time delay via gettickcount
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff70
mov word [ebp - 0xa], cx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0x2135c], 0
jne 0x5e2a8e
mov eax, dword [ebp - 4]
call fcn.005e41ac
mov edx, dword [ebp - 4]
mov word [edx + 0x2135c], ax
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x90], eax
xor eax, eax
mov dword [ebp - 0x8c], eax
fild qword [ebp - 0x90]
mov eax, dword [ebp - 4]
fstp qword [eax + 0x21338]
wait
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
lea eax, [ebp - 0x88]
xor ecx, ecx
mov edx, 0x60
call fcn.00406f00
mov byte [ebp - 0x85], 0x50
mov byte [ebp - 0x73], 0xa
mov eax, dword [ebp + 8]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x90], eax
xor eax, eax
mov dword [ebp - 0x8c], eax
fild qword [ebp - 0x90]
mov eax, dword [ebp - 4]
fadd qword [eax + 0x21350]
mov eax, dword [ebp - 4]
fstp qword [eax + 0x21350]
wait
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x58], 0x2a
lea edx, [ebp - 0x56]
lea eax, [ebp - 8]
call fcn.005d9f88
lea edx, [ebp - 0x51]
lea eax, [ebp - 0xa]
call fcn.005d9fd4
lea edx, [ebp - 0x88]
mov eax, dword [ebp - 4]
call fcn.005e1bb8
cmp byte [ebp - 0x87], 1
sete byte [ebp - 0xb]
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
sub eax, dword [ebp - 0x20]
sbb edx, dword [ebp - 0x1c]
push edx
push eax
mov eax, dword [ebp + 8]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
call fcn.005e471c
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x90], eax
xor eax, eax
mov dword [ebp - 0x8c], eax
fild qword [ebp - 0x90]
mov eax, dword [ebp - 4]
fstp qword [eax + 0x21340]
wait
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 4]
fld qword [eax + 0x21340]
fsub qword [edx + 0x21338]
mov eax, dword [ebp - 4]
fadd qword [eax + 0x21348]
mov eax, dword [ebp - 4]
fstp qword [eax + 0x21348]
wait
mov eax, dword [ebp - 4]
fld qword [eax + 0x21348]
fdiv dword [0x5e2c28]
fldz
fcompp
wait
fnstsw ax
sahf
jae 0x5e2bf9
mov eax, dword [ebp - 4]
fld qword [eax + 0x21350]
fdiv dword [0x5e2c2c]
mov eax, dword [ebp - 4]
fld qword [eax + 0x21348]
fdiv dword [0x5e2c28]
fdivp st(1)
fdiv dword [0x5e2c30]
fmul dword [0x5e2c30]
fstp qword [ebp - 0x18]
wait
jmp 0x5e2c01
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
fld qword [ebp - 0x18]
call fcn.00406e00
mov edx, dword [ebp - 4]
mov word [edx + 0x2135c], ax
mov eax, dword [ebp - 4]
inc word [eax + 0x21358]
mov al, byte [ebp - 0xb]
mov esp, ebp
pop ebp
ret 8