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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x790d58
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push edi
mov eax, dword [0x82f184]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x7d53bc
push 0x10001
call dword [sym.imp.CRYPT32.dll_CertOpenSystemStoreW]
mov edi, eax
test edi, edi
je 0x41404f
mov ecx, 0xc
mov dword [ebp - 0x30], 0xea00f1
mov dword [ebp - 0x34], ecx
xor eax, eax
mov dword [ebp - 0x2c], 0xfc00e8
mov dword [ebp - 0x28], 0xef009c
mov dword [ebp - 0x24], 0xd000d1
mov dword [ebp - 0x20], 0xe100b4
mov dword [ebp - 0x1c], 0xf2009a
mov dword [ebp - 0x18], 0xc4
nop dword [eax]
lea ecx, [eax + 0xb8]
xor word [ebp + eax*2 - 0x30], cx
inc eax
mov ecx, dword [ebp - 0x34]
cmp eax, ecx
jb 0x413f90
xor eax, eax
push eax
mov word [ebp + ecx*2 - 0x30], ax
lea eax, [ebp - 0x30]
push eax
push 0x80007
push 0
push 0x10001
push edi
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
test eax, eax
je 0x413fd2
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
jmp 0x414082
push 0
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
xor eax, eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.00403b80
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x38]
call fcn.00417e40
add esp, 4
lea ecx, [ebp - 0x20]
mov bl, al
call fcn.00404220
lea ecx, [ebp - 0x38]
call fcn.00404490
test bl, bl
jne 0x414062
push 2
push edi
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 1
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push 1
push edi
call dword [sym.imp.CRYPT32.dll_CertAddEncodedCertificateToStore]
push 1
push dword [ebp - 0x10]
call fcn.0076d313
add esp, 8
push 2
push edi
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x415ad0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x415b29
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x415b29
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x415b18
cmp esi, edx
jae 0x415b29
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x415b06
cmp esi, edx
jae 0x415b29
cmp word [esi], 0
je 0x415b29
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x417a40
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x82f184]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], 8
jb 0x417a58
mov ecx, dword [ecx]
push esi
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x417a89
xor eax, eax
xor edx, edx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0076d59e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
xorps xmm0, xmm0
push eax
push esi
movq qword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
xor ecx, ebp
mov edx, dword [ebp - 8]
pop esi
call fcn.0076d59e
mov esp, ebp
pop ebp
ret

Function at 0x418130
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [0x82f184]
xor eax, esp
mov dword [esp + 0xc], eax
cmp dword [ecx + 0x14], 8
push ebx
push esi
mov ebx, edx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
jb 0x418160
mov ecx, dword [ecx]
sub esp, 0xc
push 2
push 1
push 0x40000000
push ecx
lea ecx, [esp + 0x24]
call fcn.00415b70
mov esi, dword [esp + 8]
test eax, eax
jne 0x4181ae
push 0
lea eax, [esp + 0x14]
push eax
push dword [ebp + 8]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41819d
call fcn.00415b30
test eax, eax
jne 0x4181ae
test esi, esi
je 0x4181aa
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov bl, 1
jmp 0x4181b0
xor bl, bl
test esi, esi
je 0x4181bb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
mov al, bl
pop esi
pop ebx
xor ecx, esp
call fcn.0076d59e
mov esp, ebp
pop ebp
ret
Function at 0x418fd0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
cmp byte [ebp + 8], 0
push esi
push edi
mov esi, edx
mov edi, ecx
je 0x418ff8
push esi
call fcn.00418540
add esp, 4
test al, al
je 0x418ff8
push esi
call fcn.00418800
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x419000
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x419008
mov edi, dword [edi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
pop edi
setne al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x419020
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x791826
mov eax, dword fs:[0]
push eax
sub esp, 0x490
mov eax, dword [0x82f184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
push 0x7d5540
lea eax, [ebp - 0x49c]
push eax
call fcn.004031c0
mov esi, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x478]
push 1
xor eax, eax
mov dword [ebp - 0x468], 0
push 0x7cd374
mov dword [ebp - 0x464], 7
mov word [ebp - 0x478], ax
call fcn.004044f0
lea eax, [ebp - 0x478]
mov byte [ebp - 4], 1
push eax
lea edx, [esi + 0x18]
lea ecx, [ebp - 0x440]
call fcn.00405fb0
add esp, 4
lea ecx, [ebp - 0x478]
call fcn.00404490
lea ecx, [ebp - 0x484]
call fcn.00404220
lea ecx, [ebp - 0x49c]
call fcn.00404490
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
cmovae eax, dword [ebp - 0x440]
push eax
lea eax, [ebp - 0x428]
push 0x104
push eax
call esi
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x41910a
mov edi, dword [edi]
push edi
lea eax, [ebp - 0x21c]
push 0x104
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x428]
add esp, 0xc
push eax
call esi
lea eax, [eax*2 + 2]
cmp eax, 0x20a
jae 0x4191ec
xor ecx, ecx
mov word [ebp + eax - 0x428], cx
lea eax, [ebp - 0x21c]
push eax
call esi
lea eax, [eax*2 + 2]
cmp eax, 0x20a
jae 0x4191ec
xor ecx, ecx
mov dword [ebp - 0x45c], 2
mov word [ebp + eax - 0x21c], cx
xorps xmm0, xmm0
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x460], ecx
mov dword [ebp - 0x454], eax
lea eax, [ebp - 0x428]
mov dword [ebp - 0x458], eax
mov eax, 0x614
mov word [ebp - 0x450], ax
lea eax, [ebp - 0x460]
push eax
movlpd qword [ebp - 0x44e], xmm0
mov dword [ebp - 0x446], ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
lea ecx, [ebp - 0x440]
sete bl
call fcn.00404490
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0076d59e
mov esp, ebp
pop ebp
ret
call fcn.0076dfa3
int3
Function at 0x419500
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x82f184]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x20c]
mov esi, ecx
push eax
push 0
push 0
push 5
mov dword [ebp - 0x210], esi
push 0
mov dword [ebp - 0x210], esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
test eax, eax
jne 0x41956e
lea ecx, [ebp - 0x20c]
mov word [esi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419555
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
jmp 0x419579
xor eax, eax
push eax
mov word [esi], ax
push 0x7cd378
mov ecx, esi
call fcn.004044f0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0076d59e
mov esp, ebp
pop ebp
ret

Function at 0x4195a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48
push esi
push edi
mov esi, ecx
call fcn.00424580
test eax, eax
jle 0x41967a
mov eax, dword [0x83dab4]
test eax, eax
jne 0x419677
movaps xmm0, xmmword [0x7e4090]
lea ecx, [esp + 0x2c]
movups xmmword [esp + 0x30], xmm0
mov dword [esp + 0x2c], 0x1d
movaps xmm0, xmmword [0x7e34c0]
movups xmmword [esp + 0x40], xmm0
call fcn.004131e0
mov ecx, 0xc
mov dword [esp + 0x10], 0xdc00f3
mov edi, eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], 0xd500c8
xor eax, eax
mov dword [esp + 0x18], 0xd100d9
mov dword [esp + 0x1c], 0x8d008d
mov dword [esp + 0x20], 0xa500ee
mov dword [esp + 0x24], 0xaf00ae
mov dword [esp + 0x28], 0xc4
nop word [eax + eax]
lea ecx, [eax + 0xb8]
xor word [esp + eax*2 + 0x10], cx
inc eax
mov ecx, dword [esp + 0xc]
cmp eax, ecx
jb 0x419640
xor eax, eax
mov word [esp + ecx*2 + 0x10], ax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x83dab4], eax
test eax, eax
je 0x41967a
push esi
call eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x419680
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
call fcn.00424580
test eax, eax
jle 0x41975c
mov eax, dword [0x83dab0]
test eax, eax
jne 0x419757
movaps xmm0, xmmword [0x7e4080]
lea ecx, [esp + 0x2c]
movups xmmword [esp + 0x30], xmm0
mov dword [esp + 0x2c], 0x1e
movaps xmm0, xmmword [0x7e3690]
movups xmmword [esp + 0x40], xmm0
call fcn.004131e0
mov ecx, 0xc
mov dword [esp + 0x10], 0xdc00f3
mov ebx, eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], 0xd500c8
xor eax, eax
mov dword [esp + 0x18], 0xd100d9
mov dword [esp + 0x1c], 0x8d008d
mov dword [esp + 0x20], 0xa500ee
mov dword [esp + 0x24], 0xaf00ae
mov dword [esp + 0x28], 0xc4
nop dword [eax + eax]
lea ecx, [eax + 0xb8]
xor word [esp + eax*2 + 0x10], cx
inc eax
mov ecx, dword [esp + 0xc]
cmp eax, ecx
jb 0x419720
xor eax, eax
mov word [esp + ecx*2 + 0x10], ax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x83dab0], eax
test eax, eax
je 0x41975c
push edi
call eax
mov esi, eax
pop edi
test esi, esi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x419ca0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7919b8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x82f184]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x14], edi
mov esi, 6
mov dword [ebp - 0x1c], 0xcf94d8d9
mov dword [ebp - 0x20], esi
xor eax, eax
mov dword [ebp - 0x18], 0xbec9c4
lea ecx, [eax - 0x48]
xor byte [ebp + eax - 0x1c], cl
inc eax
mov esi, dword [ebp - 0x20]
cmp eax, esi
jb 0x419ce7
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x10], 0
push dword [ebp - 0x10]
lea edx, [ebp - 0x14]
mov byte [ebp + esi - 0x1c], 0
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x14], eax
call fcn.0041c930
add esp, 4
push ebx
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0
call fcn.00404120
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x38]
call fcn.00414b80
push eax
lea ecx, [ebp - 0x50]
call fcn.00404120
lea ecx, [ebp - 0x38]
call fcn.00404490
push edi
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.00414d60
lea ecx, [ebp - 0x50]
call fcn.00404490
lea ecx, [ebp - 0x68]
call fcn.00404490
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41a8e0
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 0x41a90c
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 0x41a92e
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x41a930
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x41a9b5
jg 0x41a945
test esi, esi
je 0x41a9b5
test ecx, ecx
jl 0x41a98e
jg 0x41a94f
test eax, eax
je 0x41a98e
cmp edi, ecx
jg 0x41a963
jl 0x41a959
cmp esi, eax
jae 0x41a963
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 0x41a991
mov edx, dword [ebp + 8]
test edi, edi
jl 0x41a9b5
jg 0x41a99b
test esi, esi
je 0x41a9b5
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x41a9b5
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 0x41a9d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x41a9fc
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 [esi + 0x1c]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], edi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x41aa1e
mov eax, dword [esi + 0x2c]
mov eax, dword [eax]
jmp 0x41aa20
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x41aadc
jg 0x41aa3d
test edi, edi
je 0x41aadc
test ecx, ecx
jl 0x41aa8a
jg 0x41aa47
test eax, eax
je 0x41aa8a
cmp ebx, ecx
jg 0x41aa5b
jl 0x41aa51
cmp edi, eax
jae 0x41aa5b
mov eax, edi
mov dword [esp + 0xc], edi
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 [esi + 0x2c]
add edx, ecx
sub edi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [esi + 0x1c]
add dword [eax], ecx
jmp 0x41aa91
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x41aadc
jg 0x41aa9b
test edi, edi
je 0x41aadc
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x41aadc
mov edx, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edx], eax
jne 0x41aac6
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x50]
mov edx, dword [esi + 0x54]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x4c]
push ecx
push edi
push 1
push dword [esp + 0x18]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
sub edi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, edi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41ae20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x82f184]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x41ae50
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0076d59e
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x41ae80
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x41ae80
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.0076d59e
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x41af55
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x41aea9
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 0x41aeb5
movsx eax, bl
jmp 0x41aeec
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 0x41af55
cmp eax, 1
jle 0x41af16
cmp eax, 3
jne 0x41af55
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.0076d59e
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x41af34
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 0x41af55
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x41af55
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0076d59e
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.0076d59e
mov esp, ebp
pop ebp
ret 4
Function at 0x41b4b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x82f184]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x41b553
cmp byte [esi + 0x3d], 0
je 0x41b553
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x41b508
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 0x41b51a
sub eax, 1
je 0x41b51e
sub eax, 2
je 0x41b553
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0076d59e
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x41b53c
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 0x41b508
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0076d59e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0076d59e
mov esp, ebp
pop ebp
ret
Function at 0x41d4e0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x82f184]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x414]
mov esi, ecx
push eax
mov dword [ebp - 0x418], esi
mov edi, edx
push 0x100
mov dword [ebp - 0x418], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x41d536
xor eax, eax
mov dword [esi + 0x10], 0
push eax
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x7cd378
jmp 0x41d599
cmp dword [edi + 0x14], 8
jb 0x41d53e
mov edi, dword [edi]
lea eax, [ebp - 0x20c]
push eax
push 0
push edi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x41d51b
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov dword [esi + 0x10], 0
lea ecx, [ebp - 0x20c]
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d582
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.004044f0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0076d59e
mov esp, ebp
pop ebp
ret