joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b980
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [ecx]
mov ecx, dword [esp + 0x14]
push esi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
call fcn.00524cca
cmp ebp, ebx
je 0x44ba58
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x20]
push ebx
lea ecx, [esp + 0x28]
push eax
push ecx
push ebx
push ebx
push ebx
push ebp
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x44ba58
cmp dword [esp + 0x10], ebx
jbe 0x44ba58
mov eax, dword [esp + 0xc]
cmp eax, 0x104
jae 0x44b9e6
mov eax, 0x104
mov dword [esp + 0xc], eax
inc eax
push eax
call fcn.00529cd7
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x44ba58
cmp dword [esp + 0x10], ebx
jbe 0x44ba41
push edi
mov edx, dword [esp + 0x10]
xor eax, eax
mov edi, esi
lea ecx, [edx + 1]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
inc eax
push eax
push esi
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x44ba37
mov ecx, dword [esp + 0x1c]
push esi
mov edx, dword [ecx + 8]
push edx
call fcn.00524ee0
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, eax
jb 0x44b9fd
pop edi
push esi
call fcn.00529d00
add esp, 4
mov eax, 1
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4

Function at 0x44bbc0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [ecx]
mov ecx, dword [esp + 0x18]
push esi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
call fcn.00524cca
cmp ebp, ebx
je 0x44bcab
push ebx
push ebx
lea eax, [esp + 0x14]
push ebx
lea ecx, [esp + 0x1c]
push eax
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebp
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x44bcab
cmp dword [esp + 0x10], ebx
jbe 0x44bcab
mov edx, dword [esp + 0xc]
lea eax, [edx + edx]
cmp eax, 0x104
ja 0x44bc25
mov eax, 0x104
mov dword [esp + 0xc], eax
inc eax
push eax
call fcn.00529cd7
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x44bcab
cmp dword [esp + 0x10], ebx
jbe 0x44bc94
push edi
mov eax, dword [esp + 0x10]
mov edi, esi
push 0
push 0
lea ecx, [eax + 1]
xor eax, eax
mov edx, ecx
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x28]
push ecx
push esi
inc eax
push ebx
push ebp
mov dword [esp + 0x38], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x44bc8a
mov ecx, dword [esp + 0x20]
push esi
mov edx, dword [ecx + 8]
push edx
call fcn.00524ee0
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, eax
jb 0x44bc40
pop edi
push esi
call fcn.00529d00
add esp, 4
mov eax, 1
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 4
Function at 0x44c100
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push ebx
test edx, edx
push esi
mov ebx, ecx
je 0x44c136
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
lea esi, [esp + 0xc]
or eax, 0x20019
push esi
push eax
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x44c138
mov esi, dword [ebx]
test esi, esi
je 0x44c1c3
mov edx, dword [esp + 0x10]
push edi
lea eax, [esp + 0x14]
xor edi, edi
push eax
lea ecx, [esp + 0x14]
push edi
push ecx
push edi
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne case.0x44c168.2
mov eax, dword [esp + 0x18]
cmp eax, 4
ja case.0x44c168.2
jmp dword [eax*4 + 0x44c1cc]
mov edi, 1
jmp case.0x44c168.2
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, 4
sete al
mov edi, eax
jmp case.0x44c168.2
mov eax, dword [esp + 0x10]
cmp eax, 1
je case.0x44c168.0
cmp eax, 2
je case.0x44c168.0
cmp eax, 6
je case.0x44c168.0
cmp eax, 7
je case.0x44c168.0
xor edi, edi
jmp case.0x44c168.2
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, 3
sete cl
mov edi, ecx
cmp esi, dword [ebx]
je 0x44c1bb
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x44c2d0
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x44c320
lea eax, [esi + 4]
push eax
push 4
push esi
push 0x44c4f0
push 0
push 0
call fcn.00422318
add esp, 0x18
mov dword [esi + 8], eax
test eax, eax
je 0x44c320
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0xc], 1
test ecx, ecx
je 0x44c30f
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x44c370
Capabilities:
Terminate thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x44c384
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 8]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 8]
push 0
push ecx
push 2
mov dword [esp + 0x18], edx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edx, dword [esi + 8]
push 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x44c3d1
mov eax, dword [esi + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push ecx
call edi
mov edx, dword [esi + 0x14]
push edx
call edi
mov dword [esi + 0xc], 0
pop edi
mov eax, 1
pop esi
add esp, 8
ret
Function at 0x450170
Capabilities:
Get session user name

Disassembly:
sub esp, 0x108
xor eax, eax
push ebx
mov ebx, dword [esp + 0x114]
mov ecx, ebx
push ebp
mov ebp, dword [esp + 0x114]
push esi
mov edx, ecx
push edi
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.00468390
test eax, eax
je 0x450246
push 0x41
push 0
push 1
push str.default
call dword [sym.imp.USER32.dll_OpenDesktopA]
mov esi, eax
test esi, esi
jne 0x4501cb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push eax
push 0x4502f0
push esi
call dword [sym.imp.USER32.dll_EnumDesktopWindows]
push esi
call dword [sym.imp.USER32.dll_CloseDesktop]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, ebx
jb 0x450215
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, 1
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov esi, eax
test esi, esi
je 0x4502c7
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, ebx
jb 0x450296
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, 1
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4dd
jne 0x4502d9
mov esi, 1
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x452ba0
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x55831b
push eax
mov dword fs:[0], esp
sub esp, 0x65c
mov ecx, 0x5b2930
push ebx
push ebp
push esi
push edi
push str.PATH
push str.softwareTECOcular.3_agentdebug
call fcn.00453770
mov ebp, eax
xor ebx, ebx
cmp ebp, ebx
je 0x452bf1
push ebp
call fcn.00421d8c
add esp, 4
test eax, eax
jne 0x452c34
push ebp
call fcn.00529d00
add esp, 4
push 0x59e504
call fcn.00421d8c
inc eax
lea esi, [eax + eax]
push esi
call fcn.00529cd7
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x452d78
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0x59e504
and ecx, 3
push ebp
rep stosb byte es:[edi], al
call fcn.00421be3
add esp, 8
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x266]
mov word [esp + 0x264], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x264]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x67c]
lea ecx, [esp + 0x264]
push eax
push str.oadbg_
push str._s_s_
push ecx
call fcn.00425a1c
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x476]
mov word [esp + 0x474], bx
rep stosd dword es:[edi], eax
add esp, 0x10
lea edx, [esp + 0x264]
stosw word es:[edi], ax
push edx
push ebp
lea eax, [esp + 0x46c]
push 0x59e4d8
push eax
call fcn.00425a1c
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x28]
mov dword [esp + 0x24], ebx
rep stosd dword es:[edi], eax
add esp, 0x10
lea ecx, [esp + 0x14]
lea edx, [esp + 0x464]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x452d6f
mov esi, dword [esp + 0x680]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [esp + 0x40]
push 0x59e4d0
push eax
call edi
test eax, eax
je 0x452d58
lea ecx, [esp + 0x40]
push 0x59e4cc
push ecx
call edi
test eax, eax
je 0x452d58
test byte [esp + 0x14], 0x10
jne 0x452d58
lea edx, [esp + 0x40]
lea ecx, [esp + 0x10]
push edx
call fcn.0052aaa2
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x67c], 0
call fcn.00524f0c
lea ecx, [esp + 0x10]
mov dword [esp + 0x674], 0xffffffff
call fcn.0052a9e2
lea edx, [esp + 0x14]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x452cf4
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebp
call fcn.00529d00
add esp, 4
mov ecx, dword [esp + 0x66c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x668
ret 8
Function at 0x453330
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x20c
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x21c]
lea ecx, [esp + 0x18]
push eax
push str.softwareTECOcular.3_agentdebug
push 0x5967dc
push ecx
call fcn.00425a1c
add esp, 0x10
lea edx, [esp + 0xc]
lea eax, [esp + 0x18]
xor esi, esi
push edx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x4533a6
lea ecx, [esp + 0xc]
lea edx, [esp + 0x18]
push ecx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x453421
mov edi, dword [esp + 0x220]
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
lea ecx, [esp + 0x1c]
push ebx
push ecx
push ebx
push edi
push edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
call ebp
mov eax, dword [esp + 0x14]
cmp eax, 2
jb 0x453407
add eax, 2
mov dword [esp + 0x14], eax
shr eax, 1
add eax, eax
push eax
call fcn.00529cd7
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x453407
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
push ebx
push edi
push eax
call ebp
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x20c
ret 8
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x20c
ret 8

Function at 0x453430
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push esi
push edi
xor esi, esi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x21c]
lea ecx, [esp + 0x18]
push eax
push str.softwareTECOcular.3_agentdebug
push 0x5967dc
push ecx
call fcn.00425a1c
add esp, 0x10
lea edx, [esp + 8]
lea eax, [esp + 0x18]
mov dword [esp + 0xc], esi
push edx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x4534a7
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
push ecx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4534e1
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x224]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push esi
push eax
push ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
pop edi
pop esi
add esp, 0x210
ret 8
Function at 0x453770
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 8]
push eax
xor esi, esi
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x4537ad
lea ecx, [esp + 8]
push ecx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x45382d
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edx
lea eax, [esp + 0x14]
push 0
push eax
push 0
push edi
push ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
call ebx
mov eax, dword [esp + 0x18]
cmp eax, 2
jb 0x453817
add eax, 2
mov dword [esp + 0x18], eax
shr eax, 1
lea edx, [eax + eax]
push edx
call fcn.00529cd7
mov esi, eax
add esp, 4
test esi, esi
je 0x453817
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
push 0
push edi
push edx
call ebx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, esi
pop edi
pop esi
add esp, 8
ret 8
mov eax, esi
pop edi
pop esi
add esp, 8
ret 8
Function at 0x455d50
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5584f5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov eax, dword [0x599508]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x119]
mov byte [esp + 0x118], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x14]
push 0x104
push ecx
mov dword [esp + 0x22c], 1
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x455e79
lea edx, [esp + 0x14]
push 0x5c
push edx
call fcn.0042c320
add esp, 8
cmp eax, ebx
je 0x455de3
mov byte [eax], bl
lea eax, [esp + 0x118]
test eax, eax
je 0x455e72
lea ecx, [esp + 0x14]
test ecx, ecx
je 0x455e72
mov eax, dword [esp + 0x230]
mov edx, 0x7a
cmp eax, ebx
je 0x455e30
lea edx, [esp + 0x14]
push eax
push edx
push 0x591ecc
lea eax, [esp + 0x124]
push 0x104
push eax
call fcn.004b7563
add esp, 0x14
xor edx, edx
mov eax, edx
jmp 0x455e7f
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x104
jae 0x455e6e
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x118]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor edx, edx
rep movsb byte es:[edi], byte [esi]
mov eax, edx
jmp 0x455e7f
mov eax, 0x57
jmp 0x455e7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
mov dword [0x5b29a4], eax
je 0x455e91
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x455ea2
lea ecx, [esp + 0x118]
push ecx
lea ecx, [esp + 0x10]
call fcn.0052ab6b
mov esi, dword [esp + 0x22c]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.0052a757
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x224], bl
call fcn.0052a9e2
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x21c
ret
Function at 0x456250
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x558545
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov eax, dword [0x599508]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x119]
mov byte [esp + 0x118], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x14]
push 0x104
push ecx
mov dword [esp + 0x22c], 1
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x456364
lea edx, [esp + 0x118]
test edx, edx
je 0x45635d
lea eax, [esp + 0x14]
test eax, eax
je 0x45635d
mov eax, dword [esp + 0x230]
mov edx, 0x7a
cmp eax, ebx
je 0x45631b
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x591ecc
lea edx, [esp + 0x124]
push 0x104
push edx
call fcn.004b7563
add esp, 0x14
xor edx, edx
mov eax, edx
jmp 0x45636a
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x104
jae 0x456359
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x118]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor edx, edx
rep movsb byte es:[edi], byte [esi]
mov eax, edx
jmp 0x45636a
mov eax, 0x57
jmp 0x45636a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
mov dword [0x5b29a4], eax
je 0x45637c
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x45638d
lea ecx, [esp + 0x118]
push ecx
lea ecx, [esp + 0x10]
call fcn.0052ab6b
mov esi, dword [esp + 0x22c]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.0052a757
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x224], bl
call fcn.0052a9e2
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x21c
ret
Function at 0x457f10
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 0x214
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
mov dword [esp + 0x14], 0x104
push eax
push 0x59e804
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
cmp eax, ebx
jne 0x457f89
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push ebx
push 0x593574
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0xc]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x457ff4
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, 0x59e7e4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x11c], bl
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x104
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
lea edi, [esp + 0x121]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x120]
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dl, byte [esp + 0x11c]
mov byte [esp + 0x18], dl
jmp 0x45801a
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x11b], bl
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
lea eax, [esp + ecx + 0x18]
mov cl, byte [esp + ecx + 0x18]
cmp cl, 0x5c
jne 0x45801a
mov byte [eax], bl
push ebp
mov ebp, dword [esp + 0x228]
cmp ebp, ebx
je 0x45809b
mov esi, dword [esp + 0x22c]
cmp esi, ebx
je 0x45809b
lea eax, [esp + 0x1c]
test eax, eax
je 0x45809b
mov eax, dword [esp + 0x230]
mov edx, 0x7a
cmp eax, ebx
je 0x458064
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0x591ecc
push esi
push ebp
call fcn.004b7563
add esp, 0x14
xor edx, edx
mov esi, edx
jmp 0x4580a0
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jbe 0x458097
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
xor edx, edx
rep movsb byte es:[edi], byte [esi]
mov esi, edx
jmp 0x4580a0
mov esi, 0x57
cmp esi, ebx
mov dword [0x5b29a4], esi
pop ebp
je 0x4580b2
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp esi, ebx
pop edi
pop esi
sete al
pop ebx
add esp, 0x214
ret
Function at 0x45de20
Capabilities:
Create directory
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x45de3f
push 0x57
mov dword [0x5b29a4], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
push 0
push 0
push 0
push 0
lea eax, [esp + 0x18]
push 0
push eax
push esi
mov dword [esp + 0x24], 0
call fcn.004b1a30
mov eax, dword [esp + 0x24]
add esp, 0x1c
cmp eax, 0xffffffff
je 0x45de85
test al, 0x10
je 0x45de85
push 0xb7
mov dword [0x5b29a4], 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x45deac
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x5b29a4], eax
je 0x45dea8
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
mov eax, dword [esp + 0xc]
mov dword [0x5b29a4], 0
test eax, eax
je 0x45dec6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, 1
pop esi
ret