joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42abf0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
mov esi, eax
push edi
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
mov dword [esp + 8], 0
jbe 0x42ac12
call fcn.0043641d
mov eax, dword [esi + 8]
cmp dword [esi + 4], eax
mov dword [esp + 0xc], eax
jbe 0x42ac23
call fcn.0043641d
test esi, esi
je 0x42ac2b
cmp esi, esi
je 0x42ac30
call fcn.0043641d
cmp edi, dword [esp + 0xc]
je 0x42ac67
test esi, esi
jne 0x42ac3f
call fcn.0043641d
cmp edi, dword [esi + 8]
jb 0x42ac49
call fcn.0043641d
cmp edi, dword [esi + 8]
mov ecx, dword [esp + 8]
mov eax, dword [edi + 0x14]
lea edx, [ecx + eax + 1]
mov dword [esp + 8], edx
jb 0x42ac62
call fcn.0043641d
add edi, 0x1c
jmp 0x42ac12
mov eax, dword [esp + 8]
add eax, 1
xor ecx, ecx
mov dword [esp + 8], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004348ff
mov edi, eax
add esp, 4
lea eax, [esp + 8]
push eax
push edi
mov eax, esi
call fcn.00432f10
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp + 0xc]
add esp, 8
lea edx, [ecx + ecx]
mov ecx, dword [ebp + 8]
push edx
mov edx, dword [ecx]
push edi
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
pop edi
add eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x42acd0
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42ace0
sub eax, edx
sar eax, 1
add eax, 1
push eax
call fcn.004348ff
mov ebx, eax
movzx eax, word [esi]
add esp, 4
test ax, ax
je 0x42ad77
cmp ax, 0x61
jb 0x42ad17
cmp ax, 0x66
ja 0x42ad17
mov al, byte [esi]
sub al, 0x57
jmp 0x42ad2d
cmp ax, 0x41
jb 0x42ad29
cmp ax, 0x46
ja 0x42ad29
mov al, byte [esi]
sub al, 0x37
jmp 0x42ad2d
mov al, byte [esi]
sub al, 0x30
movzx ecx, word [esi + 2]
add esi, 2
shl al, 4
cmp cx, 0x61
jb 0x42ad4a
cmp cx, 0x66
ja 0x42ad4a
mov cl, byte [esi]
sub cl, 0x57
jmp 0x42ad64
cmp cx, 0x41
jb 0x42ad5f
cmp cx, 0x46
ja 0x42ad5f
mov dl, byte [esi]
sub dl, 0x37
or al, dl
jmp 0x42ad66
mov cl, byte [esi]
sub cl, 0x30
or al, cl
add esi, 2
mov byte [ebx + edi], al
movzx eax, word [esi]
add edi, 1
test ax, ax
jne 0x42ad05
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push edi
push ebx
push 3
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
mov esi, eax
call fcn.0043642d
add esp, 4
xor eax, eax
pop edi
test esi, esi
pop esi
sete al
pop ebx
ret 8
Function at 0x42adb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebp
mov ebp, dword [esp + 0xc]
mov ecx, dword [ebp]
push esi
mov esi, eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0
push esi
push ecx
mov dword [esp + 0x28], 0
call ebx
test eax, eax
je 0x42ade5
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
mov eax, dword [esp + 0x10]
xor ecx, ecx
add eax, 1
mov edx, 2
mul edx
seto cl
push edi
neg ecx
or ecx, eax
push ecx
call fcn.004348ff
mov ecx, dword [ebp]
add esp, 4
mov edi, eax
lea eax, [esp + 0x14]
push eax
push edi
push 0
push 0
push esi
push ecx
call ebx
mov ebx, eax
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42ae20
mov esi, dword [esp + 0x18]
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.00403d80
push edi
call fcn.0043642d
add esp, 4
pop edi
pop esi
xor eax, eax
test ebx, ebx
pop ebp
sete al
pop ebx
ret 8

Function at 0x42ae60
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebp
mov ebp, dword [esp + 0x10]
mov ecx, dword [ebp]
push esi
push edi
mov edi, eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push edi
push ecx
mov dword [esp + 0x30], 0
call ebx
test eax, eax
je 0x42ae99
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov eax, dword [esp + 0x18]
xor ecx, ecx
add eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004348ff
mov ecx, dword [ebp]
add esp, 4
mov esi, eax
lea eax, [esp + 0x18]
push eax
push esi
push 0
push 0
push edi
push ecx
call ebx
mov edx, dword [esp + 0x1c]
push edx
mov ecx, esi
mov edi, eax
call fcn.00432e40
add esp, 4
push esi
call fcn.0043642d
add esp, 4
xor eax, eax
test edi, edi
pop edi
pop esi
pop ebp
sete al
pop ebx
pop ecx
ret 8
Function at 0x42afe0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x214
mov eax, dword [0x462408]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
mov esi, dword [esp + 0x224]
push edi
mov edi, dword [esp + 0x230]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0
push esi
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x42b0cf
lea edx, [esp + 0x10]
push edx
mov eax, edi
or eax, 0xf003f
push eax
push 0
lea ecx, [esp + 0x24]
push ecx
push esi
call ebx
test eax, eax
jne 0x42b0cf
mov eax, dword [esp + 0x10]
push edi
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.0042afe0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 0x100
jne 0x42b0bb
mov eax, dword [0x464c98]
test eax, eax
jne 0x42b0a3
push str.RegDeleteKeyExW
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call ebp
test eax, eax
mov dword [0x464c98], eax
je 0x42b0b4
push 0
push 0x100
lea edx, [esp + 0x20]
push edx
push esi
call eax
jmp 0x42b0c7
mov eax, 0x32
jmp 0x42b0c7
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x42b012
cmp eax, 0x103
pop edi
pop esi
pop ebp
pop ebx
jne 0x42b0dc
xor eax, eax
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00434b37
add esp, 0x214
ret

Function at 0x42b680
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [0x464bf8]
push edi
push str.LRCDATA
push str.LICENSE
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x42b6a3
xor al, al
pop edi
ret 4
mov ecx, dword [0x464bf8]
push ebx
push ebp
push esi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [0x464bf8]
push edi
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea ebx, [esi + 2]
push ebx
mov ebp, eax
call fcn.004348ff
push ebx
mov edi, eax
push 0
push edi
call fcn.00440b00
push esi
push ebp
push edi
call fcn.0043a930
mov eax, edi
add esp, 0x1c
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42b6f1
mov esi, dword [esp + 0x14]
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.00403d80
push edi
call fcn.0043642d
add esp, 4
pop esi
pop ebp
pop ebx
mov al, 1
pop edi
ret 4
Function at 0x42e090
Capabilities:
Check for peb beingdebugged flag
Create service
Modify service
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x44e0f8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x462408]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov edi, ecx
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov eax, edi
xor ebx, ebx
mov dword [esp + 0x44], ebp
xor esi, esi
lea edx, [eax + 2]
jmp 0x42e0e0
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x42e0e0
sub eax, edx
sar eax, 1
je 0x42e193
push 0x2c
lea ecx, [esp + 0x2c]
call fcn.00433730
add esp, 4
lea ecx, [esp + 0x28]
xor esi, esi
call fcn.0040c010
test eax, eax
jbe 0x42e15d
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x42e137
mov ecx, dword [esp + 0x30]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x42e140
call fcn.0043641d
mov edi, dword [esp + 0x2c]
mov eax, dword [edi + ebp + 0x14]
lea ecx, [esp + 0x28]
lea ebx, [ebx + eax + 1]
add esi, 1
add ebp, 0x1c
call fcn.0040c010
cmp esi, eax
jb 0x42e116
xor ebp, ebp
add ebx, 1
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
mov dword [esp + 0x1c], ebx
neg ecx
or ecx, eax
push ecx
call fcn.004348ff
mov esi, eax
add esp, 4
lea eax, [esp + 0x1c]
push eax
push esi
lea eax, [esp + 0x30]
call fcn.00432f10
add esp, 8
mov edi, dword [esp + 0x4c]
mov eax, dword [edi + 4]
cmp eax, ebp
je 0x42e1a5
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x5c]
push ebp
push ebp
push esi
push ebp
mov ecx, eax
push ebp
and ecx, 0x10000000
xor edx, edx
cmp edx, ecx
mov edx, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x68]
push 1
sbb ecx, ecx
and eax, 0xefffffff
push eax
mov eax, dword [esp + 0x78]
push eax
mov eax, dword [edi]
neg ecx
push 0xf003f
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x7c]
push ecx
push edx
push eax
mov dword [edi + 4], ebp
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
cmp eax, ebp
mov dword [edi + 4], eax
je 0x42e242
mov ecx, dword [esp + 0x64]
mov ebx, dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
lea edx, [esp + 0x20]
push edx
push 1
push eax
mov dword [esp + 0x2c], ecx
call ebx
test eax, eax
jne 0x42e220
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebp
mov dword [esp + 0x18], eax
jne 0x42e24c
call fcn.0042e850
cmp eax, 0x6000100
jb 0x42e24c
cmp eax, 0xffffffff
ja 0x42e24c
mov ecx, dword [edi + 4]
lea eax, [esp + 0x24]
push eax
push 3
push ecx
call ebx
test eax, eax
jne 0x42e24c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
cmp esi, ebp
je 0x42e259
push esi
call fcn.0043642d
add esp, 4
mov eax, dword [esp + 0x2c]
cmp eax, ebp
je 0x42e27f
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x30]
push edx
call fcn.00410430
mov eax, dword [esp + 0x30]
add esp, 4
push eax
call fcn.0043642d
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 0x1c
Function at 0x42e2a0
Capabilities:
Modify service

Disassembly:
push ecx
push esi
mov ecx, eax
and ecx, 0x10000000
xor esi, esi
xor edx, edx
cmp edx, ecx
mov edx, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0x18]
push esi
sbb ecx, ecx
push esi
neg ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [edi + 4]
push esi
push esi
push edx
push 0xffffffffffffffff
and eax, 0xefffffff
push eax
mov eax, dword [esp + 0x34]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x42e340
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x1c]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push ebp
lea eax, [esp + 0x14]
push eax
push 1
push ecx
mov dword [esp + 0x20], edx
call ebx
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x42e315
call ebp
mov esi, eax
test esi, esi
jne 0x42e34d
call fcn.0042e850
cmp eax, 0x6000100
jb 0x42e34b
cmp eax, 0xffffffff
ja 0x42e34b
mov eax, dword [edi + 4]
lea edx, [esp + 0xc]
push edx
push 3
push eax
call ebx
test eax, eax
jne 0x42e34b
call ebp
pop ebp
pop ebx
pop esi
pop ecx
ret 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ecx
ret 0x14
mov eax, esi
pop ebp
pop ebx
pop esi
pop ecx
ret 0x14

Function at 0x42e380
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
mov eax, dword [ebx + 4]
sub esp, 0x1c
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov edx, dword [ebx + 4]
lea ecx, [esp]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x42e457
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
cmp dword [esp + 0x10], 4
mov ebp, dword [esp + 0x20]
mov esi, eax
je 0x42e433
nop
mov eax, 0xcccccccd
mul dword [esp + 0x24]
shr edx, 3
cmp edx, 0x3e8
jae 0x42e3db
mov edx, 0x3e8
jmp 0x42e3e8
cmp edx, 0x2710
jbe 0x42e3e8
mov edx, 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebx + 4]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x42e42c
cmp dword [esp + 0x20], ebp
jbe 0x42e412
call edi
mov ebp, dword [esp + 0x20]
mov esi, eax
jmp 0x42e41c
call edi
sub eax, esi
cmp eax, dword [esp + 0x24]
ja 0x42e42c
cmp dword [esp + 0x10], 4
jne 0x42e3c0
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret
cmp dword [esp + 0x10], 4
jne 0x42e43c
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], ecx
pop ebp
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x1c
ret
Function at 0x42e470
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
mov ecx, dword [ebx + 4]
sub esp, 0x1c
lea eax, [esp]
push eax
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x42e48d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebx + 4]
lea edx, [esp]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x42e557
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
cmp dword [esp + 0x10], 1
mov ebp, dword [esp + 0x20]
mov esi, eax
je 0x42e533
jmp 0x42e4c0
mov eax, 0xcccccccd
mul dword [esp + 0x24]
shr edx, 3
cmp edx, 0x3e8
jae 0x42e4db
mov edx, 0x3e8
jmp 0x42e4e8
cmp edx, 0x2710
jbe 0x42e4e8
mov edx, 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebx + 4]
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x42e52c
cmp dword [esp + 0x20], ebp
jbe 0x42e512
call edi
mov ebp, dword [esp + 0x20]
mov esi, eax
jmp 0x42e51c
call edi
sub eax, esi
cmp eax, dword [esp + 0x24]
ja 0x42e52c
cmp dword [esp + 0x10], 1
jne 0x42e4c0
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret
cmp dword [esp + 0x10], 1
jne 0x42e53c
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
pop edi
pop esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
pop ebp
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x1c
ret

Function at 0x42eb00
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42eb32
lea ecx, [esp]
push ecx
call eax
xor eax, eax
cmp word [esp], 6
sete al
add esp, 0x24
ret
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor eax, eax
cmp word [esp], 6
sete al
add esp, 0x24
ret

Function at 0x42ec50
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x10
xor eax, eax
lea ecx, [esp]
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
push ecx
push 0x42eb70
mov dword [esp + 8], 0x12
mov dword [esp + 0x14], eax
call dword [sym.imp.USER32.dll_EnumWindows]
xor eax, eax
add esp, 0x10
ret
Function at 0x42ec90
Capabilities:
Enumerate processes

Disassembly:
push ebp
push esi
xor ebp, ebp
push ebp
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x42ecbb
push edi
push esi
mov dword [edi], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x42ecc3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, 2
pop ebp
ret
push ebx
lea ebx, [edi + 0x24]
mov eax, dword [esp + 0x10]
push ebx
push eax
call fcn.00436262
add esp, 8
test eax, eax
je 0x42ecf1
push edi
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x42ecc7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
mov eax, ebp
pop ebp
ret
push esi
mov ebp, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
mov eax, ebp
pop ebp
ret

Function at 0x42ed50
Capabilities:
Terminate process

Disassembly:
sub esp, 0x230
mov eax, dword [0x462408]
xor eax, esp
mov dword [esp + 0x22c], eax
mov eax, dword [esp + 0x234]
push edi
push eax
lea edi, [esp + 8]
call fcn.0042ec90
add esp, 4
cmp eax, 2
jne 0x42ed96
xor eax, eax
pop edi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.00434b37
add esp, 0x230
ret
mov eax, dword [esp + 0xc]
push esi
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x42edc5
pop esi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.00434b37
add esp, 0x230
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x42edac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x234]
pop esi
pop edi
xor ecx, esp
call fcn.00434b37
add esp, 0x230
ret
Function at 0x42ee00
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x868
mov eax, dword [0x462408]
xor eax, esp
mov dword [esp + 0x860], eax
mov eax, dword [esp + 0x86c]
push ebp
mov ebp, dword [esp + 0x87c]
push esi
push edi
push eax
lea eax, [esp + 0x6c]
push 0x400
push eax
mov esi, ecx
xor edi, edi
call fcn.004367c7
push 0x453914
lea ecx, [esp + 0x78]
push 0x400
push ecx
call fcn.00436c84
push esi
lea edx, [esp + 0x84]
push 0x400
push edx
call fcn.00436c84
push 0x44
lea eax, [esp + 0x48]
push edi
push eax
call fcn.00440b00
xor eax, eax
add esp, 0x30
cmp byte [esp + 0x87c], al
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
je 0x42ee9d
or dword [esp + 0x4c], 1
mov word [esp + 0x50], ax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x88]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x42eedf
cmp byte [esp + 0x880], 0
je 0x42eee7
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x42eee7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov edx, dword [esp + 0x10]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
mov ecx, dword [esp + 0x86c]
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00434b37
add esp, 0x868
ret

Function at 0x42ef30
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x1c
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
je 0x42ef9c
lea ecx, [esp + 0xc]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp + 4]
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0x80040002
push 0x12
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x42ef9c
xor eax, eax
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x1c
ret
Function at 0x42f2e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x462408]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov esi, eax
test esi, esi
je 0x42f380
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [esp + 8], 0
setne al
test al, al
je 0x42f380
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0x24
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.SysWOW64Kernel32.dll
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x42f380
push str.Wow64EnableWow64FsRedirection
push esi
call edi
test eax, eax
je 0x42f379
mov ecx, dword [esp + 0x21c]
push ecx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
call fcn.00434b37
add esp, 0x210
ret
Function at 0x42f830
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x44e0c0
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x462408]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x462408]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x94]
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x40], eax
xor esi, esi
mov eax, 7
mov ebx, ecx
mov edi, edx
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], esi
mov word [esp + 0x64], si
mov dword [esp + 0x88], esi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], esi
mov word [esp + 0x48], si
mov edx, 0x454e34
mov byte [esp + 0x88], 1
call fcn.00401d60
test eax, eax
je 0x42f8c8
mov edi, dword [esp + 0x98]
lea ebx, [esi + 8]
jmp 0x42f9c4
mov edx, dword [esp + 0x90]
lea ecx, [esp + 0x60]
push ecx
push edx
mov ecx, 0x464bc0
call fcn.0042b420
test ebx, 0xffff0000
jne 0x42f8f9
lea eax, [esp + 0x44]
push eax
push ebx
mov ecx, 0x464bc0
call fcn.0042b420
jmp 0x42f909
push 0x464bc0
lea edx, [esp + 0x48]
mov ecx, ebx
call fcn.0042be20
cmp edi, esi
je 0x42f91a
lea ecx, [esp + 0x44]
push ecx
call fcn.00432d90
add esp, 4
xor eax, eax
mov ebx, 8
cmp dword [esp + 0x78], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x18], 0x28
jb 0x42f961
mov edx, dword [esp + 0x64]
mov dword [esp + 0x28], edx
jmp 0x42f969
lea eax, [esp + 0x64]
mov dword [esp + 0x28], eax
cmp dword [esp + 0x5c], ebx
jb 0x42f979
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x24], ecx
jmp 0x42f981
lea edx, [esp + 0x48]
mov dword [esp + 0x24], edx
movzx eax, word [0x464bd0]
mov dword [esp + 0x3c], eax
or ebp, 0x80
and eax, 0x3ff
cmp ax, 1
mov dword [esp + 0x2c], ebp
je 0x42f9a7
cmp ax, 0xd
jne 0x42f9af
or dword [esp + 0x2c], 0x180000
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x34], eax
call dword [sym.imp.USER32.dll_MessageBoxIndirectW]
mov edi, eax
cmp dword [esp + 0x5c], ebx
jb 0x42f9d7
mov edx, dword [esp + 0x48]
push edx
call fcn.0043642d
add esp, 4
cmp dword [esp + 0x78], ebx
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], esi
mov word [esp + 0x48], si
jb 0x42f9fb
mov eax, dword [esp + 0x64]
push eax
call fcn.0043642d
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00434b37
add esp, 0x78
ret