joyce8/EMBER2024-capa huggingface dataset:
Function at 0xcf0058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00cf01a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xcf007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xcf006a
add dl, dl
jne 0xcf0089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xcf00dc
xor eax, eax
add dl, dl
jne 0xcf0096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xcf017d
add dl, dl
jne 0xcf00a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcf00b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcf00bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcf00c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xcf00d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xcf0075
mov eax, 1
add dl, dl
jne 0xcf00ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcf00f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xcf00e1
sub eax, ebx
mov ebx, 1
jne 0xcf0128
mov ecx, 1
add dl, dl
jne 0xcf010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xcf0119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xcf0105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xcf0075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xcf013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xcf014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xcf0136
cmp eax, 0x7d00
jae 0xcf016d
cmp eax, 0x500
jb 0xcf0168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xcf0075
cmp eax, 0x7f
ja 0xcf0170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xcf0075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xcf019e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xcf0075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x430001
Capabilities:
Packed with generic packer

Disassembly:
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
nop
nop
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x42ffcc
ror byte [eax + edx*4], 0x90
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0xf09d48
Capabilities:
Encode data using xor

Disassembly:
jmp 0xf09d52
pushal
call 0xf09d58
pop ebp
sub ebp, 0x10
sub ebp, 0xb09d48
jmp 0xf09d6e
mov eax, 0xb09d48
add eax, ebp
add eax, 0x4c
mov ecx, 0x5bf
mov edx, 0x322dd0c5
xor byte [eax], dl
inc eax
dec ecx
jne 0xf09d85
jmp 0xf09d98
dec esi
or byte [esi + 0x4c], cl
stc
invalid
Function at 0x1002dce
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push dword [ebp + 8]
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.ntdll.dll_wcscpy]
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.ntdll.dll_wcslen]
add esp, 0xc
lea eax, [ebp + eax*2 - 0x100]
dec eax
dec eax
mov cx, word [eax]
cmp cx, 0x5c
je 0x1002e0f
cmp cx, 0x2f
jne 0x1002e15
and word [eax], 0
jmp 0x1002dfe
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
leave
ret 4

Function at 0x1002e30
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x658
push esi
push dword [edi + 4]
mov esi, dword [sym.imp.ntdll.dll_wcscpy]
lea eax, [ebp - 0x108]
push eax
call esi
push dword [edi + 4]
call dword [sym.imp.ntdll.dll_wcslen]
lea eax, [ebp + eax*2 - 0x108]
push 0x10014cc
push eax
mov dword [ebp - 8], eax
call esi
add esp, 0x14
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x1002e98
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x12
neg eax
sbb eax, eax
jmp 0x1002fc2
push ebx
mov ebx, dword [sym.imp.ntdll.dll_wcscmp]
lea eax, [ebp - 0x32c]
push 0x10011c4
push eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x1002f9a
lea eax, [ebp - 0x32c]
push 0x10014c4
push eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x1002f9a
lea eax, [ebp - 0x32c]
push eax
call dword [sym.imp.ntdll.dll__wcslwr]
push eax
push dword [ebp - 8]
call esi
mov eax, dword [edi + 0xc]
add esp, 0xc
test eax, eax
je 0x1002efc
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.ntdll.dll_wcscat]
pop ecx
pop ecx
lea eax, [ebp - 0x32c]
push eax
push dword [edi + 8]
call fcn.01003197
test eax, eax
je 0x1002f9a
cmp dword [edi + 0xc], 0
je 0x1002f75
lea eax, [ebp - 0x658]
push eax
lea eax, [ebp - 0x558]
push eax
lea eax, [ebp - 0x458]
push eax
lea edx, [ebp - 0x108]
call fcn.01002d09
test eax, eax
je 0x1002f75
test byte [ebp - 0x358], 0x10
je 0x1002f9a
lea eax, [ebp - 0x458]
push eax
call fcn.01002dce
test eax, eax
je 0x1002f9a
lea eax, [ebp - 0x658]
push eax
lea eax, [ebp - 0x558]
push eax
lea eax, [ebp - 0x458]
push eax
mov eax, dword [ebp + 8]
call fcn.01002b72
jmp 0x1002f9a
lea eax, [ebp - 0x108]
push eax
call fcn.01002dce
test eax, eax
je 0x1002f9a
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp + 0xc]
call fcn.01002c42
mov ebx, eax
test ebx, ebx
jne 0x1002fbf
lea eax, [ebp - 0x358]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, eax
test ebx, ebx
jne 0x1002e99
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x1002fbf
mov eax, ebx
pop ebx
pop esi
leave
ret 8
Function at 0x10033c2
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x10014d8
call fcn.01003560
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x10033fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10033fd
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1003415
cmp eax, 0x20b
je 0x1003402
mov dword [ebp - 0x1c], edi
jmp 0x1003429
cmp dword [ecx + 0x84], 0xe
jbe 0x10033fd
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1003423
cmp dword [ecx + 0x74], 0xe
jbe 0x10033fd
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1005760], 0xffffffff
or dword [0x1005764], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x10042e4]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x10042e0]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1005768], eax
call fcn.0100355a
cmp dword [0x100424c], edi
jne 0x1003484
push fcn.0100355a
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01003548
push 0x1001160
push 0x100115c
call sub.msvcrt.dll__initterm
mov eax, dword [0x10042dc]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x10042d8]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x1001158
push 0x1001154
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0100192f
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x10034fb
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1003530
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01003599
ret
Function at 0x4062ca
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x4062ee
xor eax, eax
test eax, eax
je 0x406300
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406300
xor ecx, ecx
jmp 0x406303
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x4063ef
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42ce04], 0
push esi
jne 0x406426
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406400
mov dword [ecx*4 + 0x42ce00], eax
inc ecx
cmp ecx, 0x100
jl 0x4063fb
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406457
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42ce00]
xor eax, esi
inc ecx
dec edx
jne 0x406439
pop edi
not eax
pop esi
ret 0xc

Function at 0x79d58c
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x79d592
pop ebp
sub ebp, 6
sub ebp, 0x39d58c
jmp 0x79d5f0
jmp 0x79d5f9
mov eax, 0x39d58c
add eax, ebp
add eax, 0x93
mov ecx, 0x631
mov edx, 0xc5623c80
xor byte [eax], dl
inc eax
dec ecx
jne 0x79d610
jmp 0x79d623
ljmp 0x8080:0x9080e8c0

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4019c1
Capabilities:
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa0
xor eax, eax
lea ecx, [esp + 0x60]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x58], eax
jmp 0x401a2b
mov eax, dword [esp + 0x54]
mov ecx, eax
and ecx, 0xe
cmp ecx, 6
mov dword [esp + 0x50], eax
je 0x401a84
jmp 0x401acc
mov eax, dword [esp + 0x4c]
add eax, 1
mov ecx, dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [esp + 0x48], eax
call ecx
mov ecx, dword [esp + 0x48]
cmp ecx, 0x88
mov dword [esp + 0x44], eax
mov dword [esp + 0x58], ecx
je 0x401b84
mov eax, dword [esp + 0x58]
mov ecx, esp
lea edx, [esp + 0x90]
mov dword [ecx + 0xc], edx
mov dword [ecx + 8], 0x48c
mov dword [ecx + 4], 0x48c
mov dword [ecx], 0x54b526
mov ecx, dword [sym.imp.GDI32.dll_SetWindowExtEx]
mov dword [esp + 0x4c], eax
call ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], 0x8e7
mov ecx, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
mov dword [esp + 0x40], eax
call ecx
sub esp, 4
xor ecx, ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x54], ecx
jmp 0x4019dd
xor eax, eax
mov ecx, 0x2c
mov edx, dword [esp + 0x5c]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 0x2c
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
call fcn.0059a5e0
mov eax, esp
lea ecx, [esp + 0x60]
mov dword [eax + 4], ecx
mov dword [eax], 0x2dff1f
mov eax, dword [sym.imp.USER32.dll_GetTitleBarInfo]
call eax
sub esp, 8
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x50]
add eax, 1
cmp eax, 0x3e6
mov dword [esp + 0x54], eax
jne 0x4019dd
mov eax, dword [esp + 0x4c]
sub eax, 0xc
mov dword [esp + 0x2c], eax
je 0x401b11
jmp 0x401af3
mov eax, dword [esp + 0x4c]
sub eax, 0x3d
mov dword [esp + 0x28], eax
jne 0x4019fe
jmp 0x401b06
mov eax, dword [sym.imp.USER32.dll_GetDoubleClickTime]
call eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x9c], 0x5381e7
mov eax, esp
lea ecx, [esp + 0x9c]
mov dword [eax + 0x10], ecx
mov dword [eax + 0xc], 0x950
mov dword [eax + 8], 0x25c77c
mov dword [eax + 4], 0x7a
mov dword [eax], 0x164f9a
mov eax, dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
call eax
sub esp, 0x14
mov ecx, esp
mov dword [ecx], 0xe5d
mov ecx, dword [sym.imp.USER32.dll_GetKeyboardType]
mov dword [esp + 0x20], eax
call ecx
sub esp, 4
mov ecx, esp
mov dword [ecx], 0x33c
mov ecx, dword [sym.imp.KERNEL32.dll_IsValidCodePage]
mov dword [esp + 0x1c], eax
call ecx
sub esp, 4
mov dword [esp + 0x18], eax
jmp 0x4019fe
mov esp, ebp
pop ebp
ret
Function at 0x59b5ae
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x59b5df
call fcn.0059ab09
mov dword [eax], esi
call fcn.0059aaf6
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0059aa8e
add esp, 0x14
push 0x16
pop eax
jmp 0x59b634
test dword [ebp + 0xc], 0xfffffff9
jne 0x59b5bb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x59b60c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0059ab1c
pop ecx
call fcn.0059aaf6
mov eax, dword [eax]
jmp 0x59b634
test al, 0x10
jne 0x59b632
test al, 1
je 0x59b632
test byte [ebp + 0xc], 2
je 0x59b632
call fcn.0059ab09
mov dword [eax], 5
call fcn.0059aaf6
mov dword [eax], 0xd
jmp 0x59b603
xor eax, eax
pop esi
pop ebp
ret

Function at 0x59c6d6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5aa388]
jne 0x59c6e0
repz ret
jmp fcn.005a0360

Function at 0x5a21b5
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.0059c757
and dword [ebp - 4], 0
cmp dword [0x5abac8], 0
mov ebx, eax
jne 0x5a2266
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x5a2317
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x5a2317
push eax
call fcn.0059c6e5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x5abac8], eax
call esi
push eax
call fcn.0059c6e5
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5abacc], eax
call esi
push eax
call fcn.0059c6e5
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5abad0], eax
call esi
push eax
call fcn.0059c6e5
pop ecx
mov dword [0x5abad8], eax
test eax, eax
je 0x5a2266
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0059c6e5
pop ecx
mov dword [0x5abad4], eax
mov eax, dword [0x5abad4]
cmp eax, ebx
je 0x5a22be
cmp dword [0x5abad8], ebx
je 0x5a22be
push eax
call fcn.0059c760
push dword [0x5abad8]
mov esi, eax
call fcn.0059c760
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x5a22be
test edi, edi
je 0x5a22be
call esi
test eax, eax
je 0x5a22b5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x5a22b5
test byte [ebp - 0xc], 1
jne 0x5a22be
or dword [ebp + 0x10], 0x200000
jmp 0x5a22f7
mov eax, dword [0x5abacc]
cmp eax, ebx
je 0x5a22f7
push eax
call fcn.0059c760
pop ecx
test eax, eax
je 0x5a22f7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x5a22f7
mov eax, dword [0x5abad0]
cmp eax, ebx
je 0x5a22f7
push eax
call fcn.0059c760
pop ecx
test eax, eax
je 0x5a22f7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5abac8]
call fcn.0059c760
pop ecx
test eax, eax
je 0x5a2317
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5a2319
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5a3196
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 [0x5a9d00], 0x1d1e
mov dword [ebp - 0x10], eax
call fcn.005a40f9
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 0x5a31dc
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [0x5a9cfc], 0x1009
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov dword [0x5a9d00], 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 0x5a330b
jmp 0x5a324a
xor eax, eax
mov ecx, dword [ebp - 0x34]
add ecx, 2
mov edx, dword [ebp - 0x38]
add edx, 1
mov esi, dword [ebp - 0x2c]
cmp edx, esi
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x30], eax
jb 0x5a325c
jmp 0x5a330b
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 [0x5a9d00], 0x2147
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 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 0x5a32d2
mov al, byte [ebp - 0x4d]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x4c]
add edx, 1
mov ah, byte [ebp - 0x4e]
and ah, cl
cmp edx, 0x20
setb cl
and ah, cl
test ah, 1
mov dword [ebp - 0x48], edx
jne 0x5a3280
mov al, byte [ebp - 0x4e]
test al, 1
jne 0x5a32de
jmp 0x5a3221
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov dword [0x5a9cfc], 0xff1
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [0x5a9d00], 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 0x5a366f
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [0x5a9cfc], 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 [0x5a9cfc], 0x2042
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x5a373d
xor eax, eax
mov dword [0x5a9cfc], 0xe2e
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x18], eax
je 0x5a3779
jmp 0x5a37b9
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
je 0x5a3755
jmp 0x5a37b9
mov eax, dword [ebp - 0x1c]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], eax
jl 0x5a373d
jmp 0x5a3724
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 0x5a3793
jmp 0x5a37b9
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
je 0x5a36d9
jmp 0x5a37b9
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 0x5a3724
jmp 0x5a36f2
xor eax, eax
mov dword [0x5a9d00], 0x2099
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0x16], 0x61
mov dword [ebp - 0x18], eax
je 0x5a36b2
jmp 0x5a37b9
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
je 0x5a370b
jmp 0x5a37b9
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 0x5a37b9
mov eax, 1
mov dword [0x5a9d00], 0xffffe8fd
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
add esp, 0x20
pop ebp
ret
Function at 0x5a3988
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 [0x5a9d08], 0
mov byte [0x5a9d0c], 0
mov dword [0x5a9d04], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x5a39d7
mov dword [0x5a9cfc], 0x2f7
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov dword [0x5a9cfc], 0x2469
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x5a9d04]
add eax, 1
mov dword [0x5a9d04], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x5a39d7
xor eax, eax
mov ecx, dword [0x5a9cfc]
add ecx, 0xffffdfaa
mov dword [0x5a9cfc], ecx
mov dword [0x5a9d04], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x5a9d10], 0
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov dword [0x5a9d00], 0x1383
mov edi, dword [0x5a9d08]
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 [0x5a9d10], esi
mov dword [0x5a9cfc], 0x126c
mov eax, esi
cdq
idiv ecx
mov dword [0x5a9d08], edx
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x5a9d0c], cl
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov cl, byte [0x5a9d0c]
mov esi, dword [0x5a9d08]
mov byte [ebx + esi], cl
mov esi, dword [0x5a9d04]
add esi, 1
mov dword [0x5a9d04], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x5a3a28
jmp 0x5a39c5