joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404d30
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x45fcd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x200]
lea ecx, [esi + 0x200]
call dword [eax + 0x4c]
mov eax, dword [esi + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [0x47f244]
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
test eax, eax
je 0x404d89
push eax
lea edx, [esp + 8]
push 0x47c1dc
push edx
jmp 0x404d9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 8]
push 0x47c1dc
push eax
call fcn.0043e0c9
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
add esp, 0xc
lea eax, [esi + 0x1d4]
push ecx
push edx
push eax
call fcn.0044f3f4
mov ecx, dword [esi + 0x1c]
push 0
push 1
push 0x8001
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.00447d9c
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x406580
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4601ba
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
push 0x66
mov dword [esp + 0x18], esi
call fcn.00401070
push fcn.0040edc0
push fcn.0040ed50
push 6
lea ecx, [esi + 0xd8]
xor ebp, ebp
push 0x48
push ecx
mov dword [esp + 0x30], ebp
call fcn.0042ae82
lea ecx, [esi + 0x288]
mov byte [esp + 0x1c], 1
call fcn.0040ed50
lea ecx, [esi + 0x2d0]
mov byte [esp + 0x1c], 2
call fcn.0040b200
push fcn.0040b240
push fcn.0040b200
push 6
lea edx, [esi + 0x310]
push 0x40
push edx
mov byte [esp + 0x30], 3
call fcn.0042ae82
push fcn.0040b240
push fcn.0040b200
push 6
lea eax, [esi + 0x490]
push 0x40
push eax
mov byte [esp + 0x30], 4
call fcn.0042ae82
lea ecx, [esi + 0x610]
mov byte [esp + 0x1c], 5
call fcn.0040ed50
lea ecx, [esi + 0x658]
mov byte [esp + 0x1c], 6
call fcn.0040b200
lea ecx, [esi + 0x698]
mov byte [esp + 0x1c], 7
call fcn.0040b200
lea ecx, [esi + 0x6d8]
mov byte [esp + 0x1c], 8
call fcn.0040b200
lea ecx, [esi + 0x718]
mov byte [esp + 0x1c], 9
call fcn.0040b200
lea ecx, [esi + 0x758]
mov byte [esp + 0x1c], 0xa
call fcn.0040b200
mov ecx, dword [0x47f244]
mov dword [esi + 0x798], ecx
lea edi, [esi + 0x79c]
mov dword [edi + 4], ebp
mov dword [edi], 0x469414
lea ebx, [esi + 0x7a4]
mov dword [ebx + 4], ebp
mov dword [ebx], 0x469414
push 0x10
push ebp
push ebp
push 1
push 0x47c400
push ebp
mov byte [esp + 0x34], 0xe
mov dword [esi], 0x464e80
call dword [sym.imp.USER32.dll_LoadImageA]
push ebp
push 0x47c3f8
push 0x5a
mov ecx, edi
mov dword [esi + 0x7ac], eax
call fcn.004516cd
push ebp
push 0x47c3f8
push 0x64
mov ecx, ebx
call fcn.004516cd
mov ecx, 9
xor eax, eax
lea edi, [esi + 0x7bc]
mov dword [esi + 0x7b8], ebp
mov dword [esi + 0xb24], ebp
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esi + 0x7e0]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esi + 0x8e4]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esi + 0x924]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esi + 0x964]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esi + 0x9a4]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esi + 0x9e4]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esi + 0xa24]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esi + 0xa64]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esi + 0xaa4]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esi + 0xae4]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x407fa0
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x30c
push esi
mov esi, ecx
push edi
xor dl, dl
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x10d]
mov byte [esp + 0x10c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
add esi, 0x9e4
lea ecx, [esp + 8]
push esi
push ecx
lea edx, [esp + 0x114]
push 0x47c6c4
push edx
call fcn.0042af04
add esp, 0x10
lea eax, [esp + 0x10c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
add esp, 0x30c
ret

Function at 0x408050
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x208
push edi
xor dl, dl
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], dl
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 + 0x109]
mov byte [esp + 0x108], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsx ecx, byte [esp + 4]
push ecx
lea edx, [esp + 0x10c]
push 0x47c6cc
push edx
call fcn.0042af04
add esp, 0xc
lea eax, [esp + 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
neg eax
sbb eax, eax
pop edi
neg eax
add esp, 0x208
ret

Function at 0x409af0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x460810
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebp
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0xc]
call fcn.00411b70
mov eax, dword [0x47f244]
mov dword [esp + 0x28], 0
mov dword [esp + 4], eax
push 1
push 0x47cc98
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 1
call fcn.00411d20
lea ecx, [esp + 4]
push ecx
push 0x47cc90
lea ecx, [esp + 0x10]
call fcn.004128e0
lea ecx, [esp + 8]
call fcn.00411d80
mov ebp, dword [esp + 0x30]
test ebp, ebp
je 0x409b94
push esi
push edi
push 0
lea ecx, [esp + 0x10]
call fcn.004481cc
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
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
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
lea ecx, [esp + 4]
mov byte [esp + 0x28], 0
call fcn.00447d9c
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0xffffffff
call fcn.00411bb0
mov ecx, dword [esp + 0x20]
pop ebp
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x409bd0
Capabilities:
Enumerate process modules

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x46082b
push eax
mov eax, 0x1228
mov dword fs:[0], esp
call fcn.0042afb0
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 0x409dce
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 0x409c9e
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 0x409c9e
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 0x409cb2
cmp eax, ebp
je 0x409cb2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
je 0x409cc2
cmp esi, ebp
je 0x409cc2
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 0x409dba
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 0x409d84
lea ecx, [esp + 0x38]
push 0x200
push ecx
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x409d84
lea edx, [esp + 0x38]
lea ecx, [esp + 0x10]
push edx
call fcn.00447f25
mov eax, dword [esp + 0x124c]
test eax, eax
je 0x409d65
push eax
lea ecx, [esp + 0x14]
call fcn.0043dd43
cmp eax, 0xffffffff
je 0x409d7b
mov eax, dword [esp + 0x1248]
lea ecx, [esp + 0x10]
push eax
call fcn.0043dd43
cmp eax, 0xffffffff
jne 0x409d94
jmp 0x409d7b
mov ecx, dword [esp + 0x1248]
push ecx
lea ecx, [esp + 0x14]
call fcn.0043dd43
cmp eax, 0xffffffff
jne 0x409d94
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 0x409cfd
test esi, esi
je 0x409dba
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x1240], 0xffffffff
call fcn.00447d9c
mov eax, 1
jmp 0x409dd0
lea ecx, [esp + 0x10]
mov dword [esp + 0x1240], 0xffffffff
call fcn.00447d9c
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 0x40a7b0
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 0x40a820
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 0x40a820
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 0x40a836
test eax, eax
je 0x40a836
push eax
call edi
cmp esi, 0xffffffff
je 0x40a842
test esi, esi
je 0x40a842
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 0x40a981
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 0x40a886
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 0x40a975
cmp dword [esp + 0x34], ebx
jne 0x40a975
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x40a975
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 0x40a975
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 0x40a975
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 0xcccccccd
mul dword [esp + 0x64]
shr edx, 3
cmp edx, 0x3e8
jae 0x40a91b
mov edx, 0x3e8
jmp 0x40a928
cmp edx, 0x2710
jbe 0x40a928
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 0x40a971
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x60]
cmp eax, ecx
jbe 0x40a95e
call ebx
mov edx, dword [esp + 0x60]
mov edi, eax
mov dword [esp + 0x14], edx
jmp 0x40a96a
call ebx
mov ecx, dword [esp + 0x64]
sub eax, edi
cmp eax, ecx
ja 0x40a971
cmp dword [esp + 0x50], 2
je 0x40a900
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 0x40cd70
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4610e8
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 0x40ce27
lea ecx, [esp + 0x54]
mov byte [esp + 0x4c], 1
call fcn.00447d9c
lea ecx, [esp + 0x58]
mov byte [esp + 0x4c], bl
call fcn.00447d9c
lea ecx, [esp + 0x5c]
mov dword [esp + 0x4c], 0xffffffff
call fcn.00447d9c
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 0x40ce43
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.00447d9c
lea ecx, [esp + 0x58]
mov byte [esp + 0x4c], bl
call fcn.00447d9c
lea ecx, [esp + 0x5c]
mov dword [esp + 0x4c], 0xffffffff
call fcn.00447d9c
mov ecx, dword [esp + 0x44]
pop edi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret

Function at 0x40ce90
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x461118
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 0x40cf47
lea ecx, [esp + 0x54]
mov byte [esp + 0x4c], 1
call fcn.00447d9c
lea ecx, [esp + 0x58]
mov byte [esp + 0x4c], bl
call fcn.00447d9c
lea ecx, [esp + 0x5c]
mov dword [esp + 0x4c], 0xffffffff
call fcn.00447d9c
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 0x40cf56
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x54]
mov byte [esp + 0x4c], 1
call fcn.00447d9c
lea ecx, [esp + 0x58]
mov byte [esp + 0x4c], bl
call fcn.00447d9c
lea ecx, [esp + 0x5c]
mov dword [esp + 0x4c], 0xffffffff
call fcn.00447d9c
mov ecx, dword [esp + 0x44]
pop edi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret
Function at 0x40cfa0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x461148
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 0x40d037
push 0x5c
lea ecx, [esp + 0x74]
call fcn.0043dd21
lea edx, [esp + 0x74]
push eax
push edx
lea ecx, [esp + 0x78]
call fcn.0043dc53
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x6c], 2
call fcn.00447ed5
lea ecx, [esp + 0x74]
mov byte [esp + 0x68], 1
call fcn.00447d9c
jmp 0x40d041
push esi
lea ecx, [esp + 0xc]
call fcn.00447f25
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.004481cc
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40d0a2
lea ecx, [esp + 8]
mov byte [esp + 0x68], al
call fcn.00447d9c
lea ecx, [esp + 0x70]
mov dword [esp + 0x68], 0xffffffff
call fcn.00447d9c
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.00447d9c
lea ecx, [esp + 0x70]
mov dword [esp + 0x68], 0xffffffff
call fcn.00447d9c
mov ecx, dword [esp + 0x60]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x64
ret
Function at 0x40d0f0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x461178
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 0x40d187
push 0x5c
lea ecx, [esp + 0x74]
call fcn.0043dd21
lea edx, [esp + 0x74]
push eax
push edx
lea ecx, [esp + 0x78]
call fcn.0043dc53
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x6c], 2
call fcn.00447ed5
lea ecx, [esp + 0x74]
mov byte [esp + 0x68], 1
call fcn.00447d9c
jmp 0x40d191
push esi
lea ecx, [esp + 0xc]
call fcn.00447f25
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.004481cc
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40d1f2
lea ecx, [esp + 8]
mov byte [esp + 0x68], al
call fcn.00447d9c
lea ecx, [esp + 0x70]
mov dword [esp + 0x68], 0xffffffff
call fcn.00447d9c
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.00447d9c
lea ecx, [esp + 0x70]
mov dword [esp + 0x68], 0xffffffff
call fcn.00447d9c
mov ecx, dword [esp + 0x60]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x64
ret
Function at 0x40d250
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4611a6
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.0043e0c9
mov eax, dword [esp + 0x18]
push eax
call fcn.00403c20
add esp, 0x14
cmp eax, 1
je 0x40d2f7
mov ecx, dword [esp + 8]
push ecx
call fcn.00403bd0
add esp, 4
test eax, eax
je 0x40d2f7
mov edx, dword [esp + 8]
push edx
call fcn.00403c20
add esp, 4
push 0
lea ecx, [esp + 0xc]
call fcn.004481cc
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.00447d9c
lea ecx, [esp + 0xc]
mov dword [esp + 0x11c], 0xffffffff
call fcn.00447d9c
mov ecx, dword [esp + 0x114]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x118
ret 8
Function at 0x410450
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 0x410464
mov byte [eax], 0
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x410474
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0xc
test eax, eax
jne 0x4104ec
push esi
push edi
push 0x201
mov esi, 0x200
call fcn.00447ad7
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 0x4104d8
push edi
add esi, 0x200
call fcn.00447b00
lea edx, [esi + 1]
push edx
call fcn.00447ad7
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 0x4104a4
push edi
call fcn.00447b00
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 0x4105c0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 4]
push ebp
test eax, eax
mov ebp, ecx
jne 0x410639
push ebx
push esi
push edi
push 0x201
mov esi, 0x200
call fcn.00447ad7
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 0x410626
push edi
add esi, 0x200
call fcn.00447b00
lea edx, [esi + 1]
push edx
call fcn.00447ad7
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 0x4105f7
push edi
call fcn.00447b00
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