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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x1000d9b3
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x1000d997
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x1000d8e9
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x1000d8c7
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18
Function at 0x1000e62b
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, ecx
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x20]
push ebx
push edi
mov dword [ebp - 0x28], eax
mov eax, dword [eax]
mov edi, dword [eax + 0x6c]
imul edi, dword [eax + 0x60]
mov ebx, dword [eax + 0x20]
add edi, ebx
cmp ebx, edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], edi
jae 0x1000e743
push esi
mov esi, 0xf0
mov edx, dword [eax + 0x60]
mov eax, dword [eax + 0x68]
add eax, ebx
add edx, ebx
cmp ebx, eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x20], eax
jae 0x1000e723
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
movzx edi, byte [ebx + 1]
mov dword [ebp - 4], ecx
movzx ecx, byte [ebx]
mov ebx, ecx
and ebx, 0xf
mov edx, eax
and edx, 0xf
add edx, ebx
mov ebx, dword [ebp - 4]
and ebx, 0xf
add edx, ebx
mov dword [ebp - 0x1c], ecx
and cx, si
mov ebx, edi
and ebx, 0xf
lea edx, [edx + ebx + 2]
mov ebx, eax
and bx, si
shr edx, 2
and ax, si
add ebx, ecx
mov ecx, dword [ebp - 4]
and cx, si
add ebx, ecx
mov ecx, edi
and cx, si
and di, si
lea ecx, [ebx + ecx + 0x20]
shr ecx, 2
xor dl, cl
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0xc]
and cx, si
and dl, 0xf
add eax, ecx
mov ecx, dword [ebp - 4]
and cx, si
add eax, ecx
lea eax, [eax + edi + 0x20]
shr eax, 2
xor dl, al
mov eax, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [eax], dl
mov edx, dword [ebp - 0x10]
inc ebx
inc ebx
inc edx
inc edx
cmp ebx, dword [ebp - 0x20]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edx
jb 0x1000e683
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 4]
add ecx, dword [edx + 0x60]
mov eax, dword [eax]
mov edx, dword [eax + 0x60]
lea ebx, [ebx + edx*2]
cmp ebx, edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
jb 0x1000e665
pop esi
pop edi
xor eax, eax
pop ebx
leave
ret
Function at 0x1001c877
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x100bb864]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, esi
push edi
mov dword [ebp - 4], eax
mov edi, ecx
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x9c], esi
jne 0x1001c8ae
mov eax, 0x8876086c
jmp 0x1001c9d2
cmp dword [ebp + 0xc], esi
je 0x1001c955
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
je 0x1001c937
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push 0xfde9
call ebx
push eax
mov dword [ebp - 0xa4], eax
call fcn.1007598a
cmp eax, esi
pop ecx
mov dword [ebp - 0x9c], eax
jne 0x1001c90d
mov eax, 0x8007000e
jmp 0x1001c9d2
push esi
push esi
push dword [ebp - 0xa4]
push eax
push 0xffffffffffffffff
push dword [ebp - 0xa0]
push esi
push 0xfde9
call ebx
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], eax
mov dword [ebp + 0xc], esi
mov ebx, eax
cmp dword [ebp + 0xc], esi
je 0x1001c955
push esi
push 0x10000000
push 3
push esi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x1001c96c
push esi
push 0x10000000
push 3
push esi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push dword [ebp - 0x9c]
mov dword [edi], eax
call fcn.100762c9
mov eax, dword [edi]
cmp eax, 0xffffffff
pop ecx
je 0x1001c9c0
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [edi + 4], eax
je 0x1001c9c0
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [edi + 0xc], eax
je 0x1001c9c0
cmp eax, esi
je 0x1001c9cd
push esi
push esi
push esi
push 4
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [edi + 8], eax
jne 0x1001c9d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x88760b59
jmp 0x1001c9d2
mov dword [edi + 8], esi
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.100762d0
leave
ret 8
Function at 0x10027f99
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push esi
lea eax, [ebp - 0x24]
mov esi, ecx
and dword [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp + 0xc]
and dword [esi + 8], 0
and dword [esi + 0xc], 0
and dword [esi + 0x10], 0
mov dword [esi + 4], ecx
lea eax, [ecx + eax - 1]
dec ecx
not ecx
and eax, ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
mov dword [esi + 4], eax
jne 0x10027fde
mov ecx, 0x100000
lea ecx, [eax + ecx - 1]
dec eax
not eax
and ecx, eax
mov dword [esi + 0x14], ecx
mov eax, esi
pop esi
leave
ret 8
Function at 0x10039eae
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebx + 0x24]
push esi
mov dword [ebp - 8], edx
push edi
mov ecx, dword [ebx + 0x64]
mov eax, dword [ebx + 0x34]
mov esi, dword [ebx + 0x6c]
sub eax, ecx
sub eax, esi
mov dword [ebp - 4], eax
jne 0x10039edc
test ecx, ecx
jne 0x10039ee6
test esi, esi
jne 0x10039ee6
mov eax, edx
jmp 0x10039f57
cmp eax, 0xffffffff
jne 0x10039ee6
push 0xfffffffffffffffe
pop eax
jmp 0x10039f57
mov esi, dword [ebx + 0x24]
lea esi, [edx + esi - 0x106]
cmp ecx, esi
jb 0x10039f57
mov edi, dword [ebx + 0x30]
mov ecx, edx
mov eax, ecx
shr ecx, 2
lea esi, [edi + edx]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x44]
mov eax, dword [ebx + 0x3c]
sub dword [ebx + 0x68], edx
sub dword [ebx + 0x64], edx
sub dword [ebx + 0x54], edx
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx esi, word [eax]
mov edi, esi
sub edi, edx
cmp esi, edx
sbb esi, esi
not esi
and esi, edi
dec ecx
mov word [eax], si
jne 0x10039f1c
mov eax, dword [ebx + 0x38]
mov esi, edx
lea eax, [eax + edx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edi, ecx
sub edi, edx
cmp ecx, edx
sbb ecx, ecx
not ecx
and ecx, edi
dec esi
mov word [eax], cx
jne 0x10039f3b
mov eax, dword [ebp - 4]
add eax, edx
mov esi, dword [ebx]
cmp dword [esi + 4], 0
mov dword [ebp - 0xc], esi
je 0x1003a004
mov edi, dword [ebx + 0x6c]
add edi, dword [ebx + 0x64]
mov ecx, dword [esi + 4]
add edi, dword [ebx + 0x30]
cmp ecx, eax
mov dword [ebp - 4], ecx
jbe 0x10039f7c
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10039f86
xor ecx, ecx
jmp 0x10039fc5
sub ecx, dword [ebp - 4]
mov eax, dword [esi + 0x1c]
mov dword [esi + 4], ecx
cmp dword [eax + 0x18], 0
jne 0x10039fa8
push dword [ebp - 4]
push dword [esi]
push dword [esi + 0x30]
call fcn.1003bc58
mov edx, dword [ebp - 8]
mov dword [esi + 0x30], eax
mov ecx, dword [ebp - 4]
mov esi, dword [esi]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov eax, dword [ebp - 0xc]
add dword [eax], ecx
add dword [eax + 8], ecx
add dword [ebx + 0x6c], ecx
mov edi, dword [ebx + 0x6c]
cmp edi, 3
jb 0x10039ff0
mov eax, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x30]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [ebx + 0x50]
mov dword [ebx + 0x40], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp edi, 0x106
jae 0x1003a004
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x10039ebe
pop edi
pop esi
leave
ret
Function at 0x1004f35d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x218]
push 0x208
push edi
push eax
mov esi, edx
mov dword [ebp - 4], edi
mov ebx, ecx
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 8], edi
add esp, 0xc
mov dword [ebp - 0xc], edi
mov di, word [ebp + 8]
test esi, esi
mov dword [ebp - 0x10], 4
sete al
movzx esi, ax
lea eax, [ebp - 0x218]
test di, di
je 0x1004f3b4
push str.SoftwareAdobeAcrobat_Reader2020FeatureState
jmp 0x1004f3b9
push str.SoftwareAdobeAdobe_Acrobat2020FeatureState
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x218]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004f434
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1004f415
cmp dword [ebp - 8], 4
jne 0x1004f415
xor ebx, ebx
cmp dword [ebp - 0xc], ebx
setne bl
jmp 0x1004f429
mov ebx, esi
test di, di
je 0x1004f429
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1004f429
xor ecx, ecx
inc ecx
mov word [eax], cx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1004f448
mov ebx, esi
test di, di
je 0x1004f448
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1004f448
xor ecx, ecx
inc ecx
mov word [eax], cx
pop edi
pop esi
mov ax, bx
pop ebx
leave
ret 8
Function at 0x1006ce47
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x100bb864]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push esi
push edi
mov edi, dword [ebp + 0xc]
sub esp, 0x20
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], edi
movsd qword [esp + 0x18], xmm0
movsd xmm0, qword [eax + 0x58]
movsd qword [esp + 0x10], xmm0
movsd xmm0, qword [eax + 0x38]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [eax + 0x18]
lea eax, [ebp - 0x130]
movsd qword [esp], xmm0
push eax
call fcn.1006ca25
push 8
mov esi, eax
lea eax, [ebp - 0x104]
pop ecx
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
call fcn.1006d52a
fstp qword [ebp - 0x110]
xorps xmm0, xmm0
add esp, 0x30
comisd xmm0, xmmword [ebp - 0x110]
jbe 0x1006cf13
push 3
lea ecx, [ebp - 0x84]
pop edx
push 3
mov eax, ecx
pop esi
movsd xmm0, qword [eax]
xorps xmm0, xmmword [0x100a7090]
movsd qword [eax], xmm0
lea eax, [eax + 8]
sub esi, 1
jne 0x1006ceea
add ecx, 0x20
sub edx, 1
jne 0x1006cee5
movsd xmm0, qword [0x10084198]
jmp 0x1006cf1b
movsd xmm0, qword [0x10079e48]
mov esi, dword [ebp - 0x108]
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x130]
push eax
movsd qword [esi + 0x80], xmm0
call fcn.1006ca84
push 8
lea edi, [esi + 0x20]
mov esi, eax
pop ecx
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x130]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.1006e06a
mov edi, dword [ebp - 0x108]
mov esi, eax
push 8
pop ecx
lea eax, [ebp - 0x84]
add edi, 0x60
push eax
lea eax, [ebp - 0x130]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.1006ca84
mov edi, dword [ebp - 0x108]
add esp, 0x1c
add edi, 0x40
mov esi, eax
push 8
pop ecx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x108]
mov esi, eax
add ecx, 0x60
lea eax, [ebp - 0x130]
push ecx
sub esp, 0x20
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.1006d96f
add esp, 8
mov esi, eax
lea eax, [ebp - 0x130]
push 8
pop ecx
mov edi, esp
sub esp, 0x20
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x108]
push 8
pop ecx
mov edi, esp
add esi, 0x40
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.1006ccfc
mov edi, dword [ebp - 0x108]
add esp, 0x44
add edi, 0x40
mov esi, eax
push 8
pop ecx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100762d0
leave
ret
Function at 0x10071c25
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x100bb864]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, eax
push dword [esi*4 + 0x100bb408]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
push eax
push dword [esi*4 + 0x100bb408]
mov dword [ebp - 0x808], eax
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0x10
test eax, eax
je 0x10071c8f
inc esi
cmp esi, 3
jb 0x10071c45
push ebx
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy]
pop ecx
pop ecx
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100762d0
leave
ret
mov eax, dword [ebp - 0x808]
lea eax, [ebx + eax*2]
cmp word [eax], 0x5c
lea ebx, [eax + 2]
cmovne ebx, eax
cmp esi, 0xffffffff
je 0x10071c74
test esi, esi
je 0x10071ced
cmp esi, 1
je 0x10071cd7
cmp esi, 2
jne 0x10071c7e
mov eax, dword [0x10176190]
push 0x104
push edi
push 1
mov esi, dword [eax]
push eax
mov esi, dword [esi + 0x108]
mov ecx, esi
call dword [0x100783dc]
call esi
jmp 0x10071d52
mov eax, dword [0x10176190]
push 0x104
push edi
add eax, 0x10
push eax
call sym.drvDX9.x3d_public:_int___stdcall_e3_STRING::Get_unsigned_short_int___int_const
jmp 0x10071d52
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x804]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea esi, [ebp - 0x804]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov dword [ebp - 0x808], eax
pop ecx
test eax, eax
je 0x10071d2e
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
je 0x10071d3d
mov eax, dword [ebp - 0x808]
lea esi, [esi + eax*2]
xor eax, eax
add esi, 2
cmp word [esi], ax
jne 0x10071d0a
jmp 0x10071d49
push esi
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy]
pop ecx
pop ecx
xor eax, eax
cmp word [edi], ax
je 0x10071c7e
push edi
call fcn.100701cc
push ebx
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat]
add esp, 0xc
mov al, 1
jmp 0x10071c80
Function at 0x10071ed0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x2d], 0
jne 0x10071f6b
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push esi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x10071f22
mov byte [edi + 0x2d], 0xff
test esi, esi
je 0x10071f22
cmp esi, ebx
jge 0x10071f22
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 0
je 0x10071f65
add dword [edi + 0x1c], ebx
cmp dword [edi + 0x1c], 0xffff
jle 0x10071f65
xor eax, eax
mov word [edi + 0x1e], ax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x100783dc]
call esi
mov ecx, dword [edi + 0x18]
push 1
push dword [edi + 0x20]
mov esi, dword [ecx]
push eax
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x100783dc]
call dword [esi + 0xc]
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
jmp 0x10071f7d
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
pop edi
leave
ret 0xc

Function at 0x100721a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100bb864]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10176174], 0
mov eax, dword [ebp + 8]
je 0x100721c8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x100721e2
lea ecx, [ebp - 0x108]
push ecx
push eax
call sym.drvDX9.x3d_void___stdcall_WtoA_unsigned_short_int_const___char__
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.100762d0
leave
ret 4

Function at 0x100721f5
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100bb864]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10176174], 0
mov eax, dword [ebp + 8]
je 0x1007221d
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x1007223c
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call sym.drvDX9.x3d_int___stdcall_WtoAex_unsigned_short_int_const___char___int_
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100762d0
leave
ret
Function at 0x100723b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x100bb864]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10176174], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x100723e6
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
jmp 0x10072445
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call sym.drvDX9.x3d_void___stdcall_WtoA_unsigned_short_int_const___char__
lea eax, [ebp - 0x20c]
push eax
push edi
call sym.drvDX9.x3d_void___stdcall_WtoA_unsigned_short_int_const___char__
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov esi, eax
lea eax, [ebp - 0x108]
push ebx
push eax
call sym.drvDX9.x3d_void___stdcall_AtoW_char_const___unsigned_short_int__
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100762d0
leave
ret 0x10

Function at 0x10072460
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100bb864]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10176174], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x1007248c
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x100724bd
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x100724bb
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call sym.drvDX9.x3d_int___stdcall_AtoWex_char_const___unsigned_short_int___int_
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x100724bd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100762d0
leave
ret 8
Function at 0x607281
Capabilities:
Encode data using xor

Disassembly:
push ebp
push 0x5e
mov edi, 0x1835b48c
test dword [edx], esp
ret
jb 0x6072cd
adc dl, byte [ecx]
inc ebx
push ds
lodsb al, byte [esi]
scasb al, byte es:[edi]
inc ebx
jecxz 0x6072c7
dec eax
scasd eax, dword es:[edi]
frstor dword [ebp + 0x77]
pop edi
push ds
jle 0x6072a5
fist word [eax - 0x12]
pushal
div al
daa
out dx, eax
in al, dx
shr ecx, 1
and dword [edi - 0x579fe067], ebp
pop ecx
test al, 0x59
out 0x8e, al
adc bl, dh
or eax, 0xdde8ac3
jbe 0x60731e
lock or esi, dword [ebp - 0x47]
or esi, dword [ebp - 0x47]
mov dh, 0x8a
sub dword [eax], ecx
pop edi
sub al, 0xef
jb 0x607292
ret 0x5ee0
dec esi
mov dh, 0x1e
mov cl, 0x8d
mov ebx, dword [edi + 0x1c774c28]
lahf
sub byte [edi + esi*2 + 0x1c], cl
pop eax
mov ah, 0x4d
lodsb al, byte [esi]
push ecx
cdq
jp 0x607266
and byte [0x7c43a11e], cl
mul byte [edx]
and ch, bh
loopne 0x6072b3
loop 0x60734b
pushal
lodsd eax, dword [esi]
shr byte [ecx - 0x5d6e20dd], 1
cmpsd dword fs:[esi], dword es:[edi]
mov esi, 0x50b19eb8
invalid
or eax, 0x2876edd6
jbe 0x60732c
in eax, dx
jl 0x607302
out 0xaa, eax
paddusw mm4, qword [esi + eax*4 - 0x65cf0e17]
pop ds
sar byte [ebp + 0x46], 0x62
sbb eax, 0x3615744a
mov esi, 0x7211ed60
aam 0xf8
adc dword [edx - 0x2c], esi
clc
js 0x607376
push 0x422817ab
mov esi, 0xdd86605b
xchg ch, bl
shr byte [esi*8 - 0x62e3b47e], 0x71
invalid
mov ds, edx
pop ebx
mov ah, 0x82
push esi
or dword [ebx - 0x43], esp
jnp 0x6073bc
push ebp
jno 0x607369
and eax, 0xef20d248
xor ebx, dword [edx]
popfd
jp 0x6072ff
adc ecx, dword [esi + 0x6296239]
bound ebp, qword [ecx]
push es
mov esp, 0x9aa7abc0
xchg ebp, eax
add dword [esi - 0x60b51f97], ebx
mov edx, 0x4cd05a37
mov bh, byte [esi + esi*4 - 0x26]
aaa
pop edx
ror byte [edx + ecx*4 + 0x7c], 1
mov dh, 0xda
arpl word [edx], dx
stc
fucom st(0)
loop 0x6073b3
loopne 0x607366
out dx, eax
out dx, eax
mov esi, 0x80ad67b5
sub dword [eax - 0x6fe32e50], esi
dec edi
push ebx
adc eax, 0x3c444d34
mov dh, 0xdc
pop esi
int 0xe0
aad 0xa7
in al, dx
cmp al, 0xfd
mov al, byte [0xe8cd81fc]
jecxz 0x6073ee
das
xor ah, bl
push eax
and al, 0x60
hlt
mov eax, dword [0x7f56d7a7]
sbb ah, byte [ebx + 0x30]
iretd
jmp 0x6073d9
out dx, eax
mov dword [0x601380a9], eax
mov edi, 0x580bec3
inc ebx
sbb al, 0x33
or ch, dh
je 0x6073d8
dec ebp
xor byte [ecx + 0x71], bl
jno 0x607382
test al, 0x13
adc al, 0xcf
adc edx, dword [edi + ecx*8]
or al, 0x2c
hlt
xchg edx, eax
int1
xor eax, edi
loop 0x6073c3
sub bl, byte [edi - 2]
ret

Function at 0x64aff1
Capabilities:
Encode data using xor

Disassembly:
fstp qword [esi + 0x5a]
add esi, ecx
ror dword [0xd906876c], cl
push 0x26dce62a
hlt
xor edx, esi
invalid
cli
xchg esi, eax
imul eax, dword [eax + 0x22], 0xffffffd6
dec ecx
inc esi
cmp eax, 0x5eef2abe
loope 0x64afdb
jo 0x64afc0
push ebx
retf 0x200b