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

Disassembly:
push ecx
push esi
mov esi, dword [0x100ce8a0]
test esi, esi
je 0x1009943a
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 0x10099423
pop edi
pop esi
pop ecx
ret

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

Disassembly:
sub esp, 0x1c
push ebx
push esi
mov esi, eax
movzx eax, si
push edi
test eax, eax
je 0x100994a6
lea esi, [eax + esi - 0x10000]
cmp esi, dword [esp + 0x2c]
jae 0x1009954f
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 0x100994d4
mov esi, 0x80010000
jmp 0x10099545
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 0x1009954f
cmp dword [esp + 0x1c], 0x10000
mov eax, dword [esp + 0x18]
jne 0x10099530
cmp eax, 0x10000
jb 0x10099530
push 0x40
push 0x3000
push 0x10000
push esi
call edi
test eax, eax
jne 0x10099551
add esi, 0x10000
jmp 0x10099545
mov edx, dword [esp + 0xc]
lea esi, [edx + eax]
movzx eax, si
test eax, eax
je 0x10099545
lea esi, [esi + eax - 0x10000]
cmp esi, dword [esp + 0x2c]
jb 0x100994c0
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x10099560
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
push edi
test eax, eax
je 0x10099578
sub esi, eax
cmp esi, dword [esp + 0x30]
jbe 0x1009960b
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 0x100995a7
mov esi, 0x4fff0000
jmp 0x10099605
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 0x1009960b
cmp dword [esp + 0x20], ebp
jne 0x100995f2
cmp dword [esp + 0x1c], ebp
jb 0x100995f2
push 0x40
push 0x3000
push ebp
push esi
call edi
test eax, eax
jne 0x1009960d
sub esi, ebp
jmp 0x10099605
mov esi, dword [esp + 0x14]
add esi, 0xffff0000
movzx eax, si
test eax, eax
je 0x10099605
sub esi, eax
cmp esi, dword [esp + 0x30]
ja 0x10099593
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x10099620
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebx
push ebp
push esi
mov esi, eax
push edi
lea ebx, [esi - 0x7ff80000]
cmp esi, 0x7ff80000
ja 0x10099639
mov ebx, 0x10000
lea ebp, [esi + 0x7ff80000]
cmp esi, 0x80000000
jb 0x1009964c
mov ebp, 0xfff80000
mov eax, dword [0x100ce8a4]
mov edx, dword [0x100ce8a0]
test eax, eax
jne 0x10099666
test edx, edx
je 0x10099679
mov eax, edx
mov dword [0x100ce8a4], eax
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x10099679
cmp ecx, ebx
jb 0x10099679
cmp ecx, ebp
jbe 0x10099767
mov eax, edx
mov dword [0x100ce8a4], eax
test edx, edx
je 0x100996a7
test eax, eax
je 0x1009969b
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1009969b
cmp ecx, ebx
jb 0x1009969b
cmp ecx, ebp
jbe 0x10099762
mov eax, dword [eax + 4]
test eax, eax
jne 0x10099688
mov dword [0x100ce8a4], eax
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, 0x40000000
jbe 0x100996e2
lea edi, [esi - 0x40000000]
push esi
mov eax, edi
call fcn.10099490
add esp, 4
test eax, eax
jne 0x10099726
push ebx
mov eax, edi
call fcn.10099560
add esp, 4
test eax, eax
jne 0x10099726
cmp esi, 0x40000000
jae 0x10099708
lea edi, [esi + 0x40000000]
push esi
mov eax, edi
call fcn.10099560
add esp, 4
test eax, eax
jne 0x10099726
push ebp
mov eax, edi
call fcn.10099490
add esp, 4
test eax, eax
jne 0x10099726
push ebx
mov eax, esi
call fcn.10099560
add esp, 4
test eax, eax
jne 0x10099726
push ebp
mov eax, esi
call fcn.10099490
add esp, 4
test eax, eax
je 0x1009978f
xor edx, edx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov ecx, dword [0x100ce8a0]
mov dword [eax + 4], ecx
mov dword [0x100ce8a4], eax
mov dword [0x100ce8a0], eax
lea ecx, [eax + 0xffa8]
mov esi, 0x38b
nop
mov dword [ecx + 0x40], edx
mov edx, ecx
sub ecx, 0x48
sub esi, 1
jne 0x10099750
mov dword [eax + 8], edx
jmp 0x10099767
mov dword [0x100ce8a4], eax
mov esi, dword [eax + 8]
cmp esi, ebx
jb 0x1009978f
cmp esi, ebp
ja 0x1009978f
mov edx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [eax + 8], edx
call sub.MSVCR90.dll_memset
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x100997d0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov eax, dword [0x100ce8a0]
push ebx
mov ebx, 0x100ce8a0
test eax, eax
je 0x1009983b
push esi
push edi
cmp dword [eax], 0x52727464
jne 0x10099830
lea edi, [eax + 0x10000]
xor edx, edx
lea esi, [eax + 0x88]
mov ecx, dword [esi]
test ecx, ecx
je 0x10099805
cmp ecx, eax
jb 0x10099830
cmp ecx, edi
jae 0x10099830
inc edx
add esi, 0x48
cmp edx, 0x38d
jb 0x100997f7
mov ecx, dword [eax + 4]
push 0x8000
push 0
push eax
mov dword [ebx], ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [0x100ce8a4], 0
jmp 0x10099833
lea ebx, [eax + 4]
mov eax, dword [ebx]
test eax, eax
jne 0x100997e1
pop edi
pop esi
pop ebx
ret
Function at 0x100998e0
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x100ce8b0], eax
je 0x100998f6
mov eax, 0x10dd
pop ecx
ret
push ebx
push ebp
push esi
mov esi, dword [0x100ce8c0]
xor ebp, ebp
push edi
cmp esi, ebp
je 0x1009995e
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 0x1009994d
mov ebx, dword [esi + 0x10]
cmp ebx, ebp
je 0x1009994d
push 0x48
push ebp
mov edi, ebx
push ebx
and edi, 0xffff0000
call sub.MSVCR90.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.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, edi
cmp edi, ebp
jne 0x10099906
mov dword [0x100ce8c0], ebp
call fcn.10099440
mov esi, dword [0x100ce8bc]
cmp esi, ebp
je 0x10099997
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.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, edi
cmp edi, ebp
jne 0x10099980
pop edi
pop esi
mov dword [0x100ce8bc], ebp
mov dword [0x100ce8b0], ebp
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x10099c90
Capabilities:
Suspend thread

Disassembly:
push edi
mov edi, eax
mov eax, dword [0x100ce8b4]
test eax, eax
jne 0x10099d05
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp edi, eax
jne 0x10099caa
xor eax, eax
pop edi
ret
push esi
push 8
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
jne 0x10099cc0
lea edi, [eax + 8]
jmp 0x10099cdd
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x10099cf2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
pop esi
mov dword [0x100ce8b4], edi
mov eax, edi
mov dword [0x100ce8b8], 0
pop edi
ret
mov eax, dword [0x100ce8bc]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [0x100ce8bc], esi
xor eax, eax
pop esi
pop edi
ret
Function at 0x10099f70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x100ce8b0], eax
je 0x10099f8c
mov eax, 0x10dd
pop ebp
ret 8
mov eax, dword [0x100ce8b4]
test eax, eax
jne 0x1009a082
test ebp, ebp
jne 0x10099fa4
lea eax, [ebp + 6]
pop ebp
ret 8
cmp dword [ebp], 0
jne 0x10099fbe
mov eax, 6
mov dword [0x100ce8b8], ebp
mov dword [0x100ce8b4], eax
pop ebp
ret 8
push ebx
push esi
push edi
push 0x18
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10099fd9
lea esi, [eax + 8]
jmp 0x1009a064
mov ecx, dword [ebp]
call fcn.10099840
mov ecx, dword [esp + 0x18]
mov edi, eax
call fcn.10099840
movzx ecx, byte [edi + 0x36]
mov esi, dword [edi + 0x40]
sub esi, ecx
test ecx, ecx
je 0x1009a056
cmp ecx, 0x1e
ja 0x1009a056
cmp dword [edi + 0x44], eax
jne 0x1009a056
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 0x1009a028
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1009a064
mov edx, dword [0x100ce8c0]
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 [0x100ce8c0], ebx
pop ebx
xor eax, eax
pop ebp
ret 8
cmp dword [0x100ce8a8], 0
mov esi, 9
jne 0x1009a06a
mov dword [0x100ce8b4], esi
test ebx, ebx
je 0x1009a077
push ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
mov eax, esi
pop esi
mov dword [0x100ce8b8], ebp
pop ebx
pop ebp
ret 8

Function at 0x1009a630
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100a11b4
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100cc020]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
or eax, 0xffffffff
xor edi, edi
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], edi
mov dword [esp + 0x14], edi
lea ecx, [esi + 0x14]
mov dword [esi], vtable.TiXmlAttribute.0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov dword [esi + 0x10], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x4c], edi
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x1009ecb4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100cc020]
jne 0x1009ecbe
repz ret
jmp fcn.1009f2d0
Function at 0x1000aeb0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x1000aeb9
ret
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push eax
call dword [sym.imp.kernel32.dll_CreateProcessA]
ret

Function at 0x10013c81
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x10013c90
pop dword [ebp - 0x2c]
mov eax, 0xc24a888
sub eax, 0xfc236bf8
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x3d533
push 0
mov eax, 0x7dfc04fe
sub eax, 0x6dfa23a2
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0x51dd
mov edi, eax
mov ebx, 0x1063e434
add ebx, 0xff9efdcc
add ebx, dword [ebp - 0x2c]
mov esi, 0x35588330
xor dword [ebp - 8], 0x7c6d35cb
mov edx, dword [ebx]
sub dword [ebp - 0xc], edi
sub edx, esi
add dword [ebp - 0x14], 0x4a7d411
mov dword [edi], edx
sub dword [ebp - 0x20], 0xbf8ed72a
add edi, 4
add ebx, 0x7106c759
add ebx, 0x8ef938ab
loop 0x10013ce3
add eax, 0x13a47
xor ebx, ebx
add ebx, eax
add eax, 0xeb68f716
add eax, 0x149708ef
mov ecx, 0x10000000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x10009810
Capabilities:
Get geographical location

Disassembly:
push 0xa0
mov eax, 0x100c95ed
call fcn.100c74ca
mov ebx, ecx
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x2c]
and dword [ebp - 4], 0
push 6
mov dword [ebp - 0xa4], eax
xor eax, eax
pop ecx
rep stosd dword es:[edi], eax
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0xac], ebx
call fcn.10054044
push 8
pop ecx
xor eax, eax
mov byte [ebp - 4], 1
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x64]
call fcn.10053b49
and dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
call fcn.100570f0
mov esi, eax
mov dword [ebp - 0xa8], esi
mov eax, dword [ebp - 0xa4]
mov ecx, eax
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 0x10
jb 0x10009894
mov ecx, dword [eax]
mov eax, dword [eax + 0x10]
lea edx, [ebp - 0x44]
mov edi, dword [esi]
add eax, ecx
push edx
lea edx, [ebp - 0x2c]
push edx
mov edi, dword [edi + 4]
push eax
push ecx
mov ecx, edi
call dword [0x100e97d8]
mov ecx, esi
call edi
test al, al
je 0x10009a08
push str.userId
lea ecx, [ebp - 0x2c]
call fcn.100299ab
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
call fcn.100556b6
push eax
lea ecx, [ebx + 4]
call fcn.100299ab
lea ecx, [ebp - 0xa0]
call fcn.100090b6
push str.firstName
lea ecx, [ebp - 0x2c]
call fcn.100299ab
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
call fcn.100556b6
push eax
lea ecx, [ebx + 0x1c]
call fcn.100299ab
lea ecx, [ebp - 0xa0]
call fcn.100090b6
push str.lastName
lea ecx, [ebp - 0x2c]
call fcn.100299ab
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
call fcn.100556b6
push eax
lea ecx, [ebx + 0x34]
call fcn.100299ab
lea ecx, [ebp - 0xa0]
call fcn.100090b6
push str.email
lea ecx, [ebp - 0x2c]
call fcn.100299ab
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
call fcn.100556b6
push eax
lea ecx, [ebx + 0x4c]
call fcn.100299ab
lea ecx, [ebp - 0xa0]
call fcn.100090b6
push str.countryCode
lea ecx, [ebp - 0x2c]
call fcn.100299ab
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
call fcn.100556b6
push eax
lea ecx, [ebx + 0x64]
call fcn.100299ab
lea ecx, [ebp - 0xa0]
call fcn.100090b6
push str.displayName
lea ecx, [ebp - 0x2c]
call fcn.100299ab
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
call fcn.100556b6
push eax
lea ecx, [ebx + 0x7c]
call fcn.100299ab
lea ecx, [ebp - 0xa0]
call fcn.100090b6
push str.accountType
lea ecx, [ebp - 0x2c]
call fcn.100299ab
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
call fcn.100556b6
push eax
lea ecx, [ebx + 0x94]
call fcn.100299ab
lea ecx, [ebp - 0xa0]
call fcn.100090b6
test esi, esi
je 0x10009a18
push esi
lea ecx, [ebp - 0xa8]
call fcn.100299ab
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x10009a2c
inc eax
push eax
push dword [ebp - 0x44]
call fcn.100299ab
pop ecx
pop ecx
and dword [ebp - 0x34], 0
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
call fcn.100542df
lea ecx, [ebp - 0x2c]
call fcn.100543b8
call fcn.100c7417
ret 4
Function at 0x1000a0cf
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x100c971e
call fcn.100c7428
mov esi, ecx
push dword [ebp + 8]
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov dword [ebp - 0x10], ebx
call fcn.100299ab
lea edi, [esi + 4]
mov dword [ebp - 4], ebx
push edi
push ebx
push dword [ebp - 0x10]
push 0x1000bd30
push ebx
push ebx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x20
mov dword [esi], eax
test eax, eax
je 0x1000a119
mov eax, esi
call fcn.100c73f1
ret 4
push 6
mov dword [edi], ebx
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x10023460
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1016a39c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x10023486
xor eax, eax
jmp 0x10023541
mov eax, dword [esi + 0x20]
cmp dword [eax], 0
je 0x100234a8
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, dword [eax]
cmp dword [eax], edx
jae 0x100234a8
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
mov byte [eax], bl
mov eax, ebx
jmp 0x10023541
cmp dword [esi + 0x4c], 0
je 0x1002353f
call fcn.10021ce6
mov ecx, dword [esi + 0x38]
mov al, bl
test ecx, ecx
jne 0x100234d2
push dword [esi + 0x4c]
push eax
call fcn.100299ab
test al, al
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x1002353f
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x1002353f
cmp eax, 1
jle 0x1002350d
cmp eax, 3
jne 0x1002353f
push dword [esi + 0x4c]
push dword [ebp - 0x28]
jmp 0x100234c4
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x34], eax
je 0x10023531
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x34], eax
jne 0x1002353f
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
mov eax, ebx
jne 0x10023541
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100c73e0
leave
ret 4
Function at 0x10023ef0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x10023f13
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__]
jmp 0x10023fc1
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], eax
test eax, eax
je 0x10023f34
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x10023f36
xor eax, eax
cdq
mov dword [ebp - 4], eax
mov ecx, edx
mov dword [ebp - 8], ecx
test edi, edi
jl 0x10023fb5
jg 0x10023f49
test esi, esi
je 0x10023fb5
test ecx, ecx
jl 0x10023f8d
jg 0x10023f53
test eax, eax
je 0x10023f8d
cmp edi, ecx
jg 0x10023f65
jl 0x10023f5d
cmp esi, eax
jae 0x10023f65
mov eax, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
push eax
push dword [ebp + 8]
push dword [ebp - 0xc]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 4]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [ebp - 8]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x10023f90
mov edx, dword [ebp + 8]
test edi, edi
jl 0x10023fb5
jg 0x10023f9a
test esi, esi
je 0x10023fb5
cmp dword [ebx + 0x4c], 0
je 0x10023fb5
push dword [ebx + 0x4c]
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 [ebp - 0x10]
mov edx, dword [ebp - 0x14]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x100299ab
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x100299ba
pop dword [ebp - 0x3c]
mov eax, 0x100299ba
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0xd9fafa75
sub dword [ebp - 0x4c], 0x8ba8b52a
mov dword [ebp - 0x48], 0xe8a31ca2
add dword [ebp - 0x48], 0x49902fa3
mov dword [ebp - 0x44], 0x17d69cdd
sub dword [ebp - 0x44], 0xcb8a58af
mov dword [ebp - 0x40], 0x529ac778
sub dword [ebp - 0x40], 0x529ac778
lea eax, [ebp - 0x4c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0xda1d92e1
add dword [ebp - 0x4c], 0x9a54d675
mov dword [ebp - 0x48], 0x260cb2a3
sub dword [ebp - 0x48], 0xe4a0512e
mov dword [ebp - 0x44], 0x9fa7d7e
add dword [ebp - 0x44], 0x5974eeee
mov dword [ebp - 0x40], 0xc6873af6
add dword [ebp - 0x40], 0x3978c50a
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x83eb3
push 0
call eax
mov ecx, 0x2d51f7ca
add ecx, 0xd2ae4b7e
mov esi, eax
mov edx, 0x68deedd4
sub edx, 0x58c6d9d4
add edx, dword [ebp - 0x3c]
mov edi, 0xafe3be61
add edi, 0x448a0593
add dword [ebp - 0x28], edi
mov ebx, dword [edx]
sub dword [ebp - 0x1c], 0xd83830f5
xor ebx, edi
mov dword [esi], ebx
sub dword [ebp - 0x38], edx
add esi, 4
add edx, 0x3abf6ac
sub edx, 0x3abf6a8
loop 0x10029acd
add eax, 0x44b0dfb1
sub eax, 0x44afdfbe
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x1002c70e
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
xor esi, esi
xor edx, edx
mov eax, esi
mov edi, 0x10e
div edi
mov al, byte [edx + 0x100eda18]
xor byte [esi + ecx], al
inc esi
cmp esi, 0x16
jb 0x1002c712
pop edi
mov byte [ecx + 0x16], 0
mov eax, ecx
pop esi
ret
Function at 0x10041bc7
Capabilities:
Encode data using base64

Disassembly:
push 0x14
mov eax, 0x100d28a5
call fcn.100c7428
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov edi, dword [ebp + 8]
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], 0xf
mov byte [edi], bl
mov eax, dword [ebp + 0x10]
mov edi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], 1
test eax, eax
je 0x10041d4e
push 3
pop esi
mov ecx, dword [ebp + 0xc]
dec eax
mov dword [ebp + 0x10], eax
mov al, byte [ecx]
mov byte [ebp + edi - 0x14], al
inc edi
mov dl, byte [ebp - 0x13]
inc ecx
mov dword [ebp + 0xc], ecx
mov ch, byte [ebp - 0x12]
mov cl, byte [ebp - 0x14]
mov byte [ebp - 0xf], ch
mov byte [ebp - 0xd], dl
mov byte [ebp - 0xe], cl
cmp edi, esi
jne 0x10041c97
mov esi, dword [ebp + 8]
mov al, cl
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov edi, ebx
shl cl, 4
mov al, dl
shr al, 4
add cl, al
mov al, ch
mov byte [ebp - 0x17], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ch
and al, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], al
cmp dword [0x1016fbd0], 0x10
mov ecx, 0x1016fbbc
movzx eax, byte [ebp + edi - 0x18]
cmovae ecx, dword [0x1016fbbc]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
call fcn.100299ab
inc edi
cmp edi, 4
jl 0x10041c5f
mov dl, byte [ebp - 0xd]
mov edi, ebx
mov cl, byte [ebp - 0xe]
mov ch, byte [ebp - 0xf]
push 3
pop esi
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x10041c01
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x10041d4e
mov eax, edi
cmp edi, esi
jge 0x10041ccd
cmp eax, esi
jae 0x10041d59
mov byte [ebp + eax - 0x14], bl
inc eax
cmp eax, esi
jl 0x10041cb5
mov ch, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl cl, 4
add cl, al
shl dl, 2
mov al, ch
mov byte [ebp - 0x17], cl
shr al, 6
and ch, 0x3f
add dl, al
mov byte [ebp - 0x15], ch
lea eax, [edi + 1]
mov byte [ebp - 0x16], dl
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x10041d39
mov esi, dword [ebp + 8]
mov edi, eax
cmp dword [0x1016fbd0], 0x10
mov ecx, 0x1016fbbc
movzx eax, byte [ebp + ebx - 0x18]
cmovae ecx, dword [0x1016fbbc]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
call fcn.100299ab
inc ebx
cmp ebx, edi
jl 0x10041d0a
mov edi, dword [ebp - 0x1c]
push 3
pop esi
cmp edi, esi
jge 0x10041d4e
sub esi, edi
mov ecx, dword [ebp + 8]
push 0x3d
call fcn.100299ab
sub esi, 1
jne 0x10041d3f
mov eax, dword [ebp + 8]
call fcn.100c73f1
ret 0xc
call fcn.100299ab
int3