joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4130e0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2060
call fcn.00790c80
mov eax, dword [0x831184]
xor eax, ebp
mov dword [ebp - 4], eax
xorps xmm0, xmm0
mov dword [ebp - 0x2050], 0x44
xor eax, eax
movlpd qword [ebp - 0x204c], xmm0
cmp dword [ecx + 0x14], 8
movlpd qword [ebp - 0x2044], xmm0
movlpd qword [ebp - 0x203c], xmm0
movlpd qword [ebp - 0x2034], xmm0
movlpd qword [ebp - 0x202c], xmm0
movlpd qword [ebp - 0x201e], xmm0
movlpd qword [ebp - 0x2016], xmm0
mov word [ebp - 0x200e], ax
mov dword [ebp - 0x2024], 0x101
mov word [ebp - 0x2020], ax
movups xmmword [ebp - 0x2060], xmm0
jb 0x413165
mov ecx, dword [ecx]
push ecx
lea eax, [ebp - 0x2008]
push 0x1000
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebp - 0x2060]
push eax
lea eax, [ebp - 0x2050]
push eax
push 0
push 0
push 0x80
push 0
push 0
push 0
lea eax, [ebp - 0x2008]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jle 0x4131cf
cmp byte [ebp + 8], 0
je 0x4131bf
push 0xffffffffffffffff
push dword [ebp - 0x2060]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret

Function at 0x4131e0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, ecx
xor edx, edx
mov ecx, dword [edi]
lea eax, [edi + 4]
test ecx, ecx
je 0x413207
push esi
nop
lea ecx, [edx - 0x57]
xor byte [edx + eax], cl
lea esi, [edx + eax]
mov ecx, dword [edi]
inc edx
cmp edx, ecx
jb 0x4131f0
pop esi
mov byte [ecx + eax], 0
pop edi
ret
mov byte [ecx + eax], dl
pop edi
ret
Function at 0x413f10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x792348
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push edi
mov eax, dword [0x831184]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x7d73cc
push 0x10001
call dword [sym.imp.CRYPT32.dll_CertOpenSystemStoreW]
mov edi, eax
test edi, edi
je 0x41404f
mov ecx, 0xc
mov dword [ebp - 0x30], 0xf900e0
mov dword [ebp - 0x34], ecx
xor eax, eax
mov dword [ebp - 0x2c], 0xeb00f9
mov dword [ebp - 0x28], 0xfc008d
mov dword [ebp - 0x24], 0xdf00c0
mov dword [ebp - 0x20], 0x9200c5
mov dword [ebp - 0x1c], 0x8500eb
mov dword [ebp - 0x18], 0xb5
nop dword [eax]
lea ecx, [eax + 0xa9]
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.0076e8f3
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 [0x831184]
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.0076eb7e
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.0076eb7e
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 [0x831184]
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.0076eb7e
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 0x792e16
mov eax, dword fs:[0]
push eax
sub esp, 0x490
mov eax, dword [0x831184]
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 0x7d7550
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 0x7cf384
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.0076eb7e
mov esp, ebp
pop ebp
ret
call fcn.0076f583
int3
Function at 0x419500
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x831184]
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 0x7cf388
mov ecx, esi
call fcn.004044f0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0076eb7e
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 [0x83faa4]
test eax, eax
jne 0x419677
movaps xmm0, xmmword [0x7e5880]
lea ecx, [esp + 0x2c]
movups xmmword [esp + 0x30], xmm0
mov dword [esp + 0x2c], 0x1d
movaps xmm0, xmmword [0x7e5550]
movups xmmword [esp + 0x40], xmm0
call fcn.004131e0
mov ecx, 0xc
mov dword [esp + 0x10], 0xcf00e2
mov edi, eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], 0xc200d9
xor eax, eax
mov dword [esp + 0x18], 0xc200c8
mov dword [esp + 0x1c], 0x82009c
mov dword [esp + 0x20], 0xd6009f
mov dword [esp + 0x24], 0xd800df
mov dword [esp + 0x28], 0xb5
nop word [eax + eax]
lea ecx, [eax + 0xa9]
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 [0x83faa4], 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 [0x83faa0]
test eax, eax
jne 0x419757
movaps xmm0, xmmword [0x7e58a0]
lea ecx, [esp + 0x2c]
movups xmmword [esp + 0x30], xmm0
mov dword [esp + 0x2c], 0x1e
movaps xmm0, xmmword [0x7e5710]
movups xmmword [esp + 0x40], xmm0
call fcn.004131e0
mov ecx, 0xc
mov dword [esp + 0x10], 0xcf00e2
mov ebx, eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], 0xc200d9
xor eax, eax
mov dword [esp + 0x18], 0xc200c8
mov dword [esp + 0x1c], 0x82009c
mov dword [esp + 0x20], 0xd6009f
mov dword [esp + 0x24], 0xd800df
mov dword [esp + 0x28], 0xb5
nop dword [eax + eax]
lea ecx, [eax + 0xa9]
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 [0x83faa0], 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 0x792fa8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x831184]
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], 0xd885cbc8
mov dword [ebp - 0x20], esi
xor eax, eax
mov dword [ebp - 0x18], 0xafdad5
lea ecx, [eax - 0x57]
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 0x41ae20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x831184]
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.0076eb7e
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.0076eb7e
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.0076eb7e
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.0076eb7e
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.0076eb7e
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 [0x831184]
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.0076eb7e
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.0076eb7e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0076eb7e
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 [0x831184]
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 0x7cf388
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.0076eb7e
mov esp, ebp
pop ebp
ret
Function at 0x41de00
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x793626
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x831184]
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 esi, edx
mov ebx, ecx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x34], ebx
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
mov dword [ebp - 4], eax
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov eax, esi
mov dword [ebp - 0x28], 1
jb 0x41de72
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x41e030
push edi
call fcn.007906ca
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [esi + 0x14], 8
jb 0x41de9b
mov esi, dword [esi]
push eax
push edi
push dword [ebp - 0x14]
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x41e025
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x7cf384
push dword [ebp - 0x20]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x41e025
cmp dword [ebp - 0x18], 0
je 0x41e025
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0xfeef04bd
jne 0x41e025
movzx edx, word [eax + 0xc]
lea ecx, [ebp - 0x124]
movzx ebx, word [eax + 0xa]
movzx edi, word [eax + 8]
movzx esi, word [eax + 0xe]
call fcn.0041cc80
mov dword [ebp - 0x24], eax
mov edx, esi
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10c]
call fcn.0041cc80
mov dword [ebp - 0x2c], eax
mov edx, edi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xf4]
call fcn.0041cc80
mov esi, eax
mov edx, ebx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xdc]
call fcn.0041cc80
push 0x7d75d8
push eax
lea eax, [ebp - 0xc4]
mov byte [ebp - 4], 4
push eax
call fcn.00408060
push esi
push eax
lea eax, [ebp - 0xac]
mov byte [ebp - 4], 5
push eax
call fcn.00413490
push 0x7d75d8
push eax
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 6
push eax
call fcn.00408060
push dword [ebp - 0x2c]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00413490
push 0x7d75d8
push eax
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 8
push eax
call fcn.00408060
push dword [ebp - 0x24]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00413490
mov ebx, dword [ebp - 0x30]
add esp, 0x48
mov ecx, ebx
push eax
call fcn.00404030
lea ecx, [ebp - 0x4c]
call fcn.00404490
lea ecx, [ebp - 0x64]
call fcn.00404490
lea ecx, [ebp - 0x7c]
call fcn.00404490
lea ecx, [ebp - 0x94]
call fcn.00404490
lea ecx, [ebp - 0xac]
call fcn.00404490
lea ecx, [ebp - 0xc4]
call fcn.00404490
lea ecx, [ebp - 0xdc]
call fcn.00404490
lea ecx, [ebp - 0xf4]
call fcn.00404490
lea ecx, [ebp - 0x10c]
call fcn.00404490
lea ecx, [ebp - 0x124]
call fcn.00404490
push dword [ebp - 0x20]
call fcn.007906c5
add esp, 4
mov eax, ebx
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.0076eb7e
mov esp, ebp
pop ebp
ret
Function at 0x41e050
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x793671
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x831184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x3c], esi
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 8
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x14], 0
jb 0x41e0c8
mov edx, dword [edx]
lea eax, [ebp - 0x14]
push eax
push edx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor edi, edi
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x14], edi
jle 0x41e179
mov edx, dword [eax + edi*4]
xor eax, eax
mov word [ebp - 0x38], ax
mov eax, edx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
lea ecx, [eax + 2]
mov dword [ebp - 0x1c], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41e100
sub eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x38]
sar eax, 1
push eax
push edx
call fcn.004044f0
mov dword [ebp - 4], 1
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
je 0x41e154
movups xmm0, xmmword [ebp - 0x38]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x28]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [esi + 4], 0x18
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
jmp 0x41e160
lea ecx, [ebp - 0x38]
push ecx
push eax
mov ecx, esi
call fcn.004081e0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0
call fcn.00404490
mov eax, dword [ebp - 0x18]
inc edi
cmp edi, dword [ebp - 0x14]
jl 0x41e0e1
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret