joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100019a0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x100019b5
xor eax, eax
jmp 0x10001a2a
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
add edx, 0x10000
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x100019e2
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x38d
jae 0x10001a25
mov edx, dword [ebp - 4]
imul edx, edx, 0x48
mov eax, dword [ebp - 8]
cmp dword [eax + edx + 0x40], 0
je 0x10001a23
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 0xc]
jb 0x10001a1f
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 0x10]
jb 0x10001a23
xor eax, eax
jmp 0x10001a2a
jmp 0x100019d9
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x10001bf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x101943ec]
mov dword [ebp - 4], eax
jmp 0x10001c09
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10001c26
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x10001c00
mov esp, ebp
pop ebp
ret
Function at 0x10002070
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x101943fc], eax
je 0x1000208e
mov eax, 0x10dd
jmp 0x1000216f
mov eax, dword [0x1019440c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000210c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x100020ea
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x100020ea
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10001710
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.1006538c
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10002096
mov dword [0x1019440c], 0
call fcn.10001a30
mov ecx, dword [0x10194408]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10002159
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1006538c
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x10002124
mov dword [0x10194408], 0
mov dword [0x101943fc], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10002660
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10194400], 0
je 0x10002679
mov eax, dword [0x10194400]
jmp 0x10002719
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x1000268b
xor eax, eax
jmp 0x10002719
push 8
call fcn.10064a92
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100026e1
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x100026ca
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.1006538c
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x10194400], eax
mov dword [0x10194404], 0
mov eax, dword [ebp - 8]
jmp 0x10002719
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x100026fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x100026ab
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x10194408]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x10194408], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x10002720
Capabilities:
Encrypt data using rc4 prga
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100b8ce8
push 0x10066ae0
mov eax, dword fs:[0]
push eax
add esp, 0xffffffc8
push ebx
push esi
push edi
mov eax, dword [0x100bc570]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
cmp dword [ebp + 8], 0
jne 0x1000276a
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x100027a0
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x30]
jmp 0x1000292b
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx], 0x4550
je 0x100027d8
push 0xbf
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x34]
jmp 0x1000292b
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax + 0x14]
test ecx, ecx
jne 0x10002804
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x38]
jmp 0x1000292b
mov edx, dword [ebp - 0x24]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x1c], 0
jmp 0x10002827
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x24]
movzx edx, word [ecx + 6]
cmp dword [ebp - 0x1c], edx
jae 0x100028d6
push str..detour
mov eax, dword [ebp - 0x1c]
imul eax, eax, 0x28
add eax, dword [ebp - 0x2c]
push eax
call fcn.10078150
add esp, 8
test eax, eax
jne 0x100028d1
mov ecx, dword [ebp - 0x1c]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x2c]
cmp dword [edx + ecx + 0xc], 0
je 0x10002872
mov eax, dword [ebp - 0x1c]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + eax + 0x10], 0
jne 0x10002874
jmp 0x100028d6
mov edx, dword [ebp - 0x1c]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
add ecx, dword [eax + edx + 0xc]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0x40
jb 0x100028a1
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 4], 0x727444
je 0x100028a3
jmp 0x100028d6
mov edx, dword [ebp - 0x20]
cmp dword [edx + 8], 0
jne 0x100028b7
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov dword [eax + 8], edx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x40]
jmp 0x1000292b
jmp 0x1000281e
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x44]
jmp 0x1000292b
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10002e10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0x678
jne 0x10002e31
mov edx, dword [ebp - 4]
mov eax, dword [edx]
cmp eax, dword [ebp + 0xc]
jbe 0x10002e43
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10002f8b
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x18]
push ecx
push 0x40
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10002f88
lea eax, [ebp - 0x10]
push eax
push 0x40
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10002f6c
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x1c
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10065e70
add esp, 0xc
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 4]
add eax, 0x5c
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x14]
push edx
call fcn.10065e70
add esp, 0xc
mov eax, dword [ebp - 4]
cmp dword [eax + 0x18], 0
je 0x10002f49
lea ecx, [ebp - 0xc]
push ecx
push 0x40
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10002f47
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 4]
add edx, 0x664
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
push ecx
call fcn.10065e70
add esp, 0xc
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 8], 1
jmp 0x10002f50
mov dword [ebp - 8], 1
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8
Function at 0x10004940
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push edi
mov edi, dword [ebp + 0x10]
push eax
push 0x40
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp + 0xc]
sub eax, esi
mov byte [esi], 0xe9
sub eax, 5
mov dword [esi + 1], eax
cmp edi, 5
jbe 0x10004982
lea eax, [edi - 5]
push eax
lea eax, [esi + 5]
push 0x90
push eax
call fcn.100663f0
add esp, 0xc
push 0x100c0230
push dword [ebp - 4]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100049a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push 0x100c0230
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push dword [ebp + 0xc]
push edi
call fcn.10065e70
add esp, 0xc
push 0
push dword [0x100c0230]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop ebx
pop ebp
ret

Function at 0x10006640
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push str.xxxxxxx
push 0x10091534
call fcn.10008880
add esp, 8
mov dword [0x100c0254], eax
test eax, eax
je 0x10006683
lea ecx, [ebp - 4]
push ecx
push 0x40
push 5
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 5
push 0x10006350
push dword [0x100c0254]
call fcn.1005ed60
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x1000fa00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008dad0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100bc570]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push 8
mov dword [ebx], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10064a92
mov esi, eax
add esp, 4
test esi, esi
je 0x1000fa59
push 1
mov dword [ebp - 4], 0
call fcn.10063c8f
add esp, 4
mov dword [esi + 4], eax
jmp 0x1000fa5b
xor esi, esi
mov ecx, ebx
mov dword [ebx + 0x34], esi
call fcn.1001ee90
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
lea esi, [eax + 8]
lea ebx, [eax + 4]
mov dword [eax + 0x2c], edx
mov dword [eax + 0xc], ebx
lea edi, [eax + 0x14]
mov dword [eax], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [eax + 0x48], 0
mov byte [eax + 0x3d], 0
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x4c], 0
mov eax, dword [0x100c03ac]
mov ecx, dword [0x100c03b0]
mov dword [edx + 0x40], eax
mov eax, edx
mov dword [edx + 0x44], ecx
mov dword [edx + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001d910
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008e110
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x100bc570]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x101943e8]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov esi, eax
test esi, esi
je 0x1001da37
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, 0x6d8
nop
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1001da05
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1001da05
cmp byte [eax], 0xfd
jne 0x1001da05
push 0
push ecx
push eax
lea ecx, [ebp - 0x124]
call fcn.10004190
push 8
lea ecx, [ebp - 0x124]
mov dword [ebp - 4], 0
call fcn.100042e0
push 1
push 0x10
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x124]
call fcn.10004350
cmp word [ebp - 0x128], bx
je 0x1001d9e2
push 7
call fcn.1001e330
mov eax, 0x10057c90
add eax, 0x211
push 0x211
push eax
call fcn.1000cc20
add esp, 0xc
jmp 0x1001d9f3
push 0
push 0
push 0
push 0x1001e940
push 0
push 0
call edi
lea ecx, [ebp - 0x124]
mov dword [ebp - 4], 0xffffffff
call fcn.10004240
push esi
call fcn.10040a00
add esp, 4
test al, al
jne 0x1001da35
mov eax, dword [0x101943e8]
push esi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x24]
mov eax, dword [0x101943e8]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov esi, eax
test esi, esi
jne 0x1001d960
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10064a7b
mov esp, ebp
pop ebp
ret
Function at 0x100200d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008e3ad
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x100bc570]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.10064a92
mov edi, eax
add esp, 4
test edi, edi
je 0x1002016d
push 1
mov dword [ebp - 4], 0
call fcn.10063c8f
add esp, 4
mov dword [edi + 4], eax
jmp 0x1002016f
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.1000f870
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x20]
mov ecx, eax
call edx
mov dword [ebp - 4], 0xffffffff
mov bl, al
test edi, edi
je 0x100201ca
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x100201ca
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x100201e6
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x10020209
cmp byte [ebp + 0xc], 0
je 0x100201f5
push esi
call fcn.10064124
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x10020215
mov esi, str.ios_base::badbit_set
jmp 0x10020225
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.100202b0
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.100105e0
push 0x100b7304
lea eax, [ebp - 0x28]
push eax
call fcn.100665cc
int3
Function at 0x100314e0
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x100bc570]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x100cca0d], 0
jne 0x10031684
mov byte [0x100cca0d], 1
xor ecx, ecx
mov byte [ebp - 0x18], 0x65
mov byte [ebp - 0x17], 0x66
mov byte [ebp - 0x16], 0x63
mov byte [ebp - 0x15], 0x76
mov byte [ebp - 0x14], 0x68
mov byte [ebp - 0x13], 0x3b
mov byte [ebp - 0x12], 0x3b
mov byte [ebp - 0x11], 0x74
mov byte [ebp - 0x10], 0x62
mov byte [ebp - 0xf], 0x62
mov byte [ebp - 0xe], 0x33
mov byte [ebp - 0xd], 0x3b
mov byte [ebp - 0xc], 0x3b
mov byte [ebp - 0xb], 0x6a
mov byte [ebp - 0xa], 0x6f
mov byte [ebp - 9], 0x6a
mov byte [ebp - 8], 0x75
mov byte [ebp - 7], 0
mov al, byte [ebp - 0x18]
mov al, byte [ebp + ecx - 0x18]
dec al
mov byte [ebp + ecx - 0x18], al
inc ecx
cmp ecx, 0x11
jb 0x10031551
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.100407f0
add esp, 4
push 0x100cc908
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x10093ba0
push 0x100919d0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp byte [0x100cca0e], 0
mov esi, eax
mov dword [0x100cca10], esi
jne 0x100315e9
lea eax, [ebp - 0x3c]
mov byte [0x100cca0e], 1
push eax
push 0x40
push 5
push esi
mov byte [0x100cca0f], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [0x100cca18], eax
mov eax, 0x10030b10
sub eax, esi
mov byte [esi], 0xe9
sub eax, 5
mov dword [0x100cca1c], ecx
mov dword [esi + 1], eax
mov esi, dword [0x100cca10]
mov byte [ebp - 0x38], 0x6f
xor ecx, ecx
mov byte [ebp - 0x37], 0x70
mov byte [ebp - 0x36], 0x6d
mov byte [ebp - 0x35], 0x80
mov byte [ebp - 0x34], 0x72
mov byte [ebp - 0x33], 0x45
mov byte [ebp - 0x32], 0x45
mov byte [ebp - 0x31], 0x7e
mov byte [ebp - 0x30], 0x6c
mov byte [ebp - 0x2f], 0x6c
mov byte [ebp - 0x2e], 0x3d
mov byte [ebp - 0x2d], 0x45
mov byte [ebp - 0x2c], 0x45
mov byte [ebp - 0x2b], 0x74
mov byte [ebp - 0x2a], 0x79
mov byte [ebp - 0x29], 0x74
mov byte [ebp - 0x28], 0x7f
mov byte [ebp - 0x27], 0x45
mov byte [ebp - 0x26], 0x45
mov byte [ebp - 0x25], 0x71
mov byte [ebp - 0x24], 0x74
mov byte [ebp - 0x23], 0x79
mov byte [ebp - 0x22], 0x74
mov byte [ebp - 0x21], 0x7e
mov byte [ebp - 0x20], 0x73
mov byte [ebp - 0x1f], 0x45
mov byte [ebp - 0x1e], 0x45
mov byte [ebp - 0x1d], 0x30
mov byte [ebp - 0x1c], 0x83
mov byte [ebp - 0x1b], 0
mov al, byte [ebp - 0x38]
mov al, byte [ebp + ecx - 0x38]
sub al, 0xb
mov byte [ebp + ecx - 0x38], al
inc ecx
cmp ecx, 0x1d
jb 0x10031666
lea eax, [ebp - 0x38]
push esi
push eax
call fcn.100407f0
add esp, 8
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10064a7b
mov esp, ebp
pop ebp
ret
Function at 0x100316a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100bc570]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x100cca0d], 0
je 0x10031762
cmp byte [0x100cca0f], 0
mov byte [0x100cca0d], 0
jne 0x100316f1
mov eax, dword [0x100cca10]
mov ecx, dword [0x100cca18]
mov edx, dword [0x100cca1c]
mov byte [0x100cca0f], 1
mov byte [0x100cca0e], 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov byte [ebp - 0x18], 0x6e
xor ecx, ecx
mov byte [ebp - 0x17], 0x6f
mov byte [ebp - 0x16], 0x6c
mov byte [ebp - 0x15], 0x7f
mov byte [ebp - 0x14], 0x71
mov byte [ebp - 0x13], 0x44
mov byte [ebp - 0x12], 0x44
mov byte [ebp - 0x11], 0x7d
mov byte [ebp - 0x10], 0x6b
mov byte [ebp - 0xf], 0x6b
mov byte [ebp - 0xe], 0x3c
mov byte [ebp - 0xd], 0x44
mov byte [ebp - 0xc], 0x44
mov byte [ebp - 0xb], 0x7f
mov byte [ebp - 0xa], 0x78
mov byte [ebp - 9], 0x76
mov byte [ebp - 8], 0x79
mov byte [ebp - 7], 0x6b
mov byte [ebp - 6], 0x6e
mov byte [ebp - 5], 0
mov al, byte [ebp - 0x18]
mov al, byte [ebp + ecx - 0x18]
sub al, 0xa
mov byte [ebp + ecx - 0x18], al
inc ecx
cmp ecx, 0x13
jb 0x10031746
lea eax, [ebp - 0x18]
push eax
call fcn.100407f0
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10064a7b
mov esp, ebp
pop ebp
ret
Function at 0x10031a00
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100bc570]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
call fcn.10031d90
cmp eax, 1
je 0x10031a3f
cmp eax, 4
je 0x10031a3f
push 0
push 0x10091994
push str.Unsupported_GTA:SA_n
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, esi
mov dword [ebp - 0xc], 0
xorps xmm0, xmm0
mov dword [ebp - 8], 0
movups xmmword [ebp - 0x1c], xmm0
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10031a60
push ebx
push edi
sub eax, edx
lea ecx, [ebp - 0x1c]
push eax
push esi
call fcn.100049e0
mov ecx, 0x100bbdf4
call fcn.10004fc0
mov esi, dword [0x1018c600]
mov ebx, 0x10031b70
movups xmm0, xmmword [ebp - 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub ebx, esi
sub ebx, 0xf
mov dword [ebp - 0x14], 0xd8964
mov eax, ebx
mov dword [ebp - 0x10], 0x83000000
sar eax, 8
movups xmmword [0x100bbdf4], xmm0
movq xmm0, qword [ebp - 0xc]
mov byte [ebp - 8], al
mov eax, ebx
sar eax, 0x10
mov byte [ebp - 7], al
lea eax, [ebp - 0x24]
push eax
push 0x40
push 0xf
mov byte [ebp - 9], bl
push esi
movq qword [0x100bbe04], xmm0
mov word [ebp - 0xc], 0x10c4
mov byte [ebp - 0xa], 0xe9
sar ebx, 0x18
call edi
movq xmm0, qword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
movq qword [esi], xmm0
mov dword [esi + 8], eax
mov ax, word [ebp - 8]
mov word [esi + 0xc], ax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
mov byte [esi + 0xe], bl
push 0xf
push esi
call edi
mov esi, dword [0x1018c604]
lea eax, [ebp - 0x24]
push eax
push 0x40
push 5
push esi
call edi
mov dword [esi], 0x90909090
mov byte [esi + 4], 0x90
mov eax, dword [0x1018c608]
mov dword [eax], 0x100dc980
lea eax, [ebp - 0x24]
mov esi, dword [0x1018c60c]
push eax
push 0x40
push 5
push esi
call edi
mov ecx, dword [ebp - 4]
mov dword [esi], 0x90909090
xor ecx, ebp
mov byte [esi + 4], 0x90
mov eax, dword [0x1018c610]
pop edi
pop ebx
pop esi
mov dword [eax], 0x100dc980
call fcn.10064a7b
mov esp, ebp
pop ebp
ret

Function at 0x10031e50
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.10031e60

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

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.100320f0