joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451280
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x39c
mov eax, dword [esp + 0x3a0]
push esi
push edi
mov edi, ecx
test eax, eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0x378
je 0x4513ec
mov ecx, dword [esp + 0x3ac]
test ecx, ecx
je 0x4513ec
mov edx, dword [esp + 0x3b0]
test edx, edx
je 0x4513ec
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 8]
push edx
push 0xf003f
push 0
push ecx
push eax
call esi
test eax, eax
jne 0x4513ec
mov edx, dword [esp + 8]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
push eax
push ecx
push 0
push 0
push str.PackedCatalogItem
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4513d0
cmp dword [esp + 0x10], 0x378
jne 0x4513d0
cmp dword [esp + 0x158], 1
jne 0x4513f9
cmp dword [esp + 0x17c], 2
jne 0x4513f9
mov eax, dword [esp + 0x154]
lea ecx, [esp + 0x14]
push eax
push 0x4ba414
push ecx
call fcn.0045d972
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4513d0
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, edi
call fcn.00451430
test eax, eax
je 0x4513d0
mov edx, dword [esp + 0x10]
push 3
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
push reloc.WS2_32.dll_bind
lea eax, [esp + 0x38]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, edi
call fcn.00450f30
test eax, eax
je 0x4513d0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 8]
lea eax, [esp + 0x2c]
push edx
push eax
push 3
push 0
push str.PackedCatalogItem
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4513f9
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4513e1
push eax
call esi
mov eax, dword [esp + 8]
test eax, eax
je 0x4513ec
push eax
call esi
pop edi
xor eax, eax
pop esi
add esp, 0x39c
ret 0xc
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x45140a
push eax
call esi
mov eax, dword [esp + 8]
test eax, eax
je 0x451415
push eax
call esi
pop edi
mov eax, 1
pop esi
add esp, 0x39c
ret 0xc
Function at 0x451430
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 0x480
mov ecx, dword [esp + 0x484]
mov dword [esp], 0x378
test ecx, ecx
je 0x4514f1
mov eax, dword [esp + 0x488]
test eax, eax
je 0x4514f1
lea edx, [esp]
push edx
lea edx, [esp + 0x10c]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4514f1
cmp dword [esp], 0x378
jne 0x4514f1
lea eax, [esp + 4]
push 0x104
lea ecx, [esp + 0x10c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x4514f1
lea edx, [esp + 4]
push edx
call fcn.00450ec0
add esp, 4
test eax, eax
je 0x4514f1
cmp dword [esp + 0x234], 1
jne 0x4514e3
cmp dword [esp + 0x258], 2
jne 0x4514e3
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x4514f1
push str.WSPStartup
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4514f1
mov eax, 1
add esp, 0x480
ret 8
xor eax, eax
add esp, 0x480
ret 8

Function at 0x451500
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
test esi, esi
je 0x45155f
push esi
call fcn.00450ec0
add esp, 4
test eax, eax
je 0x45155f
lea eax, [esp + 4]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x45155f
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x45155f
push 0x4ba438
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
neg eax
sbb eax, eax
pop esi
neg eax
add esp, 0x104
ret 4
xor eax, eax
pop esi
add esp, 0x104
ret 4
Function at 0x4515f0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x110
push ebx
push ebp
mov ebp, dword [esp + 0x11c]
push esi
xor esi, esi
push edi
cmp ebp, esi
mov ebx, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
jne 0x451624
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
push ebp
mov ecx, ebx
call fcn.00451500
test eax, eax
jne 0x45163d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
push ebp
mov ecx, ebx
call fcn.00451570
cmp eax, 1
je 0x4517ca
lea eax, [esp + 0x10]
push eax
push str.SYSTEMCurrentControlSetServicesWinSock2ParametersProtocol_Catalog9Catalog_Entries
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x451676
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0x1c]
push 0x104
push ecx
push esi
push edx
call edi
test eax, eax
jne 0x4516f2
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x451772
mov eax, dword [esp + 0x14]
push str.PackedCatalogItem
push eax
mov ecx, ebx
call fcn.00451430
mov ecx, dword [esp + 0x14]
test eax, eax
push ecx
je 0x451789
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
inc esi
push 0x104
push edx
push esi
push eax
mov dword [esp + 0x24], 0
call edi
test eax, eax
je 0x451692
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
xor esi, esi
push 0x104
push edx
push esi
push eax
mov dword [esp + 0x28], esi
call edi
test eax, eax
jne 0x451740
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push ebp
push edx
push eax
mov ecx, ebx
call fcn.004510e0
test eax, eax
je 0x451772
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
inc esi
push 0x104
push ecx
push esi
push edx
call edi
test eax, eax
je 0x45170e
cmp dword [esp + 0x18], 1
jb 0x451772
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
dec ecx
push reloc.WS2_32.dll_bind
push ecx
push ebp
push str.FileName
mov ecx, ebx
call fcn.00450fc0
cmp eax, 1
je 0x4517bb
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x451799
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], 0
jmp 0x451772
push ebp
mov ecx, ebx
call fcn.004517e0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4517ca
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x110
ret 4
Function at 0x4517e0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x10c
push ebp
mov ebp, dword [esp + 0x114]
push esi
xor esi, esi
push edi
cmp ebp, esi
mov edi, ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 1
jne 0x451812
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x10c
ret 4
push esi
mov ecx, edi
call fcn.00451570
test eax, eax
jne 0x45182f
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x10c
ret 4
lea eax, [esp + 0xc]
push eax
push str.SYSTEMCurrentControlSetServicesWinSock2ParametersProtocol_Catalog9Catalog_Entries
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x451856
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x10c
ret 4
mov edx, dword [esp + 0xc]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0x18]
push 0x104
push ecx
push esi
push edx
call ebx
test eax, eax
jne 0x4518a4
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push ebp
push eax
push ecx
mov ecx, edi
call fcn.00451280
test eax, eax
jne 0x45188d
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
inc esi
push 0x104
push edx
push esi
push eax
call ebx
test eax, eax
je 0x451873
push 0
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
push reloc.WS2_32.dll_bind
mov ecx, edi
call fcn.00451050
mov eax, dword [esp + 0x10]
pop ebx
test eax, eax
je 0x4518c7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 0x10c
ret 4

Function at 0x46f27e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46f2b6
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046d335
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046d30d
jmp 0x46f2c2
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47096f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4709b1
call fcn.004766e4
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4709b1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4709a8
xor eax, eax
jmp 0x4709b9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004709bf
pop edi
pop esi
pop ebx
ret 4
Function at 0x476c14
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x476c42
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x476c60
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00476b7a
jmp 0x476c60
mov eax, dword [esi + 0x14]
test eax, eax
je 0x476c60
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00476b7a
test edi, edi
mov eax, edi
jne 0x476c4a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x408620
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x408deb
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x40d01c]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push esi
mov eax, dword [0x40d01c]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov eax, dword [esp + 0x74]
push eax
lea ecx, [esp + 0x2c]
call dword [0x40a0d8]
lea ecx, [esp + 0x44]
mov dword [esp + 0x6c], 0
call dword [0x40a0cc]
mov bl, 1
mov byte [esp + 0x6c], bl
mov eax, dword [esp + 0x3c]
push eax
push 0
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x34]
call dword [0x40a0c0]
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x70], 2
call dword [0x40a0c8]
lea ecx, [esp + 0xc]
mov byte [esp + 0x6c], bl
call dword [0x40a0d0]
push 0
push 0x40b348
lea ecx, [esp + 0x30]
call dword [str._A_]
mov edx, dword [0x40a0d4]
cmp eax, dword [edx]
je 0x40872b
mov ecx, 0x40b348
lea esi, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4086d0
sub ecx, esi
add eax, ecx
mov ecx, dword [esp + 0x3c]
sub ecx, eax
push ecx
push eax
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x34]
call dword [0x40a0c0]
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x70], 2
call dword [0x40a0c8]
lea ecx, [esp + 0xc]
mov byte [esp + 0x6c], bl
call dword [0x40a0d0]
push 0
push 0x40b348
lea ecx, [esp + 0x30]
call dword [str._A_]
mov ecx, dword [0x40a0d4]
cmp eax, dword [ecx]
jne 0x4086c6
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x48]
call dword [0x40a0c8]
cmp dword [esp + 0x5c], 0x10
mov eax, dword [esp + 0x48]
jae 0x408749
lea eax, [esp + 0x48]
mov ecx, dword [esp + 0x58]
push ecx
push eax
push edi
call fcn.004098f2
add esp, 0xc
lea ecx, [esp + 0x44]
mov byte [esp + 0x6c], 0
call dword [0x40a0d0]
lea ecx, [esp + 0x28]
mov dword [esp + 0x6c], 0xffffffff
call dword [0x40a0d0]
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.00408f5e
add esp, 0x64
ret
Function at 0x4022a5
Capabilities:
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
push 8
xor eax, eax
shl ecx, 1
pop esi
sar ecx, 1
mov edx, eax
xor edx, ecx
test dl, 1
je 0x4022c5
shr eax, 1
xor eax, 0xedb88320
jmp 0x4022c7
shr eax, 1
dec esi
jne 0x4022b1
pop esi
ret 4

Function at 0x4022ee
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
mov eax, dword [0x40b4a0]
mov edx, ecx
dec ecx
test edx, edx
je 0x402321
push edi
lea edx, [ecx + 1]
mov ecx, dword [esp + 8]
push esi
movzx esi, byte [ecx]
movzx edi, al
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x40b0a0]
xor eax, esi
inc ecx
dec edx
jne 0x402307
pop esi
pop edi
mov dword [0x40b4a0], eax
ret

Function at 0x404699
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x40b5ee]
test eax, eax
ja 0x4046ac
and dword [0x40b5cc], 0
xor eax, eax
ret
push edi
push esi
mov esi, 0x800
cmp eax, esi
ja 0x4046b9
mov esi, eax
mov edi, dword [0x407040]
push esi
push dword [0x40b5c8]
push dword [0x40afe0]
call edi
cmp dword [0x40aff0], 0
mov ecx, eax
mov dword [0x40b5cc], ecx
je 0x404728
cmp ecx, 0xffffffff
je 0x404728
cmp ecx, esi
je 0x404739
test ecx, ecx
jl 0x404728
mov ax, word [0x408918]
push dword [0x40aff4]
inc ax
push eax
call fcn.00401f2a
mov ecx, dword [0x40b5cc]
test ecx, ecx
jne 0x404721
push esi
push dword [0x40b5c8]
push dword [0x40afe0]
call edi
mov ecx, eax
mov dword [0x40b5cc], ecx
cmp ecx, 0xffffffff
je 0x404728
mov esi, ecx
cmp ecx, esi
je 0x404739
push 2
call fcn.0040289a
mov ecx, dword [0x40b5cc]
sub dword [0x40b5ee], ecx
mov esi, dword [0x40b5c8]
cmp dword [0x40afe4], 0
mov dword [0x40b5fc], esi
je 0x40477b
mov eax, ecx
mov edx, eax
dec eax
test edx, edx
je 0x40477b
lea edi, [eax + 1]
call fcn.00405ef0
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.00405f06
inc esi
dec edi
pop ecx
jne 0x404760
mov ecx, dword [0x40b5cc]
mov eax, ecx
dec ecx
pop esi
mov dword [0x40b5cc], ecx
pop edi
ret

Function at 0x405f06
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x40b068]
xor eax, ecx
mov edx, 0xff
and eax, edx
push esi
shr ecx, 8
mov eax, dword [eax*4 + 0x40b0a0]
xor eax, ecx
mov ecx, dword [0x40b070]
mov dword [0x40b068], eax
and eax, edx
add eax, dword [0x40b06c]
mov esi, ecx
and esi, edx
imul eax, eax, 0x8088405
inc eax
mov dword [0x40b06c], eax
shr eax, 0x18
xor esi, eax
shr ecx, 8
mov eax, dword [esi*4 + 0x40b0a0]
pop esi
xor eax, ecx
mov dword [0x40b070], eax
ret
Function at 0x5eb6c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46dec8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebp
push edi
mov edi, ecx
xor ebp, ebp
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x48]
push ebp
push eax
push ecx
lea ecx, [edi + 0x104]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call fcn.005e65c0
test eax, eax
jne 0x5eb72c
push ebp
push 0x4c2f1c
mov ecx, edi
call fcn.005ea940
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
pop edi
pop ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
mov edx, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x50]
push esi
push ebp
push ebp
push ebx
lea ecx, [edx + 0x14]
call fcn.005e6140
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.005db330
push ebx
mov dword [esp + 0x4c], ebp
call fcn.005e6770
add esp, 4
test eax, eax
je 0x5eb7cf
add esi, 0x18
push esi
call fcn.00623ce0
add esi, eax
push esi
call fcn.00623ce0
mov ecx, dword [esp + 0x60]
add esp, 8
cmp ecx, 3
lea eax, [esi + eax + 8]
ja 0x5ebad2
jmp dword [ecx*4 + 0x418b10]
mov eax, dword [esi]
push ebp
push eax
mov ecx, edi
call fcn.005eaa80
mov ebx, dword [esp + 0x58]
mov ebp, eax
lea edi, [esi + 0x18]
mov edx, dword [ebp + 0x28]
lea ecx, [ebx + ebx*4]
mov esi, edi
lea eax, [edx + ecx*4]
push esi
mov dword [esp + 0x5c], eax
call fcn.00623ce0
add esi, eax
push esi
call fcn.00623ce0
add esi, eax
add esp, 8
mov esi, dword [esi]
test esi, esi
je 0x5eb820
mov ecx, dword [esi + 0x1c]
push ecx
call dword [0x4715dc]
test eax, eax
je 0x5eb820
mov eax, 1
jmp 0x5eb822
xor eax, eax
cmp ebx, 8
jge 0x5eba87
cmp ebx, 7
ja 0x5ebad2
jmp dword [ebx*4 + 0x418b20]
test eax, eax
jne 0x5eba9a
mov ecx, dword [esp + 0x10]
push eax
push 0x4c2f08
call fcn.005ea940
push 6
call dword [ebp + 0x2c]
lea edx, [esp + 0x1c]
xor ecx, ecx
add ebx, 0xfffffff8
push edx
mov dword [esp + 0x20], ecx
push ebx
push esi
mov dword [esp + 0x2c], ecx
call eax
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
call fcn.005ebfe0
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
mov esi, eax
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x2c], 0x4aeeb0
call fcn.005db530
mov ecx, dword [esp + 0x40]
mov eax, esi
pop esi
mov edx, edi
pop ebx
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
Function at 0x5f4630
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4d9950]
xor edx, edx
cmp eax, edx
jne 0x5f4656
xor eax, eax
mov byte [eax + 0x4d9850], al
inc eax
cmp eax, 0x100
jl 0x5f463e
mov dword [0x4d9950], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4d9850
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x5f46e7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x5f46ba
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x5f4688
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x5f4760
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x5f47b3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x5f479a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5f8a50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x78]
push ebx
push esi
cmp eax, 1
push edi
mov dword [esp + 0x14], ecx
jl 0x5f8c71
cmp eax, 8
jg 0x5f8c71
cmp dword [esp + 0x8c], 2
jl 0x5f8c71
mov eax, dword [esp + 0x7c]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x6c], ecx
sub ecx, esi
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x7c], ecx
test ecx, ecx
mov dword [esp + 0x70], ebx
jle 0x5f8c71
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x5f8c71
mov eax, dword [esp + 0x80]
test eax, eax
je 0x5f8ad7
mov edx, dword [eax]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x4c], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], eax
xor edx, edx
push ebp
test ebx, ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], edx
jle 0x5f8c5a
mov ebp, dword [0x4714b4]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x5f8b09
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x5f8c41
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x5f8b29
mov ecx, 0x32
lea ebx, [ecx + eax]
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push edx
lea edx, [esp + 0x34]
push eax
push edx
call 0x73dfd5
xor edx, dword [edi - 0x73]
inc esp
and al, 0x2c
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x5f8b68
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [0x4714a8]
lea ecx, [esp + 0x28]
push ecx
push edx
call 0x7684c8
test eax, eax
jne 0x5f8c28
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], ecx
mov eax, edi
mov ecx, esi
mov dword [esp + 0x44], edx
neg eax
neg ecx
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call ebp
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x94]
sub ecx, edi
sub eax, esi
push edx
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x9c]
push eax
call fcn.005f8060
cmp eax, 1
jne 0x5f8c52
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x80]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.005f8910
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x5f8b1d
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x5f8c5a
jmp 0x5f8af4
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.005f7c60
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x68
ret 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x68
ret 0x1c