joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001774a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1006c040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x10126bc8]
mov ecx, dword [0x100b1588]
mov dword [ebp - 0x14], ecx
push edi
mov eax, dword [esi + 0x3e48]
mov edi, ecx
movss xmm0, dword [eax + 0x1c]
movss xmm2, dword [eax + 0x20]
mov byte [eax + 0xac], 1
mov eax, dword [esi + 0x3e48]
subss xmm0, dword [0x10067520]
subss xmm2, dword [0x1006750c]
movss xmm1, dword [eax + 0x14]
subss xmm1, dword [eax + 0x78]
addss xmm1, xmm0
movss xmm0, dword [eax + 0x18]
subss xmm0, dword [eax + 0x7c]
mov byte [eax + 0x135], 1
movss dword [eax + 0xf0], xmm1
addss xmm0, xmm2
movss dword [eax + 0xf4], xmm0
test ecx, ecx
jne 0x100176ae
mov ecx, dword [esi + 0x54]
mov edi, ecx
test ecx, ecx
jne 0x100176ab
mov eax, dword [esi + 0x48]
mov eax, dword [eax + 0x44]
mov ecx, dword [eax]
mov edi, ecx
mov dword [ebp - 0x14], ecx
call fcn.10025a90
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi + 0x4770]
call fcn.100312c0
mov eax, dword [esi + 0x3e48]
mov ebx, dword [eax + 0x26c]
mov eax, dword [edi + 0x30]
mov edi, dword [ebx + 0x4c]
mov ecx, dword [eax + 4]
mov eax, dword [ebx + 0x48]
mov dword [ebp - 0x14], ecx
cmp eax, edi
jne 0x10017709
lea ecx, [eax + 1]
test edi, edi
je 0x100176f3
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x100176f8
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
lea ecx, [ebx + 0x48]
call fcn.10031170
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebx + 0x48]
mov eax, dword [ebx + 0x50]
mov dword [eax + edx*4], ecx
inc dword [ebx + 0x48]
mov dword [ebx + 0x70], ecx
mov ecx, ebx
call fcn.10039ba0
call fcn.100295c0
mov eax, dword [0x10126c04]
cmp eax, 3
ja case.default.0x1001772e
jmp dword [eax*4 + 0x100177b8]
call fcn.10015dd0
jmp case.default.0x1001772e
call fcn.100162d0
jmp case.default.0x1001772e
call fcn.10016660
jmp case.default.0x1001772e
mov dword [ebp - 0x18], 0x438c0000
xor ecx, ecx
mov dword [ebp - 0x14], 0x43c30000
mov dword [ebp - 0x10], 0xfbddaeaf
mov dword [ebp - 0xc], 0xf4f7e5
mov byte [ebp - 8], 1
nop dword [eax]
lea eax, [ecx - 0x74]
xor byte [ebp + ecx - 0x10], al
inc ecx
cmp ecx, 7
jb 0x10017770
sub esp, 8
mov byte [ebp - 8], 0
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x10]
call fcn.100206a0
add esp, 8
call fcn.10015c10
call fcn.10020720
call fcn.100296f0
call fcn.10025b30
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005b824
mov esp, ebp
pop ebp
ret
Function at 0x10018050
Capabilities:
Create thread
Get disk information
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005e24e
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x1006c040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 1
mov dword [ebp - 0x68], 0
jne 0x100181ce
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x64]
mov dword [ebp - 4], 0
push eax
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x4c], 0
push 0
movups xmmword [ebp - 0x5c], xmm0
push 0x1005fc78
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
mov dword [ebp - 0x68], 1
mov dword [ebp - 0x64], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [ebp - 0x64]
lea esi, [ebp - 0x13]
mov dword [ebp - 0x60], ecx
nop dword [eax]
mov eax, 0xcccccccd
dec esi
mul ecx
shr edx, 3
mov al, dl
mov cl, dl
shl al, 2
add cl, al
mov eax, dword [ebp - 0x60]
add cl, cl
sub al, cl
mov ecx, edx
add al, 0x30
mov byte [esi], al
mov eax, edx
mov dword [ebp - 0x60], eax
test eax, eax
jne 0x100180e0
push ecx
lea eax, [ebp - 0x13]
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.10002490
movups xmm0, xmmword [ebp - 0x40]
sub esp, 0x18
mov dword [ebp - 0x68], 7
lea eax, [ebp - 0x5c]
mov ecx, esp
movups xmmword [ebp - 0x5c], xmm0
movq xmm0, qword [ebp - 0x30]
push eax
movq qword [ebp - 0x4c], xmm0
call fcn.100021f0
call fcn.10011670
add esp, 0x18
test al, al
je 0x100181ef
push 0x64
push 0x232
call dword [sym.imp.KERNEL32.dll_Beep]
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x10017fe0
push 0
push 0
call esi
mov ecx, 0x10017fe0
call fcn.1000b010
push 0
push 0
push 0
push 0x10011600
push 0
push 0
call esi
mov ecx, 0x10011600
call fcn.1000b010
mov ecx, dword [ebp - 0x48]
cmp ecx, 0xf
jbe 0x100181ce
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100181c4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100181c4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1005b862
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005b824
mov esp, ebp
pop ebp
ret 0xc
movaps xmm0, xmmword [0x10067c00]
lea ecx, [ebp - 0x44]
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 0xc8c1c0e8
mov dword [ebp - 0x30], 0xea89d7c1
mov dword [ebp - 0x2c], 0x100cdc7
call fcn.10018250
movaps xmm0, xmmword [0x10067b20]
lea ecx, [ebp - 0x28]
mov esi, eax
mov word [ebp - 0x18], 0x100
movups xmmword [ebp - 0x28], xmm0
call fcn.100162a0
push 0x10
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x10018250
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x1b], 0
je 0x10018272
xor eax, eax
nop dword [eax + eax]
lea edx, [esi + eax]
lea ecx, [eax - 0x70]
inc eax
xor byte [edx], cl
cmp eax, 0x1a
jb 0x10018260
mov byte [esi + 0x1b], 0
mov eax, esi
pop esi
ret
Function at 0x1001b060
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x1001b0c1
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x1001b0a4
cmp edi, 2
jb 0x1001b0a4
cmp byte [esi], cl
jne 0x1001b0a4
cmp byte [esi + 1], cl
jne 0x1001b0a4
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10060358]
jmp 0x1001b075
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10060358]
test edi, edi
jne 0x1001b075
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x1001b0f0
cmp cl, 0x23
jne 0x1001b0d7
cmp byte [esi], cl
jne 0x1001b0d7
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 + 0x10060358]
test cl, cl
jne 0x1001b0c8
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x1001b200
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x1001b214
mov dword [ebx], 0
mov edx, 0x1006536c
call fcn.1001b100
mov esi, eax
test esi, esi
je 0x1001b302
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call edi
add esp, 4
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x1001b2f8
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 0x1001b2f8
push esi
call edi
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
je 0x1001b2f8
push 0
push dword [ebp - 4]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1001b2f8
mov eax, dword [0x10126bc8]
test eax, eax
je 0x1001b28c
inc dword [eax + 0xb4]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x1001b2f8
push esi
push dword [ebp + 8]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, dword [ebp + 8]
je 0x1001b2dd
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x10126bc8]
add esp, 4
test eax, eax
je 0x1001b2ca
dec dword [eax + 0xb4]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test ebx, ebx
je 0x1001b2ef
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001d400
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov edx, ecx
push esi
push edi
lea esi, [ebp - 0x14]
mov edi, 0x10
movss xmm1, dword [edx + 0x100]
movss xmm0, dword [eax]
movss xmm2, dword [edx + 0x104]
subss xmm0, xmm1
mov ecx, dword [edx + 0xe4]
movss dword [ebp - 0x14], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, xmm2
movss dword [ebp - 0x10], xmm0
movss xmm0, dword [eax + 8]
subss xmm0, xmm1
movss dword [ebp - 0xc], xmm0
movss xmm0, dword [eax + 0xc]
mov eax, dword [edx + 0xec]
subss xmm0, xmm2
mov edx, dword [eax + ecx*4 - 4]
movss dword [ebp - 8], xmm0
not edx
nop
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x10060358]
sub edi, 1
jne 0x1001d470
not edx
pop edi
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10020960
Capabilities:
Hash data with crc32

Disassembly:
mov eax, ecx
or ecx, 0xffffffff
push ebx
push esi
mov bl, byte [eax]
lea esi, [eax + 1]
test bl, bl
je 0x1002099d
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x10020983
cmp byte [esi], bl
jne 0x10020983
cmp byte [esi + 1], bl
cmove ecx, edi
movzx edx, cl
movzx eax, bl
mov bl, byte [esi]
xor edx, eax
shr ecx, 8
inc esi
xor ecx, dword [edx*4 + 0x10060358]
test bl, bl
jne 0x10020974
pop edi
pop esi
not ecx
pop ebx
jmp fcn.10020900
Function at 0x10025fe0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10126bc8]
lea edx, [ebp - 4]
push ebx
push esi
push edi
mov eax, dword [eax + 0x3e48]
mov esi, 4
mov ebx, dword [eax + 0xec]
lea edi, [eax + 0xe4]
mov dword [ebp - 8], eax
mov eax, dword [edi]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
mov ebx, dword [ebx + eax*4 - 4]
not ebx
nop dword [eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x10060358]
sub esi, 1
jne 0x10026020
mov eax, dword [ebp - 8]
not ebx
mov eax, dword [eax]
cmp dword [eax + 0x3e7c], ebx
jne 0x1002605a
push ecx
push dword [ebp - 0xc]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.10030950
add esp, 8
mov ecx, dword [edi + 4]
mov esi, dword [edi]
cmp esi, ecx
jne 0x10026085
inc esi
test ecx, ecx
je 0x10026073
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x10026078
mov eax, 8
cmp eax, esi
mov ecx, edi
cmovg esi, eax
push esi
call fcn.10031170
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov dword [eax + ecx*4], ebx
inc dword [edi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002f3c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x5aac], 0
lea esi, [edi + 0x5ab0]
je 0x1002f442
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x1002f3fc
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, esi
call fcn.100314f0
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.1001b830
mov edx, dword [esi]
mov ecx, 0x10126bd8
push dword [edi + 0x5aac]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x5ab8]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.1001b830
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1002f830
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
push edi
mov edi, dword [0x10126bc8]
test bl, bl
je 0x1002f876
or edi, 0xffffffff
cmp bl, 0x23
jne 0x1002f857
cmp byte [esi], bl
jne 0x1002f857
cmp byte [esi + 1], bl
cmove eax, edi
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x10060358]
test bl, bl
jne 0x1002f848
mov edi, dword [0x10126bc8]
mov esi, dword [edi + 0x5a54]
xor ecx, ecx
not eax
test esi, esi
jle 0x1002f89c
mov edi, dword [edi + 0x5a5c]
lea edx, [edi + 4]
nop dword [eax]
cmp dword [edx], eax
je 0x1002f8a2
inc ecx
add edx, 0x24
cmp ecx, esi
jl 0x1002f890
pop edi
pop esi
xor eax, eax
pop ebx
ret
lea eax, [ecx + ecx*8]
lea eax, [edi + eax*4]
pop edi
pop esi
pop ebx
ret
Function at 0x10039900
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1003993a
mov eax, dword [0x10126bc8]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x1003992d
dec dword [eax + 0xb4]
push ecx
call edi
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x1003996b
mov eax, dword [0x10126bc8]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x1003995e
dec dword [eax + 0xb4]
push ecx
call edi
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x1003999c
mov eax, dword [0x10126bc8]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x1003998f
dec dword [eax + 0xb4]
push ecx
call edi
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x100399e9
mov eax, dword [0x10126bc8]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x100399dc
dec dword [eax + 0xb4]
push ecx
call edi
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x10039a1a
mov eax, dword [0x10126bc8]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x10039a0d
dec dword [eax + 0xb4]
push ecx
call edi
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x10039a4b
mov eax, dword [0x10126bc8]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x10039a3e
dec dword [eax + 0xb4]
push ecx
call edi
add esp, 4
mov dword [esi + 0x5c], 0
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.1003c610
Function at 0x10058ce0
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.10058eb0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10058dbd
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x10058d2a
mov eax, dword [ebp - 4]
cmp eax, dword [0x1006c004]
ja 0x10058d2a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10058cfa
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 sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x10058d4f
jmp 0x10058dbd
cmp dword [ebp - 0x14], 0x10000
jne 0x10058da3
cmp dword [ebp - 0x18], 0x10000
jb 0x10058da3
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10058d86
mov eax, dword [ebp - 8]
jmp 0x10058dbf
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x10058d96
xor eax, eax
jmp 0x10058dbf
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10058db8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10058eb0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10058cfa
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10058dd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10058ee0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10058ea5
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x10058e15
mov eax, dword [ebp - 4]
cmp eax, dword [0x1006c004]
ja 0x10058e15
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10058de5
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 sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x10058e3a
jmp 0x10058ea5
cmp dword [ebp - 0x14], 0x10000
jne 0x10058e8e
cmp dword [ebp - 0x18], 0x10000
jb 0x10058e8e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10058e71
mov eax, dword [ebp - 8]
jmp 0x10058ea7
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x10058e81
xor eax, eax
jmp 0x10058ea7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10058ea0
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10058ee0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10058de5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10058f10
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.10059300
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x100b11a4], 0
jne 0x10058f4d
cmp dword [0x100b11a0], 0
je 0x10058f4d
mov eax, dword [0x100b11a0]
mov dword [0x100b11a4], eax
cmp dword [0x100b11a4], 0
je 0x10058fca
mov ecx, dword [0x100b11a4]
cmp dword [ecx + 8], 0
je 0x10058fca
mov edx, dword [0x100b11a4]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x10058fca
mov ecx, dword [0x100b11a4]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x10058fca
mov eax, dword [0x100b11a4]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x10058f99
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x10058fa0
xor eax, eax
jmp 0x100590e9
mov ecx, dword [0x100b11a4]
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 0x100590e9
mov edx, dword [0x100b11a0]
mov dword [0x100b11a4], edx
jmp 0x10058fe6
mov eax, dword [0x100b11a4]
mov ecx, dword [eax + 4]
mov dword [0x100b11a4], ecx
cmp dword [0x100b11a4], 0
je 0x10059026
cmp dword [0x100b11a4], 0
je 0x10059024
mov edx, dword [0x100b11a4]
cmp dword [edx + 8], 0
je 0x10059024
mov eax, dword [0x100b11a4]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x10059024
mov edx, dword [0x100b11a4]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x10059024
jmp 0x10058f7e
jmp 0x10058fd8
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.100590f0
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x100590e7
mov eax, dword [ebp - 0x18]
mov dword [0x100b11a4], eax
mov ecx, dword [0x100b11a4]
mov dword [ecx], 0x52727464
mov edx, dword [0x100b11a4]
mov dword [edx + 8], 0
mov eax, dword [0x100b11a4]
mov ecx, dword [0x100b11a0]
mov dword [eax + 4], ecx
mov edx, dword [0x100b11a4]
mov dword [0x100b11a0], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x100b11a4]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x100590b7
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x100590d7
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 0x100590ae
mov eax, dword [0x100b11a4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x10058f7e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10059e30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100b11a0]
mov dword [ebp - 4], eax
jmp 0x10059e49
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10059e70
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x10059e6e
call sub.KERNEL32.dll_GetLastError
jmp 0x10059e72
jmp 0x10059e40
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1005a310
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x100b11b0], eax
je 0x1005a32d
mov eax, 0x10dd
jmp 0x1005a410
mov eax, dword [0x100b11c0]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1005a3ac
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 sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1005a388
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1005a388
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10059390
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
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.1005b862
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x1005a335
mov dword [0x100b11c0], 0
call fcn.10059c70
mov ecx, dword [0x100b11bc]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1005a3fa
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.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
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1005b862
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x1005a3c4
mov dword [0x100b11bc], 0
mov dword [0x100b11b0], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1005a8f0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x100b11b4], 0
je 0x1005a909
mov eax, dword [0x100b11b4]
jmp 0x1005a9a8
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1005a91a
xor eax, eax
jmp 0x1005a9a8
push 8
call fcn.1005b832
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1005a972
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1005a95b
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.1005b862
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x100b11b4], eax
mov dword [0x100b11b8], 0
mov eax, dword [ebp - 8]
jmp 0x1005a9a8
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1005a98a
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1005a93a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x100b11bc]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x100b11bc], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4