joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436c74
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x436c90
cmp dword [esi + 4], 0
je 0x436cbd
test byte [ebx + 0x55], 1
jne 0x436caf
mov eax, ebx
call fcn.00435814
test eax, eax
jne 0x436caf
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x436dcd
mov edx, esi
mov eax, ebx
call fcn.00436798
jmp 0x436dcd
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x436dc6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00438ae4
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0043349c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00436c74
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00438ae4
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x436dcd
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43d3ec
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x45518c]
cmp byte [eax + 0xc], 0
je 0x43d559
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43d552
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x456b90], 0
jne 0x43d440
push 0x43d560
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43d568
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456b90], eax
cmp dword [0x454b58], 0
jne 0x43d53b
push 0x43d578
call sub.kernel32.dll_LoadLibraryA
mov dword [0x454b58], eax
cmp dword [0x454b58], 0
je 0x43d53b
push 0x43d584
mov eax, dword [0x454b58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456b94], eax
push 0x43d594
mov eax, dword [0x454b58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456b98], eax
push 0x43d5a8
mov eax, dword [0x454b58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456b9c], eax
push 0x43d5c0
mov eax, dword [0x454b58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456ba0], eax
push 0x43d5d8
mov eax, dword [0x454b58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456ba4], eax
push 0x43d5ec
mov eax, dword [0x454b58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456ba8], eax
push 0x43d604
mov eax, dword [0x454b58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456bac], eax
push 0x43d61c
mov eax, dword [0x454b58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456bb0], eax
push 0x43d638
mov eax, dword [0x454b58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456bb4], eax
push 0x43d644
mov eax, dword [0x454b58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456bb8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43d559
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4413e4
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004043e4
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x441433
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404654
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x448bdc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x448c2c]
test si, 4
je 0x448bf0
or bl, 1
test si, 8
je 0x448bfa
or bl, 4
test si, 1
je 0x448c04
or bl, 8
test si, 2
je 0x448c0e
or bl, 0x10
test si, 0x10
je 0x448c18
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x448c27
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x448c30
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x448c68]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x448c49
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x448c58
or bl, 4
test esi, 0x20000000
je 0x448c63
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44f32c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44f33e
add esp, 0xfffffff0
call fcn.00403990
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419c04
mov eax, dword [0x454e5c]
mov dword [eax + 4], ebx
mov dword [eax], 0x44f6d0
mov eax, dword [0x454e68]
mov dword [eax + 4], ebx
mov dword [eax], 0x44f6dc
mov eax, ebx
call fcn.0044f6e8
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411efc]
call fcn.00403628
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411efc]
call fcn.00403628
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411efc]
call fcn.00403628
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411efc]
call fcn.00403628
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411efc]
call fcn.00403628
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44bb00
push eax
push 0
push 0
mov eax, dword [0x454fac]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b658]
call fcn.0041cdf0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b658]
call fcn.0041cdf0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b658]
call fcn.0041cdf0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044fb38
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44fa00
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44fa00
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44fa00
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44f47b
call fcn.004039e8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44f7e4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44f98f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44f970
mov dl, 1
mov eax, dword [0x412318]
call fcn.00403628
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004043e4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44f95f
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.0043d74c
test al, al
je 0x44f952
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44f9a0
lea eax, [ebp - 0x254]
call fcn.00409140
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44f952
xor eax, eax
push ebp
push 0x44f94b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44f9d8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44f934
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404654
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44f934
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404654
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44f952
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44f855
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415df4
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44f996
lea eax, [ebp - 0x260]
call fcn.004043e4
ret

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

Disassembly:
push ecx
mov eax, dword [0x456bdc]
cmp byte [eax + 0xa5], 0
jne 0x450349
cmp dword [0x456bf4], 0
jne 0x45030a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x450294
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x456bf4], eax
cmp dword [0x456bf0], 0
jne 0x450325
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x456bf0], eax
cmp dword [0x456bf8], 0
jne 0x450349
push esp
push 0
push 0
push 0x450238
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x456bf8], eax
pop edx
ret
Function at 0x4509dc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x456bdc]
cmp dword [eax + 0x30], 0
je 0x450a86
cmp dword [ebx + 0x94], 0
jne 0x450a80
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45096c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x450a80
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x450a46
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x450a80
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414264
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x450a55
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4515e4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x451619
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004044d4
jmp 0x451626
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404438
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x452748
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x452789
mov eax, esi
call fcn.00438dbc
test al, al
je 0x452789
mov eax, dword [ebx + 0x84]
call fcn.00438ae4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x452789
push 0
mov eax, dword [ebx + 0x84]
call fcn.00438ae4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x421bf0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
or ebp, 0xffffffff
jmp 0x421c12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x421c19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x421c08
mov eax, 1
add ebx, ebx
jne 0x421c2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x421c20
jne 0x421c3c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x421c20
xor ecx, ecx
sub eax, 3
jb 0x421c50
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x421cc2
mov ebp, eax
add ebx, ebx
jne 0x421c5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x421c68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x421c8c
inc ecx
add ebx, ebx
jne 0x421c78
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x421c6d
jne 0x421c89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x421c6d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x421cac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x421c9d
jmp 0x421c0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x421cac
add edi, ecx
jmp 0x421c0e
pop esi
mov edi, esi
mov ecx, 0x714
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x421cca
cmp byte [edi], 7
jne 0x421cca
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x421ccf
lea edi, [esi + 0x1f000]
mov eax, dword [edi]
or eax, eax
je 0x421d47
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x22ad8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x22b78]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x421cfc
mov ecx, edi
jns 0x421d2b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x22b7c]
or eax, eax
je 0x421d41
mov dword [ebx], eax
add ebx, 4
jmp 0x421d19
call dword [esi + 0x22b80]
popal
jmp section.UPX0
Function at 0x59cb6d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5a89a8]
jne 0x59cb77
repz ret
jmp fcn.0059f4be

Function at 0x59fe4f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0059b8d6
and dword [ebp - 4], 0
cmp dword [0x5aa63c], 0
mov ebx, eax
jne 0x59ff00
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x59ffb1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x59ffb1
push eax
call fcn.0059b864
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x5aa63c], eax
call esi
push eax
call fcn.0059b864
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5aa640], eax
call esi
push eax
call fcn.0059b864
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5aa644], eax
call esi
push eax
call fcn.0059b864
pop ecx
mov dword [0x5aa64c], eax
test eax, eax
je 0x59ff00
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0059b864
pop ecx
mov dword [0x5aa648], eax
mov eax, dword [0x5aa648]
cmp eax, ebx
je 0x59ff58
cmp dword [0x5aa64c], ebx
je 0x59ff58
push eax
call fcn.0059b8df
push dword [0x5aa64c]
mov esi, eax
call fcn.0059b8df
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x59ff58
test edi, edi
je 0x59ff58
call esi
test eax, eax
je 0x59ff4f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x59ff4f
test byte [ebp - 0xc], 1
jne 0x59ff58
or dword [ebp + 0x10], 0x200000
jmp 0x59ff91
mov eax, dword [0x5aa640]
cmp eax, ebx
je 0x59ff91
push eax
call fcn.0059b8df
pop ecx
test eax, eax
je 0x59ff91
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x59ff91
mov eax, dword [0x5aa644]
cmp eax, ebx
je 0x59ff91
push eax
call fcn.0059b8df
pop ecx
test eax, eax
je 0x59ff91
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5aa63c]
call fcn.0059b8df
pop ecx
test eax, eax
je 0x59ffb1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x59ffb3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5a0e1d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [ebp + 8]
mov dword [0x5a7d14], 0x1d1e
mov dword [ebp - 0x10], eax
call fcn.005a1d89
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x5a0e63
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [0x5a7d10], 0x1009
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov dword [0x5a7d14], 0xdcb
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
je 0x5a0f91
jmp 0x5a0ed1
xor eax, eax
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov edx, dword [ebp - 0x38]
add edx, 2
mov esi, dword [ebp - 0x2c]
cmp ecx, esi
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x30], eax
jb 0x5a0ee3
jmp 0x5a0f91
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [0x5a7d14], 0x2147
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
mov ecx, eax
mov edx, dword [ebp - 0x44]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x4d], bh
mov byte [ebp - 0x4e], cl
je 0x5a0f58
mov eax, dword [ebp - 0x4c]
add eax, 1
mov cl, byte [ebp - 0x4d]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x4e]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x48], eax
jne 0x5a0f07
mov al, byte [ebp - 0x4e]
test al, 1
jne 0x5a0f64
jmp 0x5a0ea8
mov eax, dword [ebp - 0x38]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov dword [0x5a7d10], 0xff1
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [0x5a7d14], 0xe5e
mov dword [ebp - 0x30], edi
mov eax, dword [ebp - 0x30]
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5a1306
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [0x5a7d10], 0x1b77
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x5a7d10], 0x2042
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x5a137b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0x12], 0x64
mov dword [ebp - 0x18], eax
jne 0x5a143b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x18], eax
je 0x5a1415
jmp 0x5a143b
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edx
je 0x5a13a8
mov eax, dword [ebp - 0x1c]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], eax
jl 0x5a137b
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov edx, dword [ebp - 0xc]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
jne 0x5a143b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0x18], 0x6f
mov dword [ebp - 0x18], eax
jne 0x5a143b
xor eax, eax
mov dword [0x5a7d14], 0x2099
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0x16], 0x61
mov dword [ebp - 0x18], eax
jne 0x5a143b
xor eax, eax
mov dword [0x5a7d10], 0xe2e
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x18], eax
je 0x5a1346
jmp 0x5a143b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x18], eax
jne 0x5a143b
mov eax, 1
mov dword [0x5a7d14], 0xffffe8fd
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
add esp, 0x20
pop ebp
ret
Function at 0x5a160f
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x5a7d1c], 0
mov byte [0x5a7d20], 0
mov dword [0x5a7d18], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x5a166f
xor eax, eax
mov ecx, dword [0x5a7d10]
add ecx, 0xffffdfaa
mov dword [0x5a7d10], ecx
mov dword [0x5a7d18], 0
mov dword [ebp - 0x20], eax
jmp 0x5a16a1
mov eax, dword [ebp - 0x1c]
mov dword [0x5a7d10], 0x2469
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x5a7d18]
add eax, 1
mov dword [0x5a7d18], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x5a166f
jmp 0x5a164c
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov dword [0x5a7d24], 0
mov dword [0x5a7d14], 0x1383
mov edi, dword [0x5a7d1c]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x5a7d24], esi
mov dword [0x5a7d10], 0x126c
mov eax, esi
cdq
idiv ecx
mov dword [0x5a7d1c], edx
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x5a7d20], cl
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov cl, byte [0x5a7d20]
mov esi, dword [0x5a7d1c]
mov byte [ebx + esi], cl
mov esi, dword [0x5a7d18]
add esi, 1
mov dword [0x5a7d18], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x5a16a1
mov dword [0x5a7d10], 0x2f7
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret