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

Disassembly:
sub esp, 0x28
mov eax, dword [0x4dc00c]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x4b7b42
cmp byte [esi + 0x3d], 0
je 0x4b7b42
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4b7b2f
mov ecx, dword [esi + 0x38]
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x4b7af3
sub eax, 1
je 0x4b7af7
sub eax, 2
jne 0x4b7b2f
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004cbdc9
add esp, 0x28
ret
mov byte [esi + 0x3d], 0
mov edi, dword [esp + 8]
lea eax, [esp + 0xc]
sub edi, eax
je 0x4b7b17
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4b7b2f
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004cbdc9
add esp, 0x28
ret
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004cbdc9
add esp, 0x28
ret
mov ecx, dword [esp + 0x28]
mov al, 1
pop esi
xor ecx, esp
call fcn.004cbdc9
add esp, 0x28
ret

Function at 0x4b8e80
Capabilities:
Create thread

Disassembly:
push esi
push edi
push 4
mov esi, ecx
call fcn.004cbddc
mov edx, dword [esp + 0x10]
lea edi, [esi + 4]
push edi
push 0
push eax
push 0x4b8f50
push 0
push 0
mov dword [eax], edx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x1c
mov dword [esi], eax
test eax, eax
jne 0x4b8eba
push 6
mov dword [edi], eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
pop edi
pop esi
ret 4
Function at 0x4c25c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x20]
xorps xmm0, xmm0
push ebx
mov ebx, ecx
mov dword [esp + 0xc], edx
push ebp
xor eax, eax
push esi
movups xmmword [ebx], xmm0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
push edi
test edx, edx
jne 0x4c25f7
mov dword [ebx + 0x10], edx
mov word [ebx + edx*2], ax
jmp 0x4c2626
cmp edx, 7
ja 0x4c2616
xor eax, eax
mov dword [ebx + 0x10], edx
mov ecx, edx
mov edi, ebx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor eax, eax
mov word [ebx + edx*2], ax
jmp 0x4c2626
push ecx
push edx
mov byte [esp + 0x1c], al
push dword [esp + 0x1c]
push edx
call fcn.004c81f0
mov ebp, dword [0x4dc86c]
xor edi, edi
mov eax, dword [ebp + 0x3c]
mov eax, dword [eax + ebp + 0x78]
add eax, ebp
mov dword [esp + 0x14], eax
mov esi, dword [eax + 0x20]
add esi, ebp
mov eax, dword [esi]
mov edx, 0x7d42504b
add eax, ebp
mov cl, byte [eax]
inc eax
test cl, cl
je 0x4c266d
movsx ecx, cl
lea eax, [eax + 1]
xor ecx, edx
imul edx, ecx, 0x1000193
mov cl, byte [eax - 1]
test cl, cl
jne 0x4c2650
cmp edx, 0x1d96ecd0
je 0x4c2673
inc edi
add esi, 4
jmp 0x4c2640
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + ebp]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, ebx
mov edx, dword [eax + ebp]
add edx, ebp
cmp dword [ebx + 0x14], 8
jb 0x4c2696
mov ecx, dword [ebx]
push dword [esp + 0x18]
cmp dword [esp + 0x38], 0x10
lea eax, [esp + 0x24]
push ecx
cmovae eax, dword [esp + 0x28]
push 0xffffffffffffffff
push eax
push 0
push 0
call edx
mov ecx, dword [esp + 0x34]
cmp ecx, 0x10
jb 0x4c26ea
mov edx, dword [esp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4c26e0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4c26e0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004cc05d
add esp, 8
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xc
ret
Function at 0x4c2700
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ecx
push esi
mov esi, dword [sym.imp.USER32.dll_OpenClipboard]
push edi
push 0
call esi
test eax, eax
je 0x4c2772
push 0
call esi
mov esi, dword [sym.imp.USER32.dll_CloseClipboard]
test eax, eax
je 0x4c2721
call esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [esp + 0x20]
inc eax
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4c2770
cmp dword [esp + 0x24], 0x10
lea ecx, [esp + 0x10]
mov eax, dword [esp + 0x20]
cmovae ecx, dword [esp + 0x10]
inc eax
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call esi
mov ecx, dword [esp + 0x24]
cmp ecx, 0x10
jb 0x4c27aa
mov edx, dword [esp + 0x10]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4c27a0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4c27a0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004cc05d
add esp, 8
pop edi
pop esi
pop ecx
ret
Function at 0x4c3490
Capabilities:
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
mov eax, dword [0x4dc00c]
xor eax, esp
mov dword [esp + 0x64], eax
movaps xmm0, xmmword [0x4d6ec0]
xor ecx, ecx
push ebx
push ebp
push esi
push edi
movups xmmword [esp + 0x14], xmm0
mov dword [esp + 0x24], 0x1c25220f
mov dword [esp + 0x28], 0x122d006c
mov dword [esp + 0x2c], 0x1e651465
mov byte [esp + 0x30], 0
nop dword [eax]
mov al, byte [esp + 0x14]
xor byte [esp + ecx + 0x15], al
inc ecx
cmp ecx, 0x1b
jb 0x4c34d0
xorps xmm0, xmm0
mov byte [esp + 0x30], 0
lea ecx, [esp + 0x15]
mov dword [esp + 0x44], 0
movups xmmword [esp + 0x34], xmm0
mov dword [esp + 0x48], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c3502
sub ecx, edx
lea eax, [esp + 0x15]
push ecx
push eax
lea ecx, [esp + 0x3c]
call fcn.004b8860
mov esi, dword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
call esi
mov ebx, 0xe
mul ebx
cmp eax, ebx
jae 0x4c353b
cmp eax, 4
jae 0x4c353b
call esi
mul ebx
cmp eax, 4
jb 0x4c3532
mov ebp, dword [esp + 0x34]
lea ecx, [edx - 0x7ffffff9]
cmp ecx, 0x80000000
lea eax, [ecx - 0x80000000]
lea edi, [ecx - 0x80000000]
cmovae edi, eax
xor ebx, ebx
mov dword [esp + 0x10], edi
test edi, edi
jle 0x4c35b8
call esi
mov ecx, 0xe
mul ecx
cmp eax, ecx
jae 0x4c3585
cmp eax, 4
jae 0x4c3585
mov edi, ecx
call esi
mul edi
cmp eax, 4
jb 0x4c3578
mov edi, dword [esp + 0x10]
lea ecx, [edx - 0x7ffffff9]
cmp ecx, 0x80000000
lea eax, [ecx - 0x80000000]
lea edx, [ecx - 0x80000000]
cmovae edx, eax
cmp dword [esp + 0x48], 0x10
lea eax, [esp + 0x34]
cmovae eax, ebp
mov al, byte [edx + eax]
mov byte [esp + ebx + 0x4c], al
inc ebx
cmp ebx, edi
jl 0x4c3564
cmp edi, 0x28
jae 0x4c36a0
push 0xf00
mov byte [esp + edi + 0x50], 0
call fcn.004cc06b
mov ebx, dword [0x4dc86c]
add esp, 4
xor edi, edi
mov dword [esp + 0x10], eax
mov ecx, dword [ebx + 0x3c]
mov ebp, dword [ecx + ebx + 0x78]
mov esi, dword [ebp + ebx + 0x20]
add esi, ebx
nop dword [eax]
mov eax, dword [esi]
mov edx, 0x8638b1ef
add eax, ebx
mov cl, byte [eax]
inc eax
test cl, cl
je 0x4c361d
movsx ecx, cl
lea eax, [eax + 1]
xor ecx, edx
imul edx, ecx, 0x1000193
mov cl, byte [eax - 1]
test cl, cl
jne 0x4c3600
cmp edx, 0x37124524
je 0x4c3623
inc edi
add esi, 4
jmp 0x4c35f0
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x4c]
push 0x780
push esi
push 0xffffffffffffffff
push eax
mov eax, dword [ebp + ebx + 0x24]
push 0
push 0
lea eax, [eax + edi*2]
movzx ecx, word [eax + ebx]
mov eax, dword [ebp + ebx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + ebx]
add eax, ebx
call eax
mov eax, dword [esp + 0x48]
cmp eax, 0x10
jb 0x4c368b
mov edx, dword [esp + 0x34]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x4c3681
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4c3681
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004cc05d
add esp, 8
mov ecx, dword [esp + 0x74]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004cbdc9
add esp, 0x6c
ret
call fcn.004cc1b9
int3
Function at 0x4cc86e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4cc8ad
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4cc8ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4cc8ad
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4cc8ad
cmp dword [ecx + 0x74], 0xe
jbe 0x4cc8ad
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x410ac5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a044]
jne 0x410acf
repz ret
jmp fcn.00412994

Function at 0x41c7a3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041565d
and dword [ebp - 4], 0
cmp dword [0x42c704], 0
mov ebx, eax
jne 0x41c854
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41c905
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41c905
push eax
call fcn.004155eb
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42c704], eax
call esi
push eax
call fcn.004155eb
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42c708], eax
call esi
push eax
call fcn.004155eb
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42c70c], eax
call esi
push eax
call fcn.004155eb
pop ecx
mov dword [0x42c714], eax
test eax, eax
je 0x41c854
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004155eb
pop ecx
mov dword [0x42c710], eax
mov eax, dword [0x42c710]
cmp eax, ebx
je 0x41c8ac
cmp dword [0x42c714], ebx
je 0x41c8ac
push eax
call fcn.00415666
push dword [0x42c714]
mov esi, eax
call fcn.00415666
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41c8ac
test edi, edi
je 0x41c8ac
call esi
test eax, eax
je 0x41c8a3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41c8a3
test byte [ebp - 0xc], 1
jne 0x41c8ac
or dword [ebp + 0x10], 0x200000
jmp 0x41c8e5
mov eax, dword [0x42c708]
cmp eax, ebx
je 0x41c8e5
push eax
call fcn.00415666
pop ecx
test eax, eax
je 0x41c8e5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41c8e5
mov eax, dword [0x42c70c]
cmp eax, ebx
je 0x41c8e5
push eax
call fcn.00415666
pop ecx
test eax, eax
je 0x41c8e5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42c704]
call fcn.00415666
pop ecx
test eax, eax
je 0x41c905
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41c907
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10013300
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x100315b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [esp + 0x40]
push ebx
push esi
lea ecx, [esp + 8]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.10013610
mov esi, eax
lea edx, [esp + 0x48]
xor ebx, ebx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], 0x100568cc
call fcn.10015dc4
mov ecx, dword [0x10033164]
mov al, byte [esi]
push ecx
push ebx
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 1
mov byte [esp + 0x30], al
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.1000ebe0
mov esi, 0x100331a0
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0xc]
mov byte [esp + 0x3c], 3
cmp eax, ebx
je 0x100133a7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x1001339e
cmp al, 0xff
je 0x1001339e
dec al
mov byte [ecx], al
jmp 0x100133a7
push ecx
call fcn.100146a9
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.1002fd00
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], 0xffffffff
cmp eax, ebx
mov dword [esp + 0x18], esi
je 0x100133ed
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x100133e4
cmp al, 0xff
je 0x100133e4
dec al
mov byte [ecx], al
jmp 0x100133ed
push ecx
call fcn.100146a9
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.10015e4b
mov ecx, dword [esp + 0x34]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x1002a170
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x10031ce0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.1001eeef
mov eax, dword [0x10033a04]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.1001ee21
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.1002ac80
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x1002a217
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x1002a20e
cmp al, 0xff
je 0x1002a20e
dec al
mov byte [ecx], al
jmp 0x1002a217
push ecx
call fcn.100146a9
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x1002a248
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x1002a23f
cmp al, 0xff
je 0x1002a23f
dec al
mov byte [ecx], al
jmp 0x1002a248
push ecx
call fcn.100146a9
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x1005fc10
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x1005fd1c
test eax, eax
je 0x1005fd1c
push esi
push edi
mov ecx, 0x10
mov esi, 0x1007afe8
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
add esi, eax
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], 0
mov ecx, eax
test edx, edx
jbe 0x1005fd03
lea edi, [eax + 4]
jmp 0x1005fc67
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x1005fc7c
mov dword [ebp - 4], 2
jmp 0x1005fc9d
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x1005fc93
mov dword [ebp - 4], 1
jmp 0x1005fc9d
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0x1005fd13
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
inc ecx
inc edi
mov byte [ecx], bl
mov ebx, dword [ebp - 4]
inc ecx
inc edi
cmp ebx, 1
jbe 0x1005fcd6
mov byte [ecx], 0x3d
jmp 0x1005fce2
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0x1005fced
mov byte [ecx], 0x3d
jmp 0x1005fcf3
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x1005fc64
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001450
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1003800c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1000150c
cmp byte [esi + 0x3d], 0
je 0x1000150c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x100014fa
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x100014c1
sub eax, 1
je 0x100014c5
sub eax, 2
jne 0x100014fa
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002b830
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100014e3
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x100014fa
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002b830
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002b830
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1002b830
mov esp, ebp
pop ebp
ret
Function at 0x10001b00
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1003800c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push eax
push 0x40
push 4
push esi
mov byte [ebp - 8], 0xe9
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 8]
push eax
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push 4
push esi
call edi
mov eax, dword [ebp + 0xc]
sub eax, esi
mov dword [ebp - 0xc], 0
sub eax, 5
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
inc esi
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push esi
call edi
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push 4
push esi
call edi
mov ebx, dword [ebp + 0x10]
cmp ebx, 5
jle 0x10001bfc
mov esi, dword [ebp + 8]
add esi, 5
add ebx, 0xfffffffb
lea eax, [ebp - 0xc]
mov byte [ebp - 8], 0x90
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
call edi
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push 4
push esi
call edi
inc esi
sub ebx, 1
jne 0x10001bb5
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002b830
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10001c10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1003800c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1002b830
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100020e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x1000210c
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 + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x10002134
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x1000213a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x100021a2
jg 0x10002151
test esi, esi
je 0x100021a2
test ecx, ecx
jl 0x1000219d
jg 0x1000215b
test eax, eax
je 0x1000219d
cmp edi, ecx
jg 0x1000216f
jl 0x10002165
cmp esi, eax
jae 0x1000216f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x100021a5
mov ecx, dword [ebp + 8]
jmp 0x100021af
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x100021c9
jg 0x100021af
test esi, esi
je 0x100021c9
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x100021c9
push eax
push esi
push 1
push ecx
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 + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc