joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409be0
Capabilities:
Enumerate process modules

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x46083b
push eax
mov eax, 0x1228
mov dword fs:[0], esp
call fcn.0042afc0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x23c]
mov dword [esp + 0x238], ebp
mov dword [esp + 0x14], ebp
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x23c]
push 0x400
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x409dde
mov ebx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push 0x47ccc0
shr ebx, 2
push ebp
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x409cae
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x18]
mov dword [esp + 0x28], 1
push edx
push 0x20
push esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], 2
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x409cae
mov ecx, dword [esp + 0x18]
push ebp
push ebp
lea eax, [esp + 0x30]
push 0x10
push eax
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
je 0x409cc2
cmp eax, ebp
je 0x409cc2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
je 0x409cd2
cmp esi, ebp
je 0x409cd2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x39]
mov byte [esp + 0x38], 0
rep stosd dword es:[edi], eax
mov edx, dword [0x47f244]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [esp + 0x10], edx
cmp ebx, ebp
mov dword [esp + 0x1240], ebp
jle 0x409dca
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
lea edi, [esp + 0x238]
mov eax, dword [edi]
push eax
push 0
push 0x1f0fff
call ebx
mov esi, eax
test esi, esi
je 0x409d94
lea ecx, [esp + 0x38]
push 0x200
push ecx
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x409d94
lea edx, [esp + 0x38]
lea ecx, [esp + 0x10]
push edx
call fcn.00447f35
mov eax, dword [esp + 0x124c]
test eax, eax
je 0x409d75
push eax
lea ecx, [esp + 0x14]
call fcn.0043dd53
cmp eax, 0xffffffff
je 0x409d8b
mov eax, dword [esp + 0x1248]
lea ecx, [esp + 0x10]
push eax
call fcn.0043dd53
cmp eax, 0xffffffff
jne 0x409da4
jmp 0x409d8b
mov ecx, dword [esp + 0x1248]
push ecx
lea ecx, [esp + 0x14]
call fcn.0043dd53
cmp eax, 0xffffffff
jne 0x409da4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov eax, dword [esp + 0x1c]
inc ebp
add edi, 4
cmp ebp, eax
jl 0x409d0d
test esi, esi
je 0x409dca
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x1240], 0xffffffff
call fcn.00447dac
mov eax, 1
jmp 0x409de0
lea ecx, [esp + 0x10]
mov dword [esp + 0x1240], 0xffffffff
call fcn.00447dac
xor eax, eax
mov ecx, dword [esp + 0x1238]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1234
ret 8
Function at 0x40a7c0
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
sub esp, 0x60
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
lea eax, [esp + 0x18]
push eax
push 0x47ccc0
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
mov ebx, 1
je 0x40a830
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
mov dword [esp + 0x20], ebx
push eax
push 0x20
push esi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], 2
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40a830
mov edx, dword [esp + 0x10]
push 0
push 0
lea ecx, [esp + 0x28]
push 0x10
push ecx
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x40a846
test eax, eax
je 0x40a846
push eax
call edi
cmp esi, 0xffffffff
je 0x40a852
test esi, esi
je 0x40a852
push esi
call edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x18], ebp
je 0x40a991
mov eax, dword [esp + 0x74]
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x40a896
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 4
lea ecx, [esp + 0x30]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x40a985
cmp dword [esp + 0x34], ebx
jne 0x40a985
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x40a985
lea edx, [esp + 0x74]
lea eax, [esp + 0x4c]
push edx
push 0x24
push eax
push 0
push esi
mov dword [esp + 0x88], 0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x40a985
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov ecx, dword [esp + 0x60]
mov edi, eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x14], ecx
cmp eax, 2
jne 0x40a985
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 0xcccccccd
mul dword [esp + 0x64]
shr edx, 3
cmp edx, 0x3e8
jae 0x40a92b
mov edx, 0x3e8
jmp 0x40a938
cmp edx, 0x2710
jbe 0x40a938
mov edx, 0x2710
push edx
call ebp
lea edx, [esp + 0x74]
lea eax, [esp + 0x4c]
push edx
push 0x24
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x40a981
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x60]
cmp eax, ecx
jbe 0x40a96e
call ebx
mov edx, dword [esp + 0x60]
mov edi, eax
mov dword [esp + 0x14], edx
jmp 0x40a97a
call ebx
mov ecx, dword [esp + 0x64]
sub eax, edi
cmp eax, ecx
ja 0x40a981
cmp dword [esp + 0x50], 2
je 0x40a910
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 4
Function at 0x40cd80
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4610f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push edi
xor ebx, ebx
mov dword [esp + 0x4c], ebx
mov edx, dword [esp + 0x5c]
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x18], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x10], 0x140
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 0x47d0e8
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x40ce37
lea ecx, [esp + 0x54]
mov byte [esp + 0x4c], 1
call fcn.00447dac
lea ecx, [esp + 0x58]
mov byte [esp + 0x4c], bl
call fcn.00447dac
lea ecx, [esp + 0x5c]
mov dword [esp + 0x4c], 0xffffffff
call fcn.00447dac
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x40ce53
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x54]
mov byte [esp + 0x4c], 1
call fcn.00447dac
lea ecx, [esp + 0x58]
mov byte [esp + 0x4c], bl
call fcn.00447dac
lea ecx, [esp + 0x5c]
mov dword [esp + 0x4c], 0xffffffff
call fcn.00447dac
mov ecx, dword [esp + 0x44]
pop edi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret

Function at 0x40cea0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x461128
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push edi
xor ebx, ebx
mov dword [esp + 0x4c], ebx
mov edx, dword [esp + 0x5c]
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x18], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x10], 0x40
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 0x47d0e8
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x40cf57
lea ecx, [esp + 0x54]
mov byte [esp + 0x4c], 1
call fcn.00447dac
lea ecx, [esp + 0x58]
mov byte [esp + 0x4c], bl
call fcn.00447dac
lea ecx, [esp + 0x5c]
mov dword [esp + 0x4c], 0xffffffff
call fcn.00447dac
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x40cf66
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x54]
mov byte [esp + 0x4c], 1
call fcn.00447dac
lea ecx, [esp + 0x58]
mov byte [esp + 0x4c], bl
call fcn.00447dac
lea ecx, [esp + 0x5c]
mov dword [esp + 0x4c], 0xffffffff
call fcn.00447dac
mov ecx, dword [esp + 0x44]
pop edi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret
Function at 0x40cfb0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x461158
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x68], 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x47f244]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], 0x44
mov dword [esp + 0x14], eax
mov dword [esp + 8], ecx
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0x74]
mov byte [esp + 0x68], 1
test esi, esi
jne 0x40d047
push 0x5c
lea ecx, [esp + 0x74]
call fcn.0043dd31
lea edx, [esp + 0x74]
push eax
push edx
lea ecx, [esp + 0x78]
call fcn.0043dc63
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x6c], 2
call fcn.00447ee5
lea ecx, [esp + 0x74]
mov byte [esp + 0x68], 1
call fcn.00447dac
jmp 0x40d051
push esi
lea ecx, [esp + 0xc]
call fcn.00447f35
lea eax, [esp + 0xc]
lea ecx, [esp + 0x1c]
push eax
push ecx
push esi
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x94]
call fcn.004481dc
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40d0b2
lea ecx, [esp + 8]
mov byte [esp + 0x68], al
call fcn.00447dac
lea ecx, [esp + 0x70]
mov dword [esp + 0x68], 0xffffffff
call fcn.00447dac
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
add esp, 0x64
ret
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
lea ecx, [esp + 8]
mov byte [esp + 0x68], 0
call fcn.00447dac
lea ecx, [esp + 0x70]
mov dword [esp + 0x68], 0xffffffff
call fcn.00447dac
mov ecx, dword [esp + 0x60]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x64
ret
Function at 0x40d100
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x461188
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x68], 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x47f244]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], 0x44
mov dword [esp + 0x14], eax
mov dword [esp + 8], ecx
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0x74]
mov byte [esp + 0x68], 1
test esi, esi
jne 0x40d197
push 0x5c
lea ecx, [esp + 0x74]
call fcn.0043dd31
lea edx, [esp + 0x74]
push eax
push edx
lea ecx, [esp + 0x78]
call fcn.0043dc63
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x6c], 2
call fcn.00447ee5
lea ecx, [esp + 0x74]
mov byte [esp + 0x68], 1
call fcn.00447dac
jmp 0x40d1a1
push esi
lea ecx, [esp + 0xc]
call fcn.00447f35
lea eax, [esp + 0xc]
lea ecx, [esp + 0x1c]
push eax
push ecx
push esi
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x94]
call fcn.004481dc
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40d202
lea ecx, [esp + 8]
mov byte [esp + 0x68], al
call fcn.00447dac
lea ecx, [esp + 0x70]
mov dword [esp + 0x68], 0xffffffff
call fcn.00447dac
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
add esp, 0x64
ret
mov edx, dword [esp + 0xc]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
lea ecx, [esp + 8]
mov byte [esp + 0x68], 0
call fcn.00447dac
lea ecx, [esp + 0x70]
mov dword [esp + 0x68], 0xffffffff
call fcn.00447dac
mov ecx, dword [esp + 0x60]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x64
ret
Function at 0x40d260
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4611b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [0x47f244]
mov dword [esp + 0xc], eax
mov dword [esp + 0x11c], 0
mov dword [esp + 8], eax
lea ecx, [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x10]
push 0x47c6b0
push edx
mov byte [esp + 0x12c], 1
call fcn.0043e0d9
mov eax, dword [esp + 0x18]
push eax
call fcn.00403c20
add esp, 0x14
cmp eax, 1
je 0x40d307
mov ecx, dword [esp + 8]
push ecx
call fcn.00403bd0
add esp, 4
test eax, eax
je 0x40d307
mov edx, dword [esp + 8]
push edx
call fcn.00403c20
add esp, 4
push 0
lea ecx, [esp + 0xc]
call fcn.004481dc
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x11c], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x128]
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 + 8]
call fcn.00447dac
lea ecx, [esp + 0xc]
mov dword [esp + 0x11c], 0xffffffff
call fcn.00447dac
mov ecx, dword [esp + 0x114]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x118
ret 8
Function at 0x410460
Capabilities:
Read .ini file

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
mov ebx, ecx
push ebp
test eax, eax
mov dword [esp + 8], ebx
je 0x410474
mov byte [eax], 0
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x410484
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0xc
test eax, eax
jne 0x4104fc
push esi
push edi
push 0x201
mov esi, 0x200
call fcn.00447ae7
add esp, 4
mov edi, eax
mov eax, dword [ebx + 4]
push eax
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov ebx, eax
lea ecx, [ebx + 2]
cmp ecx, esi
jb 0x4104e8
push edi
add esi, 0x200
call fcn.00447b10
lea edx, [esi + 1]
push edx
call fcn.00447ae7
mov edi, eax
mov eax, dword [esp + 0x18]
add esp, 8
mov ecx, dword [eax + 4]
push ecx
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov ebx, eax
lea edx, [ebx + 2]
cmp edx, esi
jae 0x4104b4
push edi
call fcn.00447b10
add esp, 4
lea eax, [ebx + 2]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x18]
push ecx
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
pop ebp
pop ebx
pop ecx
ret 0xc

Function at 0x4105d0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 4]
push ebp
test eax, eax
mov ebp, ecx
jne 0x410649
push ebx
push esi
push edi
push 0x201
mov esi, 0x200
call fcn.00447ae7
add esp, 4
mov edi, eax
mov eax, dword [ebp + 4]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov ebx, eax
lea ecx, [ebx + 2]
cmp ecx, esi
jb 0x410636
push edi
add esi, 0x200
call fcn.00447b10
lea edx, [esi + 1]
push edx
call fcn.00447ae7
add esp, 8
mov edi, eax
mov eax, dword [ebp + 4]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov ebx, eax
lea ecx, [ebx + 2]
cmp ecx, esi
jae 0x410607
push edi
call fcn.00447b10
add esp, 4
lea eax, [ebx + 2]
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov edx, dword [ebp + 4]
mov ecx, dword [esp + 0xc]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
pop ebp
ret 8
Function at 0x410ac0
Capabilities:
Read .ini file

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
mov ebx, ecx
push esi
push edi
test eax, eax
mov dword [esp + 0x10], ebx
je 0x410b6e
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x410b6e
push 0x201
mov esi, 0x200
call fcn.00447ae7
mov edi, eax
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
jne 0x410b04
mov eax, 0x483d7c
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ecx
push 0x200
push edi
push eax
push ebp
push edx
call ebx
inc eax
cmp eax, 0x200
jb 0x410b64
push edi
add esi, 0x200
call fcn.00447b10
lea eax, [esi + 1]
push eax
call fcn.00447ae7
mov edi, eax
mov eax, dword [esp + 0x28]
add esp, 8
test eax, eax
jne 0x410b4c
mov eax, 0x483d7c
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
push edx
push esi
push edi
push eax
mov eax, dword [esp + 0x28]
push ebp
push eax
call ebx
inc eax
cmp eax, esi
jae 0x410b25
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
mov esi, dword [esp + 0x20]
test esi, esi
jne 0x410b8d
push 1
call fcn.00447ae7
add esp, 4
mov edx, eax
pop edi
pop esi
pop ebp
mov byte [edx], 0
pop ebx
pop ecx
ret 0xc
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00447ae7
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
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, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc

Function at 0x411db0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push esi
mov esi, ecx
lea ecx, [esp + 0xc]
push 4
push ecx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x10]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor ecx, ecx
mov dword [esi + 4], eax
test eax, eax
sete cl
mov dword [esi + 0xc], 4
mov dword [esi + 8], 4
mov eax, ecx
pop esi
ret 8

Function at 0x411e30
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, ecx
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esi + 0x10]
push ebx
push 1
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, eax
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov dword [esi + 4], edx
repne scasb al, byte es:[edi]
not ecx
mov dword [esi + 0xc], ecx
mov dword [esi + 8], 1
test edx, edx
pop edi
pop esi
sete al
pop ebx
ret 8
Function at 0x412880
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
mov esi, ecx
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x10]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 4]
mov dword [esi + 4], eax
mov dword [esi + 8], edx
mov dword [esi + 0xc], ecx
pop esi
test eax, eax
jne 0x4128d9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 4]
mov dword [edx], eax
mov eax, 1
add esp, 8
ret 8
xor eax, eax
add esp, 8
ret 8

Function at 0x4128f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1008
call fcn.0042afc0
push esi
mov esi, ecx
lea eax, [esp + 4]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x1014]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 0x10]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x1c], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [esi + 4], eax
mov dword [esi + 8], edx
mov dword [esi + 0xc], ecx
pop esi
test eax, eax
jne 0x41295d
mov ecx, dword [esp + 0x1010]
lea edx, [esp + 8]
push edx
call fcn.00447f35
mov eax, 1
add esp, 0x1008
ret 8
xor eax, eax
add esp, 0x1008
ret 8

Function at 0x4133c0
Capabilities:
Delete registry key

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, ecx
push eax
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
xor ecx, ecx
xor edx, edx
cmp eax, ecx
mov dword [esi + 4], eax
sete dl
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
mov eax, edx
pop esi
ret 8

Function at 0x4133f0
Capabilities:
Access peb ldr_data
Query or enumerate registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x461cbb
push eax
mov eax, 0x1008
mov dword fs:[0], esp
call fcn.0042afc0
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
mov edx, dword [esp + 0x1024]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
push ebx
stosb byte es:[edi], al
push ebx
lea eax, [esp + 0x1c]
push ebx
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esi + 0x10]
push ecx
push edx
push eax
mov dword [esp + 0x30], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea ecx, [esp + 0x14]
mov edi, eax
push ecx
lea ecx, [esp + 0x10]
mov dword [esi + 4], edi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.00447e1a
mov ecx, dword [esp + 0x1028]
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x1020], ebx
call fcn.00447ee5
cmp edi, ebx
pop edi
pop esi
pop ebx
mov dword [esp + 0x1010], 0xffffffff
lea ecx, [esp]
jne 0x4134ba
call fcn.00447dac
mov eax, 1
mov ecx, dword [esp + 0x1008]
mov dword fs:[0], ecx
add esp, 0x1014
ret 8
call fcn.00447dac
mov ecx, dword [esp + 0x1008]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x1014
ret 8
Function at 0x4134e0
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x461cdb
push eax
mov eax, 0x1008
mov dword fs:[0], esp
call fcn.0042afc0
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
mov edx, dword [esp + 0x1024]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
push ebx
stosb byte es:[edi], al
push ebx
lea eax, [esp + 0x1c]
push ebx
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esi + 0x10]
push ecx
push edx
push eax
mov dword [esp + 0x30], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea ecx, [esp + 0x14]
mov edi, eax
push ecx
lea ecx, [esp + 0x10]
mov dword [esi + 4], edi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.00447e1a
mov ecx, dword [esp + 0x1028]
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x1020], ebx
call fcn.00447ee5
cmp edi, ebx
pop edi
pop esi
pop ebx
mov dword [esp + 0x1010], 0xffffffff
lea ecx, [esp]
jne 0x4135aa
call fcn.00447dac
mov eax, 1
mov ecx, dword [esp + 0x1008]
mov dword fs:[0], ecx
add esp, 0x1014
ret 8
call fcn.00447dac
mov ecx, dword [esp + 0x1008]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x1014
ret 8