joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5146b0
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f180e
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x69001c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], 0
call fcn.005155a0
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.004fed70
mov dword [ebp - 4], 0
push 0x5c
push dword [edi]
call fcn.00591bd6
add esp, 8
test eax, eax
jne 0x51470c
or eax, 0xffffffff
jmp 0x514710
sub eax, dword [edi]
sar eax, 1
lea ecx, [eax + 1]
mov byte [ebp - 4], 1
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.0040ea80
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push dword [eax - 0xc]
push eax
call fcn.0041a840
mov eax, 1
mov dword [ebp - 0x14], eax
and eax, 0xfffffffe
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0
or ebx, 0xffffffff
mov edx, dword [ebp - 0x1c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x514770
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x51478c
push 0x80
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push dword [ebp - 0x10]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x5147ac
mov dword [esi + 0x14], 1
lea esi, [eax + 1]
jmp 0x51486f
push edi
lea ecx, [esi + 0x1c]
push 3
call fcn.00527a90
call fcn.00409c60
mov ecx, eax
test ecx, ecx
je 0x5148a2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x1c]
push 0
push eax
lea ecx, [esi + 0x1c]
call fcn.00527bd0
mov byte [ebp - 4], 5
push dword [eax]
lea eax, [ebp - 0x18]
push dword [ebp - 0x10]
push 0x62dec4
push eax
call fcn.00408c40
add esp, 0x10
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x51481b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esi + 0x194]
call fcn.00518060
push ecx
push 0
push 0x20
push 0
push 0
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x10]
call fcn.00528da0
add esp, 0x14
test al, al
jne 0x51484f
mov dword [esi + 0x14], 1
mov esi, 1
jmp 0x514851
xor esi, esi
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x51486f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x51488e
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
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
push 0x80004005
call fcn.00409920
int3
Function at 0x5180d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x69001c]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, ecx
push esi
push 2
mov dword [esp + 0xc], eax
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
xorps xmm0, xmm0
lea eax, [esp + 0x1c]
push eax
push esi
movups xmmword [esp + 0x24], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 8]
xor eax, eax
mov edx, 5
cmp byte [ecx + 0x2c], al
cmovne eax, edx
push eax
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push 0
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esp + 8]
push 0x3e9
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
xorps xmm0, xmm0
lea eax, [esp + 0xc]
push eax
push esi
movups xmmword [esp + 0x14], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 8]
cmp dword [ecx + 0x30], 0
jne 0x518169
mov eax, dword [esp + 0x14]
mov dword [ecx + 0x30], eax
cmp byte [ecx + 0x2c], 0
je 0x518174
mov edx, dword [ecx + 0x30]
jmp 0x518178
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
sub eax, ecx
push 0x206
push eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], edx
sub edx, eax
push edx
push ecx
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esp + 0x2c]
pop esi
xor ecx, esp
call fcn.0059046a
mov esp, ebp
pop ebp
ret
Function at 0x518810
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f2545
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x69001c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0xc0], 0
je 0x518a09
cmp byte [edi + 0xd8], 0
jne 0x518a09
cmp dword [edi + 0x90], 3
je 0x51887f
call fcn.0051b6b0
mov eax, dword [edi + 0x90]
cmp eax, 2
je 0x51887f
cmp eax, 1
je 0x51887f
test byte [edi + 0x44], 0x48
je 0x51887f
mov ecx, edi
call fcn.00519a40
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 1
xor ebx, ebx
mov eax, dword [edi + 0xa8]
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x518923
test ebx, ebx
js 0x518a1b
cmp ebx, dword [edi + 0xa8]
jge 0x518a1b
mov eax, dword [edi + 0xa4]
lea ecx, [ebx*4]
push dword [eax + ecx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x51891d
cmp ebx, dword [edi + 0xa8]
jge 0x518a1b
mov eax, dword [edi + 0xa4]
lea ecx, [ebx*4]
add eax, ecx
lea ecx, [ebp - 0x28]
push eax
call fcn.004fa910
inc ebx
cmp ebx, dword [ebp - 0x10]
jl 0x5188c3
mov ebx, dword [edi + 0xb4]
lea esi, [edi + 0xb0]
sub ebx, 1
js 0x51898b
test ebx, ebx
js 0x518a1b
cmp ebx, dword [esi + 4]
jge 0x518a1b
mov eax, dword [esi]
lea ecx, [ebx*4]
push dword [eax + ecx]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
lea esi, [edi + 0xb0]
jne 0x518986
cmp ebx, dword [esi + 4]
jge 0x518a1b
mov eax, dword [esi]
lea ecx, [ebx*4]
add eax, ecx
lea ecx, [ebp - 0x1c]
push eax
call fcn.004fa910
sub ebx, 1
jns 0x518934
lea eax, [ebp - 0x28]
lea ecx, [edi + 0xa4]
push eax
call fcn.0051dc10
mov ecx, esi
call fcn.004ea3f0
mov eax, dword [ebp - 0x18]
lea esi, [eax - 1]
test esi, esi
js 0x5189d0
nop dword [eax + eax]
cmp esi, eax
jge 0x518a1b
mov eax, dword [ebp - 0x1c]
lea ecx, [edi + 0xb0]
lea eax, [eax + esi*4]
push eax
call fcn.004fa910
sub esi, 1
js 0x5189d0
mov eax, dword [ebp - 0x18]
jmp 0x5189b0
cmp dword [edi + 0xa8], 0
jne 0x5189e6
cmp dword [edi + 0xb4], 0
jne 0x5189e6
mov al, 1
jmp 0x5189e8
xor al, al
mov byte [edi + 0xd8], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004ea3f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004ea3f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
push 0xc000008c
call fcn.00412920
int3
Function at 0x51d970
Capabilities:
Delete file

Disassembly:
push ebx
push ebp
mov ebx, ecx
push esi
xor esi, esi
push edi
cmp dword [ebx + 0xe4], esi
jle 0x51d9a6
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
js 0x51d9b5
cmp esi, dword [ebx + 0xe4]
jge 0x51d9b5
mov eax, dword [ebx + 0xe0]
push dword [eax + esi*4]
call ebp
inc esi
cmp esi, dword [ebx + 0xe4]
jl 0x51d986
pop edi
pop esi
pop ebp
lea ecx, [ebx + 0xe0]
pop ebx
jmp fcn.004ea3f0
push 1
push 0xc000008c
call fcn.00412920
int3

Function at 0x51e230
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f3626
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x69001c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 2
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x51e272
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 0xc]
lea edi, [esi + 0xc]
or ebx, 0xffffffff
cmp dword [eax - 0xc], 0
je 0x51e32b
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push str.SoftwareCaphyonSetups
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x51e32b
push dword [edi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00409c60
mov ecx, eax
test ecx, ecx
je 0x51e3b7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
mov eax, str.SoftwareCaphyonSetups
lea ecx, [ebp - 0x10]
test eax, 0xffff0000
jne 0x51e2f5
movzx eax, ax
push eax
call fcn.004091a0
jmp 0x51e301
push 0x17
push str.SoftwareCaphyonSetups
call fcn.004097d0
mov byte [ebp - 4], 4
lea edx, [ebp - 0x10]
call fcn.00528980
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x51e32b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x51e346
push eax
call fcn.00597dd8
add esp, 4
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov byte [ebp - 4], 0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x51e36f
push eax
call fcn.00597dd8
add esp, 4
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0xffffffff
mov edx, dword [edi]
sub edx, 0x10
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x51e3a5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00409920
int3
Function at 0x51e800
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x5f3745
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x69001c]
xor eax, ebp
mov dword [ebp + 0x208], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x2c], 0
mov esi, 0x696b88
je 0x51e856
xor eax, eax
xchg dword [esi], eax
mov eax, dword [edi + 0x2c]
cmp eax, dword [edi + 0x30]
je 0x51e856
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp + 0x214]
mov dword [edi + 0x2c], eax
xchg dword [esi], eax
mov eax, dword [edi + 0xc]
cmp dword [eax - 0xc], 0
je 0x51e8d6
push 0x104
lea eax, [ebp]
push eax
push dword [0x696b88]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x51e8d6
lea esi, [eax + eax]
cmp esi, 0x208
jae 0x51e955
xor eax, eax
mov word [ebp + esi], ax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push str.SoftwareCaphyonSetups
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x51e8d6
lea eax, [esi + 2]
push eax
lea eax, [ebp]
push eax
push 1
push 0
push dword [edi + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [edi]
push edi
lea ecx, [edi + 8]
call fcn.0041b220
lea ecx, [edi + 8]
call fcn.0053b4b0
mov edx, 0xa1
lea ecx, [ebp - 0x10]
call fcn.005273f0
mov dword [ebp - 4], 0
lea eax, [edi + 4]
push dword [edi + 8]
push dword [ebp - 0x10]
push eax
call fcn.00408c40
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x51e931
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0059046a
lea esp, [ebp + 0x20c]
pop ebp
ret 4
call fcn.00590b6a
int3
Function at 0x51ebe0
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x38
mov eax, dword [0x69001c]
xor eax, esp
mov dword [esp + 0x34], eax
movaps xmm0, xmmword [0x6388c0]
push ebx
push ebp
push esi
movups xmmword [esp + 0x20], xmm0
mov bh, dl
mov ebp, ecx
movaps xmm0, xmmword [0x6388c0]
push edi
movups xmmword [esp + 0x34], xmm0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push str.kernel32.dll
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetSystemDefaultUILanguage
push esi
call edi
test eax, eax
je 0x51ec60
call eax
movzx eax, ax
mov dword [esp + 0x10], eax
push str.GetUserDefaultUILanguage
push esi
call edi
test eax, eax
je 0x51ec75
call eax
movzx eax, ax
mov dword [esp + 0x14], eax
mov edi, dword [ebp + 4]
xor eax, eax
test edi, edi
jle 0x51ed3e
lea esi, [eax + 0xc]
test eax, eax
js 0x51ed89
cmp eax, edi
jge 0x51ed89
mov ecx, dword [ebp]
movzx edx, word [ecx + eax*2]
mov ecx, dword [esp + 0x18]
cmp dx, cx
jne 0x51ecb4
xor ecx, ecx
test bh, bh
cmovne ecx, esi
mov dword [esp + ecx + 0x24], eax
mov ecx, dword [esp + 0x18]
movzx esi, bh
cmp dl, cl
jne 0x51ecbf
mov dword [esp + esi*8 + 0x38], eax
mov ecx, dword [esp + 0x1c]
cmp dx, cx
jne 0x51ece4
test bh, bh
mov dword [esp + 0x20], 0
mov ecx, 0xc
cmovne ecx, dword [esp + 0x20]
mov dword [esp + ecx + 0x24], eax
mov ecx, dword [esp + 0x1c]
mov bl, bh
xor bl, 1
cmp dl, cl
jne 0x51ecf4
movzx ecx, bl
mov dword [esp + ecx*8 + 0x38], eax
mov ecx, dword [esp + 0x10]
cmp dx, cx
jne 0x51ed08
movzx ecx, bh
mov dword [esp + ecx*4 + 0x28], eax
mov ecx, dword [esp + 0x10]
cmp dl, cl
jne 0x51ed10
mov dword [esp + esi*8 + 0x34], eax
cmp dx, word [esp + 0x14]
jne 0x51ed23
movzx ecx, bh
xor ecx, 1
mov dword [esp + ecx*4 + 0x28], eax
jmp 0x51ed26
movzx ecx, bl
cmp dl, byte [esp + 0x14]
jne 0x51ed30
mov dword [esp + ecx*8 + 0x34], eax
inc eax
mov esi, 0xc
cmp eax, edi
jl 0x51ec85
xor eax, eax
mov ecx, dword [esp + eax*4 + 0x24]
test ecx, ecx
jns 0x51ed6b
inc eax
cmp eax, 8
jb 0x51ed40
test edi, edi
jle 0x51ed89
mov eax, dword [ebp]
pop edi
pop esi
pop ebp
mov ax, word [eax]
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0059046a
add esp, 0x38
ret
cmp ecx, edi
jge 0x51ed89
mov eax, dword [ebp]
pop edi
pop esi
pop ebp
mov ax, word [eax + ecx*2]
mov ecx, dword [esp + 0x38]
pop ebx
xor ecx, esp
call fcn.0059046a
add esp, 0x38
ret
push 1
push 0xc000008c
call fcn.00412920
int3
Function at 0x51efb0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f3886
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x69001c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call fcn.00409c60
mov ecx, eax
test ecx, ecx
je 0x51f0ab
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
push 0
push 0x6166bc
push 2
movzx ebx, di
push ebx
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [ebp - 0x18], eax
lea ecx, [eax - 1]
push ecx
push 0x78
lea ecx, [ebp - 0x10]
call fcn.004e2ab0
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
cmp dword [ecx - 4], 1
jle 0x51f056
push dword [ecx - 0xc]
lea ecx, [ebp - 0x10]
call fcn.004095d0
mov ecx, dword [ebp - 0x10]
push dword [ebp - 0x18]
push ecx
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push dword [ebp - 0x10]
push edi
push str._d__s
push esi
call fcn.00408c40
add esp, 0x10
mov dword [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x51f097
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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
push 0x80004005
call fcn.00409920
int3
Function at 0x51f170
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f392f
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x69001c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call fcn.00409c60
test eax, eax
je 0x51f2a2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 1
lea edi, [esi + 4]
mov dword [ebp - 0x14], edi
call fcn.00409c60
test eax, eax
je 0x51f2a2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 3
lea edi, [esi + 8]
mov dword [ebp - 0x14], edi
call fcn.00409c60
test eax, eax
je 0x51f2a2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 5
lea ecx, [esi + 0xc]
mov dword [ebp - 0x14], ecx
lea eax, [ecx + 8]
mov dword [ecx + 4], 0
mov dword [ebp - 0x18], eax
mov dword [eax + 0xc], 0
mov byte [ebp - 4], 7
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov byte [ebp - 4], 0xa
mov dword [ecx + 0x20], 0x62d628
mov dword [ecx], 0x62e048
mov dword [ecx + 0x20], 0x62e058
mov byte [ecx + 0x24], 0
mov dword [ecx + 0x28], 0
mov word [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x34], 0
mov byte [ebp - 4], 0xb
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00409920
int3

Function at 0x51f5d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f39bd
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x69001c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], 0x619fb0
mov dword [ebp - 0x24], 0x631320
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x10], 0
push eax
push 0x53b870
push 0
push 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x51f663
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x20]
mov ecx, eax
call fcn.0051f0c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0053b6f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x5242b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f48ab
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x69001c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 2
xor esi, esi
or ebx, 0xffffffff
cmp dword [edi + 0x28], esi
jle 0x524389
test esi, esi
js 0x5243db
cmp esi, dword [edi + 0x28]
jge 0x5243db
mov eax, dword [edi + 0x24]
lea ebx, [esi*4]
push dword [eax + ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp esi, dword [edi + 0x28]
jge 0x5243db
mov eax, dword [edi + 0x24]
push 0x5c
push dword [ebx + eax]
lea ecx, [eax + ebx]
add ebx, eax
mov dword [ebp - 0x10], ecx
call fcn.00591bd6
add esp, 8
test eax, eax
jne 0x524340
or eax, 0xffffffff
jmp 0x524344
sub eax, dword [ebx]
sar eax, 1
mov ecx, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040e7d0
mov byte [ebp - 4], 3
mov edx, edi
mov ecx, eax
call fcn.004ff840
mov byte [ebp - 4], 2
or ebx, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x52437f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc esi
cmp esi, dword [edi + 0x28]
jl 0x5242f2
mov byte [ebp - 4], 1
lea ecx, [edi + 0x24]
call fcn.004ea3f0
mov byte [ebp - 4], 0
lea ecx, [edi + 4]
call fcn.00524a80
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0xffffffff
mov edx, dword [edi]
sub edx, 0x10
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x5243c9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
push 0xc000008c
call fcn.00412920
int3
Function at 0x526240
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
lea eax, [esp + 0x1c]
mov ebx, edx
push eax
lea eax, [esp + 0x1c]
mov ebp, ecx
push eax
push 0
push dword [ebx]
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, 0xea
jne 0x526300
mov edi, dword [esp + 0x10]
test edi, edi
js 0x52630f
mov esi, dword [esp + 0x20]
mov ecx, 1
mov edx, dword [esi]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x5262a8
push edi
mov ecx, esi
call fcn.004096b0
mov edx, dword [esi]
cmp dword [edx - 4], 1
jle 0x5262ba
push dword [edx - 0xc]
mov ecx, esi
call fcn.004095d0
mov edx, dword [esi]
lea eax, [esp + 0x10]
push eax
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push dword [ebx]
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov eax, dword [esi]
test eax, eax
jne 0x5262dc
xor ecx, ecx
jmp 0x5262ee
push dword [eax - 8]
push eax
call fcn.00597f8d
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x52630f
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x52630f
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
xor eax, eax
test edi, edi
pop edi
pop esi
pop ebp
setne al
pop ebx
add esp, 0xc
ret
push 0x80070057
call fcn.00409920
int3