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

Disassembly:
push 0x7c
mov eax, 0x10040448
call fcn.1003d39e
mov esi, ecx
call fcn.1002cc49
xor ebx, ebx
cmp al, 6
jne 0x1002d167
movaps xmm0, xmmword [str.eKtli6Nk_Hoti]
mov ecx, ebx
movups xmmword [ebp - 0x24], xmm0
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0xe
jb 0x1002d0e1
lea eax, [ebp - 0x23]
mov byte [ebp - 0x15], bl
push eax
lea ecx, [ebp - 0x58]
call fcn.10003da0
mov dword [ebp - 4], ebx
mov ecx, ebx
movaps xmm0, xmmword [0x1004bb90]
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x44131e1a
mov word [ebp - 0x14], 0x4b
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x14
jb 0x1002d11a
lea eax, [ebp - 0x27]
mov byte [ebp - 0x13], bl
push eax
lea ecx, [ebp - 0x40]
call fcn.10003da0
push ebx
push ecx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x58]
and dword [esp], 0
push ebx
push ebx
push ebx
push eax
lea eax, [ebp - 0x40]
push eax
push eax
call dword [0x1004a348]
lea ecx, [ebp - 0x40]
call fcn.10003b9e
lea ecx, [ebp - 0x58]
call fcn.10003b9e
jmp 0x1002d22e
push 6
mov edi, ebx
lea eax, [esi + 0x110]
pop ecx
cmp dword [eax - 4], ebx
jbe 0x1002d17e
cmp dword [eax], ebx
jbe 0x1002d17e
add edi, dword [eax + 4]
add eax, 0x14
sub ecx, 1
jne 0x1002d172
mov ecx, dword [esi + 0x34]
call fcn.1000c9c0
test al, al
je 0x1002d19c
mov ecx, dword [esi + 0x34]
xor dl, dl
call fcn.1000c87f
push ecx
mov edx, edi
lea ecx, [ebp - 0x88]
call fcn.1000aeba
pop ecx
mov dword [ebp - 4], 2
cmp dword [eax + 0x14], 0xf
jbe 0x1002d1ba
mov eax, dword [eax]
movaps xmm0, xmmword [0x1004c3e0]
mov ecx, ebx
push eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x65055
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x12
jb 0x1002d1cf
sub esp, 0x18
mov byte [ebp - 0x15], bl
lea eax, [ebp - 0x27]
mov ecx, esp
push eax
call fcn.10003da0
lea eax, [ebp - 0x70]
push eax
call fcn.100039e5
add esp, 0x20
mov byte [ebp - 4], 3
mov edx, eax
mov ecx, dword [esi + 0x100]
call fcn.1000d0e0
lea ecx, [ebp - 0x70]
call fcn.10003b9e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.10003b9e
mov ecx, dword [esi + 0xfc]
mov dl, 1
call fcn.1000c87f
call fcn.1003d37b
ret
Function at 0x1002f8e5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], 0x2e342240
push esi
mov esi, ecx
mov dword [ebp - 0x10], 0x2f2c231f
mov cl, 0x40
mov word [ebp - 0xc], 0x2533
mov byte [ebp - 0xa], bl
mov eax, ebx
xor byte [ebp + eax - 0x13], cl
inc eax
cmp eax, 9
jae 0x1002f91b
mov cl, byte [ebp - 0x14]
jmp 0x1002f90c
sub esp, 0x18
mov byte [ebp - 0xa], bl
lea eax, [ebp - 0x13]
mov ecx, esp
push eax
call fcn.10003da0
mov ecx, dword [esi]
call fcn.1000c655
mov dword [esi + 4], eax
add esp, 0x18
mov cl, 0x31
mov dword [ebp - 0x14], 0x58555431
mov dword [ebp - 0x10], 0x50456e45
mov eax, ebx
mov word [ebp - 0xc], 0x56
xor byte [ebp + eax - 0x13], cl
inc eax
cmp eax, 8
jae 0x1002f960
mov cl, byte [ebp - 0x14]
jmp 0x1002f951
sub esp, 0x18
mov byte [ebp - 0xb], bl
lea eax, [ebp - 0x13]
mov ecx, esp
push eax
call fcn.10003da0
mov ecx, dword [esi]
call fcn.1000c655
mov dword [esi + 8], eax
add esp, 0x18
mov cl, 4
mov dword [ebp - 0x14], 0x6a706604
mov dword [ebp - 0x10], 0x6a6b675b
mov eax, ebx
mov dword [ebp - 0xc], 0x69766d62
mov byte [ebp - 8], bl
xor byte [ebp + eax - 0x13], cl
inc eax
cmp eax, 0xb
jae 0x1002f9a9
mov cl, byte [ebp - 0x14]
jmp 0x1002f99a
sub esp, 0x18
mov byte [ebp - 8], bl
lea eax, [ebp - 0x13]
mov ecx, esp
push eax
call fcn.10003da0
mov ecx, dword [esi]
call fcn.1000c655
mov dword [esi + 0xc], eax
add esp, 0x18
mov cl, 0x3b
mov dword [ebp - 0x14], 0x554f593b
mov dword [ebp - 0x10], 0x575e5f64
mov eax, ebx
mov dword [ebp - 0xc], 0x5e4f5e
xor byte [ebp + eax - 0x13], cl
inc eax
cmp eax, 0xa
jae 0x1002f9ef
mov cl, byte [ebp - 0x14]
jmp 0x1002f9e0
sub esp, 0x18
mov byte [ebp - 9], bl
lea eax, [ebp - 0x13]
mov ecx, esp
push eax
call fcn.10003da0
mov ecx, dword [esi]
call fcn.1000c655
mov dword [esi + 0x10], eax
add esp, 0x18
mov cl, 0x3f
mov dword [ebp - 0x14], 0x5852563f
mov dword [ebp - 0x10], 0x535e4f60
mov eax, ebx
mov dword [ebp - 0xc], 0x5a4b4b5a
mov byte [ebp - 8], bl
xor byte [ebp + eax - 0x13], cl
inc eax
cmp eax, 0xb
jae 0x1002fa38
mov cl, byte [ebp - 0x14]
jmp 0x1002fa29
sub esp, 0x18
mov byte [ebp - 8], bl
lea eax, [ebp - 0x13]
mov ecx, esp
push eax
call fcn.10003da0
mov ecx, dword [esi]
call fcn.1000c655
add esp, 0x18
mov dword [esi + 0x14], eax
pop esi
pop ebx
leave
ret
Function at 0x100303ad
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x50
mov eax, 0x10040741
call fcn.1003d3d1
mov esi, ecx
mov ecx, dword [esi]
xor dl, dl
call fcn.1000c87f
xor ebx, ebx
mov dword [ebp - 0x3c], 0x5d476c29
mov dl, 0x29
mov dword [ebp - 0x38], 0x7d095b4c
mov dword [ebp - 0x34], 0x60094e48
mov eax, ebx
mov word [ebp - 0x30], 0x6d
xor byte [ebp + eax - 0x3b], dl
inc eax
cmp eax, 0xc
jae 0x100303f4
mov dl, byte [ebp - 0x3c]
jmp 0x100303e5
lea eax, [ebp - 0x3b]
mov byte [ebp - 0x2f], bl
push eax
lea ecx, [ebp - 0x28]
call fcn.10003da0
lea eax, [ebp - 0x2b]
mov dword [ebp - 4], ebx
mov word [ebp - 0x2c], 2
lea ecx, [ebp - 0x44]
push eax
mov byte [ebp - 0x2b], bl
call fcn.10003da0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x44]
mov ecx, dword [esi + 8]
call fcn.1000cbe4
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.10003b9e
mov ecx, dword [esi + 8]
or edx, 0xffffffff
call fcn.1000cc36
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x5c]
cmova eax, dword [ebp - 0x28]
push eax
call fcn.10003da0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x5c]
mov ecx, dword [esi + 8]
call fcn.1000d060
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], bl
call fcn.10003b9e
mov ecx, dword [esi + 8]
call fcn.1000cc99
lea ecx, [ebp - 0x28]
call fcn.10003b9e
call fcn.1003d38f
ret
Function at 0x100305b3
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x18], 0x2e342240
mov esi, ecx
mov dword [ebp - 0x14], 0x2f32241f
mov cl, 0x40
mov word [ebp - 0x10], 0x30
mov eax, ebx
xor byte [ebp + eax - 0x17], cl
inc eax
cmp eax, 8
jae 0x100305e6
mov cl, byte [ebp - 0x18]
jmp 0x100305d7
sub esp, 0x18
mov byte [ebp - 0xf], bl
lea eax, [ebp - 0x17]
mov ecx, esp
push eax
call fcn.10003da0
mov ecx, dword [esi]
call fcn.1000c655
movaps xmm0, xmmword [0x1004c330]
add esp, 0x18
mov dword [esi + 0x10], eax
mov ecx, ebx
movups xmmword [ebp - 0x1c], xmm0
mov byte [ebp - 0xc], bl
mov al, byte [ebp - 0x1c]
xor byte [ebp + ecx - 0x1b], al
inc ecx
cmp ecx, 0xf
jb 0x10030614
sub esp, 0x18
mov byte [ebp - 0xc], bl
lea eax, [ebp - 0x1b]
mov ecx, esp
push eax
call fcn.10003da0
mov ecx, dword [esi]
call fcn.1000c655
movaps xmm0, xmmword [0x1004c590]
add esp, 0x18
mov dword [esi + 0x14], eax
mov ecx, ebx
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x10], 0x61676576
mov byte [ebp - 0xc], bl
mov al, byte [ebp - 0x20]
xor byte [ebp + ecx - 0x1f], al
inc ecx
cmp ecx, 0x13
jb 0x10030656
sub esp, 0x18
mov byte [ebp - 0xc], bl
lea eax, [ebp - 0x1f]
mov ecx, esp
push eax
call fcn.10003da0
mov ecx, dword [esi]
call fcn.1000c655
mov dword [esi + 4], eax
add esp, 0x18
mov cl, 0x3b
mov dword [ebp - 0x1c], 0x554f593b
mov dword [ebp - 0x18], 0x554e5d64
mov eax, ebx
mov dword [ebp - 0x14], 0x485a5758
mov word [ebp - 0x10], 0x48
xor byte [ebp + eax - 0x1b], cl
inc eax
cmp eax, 0xc
jae 0x100306af
mov cl, byte [ebp - 0x1c]
jmp 0x100306a0
sub esp, 0x18
mov byte [ebp - 0xf], bl
lea eax, [ebp - 0x1b]
mov ecx, esp
push eax
call fcn.10003da0
mov ecx, dword [esi]
call fcn.1000c655
mov dword [esi + 8], eax
add esp, 0x18
mov cl, 0x3f
mov dword [ebp - 0x18], 0x514b5d3f
mov dword [ebp - 0x14], 0x4b505360
mov eax, ebx
mov dword [ebp - 0x10], 0x464d5a4b
mov byte [ebp - 0xc], bl
xor byte [ebp + eax - 0x17], cl
inc eax
cmp eax, 0xb
jae 0x100306f8
mov cl, byte [ebp - 0x18]
jmp 0x100306e9
sub esp, 0x18
mov byte [ebp - 0xc], bl
lea eax, [ebp - 0x17]
mov ecx, esp
push eax
call fcn.10003da0
mov ecx, dword [esi]
call fcn.1000c655
mov ecx, dword [0x10056848]
add esp, 0x18
mov dword [esi + 0xc], eax
test ecx, ecx
je 0x1003073e
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x1003073e
mov ecx, dword [ecx]
call fcn.1000c79d
mov ecx, dword [esi]
add edx, 0xf5
push 5
call fcn.1000c836
pop ecx
mov ecx, dword [esi]
push 0x14
pop edx
call fcn.1000c99d
mov ecx, dword [esi]
mov dl, 1
call fcn.1000c87f
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1003075f
xor dl, dl
call fcn.1000c87f
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1003076d
xor dl, dl
call fcn.1000c87f
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x1003077b
xor dl, dl
call fcn.1000c87f
pop esi
pop ebx
leave
ret
Function at 0x100326a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x10053040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x10041850
push 0x64
mov edi, edx
mov esi, ecx
call fcn.1003cec6
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x100328a4
push 0x64
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
mov byte [ebx], 1
lea eax, [ebx + 0x34]
xorps xmm0, xmm0
add esp, 0xc
movups xmmword [ebx + 0x10], xmm0
movq qword [ebx + 0x20], xmm0
mov dword [ebx + 0x28], 0
push eax
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x2c], 0xffffffff
mov dword [ebx + 4], 2
mov dword [ebx + 0x30], 0
call dword [sym.imp.MSVCP140.dll__Cnd_init_in_situ]
add esp, 4
mov dword [0x1007c194], ebx
lea eax, [ebp - 0x48]
xorps xmm0, xmm0
movq qword [ebx + 0x5c], xmm0
push 0x20
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
lea ecx, [ebp - 0x48]
call fcn.10037b90
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x1005454c
mov dword [0x10077d8c], eax
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
je 0x10032776
push 5
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov eax, dword [0x10054578]
cmp eax, 0x7fffffff
jne 0x10032790
dec eax
push 6
mov dword [0x10054578], eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
test edi, edi
je 0x100327a5
movups xmm0, xmmword [edi]
movups xmmword [0x10077d58], xmm0
movq xmm0, qword [edi + 0x10]
jmp 0x100327af
xorps xmm0, xmm0
movups xmmword [0x10077d58], xmm0
movq qword [0x10077d68], xmm0
xorps xmm0, xmm0
push 0x1005454c
movups xmmword [0x10077d70], xmm0
movq qword [0x10077d80], xmm0
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
add esp, 4
cmp dword [0x10077d54], 0
jne 0x100328ae
mov dword [0x1007c398], 0x10055940
test esi, esi
je 0x10032819
cmp byte [esi], 0
mov ecx, 0x1007c3a8
je 0x10032816
mov edx, 1
sub edx, esi
lea eax, [esi + edx]
cmp eax, 0x40
jae 0x10032816
mov al, byte [esi]
inc esi
mov byte [ecx], al
inc ecx
cmp byte [esi], 0
jne 0x10032803
mov byte [ecx], 0
mov esi, dword [0x1007c194]
mov al, 1
mov dword [0x10077d54], 0x1007c398
mov dword [0x1007c3a0], 0x10032cf0
mov dword [0x1007c3a4], 0x10032d00
xchg byte [esi], al
push 4
call fcn.1003c002
add esp, 4
lea ecx, [ebp - 0x4c]
mov dword [eax], esi
push ecx
push 0
push eax
push 0x100330e0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x50], ecx
test ecx, ecx
je 0x10032895
cmp dword [esi + 0x60], 0
je 0x1003287b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
mov eax, dword [ebp - 0x4c]
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003bff4
mov esp, ebp
pop ebp
ret
push 6
mov dword [ebp - 0x4c], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov dword [0x1007c194], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003bff4
mov esp, ebp
pop ebp
ret
Function at 0x100337e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10053040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [0x10077d54]
push esi
push eax
mov dword [edi + 0x154], 1
lea eax, [edi + 0x15c]
lea ebx, [edi + 0x154]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [edi + 0x158], esi
add esi, 8
je 0x100338b2
mov eax, dword [edi]
test eax, eax
je 0x10033861
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x10033861
test ebx, ebx
je 0x10033861
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x10033861
cmp dword [ebp - 8], esi
je 0x100338b2
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x10033881
mov eax, dword [edi + 4]
cmp eax, 3
je 0x10033875
cmp eax, 1
jne 0x10033881
lea eax, [edi + 0x54]
push eax
push dword [edi + 0x50]
call ecx
add esp, 8
mov esi, dword [edi]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
xor al, al
mov byte [esi], 0
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003bff4
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003bff4
mov esp, ebp
pop ebp
ret 8
Function at 0x100392f0
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.100394c0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x100393cd
mov edx, dword [ebp - 4]
cmp edx, dword [0x10053004]
jb 0x1003933a
mov eax, dword [ebp - 4]
cmp eax, dword [0x10053008]
ja 0x1003933a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1003930a
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 0x1003935f
jmp 0x100393cd
cmp dword [ebp - 0x14], 0x10000
jne 0x100393b3
cmp dword [ebp - 0x18], 0x10000
jb 0x100393b3
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 0x10039396
mov eax, dword [ebp - 8]
jmp 0x100393cf
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x100393a6
xor eax, eax
jmp 0x100393cf
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100393c8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.100394c0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1003930a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100393e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.100394f0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x100394b5
mov edx, dword [ebp - 4]
cmp edx, dword [0x10053004]
jb 0x10039425
mov eax, dword [ebp - 4]
cmp eax, dword [0x10053008]
ja 0x10039425
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x100393f5
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 0x1003944a
jmp 0x100394b5
cmp dword [ebp - 0x14], 0x10000
jne 0x1003949e
cmp dword [ebp - 0x18], 0x10000
jb 0x1003949e
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 0x10039481
mov eax, dword [ebp - 8]
jmp 0x100394b7
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x10039491
xor eax, eax
jmp 0x100394b7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100394b0
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.100394f0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100393f5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10039520
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.10039910
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x100560a8], 0
jne 0x1003955d
cmp dword [0x100560a4], 0
je 0x1003955d
mov eax, dword [0x100560a4]
mov dword [0x100560a8], eax
cmp dword [0x100560a8], 0
je 0x100395da
mov ecx, dword [0x100560a8]
cmp dword [ecx + 8], 0
je 0x100395da
mov edx, dword [0x100560a8]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x100395da
mov ecx, dword [0x100560a8]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x100395da
mov eax, dword [0x100560a8]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x100395a9
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x100395b0
xor eax, eax
jmp 0x100396f9
mov ecx, dword [0x100560a8]
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 0x100396f9
mov edx, dword [0x100560a4]
mov dword [0x100560a8], edx
jmp 0x100395f6
mov eax, dword [0x100560a8]
mov ecx, dword [eax + 4]
mov dword [0x100560a8], ecx
cmp dword [0x100560a8], 0
je 0x10039636
cmp dword [0x100560a8], 0
je 0x10039634
mov edx, dword [0x100560a8]
cmp dword [edx + 8], 0
je 0x10039634
mov eax, dword [0x100560a8]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x10039634
mov edx, dword [0x100560a8]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x10039634
jmp 0x1003958e
jmp 0x100395e8
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.10039700
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x100396f7
mov eax, dword [ebp - 0x18]
mov dword [0x100560a8], eax
mov ecx, dword [0x100560a8]
mov dword [ecx], 0x52727464
mov edx, dword [0x100560a8]
mov dword [edx + 8], 0
mov eax, dword [0x100560a8]
mov ecx, dword [0x100560a4]
mov dword [eax + 4], ecx
mov edx, dword [0x100560a8]
mov dword [0x100560a4], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x100560a8]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x100396c7
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x100396e7
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 0x100396be
mov eax, dword [0x100560a8]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1003958e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1003a440
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100560a4]
mov dword [ebp - 4], eax
jmp 0x1003a459
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1003a480
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 0x1003a47e
call sub.KERNEL32.dll_GetLastError
jmp 0x1003a482
jmp 0x1003a450
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1003a920
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 [0x100560b4], eax
je 0x1003a944
mov eax, 0x10dd
jmp 0x1003aaec
cmp dword [0x100560b8], 0
je 0x1003a957
mov eax, dword [0x100560b8]
jmp 0x1003aaec
cmp dword [ebp + 0xc], 0
jne 0x1003a967
mov eax, 0x57
jmp 0x1003aaec
cmp dword [ebp + 8], 0
jne 0x1003a977
mov eax, 6
jmp 0x1003aaec
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x1003a9a0
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x100560b8], ecx
mov edx, dword [ebp + 8]
mov dword [0x100560bc], edx
mov eax, dword [ebp - 8]
jmp 0x1003aaec
push 0x18
call fcn.1003c002
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1003a9fb
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x100560b8], ecx
cmp dword [ebp - 4], 0
je 0x1003a9ea
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.1003c055
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x100560bc], ecx
mov eax, dword [ebp - 8]
jmp 0x1003aaec
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.1003a900
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1003a900
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 0x1003aa3b
cmp dword [ebp - 0xc], 0x1e
jbe 0x1003aa57
mov dword [ebp - 8], 9
cmp dword [0x100560ac], 0
je 0x1003aa52
jmp 0x1003a9c9
jmp 0x1003a9c0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x1003aa7e
mov dword [ebp - 8], 9
cmp dword [0x100560ac], 0
je 0x1003aa79
jmp 0x1003a9c9
jmp 0x1003a9c0
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 0x1003aaa9
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1003a9c0
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 [0x100560c4]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x100560c4], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8