joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b4c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4360f8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x44500c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0041fbb0
mov edi, dword [0x445c88]
call fcn.0041fbb0
mov esi, dword [eax + 0x34]
mov al, byte [ebp + 8]
test al, al
je 0x41b536
xor eax, eax
test esi, esi
setne al
push eax
xor eax, eax
test edi, edi
setne al
push eax
xor eax, eax
cmp byte [ebx + 0x188], al
setne al
push eax
push str.Judge_to_exit1:__d___d___d
call fcn.004168e0
push eax
call fcn.00416a50
mov al, byte [ebp + 8]
add esp, 0x14
cmp byte [ebx + 0x188], 0
je 0x41b5c5
test edi, edi
jne 0x41b5c5
test esi, esi
jne 0x41b5c5
movzx eax, al
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__getpid]
push eax
push str.Judge_to_exit2:__d___d
push ecx
call fcn.004168e0
add esp, 4
push eax
call fcn.00416a50
sub esp, 8
mov ecx, esp
mov dword [ebp + 8], esp
push 0x43a7e9
call fcn.004073c0
sub esp, 0x18
mov dword [ebp - 4], esi
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.13.MonitorExit
call fcn.004073c0
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.MonitorNew
call fcn.004073c0
mov byte [ebp - 4], 2
call fcn.0041fbb0
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
call fcn.00427500
push esi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41fbb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43658e
mov eax, dword fs:[0]
push eax
mov eax, dword [0x44500c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x44a2a0]
cmp eax, dword [ecx + 4]
jle 0x41fd70
push 0x44a2a0
call fcn.00432c84
add esp, 4
cmp dword [0x44a2a0], 0xffffffff
jne 0x41fd70
mov dword [ebp - 4], 0
mov dword [0x44a2a8], 0x43ca80
mov dword [0x44a2bc], 0
mov dword [0x44a2c0], 0xf
mov byte [0x44a2ac], 0
mov dword [0x44a2d4], 0
mov dword [0x44a2d8], 0xf
mov byte [0x44a2c4], 0
mov dword [0x44a2f0], 0
mov dword [0x44a2f4], 0xf
mov byte [0x44a2e0], 0
mov dword [0x44a308], 0
mov dword [0x44a30c], 0xf
mov byte [0x44a2f8], 0
mov dword [0x44a320], 0
mov dword [0x44a324], 0xf
mov byte [0x44a310], 0
push 0
push 0x43a7e9
mov ecx, 0x44a2ac
mov byte [ebp - 4], 5
call fcn.00408050
push 0
push 0x43a7e9
mov ecx, 0x44a2c4
call fcn.00408050
push 0
push 0x43a7e9
mov ecx, 0x44a2e0
call fcn.00408050
push 0
push 0x43a7e9
mov ecx, 0x44a2f8
call fcn.00408050
push 0
push 0x43a7e9
mov ecx, 0x44a310
call fcn.00408050
push 3
mov byte [0x44a328], 1
mov dword [0x44a2dc], 0
call dword [sym.imp.libcurl.dll_curl_global_init]
call dword [sym.imp.LIBEAY32.dll_Ordinal_233]
push 0
push 0
push 0xc
call dword [sym.imp.libcrypto_1_1.dll_OPENSSL_init_crypto]
call dword [sym.imp.LIBEAY32.dll_Ordinal_239]
push 0
push 0
push 2
call dword [sym.imp.libcrypto_1_1.dll_OPENSSL_init_crypto]
add esp, 0x1c
call dword [sym.imp.SoftwareLog.dll_CreateExportObj]
push 0
push 0
push 0x44a2a8
push 0x42b150
push 0
push 0
mov dword [0x445adc], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x437e00
call fcn.004330de
push 0x44a2a0
call fcn.00432c3a
add esp, 8
mov eax, 0x44a2a8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x42c600
Capabilities:
Connect pipe
Create pipe
Create thread
Read file on windows
Terminate process
Write file on windows
Write pipe

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437713
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x2730
call fcn.00433c40
mov eax, dword [0x44500c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2708], ecx
mov esi, dword [ebx + 8]
lea eax, [ebp - 0x220]
xor edi, edi
push 0x208
push edi
push eax
mov dword [ebp - 0x2700], edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x220]
push esi
push str..pipe_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x220]
push edi
push 0xffffffffffffffff
push 0x1000
push 0x1000
push 0xff
push 6
push 3
push eax
invalid
invalid
cmp al, 0xa9
invalid
Function at 0x42f4d0
Capabilities:
Create directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa34
mov eax, dword [0x44500c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x824]
mov dword [ebp - 0xa34], ecx
push 0
push eax
mov esi, edx
mov dword [ebp - 0xa30], ecx
mov dword [ebp - 0xa34], ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x824]
push 0x104
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x61c]
push str._sTSHelpService
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x61c]
add esp, 0x18
push 0
push eax
call edi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push esi
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push str._s_d
push eax
call ebx
add esp, 0x1c
lea eax, [ebp - 0x20c]
push 0
push eax
call edi
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push str._s_backup
push eax
call ebx
add esp, 0x18
lea eax, [ebp - 0x414]
push 0
push eax
call edi
push 0x208
lea eax, [ebp - 0xa2c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xa2c]
push str._slogs
push eax
call ebx
add esp, 0x18
push 0
lea eax, [ebp - 0xa2c]
push eax
call edi
mov ebx, dword [ebp - 0xa30]
lea ecx, [ebp - 0x414]
xor eax, eax
lea edx, [ecx + 2]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f630
sub ecx, edx
lea eax, [ebp - 0x414]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.00415360
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043284c
mov esp, ebp
pop ebp
ret
Function at 0x42f670
Capabilities:
Create directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43789b
mov eax, dword fs:[0]
push eax
sub esp, 0x640
mov eax, dword [0x44500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov eax, ecx
mov dword [ebp - 0x644], eax
mov dword [ebp - 0x648], eax
push 0x208
mov dword [ebp - 0x648], eax
lea eax, [ebp - 0x628]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x628]
push 0x104
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push str._sufcphsom
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x420]
add esp, 0x18
push 0
push eax
call esi
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push ebx
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push str._s_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x218]
push 0
push eax
call esi
xor eax, eax
mov dword [ebp - 0x630], 0
mov word [ebp - 0x640], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x62c], 7
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42f781
sub eax, edx
lea ecx, [ebp - 0x640]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00415360
mov esi, dword [ebp - 0x644]
lea edx, [ebp - 0x640]
push str.ufcphsom.exe
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00415510
mov edx, dword [ebp - 0x62c]
add esp, 4
cmp edx, 8
jb 0x42f807
mov ecx, dword [ebp - 0x640]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42f7fd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42f7fd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00432a88
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043284c
mov esp, ebp
pop ebp
ret
Function at 0x42fb40
Capabilities:
Get file version info

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43791b
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x42d0
call fcn.00433c40
mov eax, dword [0x44500c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x42c0], esi
push 0x208
lea eax, [ebp - 0x2a0]
mov dword [ebp - 0x42c0], esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2a0]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x42d8]
push eax
lea eax, [ebp - 0x2a0]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
jne 0x42fbf5
push eax
mov dword [esi + 0x10], eax
mov ecx, esi
mov dword [esi + 0x14], 0xf
push 0x43a7e9
mov byte [esi], al
call fcn.00408050
jmp 0x42fd51
push 0x4000
lea eax, [ebp - 0x42a0]
xorps xmm0, xmm0
push 0
push eax
movups xmmword [ebp - 0x42d4], xmm0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x42a0]
push eax
push edi
push 0
lea eax, [ebp - 0x2a0]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x42fc7e
lea eax, [ebp - 0x42dc]
push eax
lea eax, [ebp - 0x42bc]
push eax
push 0x43b4c0
lea eax, [ebp - 0x42a0]
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x42fc7e
mov eax, dword [ebp - 0x42bc]
movzx ecx, word [eax + 8]
movzx edi, word [eax + 0xa]
mov dword [ebp - 0x42c0], ecx
movzx ecx, word [eax + 0xe]
movzx eax, word [eax + 0xc]
mov dword [ebp - 0x42c4], ecx
mov dword [ebp - 0x42bc], eax
jmp 0x42fca8
mov eax, dword [ebp - 0x42c8]
mov edi, dword [ebp - 0x42d4]
mov dword [ebp - 0x42bc], eax
mov eax, dword [ebp - 0x42cc]
mov dword [ebp - 0x42c4], eax
mov eax, dword [ebp - 0x42d0]
mov dword [ebp - 0x42c0], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x98]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push dword [ebp - 0x42bc]
push dword [ebp - 0x42c4]
push dword [ebp - 0x42c0]
push edi
push str._d._d._d._d
push eax
call fcn.0041d500
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x42a8], 0
add esp, 0x18
mov dword [ebp - 0x42a4], 0xf
mov byte [ebp - 0x42b8], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42fd10
sub ecx, edx
lea eax, [ebp - 0x98]
push ecx
push eax
lea ecx, [ebp - 0x42b8]
call fcn.00408050
movups xmm0, xmmword [ebp - 0x42b8]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x42a8]
movq qword [esi + 0x10], xmm0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043284c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x430ed0
Capabilities:
Create process on windows
Create process suspended
Enumerate processes
Spoof parent pid

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x2a8
mov eax, dword [0x44500c]
xor eax, esp
mov dword [esp + 0x2a4], eax
push esi
push edi
push 0x228
lea eax, [esp + 0x80]
mov dword [esp + 0x1c], edx
push 0
push eax
mov dword [esp + 0x28], ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x78], 0x22c
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x430f6a
lea eax, [esp + 0x78]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x430f6a
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
nop word [eax + eax]
push str.explorer.exe
lea eax, [esp + 0xa0]
push eax
call edi
test eax, eax
je 0x430f6e
lea eax, [esp + 0x78]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x430f40
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
jmp 0x430f7c
mov edi, dword [esp + 0x80]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x48
mov dword [esp + 0x18], eax
lea eax, [esp + 0x34]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
lea eax, [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x30], 0x48
mov dword [esp + 0x10], 0
push eax
push 0
push 1
push 0
call esi
push dword [esp + 0x10]
call fcn.004330f3
add esp, 4
mov edi, eax
push dword [esp + 0x10]
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0
push 1
push edi
call esi
push 0
push 0
push 4
lea eax, [esp + 0x20]
push eax
push 0x20000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
lea eax, [esp + 0x20]
mov dword [esp + 0x74], edi
push eax
lea eax, [esp + 0x34]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0x80000
push 0
push 0
push 0
push dword [esp + 0x38]
movaps xmmword [esp + 0x44], xmm0
push dword [esp + 0x40]
push 0
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
call dword [0x4380e4]
push eax
push esi
push str.SPFE:__d___d
push ecx
call fcn.004168e0
add esp, 4
push eax
call fcn.00416a50
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
push edi
call fcn.00433170
mov eax, dword [esp + 0x24]
add esp, 4
mov ecx, dword [esp + 0x2ac]
pop edi
pop esi
xor ecx, esp
call fcn.0043284c
mov esp, ebp
pop ebp
ret
Function at 0x431b60
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 0x431b8c
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 0x431bae
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x431bb0
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x431c35
jg 0x431bc5
test esi, esi
je 0x431c35
test ecx, ecx
jl 0x431c0e
jg 0x431bcf
test eax, eax
je 0x431c0e
cmp edi, ecx
jg 0x431be3
jl 0x431bd9
cmp esi, eax
jae 0x431be3
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 edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x431c11
mov edx, dword [ebp + 8]
test edi, edi
jl 0x431c35
jg 0x431c1b
test esi, esi
je 0x431c35
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x431c35
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
Function at 0x431c50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x431c7c
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__::xsgetn_char___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x431c9e
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x431ca0
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x431d40
jg 0x431cbd
test esi, esi
je 0x431d40
test ecx, ecx
jl 0x431d0a
jg 0x431cc7
test eax, eax
je 0x431d0a
cmp ebx, ecx
jg 0x431cdb
jl 0x431cd1
cmp esi, eax
jae 0x431cdb
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x431d11
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x431d40
jg 0x431d1b
test esi, esi
je 0x431d40
cmp dword [edi + 0x4c], 0
je 0x431d40
mov ecx, edi
call fcn.004322e0
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x432070
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x44500c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4320a0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043284c
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x4320d0
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x4320d0
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043284c
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x4321a5
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x4320f9
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x432105
movsx eax, bl
jmp 0x43213c
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
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 0x4321a5
cmp eax, 1
jle 0x432166
cmp eax, 3
jne 0x4321a5
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043284c
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x432184
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 0x4321a5
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x4321a5
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043284c
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043284c
mov esp, ebp
pop ebp
ret 4
Function at 0x432310
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x44500c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x4323b3
cmp byte [esi + 0x3d], 0
je 0x4323b3
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x432368
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 0x43237a
sub eax, 1
je 0x43237e
sub eax, 2
je 0x4323b3
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043284c
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x43239c
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 0x432368
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043284c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0043284c
mov esp, ebp
pop ebp
ret

Function at 0x451c80
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 0x451d8c
test eax, eax
je 0x451d8c
push esi
push edi
mov ecx, 0x10
mov esi, 0x46cff0
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 0x451d73
lea edi, [eax + 4]
jmp 0x451cd7
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x451cec
mov dword [ebp - 4], 2
jmp 0x451d0d
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x451d03
mov dword [ebp - 4], 1
jmp 0x451d0d
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 0x451d83
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 0x451d46
mov byte [ecx], 0x3d
jmp 0x451d52
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0x451d5d
mov byte [ecx], 0x3d
jmp 0x451d63
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x451cd4
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