joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c9fc0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
cmp dword [eax + 0x18], 0x10
jb 0x5c9fcc
mov eax, dword [eax + 4]
jmp 0x5c9fcf
add eax, 4
push 0
push 0x60000080
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [esi + 0x28], eax
cmp eax, 0xffffffff
jne 0x5c9ff8
mov byte [esi + 0x19], 1
xor al, al
pop ecx
ret
push 0
push eax
call dword [sym.imp.kernel32.dll_GetFileSize]
mov dword [esi + 0x14], eax
xor eax, eax
lea ecx, [esi + 0x2c]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
cmp byte [esi + 0x1a], al
jne 0x5ca07e
mov dword [esi + 0x40], eax
mov eax, dword [esi + 0x14]
mov edx, eax
and edx, 0x7ff
sub eax, edx
add eax, 0x800
mov dword [esi + 0x10], eax
cmp eax, 0x100000
jb 0x5ca040
mov eax, 0x100000
mov edx, dword [esi + 8]
push ecx
mov dword [esi + 0x20], eax
lea eax, [esp + 4]
push eax
mov eax, dword [esi + 0x28]
mov dword [esi + 0x24], 0
mov ecx, dword [esi + 0x20]
push ecx
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x5ca07e
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
je 0x5ca07e
cmp eax, 0x3e4
jne 0x5c9ff0
mov al, 1
pop ecx
ret

Function at 0x5ca251
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x28]
call edx
cmp eax, 1
jne 0x5ca267
xor al, al
pop esi
pop ecx
ret 0xc
mov eax, dword [esp + 0x14]
xor ecx, ecx
push edi
mov edi, dword [esp + 0x14]
mov dword [esi + 0x24], eax
mov byte [esi + 0x19], cl
lea eax, [esi + 0x2c]
mov dword [esi + 0x20], edi
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
push eax
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov ecx, dword [esi + 0x40]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0xc]
push edx
push edi
mov dword [esi + 0x34], ecx
mov ecx, dword [esi + 0x28]
push eax
push ecx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x5ca2cc
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
je 0x5ca2cc
cmp eax, 0x3e4
je 0x5ca2cc
pop edi
mov byte [esi + 0x19], 1
xor al, al
pop esi
pop ecx
ret 0xc
add dword [esi + 0x40], edi
pop edi
mov al, 1
pop esi
pop ecx
ret 0xc
Function at 0x5cd230
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push ebx
mov bl, byte [ecx + 8]
push esi
mov esi, dword [esp + 0x20]
cmp bl, 3
je 0x5cd3cf
push ebp
mov ebp, dword [ecx]
push edi
mov dword [esp + 0x10], 0
test bl, 2
je 0x5cd286
movzx eax, byte [ecx + 9]
movzx esi, byte [edx]
mov edi, eax
sub edi, esi
movzx esi, byte [edx + 1]
mov dword [esp + 0x14], edi
mov edi, eax
sub edi, esi
movzx esi, byte [edx + 2]
sub eax, esi
mov esi, dword [esp + 0x28]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
mov edi, 3
jmp 0x5cd299
movzx eax, byte [edx + 3]
movzx edi, byte [ecx + 9]
sub edi, eax
mov dword [esp + 0x14], edi
mov edi, 1
test bl, 4
je 0x5cd2ad
movzx edx, byte [edx + 4]
movzx eax, byte [ecx + 9]
sub eax, edx
mov dword [esp + edi*4 + 0x14], eax
inc edi
xor edx, edx
xor eax, eax
cmp edi, edx
jle case.0x5cd2fb.3
lea esp, [esp]
cmp dword [esp + eax*4 + 0x14], edx
jg 0x5cd2cc
mov dword [esp + eax*4 + 0x14], edx
jmp 0x5cd2d4
mov dword [esp + 0x10], 1
inc eax
cmp eax, edi
jl 0x5cd2c0
cmp word [esp + 0x10], dx
je case.0x5cd2fb.3
movzx eax, byte [ecx + 9]
add eax, 0xfffffffe
cmp eax, 0xe
ja case.0x5cd2fb.3
movzx eax, byte [eax + 0x5cd3ec]
jmp dword [eax*4 + 0x5cd3d8]
mov ecx, dword [ecx + 4]
mov eax, esi
cmp ecx, edx
jbe case.0x5cd2fb.3
nop
mov dl, byte [eax]
shr dl, 1
and dl, 0x55
mov byte [eax], dl
inc eax
sub ecx, 1
jne 0x5cd310
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x14
ret
mov edi, dword [ecx + 4]
mov edx, dword [esp + 0x14]
mov ecx, edx
mov eax, 0xf0
sar eax, cl
mov ebx, 0xf
sar ebx, cl
and al, 0xf0
or al, bl
test edi, edi
jbe case.0x5cd2fb.3
lea ebx, [ebx]
mov bl, byte [esi]
mov cl, dl
shr bl, cl
inc esi
and bl, al
sub edi, 1
mov byte [esi - 1], bl
jne 0x5cd350
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x14
ret
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x5cd2fb.3
mov eax, ebx
xor edx, edx
div edi
inc ebx
inc esi
mov cl, byte [esp + edx*4 + 0x14]
shr byte [esi - 1], cl
cmp ebx, ebp
jb 0x5cd372
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x14
ret
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x5cd2fb.3
xor edx, edx
mov eax, ebx
div edi
movzx ax, byte [esi]
mov ecx, 0x100
imul ax, cx
movzx ecx, byte [esi + 1]
add ax, cx
inc esi
inc ebx
inc esi
movzx ecx, word [esp + edx*4 + 0x14]
shr ax, cl
movzx eax, ax
mov edx, eax
shr edx, 8
mov byte [esi - 2], dl
mov byte [esi - 1], al
cmp ebx, ebp
jb 0x5cd396
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x5d0470
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, eax
cmp dword [esi + 0x14], 0xca
jne 0x5d0499
call fcn.006048d0
cmp byte [esi + 0x40], 0
je 0x5d0492
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x5d0514
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x5d0504
nop
mov eax, dword [esi + 8]
test eax, eax
je 0x5d04bf
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
mov edx, dword [esi + 0x190]
mov eax, dword [edx]
push esi
call eax
add esp, 4
test eax, eax
je 0x5d0500
cmp eax, 2
je 0x5d0504
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x5d04b0
cmp eax, 3
je 0x5d04e7
cmp eax, 1
jne 0x5d04b0
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x5d04b0
mov edx, dword [esi + 0x11c]
add dword [eax + 8], edx
jmp 0x5d04b0
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.005d0540
pop esi
ret
cmp eax, 0xcc
je 0x5d0536
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
call fcn.005d0540
pop esi
ret

Function at 0x5d7750
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x78ad7d
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x867e6c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.Sexy::WindowsGraphicsDriver.0
mov dword [esp + 0x18], 4
mov eax, dword [esi + 0x2c]
push eax
call fcn.00644b73
mov eax, dword [esi + 0x30]
push eax
call fcn.00644b73
mov eax, dword [esi + 0x34]
push eax
call fcn.00644b73
add esp, 0xc
call fcn.005d9a10
mov edi, esi
call fcn.005d9c10
mov ecx, dword [esi + 0xd98]
test ecx, ecx
je 0x5d77c7
mov eax, dword [ecx]
mov edx, dword [eax + 0x120]
push 1
call edx
mov ecx, dword [esi + 0xc60]
test ecx, ecx
je 0x5d77d9
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
lea eax, [esi + 0xd78]
push eax
mov byte [esp + 0x1c], 3
call fcn.0046c600
cmp dword [esi + 0xd74], 0x10
jb 0x5d7802
mov eax, dword [esi + 0xd60]
push eax
call fcn.006441c7
add esp, 4
lea eax, [esi + 0xd04]
mov dword [esi + 0xd74], 0xf
mov dword [esi + 0xd70], 0
push eax
mov byte [esi + 0xd60], 0
mov byte [esp + 0x1c], 1
call fcn.0046c600
lea ecx, [esi + 0xc38]
push ecx
call dword [sym.imp.ntdll.dll_RtlDeleteCriticalSection]
mov dword [esi], vtable.Sexy::IGraphicsDriver.0
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x5d9680
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0xc]
sub esp, 0xac
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
push eax
push ecx
push str.WindowResize__d___d__r_n
lea esi, [esp + 0x28]
call fcn.00439900
mov esi, 0x10
add esp, 0xc
cmp dword [eax + 0x18], esi
jb 0x5d96b9
mov eax, dword [eax + 4]
jmp 0x5d96bc
add eax, 4
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp dword [esp + 0x34], esi
jb 0x5d96d6
mov edx, dword [esp + 0x20]
push edx
call fcn.006441c7
add esp, 4
lea esi, [edi + 0xc80]
mov ebx, 4
mov eax, dword [esi]
test eax, eax
je 0x5d96f5
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi], 0
add esi, 4
sub ebx, 1
jne 0x5d96e1
mov esi, dword [edi + 0xc90]
cmp esi, dword [ebp + 8]
jne 0x5d9717
mov eax, dword [edi + 0xc94]
cmp eax, dword [ebp + 0xc]
je 0x5d983b
push 0x7c
lea ecx, [esp + 0x3c]
push 0
push ecx
call fcn.0064edd0
mov al, byte [edi + 0xc64]
add esp, 0xc
mov dword [esp + 0x38], 0x7c
mov dword [esp + 0x3c], 7
mov dword [esp + 0xa0], 0x840
test al, al
je 0x5d9758
mov dword [esp + 0xa0], 0x6040
mov dword [esp + 0x10], esi
mov esi, dword [edi + 0xc94]
mov dword [esp + 0xc], 0
test al, al
je 0x5d97fd
mov ecx, dword [edi + 0xd98]
test ecx, ecx
je 0x5d97fd
mov edx, dword [ecx]
mov eax, dword [edx + 0x13c]
push 0
call eax
test al, al
je 0x5d97fd
mov eax, dword [ebp + 0xc]
add eax, eax
cmp esi, eax
mov dword [esp + 0x18], eax
jle 0x5d97fd
lea ebx, [edi + 0xc80]
jmp 0x5d97a9
mov ebx, dword [esp + 0x14]
cmp dword [esp + 0xc], 3
jge 0x5d97fd
mov eax, dword [esp + 0x10]
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x10], ecx
mov dword [esp + 0x44], ecx
mov esi, eax
push ebx
lea ecx, [esp + 0x3c]
push ecx
mov eax, edi
mov dword [esp + 0x48], esi
call fcn.005d7940
inc dword [esp + 0xc]
add ebx, 4
mov dword [esp + 0x14], ebx
push eax
mov ebx, str.CreateSurface_Windowed_DrawSurface
call fcn.005d7860
test al, al
jne 0x5d9866
cmp esi, dword [esp + 0x18]
jg 0x5d97a5
cmp byte [edi + 0xc68], 0
jne 0x5d983b
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0xc]
mov edx, dword [ebp + 8]
mov dword [esp + 0x40], eax
lea eax, [edi + ecx*4 + 0xc80]
mov dword [esp + 0x44], edx
push eax
lea edx, [esp + 0x3c]
push edx
mov eax, edi
call fcn.005d7940
push eax
mov ebx, str.CreateSurface_Windowed_DrawSurface
call fcn.005d7860
test al, al
jne 0x5d9866
cmp byte [edi + 0xcf8], 0
je 0x5d9866
xor eax, eax
mov dword [edi + 0xcd0], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [edi + 0xcd4], ecx
mov ecx, dword [ebp + 0xc]
mov dword [edi + 0xcd8], eax
mov dword [edi + 0xcdc], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5dc3f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x788109
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x867e6c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
lea eax, [esi + 4]
mov dword [esi], vtable.Sexy::RenderStateManager.0
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x74], ecx
mov dword [eax + 0x8c], ecx
mov edx, 0xf
mov dword [eax + 0x90], edx
mov byte [eax + 0x7c], cl
mov dword [eax + 0x18], eax
mov dword [eax + 0x14], eax
mov dword [eax + 0x70], eax
mov dword [eax + 0x6c], eax
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
lea eax, [esi + 0x98]
mov dword [esp + 0x14], ecx
mov dword [eax], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x74], ecx
mov dword [eax + 0x90], edx
mov dword [eax + 0x8c], ecx
mov byte [eax + 0x7c], cl
mov dword [eax + 0x18], eax
mov dword [eax + 0x14], eax
mov dword [eax + 0x70], eax
mov dword [eax + 0x6c], eax
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
lea edi, [esi + 0x130]
push edi
mov byte [esp + 0x18], 1
call fcn.0060e300
mov dword [esi + 0x12c], edi
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x5e8160
Capabilities:
Get socket status

Disassembly:
sub esp, 0x328
push ebx
xor ebx, ebx
cmp byte [esi + 0xf6], bl
jne 0x5e8245
mov dword [esp + 0x10], ebx
mov dword [esp + 0x118], ebx
cmp byte [esp + 0x330], bl
je 0x5e819b
mov eax, dword [esi + 8]
mov dword [esp + 0x14], eax
mov eax, 1
mov dword [esp + 0x10], eax
jmp 0x5e81a0
mov eax, 1
cmp byte [esp + 0x334], bl
je 0x5e81ba
mov ecx, dword [esi + 8]
mov dword [esp + 0x11c], ecx
mov dword [esp + 0x118], eax
mov edx, dword [esi + 8]
mov dword [esp + 0x220], eax
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x224]
push ecx
mov dword [esp + 0x22c], edx
lea edx, [esp + 0x120]
push edx
lea eax, [esp + 0x1c]
push eax
push pe_nt_image_headers32
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 0x186a0
call sub.ws2_32.dll_select
cmp eax, 0xffffffff
je 0x5e8251
mov edx, dword [esi + 8]
lea ecx, [esp + 0x220]
push ecx
push edx
call sub.ws2_32.dll___WSAFDIsSet
test eax, eax
jne 0x5e8251
mov ecx, dword [esi + 8]
lea eax, [esp + 0x10]
push eax
push ecx
call sub.ws2_32.dll___WSAFDIsSet
test eax, eax
jne 0x5e8245
mov eax, dword [esi + 8]
lea edx, [esp + 0x118]
push edx
push eax
call sub.ws2_32.dll___WSAFDIsSet
test eax, eax
jne 0x5e8245
cmp byte [esi + 0xf6], bl
je 0x5e8175
mov al, 1
pop ebx
add esp, 0x328
ret 8
mov ecx, 6
mov eax, esi
call fcn.005e8150
xor al, al
pop ebx
add esp, 0x328
ret 8

Function at 0x5e8d50
Capabilities:
Create thread

Disassembly:
push eax
mov cl, 1
push 0
push 0x5e8ac0
mov byte [eax + 0xf4], cl
mov byte [eax + 0xf5], cl
call fcn.006480e2
add esp, 0xc
ret

Function at 0x5ead50
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
ret
Function at 0x5ed520
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x787fa0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x867e6c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push edi
mov eax, dword [0x867e6c]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0x10], ebx
cmp dword [edi + 0x188], 2
jne 0x5ed581
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x81d304
mov ecx, esi
mov byte [esi + 4], bl
call fcn.004016e0
jmp 0x5ed695
mov ebp, 0xf
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
mov dword [esp + 0x3c], ebx
cmp byte [edi + 0x15c], bl
je 0x5ed656
lea eax, [edi + 0x18c]
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov byte [esp + 0x3c], 1
mov eax, dword [edi + 0x158]
push eax
call fcn.0064a3fa
mov ebp, eax
mov eax, dword [esp + 0x2c]
add esp, 4
cmp ebp, eax
ja 0x5ed5df
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x1c]
call fcn.00401320
jmp 0x5ed5ee
mov ecx, ebp
sub ecx, eax
push ebx
push ecx
lea ecx, [esp + 0x1c]
call fcn.0043adb0
mov edx, dword [edi + 0x158]
push ebx
push ebx
push edx
call fcn.006475c9
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp dword [esp + 0x2c], 0x10
jae 0x5ed60e
lea eax, [esp + 0x18]
mov ecx, dword [edi + 0x158]
push ecx
push ebp
push 1
push eax
call fcn.00647522
add esp, 0x10
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x1c]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00401530
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
cmp dword [esp + 0x2c], 0x10
jb 0x5ed695
mov ecx, dword [esp + 0x18]
push ecx
jmp 0x5ed68d
push 0xffffffffffffffff
push ebx
add edi, 0x160
push edi
lea ecx, [esp + 0x20]
call fcn.00401530
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x1c]
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00401530
cmp dword [esp + 0x2c], 0x10
jb 0x5ed695
mov eax, dword [esp + 0x18]
push eax
call fcn.006441c7
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00643db8
add esp, 0x30
ret

Function at 0x5edc00
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [esi + 0x188], 2
jne 0x5edc51
mov al, 1
mov byte [esi + 0x184], al
mov byte [esi + 0x185], al
lea eax, [esp]
push eax
push 0
push esi
push 0x5ed6c0
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
jne 0x5edc4a
mov byte [esi + 0x184], al
mov byte [esi + 0x185], al
mov dword [esi + 0x188], 0xb
pop ecx
ret
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
pop ecx
ret
Function at 0x5f0690
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x787f13
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x867e6c]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov dword [edi], eax
xor eax, eax
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
lea ebx, [edi + 0xc]
mov dword [ebx], eax
lea ebp, [edi + 0x10]
mov dword [ebp], eax
mov dword [edi + 0x2c], 0xf
mov dword [edi + 0x28], eax
mov byte [edi + 0x18], al
mov dword [esp + 0x3c], eax
mov esi, dword [edi + 8]
mov byte [edi + 0x30], al
mov eax, dword [esi + 0x5c]
sub eax, dword [esi + 0x58]
je 0x5f071c
mov ecx, dword [esi + 0x5c]
sub ecx, dword [esi + 0x58]
jne 0x5f0700
call fcn.006441b7
mov ecx, dword [edi + 4]
mov esi, dword [esi + 0x58]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14c]
push ebx
push esi
call eax
test eax, eax
jge 0x5f071c
mov dword [ebx], 0
mov esi, dword [edi + 8]
mov ecx, dword [esi + 0x8c]
sub ecx, dword [esi + 0x88]
je 0x5f0760
mov edx, dword [esi + 0x8c]
sub edx, dword [esi + 0x88]
jne 0x5f0740
call fcn.006441b7
mov ecx, dword [edi + 4]
mov esi, dword [esi + 0x88]
mov eax, dword [ecx]
mov edx, dword [eax + 0x150]
push ebp
push esi
call edx
test eax, eax
jge 0x5f0760
mov dword [ebp], 0
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0x2c]
sub ecx, dword [eax + 0x28]
add eax, 0x1c
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
xor eax, eax
add ebx, edx
cmp ebx, eax
mov dword [esp + 0x48], eax
jle 0x5f082d
mov dword [esp + 0x14], eax
mov esi, dword [edi + 8]
mov ecx, dword [esi + 0x2c]
sub ecx, dword [esi + 0x28]
add esi, 0x1c
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x48], eax
jb 0x5f07bb
call fcn.006441b7
mov ebp, dword [esi + 0xc]
add ebp, dword [esp + 0x14]
cmp dword [ebp], 4
jne 0x5f0817
mov edx, dword [ebp + 0x30]
push 0x16
lea ecx, [ebp + 0x1c]
push str.rfx_pass_texture_remap
push edx
push 0
call fcn.00402330
test eax, eax
jne 0x5f0817
lea esi, [esp + 0x18]
mov eax, ebp
call fcn.005eee50
push 0xffffffffffffffff
push 0
push eax
lea ecx, [edi + 0x14]
mov byte [esp + 0x48], 1
call fcn.00401530
mov byte [esp + 0x3c], 0
cmp dword [esp + 0x30], 0x10
jb 0x5f0817
mov eax, dword [esp + 0x1c]
push eax
call fcn.006441c7
add esp, 4
mov eax, dword [esp + 0x48]
add dword [esp + 0x14], 0x38
inc eax
cmp eax, ebx
mov dword [esp + 0x48], eax
jl 0x5f0791
mov eax, edi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 8
Function at 0x5f2660
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x78deb8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x867e6c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x14]
push eax
call fcn.00428920
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
xor ebx, ebx
push ecx
mov dword [esp + 0x3c], ebx
mov edx, dword [esi + 4]
push edx
lea ecx, [esp + 0x1c]
mov eax, edi
shr eax, 2
push ecx
call fcn.005f08e0
mov esi, eax
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
add esp, 0xc
sar eax, 2
cmp edi, eax
jb 0x5f26cc
mov edi, eax
cmp edi, ebx
je 0x5f26f1
cmp eax, ebx
ja 0x5f26d9
call fcn.006441b7
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp + 0xc]
lea edx, [edi*4]
push edx
push eax
push ecx
call fcn.0064d2b0
add esp, 0xc
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x5f2702
push eax
call fcn.006441c7
add esp, 4
mov edx, dword [esp + 0x14]
push edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.006441c7
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x608570
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x608577
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x608654
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x7a8ee8]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x7a8ee8]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x7a8ee8]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x7a8ee8]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x7a8ee8]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x7a8ee8]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x7a8ee8]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x7a8ee8]
inc ecx
sub edx, 8
sub esi, 1
jne 0x608590
pop edi
test edx, edx
je 0x60867b
jmp 0x608660
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x7a8ee8]
inc ecx
sub edx, 1
jne 0x608660
not eax
pop esi
ret
Function at 0x61cde0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, eax
xor eax, eax
test esi, esi
je 0x61ce33
push ebp
push edi
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov edi, dword [esi + 8]
add edx, dword [ecx]
cmp ebx, edi
jge 0x61ce00
mov edi, ebx
xor ecx, ecx
test edi, edi
jle 0x61ce24
movzx ebx, byte [ecx + edx]
mov ebp, eax
shr ebp, 0x18
xor ebx, ebp
shl eax, 8
xor eax, dword [ebx*4 + 0x86a108]
inc ecx
cmp ecx, edi
jl 0x61ce06
mov ebx, dword [esp + 0x14]
mov esi, dword [esi + 0xc]
sub ebx, ecx
mov dword [esp + 0x14], ebx
test esi, esi
jne 0x61cdf0
pop edi
pop ebp
pop esi
pop ebx
ret

Function at 0x61e4d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push esi
push edi
mov edi, dword [esp + 0x20]
cmp dword [edi + 0x4c], 1
mov esi, dword [edi + 0x1a8]
mov dword [esp + 0x18], esi
jne 0x61e4f7
mov dword [esp + 8], 0x1fe
mov byte [esi + 0x1c], 1
jmp 0x61e503
mov dword [esp + 8], 0
mov byte [esi + 0x1c], 0
mov ecx, dword [edi + 0x64]
mov edx, dword [esp + 8]
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
push ecx
add edx, 0x100
push edx
push 1
push edi
call eax
xor ecx, ecx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
cmp dword [edi + 0x64], ecx
mov dword [esp + 0xc], ecx
jle 0x61e5f9
push ebx
lea edx, [esi + 0x20]
push ebp
mov dword [esp + 0x18], edx
jmp 0x61e54c
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebp, dword [edx]
cdq
idiv ebp
cmp dword [esp + 0x10], 0
mov dword [esp + 0x1c], eax
je 0x61e56d
mov eax, dword [esi + 0x18]
add dword [eax + ecx*4], 0xff
lea eax, [eax + ecx*4]
mov edx, dword [esi + 0x18]
mov edi, dword [edx + ecx*4]
dec ebp
mov ecx, ebp
xor eax, eax
xor ebx, ebx
call fcn.0061e340
mov ecx, eax
xor esi, esi
cmp esi, ecx
jle 0x61e597
inc ebx
mov ecx, ebp
mov eax, ebx
call fcn.0061e340
mov ecx, eax
cmp esi, ecx
jg 0x61e587
mov al, byte [esp + 0x1c]
imul bl
mov byte [esi + edi], al
inc esi
cmp esi, 0xff
jle 0x61e583
cmp dword [esp + 0x10], 0
je 0x61e5dc
mov eax, 1
lea ecx, [edi - 1]
jmp 0x61e5c0
movzx edx, byte [edi]
mov byte [ecx], dl
movzx edx, byte [edi + 0xff]
mov byte [edi + eax + 0xff], dl
inc eax
dec ecx
cmp eax, 0xff
jle 0x61e5c0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
add dword [esp + 0x18], 4
inc eax
cmp eax, dword [ecx + 0x64]
mov dword [esp + 0x14], eax
jl 0x61e540
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x14
ret