joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e6b6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x47e820]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43e6f6
cmp byte [ebx], 0xa
jne 0x43e6f6
or byte [edi + eax + 0x28], 4
jmp 0x43e6fb
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x43e7fa
mov dl, byte [eax]
cmp dl, 0x1a
je 0x43e7dd
inc eax
cmp dl, 0xd
je 0x43e727
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x43e74d
cmp eax, ecx
jae 0x43e75b
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x43e70f
jmp 0x43e7fa
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43e7d8
cmp dword [ebp - 0x10], 0
je 0x43e7d8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x47e820]
test byte [eax + edi + 0x28], 0x48
je 0x43e7b2
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x43e79d
mov byte [esi], dl
jmp 0x43e7ae
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47e820]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x43e7fa
cmp byte [ebp - 1], 0xa
jne 0x43e7c1
cmp esi, ebx
jne 0x43e7c1
mov byte [esi], 0xa
jmp 0x43e7f9
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043f23c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x43e7fa
mov byte [esi], 0xd
jmp 0x43e7f9
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x47e820]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x43e7f7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43e7fa
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43e803
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x47e820]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43e849
cmp word [ebx], dx
jne 0x43e849
or byte [eax + edi + 0x28], 4
jmp 0x43e84e
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x43e9b1
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x43e991
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x43e88f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x43e8c5
cmp eax, edx
jae 0x43e8d3
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x43e86a
jmp 0x43e9b1
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43e98c
cmp dword [ebp - 0x18], 0
je 0x43e98c
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x47e820]
test byte [eax + edi + 0x28], 0x48
je 0x43e962
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x43e926
mov word [esi], cx
jmp 0x43e95d
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x47e820]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x47e820]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x47e820]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x43e9b1
pop eax
cmp word [ebp - 4], ax
jne 0x43e972
cmp esi, ebx
jne 0x43e972
mov word [esi], ax
jmp 0x43e9ae
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0043f23c
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x43e9b1
push 0xd
pop eax
jmp 0x43e96d
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x47e820]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x43e9ab
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x43e9b1
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4427cf
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x44286c
push ebx
push esi
call fcn.00442798
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00441621
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x442819
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44286b
push edi
push eax
call fcn.0043ab95
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x442839
call fcn.0043abe3
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44286a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00441621
add esp, 0x20
test eax, eax
jne 0x442858
push edi
call fcn.0043abe3
jmp 0x442860
push ebx
call fcn.0043abe3
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4450b6
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0043a8aa
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x445125
cmp esi, dword [ebp - 4]
je 0x445120
cmp dword [ebp + 0xc], 0
je 0x445120
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4450fd
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00444c08
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x445127
xor eax, eax
inc eax
jmp 0x445127
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x44518c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x47c018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0043a8aa
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0043a8aa
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x445203
cmp word [ecx], dx
je 0x445203
mov eax, dword [0x44e134]
push edi
dec eax
push eax
push 0x44e020
call fcn.0044512b
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x445276
cmp word [eax], dx
je 0x445276
mov eax, dword [edi]
test eax, eax
je 0x445227
cmp word [eax], dx
je 0x445227
lea eax, [ebp - 0x10]
push eax
call fcn.00444b0e
jmp 0x445230
lea eax, [ebp - 0x10]
push eax
call fcn.00444ba9
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4452a0
mov eax, dword [0x44e01c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x44dd10
call fcn.0044512b
add esp, 0xc
test al, al
je 0x4452a0
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x44526b
cmp word [eax], di
je 0x44526b
lea eax, [ebp - 0x10]
push eax
call fcn.00444b0e
pop ecx
jmp 0x4452a2
lea eax, [ebp - 0x10]
push eax
call fcn.00444ba9
jmp 0x445268
mov eax, dword [edi]
test eax, eax
je 0x44528d
cmp word [eax], dx
je 0x44528d
lea eax, [ebp - 0x10]
push eax
call fcn.00444ac3
pop ecx
jmp 0x4452a0
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x44536b
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00444fb0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x44536b
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x44536b
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x44536b
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4452f8
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0043b2f1
test ebx, ebx
je 0x445366
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0043b2f1
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x44536b
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x44536b
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00434561
add esp, 0x10
xor eax, eax
inc eax
jmp 0x44536d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f19a
leave
ret
Function at 0x447b20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x447b4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x447b4d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4029e0
Capabilities:
Hash data via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8ff5
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x515080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 7
jbe 0x402a18
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x2c], 0x4ed624
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], 0
cmp ebx, 0xffffffff
jne 0x402a5d
mov byte [esi + 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esi + 0xc], edi
jmp 0x402bb5
mov dword [ebp - 0x24], 0x4ed0f4
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], 0x4ed0fc
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00402e20
mov edi, eax
test edi, edi
je 0x402a9c
mov dword [esi + 0xc], edi
jmp 0x402b73
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 3
push ecx
push 0x400
lea ecx, [ebp - 0x38]
call fcn.00403580
mov esi, dword [ebp - 0x38]
nop dword [eax]
push 0
lea eax, [ebp - 0x14]
push eax
push 0x400
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402b0f
push 0
push dword [ebp - 0x14]
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x402b16
cmp dword [ebp - 0x14], 0
jne 0x402ad0
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
call fcn.00402ea0
mov edi, eax
jmp 0x402b29
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, 0xc
mov eax, dword [ebp - 0x10]
mov dword [eax + ecx], edi
mov byte [ebp - 4], 2
test esi, esi
je 0x402b73
mov ecx, dword [ebp - 0x30]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x402b54
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402beb
push ecx
push esi
call fcn.004a1f24
add esp, 8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0x4ed0fc
test eax, eax
je 0x402b8c
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], 0x4ed0f4
test eax, eax
je 0x402bae
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x2c], 0x4ed624
test ebx, ebx
je 0x402bd5
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x28], 0
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 4
call fcn.004a6f3f
int3
Function at 0x402e20
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push 0
lea ebx, [edi + 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x402e60
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
ret 8
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
lea eax, [edi + 4]
push eax
push 0
push 0
push 0x800c
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x402e54
pop edi
pop esi
xor eax, eax
pop ebx
ret 8

Function at 0x404240
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9310
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x515080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4042c7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4042c7
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4042a7
cmp esi, edx
jae 0x4042c7
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x404295
cmp esi, edx
jae 0x4042c7
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
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 0x404970
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9426
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x515080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x30], eax
mov esi, ecx
mov dword [ebp - 0x34], esi
push 0
mov dword [ebp - 0x38], esi
push 0
mov dword [ebp - 0x2c], 0
mov eax, dword [eax + 0xc]
push 0x2000003
add eax, 0x30
push eax
push 1
call dword [sym.imp.CRYPT32.dll_CertNameToStrW]
mov edi, eax
test edi, edi
je 0x404a5f
push 0
push edi
lea ecx, [ebp - 0x28]
call fcn.00405050
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 7
mov eax, dword [ebp - 0x30]
cmova ecx, dword [ebp - 0x28]
push edi
push ecx
mov eax, dword [eax + 0xc]
push 0x2000003
add eax, 0x30
push eax
push 1
call dword [sym.imp.CRYPT32.dll_CertNameToStrW]
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x28]
dec ecx
xorps xmm0, xmm0
cmp dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ecx
cmova eax, dword [ebp - 0x28]
xor edx, edx
mov word [eax + ecx*2], dx
xor eax, eax
movups xmmword [esi], xmm0
movups xmm0, xmmword [ebp - 0x28]
mov word [ebp - 0x28], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x2c], 1
mov byte [ebp - 4], al
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
jmp 0x404a90
xorps xmm0, xmm0
xor eax, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], 1
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.004a1bc0
mov esp, ebp
pop ebp
ret
Function at 0x406360
Capabilities:
Get common file path

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push esi
push edi
push eax
push 0x23
push 0
mov esi, edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jns 0x406407
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x4063ff
push str.SHGetSpecialFolderPathW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4063ff
push 0x20a
call fcn.004a1f67
add esp, 4
mov dword [esi + 4], eax
mov ecx, edi
mov dword [esi], 0x105
push 0
push 0x23
push eax
push 0
call dword [0x4e2514]
call edi
test eax, eax
je 0x4063f3
mov esi, dword [esi + 4]
xor edx, edx
mov ecx, esi
cmp word [esi], dx
je 0x4063f3
lea ecx, [ecx + 2]
inc edx
cmp word [ecx], 0
jne 0x4063d6
test edx, edx
je 0x4063f3
cmp word [esi + edx*2 - 2], 0x5c
je 0x4063f3
mov dword [esi + edx*2], 0x5c
cmp eax, 1
pop edi
sete al
pop esi
add esp, 8
ret
pop edi
xor al, al
pop esi
add esp, 8
ret
push 0x20a
call fcn.004a1f67
add esp, 4
mov dword [esi + 4], eax
mov dword [esi], 0x105
push eax
push dword [esp + 0x10]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov edi, eax
test edi, edi
je 0x40645d
mov esi, dword [esi + 4]
xor edx, edx
mov ecx, esi
cmp word [esi], dx
je 0x40645d
nop word [eax + eax]
lea ecx, [ecx + 2]
inc edx
cmp word [ecx], 0
jne 0x406440
test edx, edx
je 0x40645d
cmp word [esi + edx*2 - 2], 0x5c
je 0x40645d
mov dword [esi + edx*2], 0x5c
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [esp + 8]
push dword [esp + 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x4e2514]
call esi
cmp edi, 1
pop edi
sete al
pop esi
add esp, 8
ret

Function at 0x4065f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9605
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x515080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x10], 0
je 0x4066a8
lea eax, [ebp - 0x40]
push eax
call fcn.00423610
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 7
jbe 0x40663d
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004040e0
xorps xmm0, xmm0
xor eax, eax
movlpd qword [ebp - 0x18], xmm0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 3
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x406699
push 0
push eax
mov ecx, esi
call fcn.004057a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004040e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a1bc0
mov esp, ebp
pop ebp
ret
Function at 0x406de0
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9939
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x515080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x238], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x234], 0
cmp dword [edx + 0x14], 7
jbe 0x406e30
mov edx, dword [edx]
lea ecx, [ebp - 0x218]
push ecx
push 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406e78
xorps xmm0, xmm0
movups xmmword [edi], xmm0
movq qword [edi + 0x10], xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x234], 1
jmp 0x406f99
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xorps xmm0, xmm0
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
movups xmmword [ebp - 0x230], xmm0
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406ec0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00403fa0
mov dword [ebp - 4], 3
lea eax, [ebp - 0x230]
push 1
sub esp, 0x18
mov dword [ebp - 0x238], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x240], esp
push eax
call fcn.004048c0
mov byte [ebp - 4], 4
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.004238e0
add esp, 0x18
mov byte [ebp - 4], 5
mov byte [ebp - 4], 3
mov ecx, edi
call fcn.00423cd0
mov byte [ebp - 4], 3
mov dword [ebp - 0x234], 1
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x21c]
cmp ecx, 7
jbe 0x406f7c
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406f72
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406fb6
push ecx
push edx
call fcn.004a1f24
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov eax, edi
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.004a1bc0
mov esp, ebp
pop ebp
ret
call fcn.004a6f3f
int3