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

Disassembly:
mov eax, 0x98
call fcn.13031f00
mov eax, dword [0x1315d264]
xor eax, esp
mov dword [esp + 0x94], eax
mov ecx, dword [esp + 0xa0]
mov eax, dword [esp + 0x9c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0xb0]
push edi
mov edi, dword [ecx + 4]
mov dword [esp + 0x10], edi
sub edi, esi
xor ebx, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], edi
cmp dword [esp + 0xb8], esi
jae 0x13107ec4
push str.orig_len___md_size
push 0x10c
push str.._ssl_s3_cbc.c
call fcn.13094130
add esp, 0xc
cmp esi, 0x40
jbe 0x13107ee0
push str.md_size___EVP_MAX_MD_SIZE
push 0x10d
push str.._ssl_s3_cbc.c
call fcn.13094130
add esp, 0xc
mov eax, dword [esp + 0xb8]
lea ebp, [esp + 0x24]
neg ebp
and ebp, 0x3f
lea edx, [esi + 0x100]
lea ebp, [esp + ebp + 0x24]
cmp eax, edx
jbe 0x13107f08
mov ebx, eax
sub ebx, esi
sub ebx, 0x100
mov eax, esi
and eax, 0xfffffffe
shl eax, 0x17
sub eax, ebx
add eax, edi
xor edx, edx
div esi
push esi
push 0
push ebp
mov edi, edx
mov dword [esp + 0x28], edi
call fcn.130309b0
add esp, 0xc
xor ecx, ecx
cmp ebx, dword [esp + 0xb8]
jae 0x13107fa5
mov eax, dword [esp + 0xb0]
mov eax, dword [eax + 0xc]
mov edx, dword [esp + 0x10]
add eax, ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xb8]
mov edi, ebx
sub edi, edx
sub edx, dword [esp + 0x14]
sub eax, ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
jmp 0x13107f68
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov bl, byte [ebx]
mov eax, edi
not eax
sar eax, 0x1f
add edx, edi
not al
and al, bl
not edx
sar edx, 0x1f
and al, dl
or byte [ecx + ebp], al
mov edx, 1
add dword [esp + 0x18], edx
add ecx, edx
mov eax, ecx
sub eax, esi
sar eax, 0x1f
and ecx, eax
add edi, edx
sub dword [esp + 0x10], edx
jne 0x13107f64
mov edi, dword [esp + 0x1c]
xor eax, eax
test esi, esi
jbe 0x13107fd1
jmp 0x13107fb0
mov ecx, edi
xor ecx, 0x20
mov dl, byte [ecx + ebp]
mov cl, byte [edi + ebp]
mov edx, dword [esp + 0x20]
mov byte [edx + eax], cl
inc edi
mov ecx, edi
sub ecx, esi
sar ecx, 0x1f
inc eax
and edi, ecx
cmp eax, esi
jb 0x13107fb0
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1303468b
add esp, 0x98
ret
Function at 0x13108e70
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.13031f00
push ebx
mov ebx, dword [esp + 0x48]
push ebp
push esi
mov esi, dword [esp + 0x54]
push edi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
xor ebp, ebp
push ebp
xor edi, edi
call fcn.130fe4a0
add esp, 0xc
test eax, eax
je 0x13108ec9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
shl edx, 8
test eax, edx
je 0x13108eb1
inc edi
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
inc ebp
push ebp
call fcn.130fe4a0
add esp, 0xc
test eax, eax
jne 0x13108ea1
mov eax, dword [esp + 0x4c]
cdq
idiv edi
mov edi, dword [esp + 0x48]
push esi
push 0
mov ebp, eax
mov eax, dword [esp + 0x58]
push eax
call fcn.130309b0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
mov dword [esp + 0x60], 0
call fcn.130fe4a0
add esp, 0x18
test eax, eax
je 0x13108fb8
jmp 0x13108f10
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
shl eax, 8
test ecx, eax
je 0x13108f94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x13108fc5
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push esi
push ebx
push edx
mov edx, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x50]
and edx, 1
add edx, ebp
push edx
mov edx, dword [esp + 0x5c]
push edi
push eax
call fcn.13108a70
add esp, 0x34
test eax, eax
je 0x13108fe3
add edi, ebp
test esi, esi
jle 0x13108f94
mov eax, dword [esp + 0x50]
mov ecx, ebx
sub ecx, eax
mov edx, esi
mov bl, byte [ecx + eax]
xor byte [eax], bl
inc eax
sub edx, 1
jne 0x13108f85
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
inc eax
push edx
push eax
mov dword [esp + 0x54], eax
call fcn.130fe4a0
add esp, 0xc
test eax, eax
jne 0x13108f10
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
push 0x109
push str.._ssl_t1_enc.c
push 0x146
push 0x11c
push 0x14
call fcn.13087f60
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x1310bce0
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov edx, dword [edi + 0x1c]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push edi
mov esi, eax
call fcn.13083770
add esp, 8
test esi, esi
jg 0x1310bd3e
je 0x1310bd1c
cmp esi, 0xffffffff
jne 0x1310bd3e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 4
je 0x1310bd33
cmp eax, 0xb
je 0x1310bd33
cmp eax, 0x2733
jne 0x1310bd3e
push 0xa
push edi
call fcn.13083790
add esp, 8
pop edi
mov eax, esi
pop esi
ret
Function at 0x402a80
Capabilities:
Create directory
Get common file path
Set file attributes
Timestomp file

Disassembly:
sub esp, 0x224
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
mov esi, dword [esp + 0x230]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x2a]
push ecx
mov word [esp + 0x2c], ax
call fcn.00403bf0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
add esp, 0xc
push 0
push 0x2000000
push 3
push 0
push 3
push 0
push esi
call ebx
cmp eax, 0xffffffff
je 0x402af7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00403be0
add esp, 0x224
ret
push ebp
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 7
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x2000000
push 3
push 0
push 5
push 0xc0000000
push esi
call ebx
mov ebp, eax
cmp ebp, 0xffffffff
je 0x402be8
push edi
push 0x208
lea edx, [esp + 0x2c]
push 0
push edx
call fcn.00403bf0
add esp, 0xc
push 0x104
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edi, [esp + 0x28]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x402b56
push 0
push 0x80
push 3
push 0
push 1
mov ecx, 7
mov esi, 0x40d378
rep movsd dword es:[edi], dword [esi]
push 0x80000000
lea ecx, [esp + 0x40]
push ecx
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
cmp esi, 0xffffffff
je 0x402bc7
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x402bc4
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call edi
push ebp
call edi
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00403be0
add esp, 0x224
ret
mov ecx, dword [esp + 0x22c]
pop ebp
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00403be0
add esp, 0x224
ret

Function at 0x4034d1
Capabilities:
Check mutex on windows

Disassembly:
idiv edi
inc dword [ebx - 0x3f7afb3c]
je 0x40359d
ljmp 0x552a:0x244c8d40
push str.LDLLMAIN
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x403853
jmp 0x4035c0
mov esi, dword [esp + 0x10]
push esi
call fcn.00403b60
add esp, 4
cmp dword [esi + 4], ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebp
jle 0x20403833
retf
xor eax, eax
mov ecx, dword [esp + 0x10b4]
pop edi
pop esi
pop ebp
pop ebx
xor esp, ecx
in al, dx
jns 0x403868
add byte [eax], al
add esp, 0x10a8
ret 0x10
les ebp, [eax - 0x3dfffff0]
adc byte [eax], al
Function at 0x403890
Capabilities:
Get disk information

Disassembly:
sub esp, 0x80470
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x46c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x480]
xor ebx, dword [ebx + 0xd068]
add byte [ecx + 0x7489045e], cl
and al, 0x18
add dword [esi - 0x17a9acf8], 0x2a
add eax, dword [eax]
add byte [eax], ch
add al, 4
add byte [ebp + 0x882484], cl
add byte [eax], al
push ebx
push eax
mov dword [esp + 0x28], ebx
call fcn.00403bf0
add esp, 0x18
lea ecx, [esp + 0x78]
push ecx
push 0x200
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea ebp, [esp + 0x78]
cmp word [esp + 0x78], bx
je 0x403a4f
mov dword [esp + 0xc], esi
push edi
xor eax, eax
mov esp, eax
and al, 0x54
mov dword [esp + 0x18], eax
mov dword [esp + 0x5c], eax
and al, 0x5c
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [eax + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov edi, edi
movzx ecx, word [eax + str.._]
mov word [esp + eax + 0x54], cx
add eax, 2
cmp cx, bx
jne 0x403910
mov eax, ebp
mov edx, ebp
jmp 0x403950
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403950
lea edi, [esp + 0x54]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x403964
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x54]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403987
push ebx
push ebx
push 2
sub eax, edx
push ebx
sar eax, 1
xor edx, edx
push 3
mov word [esp + eax*2 + 0x66], dx
push 0x80000000
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
lea ecx, [eax + 0x24]
and byte [ecx + 0x6a], dl
sub byte [ebp + 0x52382454], cl
mov esi, eax
push 0x1c
lea edx, [esp + 0x34]
push eax
push 0x402d1400
push esi
mov dword [esp + 0x40], ebx
mov dword [esp], ebx
inc esp
mov dword [esp + 0x50], 0x28
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x403a24
cmp dword [esp + 0x48], 7
jne 0x403a24
mov edx, dword [esp + 0x10]
pop ebp
sub edx, ebp
lea eax, [esp]
dec edi
mov bh, 8
mov word [edx + eax], cx
add eax, 2
cmp cx, word [ebx + 0x448bf175]
and al, 0x14
wait
dec esp
and al, 0x18
inc eax
add dword [esp + 0x10], 8
mov dword [esp + 0x14], eax
mov dword [ecx + 0xc], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403a30
sub eax, dword [edx + 0x3966f8d1]
pop esp
inc ebp
add cl, byte [ebp + 0xf02456c]
test esi, esi
invalid
mov ecx, dword [esp + 0x478]
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00403be0
add esp, 0x470
ret
Function at 0x406614
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push ss
push edi
xor esp, esi
xor edi, edi
mov dword [ebp - 4], edi
cmp ebx, dword [edi*8 + 0x4102b0]
je 0x40663a
inc edi
mov dword [ebp - 4], edi
cmp edi, 0x13
jb 0x406628
cmp edi, 0x17
jae 0x4067ba
push 3
call fcn.0040a0df
pop ecx
cmp eax, 1
shld dword [ecx + eax], esi, 0
add byte [edx + 3], ch
call fcn.004090df
pop ecx
test eax, eax
jne 0x40666d
cmp dword [0x410010], 1
je 0x406788
cmp ebx, 0xfc
je 0x4067ba
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov edi, 0x4113a8
push edi
call fcn.0040a077
add esp, 0xc
test eax, eax
je 0x4066a3
push esi
push esi
push esi
push esi
push esi
call fcn.00405268
add esp, 0x14
push 0x104
mov esi, 0x4113c1
push esi
push 0
mov byte [0x4114c5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4066e7
push str._program_name_unknown_
push 0x2fb
push esi
call 0x50a077
add esp, 0xc
test eax, eax
je 0x4066e7
xor eax, eax
push eax
push eax
push edx
push eax
push eax
call 0xf0403278
add esp, 0x14
push esi
call fcn.0040a100
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40672c
push esi
call fcn.00409100
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4116bc
push 0x40dca4
sub ecx, eax
push ecx
push eax
call fcn.00409fc2
add esp, 0x14
test eax, eax
je 0x40672c
adc esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00405278
add esp, 0x14
jmp 0x40672e
xor esi, esi
push 0x40dca0
push ebx
push edi
call fcn.00409f4e
add esp, 0xc
test eax, eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
stosd dword es:[edi], eax
fdivr dword [ebx]
fidiv word [ebp - 0x7d]
cli
push dword [edi + ebx + 0x6a]
add byte [ebp - 0x72af07bb], cl
xor al, 0xfd
mov ah, 2
inc ecx
add bh, bh
call fcn.00409100
pop ecx
push eax
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
dec ebx
leave
ret
Function at 0x10009730
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x100b700c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x100097b1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0xd0]
push eax
push 0x40
push 4
push esi
call edi
mov eax, dword [esi]
push 0
push dword [ebp - 0xd0]
mov dword [ebp - 0xcc], eax
push 4
push esi
call edi
xor eax, eax
nop word [eax + eax]
xor byte [ebp + eax - 0xcc], al
inc eax
cmp eax, 4
jb 0x10009780
lea eax, [ebp - 0xd0]
push eax
push 0x40
push 4
push esi
call edi
mov eax, dword [ebp - 0xcc]
push 0
push dword [ebp - 0xd0]
mov dword [esi], eax
push 4
push esi
call edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1007ea19
mov esp, ebp
pop ebp
ret 4

Function at 0x100097d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x100b700c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x10009817
mov eax, dword [eax]
mov dword [ebp - 0xcc], eax
xor eax, eax
xor byte [ebp + eax - 0xcc], al
inc eax
cmp eax, 4
jb 0x100097f4
mov eax, dword [ebp - 0xcc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007ea19
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.1007ea19
mov esp, ebp
pop ebp
ret 4

Function at 0x10009830
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007fd4d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x100b700c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
cmp dword [0x100b88e8], 0x10
mov eax, 0x100b88d4
cmovae eax, dword [0x100b88d4]
cmp byte [eax], 0
je 0x1000994a
mov ecx, dword [ebp + 8]
cmp byte [ecx], 0
je 0x1000994a
cmp dword [0x100b8514], 0x10
mov eax, 0x100b8500
cmovae eax, dword [0x100b8500]
cmp byte [eax], 0
je 0x1000994a
mov esi, 0x100bed30
mov edx, ecx
sub esi, ecx
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [esi + edx - 1], al
test al, al
jne 0x100098a6
mov edx, 0x100bad08
sub edx, ecx
nop word [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x100098c0
mov ecx, dword [0x100bf5f8]
mov edx, 0x100b88d4
cmp dword [0x100b88e8], 0x10
push 0x100bed30
cmovae edx, dword [0x100b88d4]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
test eax, eax
jne 0x1000994a
mov ecx, 0x98
xor edx, edx
nop dword [eax]
mov al, byte [edx + 0x100a4b08]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x28], al
and ecx, 0x800000ff
jns 0x1000991d
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x14
jl 0x10009900
mov byte [ebp - 0x14], 0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 0
mov eax, dword [0x100ba710]
mov esi, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x4c]
mov ecx, dword [0x100ba710]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [esi]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10009960
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007fd7d
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100b700c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea esi, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
cmovae esi, dword [ebp + 8]
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x100099a0
sub esi, ecx
push esi
call fcn.1007f272
add esp, 4
xor edx, edx
mov edi, eax
test esi, esi
js 0x100099cb
nop word [eax + eax]
xor byte [edx + edi], dl
lea ecx, [edx + edi]
inc edx
cmp edx, esi
jle 0x100099c0
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x10009a01
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100099f7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100099f7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007f264
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18

Function at 0x1000aae0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100b700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
js 0x1000ab17
nop
lea eax, [ebp - 8]
push eax
push 0x40
push 4
lea eax, [ebx + esi]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
inc esi
cmp esi, edi
jle 0x1000ab00
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007ea19
mov esp, ebp
pop ebp
ret 8

Function at 0x1000add0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100b700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
mov ebx, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
mov dword [edi], ecx
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
xor ecx, ebp
pop ebx
call fcn.1007ea19
mov esp, ebp
pop ebp
ret 8
Function at 0x1000ae20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100ae670
push 0x1007ebcd
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x100b700c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0x40
mov edi, dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp + 0xc]
sub eax, esi
sub eax, 5
mov byte [esi], 0xe8
mov dword [esi + 1], eax
mov eax, 5
mov dword [ebp - 0x28], eax
cmp eax, edi
jae 0x1000ae92
mov byte [esi + eax], 0x90
inc eax
jmp 0x1000ae84
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1000aeac
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1007ea19
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10017db0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100b700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov eax, edx
mov dword [ebp - 0xc], eax
cmp ebx, 0x1000
jbe 0x10017e07
test eax, eax
je 0x10017e07
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x10017e06
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push dword [ebp - 0xc]
push ebx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1007ea19
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100b700c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], edi
cmp eax, 0x1000
jbe 0x10017eec
xor ecx, ecx
mov eax, edi
add eax, 5
push ebx
setb cl
neg ecx
or ecx, eax
push esi
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
lea ecx, [edi + 5]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, eax
lea eax, [ebp - 0xc]
mov ebx, esi
push eax
push 0x40
push ecx
push esi
call edi
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push esi
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov ecx, dword [ebp - 0x10]
add esi, edx
mov eax, edx
add ecx, 0xfffffffb
sub eax, esi
add eax, ecx
mov dword [esi + 1], eax
lea eax, [ebp - 8]
push eax
push 0x40
mov byte [esi], 0xe9
mov esi, dword [ebp - 0x10]
push edx
push esi
call edi
mov eax, dword [ebp - 0x18]
sub eax, esi
mov byte [esi], 0xe9
sub eax, 5
mov dword [esi + 1], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0x14]
push esi
call edi
push 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop esi
mov eax, ebx
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007ea19
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.1007ea19
mov esp, ebp
pop ebp
ret

Function at 0x100180c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100b700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
cmp ebx, 0x1000
jbe 0x1001811e
test edi, edi
je 0x1001811e
push esi
push edi
call fcn.1007f272
add esp, 4
mov esi, eax
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push ebx
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007ea19
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.1007ea19
mov esp, ebp
pop ebp
ret 8