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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041756b

Function at 0x417af4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040a3e0
mov eax, dword [0x479e00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004156fd
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x417b36
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x417c92
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00420910
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x47c470]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00418893
mov ecx, dword [esi*4 + 0x47c470]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x417c8b
cmp eax, dword [edi + ecx + 0x24]
jne 0x417c8b
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417c8b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418893
add esp, 0x14
test edx, edx
jl 0x417c8b
jg 0x417c01
test eax, eax
jb 0x417c8b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x417c8b
jl 0x417c1b
cmp dword [ebp - 0x1008], eax
ja 0x417c8b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x417c39
test ebx, ebx
je 0x417c72
cmp ecx, edi
jae 0x417c72
mov al, byte [ecx]
cmp al, 0xd
jne 0x417c53
lea eax, [edi - 1]
cmp ecx, eax
jae 0x417c5f
cmp byte [ecx + 1], 0xa
jne 0x417c5f
inc ecx
jmp 0x417c5f
movzx eax, al
movsx eax, byte [eax + 0x47a0d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x417c39
cmp edx, ebx
jne 0x417c39
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x417c90
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409a3b
leave
ret
Function at 0x417d31
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x47c470]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x417d71
cmp byte [ebx], 0xa
jne 0x417d71
or byte [eax + edi + 0x28], 4
jmp 0x417d76
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x417e74
mov al, byte [edx]
cmp al, 0x1a
je 0x417e56
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x417da5
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x417dca
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x417dd4
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x417d87
jmp 0x417e74
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417e51
cmp dword [ebp - 0xc], 0
je 0x417e51
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47c470]
test byte [eax + edi + 0x28], 0x48
je 0x417e2b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x417e16
mov byte [esi], dl
jmp 0x417e27
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47c470]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x417e74
cmp byte [ebp - 1], 0xa
jne 0x417e3a
cmp esi, ebx
jne 0x417e3a
mov byte [esi], 0xa
jmp 0x417e73
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004188b1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x417e74
mov byte [esi], 0xd
jmp 0x417e73
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47c470]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x417e70
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x417e74
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x417e7d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x47c470]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x417ec0
cmp word [esi], dx
jne 0x417ec0
or byte [edi + eax + 0x28], 4
jmp 0x417ec5
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x418018
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x417ff8
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x417f07
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x417f3d
cmp eax, edx
jae 0x417f49
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x417edf
jmp 0x418018
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417ff4
cmp dword [ebp - 0x14], 0
je 0x417ff4
mov eax, dword [ebx*4 + 0x47c470]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x417fcc
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x417f95
mov word [esi], cx
jmp 0x417fc8
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47c470]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47c470]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47c470]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x418018
pop ebx
cmp word [ebp - 4], bx
jne 0x417fdd
cmp esi, dword [ebp + 0xc]
jne 0x417fdd
mov word [esi], bx
jmp 0x418015
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004188b1
add esp, 0x10
cmp word [ebp - 4], bx
je 0x418018
push 0xd
jmp 0x418011
mov ecx, dword [ebx*4 + 0x47c470]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41800f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x418018
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x14020c0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
push edi
mov edi, eax
mov eax, 0x44
cmp edi, eax
mov dl, 0x57
mov dword [esp + 0xc], 0
jbe 0x14020f2
lea esp, [esp]
xor byte [eax + esi], dl
mov cl, byte [eax + esi]
add cl, 0x57
add eax, 1
add dl, cl
cmp eax, edi
jb 0x14020e0
xor dword [esi + 0x4c], 0x7a32bc85
xor dword [esi + 0x50], 0x49c042d1
add dword [esi + 0x54], 0xfffffff4
xor dword [esi + 0x58], 0x872c3d47
mov eax, dword [esi + 0x44]
mov dword [0x3408128], eax
mov ecx, dword [esi + 0x48]
mov dword [0x340812c], ecx
mov edx, dword [esi + 0x4c]
mov dword [0x3408130], edx
mov eax, dword [esi + 0x50]
mov dword [0x3408134], eax
mov ecx, dword [esi + 0x54]
mov dword [0x3408138], ecx
mov edx, dword [esi + 0x58]
mov dword [0x340813c], edx
xor ebx, ebx
movzx eax, bx
lea eax, [eax + eax*4]
cmp dword [esi + eax*4 + 0x6c], 0
lea edi, [esi + eax*4 + 0x5c]
je 0x1402159
mov ecx, dword [edi + 0xc]
mov dword [esp + 0xc], ecx
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
jbe 0x1402176
mov ecx, dword [edi + 8]
mov edx, dword [edi]
sub eax, ecx
push eax
add edx, ecx
push 0
push edx
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov edx, dword [edi]
push eax
add ecx, esi
push ecx
push edx
call sub.msvcrt.dll_memcpy
add ebx, 1
add esp, 0xc
cmp bx, word [esi + 0x48]
jbe 0x1402141
mov ebp, dword [esi + 0x58]
add ebp, 0xc
cmp dword [ebp], 0
je 0x14021f1
mov eax, dword [esi + 0x50]
add eax, dword [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [ebp + 4]
add edi, dword [esi + 0x50]
add ebp, 0x14
cmp dword [edi], 0
mov ebx, eax
je 0x14021eb
lea ecx, [ecx]
mov eax, dword [edi]
test eax, eax
jns 0x14021cd
and eax, 0x7fffffff
jmp 0x14021d9
mov ecx, dword [esi + 0x50]
and eax, 0x7fffffff
lea eax, [eax + ecx + 2]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi], eax
add edi, 4
cmp dword [edi], 0
jne 0x14021c0
cmp dword [ebp], 0
jne 0x14021a0
mov edx, dword [esi + 0x54]
push 0
push 1
push 0
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x4c]
push eax
call ecx
mov eax, dword [esp + 0x10]
add esp, 4
pop edi
pop ebp
pop ebx
pop ecx
ret
Function at 0x1402760
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [esi + 8], 0
push ebx
push ebp
push edi
je 0x140279e
mov eax, dword [esi + 0x24]
mov edi, dword [eax + 4]
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebx, dword [esi]
push 0x34083bc
push 0x40
push 4
push edi
call ebp
test eax, eax
je 0x14027f7
mov ecx, dword [ebx]
push 0x34083bc
mov dword [edi], ecx
mov edx, dword [0x34083bc]
push edx
push 4
push edi
call ebp
jmp 0x14027f7
cmp dword [esi + 0x14], 0
je 0x14027d8
mov eax, dword [esi + 0x24]
mov edi, dword [eax]
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebx, dword [esi]
push 0x34083bc
push 0x40
push 4
push edi
call ebp
test eax, eax
je 0x14027f7
mov ecx, dword [ebx]
push 0x34083bc
mov dword [edi], ecx
mov edx, dword [0x34083bc]
push edx
push 4
push edi
call ebp
jmp 0x14027f7
call fcn.01403900
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call fcn.01403d60
mov eax, dword [esi + 4]
push eax
push esi
call fcn.01404050
call fcn.01403a20
mov eax, dword [esi + 0x24]
test eax, eax
pop edi
pop ebp
pop ebx
je 0x140280a
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
ret

Function at 0x14030e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
cmp byte [ecx + 4], 0
jne 0x14030f3
mov eax, dword [esp + 0x10]
add esp, 8
ret 8
lea eax, [esp]
push eax
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x14]
push eax
mov eax, dword [ecx + 8]
push 0
push edx
push eax
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14030e9
cmp dword [esp + 0xc], 4
mov eax, dword [esp + 0x10]
jne 0x140312d
mov eax, dword [esp + 4]
add esp, 8
ret 8

Function at 0x1403140
Capabilities:
Set registry value

Disassembly:
cmp byte [ecx + 4], 0
je 0x1403160
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx + 8]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x1403170
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov byte [0x34081b8], 0
cmp byte [ecx + 4], 0
mov dword [esp], 0x200
jne 0x140318d
mov eax, dword [esp + 0xc]
pop ecx
ret 8
mov ecx, dword [ecx + 8]
lea eax, [esp]
push eax
mov eax, dword [esp + 0xc]
push 0x34081b8
lea edx, [esp + 0x10]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1403185
cmp dword [esp + 8], 1
mov eax, dword [esp + 0xc]
jne 0x14031c0
mov eax, 0x34081b8
pop ecx
ret 8

Function at 0x14031d0
Capabilities:
Set registry value

Disassembly:
cmp byte [ecx + 4], 0
je 0x1403206
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
push edi
lea edi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x14031e1
mov ecx, dword [ecx + 8]
sub eax, edi
add eax, 1
push eax
mov eax, dword [esp + 0x10]
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 8
Function at 0x1403360
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
push 0x1c
lea eax, [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov ecx, dword [esp + 4]
cmp word [ecx], 0x5a4d
jne 0x14033ac
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x14033ac
mov edx, dword [eax + 0xd8]
push edi
lea edi, [edx + ecx]
cmp esi, edi
pop edi
jb 0x14033ac
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x14033ac
mov al, 1
add esp, 0x1c
ret
xor al, al
add esp, 0x1c
ret

Function at 0x14034c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push esi
mov esi, dword [0x3408184]
test esi, esi
je 0x14034ea
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call edi
mov esi, dword [esi + 4]
test esi, esi
jne 0x14034d3
pop edi
pop esi
pop ecx
ret

Function at 0x1403540
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
movzx ecx, ax
sub esp, 0x1c
test ecx, ecx
je 0x1403551
sub eax, ecx
add eax, 0x10000
cmp eax, dword [esp + 0x20]
push ebx
push esi
push edi
mov esi, eax
jae 0x1403601
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea esp, [esp]
lea eax, [esi - 0x50000000]
cmp eax, 0x30000000
ja 0x1403584
mov esi, 0x80010000
jmp 0x14035f7
xor eax, eax
push 0x1c
lea ecx, [esp + 0x10]
push ecx
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call ebx
test eax, eax
je 0x1403601
cmp dword [esp + 0x1c], 0x10000
mov eax, dword [esp + 0x18]
jne 0x14035e0
cmp eax, 0x10000
jb 0x14035e0
push 0x40
push 0x3000
push 0x10000
push esi
call edi
test eax, eax
jne 0x1403603
add esi, 0x10000
jmp 0x14035f7
mov edx, dword [esp + 0xc]
lea esi, [edx + eax]
movzx eax, si
test eax, eax
je 0x14035f7
mov ecx, 0x10000
sub ecx, eax
add esi, ecx
cmp esi, dword [esp + 0x2c]
jb 0x1403570
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x1403610
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, eax
add esi, 0xffff0000
movzx eax, si
test eax, eax
push edi
je 0x1403628
sub esi, eax
cmp esi, dword [esp + 0x30]
jbe 0x14036bb
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebp, 0x10000
lea eax, [esi - 0x50000000]
cmp eax, 0x30000000
ja 0x1403657
mov esi, 0x4fff0000
jmp 0x14036b5
xor eax, eax
push 0x1c
lea ecx, [esp + 0x14]
push ecx
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call ebx
test eax, eax
je 0x14036bb
cmp dword [esp + 0x20], ebp
jne 0x14036a2
cmp dword [esp + 0x1c], ebp
jb 0x14036a2
push 0x40
push 0x3000
push ebp
push esi
call edi
test eax, eax
jne 0x14036bd
sub esi, ebp
jmp 0x14036b5
mov esi, dword [esp + 0x14]
add esi, 0xffff0000
movzx eax, si
test eax, eax
je 0x14036b5
sub esi, eax
cmp esi, dword [esp + 0x30]
ja 0x1403643
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x14036d0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebx
push esi
mov esi, eax
cmp esi, 0x7ff80000
push edi
lea edi, [esi - 0x7ff80000]
ja 0x14036e8
mov edi, 0x10000
cmp esi, 0x80000000
lea ebx, [esi + 0x7ff80000]
jb 0x14036fb
mov ebx, 0xfff80000
mov eax, dword [0x3408188]
test eax, eax
mov edx, dword [0x3408184]
jne 0x1403715
test edx, edx
je 0x1403728
mov eax, edx
mov dword [0x3408188], eax
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1403728
cmp ecx, edi
jb 0x1403728
cmp ecx, ebx
jbe 0x140382d
test edx, edx
mov eax, edx
mov dword [0x3408188], eax
je 0x1403756
test eax, eax
je 0x140374a
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x140374a
cmp ecx, edi
jb 0x140374a
cmp ecx, ebx
jbe 0x1403828
mov eax, dword [eax + 4]
test eax, eax
jne 0x1403737
mov dword [0x3408188], eax
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, 0x40000000
jbe 0x1403780
lea eax, [esi - 0x40000000]
push edi
call fcn.01403610
add esp, 4
test eax, eax
jne 0x14037e9
cmp esi, 0x40000000
jae 0x1403795
push ebx
lea eax, [esi + 0x40000000]
call fcn.01403540
add esp, 4
test eax, eax
jne 0x14037e9
cmp esi, 0x40000000
jbe 0x14037b6
push esi
lea eax, [esi - 0x40000000]
call fcn.01403540
add esp, 4
test eax, eax
jne 0x14037e9
cmp esi, 0x40000000
jae 0x14037cb
lea eax, [esi + 0x40000000]
push esi
call fcn.01403610
add esp, 4
test eax, eax
jne 0x14037e9
push edi
mov eax, esi
call fcn.01403610
add esp, 4
test eax, eax
jne 0x14037e9
push ebx
mov eax, esi
call fcn.01403540
add esp, 4
test eax, eax
je 0x1403854
mov dword [eax], 0x52727464
mov dword [eax + 8], 0
mov ecx, dword [0x3408184]
mov dword [eax + 4], ecx
mov dword [0x3408188], eax
mov dword [0x3408184], eax
xor edx, edx
lea ecx, [eax + 0xffa8]
mov esi, 0x38b
mov dword [ecx + 0x40], edx
mov edx, ecx
sub ecx, 0x48
sub esi, 1
jne 0x1403816
mov dword [eax + 8], edx
jmp 0x140382d
mov dword [0x3408188], eax
mov esi, dword [eax + 8]
cmp esi, edi
jb 0x1403854
cmp esi, ebx
ja 0x1403854
mov edx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [eax + 8], edx
call sub.msvcrt.dll_memset
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x1403890
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov eax, dword [0x3408184]
test eax, eax
push ebx
mov ebx, 0x3408184
je 0x14038fd
push esi
push edi
cmp dword [eax], 0x52727464
jne 0x14038f2
lea edi, [eax + 0x10000]
xor edx, edx
lea esi, [eax + 0x88]
mov ecx, dword [esi]
test ecx, ecx
je 0x14038c5
cmp ecx, eax
jb 0x14038f2
cmp ecx, edi
jae 0x14038f2
add edx, 1
add esi, 0x48
cmp edx, 0x38d
jb 0x14038b7
mov ecx, dword [eax + 4]
push 0x8000
push 0
push eax
mov dword [ebx], ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [0x3408188], 0
jmp 0x14038f5
lea ebx, [eax + 4]
mov eax, dword [ebx]
test eax, eax
jne 0x14038a1
pop edi
pop esi
pop ebx
ret
Function at 0x1403950
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x3408194], eax
je 0x1403966
mov eax, 0x10dd
pop ecx
ret
push ebx
push ebp
push esi
mov esi, dword [0x34081a4]
xor ebp, ebp
cmp esi, ebp
push edi
je 0x14039ce
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
lea eax, [esp + 0x10]
push eax
movzx eax, byte [edx + 0x36]
push ecx
mov ecx, dword [esi + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebp
jne 0x14039bd
mov ebx, dword [esi + 0x10]
cmp ebx, ebp
je 0x14039bd
push 0x48
push ebp
mov edi, ebx
push ebx
and edi, 0xffff0000
call sub.msvcrt.dll_memset
mov edx, dword [edi + 8]
mov dword [ebx + 0x40], edx
mov dword [edi + 8], ebx
add esp, 0xc
mov dword [esi + 0x10], ebp
mov edi, dword [esi]
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x1403976
mov dword [0x34081a4], ebp
call fcn.014034f0
mov esi, dword [0x34081a0]
cmp esi, ebp
je 0x1403a07
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
lea esp, [esp]
mov eax, dword [esi + 4]
push eax
call ebx
mov edi, dword [esi]
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x14039f0
pop edi
pop esi
mov dword [0x34081a0], ebp
mov dword [0x3408194], ebp
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x1403d60
Capabilities:
Suspend thread

Disassembly:
push edi
mov edi, eax
mov eax, dword [0x3408198]
test eax, eax
jne 0x1403dd7
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp edi, eax
jne 0x1403d7a
xor eax, eax
pop edi
ret
push esi
push 8
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
jne 0x1403d92
mov edi, 8
jmp 0x1403daf
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1403dc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
pop esi
mov dword [0x3408198], edi
mov eax, edi
mov dword [0x340819c], 0
pop edi
ret
mov eax, dword [0x34081a0]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [0x34081a0], esi
xor eax, eax
pop esi
pop edi
ret
Function at 0x1404050
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x3408194], eax
je 0x140406c
mov eax, 0x10dd
pop ebp
ret 8
mov eax, dword [0x3408198]
test eax, eax
jne 0x1404166
test ebp, ebp
jne 0x1404086
mov eax, 6
pop ebp
ret 8
cmp dword [ebp], 0
jne 0x14040a0
mov eax, 6
mov dword [0x340819c], ebp
mov dword [0x3408198], eax
pop ebp
ret 8
push ebx
push esi
push edi
push 0x18
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x14040bd
mov esi, 8
jmp 0x1404148
mov eax, dword [ebp]
call fcn.014033f0
mov edi, eax
mov eax, dword [esp + 0x18]
call fcn.014033f0
movzx ecx, byte [edi + 0x36]
mov esi, dword [edi + 0x40]
sub esi, ecx
test ecx, ecx
je 0x140413a
cmp ecx, 0x1e
ja 0x140413a
cmp dword [edi + 0x44], eax
jne 0x140413a
lea eax, [esp + 0x14]
push eax
push 0x40
push ecx
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140410c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1404148
mov edx, dword [0x34081a4]
mov dword [ebx + 0x10], edi
mov dword [ebx + 8], ebp
mov dword [ebx + 0xc], esi
pop edi
mov dword [ebx + 4], 1
mov ecx, dword [esp + 0x10]
pop esi
mov dword [ebx + 0x14], ecx
mov dword [ebx], edx
mov dword [0x34081a4], ebx
pop ebx
xor eax, eax
pop ebp
ret 8
cmp dword [0x340818c], 0
mov esi, 9
jne 0x140414e
mov dword [0x3408198], esi
test ebx, ebx
je 0x140415b
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
mov eax, esi
pop esi
mov dword [0x340819c], ebp
pop ebx
pop ebp
ret 8