joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b45fc
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 0x5b47a7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
jne 0x5b4788
mov dl, 1
mov eax, dword [0x48f9b0]
call fcn.004b2cd4
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
add eax, 0x40
call fcn.00409d38
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x5b4777
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.005363e4
test al, al
je 0x5b476a
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, 0x5b47b8
lea eax, [ebp - 0x394]
call fcn.0042383c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x5b476a
xor eax, eax
push ebp
push 0x5b4763
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 0x5b4828
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x5b474c
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040a9c4
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
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 + 0x44]
jne 0x5b474c
mov eax, dword [ebp - 4]
add eax, 0x40
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040a9c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b476a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x5b466d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov byte [eax + 0x39], 0
mov dl, 1
call fcn.004b2c10
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x3c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b47ae
lea eax, [ebp - 0x3a0]
call fcn.00409d38
ret

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

Disassembly:
push ecx
mov eax, dword [0x61c338]
cmp byte [eax + 0xb9], 0
jne 0x5b53da
cmp dword [0x61c358], 0
jne 0x5b539a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x61521c]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x61c358], eax
cmp dword [0x61c354], 0
jne 0x5b53b5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x61c354], eax
cmp dword [0x61c35c], 0
jne 0x5b53da
push esp
push 0
push 0
mov eax, dword [0x615218]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x61c35c], eax
pop edx
ret
Function at 0x5b6128
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x180]
test eax, eax
je 0x5b61d4
cmp dword [ebx + 0xa0], 0
jne 0x5b61ce
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x5b6060
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x9c]
cmp dword [eax + 8], 0
je 0x5b61ce
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
mov eax, esi
mov edx, 0xffffffec
push edx
push eax
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x5b6194
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x9c]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x5b61ce
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x9c]
call fcn.004ae5f4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x5b61a3
inc dword [ebx + 0xa0]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x61c338]
cmp dword [eax + 0x180], 0
je 0x5b6559
test bl, bl
jne 0x5b64a7
cmp dword [esi + 0xa8], 0
jne 0x5b649c
mov eax, esi
call fcn.005b9424
push eax
push 0x5b6300
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x50], 0
je 0x5b646d
mov eax, dword [0x61c338]
cmp byte [eax + 0xdf], 0
je 0x5b646d
mov eax, dword [esi + 0xe4]
call fcn.0040bbe0
mov edi, eax
cmp edi, 0
jl 0x5b646d
push 0
mov eax, dword [esi + 0xe4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5b6456
mov eax, dword [esi + 0xa4]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5b649c
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0xa4]
call fcn.004ae5f4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5b647c
inc dword [esi + 0xa8]
jmp 0x5b6559
cmp dword [esi + 0xa8], 0
jle 0x5b6559
dec dword [esi + 0xa8]
cmp dword [esi + 0xa8], 0
jne 0x5b6559
cmp dword [esi + 0x50], 0
je 0x5b6504
mov eax, dword [0x61c338]
cmp byte [eax + 0xdf], 0
je 0x5b6504
mov eax, dword [esi + 0xe4]
call fcn.0040bbe0
mov edi, eax
cmp edi, 0
jl 0x5b6504
push 5
mov eax, dword [esi + 0xe4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5b64ed
mov eax, dword [esi + 0xa4]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5b6533
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0xa4]
call fcn.004ae5f4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5b6513
mov eax, dword [esi + 0xa4]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xe4]
mov ecx, 1
mov edx, dword [0x5a8024]
call fcn.0040bdf4
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x5b71b4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xb8], 0
je 0x5b7211
cmp byte [ebx + 0xdf], 0
jne 0x5b7211
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x180]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00409ec0
mov eax, dword [esi]
test eax, eax
je 0x5b71fe
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x5b721e
mov eax, esi
mov edx, dword [ebx + 0x98]
call fcn.0040a118
jmp 0x5b721e
mov eax, esi
mov edx, dword [ebx + 0x98]
call fcn.0040a118
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x5c3848
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
test dl, dl
je 0x5c3860
add esp, 0xfffffff0
call fcn.004086fc
mov byte [ebp - 9], dl
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x5c397a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 8], ebx
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
call fcn.00406718
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
dec ebx
test ebx, ebx
jl 0x5c3964
inc ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
call fcn.00517470
xor eax, eax
push ebp
push 0x5c3951
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
call fcn.00517470
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
lea ebx, [eax + edx*8]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
mov dword [ebx], eax
lea eax, [ebx + 4]
mov edx, dword [ebp - 4]
call fcn.0040aa00
jmp 0x5c3922
lea eax, [ebx + 4]
mov ecx, 1
mov edx, 1
call fcn.0040ad2c
mov eax, dword [ebx + 4]
call fcn.0040a1fc
dec eax
jle 0x5c3936
mov eax, dword [ebx + 4]
cmp word [eax], 0x5f
je 0x5c3910
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c3958
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x54]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c3981
lea eax, [ebp - 4]
call fcn.00409d80
ret
Function at 0x5cacec
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x5cad1a
mov eax, ebx
call fcn.005cb7a8
cmp dword [ebx + 0x40], 0
je 0x5cad13
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x5cad8b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x5cad7d
cmp dword [ebx + 8], 0
je 0x5cad3c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x5cad4e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x5cad7d
cmp dword [ebx + 8], 0
je 0x5cad2f
cmp eax, 3
je 0x5cad61
dec eax
jne 0x5cad2f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x5cad2f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x5cad2f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x5cada9
cmp dword [ebx + 0x14], 0xcc
je 0x5cada9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.005cadb4
pop ebx
ret

Function at 0x5df40c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x61c794], 0
jne 0x5df423
call fcn.005df3c8
mov eax, edi
dec eax
test eax, eax
jl 0x5df44b
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x61c394]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x5df42d
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x5e2108
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.0x5e21a2.0
jmp dword [ecx*4 + 0x5e213b]
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x5e216d
sub dl, 8
je 0x5e217c
jmp case.0x5e21a2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5e1dd4
jmp case.0x5e21a2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5e1e28
jmp case.0x5e21a2.0
movzx ecx, byte [eax + 0x460]
cmp ecx, 0x10
ja case.0x5e21a2.0
movzx ecx, byte [ecx + 0x5e21a9]
jmp dword [ecx*4 + 0x5e21ba]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5e1ec8
jmp case.0x5e21a2.0
cmp dl, 3
jne 0x5e21e7
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5e1f20
jmp case.0x5e21a2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5e1edc
jmp case.0x5e21a2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5e1f64
jmp case.0x5e21a2.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x5e2212
sub dl, 8
je 0x5e221e
jmp case.0x5e21a2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5e1f90
jmp case.0x5e21a2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5e1ff4
jmp case.0x5e21a2.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x5e223d
sub dl, 8
je 0x5e2249
jmp case.0x5e21a2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5e20a4
jmp case.0x5e21a2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5e20cc
mov edx, dword [eax + 0x468]
mov ecx, dword [ebx + 0x1c]
dec ecx
imul edx, ecx
mov esi, edx
add esi, dword [eax + 0x450]
mov dword [ebp - 0xc], esi
mov esi, dword [eax + 0x454]
mov dword [ebp - 8], esi
add edx, dword [eax + 0x44c]
mov dword [ebp - 0x10], edx
mov esi, ecx
test esi, esi
jb 0x5e22eb
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.005e1310
test eax, eax
je 0x5e22eb
mov eax, ebx
call fcn.005e22f4
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 0x5e2284
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5e22f4
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 0x5e2325
dec al
je 0x5e2360
dec al
je 0x5e23a5
dec al
je 0x5e240e
jmp 0x5e2498
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x5e2498
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 0x5e2335
jmp 0x5e2498
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x5e2498
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x5e2370
jmp 0x5e2498
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x5e2498
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 ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x5e23d4
xor ebp, ebp
jmp 0x5e23e4
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x5e23ed
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
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 0x5e23b5
jmp 0x5e2498
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x5e2498
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 0x5e2467
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.005df454
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 0x5e2422
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5ed718
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x5ed769
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x5ed750
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x5ed740
jmp 0x5ed769
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x5ed751
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5fefe4
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5ff27d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x61c834], 0
xor eax, eax
push ebp
push 0x5ff20d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x61c830]
call fcn.004f6f54
mov dl, 1
mov eax, dword [0x4f5d50]
call fcn.004f6e9c
mov dword [0x61c830], eax
lea eax, [ebp - 0x118]
xor ecx, ecx
mov edx, 0x114
call fcn.00407560
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x5ff203
cmp dword [ebp - 0x114], 6
jae 0x5ff13f
mov edx, 0x80000000
mov eax, dword [0x61c830]
call fcn.004f6f84
mov edx, 0x5ff298
mov eax, dword [0x61c830]
call fcn.004f83b0
test al, al
je 0x5ff203
xor ecx, ecx
mov edx, 0x5ff298
mov eax, dword [0x61c830]
call fcn.004f70dc
test al, al
je 0x5ff203
lea ecx, [ebp - 4]
xor edx, edx
mov eax, dword [0x61c830]
call fcn.004f7a98
lea edx, [ebp - 0x11c]
mov eax, dword [ebp - 4]
call fcn.00421c8c
mov edx, dword [ebp - 0x11c]
mov ecx, 1
mov eax, 0x5ff2d4
call fcn.0040aef4
test eax, eax
jle 0x5ff0f7
mov byte [0x61c834], 1
jmp 0x5ff203
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x5ff2fc
call fcn.0040aef4
test eax, eax
jle 0x5ff119
mov byte [0x61c834], 2
jmp 0x5ff203
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x5ff320
call fcn.0040aef4
test eax, eax
jle 0x5ff203
mov byte [0x61c834], 3
jmp 0x5ff203
mov edx, 0x80000001
mov eax, dword [0x61c830]
call fcn.004f6f84
mov edx, 0x5ff340
mov eax, dword [0x61c830]
call fcn.004f83b0
test al, al
je 0x5ff203
xor ecx, ecx
mov edx, 0x5ff340
mov eax, dword [0x61c830]
call fcn.004f70dc
test al, al
je 0x5ff203
lea ecx, [ebp - 4]
mov edx, 0x5ff3e8
mov eax, dword [0x61c830]
call fcn.004f7a98
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x5ff404
call fcn.0040aef4
test eax, eax
jle 0x5ff1af
mov byte [0x61c834], 1
jmp 0x5ff203
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x5ff420
call fcn.0040aef4
test eax, eax
jle 0x5ff1ce
mov byte [0x61c834], 2
jmp 0x5ff203
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x5ff43c
call fcn.0040aef4
test eax, eax
jle 0x5ff1ed
mov byte [0x61c834], 3
jmp 0x5ff203
mov eax, dword [ebp - 4]
mov edx, 0x5ff454
call fcn.0040acac
jne 0x5ff203
mov byte [0x61c834], 4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5ff217
cmp byte [0x61c834], 1
je 0x5ff25c
cmp byte [0x61c834], 4
je 0x5ff25c
movzx eax, byte [0x61c834]
sub al, 2
je 0x5ff23a
dec al
je 0x5ff24c
jmp 0x5ff25c
cmp byte [0x61c82c], 0
jne 0x5ff25c
mov byte [0x61c834], 0
jmp 0x5ff25c
cmp byte [0x61c82d], 0
jne 0x5ff25c
mov byte [0x61c834], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ff284
lea eax, [ebp - 0x11c]
call fcn.00409d38
lea eax, [ebp - 4]
call fcn.00409d38
ret
Function at 0x6007a8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x60093c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x61c837], 0
jne 0x600921
cmp byte [0x61c82c], 0
je 0x600921
lea eax, [ebp - 4]
mov ecx, 0x600958
mov edx, dword [0x61c818]
call fcn.0040ab74
mov eax, dword [ebp - 4]
mov dl, 1
call fcn.00422eb0
test al, al
jne 0x600809
mov byte [0x61c82c], 0
jmp 0x600921
cmp byte [0x61c836], 0
jne 0x600865
mov eax, 0x600978
call fcn.00600104
test al, al
jne 0x600921
jmp 0x60088d
cmp byte [0x61c835], 0
je 0x60084b
push 0x40
push 0x600988
push 0x600994
push 0
call sub.user32.dll_MessageBoxW
dec eax
jne 0x600921
jmp 0x600865
push 0x40
push 0x600988
push 0x600a7c
push 0
call sub.user32.dll_MessageBoxW
dec eax
jne 0x600921
mov eax, 0x600978
call fcn.00600104
test al, al
jne 0x600826
mov eax, 0x600978
call fcn.00600104
test al, al
je 0x60088d
push 0
push 0x600b90
call sub.kernel32.dll_WinExec
xor eax, eax
push ebp
push 0x600917
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x48f9b0]
call fcn.004b2cd4
mov ebx, eax
call fcn.0042e3d8
push eax
lea eax, [ebp - 8]
mov ecx, 0x600958
mov edx, dword [0x61c818]
call fcn.0040ab74
mov edx, dword [ebp - 8]
mov eax, ebx
pop ecx
mov esi, dword [eax]
call dword [esi + 0x70]
mov ecx, dword [0x61c7f4]
mov edx, 0x600bb8
mov eax, ebx
call fcn.00600244
call fcn.0042e3d8
push eax
lea eax, [ebp - 0xc]
mov ecx, 0x600958
mov edx, dword [0x61c818]
call fcn.0040ab74
mov edx, dword [ebp - 0xc]
mov eax, ebx
pop ecx
mov esi, dword [eax]
call dword [esi + 0x84]
mov eax, ebx
call fcn.004080f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x600921
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x600943
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00409d98
ret
Function at 0x6017cc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x6019ac
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x61c837], 0
jne 0x601991
cmp byte [0x61c82d], 0
je 0x601991
lea eax, [ebp - 4]
mov ecx, 0x6019c8
mov edx, dword [0x61c820]
call fcn.0040ab74
mov eax, dword [ebp - 4]
mov dl, 1
call fcn.00422eb0
test al, al
jne 0x60182e
mov byte [0x61c82d], 0
jmp 0x601991
cmp byte [0x61c836], 0
jne 0x60188c
mov eax, 0x6019ec
call fcn.00600104
test al, al
jne 0x601991
jmp 0x6018b4
cmp byte [0x61c835], 0
je 0x601872
push 0x40
push 0x6019f8
push 0x601a04
push 0
call sub.user32.dll_MessageBoxW
mov ebx, eax
dec ebx
jne 0x601991
jmp 0x60188c
push 0x40
push 0x6019f8
push 0x601ae8
push 0
call sub.user32.dll_MessageBoxW
dec eax
jne 0x601991
mov eax, 0x6019ec
call fcn.00600104
test al, al
jne 0x60184b
mov eax, 0x6019ec
call fcn.00600104
test al, al
je 0x6018b4
push 0
push 0x601bf8
call sub.kernel32.dll_WinExec
xor eax, eax
push ebp
push 0x601987
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x48f9b0]
call fcn.004b2cd4
mov ebx, eax
lea eax, [ebp - 8]
mov ecx, 0x6019c8
mov edx, dword [0x61c820]
call fcn.0040ab74
mov edx, dword [ebp - 8]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x6c]
mov ecx, 0x601c20
mov edx, 0x601c30
mov eax, ebx
call fcn.00600ea0
push 0x601c74
push dword [0x61c7f4]
push 0x601c88
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040abfc
mov ecx, dword [ebp - 0xc]
mov edx, 0x601c9c
mov eax, ebx
call fcn.00600ea0
push 0x601cd4
push dword [0x61c7f8]
push 0x601cd4
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0040abfc
mov ecx, dword [ebp - 0x10]
mov edx, 0x601ce4
mov eax, ebx
call fcn.00600ea0
lea eax, [ebp - 0x14]
mov ecx, 0x6019c8
mov edx, dword [0x61c820]
call fcn.0040ab74
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x80]
mov eax, ebx
call fcn.004080f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x601991
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6019b3
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00409d98
ret