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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4069c4
push 0x406970
push 0x80000001
mov dword [ebp - 8], 4
call sub.SHLWAPI.dll_SHGetValueW
test eax, eax
jne 0x408d3e
cmp dword [ebp - 0xc], 4
jne 0x408d3a
cmp dword [ebp - 4], 1
je 0x408d3e
cmp dword [ebp - 4], 2
je 0x408d3e
cmp dword [ebp - 4], 0xa
je 0x408d3e
and dword [ebp - 4], 0
cmp dword [ebp - 4], 0
jne 0x408d62
call fcn.00408c67
test eax, eax
mov dword [ebp - 4], eax
je 0x408d62
call sub.iertutil.dll_Ordinal_32
cmp eax, 1
jne 0x408d62
push dword [ebp - 4]
call fcn.00408b71
mov eax, dword [ebp - 4]
leave
ret

Function at 0x408d9a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 8]
push eax
push 1
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov byte [ebp - 1], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408e37
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
push edi
push 4
pop edi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
push ebx
push 0x10
push dword [ebp + 0x10]
mov dword [ebp + 0xc], edi
push ebx
push dword [ebp - 8]
call esi
test eax, eax
jne 0x408df5
cmp dword [ebp + 0x14], ebx
mov eax, dword [ebp + 8]
je 0x408e23
cmp eax, ebx
je 0x408e23
cmp eax, 1
je 0x408e23
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
push ebx
push 0x10
push 0x4069e4
push ebx
push dword [ebp - 8]
mov dword [ebp + 0xc], edi
call esi
test eax, eax
jne 0x408e2c
cmp dword [ebp + 0x14], ebx
mov eax, dword [ebp + 8]
je 0x408e23
cmp eax, ebx
je 0x408e23
cmp eax, 1
jne 0x408e2c
mov ecx, dword [ebp + 0x18]
mov byte [ebp - 1], 1
mov dword [ecx], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, byte [ebp - 1]
pop ebx
leave
ret 0x14
Function at 0x409032
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x40b050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 4
call dword [sym.imp.iertutil.dll_Ordinal_74]
test eax, eax
mov dword [ebp - 0x68], eax
je 0x40910f
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebx
lea eax, [ebp - 0x6c]
push eax
mov ebx, 0x20019
push ebx
push 0
mov edi, 0x409160
push edi
push 0x80000001
call esi
test eax, eax
je 0x409090
lea eax, [ebp - 0x6c]
push eax
push ebx
push 0
push edi
push 0x80000002
call esi
test eax, eax
jne 0x40910e
xor esi, esi
xor ebx, ebx
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push dword [ebp - 0x6c]
mov dword [ebp - 0x74], 0x27
call sub.SHLWAPI.dll_SHEnumValueW
mov edi, eax
cmp edi, esi
jne 0x409100
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SHELL32.dll_SHCLSIDFromString]
test eax, eax
jl 0x409100
lea eax, [ebp - 0x70]
push eax
push 0x4091c8
push esi
push 1
push esi
lea eax, [ebp - 0x64]
push eax
call sub.urlmon.dll_Ordinal_104
test eax, eax
jl 0x409100
push dword [ebp - 0x70]
push 0x7fffffff
push dword [ebp - 0x68]
call dword [sym.imp.iertutil.dll_Ordinal_85]
cmp eax, 0xffffffff
jne 0x409100
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc ebx
cmp edi, esi
je 0x409094
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov esi, 0x40b094
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
cmp dword [0x40b64c], edi
jne 0x409130
mov eax, dword [ebp - 0x68]
mov dword [0x40b64c], eax
mov dword [ebp - 0x68], edi
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x68], edi
je 0x40914b
push edi
push 0x408e44
push dword [ebp - 0x68]
call dword [sym.imp.iertutil.dll_Ordinal_79]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040165d
leave
ret
Function at 0x409b42
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x40b050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
xor edi, edi
cmp eax, edi
jne 0x409b6c
mov ebx, 0x80004001
jmp 0x409c2b
push esi
push eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.00401ef3
mov ebx, eax
cmp ebx, edi
jl 0x409c2a
push 0x409c40
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.00407157
mov ebx, eax
cmp ebx, edi
jl 0x409c2a
push 0x40
lea eax, [ebp - 0x25c]
push edi
push eax
mov dword [ebp - 0x260], edi
call sub.msvcrt.dll_memset
mov dword [ebp - 0x21c], edi
xor eax, eax
lea edi, [ebp - 0x218]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x21c]
push eax
xor esi, esi
lea eax, [ebp - 0x260]
push eax
push esi
push esi
push 0x4000020
push 1
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x409c14
push dword [ebp - 0x218]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x21c]
call esi
jmp 0x409c2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x409c28
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040165d
leave
ret 4

Function at 0x409c5d
Capabilities:
Check mutex on windows

Disassembly:
push 0x424
push 0x409d60
call fcn.00403213
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x434], ebx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x430], 0x80004005
call sub.iertutil.dll_Ordinal_32
cmp eax, 1
jne 0x409d48
xor edi, edi
cmp esi, edi
je 0x409d48
cmp ebx, edi
je 0x409d48
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x224]
push eax
call fcn.0040a01d
test eax, eax
jl 0x409cc9
lea eax, [ebp - 0x224]
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
mov eax, dword [esi]
cmp eax, edi
je 0x409d48
mov esi, 0x2710
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, edi
jne 0x409d48
mov dword [ebp - 4], edi
push ebx
lea eax, [ebp - 0x42c]
push eax
call fcn.0040a077
mov dword [ebp - 0x430], eax
cmp eax, edi
jl 0x409d3c
lea eax, [ebp - 0x42c]
push eax
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x409d31
push dword [ebp - 0x434]
call fcn.00409b42
mov dword [ebp - 0x430], eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
cmp ebx, edi
je 0x409d3c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
call fcn.00409d5b
mov eax, dword [ebp - 0x430]
call fcn.0040325b
ret 8
Function at 0x40102a
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebx
push esi
push edi
push str._JAVA_LAUNCHER_DEBUG
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xor ebx, ebx
pop ecx
test eax, eax
je 0x401078
push str.Windows_original_main_args:_n
call fcn.004010f9
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
mov esi, ebx
pop ecx
call edi
cmp dword [eax], ebx
jle 0x401078
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argv]
mov eax, dword [eax]
push dword [eax + esi*4]
push esi
push str.wwwd_args__d____s_n
call fcn.004010f9
add esp, 0xc
inc esi
call edi
cmp esi, dword [eax]
jl 0x401058
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call sub.jli.dll_JLI_CmdToArgs
call sub.jli.dll_JLI_GetStdArgc
mov edi, eax
lea ecx, [edi*4 + 4]
push ecx
call sub.jli.dll_JLI_MemAlloc
pop ecx
pop ecx
mov esi, eax
call sub.jli.dll_JLI_GetStdArgs
mov edx, ebx
test edi, edi
jle 0x4010b2
mov ecx, dword [eax + edx*8]
mov dword [esi + edx*4], ecx
inc edx
cmp edx, edi
jl 0x4010a7
mov ecx, dword [str.java]
mov dword [esi + edx*4], ebx
test ecx, ecx
jne 0x4010c1
mov ecx, dword [esi]
mov eax, dword [section..data]
test eax, eax
jne 0x4010cc
mov eax, dword [esi]
push ebx
push ebx
push ebx
push 1
push ecx
push eax
push 0x4021b4
push 0x4021b8
push 0x40300c
push 2
push 0x403004
push 2
push esi
push edi
call sub.jli.dll_JLI_Launch
add esp, 0x38
pop edi
pop esi
pop ebx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401000
Capabilities:
Get user security identifier

Disassembly:
sub esp, 0x210
mov eax, dword [0x40704c]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
push ebp
push esi
mov esi, dword [esp + 0x224]
push edi
mov edi, dword [esp + 0x224]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push edi
push 0
mov dword [esi], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0xff
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 0x7a
jne 0x4010b8
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x1c]
push ecx
push eax
push edi
push 0
mov dword [esi], eax
mov dword [esp + 0x30], 0xff
call ebx
test eax, eax
jne 0x4010b6
mov edx, dword [esi]
push edx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov dword [esi], 0
call ebp
jmp 0x4010b8
xor eax, eax
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004041ee
add esp, 0x210
ret
Function at 0x401160
Capabilities:
Get session user name
Get user security identifier

Disassembly:
mov eax, 0x1528
call fcn.00404210
mov eax, dword [0x40704c]
xor eax, esp
mov dword [esp + 0x1524], eax
mov eax, dword [esp + 0x152c]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x1534]
push edi
xor edi, edi
mov dword [esi], vtable.CNTService.0
mov dword [esi + 4], eax
cmp ecx, edi
je 0x40119b
mov eax, ecx
mov dword [esi + 8], eax
mov eax, dword [esp + 0x153c]
lea ecx, [esp + 0x18]
push ecx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], 5
mov dword [esi + 0x40], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], 0xf01ff
mov dword [esi + 0x50], 0x10
mov dword [esi + 0x54], 2
mov dword [esi + 0x58], 1
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esp + 0x1c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor edx, edx
cmp dword [esp + 0x28], 2
mov dword [0x40708c], esi
sete dl
mov dword [esi + 0x44], edx
mov dword [0x407088], 1
mov dword [esi + 0x1c], 0x10
mov dword [esi + 0x2c], edi
cmp dword [esi + 0x44], edi
je 0x401303
mov eax, 0xff
push 0x200
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0x130]
push edi
push eax
mov dword [esp + 0x1c], 0x1000
call sub.MSVCR90.dll_memset
push 0x200
lea ecx, [esp + 0x33c]
push edi
push ecx
call sub.MSVCR90.dll_memset
push 0x1000
lea edx, [esp + 0x548]
push edi
push edx
call sub.MSVCR90.dll_memset
add esp, 0x24
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x130]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x334]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x53c]
push eax
lea ecx, [esp + 0x140]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x401303
lea edx, [esp + 0x52c]
push edx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x401303
lea eax, [esp + 0x52c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov edi, eax
push edi
call sub.MSVCR90.dll_void____cdecl_operator_new___unsigned_int_
add esp, 4
lea ecx, [esp + 0x52c]
push ecx
push eax
push edi
mov dword [esi + 0x40], eax
call dword [sym.imp.ADVAPI32.dll_CopySid]
mov ecx, dword [esp + 0x152c]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.004041ee
add esp, 0x1528
ret 0xc
Function at 0x401fa0
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x20c
mov eax, dword [0x40704c]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
push edi
push 0xf003f
push 0
push 0
mov esi, ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [esp + 0xc], edi
test edi, edi
je 0x40213a
mov eax, dword [esi + 4]
push ebp
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, eax
test ebp, ebp
je 0x4020e8
mov ecx, dword [esi + 8]
mov edi, dword [sym.imp.MSVCR90.dll___iob_func]
push ebx
push ecx
push str.Starting_up__s.
call edi
mov ebx, dword [sym.imp.MSVCR90.dll_fwprintf]
add eax, 0x40
push eax
call ebx
add esp, 0xc
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x4020b4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esi + 0x1c]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x402076
cmp dword [esi + 0x20], 2
jne 0x402076
push 0x405564
call edi
add eax, 0x40
push eax
call ebx
add esp, 8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esi + 0x1c]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x402046
mov eax, dword [esi + 0x20]
cmp eax, 4
jne 0x4020a8
mov edx, dword [esi + 8]
push edx
push str._n_s_started._n
mov dword [esp + 0x18], 1
call edi
add eax, 0x40
push eax
call ebx
add esp, 0xc
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [esp + 0x14]
pop ebx
jmp 0x402112
push eax
mov eax, dword [esi + 8]
push eax
push str._n_s_failed_to_start__state_d_n
jmp 0x4020cf
push 0x100
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00401570
mov edx, dword [esi + 8]
push eax
push edx
push str._n_s_failed_to_start:__s_n
call edi
add eax, 0x40
push eax
call ebx
add esp, 0x10
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [esp + 0x14]
pop ebx
jmp 0x402112
push 0x100
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.00401570
push eax
push str.OpenService_failed____s_n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fwprintf]
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [esp + 0xc], 0
pop ebp
je 0x402164
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004041ee
add esp, 0x20c
ret
push 0x100
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.00401570
push eax
push 0x4053a8
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fwprintf]
add esp, 0xc
mov ecx, dword [esp + 0x210]
pop edi
pop esi
xor ecx, esp
mov eax, 0xc8
call fcn.004041ee
add esp, 0x20c
ret
Function at 0x402880
Capabilities:
Manipulate user privileges

Disassembly:
sub esp, 0x22c
mov eax, dword [0x40704c]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [esp + 0x234]
push esi
mov esi, dword [esp + 0x234]
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
lea ecx, [esp + 8]
push ecx
push 0x810
lea edx, [esp + 0x1c]
push edx
push 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
call sub.ADVAPI32.dll_LsaOpenPolicy
test eax, eax
jne 0x40295d
lea eax, [esp + 4]
push eax
push esi
call section..text
add esp, 8
test eax, eax
jne 0x402993
lea eax, [esp + 0x2c]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402900
sub eax, edx
sar eax, 1
lea ecx, [eax + eax]
mov word [esp + 0xc], cx
mov edx, dword [esp + 0xc]
add edx, 2
push 1
lea ecx, [esp + 0x10]
mov word [esp + 0x12], dx
mov edx, dword [esp + 8]
lea eax, [esp + 0x30]
push ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
push edx
push eax
call sub.ADVAPI32.dll_LsaAddAccountRights
test eax, eax
je 0x402979
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.MSVCR90.dll_free]
mov edx, dword [esp + 0xc]
add esp, 4
push edx
call sub.ADVAPI32.dll_LsaClose
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.004041ee
add esp, 0x22c
ret
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.MSVCR90.dll_free]
mov ecx, dword [esp + 0xc]
add esp, 4
push ecx
call sub.ADVAPI32.dll_LsaClose
xor eax, eax
mov ecx, dword [esp + 0x22c]
pop esi
xor ecx, esp
call fcn.004041ee
add esp, 0x22c
ret

Function at 0x402ba0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x40704c]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
push 0x114
xor esi, esi
lea eax, [esp + 8]
push esi
push eax
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]
test eax, eax
jne 0x402bf9
push str.Unable_to_determine_OS_version___error__n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fwprintf]
add esp, 8
mov eax, 2
cmp dword [esp + 0x14], eax
jne 0x402c16
cmp dword [esp + 8], 5
jne 0x402c16
cmp dword [esp + 0xc], eax
mov eax, 1
je 0x402c18
mov eax, esi
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.004041ee
add esp, 0x118
ret
Function at 0x402c30
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x40704c]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
push 0x114
xor esi, esi
lea eax, [esp + 8]
push esi
push eax
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]
test eax, eax
jne 0x402c89
push str.Unable_to_determine_OS_version___error__n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fwprintf]
add esp, 8
cmp dword [esp + 0x14], 2
jne 0x402c9c
cmp dword [esp + 8], 6
mov eax, 1
jae 0x402c9e
mov eax, esi
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.004041ee
add esp, 0x118
ret

Function at 0x402ef0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x44
xor eax, eax
push esi
mov esi, dword [esp + 0x4c]
push edi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
push 0x44
push eax
mov dword [esi + 0xc], eax
lea eax, [esp + 0x10]
push eax
mov edi, ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x8003
mov dword [esp + 0xc], 0x44
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [edi + 0x74]
push esi
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0x4000020
push 0
push 0
push 0
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x402f59
mov eax, dword [esi]
pop edi
pop esi
add esp, 0x44
ret 4
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x44
ret 4

Function at 0x402f70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push str.SOFTWAREBroadcom802.11
push 0x80000002
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402fdf
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 8]
push edx
push eax
push eax
mov eax, dword [esp + 0x18]
push str.CreateLoadOrderGroup
push eax
mov dword [esp + 0x24], 4
mov dword [esp + 0x1c], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402fd4
mov eax, dword [esp + 4]
cmp eax, 0xffffffff
je 0x402fd4
mov esi, eax
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0xc
ret
Function at 0x402ff0
Capabilities:
Acquire debug privileges
Check os version
Terminate process

Disassembly:
sub esp, 0x140
mov eax, dword [0x40704c]
xor eax, esp
mov dword [esp + 0x13c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x14c]
push esi
push edi
push ebp
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x40313d
call ebx
cmp eax, 5
jne 0x4030e9
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x3c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov esi, 2
cmp dword [esp + 0x48], esi
jne 0x4030e9
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x28
mov dword [esp + 0x20], 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x40309a
call ebx
cmp eax, 0x3f0
jne 0x4030e9
lea edx, [esp + 0x10]
push edx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4030e9
lea eax, [esp + 0x1c]
push eax
push str.SeDebugPrivilege
push 0
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov edi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
push 0x10
lea eax, [esp + 0x24]
push eax
push 0
push ecx
call edi
test eax, eax
jne 0x4030ed
call ebx
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x403161
call ebx
cmp eax, 0x514
jne 0x403105
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x403161
push ebp
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
call ebx
mov edx, dword [esp + 0x10]
push 0
push 0
push 0x10
lea ecx, [esp + 0x34]
push ecx
push 0
push edx
call edi
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
test esi, esi
jne 0x403143
xor eax, eax
jmp 0x403161
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x403159
call ebx
push esi
call edi
xor eax, eax
jmp 0x403161
push esi
call edi
mov eax, 1
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004041ee
add esp, 0x140
ret