joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002d70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x10038014]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, edx
mov eax, 2
cmp edi, eax
jbe 0x10002ec5
mov esi, dword [0x10039e1c]
nop dword [eax + eax]
cmp byte [esi + eax], 0x7c
lea ebx, [eax + 1]
je 0x10002db4
mov eax, ebx
cmp eax, edi
jb 0x10002da0
jmp 0x10002ecb
add eax, 0xfffffffe
xorps xmm0, xmm0
push eax
lea eax, [esi + 2]
push eax
lea eax, [ebp - 0x28]
push eax
movups xmmword [ebp - 0x28], xmm0
movups xmmword [ebp - 0x18], xmm0
call fcn.1000d330
add esp, 0xc
lea eax, [ebp - 0x28]
push 0xa
push 0
push eax
call fcn.100126ca
mov edx, eax
add esp, 0xc
mov dword [ebp - 0x2c], edx
test edx, edx
je 0x10002ec5
sub edi, ebx
xor esi, esi
test edi, edi
jle 0x10002e27
nop dword [eax + eax]
mov ecx, dword [0x10039e1c]
mov eax, edi
push 0
add ecx, ebx
sub eax, esi
push eax
add ecx, esi
push ecx
push edx
call dword [0x10039d0c]
cmp eax, 0xffffffff
je 0x10002e78
mov edx, dword [ebp - 0x2c]
add esi, eax
cmp esi, edi
jl 0x10002e00
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push 0
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x34]
push eax
push 4
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], 0
push eax
push dword [0x10038ab8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10002eec
call esi
push eax
push ecx
mov edx, str.err_while_writing_to_file2
mov ecx, 0x10039d18
call fcn.10006bf0
add esp, 4
mov ecx, eax
call fcn.10004440
jmp 0x10002ee3
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push 0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x2c]
push eax
push 4
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], 0
push eax
push dword [0x10038ab8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10002eec
call esi
push eax
push ecx
mov edx, str.err_while_writing_to_file1
mov ecx, 0x10039d18
call fcn.10006bf0
add esp, 4
mov ecx, eax
call fcn.10004440
jmp 0x10002ee3
mov esi, dword [0x10039e1c]
mov edx, str.socket_handle_skipped
mov ecx, 0x10039d18
call fcn.10006bf0
mov edx, esi
mov ecx, eax
call fcn.10006bf0
push eax
call fcn.10006ea0
add esp, 4
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000b094
mov esp, ebp
pop ebp
ret
Function at 0x10003420
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x10003506
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x100034f5
jg 0x10003460
test edx, edx
je 0x100034f5
nop dword [eax]
call fcn.10005840
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x100034b4
jg 0x10003477
test esi, esi
je 0x100034b4
cmp ebx, eax
jg 0x10003487
jl 0x10003481
cmp edi, esi
jae 0x10003487
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.1000d330
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x100034d9
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x100034ef
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x10003460
jl 0x100034ef
test edi, edi
jne 0x10003460
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x10003528
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x1000352a
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x100035a8
jg 0x1000353d
test esi, esi
je 0x100035a8
test eax, eax
jl 0x1000358c
jg 0x10003547
test ebx, ebx
je 0x1000358c
cmp edi, eax
jg 0x10003557
jl 0x10003551
cmp esi, ebx
jae 0x10003557
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.1000d330
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x100035a8
jg 0x1000358f
test esi, esi
je 0x100035a8
jmp 0x1000358f
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x100035a8
push eax
push esi
push 1
push edx
call fcn.10013190
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100035c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x100035f2
jl 0x100035e5
test ecx, ecx
jne 0x100035f2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x100036b2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.10005860
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x1000365e
jg 0x1000361d
test esi, esi
je 0x1000365e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x10003635
mov eax, dword [esp + 0x10]
jl 0x1000362f
cmp eax, esi
jae 0x10003635
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.1000d330
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x1000367f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x1000369b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x10003604
jl 0x1000369b
test ecx, ecx
jne 0x10003604
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x100036f1
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x100036f1
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.1000d330
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x10003760
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x10003717
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
mov ecx, edi
cmp edi, 0xfff
jbe 0x10003749
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.100133d9
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x10003774
cmp edi, eax
ja 0x10003725
test ecx, ecx
je 0x10003760
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.100133d9
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10003ae0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10038014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10003b10
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000b094
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10003b4c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x10003b4c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000b094
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10003c34
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10003b74
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10003ba7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.10011820
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000b094
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x10003c07
sub eax, 1
je 0x10003c07
sub eax, 2
jne 0x10003c34
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.10011820
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000b094
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10003c24
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10013190
add esp, 0x10
cmp edi, eax
jne 0x10003c34
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x10003b37
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000b094
mov esp, ebp
pop ebp
ret 4
Function at 0x10003fe0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100280f0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10038014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1000b0d3
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1000c399
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
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 eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 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 0x10005570
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10038014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1000562a
cmp byte [esi + 0x3d], 0
je 0x1000562a
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10005618
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x100055e0
sub eax, 1
je 0x100055e4
sub eax, 2
jne 0x10005618
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000b094
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10005601
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10013190
add esp, 0x10
cmp edi, eax
jne 0x10005618
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000b094
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000b094
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1000b094
mov esp, ebp
pop ebp
ret
Function at 0x10008370
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.10008540
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1000844d
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x100083ba
mov eax, dword [ebp - 4]
cmp eax, dword [0x10038004]
ja 0x100083ba
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000838a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1000d8b0
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 0x100083df
jmp 0x1000844d
cmp dword [ebp - 0x14], 0x10000
jne 0x10008433
cmp dword [ebp - 0x18], 0x10000
jb 0x10008433
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 0x10008416
mov eax, dword [ebp - 8]
jmp 0x1000844f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x10008426
xor eax, eax
jmp 0x1000844f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10008448
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10008540
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000838a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10008460
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10008570
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10008535
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x100084a5
mov eax, dword [ebp - 4]
cmp eax, dword [0x10038004]
ja 0x100084a5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10008475
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1000d8b0
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 0x100084ca
jmp 0x10008535
cmp dword [ebp - 0x14], 0x10000
jne 0x1000851e
cmp dword [ebp - 0x18], 0x10000
jb 0x1000851e
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 0x10008501
mov eax, dword [ebp - 8]
jmp 0x10008537
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x10008511
xor eax, eax
jmp 0x10008537
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10008530
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10008570
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10008475
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100085a0
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.10008990
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x10038fb4], 0
jne 0x100085dd
cmp dword [0x10038fb0], 0
je 0x100085dd
mov eax, dword [0x10038fb0]
mov dword [0x10038fb4], eax
cmp dword [0x10038fb4], 0
je 0x1000865a
mov ecx, dword [0x10038fb4]
cmp dword [ecx + 8], 0
je 0x1000865a
mov edx, dword [0x10038fb4]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1000865a
mov ecx, dword [0x10038fb4]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1000865a
mov eax, dword [0x10038fb4]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x10008629
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x10008630
xor eax, eax
jmp 0x10008779
mov ecx, dword [0x10038fb4]
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 fcn.1000d8b0
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x10008779
mov edx, dword [0x10038fb0]
mov dword [0x10038fb4], edx
jmp 0x10008676
mov eax, dword [0x10038fb4]
mov ecx, dword [eax + 4]
mov dword [0x10038fb4], ecx
cmp dword [0x10038fb4], 0
je 0x100086b6
cmp dword [0x10038fb4], 0
je 0x100086b4
mov edx, dword [0x10038fb4]
cmp dword [edx + 8], 0
je 0x100086b4
mov eax, dword [0x10038fb4]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x100086b4
mov edx, dword [0x10038fb4]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x100086b4
jmp 0x1000860e
jmp 0x10008668
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.10008780
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10008777
mov eax, dword [ebp - 0x18]
mov dword [0x10038fb4], eax
mov ecx, dword [0x10038fb4]
mov dword [ecx], 0x52727464
mov edx, dword [0x10038fb4]
mov dword [edx + 8], 0
mov eax, dword [0x10038fb4]
mov ecx, dword [0x10038fb0]
mov dword [eax + 4], ecx
mov edx, dword [0x10038fb4]
mov dword [0x10038fb0], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x10038fb4]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x10008747
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x10008767
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 0x1000873e
mov eax, dword [0x10038fb4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1000860e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100094c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10038fb0]
mov dword [ebp - 4], eax
jmp 0x100094d9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10009500
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 0x100094fe
call sub.KERNEL32.dll_GetLastError
jmp 0x10009502
jmp 0x100094d0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100099a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x10038fc0], eax
je 0x100099c4
mov eax, 0x10dd
jmp 0x10009b6c
cmp dword [0x10038fc4], 0
je 0x100099d7
mov eax, dword [0x10038fc4]
jmp 0x10009b6c
cmp dword [ebp + 0xc], 0
jne 0x100099e7
mov eax, 0x57
jmp 0x10009b6c
cmp dword [ebp + 8], 0
jne 0x100099f7
mov eax, 6
jmp 0x10009b6c
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10009a20
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x10038fc4], ecx
mov edx, dword [ebp + 8]
mov dword [0x10038fc8], edx
mov eax, dword [ebp - 8]
jmp 0x10009b6c
push 0x18
call fcn.1000b0d3
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10009a7b
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x10038fc4], ecx
cmp dword [ebp - 4], 0
je 0x10009a6a
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.1000b0a2
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x10038fc8], ecx
mov eax, dword [ebp - 8]
jmp 0x10009b6c
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.10009980
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10009980
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x10009abb
cmp dword [ebp - 0xc], 0x1e
jbe 0x10009ad7
mov dword [ebp - 8], 9
cmp dword [0x10038fb8], 0
je 0x10009ad2
jmp 0x10009a49
jmp 0x10009a40
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x10009afe
mov dword [ebp - 8], 9
cmp dword [0x10038fb8], 0
je 0x10009af9
jmp 0x10009a49
jmp 0x10009a40
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x10009b29
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x10009a40
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x10038fd0]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x10038fd0], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8