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

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x7e0d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x7e0d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x7e0d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x7e0d94
push eax
push esi
call fcn.007e320b
add esp, 8
pop esi
ret 0x10

Function at 0x7e0da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7e0e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x7e0e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x7f9320
push ecx
mov dword [esp + 0x1c], 4
call fcn.007e2dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x7e0dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x7e0e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7e0ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x7e0eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x7f9320
push ecx
mov dword [esp + 0x1c], 4
call fcn.007e2dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x7e0eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x7e0e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x7e21b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.007e2140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.007e2140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.007e2140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.007e2140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x7e2230
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x20c
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x218]
push ebp
mov ebp, dword [esp + 0x218]
push esi
push eax
push 0xf003f
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7e22d6
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea ecx, [esp + 0x14]
push 0x104
push ecx
push eax
push edx
call edi
mov esi, eax
test esi, esi
jne 0x7e22ae
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.007e2230
mov esi, eax
add esp, 8
test esi, esi
jne 0x7e22ae
lea edx, [esp + 0x14]
push 0x104
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call edi
mov esi, eax
test esi, esi
je 0x7e227e
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x103
pop edi
je 0x7e22ce
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret

Function at 0x7e2bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x7e2c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x7f487c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x7e2c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x7e2c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401630
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
call fcn.00401460
test eax, eax
jne 0x401692
push ebx
push esi
push edi
lea eax, [esp + 0xc]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.wbjju.ime
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x425364
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 + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call sub.IMM32.dll_ImmInstallIMEA
pop edi
pop esi
pop ebx
add esp, 0x104
ret

Function at 0x4016a0
Capabilities:
Copy file
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x41caa6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
mov eax, dword [0x425888]
push esi
mov dword [esp + 8], eax
mov dword [esp + 0x12c], 0
mov dword [esp + 4], eax
mov esi, dword [esp + 0x134]
lea ecx, [esp + 8]
mov byte [esp + 0x12c], 1
lea eax, [esi + 0x24]
push eax
call fcn.00413a2b
add esi, 0x14
lea ecx, [esp + 4]
push esi
call fcn.00413a2b
push str.USRWORD.TXT
lea ecx, [esp + 8]
call fcn.00413bf4
push str.USRWORD.TXT
lea ecx, [esp + 0xc]
call fcn.00413bf4
mov edx, dword [esp + 4]
lea ecx, [esp + 0xc]
push ecx
push edx
call fcn.00413f42
test eax, eax
pop esi
jne 0x40173f
mov eax, dword [esp]
mov ecx, dword [esp + 4]
push 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [esp]
lea edx, [esp + 8]
push edx
push eax
call fcn.00413f42
test eax, eax
je 0x40176b
mov al, byte [esp + 0x18]
mov edx, dword [esp]
lea ecx, [esp + 8]
and al, 0xfe
push ecx
push edx
mov byte [esp + 0x20], al
call fcn.004140a7
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp]
mov byte [esp + 0x128], 0
call fcn.00413982
lea ecx, [esp + 4]
mov dword [esp + 0x128], 0xffffffff
call fcn.00413982
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
add esp, 0x12c
ret

Function at 0x4017b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x21c
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x114]
lea edx, [esp + 0x10]
push ecx
push edx
call fcn.00413f42
mov edi, str.IMEROVASOfT
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, dword [esp + 0x114]
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 + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call fcn.00413f42
mov edx, dword [esp + 0x114]
not ebx
and edx, 0x7fff
and ebx, 0xffff
shl edx, 0x10
and ebx, 0x7fffffff
or edx, ebx
push edx
push str.BookID
push str.SOFTWAREROVASOFT
push 0x80000002
call fcn.00403470
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret
Function at 0x401870
Capabilities:
Get common file path

Disassembly:
sub esp, 0x220
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
lea eax, [esp + 4]
push eax
push 0x42528c
push str.SOFTWAREROVASOFT
push 0x80000002
call fcn.00403410
add esp, 0x10
test eax, eax
jne 0x4018f4
lea ecx, [esp + 8]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x10c]
lea eax, [esp + 8]
push edx
push eax
call fcn.00413f42
mov eax, dword [esp + 0x10c]
and esi, 0x7fffffff
and eax, 0x1ff
shl eax, 0x16
xor eax, esi
push eax
push 0x42528c
push str.SOFTWAREROVASOFT
push 0x80000002
mov dword [esp + 0x14], eax
call fcn.00403470
add esp, 0x10
pop esi
add esp, 0x220
ret

Function at 0x401950
Capabilities:
Delete file
Delete registry key
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41cad1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push esi
mov esi, dword [esp + 0x124]
push esi
call fcn.004016a0
add esp, 4
add esi, 0x24
lea eax, [esp + 8]
push str.Setup.inf
push esi
push eax
call fcn.00413b21
mov ecx, dword [esp + 0x128]
mov esi, dword [esi]
mov edx, dword [esp + 8]
push ecx
push esi
push edx
mov dword [esp + 0x128], 0
call fcn.00401d90
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test esi, esi
pop esi
jne 0x4019ef
lea ecx, [esp + 4]
mov dword [esp + 0x118], 0xffffffff
call fcn.00413982
xor eax, eax
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
add esp, 0x11c
ret
call fcn.00401630
call fcn.0041b412
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x1a0]
test ecx, ecx
jne 0x401a14
mov ecx, dword [eax + 0x19c]
test ecx, ecx
jne 0x401aee
push 0x4253f0
lea ecx, [esp + 0xc]
call fcn.004139ac
mov ecx, dword [str.SoftwareMicrosoftWindowsCurrentVersionUninstallWBJJ]
push eax
push str.DisplayName
push ecx
push 0x80000002
mov byte [esp + 0x128], 1
call fcn.00403570
add esp, 0x10
lea ecx, [esp + 8]
mov byte [esp + 0x118], 0
call fcn.00413982
lea edx, [esp + 0xc]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [0x425888]
mov dword [esp], eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x118], 2
push ecx
lea ecx, [esp + 4]
call fcn.00413a7b
push str.IMERovasoftWBJJWbjjUninst.exe
lea ecx, [esp + 4]
call fcn.00413bf4
mov eax, dword [str.SoftwareMicrosoftWindowsCurrentVersionUninstallWBJJ]
lea edx, [esp]
push edx
push str.UninstallString
push eax
push 0x80000002
call fcn.00403570
mov ecx, dword [str.SoftwareMicrosoftWindowsCurrentVersionUninstallWBJJ]
add esp, 0x10
push ecx
lea ecx, [esp + 4]
call fcn.00413a7b
push 0x4253ac
lea ecx, [esp + 4]
call fcn.00413bf4
mov edx, dword [esp]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [esp]
mov byte [esp + 0x118], 0
call fcn.00413982
call fcn.00401870
call fcn.00401900
call fcn.004017b0
lea ecx, [esp + 4]
mov dword [esp + 0x118], 0xffffffff
call fcn.00413982
mov ecx, dword [esp + 0x110]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x11c
ret
Function at 0x401060
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x334
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x135]
mov byte [esp + 0x134], 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 + 0x239]
mov byte [esp + 0x238], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x348]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x134]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 2
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 8], esi
jne 0x4010ea
pop edi
xor eax, eax
pop esi
add esp, 0x334
ret 0x10
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x128
push ecx
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x401119
pop edi
pop esi
add esp, 0x334
ret 0x10
push ebx
lea edx, [esp + 0x34]
push ebp
push edx
push str.WDPKCSUtil.EXE
call fcn.00405430
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 8
test eax, eax
je 0x401159
lea eax, [esp + 0x38]
push eax
push str.InstallP11.exe
call fcn.00405430
add esp, 8
test eax, eax
jne 0x401172
mov ecx, dword [esp + 0x1c]
push ecx
push 0
push 1
call edi
mov esi, eax
push 0
push esi
call ebp
push esi
call ebx
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x4011d5
lea eax, [esp + 0x38]
push eax
push str.WDPKCSUtil.EXE
call fcn.00405430
add esp, 8
test eax, eax
je 0x4011ad
lea ecx, [esp + 0x38]
push ecx
push str.InstallP11.exe
call fcn.00405430
add esp, 8
test eax, eax
jne 0x4011c6
mov edx, dword [esp + 0x1c]
push edx
push 0
push 1
call edi
mov esi, eax
push 0
push esi
call ebp
push esi
call ebx
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401181
lea ecx, [esp + 0x240]
lea edx, [esp + 0x13c]
push ecx
push edx
call fcn.00401000
mov eax, dword [0x407ac0]
add esp, 8
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x334
ret 0x10
Function at 0x401a80
Capabilities:
Get disk information

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
push 0x400
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov cl, byte [0x407246]
mov esi, eax
mov ax, word [0x407244]
mov bl, 0x41
mov word [esp + 0x14], ax
mov byte [esp + 0x16], cl
mov byte [esp + 0x13], bl
push 0x400
lea edx, [esp + 0x18]
push esi
push edx
mov byte [esp + 0x20], bl
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x401b6e
push 0x1a
push esi
push str.DeviceLanmanRedirector_
call fcn.00401bd0
add esp, 0xc
test eax, eax
je 0x401b52
cmp byte [esi + 0x1c], 0x3a
jne 0x401b52
push 0x400
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
mov edi, 0x1c
cmp ebp, edi
jle 0x401b14
cmp byte [edi + esi], 0x5c
je 0x401b14
inc edi
cmp edi, ebp
jl 0x401b09
push 0x400
push ebx
call fcn.00401520
add esp, 8
cmp edi, ebp
jge 0x401b33
mov eax, ebx
mov cl, byte [edi + esi]
mov byte [eax], cl
inc eax
inc edi
cmp edi, ebp
jl 0x401b28
push str.DeviceLanmanRedirector
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov bl, byte [esp + 0x13]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, dword [esp + 0x1c]
mov edi, eax
push edi
push ebp
push esi
call fcn.00401bd0
add esp, 0xc
test eax, eax
jne 0x401b8e
inc bl
cmp bl, 0x5a
mov byte [esp + 0x13], bl
jle 0x401ab1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, ebp
push edi
push esi
call ebx
mov edi, dword [esp + 0x20]
lea edx, [esp + 0x14]
push edx
push edi
call ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret

Function at 0x401ca0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401cd5
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret
Function at 0x402f71
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x407308
cmp edx, dword [eax]
je 0x402f93
add eax, 8
inc ecx
cmp eax, 0x407398
jl 0x402f84
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x407308]
jne 0x4030c1
mov eax, dword [0x42e6e0]
cmp eax, 1
je 0x40309b
test eax, eax
jne 0x402fc4
cmp dword [0x407254], 1
je 0x40309b
cmp edx, 0xfc
je 0x4030c1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402ffb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404960
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404260
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40303e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404260
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40643c
push edi
call fcn.00404ae0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404960
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404970
lea eax, [ebp - 0xa0]
push 0x40641c
push eax
call fcn.00404970
push dword [esi + 0x40730c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404970
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00404a50
add esp, 0x2c
pop edi
jmp 0x4030c1
lea eax, [ebp + 8]
lea esi, [esi + 0x40730c]
push 0
push eax
push dword [esi]
call fcn.00404260
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x409b3c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x184
call fcn.004552e0
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x409b81
push ebx
call fcn.00454ce0
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
push 0xff
push dword [ebp - 4]
mov ebx, dword [ebp + 0x14]
push dword [ebx]
mov ebx, dword [ebp + 0x10]
push dword [ebx]
mov ebx, dword [ebp + 0xc]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x409bc0
push 6
call fcn.00454cec
add esp, 4
mov eax, dword [ebp - 4]
test eax, eax
je 0x409bdc
push eax
mov ebx, eax
call fcn.00401750
inc eax
push eax
call fcn.00454ce6
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x409be1
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x409bf2
push ebx
call fcn.00454ce0
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x14
Function at 0x421c16
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
jne 0x421c33
mov eax, 0
jmp 0x421c6a
mov dword [ebp - 4], esp
push 0x40
push 0x1000
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x421c65
push 6
call fcn.00454cec
add esp, 4
jmp 0x421c6a
mov esp, ebp
pop ebp
ret 0x10

Function at 0x422143
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
cmp dword [ebp + 0x18], 0
je 0x422169
mov dword [ebp - 4], 4
jmp 0x422170
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
mov eax, 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4221b1
push 6
call fcn.00454cec
add esp, 4
jmp 0x4221b6
mov esp, ebp
pop ebp
ret 0x18
Function at 0x430628
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x43065c
push 6
call fcn.00454cec
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x430678
mov eax, 0
jmp 0x430682
mov eax, 1
jmp 0x430682
mov esp, ebp
pop ebp
ret 4
Function at 0x4341ee
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.00454ce6
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.00454ce6
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
xor ecx, ecx
lea eax, [ebp - 4]
mov ebx, eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, 0x1e
jg 0x4342a2
mov dword [ebp - 0x14], esp
mov eax, 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 1
push dword [ebp - 4]
call dword [0x48c8c6]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x43429e
push 6
call fcn.00454cec
add esp, 4
pop ebx
pop ecx
jmp 0x434258
add esp, 8
mov dword [ebp - 0x14], esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4342c4
push 6
call fcn.00454cec
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 8]
push eax
push 0xf01ff
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x4342f2
push 6
call fcn.00454cec
add esp, 4
mov dword [ebp - 0x14], esp
push dword [ebp - 0xc]
push str.SeDebugPrivilege
push 0x473274
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x43431e
push 6
call fcn.00454cec
add esp, 4
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x10]
add ebx, 8
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x14]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x14]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 0xc
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 2
mov dword [ebp - 0x14], esp
mov eax, 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push dword [ebp - 0x10]
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4343b4
push 6
call fcn.00454cec
add esp, 4
mov dword [ebp - 0x14], esp
push dword [ebp - 8]
call dword [0x48c8ca]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4343d6
push 6
call fcn.00454cec
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.00454ce0
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.00454ce0
add esp, 4
mov esp, ebp
pop ebp
ret