joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5912b8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x5912ca
add esp, 0xfffffff0
call fcn.00408784
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004aa928
mov eax, dword [0x6f7980]
mov dword [eax + 4], ebx
mov dword [eax], 0x591780
mov eax, dword [0x6f7998]
mov dword [eax + 4], ebx
mov dword [eax], 0x59178c
mov eax, ebx
call fcn.00591798
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x474dd0]
call fcn.004081e4
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x474dd0]
call fcn.004081e4
mov dword [ebx + 0x60], eax
mov dl, 1
mov eax, dword [0x474dd0]
call fcn.004081e4
mov dword [ebx + 0x64], eax
mov dl, 1
mov eax, dword [0x474dd0]
call fcn.004081e4
mov dword [ebx + 0x68], eax
mov dl, 1
mov eax, dword [0x474dd0]
call fcn.004081e4
mov dword [ebx + 0x84], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x50], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x68]
push eax
mov eax, 0x58c4e8
push eax
push 0
push 0
call sub.user32.dll_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x4cc4f8]
call fcn.004d26b8
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x4cc4f8]
call fcn.004d26b8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4cc4f8]
call fcn.004d26b8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4cc4f8]
call fcn.004d26b8
mov dword [ebx + 0x94], eax
mov dl, 1
mov eax, dword [0x4cc4f8]
call fcn.004d26b8
mov dword [ebx + 0x98], eax
mov eax, ebx
call fcn.00591d74
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x591ba4
mov eax, dword [ebx + 0x90]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x591ba4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x591ba4
mov eax, dword [ebx + 0x94]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x591ba4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x591ba4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x59144a
call fcn.004087dc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x591944
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 0x591aef
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
jne 0x591ad0
mov dl, 1
mov eax, dword [0x47856c]
call fcn.0049bccc
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.00409dfc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x591abf
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.00509478
test al, al
je 0x591ab2
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, 0x591b00
lea eax, [ebp - 0x394]
call fcn.00423338
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x591ab2
xor eax, eax
push ebp
push 0x591aab
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 0x591b70
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x591a94
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040ab14
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 0x591a94
mov eax, dword [ebp - 4]
add eax, 0x48
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040ab14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x591ab2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x5919b5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov byte [eax + 0x39], 0
mov dl, 1
call fcn.0049bc1c
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 0x591af6
lea eax, [ebp - 0x3a0]
call fcn.00409dfc
ret

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

Disassembly:
push ecx
mov eax, dword [0x6fe780]
cmp byte [eax + 0xc5], 0
jne 0x59270e
cmp dword [0x6fe7a4], 0
jne 0x5926ce
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x6eb0e0]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x6fe7a4], eax
cmp dword [0x6fe7a0], 0
jne 0x5926e9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x6fe7a0], eax
cmp dword [0x6fe7a8], 0
jne 0x59270e
push esp
push 0
push 0
mov eax, dword [0x6eb0dc]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x6fe7a8], eax
pop edx
ret
Function at 0x592ab8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x592acf
add esp, 0xfffffff0
call fcn.00408784
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004aa928
mov eax, dword [0x6f765c]
cmp byte [eax], 0
jne 0x592afc
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x194], al
mov eax, dword [0x6f7e04]
cmp word [eax + 2], 0
jne 0x592b16
mov eax, dword [0x6f7e04]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00594d50
mov eax, dword [0x6f808c]
cmp word [eax + 2], 0
jne 0x592b30
mov eax, dword [0x6f808c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00594f54
mov byte [ebx + 0x41], 0
mov dl, 1
mov eax, dword [0x4cc4f8]
call fcn.004d26b8
mov esi, eax
mov dword [ebx + 0x54], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x5953d0
mov dl, 1
mov eax, dword [0x474dd0]
call fcn.004081e4
mov dword [ebx + 0xa8], eax
mov dl, 1
mov eax, dword [0x474dd0]
call fcn.004081e4
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 [0x4d0e18]
call fcn.004db574
mov esi, eax
mov dword [ebx + 0xb8], esi
push 0x592d18
mov eax, dword [0x6f7aec]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.004db970
mov eax, dword [ebx + 0xb8]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x595690
mov dl, 1
mov eax, dword [0x474dd0]
call fcn.004081e4
mov dword [ebx + 0xb0], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x6f7aec]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.00423138
test eax, eax
je 0x592c4a
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.00422ef0
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.0042311c
test eax, eax
je 0x592c62
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0xa4]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.0040ab14
push ebx
push 0x59472c
call fcn.00588910
mov dword [ebx + 0x190], eax
mov byte [ebx + 0xe8], 0
mov eax, dword [0x6f765c]
cmp byte [eax], 0
jne 0x592cb3
mov eax, ebx
call fcn.00592efc
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.005958c8
mov eax, ebx
call fcn.00596534
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x592d10
call fcn.004087dc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x593240
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x188]
test eax, eax
je 0x5932e2
cmp dword [ebx + 0xac], 0
jne 0x5932dc
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x59317c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0xa8]
cmp dword [eax + 8], 0
je 0x5932dc
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 0x5932a2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0xa8]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x5932dc
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.00497b1c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x5932b1
inc dword [ebx + 0xac]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov ebx, edx
mov esi, eax
mov eax, dword [0x6fe780]
cmp dword [eax + 0x188], 0
je 0x59369a
test bl, bl
jne 0x5935e5
cmp dword [esi + 0xb4], 0
jne 0x5935da
mov eax, esi
call fcn.00596384
push eax
push 0x593414
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x58], 0
je 0x5935ab
mov eax, dword [0x6fe780]
cmp byte [eax + 0xeb], 0
je 0x5935ab
mov eax, dword [esi + 0xf0]
mov dword [esp], eax
mov eax, dword [esp]
test eax, eax
je 0x59358c
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x5935ab
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 0x593594
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5935da
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0xb0]
call fcn.00497b1c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5935ba
inc dword [esi + 0xb4]
jmp 0x59369a
cmp dword [esi + 0xb4], 0
jle 0x59369a
dec dword [esi + 0xb4]
cmp dword [esi + 0xb4], 0
jne 0x59369a
cmp dword [esi + 0x58], 0
je 0x59364f
mov eax, dword [0x6fe780]
cmp byte [eax + 0xeb], 0
je 0x59364f
mov eax, dword [esi + 0xf0]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
test eax, eax
je 0x593630
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x59364f
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 0x593638
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x59367e
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0xb0]
call fcn.00497b1c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x59365e
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
call dword [edx + 8]
lea eax, [esi + 0xf0]
mov edx, dword [0x585774]
call fcn.0040c070
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x5942b8
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 0x594315
cmp byte [ebx + 0xeb], 0
jne 0x594315
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.00409f84
mov eax, dword [esi]
test eax, eax
je 0x594302
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x594322
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.0040a1dc
jmp 0x594322
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.0040a1dc
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x595ab0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x98]
test esi, esi
je 0x595b21
mov eax, esi
call fcn.00503268
test al, al
je 0x595b21
mov eax, dword [ebx + 0x98]
call fcn.00502e98
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x595b21
mov eax, dword [ebx + 0x98]
mov edx, dword [eax]
call dword [edx + 0x114]
test al, al
je 0x595b12
push 0
mov eax, dword [ebx + 0x98]
call fcn.00502e98
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x98]
call fcn.004f9f3c
jmp 0x595b21
mov cl, 1
mov edx, dword [ebx + 0x88]
mov eax, ebx
call fcn.005958e8
pop esi
pop ebx
ret
Function at 0x59a324
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x8c], 0
jne 0x59a39e
mov eax, dword [ebx + 8]
call fcn.00502e98
mov ecx, eax
mov dl, 1
mov eax, dword [0x50ef2c]
call fcn.004fd38c
mov esi, eax
mov dword [ebx + 0x8c], esi
xor edx, edx
mov eax, esi
call fcn.00513618
mov dword [esi + 0x2bc], ebx
mov dword [esi + 0x2b8], 0x599c1c
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x8c]
call fcn.00502e98
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x8c]
call fcn.00502e98
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x9c], 0
jne 0x59a414
mov eax, dword [ebx + 8]
call fcn.00502e98
mov ecx, eax
mov dl, 1
mov eax, dword [0x50ef2c]
call fcn.004fd38c
mov esi, eax
mov dword [ebx + 0x9c], esi
mov dl, 1
mov eax, esi
call fcn.00513618
mov dword [esi + 0x2bc], ebx
mov dword [esi + 0x2b8], 0x599c68
push 8
push 0
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x9c]
call fcn.00502e98
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x9c]
call fcn.00502e98
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x94], 0
jne 0x59a480
mov eax, dword [ebx + 8]
call fcn.00502e98
mov ecx, eax
mov dl, 1
mov eax, dword [0x50f9a0]
call fcn.004fd38c
mov esi, eax
mov dword [ebx + 0x94], esi
mov eax, esi
mov byte [eax + 0x290], 1
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x94]
call fcn.00502e98
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x94]
call fcn.00502e98
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x5a1358
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x6febbc], 0
jne 0x5a136f
call fcn.005a1314
mov eax, edi
dec eax
test eax, eax
jl 0x5a1397
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x6fe7bc]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x5a1379
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x5a4030
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.0x5a40ca.0
jmp dword [ecx*4 + 0x5a4063]
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x5a4095
sub dl, 8
je 0x5a40a4
jmp case.0x5a40ca.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5a3cfc
jmp case.0x5a40ca.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5a3d50
jmp case.0x5a40ca.0
movzx ecx, byte [eax + 0x460]
cmp ecx, 0x10
ja case.0x5a40ca.0
movzx ecx, byte [ecx + 0x5a40d1]
jmp dword [ecx*4 + 0x5a40e2]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5a3df0
jmp case.0x5a40ca.0
cmp dl, 3
jne 0x5a410f
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5a3e48
jmp case.0x5a40ca.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5a3e04
jmp case.0x5a40ca.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5a3e8c
jmp case.0x5a40ca.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x5a413a
sub dl, 8
je 0x5a4146
jmp case.0x5a40ca.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5a3eb8
jmp case.0x5a40ca.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5a3f1c
jmp case.0x5a40ca.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x5a4165
sub dl, 8
je 0x5a4171
jmp case.0x5a40ca.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5a3fcc
jmp case.0x5a40ca.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5a3ff4
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 0x5a4213
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.005a3244
test eax, eax
je 0x5a4213
mov eax, ebx
call fcn.005a421c
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 0x5a41ac
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5a421c
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 0x5a424d
dec al
je 0x5a4288
dec al
je 0x5a42c5
dec al
je 0x5a432e
jmp 0x5a43b8
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x5a43b8
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 0x5a425d
jmp 0x5a43b8
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x5a43b8
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 0x5a4298
jmp 0x5a43b8
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x5a43b8
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 0x5a42f4
xor ebp, ebp
jmp 0x5a4304
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 0x5a430d
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 0x5a42d5
jmp 0x5a43b8
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x5a43b8
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 0x5a4387
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.005a13a0
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 0x5a4342
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5b0764
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 0x5b07b5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x5b079c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x5b078c
jmp 0x5b07b5
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 0x5b079d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x608e04
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xffffffdc
mov ebx, eax
mov eax, ebx
call fcn.00409dfc
mov dword [esp], 0xf
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x608e35
lea edx, [esp + 4]
mov eax, ebx
mov ecx, dword [esp]
call fcn.00409f84
add esp, 0x24
pop ebx
ret

Function at 0x61d988
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x61d990
push ecx
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x61db45
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x18]
mov ecx, dword [eax + 0xc]
lea eax, [ebp - 4]
mov edx, 0x61db60
call fcn.0040acc4
push esi
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
mov eax, dword [ebx + 0x2c]
push eax
lea eax, [ebp - 0x18]
push eax
movzx ecx, word [ebx + 0x30]
xor edx, edx
mov eax, dword [ebx + 0x1c]
call fcn.0061bb78
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0x11
lea edx, [ebp - 0x14]
mov ecx, 1
mov eax, 0x61db74
call fcn.005c72d0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x61da0b
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x61da4c
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebx + 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
movzx ecx, word [ebx + 0x30]
xor edx, edx
mov eax, dword [ebx + 0xc]
call fcn.0061bb78
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x61dbdc
call fcn.005c72d0
mov edx, dword [ebp - 0x1c]
mov eax, esi
call fcn.0040ac6c
mov eax, esi
mov edx, 0x61dc08
call fcn.0040ac6c
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x61da64
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x61dad2
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x61dc1c
call fcn.005c72d0
mov edx, dword [ebp - 0x2c]
mov eax, esi
call fcn.0040ac6c
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x61da9b
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x61dac6
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x61dc4c
call fcn.005c72d0
mov edx, dword [ebp - 0x30]
mov eax, esi
call fcn.0040ac6c
mov eax, esi
mov edx, 0x61dc78
call fcn.0040ac6c
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x61dade
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x61db09
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x61dc8c
call fcn.005c72d0
mov edx, dword [ebp - 0x34]
mov eax, esi
call fcn.0040ac6c
mov eax, esi
mov edx, 0x61dcd8
call fcn.0040ac6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x61db4c
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.00409e5c
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00409e5c
lea eax, [ebp - 4]
call fcn.00409dfc
ret