joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428d10
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
test ebx, ebx
jne 0x428d31
mov eax, dword [ebp + 0x14]
pop edi
pop esi
pop ebx
mov dword [eax], 1
xor al, al
pop ebp
ret 0x10
push str.SymInitialize
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [ebp + 0x14]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
cmp dword [esi], 0
jne 0x428d5f
mov dword [edi], 2
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
push str.SymCleanup
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
cmp dword [esi + 4], 0
jne 0x428d8c
mov dword [edi], 0xd
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
push str.StackWalk64
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
cmp dword [esi + 8], 0
jne 0x428db9
mov dword [edi], 3
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
push str.SymGetSymFromAddr
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
cmp dword [esi + 0xc], 0
jne 0x428de6
mov dword [edi], 4
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
push str.SymGetModuleInfo64
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
cmp dword [esi + 0x10], 0
jne 0x428e0a
mov dword [edi], 0xe
push str.SymFromAddr
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
cmp dword [esi + 0x1c], 0
jne 0x428e37
mov dword [edi], 0xf
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
mov eax, dword [esi + 0x14]
mov ebx, dword [ebp + 0xc]
cmp eax, ebx
jne 0x428e47
cmp byte [esi + 0x18], 0
jne 0x428ea5
test eax, eax
jne 0x428e6d
mov dword [esi + 0x14], ebx
cmp byte [esi + 0x18], 0
jne 0x428e95
mov eax, dword [esi + 4]
push ebx
call eax
mov eax, dword [esi]
push 1
push 0
push ebx
call eax
test eax, eax
je 0x428e86
mov byte [esi + 0x18], 1
jmp 0x428e95
cmp eax, ebx
je 0x428e4e
cmp byte [esi + 0x18], 0
je 0x428e7d
push eax
mov eax, dword [esi + 4]
call eax
mov dword [esi + 0x14], ebx
mov byte [esi + 0x18], 0
jmp 0x428e54
mov dword [edi], 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
cmp byte [ebp + 0x10], 0
je 0x428ea5
mov al, byte [esi + 0x18]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 0x10
Function at 0x433cc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44176d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x456b38]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
mov eax, esi
mov dword [ebp - 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x433cfc
mov eax, dword [esi]
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
push ecx
push 0x20119
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x433d65
push dword [ebp - 0x10]
call ebx
cmp dword [esi + 0x14], 8
jb 0x433d29
mov esi, dword [esi]
lea eax, [ebp - 0x10]
push eax
push 0x20219
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x433d65
push dword [ebp - 0x10]
call ebx
push dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
call fcn.00403b60
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x800
mov dword [ebp - 0x14], 0
mov dword [ebp + 0x10], 0x400
call fcn.00438ead
mov edi, eax
mov dword [ebp - 0x18], edi
mov ecx, dword [ebp + 0x10]
add ecx, ecx
mov dword [ebp - 4], 0
push ecx
push 0
push edi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp + 0x14]
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x433da5
mov eax, dword [eax]
lea ecx, [ebp + 0x10]
push ecx
push edi
lea ecx, [ebp - 0x14]
push ecx
push 0
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov esi, eax
call ebx
test esi, esi
mov esi, dword [ebp + 8]
je 0x433dd4
push dword [ebp + 0x18]
mov ecx, esi
call fcn.00403b60
jmp 0x433e0a
mov ecx, edi
mov dword [esi], 0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x433df2
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.00402150
test edi, edi
je 0x433e17
push edi
call fcn.00438eb6
add esp, 4
mov eax, esi
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 0x4341c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4341ce
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4341e2
test al, 0x10
jne 0x4341e2
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret
Function at 0x10002cc0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x1006ad74], 0
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
jne 0x10002d7a
xor ebx, ebx
nop dword [eax]
mov edx, ebx
mov eax, ebx
shr eax, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, eax
mov eax, edx
shr edx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, edx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [ebx*4 + 0x1006ad70], eax
inc ebx
cmp ebx, 0x100
jb 0x10002ce0
mov ebx, dword [ebp + 8]
not ebx
mov eax, ebx
test edi, edi
jle 0x10002da6
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1006ad70]
sub edi, 1
jne 0x10002d85
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x10002dd8
nop dword [eax]
cmp cl, 0x23
jne 0x10002dbf
cmp byte [esi], cl
jne 0x10002dbf
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x1006ad70]
test cl, cl
jne 0x10002db0
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x10002f70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x10002f82
mov dword [edi], 0
mov edx, 0x100667d4
call fcn.10002de0
mov esi, eax
test esi, esi
jne 0x10002f96
pop edi
pop esi
pop ebp
ret
push ebx
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10003049
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x10003049
push 0
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10003049
mov eax, dword [0x1006b178]
test eax, eax
je 0x10002fe3
inc dword [eax + 0x394]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
je 0x10003049
push esi
push ebx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, ebx
je 0x10003032
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x1006b178]
add esp, 4
test eax, eax
je 0x1000301f
dec dword [eax + 0x394]
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test edi, edi
je 0x10003041
mov dword [edi], ebx
mov eax, dword [ebp + 8]
pop ebx
pop edi
pop esi
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x10011f40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [0x1006b178]
mov eax, ecx
mov dword [ebp - 8], eax
mov dword [esi + 0x2c2c], 0
test eax, eax
je 0x10012033
push edi
lea edi, [esi + 0x2c30]
mov dword [esi + 0x2c2c], 0
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x10011f94
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.10012d80
mov dword [edi], 0
cmp dword [edi + 4], 0
jne 0x10011fa9
push 8
mov ecx, edi
call fcn.10012d80
mov eax, dword [edi]
mov ecx, dword [edi + 8]
push ebx
mov dword [ebp - 4], 0
mov byte [ecx + eax], 0
inc dword [edi]
cmp dword [esi + 0x2c3c], 0
jle 0x10011fec
xor ebx, ebx
mov eax, dword [esi + 0x2c44]
add eax, ebx
push edi
push eax
push esi
mov eax, dword [eax + 0x10]
call eax
mov eax, dword [ebp - 4]
add esp, 0xc
inc eax
add ebx, 0x18
mov dword [ebp - 4], eax
cmp eax, dword [esi + 0x2c3c]
jl 0x10011fc7
cmp dword [edi + 8], 0
je 0x10011ff7
mov edi, dword [edi]
dec edi
jmp 0x10011ff9
xor edi, edi
mov eax, dword [esi + 0x2c38]
mov ebx, 0x1006b174
mov ecx, dword [ebp - 8]
test eax, eax
mov edx, 0x100667d8
cmovne ebx, eax
call fcn.10002de0
mov esi, eax
test esi, esi
je 0x10012031
push esi
push edi
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100336a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x1006a00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x34], edx
xorps xmm0, xmm0
mov dword [ebp - 0x38], ecx
mov ebx, 0x20000000
mov dword [ebp - 8], esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0xc], esi
movq qword [ebp - 0x14], xmm0
mov dword [ebp - 0x28], ebx
nop dword [eax + eax]
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100337cb
cmp dword [ebp - 0x14], 0x1000
jne 0x100337cb
cmp dword [ebp - 0x10], 1
je 0x100337cb
lea eax, [ebp - 8]
push eax
push 0x40
push dword [ebp - 0x18]
push dword [ebp - 0x24]
call edi
test eax, eax
je 0x100337cb
mov edx, dword [ebp - 0x34]
mov esi, edx
lea ecx, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x10033730
mov eax, dword [ebp - 0x18]
sub esi, ecx
sub eax, esi
mov dword [ebp - 0x3c], eax
je 0x100337b9
mov edi, dword [ebp - 0x38]
mov ecx, edx
sub ecx, dword [ebp - 0x38]
xor eax, eax
sub edi, ebx
mov dword [ebp - 0x40], ecx
xor edx, edx
mov dword [ebp - 0x2c], eax
test esi, esi
je 0x10033795
add eax, ebx
lea ebx, [ecx + edi]
mov dword [ebp - 0x30], eax
cmp byte [ebx + eax], 0x3f
je 0x10033770
mov cl, byte [edi + eax]
cmp cl, byte [eax]
jne 0x1003377e
inc edx
inc eax
cmp edx, esi
jb 0x10033763
mov esi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x28]
jmp 0x10033797
mov eax, dword [ebp - 0x2c]
dec edi
mov ebx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, dword [ebp - 0x3c]
jae 0x100337b3
mov ecx, dword [ebp - 0x40]
xor edx, edx
jmp 0x1003375b
mov esi, ebx
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
mov eax, dword [ebp - 0x18]
push eax
push dword [ebp - 0x24]
call edi
test esi, esi
jne 0x100337dd
jmp 0x100337cb
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
xor esi, esi
push eax
push dword [ebp - 8]
mov eax, dword [ebp - 0x18]
push eax
push dword [ebp - 0x24]
call edi
add ebx, dword [ebp - 0x18]
mov dword [ebp - 0x28], ebx
cmp ebx, 0xa0000000
jb 0x100336e0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003f934
mov esp, ebp
pop ebp
ret
Function at 0x1003f1e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d8
mov eax, dword [0x1006a00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2d8], ecx
push esi
sub eax, 0
je 0x1003f338
sub eax, 1
jne 0x1003f3a6
push ebx
push edi
push str.ntdll
mov dword [0x1006b2dc], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
push edi
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
add esp, 8
lea ebx, [edi + 8]
nop dword [eax + eax]
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movzx esi, al
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movzx eax, al
mov ecx, ebx
or eax, esi
shl eax, cl
or edi, eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov ecx, ebx
movzx eax, al
shl eax, cl
add ebx, 8
or edi, eax
cmp ebx, 0x20
jl 0x1003f240
cmp edi, 0x7fffffff
jbe 0x1003f28e
lea eax, [edi - 0x80000000]
shr eax, 0xc
inc eax
sub edi, 0x1000
sub eax, 1
jne 0x1003f283
push 0
push 0x40
push 0x3e8
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push str.RtlCreateUserThread
push str.ntdll
mov dword [ebp - 0x2d4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
mov esi, eax
lea eax, [ebp - 0x2d4]
push eax
push dword [ebp - 0x2d8]
push edi
push 0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x2d0], 0x10003
push eax
push dword [ebp - 0x2d4]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x220], 0x1003ef20
push eax
push dword [ebp - 0x2d4]
mov dword [ebp - 0x2d0], 0x10003
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [ebp - 0x2d4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop ebx
jmp 0x1003f3a6
push 0x10033500
push 0xfffffffffffffffc
push dword [0x1006b284]
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov dword [0x1006b5a8], 0
call fcn.100206b0
mov esi, dword [0x1006b178]
mov ecx, esi
mov dword [0x1006b5a0], 0
call fcn.10006720
mov eax, dword [0x1006b178]
xor ecx, ecx
cmp eax, esi
cmove eax, ecx
mov dword [0x1006b178], eax
test esi, esi
je 0x1003f3a6
mov ecx, esi
call fcn.10012fe0
mov eax, dword [0x1006b178]
test eax, eax
je 0x1003f39c
dec dword [eax + 0x394]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.1003f934
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10040aa0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10040c50
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10040b6d
mov edx, dword [ebp - 4]
cmp edx, dword [0x1006a014]
jb 0x10040aea
mov eax, dword [ebp - 4]
cmp eax, dword [0x1006a018]
ja 0x10040aea
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10040aba
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10040b10
jmp 0x10040b6d
cmp dword [ebp - 0x14], 0x10000
jne 0x10040b53
cmp dword [ebp - 0x18], 0x10000
jb 0x10040b53
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10040b46
mov eax, dword [ebp - 8]
jmp 0x10040b6f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10040b68
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10040c50
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10040aba
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10040b80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10040c80
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10040c45
mov edx, dword [ebp - 4]
cmp edx, dword [0x1006a014]
jb 0x10040bc5
mov eax, dword [ebp - 4]
cmp eax, dword [0x1006a018]
ja 0x10040bc5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10040b95
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10040beb
jmp 0x10040c45
cmp dword [ebp - 0x14], 0x10000
jne 0x10040c2e
cmp dword [ebp - 0x18], 0x10000
jb 0x10040c2e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10040c21
mov eax, dword [ebp - 8]
jmp 0x10040c47
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10040c40
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10040c80
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10040b95
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10040cb0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100410a0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x1006ad44], 0
jne 0x10040ced
cmp dword [0x1006ad40], 0
je 0x10040ced
mov eax, dword [0x1006ad40]
mov dword [0x1006ad44], eax
cmp dword [0x1006ad44], 0
je 0x10040d6a
mov ecx, dword [0x1006ad44]
cmp dword [ecx + 8], 0
je 0x10040d6a
mov edx, dword [0x1006ad44]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x10040d6a
mov ecx, dword [0x1006ad44]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x10040d6a
mov eax, dword [0x1006ad44]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x10040d39
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x10040d40
xor eax, eax
jmp 0x10040e89
mov ecx, dword [0x1006ad44]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x10040e89
mov edx, dword [0x1006ad40]
mov dword [0x1006ad44], edx
jmp 0x10040d86
mov eax, dword [0x1006ad44]
mov ecx, dword [eax + 4]
mov dword [0x1006ad44], ecx
cmp dword [0x1006ad44], 0
je 0x10040dc6
cmp dword [0x1006ad44], 0
je 0x10040dc4
mov edx, dword [0x1006ad44]
cmp dword [edx + 8], 0
je 0x10040dc4
mov eax, dword [0x1006ad44]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x10040dc4
mov edx, dword [0x1006ad44]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x10040dc4
jmp 0x10040d1e
jmp 0x10040d78
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10040e90
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10040e87
mov eax, dword [ebp - 0x18]
mov dword [0x1006ad44], eax
mov ecx, dword [0x1006ad44]
mov dword [ecx], 0x52727464
mov edx, dword [0x1006ad44]
mov dword [edx + 8], 0
mov eax, dword [0x1006ad44]
mov ecx, dword [0x1006ad40]
mov dword [eax + 4], ecx
mov edx, dword [0x1006ad44]
mov dword [0x1006ad40], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x1006ad44]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x10040e57
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x10040e77
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x10040e4e
mov eax, dword [0x1006ad44]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x10040d1e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4054c0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, 0x270
cmp dword [esi], edi
jne 0x405508
lea edx, [esi + 8]
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x4054d0
jmp 0x405515
cmp dword [esi], 0x4e0
jb 0x405515
call fcn.0040554f
mov eax, dword [esi]
pop edi
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
pop esi
ret

Function at 0x40554f
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, 0xe3
push edi
lea edi, [esi + 0x9c4]
mov ebx, dword [edi]
mov eax, ebx
lea edx, [edi]
mov ecx, eax
lea edi, [edx + 4]
mov ebx, dword [edi]
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x634]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub ebp, 1
jne 0x405562
lea edi, [esi + 0xd50]
mov ebp, 0x18c
mov ebx, dword [edi]
mov eax, ebx
lea edx, [edi]
mov ecx, eax
lea edi, [edx + 4]
mov ebx, dword [edi]
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx - 0xd4c]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub ebp, 1
jne 0x4055a9
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
and dword [esi], ebp
and eax, 0x9908b0df
shr ecx, 1
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
pop esi
pop ebp
pop ebx
ret