joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410060
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.004b0330
mov eax, dword [0x5a6900]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x7d0
lea eax, [ebp - 0xfa4]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Program_FilesInternet_Exploreriexplore.exe
lea eax, [ebp - 0xf98]
push eax
call fcn.004af7a7
add esp, 8
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xfa4]
push ecx
call fcn.004af779
add esp, 8
push 0x3c
push 0
lea eax, [ebp - 0xfe0]
push eax
call fcn.004af7d0
add esp, 0xc
mov dword [ebp - 0xfd4], str.open
mov dword [ebp - 0xfdc], 0x200
mov eax, dword [ebp + 8]
mov dword [ebp - 0xfcc], eax
mov dword [ebp - 0xfc4], 1
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x410118
lea eax, [ebp - 0xfa4]
push eax
call fcn.004101f0
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004af76a
mov esp, ebp
pop ebp
ret

Function at 0x410170
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
push eax
call fcn.004af750
add esp, 4
test eax, eax
jne 0x41018e
jmp 0x4101e5
push 0x3c
push 0
lea eax, [ebp - 0x3c]
push eax
call fcn.004af7d0
add esp, 0xc
mov dword [ebp - 0x30], str.open
mov dword [ebp - 0x38], 0x200
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 1
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0x20
ja 0x4101e5
mov eax, dword [ebp + 8]
push eax
call fcn.004101f0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4101f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x868
mov eax, dword [0x5a6900]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x44
push 0
lea eax, [ebp - 0x48]
push eax
call fcn.004af7d0
add esp, 0xc
mov dword [ebp - 0x48], 0x44
push 0x10
push 0
lea eax, [ebp - 0x58]
push eax
call fcn.004af7d0
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 0x54ba84
lea ecx, [ebp - 0x828]
push ecx
call fcn.0040fa70
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x48]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
lea edx, [ebp - 0x828]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x41026e
jmp 0x410282
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004af76a
mov esp, ebp
pop ebp
ret
Function at 0x4102a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x86c
mov eax, dword [0x5a6900]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x44
push 0
lea eax, [ebp - 0x48]
push eax
call fcn.004af7d0
add esp, 0xc
mov dword [ebp - 0x48], 0x44
push 0x10
push 0
lea eax, [ebp - 0x58]
push eax
call fcn.004af7d0
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 0x54ba84
lea ecx, [ebp - 0x828]
push ecx
call fcn.0040fa70
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x48]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
lea edx, [ebp - 0x828]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x41031e
jmp 0x41034f
push 0xffffffffffffffff
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x82c]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004af76a
mov esp, ebp
pop ebp
ret

Function at 0x410360
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push esi
push edi
mov dword [ebp - 0x3c], 0x3c
push 0x38
push 0
lea eax, [ebp - 0x38]
push eax
call fcn.004af7d0
add esp, 0xc
mov dword [ebp - 0x30], str.runas
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], 0x200
mov dword [ebp - 0x20], 1
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4103bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x410810
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x5a6900]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x11c
push 0
lea eax, [ebp - 0x120]
push eax
call fcn.004af7d0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
movzx eax, byte [ebp - 6]
push eax
mov ecx, dword [ebp - 0x118]
push ecx
mov edx, dword [ebp - 0x11c]
push edx
push 0x54bca0
call fcn.004108b0
add esp, 0x10
cmp dword [ebp - 0x11c], 6
jb 0x410895
cmp dword [ebp - 0x118], 2
jne 0x410895
movzx eax, byte [ebp - 6]
cmp eax, 1
jne 0x410895
mov eax, 1
jmp 0x410897
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004af76a
mov esp, ebp
pop ebp
ret
Function at 0x4108b0
Capabilities:
Check if file exists
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x858
mov eax, dword [0x5a6900]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], 0x1f4
xor eax, eax
mov word [ebp - 0x3f4], ax
push 0x3e6
push 0
lea eax, [ebp - 0x3f2]
push eax
call fcn.004af7d0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x5fc], ax
push 0x206
push 0
lea eax, [ebp - 0x5fa]
push eax
call fcn.004af7d0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x804], ax
push 0x206
push 0
lea eax, [ebp - 0x802]
push eax
call fcn.004af7d0
add esp, 0xc
lea eax, [ebp - 0x804]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x804]
push eax
push str._s_service_log.txt
lea ecx, [ebp - 0x5fc]
push ecx
call fcn.0040fa70
add esp, 0xc
lea eax, [ebp + 0xc]
mov dword [ebp - 0x808], eax
mov eax, dword [ebp - 0x808]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
sub edx, 1
push edx
lea eax, [ebp - 0x3f4]
push eax
call fcn.004b4a63
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 8]
mov word [ebp + ecx*2 - 0x3f6], ax
mov dword [ebp - 0x80c], 0
lea eax, [ebp - 0x5fc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4109b3
mov dword [ebp - 0x80c], 1
push 0x54bcb4
lea eax, [ebp - 0x5fc]
push eax
call fcn.004b4978
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x410a85
cmp dword [ebp - 0x80c], 0
jne 0x410a00
mov eax, 0xfeff
mov word [ebp - 0x810], ax
mov eax, dword [ebp - 0xc]
push eax
push 2
push 1
lea ecx, [ebp - 0x810]
push ecx
call fcn.004b4830
add esp, 0x10
lea eax, [ebp - 0x3f4]
push eax
call fcn.004af750
add esp, 4
mov dword [ebp - 0x814], eax
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x814]
shl ecx, 1
push ecx
push 1
lea edx, [ebp - 0x3f4]
push edx
call fcn.004b4830
add esp, 0x10
mov eax, 0xd
mov word [ebp - 0x818], ax
mov eax, dword [ebp - 0xc]
push eax
push 2
push 1
lea ecx, [ebp - 0x818]
push ecx
call fcn.004b4830
add esp, 0x10
mov eax, 0xa
mov word [ebp - 0x818], ax
mov eax, dword [ebp - 0xc]
push eax
push 2
push 1
lea ecx, [ebp - 0x818]
push ecx
call fcn.004b4830
add esp, 0x10
mov eax, dword [ebp - 0xc]
push eax
call fcn.004b4652
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004af76a
mov esp, ebp
pop ebp
ret
Function at 0x4111b0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x5a6900]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x238], 0x22c
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call sub.KERNEL32.dll_Process32FirstW
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x41120f
mov dword [ebp - 8], 1
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4111f3
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004af76a
mov esp, ebp
pop ebp
ret
Function at 0x411780
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d33c
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
push ebx
push esi
push edi
mov eax, dword [0x5a6900]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
call fcn.0040ba30
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
call dword [0x57232c]
add esp, 4
lea eax, [ebp - 0xe4]
push eax
call dword [0x572328]
add esp, 4
mov dword [ebp - 0xe8], eax
mov ecx, dword [ebp - 0xe8]
mov dword [ebp - 0xec], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xec]
call dword [0x572324]
push eax
call dword [0x572320]
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe4]
call dword [0x57231c]
push str.Riched20.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x18], eax
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
push 0
mov eax, dword [ebp - 0x14]
push eax
push 0
mov ecx, 0x5a8584
call fcn.004146c0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jge 0x41185d
xor eax, eax
jmp 0x411927
call fcn.00413f50
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xe8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xe8]
mov eax, dword [edx + 0x88]
call eax
mov dword [ebp - 0x20], 0x180
push 0
push 0x320
push 0x258
push 0
push 0
mov eax, dword [ebp - 0x20]
push eax
push 0x10cf0000
push 0x54bf4c
push 0
call fcn.00413f50
mov ecx, eax
call dword [0x572318]
call fcn.00413f50
mov ecx, eax
call dword [0x572314]
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x4118e3
push 5
call fcn.00413f50
mov ecx, eax
call dword [0x572310]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4118f9
push 0
call fcn.00413f50
mov ecx, eax
call dword [0x572310]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [0x57230c]
call dword [0x572308]
mov ecx, 0x5a8584
call fcn.00414780
call dword [sym.imp.ole32.dll_OleUninitialize]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x411940
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x4119b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0x4119e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0x412050
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411a10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
mov eax, dword [0x5a6900]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov eax, 1
test eax, eax
je 0x411aec
call fcn.0040b880
mov ecx, eax
call fcn.00406770
test eax, eax
je 0x411adc
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
lea eax, [ebp - 0x210]
push eax
call fcn.00404220
add esp, 8
xor ecx, ecx
mov word [eax + 2], cx
xor eax, eax
mov word [ebp - 0x418], ax
push 0x206
push 0
lea eax, [ebp - 0x416]
push eax
call fcn.004af7d0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push str._sVstart64.exe
lea ecx, [ebp - 0x418]
push ecx
call fcn.0040fa70
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
call fcn.004111b0
add esp, 4
test eax, eax
jne 0x411adc
push 0
push 0
push 0
lea eax, [ebp - 0x418]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x411a29
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004af76a
mov esp, ebp
pop ebp
ret
Function at 0x412080
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x87c
mov eax, dword [0x5a6900]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
xor eax, eax
mov word [ebp - 0x220], ax
push 0x206
push 0
lea eax, [ebp - 0x21e]
push eax
call fcn.004af7d0
add esp, 0xc
movzx eax, word [ebp - 0x12]
push eax
movzx ecx, word [ebp - 0x16]
push ecx
movzx edx, word [ebp - 0x18]
push edx
push 0x54c07c
push 0x104
lea eax, [ebp - 0x220]
push eax
call fcn.004af711
add esp, 0x18
push 0x104
lea eax, [ebp - 0x428]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
lea eax, [ebp - 0x428]
push eax
call fcn.00404220
add esp, 8
xor ecx, ecx
mov word [eax + 2], cx
xor eax, eax
mov word [ebp - 0x630], ax
push 0x206
push 0
lea eax, [ebp - 0x62e]
push eax
call fcn.004af7d0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x838], ax
push 0x206
push 0
lea eax, [ebp - 0x836]
push eax
call fcn.004af7d0
add esp, 0xc
lea eax, [ebp - 0x428]
push eax
push str._sSoftApp.ini
lea ecx, [ebp - 0x630]
push ecx
call fcn.0040fa70
add esp, 0xc
lea eax, [ebp - 0x630]
push eax
push 0x104
lea ecx, [ebp - 0x838]
push ecx
push 0x54c078
push str.UpdConfDate
push str.ControlConf
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x838]
push ecx
call fcn.004b2dfd
add esp, 8
xor edx, edx
test eax, eax
setl dl
mov byte [ebp - 0x839], dl
lea eax, [ebp - 0x220]
push eax
movzx ecx, byte [ebp - 0x839]
push ecx
lea edx, [ebp - 0x428]
push edx
mov ecx, dword [ebp - 8]
call fcn.00412230
lea eax, [ebp - 0x220]
push eax
movzx ecx, byte [ebp - 0x839]
push ecx
lea edx, [ebp - 0x428]
push edx
mov ecx, dword [ebp - 8]
call fcn.00412a80
lea eax, [ebp - 0x220]
push eax
movzx ecx, byte [ebp - 0x839]
push ecx
lea edx, [ebp - 0x428]
push edx
mov ecx, dword [ebp - 8]
call fcn.00413040
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004af76a
mov esp, ebp
pop ebp
ret
Function at 0x413120
Capabilities:
Create process on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
push str.EXPLORER.EXE
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.004131e0
test eax, eax
jne 0x41314b
xor eax, eax
jmp 0x4131cd
push 0x44
push 0
lea eax, [ebp - 0x4c]
push eax
call fcn.004af7d0
add esp, 0xc
mov dword [ebp - 0x4c], 0x44
mov dword [ebp - 0x44], str.winsta0default
mov dword [ebp - 0x60], 0
push 1
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x60]
push ecx
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
jne 0x413187
xor eax, eax
jmp 0x4131cd
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
push 0
mov edx, dword [ebp - 0x60]
push edx
push 0x420
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x4131c6
push str.CreateProcessAsUser_ok__r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4131ca
xor eax, eax
jmp 0x4131cd
mov eax, dword [ebp - 0x64]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4131e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d441
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x5a6900]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 0xc], 0
jne 0x41321e
xor eax, eax
jmp 0x4133f5
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x248], 0
push 0x228
push 0
lea eax, [ebp - 0x244]
push eax
call fcn.004af7d0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x413265
xor eax, eax
jmp 0x4133f5
mov dword [ebp - 0x248], 0x22c
lea eax, [ebp - 0x248]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4133e1
lea ecx, [ebp - 0x264]
call fcn.0040a320
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x280]
call fcn.0040a320
mov byte [ebp - 4], 1
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x264]
call fcn.004063e0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x280]
call fcn.004063e0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x2d0], esp
lea eax, [ebp - 0x280]
push eax
call fcn.00403290
mov dword [ebp - 0x2d4], eax
mov ecx, dword [ebp - 0x2d4]
mov dword [ebp - 0x2d8], ecx
mov byte [ebp - 4], 2
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x2cc], esp
lea edx, [ebp - 0x264]
push edx
call fcn.00403290
mov dword [ebp - 0x2dc], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
call fcn.00413420
mov byte [ebp - 0x2dd], al
movzx eax, byte [ebp - 0x2dd]
test eax, eax
je 0x41339f
mov eax, dword [ebp - 0x240]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x284], eax
mov eax, dword [ebp + 8]
push eax
push 0xf01ff
mov ecx, dword [ebp - 0x284]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c8], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x280]
call fcn.00402890
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x264]
call fcn.00402890
mov eax, dword [ebp - 0x2c8]
jmp 0x4133f5
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x280]
call fcn.00402890
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x264]
call fcn.00402890
lea eax, [ebp - 0x248]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x413287
mov dword [ebp - 0x1c], 1
jmp 0x4133e8
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004af76a
mov esp, ebp
pop ebp
ret 8
Function at 0x4135d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x660
mov eax, dword [0x5a6900]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
lea eax, [ebp - 0x210]
push eax
call fcn.00404220
add esp, 8
xor ecx, ecx
mov word [eax + 2], cx
xor eax, eax
mov word [ebp - 0x418], ax
push 0x206
push 0
lea eax, [ebp - 0x416]
push eax
call fcn.004af7d0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x620], ax
push 0x206
push 0
lea eax, [ebp - 0x61e]
push eax
call fcn.004af7d0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push str._sConfig.ini
lea ecx, [ebp - 0x418]
push ecx
call fcn.0040fa70
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
push 0x104
lea ecx, [ebp - 0x620]
push ecx
push 0x54c078
push 0x54c4b4
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x620]
push eax
call fcn.004b258f
add esp, 4
test eax, eax
jne 0x4136d3
lea eax, [ebp - 0x418]
push eax
mov ecx, dword [ebp - 8]
call fcn.004136f0
lea eax, [ebp - 0x418]
push eax
push 0x54c4b0
push 0x54c4b4
push str.Setting
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004af76a
mov esp, ebp
pop ebp
ret
Function at 0x4176d0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x5a6900]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x10]
call fcn.00417410
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00417660
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x417735
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x26c], eax
lea ecx, [ebp - 0x10]
call fcn.00417440
mov eax, dword [ebp - 0x26c]
jmp 0x4177c3
mov dword [ebp - 0x20], 0x100
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x41779b
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x10]
call fcn.004176d0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x417792
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x268], eax
lea ecx, [ebp - 0x10]
call fcn.00417440
mov eax, dword [ebp - 0x268]
jmp 0x4177c3
mov dword [ebp - 0x20], 0x100
jmp 0x41773c
lea ecx, [ebp - 0x10]
call fcn.00417590
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.004174d0
mov dword [ebp - 0x264], eax
lea ecx, [ebp - 0x10]
call fcn.00417440
mov eax, dword [ebp - 0x264]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004af76a
mov esp, ebp
pop ebp
ret 4
Function at 0x417e10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor eax, eax
jne 0x417e1c
xor eax, eax
jne 0x417e1c
xor eax, eax
cmp dword [ebp + 0xc], 0
setne al
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x417e3d
mov eax, 0xd
jmp 0x417e98
xor eax, eax
jne 0x417e24
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*2]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
lea edx, [ecx + eax*2]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0x10], 1
jne 0x417e4e
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 7
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8