joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49f5c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push 0x64be00
xor bl, bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x64bd28]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x49f63b
push 0x4c
push 1
call fcn.00488e0e
mov esi, eax
add esp, 8
test esi, esi
jne 0x49f603
push 0x64be00
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret
mov ecx, dword [0x64bd28]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x642174]
inc eax
lea edx, [esi + 0xc]
mov dword [0x642174], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 4]
push 0
push eax
call fcn.004a3110
add esp, 8
mov byte [esi + 0x3c], 1
push 0x64be00
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret

Function at 0x49fac0
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.0048a63f
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.0049253a
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x49fbba
call fcn.0048a63f
cmp dword [eax], 0
je 0x49fb07
call fcn.0048a63f
mov ebp, dword [eax]
jmp 0x49fb0a
or ebp, 0xffffffff
call fcn.0049f650
test esi, esi
mov dword [eax], ebp
jne 0x49fb1f
call fcn.0048a63f
cmp dword [eax], 4
je 0x49fb6f
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x49fb52
cmp esi, 0xffffffff
je 0x49fb94
test al, 6
je 0x49fb52
call fcn.0049f650
mov ecx, dword [eax]
push ecx
push ebx
call fcn.004a3140
add esp, 4
push eax
push 0x24
push 9
call fcn.0049fea0
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x49fbb2
test al, 6
je 0x49fb60
test ah, 2
je 0x49fbb2
test esi, esi
jbe 0x49fbbe
test ah, 2
je 0x49fbbe
add dword [esp + 0x18], esi
sub edi, esi
call fcn.0048a63f
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.0049253a
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x49fbba
jmp 0x49faf4
call fcn.0049f650
mov eax, dword [eax]
push eax
push ebx
call fcn.004a3140
add esp, 4
push eax
push 0x24
push 2
call fcn.0049fea0
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x20]
test al, 6
je 0x49fbcb
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test ah, 2
je 0x49fbd4
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4b0b9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0048a5cc
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4b0bbf
test byte [esp + 8], 2
je 0x4b0bbf
call fcn.0048a63f
mov dword [eax], 0xd
call fcn.0048a648
mov dword [eax], 5
jmp 0x4b0b98
xor eax, eax
ret
Function at 0x4b65b4
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b65ec
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004b4659
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004b4631
jmp 0x4b65f8
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4b7db4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4b7df6
call fcn.004be11c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b7df6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b7ded
xor eax, eax
jmp 0x4b7dfe
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b7e04
pop edi
pop esi
pop ebx
ret 4

Function at 0x4be64c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4be67a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4be698
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004be5b2
jmp 0x4be698
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4be698
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004be5b2
test edi, edi
mov eax, edi
jne 0x4be682
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401680
Capabilities:
Delete registry key
Get common file path
Persist via run registry key
Set registry value

Disassembly:
sub esp, 0x210
lea eax, [esp + 4]
push ebx
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.PKPKRstMgr.exe__security
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x118]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.SoftWareMicrosoftWindowsCurrentVersionRun
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x118]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
pop edi
pop esi
test eax, eax
pop ebx
je 0x401716
xor eax, eax
add esp, 0x210
ret
cmp dword [esp + 0x214], 1
jne 0x401740
mov ecx, dword [esp]
lea eax, [esp + 4]
push 0x105
push eax
push 1
push 0
push str.PKRstMgr
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x401750
mov edx, dword [esp]
push str.PKRstMgr
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0x210
ret
Function at 0x401770
Capabilities:
Accept command line arguments
Delete file
Get common file path
Set file attributes

Disassembly:
sub esp, 0x30c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x210]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x210]
push ecx
call fcn.00405c3a
lea edx, [esp + 0x214]
push str._security
push edx
call fcn.00405bc4
add esp, 0xc
test eax, eax
jne 0x4017d3
pop edi
pop esi
add esp, 0x30c
ret
push ebx
xor ebx, ebx
push ebp
push ebx
call fcn.00401680
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
add esp, 4
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x40e080
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40e140
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.logb.pkl
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040598d
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4018de
mov al, byte [esi + 0xc]
mov bl, 0x10
test bl, al
jne 0x4018d5
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x114]
push esi
rep stosd dword es:[edi], eax
push 1
lea ecx, [esp + 0x11c]
push 0x108
push ecx
call fcn.00405833
lea edx, [esp + 0x124]
push edx
call fcn.00402410
mov al, byte [esi + 0xc]
add esp, 0x14
test bl, al
je 0x401899
push esi
call fcn.00405500
add esp, 4
lea eax, [esp + 0x10]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.00405b4e
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x30c
ret
Function at 0x401910
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
push 0x2e
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ecx + ebx - 4]
push eax
call fcn.00405cac
mov esi, eax
add esp, 8
neg esi
sbb esi, esi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
inc esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
jae 0x40194c
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0x10
cmp al, 0x10
jne 0x401967
test esi, esi
je 0x401967
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x4022f0
Capabilities:
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
sub esp, 0x100
push ebx
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
push 0x100
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.pkpkrstmgr.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x118]
push esi
call fcn.00403540
add esp, 8
test eax, eax
je 0x402374
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x100
ret
mov ebx, dword [esp + 0x110]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4023f8
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4023f8
push 0x40e244
push ebx
call fcn.0040598d
add esp, 8
test eax, eax
je 0x4023f8
push eax
call fcn.00405500
add esp, 4
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileA]
push esi
push ebx
call edi
test eax, eax
jne 0x4023e0
push 1
push esi
call fcn.00402580
add esp, 8
push esi
push ebx
call edi
push esi
call fcn.00402410
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x100
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x100
ret
Function at 0x402410
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x20c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x108]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x220]
push 0x5c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
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]
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
call fcn.00405a27
add esp, 8
test eax, eax
je 0x40256d
lea edx, [esp + 0x118]
mov byte [eax], 0
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40256d
mov ebx, dword [sym.imp.ADVAPI32.dll_GetFileSecurityA]
lea eax, [esp + 0x10]
push eax
push 0
push 0
lea ecx, [esp + 0x20]
push 0xe
push ecx
call ebx
test eax, eax
jne 0x40256d
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 0x7a
je 0x4024e5
push str.Fail_0
call fcn.00401670
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
mov eax, dword [esp + 0x10]
push eax
mov edi, eax
call fcn.00405a92
add esp, 4
lea edx, [esp + 0x10]
mov esi, eax
lea eax, [esp + 0x14]
push edx
push edi
push esi
push 0xe
push eax
call ebx
test eax, eax
je 0x402558
push str.Success_1
call fcn.00401670
add esp, 4
lea ecx, [esp + 0x118]
push esi
push 0xe
push ecx
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
je 0x40254f
push str.Success_2
call fcn.00401670
push esi
call fcn.00405a87
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
call ebp
push str.Fail_2
jmp 0x40255f
call ebp
push str.Fail_1
call fcn.00401670
push esi
call fcn.00405a87
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20c
ret
Function at 0x402580
Capabilities:
Create directory

Disassembly:
sub esp, 0x208
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
mov byte [esp + 0x110], 0
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 + 0x111]
xor ebp, ebp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x218]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x110]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x21c]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x40260a
lea ecx, [esp + 0x110]
push 0x5c
push ecx
call fcn.00405a27
add esp, 8
test eax, eax
je 0x40260a
mov byte [eax], 0
lea edi, [esp + 0x110]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.00405cac
mov esi, eax
add esp, 8
test esi, esi
jne 0x40264e
mov ebp, 1
jmp 0x402651
mov byte [esi], 0
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x402682
cmp byte [esp + edx + 0xc], 0x3f
jne 0x40266f
mov byte [esp + edx + 0xc], 0x5c
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x402663
lea edx, [esp + 0xc]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4026a0
lea eax, [esp + 0xc]
push eax
call fcn.00402410
add esp, 4
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4026d1
cmp byte [esp + edx + 0xc], 0x5c
jne 0x4026be
mov byte [esp + edx + 0xc], 0x3f
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x4026b2
test esi, esi
je 0x4026d8
mov byte [esi], 0x3f
test ebp, ebp
je 0x402632
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x208
ret
Function at 0x402a90
Capabilities:
Get common file path

Disassembly:
sub esp, 0x100
push ebx
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
push 0x100
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.pk_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x100
ret
Function at 0x403640
Capabilities:
Get common file path

Disassembly:
sub esp, 0x100
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.X:Documents_and_Settings
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10c]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov cl, byte [esp + 8]
pop edi
mov byte [eax], cl
pop esi
add esp, 0x100
ret

Function at 0x403750
Capabilities:
Get common file path

Disassembly:
sub esp, 0x21c
lea eax, [esp + 0x118]
push ebx
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.PKpksettings.prs
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x124]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40e3e0
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x128]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040598d
mov esi, eax
add esp, 8
test esi, esi
je 0x40384f
lea ecx, [esp + 0xc]
push ecx
push esi
call fcn.004036f0
lea edx, [esp + 0x14]
push edx
push esi
call fcn.004036f0
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.004036f0
lea ecx, [esp + 0x24]
push ecx
push esi
call fcn.004036f0
lea edx, [esp + 0x2c]
push edx
push esi
call fcn.004036f0
add esp, 0x28
mov bl, 0x3a
lea eax, [esp + 0xc]
push eax
push esi
call fcn.004036f0
add esp, 8
test eax, eax
je 0x403858
cmp byte [esp + 0xc], bl
jne 0x4037f8
lea ecx, [esp + 0xc]
push ecx
push esi
call fcn.004036f0
add esp, 8
test eax, eax
je 0x403858
lea edx, [esp + 0xc]
push str.c:Documents_and_Settings_
push edx
call fcn.00405556
add esp, 8
test eax, eax
je 0x403840
cmp byte [esp + 0xc], bl
je 0x40384f
jmp 0x403810
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x21c
ret
push esi
call fcn.00405500
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x21c
ret
Function at 0x404750
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
push esi
lea eax, [esp + 4]
push edi
mov edi, dword [esp + 0x10]
push eax
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4047ae
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x1c]
push esi
push ecx
push 0
push edx
push eax
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4047ae
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ecx
ret
pop edi
xor eax, eax
pop esi
pop ecx
ret
Function at 0x404930
Capabilities:
Get common file path

Disassembly:
sub esp, 0x13c
push ebp
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x41]
mov byte [esp + 0x40], 0
mov byte [esp + 0xc], al
rep stosd dword es:[edi], eax
mov ecx, 0xc
lea edi, [esp + 0xd]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x40]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.pkclient.prs
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x40]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40e038
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x44]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040598d
mov esi, eax
add esp, 8
test esi, esi
je 0x404a07
lea ecx, [esp + 0xc]
push ecx
push 0x40e454
push esi
call fcn.00405fb3
add esp, 0xc
push 0x410e48
push 0x40e450
push esi
call fcn.00405fb3
add esp, 0xc
push 0x410e44
push 0x40e450
push esi
call fcn.00405fb3
push esi
call fcn.00405500
mov ecx, dword [0x410e44]
add esp, 0x10
xor eax, eax
test ecx, ecx
pop edi
pop esi
setne al
pop ebp
add esp, 0x13c
ret
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x13c
ret

Function at 0x404a20
Capabilities:
Get common file path

Disassembly:
sub esp, 0x13c
push ebp
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x41]
mov byte [esp + 0x40], 0
mov byte [esp + 0xc], al
rep stosd dword es:[edi], eax
mov ecx, 0xc
lea edi, [esp + 0xd]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x40]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.pkpksettings.prs
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x40]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40e244
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x44]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040598d
mov esi, eax
add esp, 8
test esi, esi
je 0x404b18
push 0
push 0
push esi
call fcn.00405fc9
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 0x40e454
push esi
call fcn.00405fb3
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push 0x40e454
push esi
call fcn.00405fb3
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0x40e454
push esi
call fcn.00405fb3
add esp, 0xc
push 0x410e40
push 0x40e450
push esi
call fcn.00405fb3
push esi
call fcn.00405500
mov eax, dword [0x410e40]
add esp, 0x10
test eax, eax
je 0x404b18
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x13c
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x13c
ret