joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d1c0
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.0040d240
test al, al
jne 0x40d1e1
mov eax, dword [0x565ae0]
mov ecx, 1
test eax, eax
cmove eax, ecx
mov dword [0x565ae0], eax
push ebx
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
push str.Software
push reloc.OLEAUT32.dll_SysReAllocString
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d237
push 5
push str.tempo
push 1
push str.Tempo
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
test eax, eax
jne 0x40d22e
push str.Tempo
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40d2b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x564690]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
mov word [ebp - 8], ax
push edi
lea eax, [ebp - 0x48]
push eax
mov ecx, esi
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0x5f005f
mov dword [ebp - 0x44], 0x520043
mov dword [ebp - 0x40], 0x40005f
mov dword [ebp - 0x3c], 0x410046
mov dword [ebp - 0x38], 0x4c0049
mov dword [ebp - 0x34], 0x440045
mov dword [ebp - 0x30], 0x44005f
mov dword [ebp - 0x2c], 0x57004f
mov dword [ebp - 0x28], 0x4c004e
mov dword [ebp - 0x24], 0x41004f
mov dword [ebp - 0x20], 0x5f0044
mov dword [ebp - 0x1c], 0x450052
mov dword [ebp - 0x18], 0x440041
mov dword [ebp - 0x14], 0x5f0040
mov dword [ebp - 0x10], 0x520043
mov dword [ebp - 0xc], 0x5f005f
call fcn.00401b70
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e50b4
mov esp, ebp
pop ebp
ret

Function at 0x40d3d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d3eb
test al, 0x10
je 0x40d3eb
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x40d450
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040d3d0
add esp, 4
test al, al
jne 0x40d4f3
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40d487
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete al
pop esi
pop ebp
ret
mov ecx, dword [0x565ae0]
mov esi, 0x15
lea eax, [ecx + 1]
imul eax, ecx
cdq
idiv esi
cmp edx, 1
jne 0x40d4f3
movsd xmm3, qword [0x518d08]
movsd xmm6, qword [0x518d10]
movsd xmm5, qword [0x518d00]
movd xmm4, ecx
xorps xmm2, xmm2
cvtdq2pd xmm4, xmm4
addsd xmm2, xmm3
movapd xmm0, xmm2
mulsd xmm0, xmm2
comisd xmm0, xmm4
jbe 0x40d4dd
subsd xmm2, xmm3
divsd xmm3, xmm6
movapd xmm1, xmm2
mulsd xmm1, xmm2
movapd xmm0, xmm4
subsd xmm0, xmm1
comisd xmm0, xmm5
ja 0x40d4c3
mov al, 1
pop esi
pop ebp
ret
Function at 0x40d950
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0
push 3
push 0
push 0
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d97e
pop edi
xor eax, eax
pop esi
pop ebp
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
call fcn.0040e9e0
test al, al
jne 0x40d9a0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileType]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
pop ebp
ret
Function at 0x40db50
Capabilities:
Get common file path
Get program files directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50636b
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x564690]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], 0
call fcn.0040e8f0
mov eax, dword [0x5641c0]
mov ecx, 0x5641c0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov dword [ebp - 4], 0
xor edi, edi
call fcn.004658d0
test al, al
je 0x40dc36
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push edi
push edi
push str.ProgramW6432
call ebx
test eax, eax
je 0x40dcd2
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e3b54
add esp, 4
mov edi, eax
push esi
push edi
push str.ProgramW6432
call ebx
test eax, eax
je 0x40dcd2
test edi, edi
jne 0x40dc13
xor ecx, ecx
push ecx
push edi
jmp 0x40dcc7
mov ecx, edi
lea edx, [ecx + 2]
jmp 0x40dc20
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40dc20
sub ecx, edx
sar ecx, 1
push ecx
push edi
jmp 0x40dcc7
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.004e6690
mov eax, dword [0x565ae0]
imul eax, eax
cdq
mov ecx, 0x15
idiv ecx
add esp, 0xc
cmp edx, 2
jne 0x40dc8b
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ecx, dword [0x565ae0]
mov edx, 7
test eax, eax
cmove ecx, edx
mov dword [0x565ae0], ecx
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x40dcd2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40dcb0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00409890
call fcn.0040e8f0
test al, al
jne 0x40dcef
mov eax, dword [0x565ae0]
mov ecx, 1
test eax, eax
cmove eax, ecx
mov dword [0x565ae0], eax
test edi, edi
je 0x40dcfc
push edi
call fcn.004e5c83
add esp, 4
mov esi, dword [ebp - 0x21c]
add esi, 0xfffffff0
push esi
call fcn.00405870
mov ebx, dword [ebp - 0x220]
add eax, 0x10
mov dword [ebx], eax
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40dd37
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 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.004e50b4
mov esp, ebp
pop ebp
ret
Function at 0x40e6f0
Capabilities:
Get disk size
Timestomp file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
push esi
push 0
push 0x2000000
push 4
push 0
push 0
push 0xc0000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e722
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push eax
push esi
movq qword [ebp - 0x18], xmm0
movq qword [ebp - 0x10], xmm0
movq qword [ebp - 8], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileTime]
call fcn.0040e960
test al, al
jne 0x40e75b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x565ae0], eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
call fcn.0040e980
test al, al
jne 0x40e77e
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40e7a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506498
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x564690]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push dword [eax]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40e7f4
xor bl, bl
jmp 0x40e859
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], 0
mov ecx, dword [eax - 8]
mov esi, dword [eax - 0xc]
mov edx, 1
sub edx, dword [eax - 4]
or ecx, edx
jge 0x40e82a
push 0
lea ecx, [ebp + 0xc]
call fcn.004077f0
mov eax, dword [ebp + 0xc]
push 0
lea ecx, [ebp + 8]
push ecx
lea ecx, [esi + esi]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 1
sete bl
mov esi, dword [ebp + 0xc]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40e87d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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 0x40ebb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [0x564690]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push dword [eax]
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40eca7
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi]
push 0
lea ecx, [ebp - 0x164]
push ecx
mov dword [ebp - 0x164], 0
push dword [eax - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40eca0
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov esi, dword [0x565ae0]
mov bl, 1
lea ecx, [esi + 2]
lea eax, [esi + 1]
imul eax, ecx
imul eax, esi
cdq
mov ecx, 0x12
idiv ecx
cmp edx, 5
jne 0x40eca0
xor ecx, ecx
jmp 0x40ec60
mov eax, dword [ebp + ecx*4 - 0x14c]
add eax, dword [ebp + ecx*4 - 0x150]
add ecx, 6
add eax, dword [ebp + ecx*4 - 0x16c]
add eax, dword [ebp + ecx*4 - 0x170]
add eax, dword [ebp + ecx*4 - 0x174]
add eax, dword [ebp + ecx*4 - 0x178]
imul eax, eax, 0xb
add esi, eax
cmp ecx, 0x15c
jb 0x40ec60
mov dword [0x565ae0], esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004e50b4
mov esp, ebp
pop ebp
ret
Function at 0x413200
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [0x565ae0]
push ebx
push esi
mov esi, ecx
imul esi, ecx
imul esi, ecx
mov eax, esi
push edi
cdq
mov edi, 0x15
idiv edi
mov bl, 1
cmp edx, 3
jne 0x4132d9
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov edi, 0x13
idiv edi
cmp edx, 5
je 0x4132d3
mov eax, esi
cdq
idiv edi
cmp edx, 0xd
jne 0x4132d3
xor esi, esi
lea ecx, [ecx]
mov edx, esi
and edx, 1
dec edx
not edx
and edx, ecx
mov eax, esi
sar eax, 1
xor edx, eax
mov eax, edx
and eax, 1
dec eax
not eax
and eax, ecx
sar edx, 1
xor eax, edx
mov edx, eax
and edx, 1
dec edx
sar eax, 1
not edx
and edx, ecx
xor edx, eax
mov eax, edx
and eax, 1
dec eax
not eax
and eax, ecx
sar edx, 1
xor eax, edx
mov edx, eax
and edx, 1
dec edx
sar eax, 1
not edx
and edx, ecx
xor edx, eax
mov eax, edx
and eax, 1
dec eax
not eax
and eax, ecx
sar edx, 1
xor eax, edx
mov edx, eax
and edx, 1
dec edx
sar eax, 1
not edx
and edx, ecx
xor edx, eax
mov eax, edx
and eax, 1
dec eax
not eax
and eax, ecx
sar edx, 1
xor eax, edx
inc esi
add ecx, eax
cmp esi, 0x100
jl 0x413250
mov dword [0x565ae0], ecx
pop edi
pop esi
xor al, al
pop ebx
ret
pop edi
pop esi
mov al, bl
pop ebx
ret

Function at 0x4171b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507108
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x564690]
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 ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x4172e1
cmp byte [ebx + 0x46], 0
je 0x4172e1
mov eax, dword [ebx]
push 0xffff
call dword [eax + 0xc]
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
jne 0x41720f
xor al, al
jmp 0x4172e3
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
cmp ecx, 0x10
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 8
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
nop
cmp dword [ebp - 0x14], 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [ebp - 0x2c]
mov edx, dword [ecx]
push eax
mov eax, dword [ebp - 0x18]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x41727a
dec eax
je 0x41727e
sub eax, 2
je 0x4172ca
xor bl, bl
jmp 0x4172cc
mov byte [ebx + 0x46], 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, edx
sub esi, eax
je 0x4172b0
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [ebp - 0x28]
cmovae eax, edx
push 1
push eax
call fcn.004e7a2b
add esp, 0x10
cmp esi, eax
jne 0x417276
cmp byte [ebx + 0x46], 0
je 0x4172ca
test esi, esi
jne 0x417240
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00417e80
jmp 0x417240
mov bl, 1
cmp dword [ebp - 0x14], 0x10
jb 0x4172dd
push dword [ebp - 0x28]
call fcn.004e48b8
add esp, 4
mov al, bl
jmp 0x4172e3
mov al, 1
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.004e50b4
mov esp, ebp
pop ebp
ret
Function at 0x41d910
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507608
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x564690]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.0041dcf0
mov dword [edi], eax
lea ecx, [edi + 8]
mov dword [ebp - 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.0041dcf0
mov dword [edi + 8], eax
mov eax, dword [edi]
mov ecx, edi
push dword [eax + 4]
call fcn.0041dda0
mov eax, dword [edi]
lea ecx, [edi + 8]
mov dword [eax + 4], eax
mov eax, dword [edi]
mov dword [eax], eax
mov eax, dword [edi]
mov dword [eax + 8], eax
mov dword [edi + 4], 0
mov eax, dword [edi + 8]
push dword [eax + 4]
call fcn.0041dda0
mov eax, dword [edi + 8]
mov dword [eax + 4], eax
mov eax, dword [edi + 8]
mov dword [eax], eax
mov eax, dword [edi + 8]
mov dword [eax + 8], eax
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x420810
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
push 0
push 0
push 0x2001f
push 0x100
push 0
push dword [esi]
lea ecx, [ebp - 0xc]
push edi
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.0040a400
test eax, eax
je 0x420876
push 0
push 0
push 0x2001f
push 0
push 0
push dword [esi]
lea ecx, [ebp - 0xc]
push edi
call fcn.0040a400
test eax, eax
je 0x420876
mov esi, dword [ebp - 0xc]
xor bl, bl
jmp 0x4208cb
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0xc]
mov edx, dword [eax]
mov eax, dword [ebp + 8]
mov edi, dword [eax]
test edx, edx
jne 0x42088e
mov edi, 0xd
jmp 0x4208b9
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420893
sub ecx, ebx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test esi, esi
je 0x4208c6
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
test edi, edi
sete bl
test esi, esi
je 0x4208d6
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43be00
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
xor edi, edi
call fcn.0043bbb0
mov esi, eax
add esp, 4
test esi, esi
jne 0x43be1f
lea eax, [edi + 7]
pop edi
pop esi
pop ebp
ret
push ebx
call fcn.0043bc60
push esi
test eax, eax
je 0x43be61
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
test ebx, ebx
jne 0x43be99
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43be99
mov eax, edi
inc edi
cmp eax, 3
jge 0x43be99
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
test ebx, ebx
je 0x43be36
jmp 0x43be99
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, eax
test ebx, ebx
jne 0x43be99
lea ecx, [ecx]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43be99
mov eax, edi
inc edi
cmp eax, 3
jge 0x43be99
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, eax
test ebx, ebx
je 0x43be70
push esi
call fcn.0044c220
add esp, 4
xor ecx, ecx
test ebx, ebx
pop ebx
mov eax, 0xa
pop edi
cmovne eax, ecx
pop esi
pop ebp
ret

Function at 0x43bf60
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
call fcn.0043bbb0
mov esi, eax
add esp, 4
test esi, esi
jne 0x43bf7b
lea eax, [esi + 7]
pop esi
pop ebp
ret
push ebx
call fcn.0043bc60
push esi
test eax, eax
je 0x43bf8e
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x43bf94
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ebx, ebx
cmp eax, 0xffffffff
push esi
setne bl
call fcn.0044c220
add esp, 4
mov eax, ebx
pop ebx
pop esi
pop ebp
ret

Function at 0x43c080
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x43c090
xor eax, eax
pop esi
pop ebp
ret
call fcn.0043bc60
test eax, eax
jne 0x43c0b1
mov ecx, esi
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43c0a0
sub ecx, edx
cmp ecx, 0x104
ja 0x43c08b
push esi
call fcn.0043bbb0
mov esi, eax
add esp, 4
test esi, esi
jne 0x43c0c6
lea eax, [esi + 7]
pop esi
pop ebp
ret
push ebx
call fcn.0043bc60
push esi
test eax, eax
je 0x43c0d9
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x43c0df
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
mov ebx, eax
call fcn.0044c220
add esp, 4
cmp ebx, 0xffffffff
jne 0x43c0f5
pop ebx
xor eax, eax
pop esi
pop ebp
ret
movsx eax, bl
and eax, 0x10
pop ebx
shr eax, 4
pop esi
pop ebp
ret
Function at 0x43c3c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a8
mov eax, dword [0x564690]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x56650c]
push esi
push edi
mov edi, dword [ebp + 8]
test eax, eax
je 0x43c3ff
push 0x118
push eax
lea eax, [ebp - 0x13c]
push eax
call fcn.004e7dc0
add esp, 0xc
mov byte [ebp - 0x24], 0
jmp 0x43c48a
call fcn.0043bc60
test eax, eax
je 0x43c444
lea eax, [ebp - 0x3a8]
push eax
push 0x118
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x3a8]
push eax
call fcn.0043c700
mov esi, eax
add esp, 4
test esi, esi
jne 0x43c46b
pop edi
mov eax, 7
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50b4
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x274]
push eax
push 0x118
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x274]
push eax
call fcn.0043bd30
mov esi, eax
add esp, 4
test esi, esi
je 0x43c42f
push 0x118
lea eax, [ebp - 0x13c]
push esi
push eax
call fcn.004e7dc0
push esi
mov byte [ebp - 0x24], 0
call fcn.0044c220
add esp, 0x10
lea ecx, [ebp - 0x13c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43c493
sub ecx, edx
test ecx, ecx
jle 0x43c4b2
lea eax, [ebp - 0x13c]
cmp byte [eax + ecx - 1], 0x5c
jne 0x43c4b2
dec ecx
test ecx, ecx
jg 0x43c4a6
cmp ecx, 0x136
jae 0x43c59e
push ebx
mov byte [ebp + ecx - 0x13c], 0
mov ebx, 0x3e
lea esp, [esp]
lea eax, [ebp - 0x13c]
push eax
push str._setilqs_
push edi
call fcn.004ea283
mov esi, edi
add esp, 0xc
lea ecx, [esi + 1]
lea ebx, [ebx]
mov al, byte [esi]
inc esi
test al, al
jne 0x43c4f0
sub esi, ecx
lea eax, [edi + esi]
push eax
push 0xf
call fcn.00444ba0
add esp, 8
mov ecx, 3
lea esp, [esp]
movzx eax, byte [edi + esi]
xor edx, edx
div ebx
lea esi, [esi + 5]
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 5], al
movzx eax, byte [edi + esi - 4]
xor edx, edx
div ebx
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 4], al
movzx eax, byte [edi + esi - 3]
xor edx, edx
div ebx
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 3], al
movzx eax, byte [edi + esi - 2]
xor edx, edx
div ebx
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 2], al
movzx eax, byte [edi + esi - 1]
xor edx, edx
div ebx
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 1], al
dec ecx
jne 0x43c510
push edi
mov byte [edi + esi], cl
call fcn.0043bf60
add esp, 4
test eax, eax
jne 0x43c4d0
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.004e50b4
mov esp, ebp
pop ebp
ret
call fcn.004ea878
int3
Function at 0x43c5b0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x566508], 0
push esi
jne 0x43c5f0
call fcn.0043bf50
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
mov dword [0x566510], esi
cmp esi, 0xffffffff
jne 0x43c5df
call fcn.0043c110
xor eax, eax
pop esi
pop ebp
ret
mov dword [0x566508], 1
call fcn.0043c110
jmp 0x43c5f6
mov esi, dword [0x566510]
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [ebp + 8]
test eax, eax
jle 0x43c640
test esi, esi
jne 0x43c681
push 0xc
call fcn.0043bd70
mov esi, eax
add esp, 4
test esi, esi
je 0x43c681
movq xmm0, qword [0x51cb14]
movq qword [esi], xmm0
mov eax, dword [0x51cb1c]
push esi
push dword [0x566510]
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
pop esi
pop ebp
ret
test esi, esi
je 0x43c681
test eax, eax
jns 0x43c681
mov eax, dword [esi]
cmp eax, dword [0x51cb14]
jne 0x43c681
mov eax, dword [esi + 4]
cmp eax, dword [0x51cb18]
jne 0x43c681
mov eax, dword [esi + 8]
cmp eax, dword [0x51cb1c]
jne 0x43c681
push esi
call fcn.0043bd60
add esp, 4
push 0
push dword [0x566510]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor esi, esi
mov eax, esi
pop esi
pop ebp
ret