joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4070a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [esi + 0x60]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea eax, [ebp - 8]
push eax
push ecx
mov dword [ebp - 0xc], 0x12bb003
call edi
test eax, eax
je 0x4071db
push ebx
mov ebx, 0x103
cmp dword [ebp - 8], ebx
jne 0x4071da
mov eax, dword [esi + 0x90]
test eax, eax
je 0x4070f5
cmp eax, 0xffffffff
je 0x4070f5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x90], 0
mov edx, dword [esi + 0x60]
push 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4071da
mov ecx, dword [esi + 0x60]
lea eax, [ebp - 8]
push eax
push ecx
call edi
test eax, eax
je 0x4071da
cmp dword [ebp - 8], ebx
jne 0x4071da
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.CreateRemoteThread
push str.KERNEL32
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov ecx, dword [esi + 0x60]
push 0
push 0
push 0x1f0fff
lea edx, [ebp - 4]
push edx
mov dword [ebp - 8], eax
mov eax, dword [esi + 0xb8]
push eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x4071cb
push 0x40df2c
push str.KERNEL32
call edi
push eax
call ebx
push 0
push 0
lea edx, [ebp - 0xc]
push edx
push eax
mov eax, dword [ebp - 4]
push 0
push 0
push eax
call dword [ebp - 8]
mov edi, eax
test edi, edi
je 0x4071bf
cmp edi, 0xffffffff
je 0x4071bf
mov ecx, dword [esi + 0x60]
push 0x7d0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4071b8
mov edx, dword [esi + 0x60]
push 0x12bb003
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4071da
mov ecx, dword [esi + 0x60]
push 0x12bb003
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop ebx
mov eax, dword [esi + 0x60]
pop edi
test eax, eax
je 0x4071f6
cmp eax, 0xffffffff
je 0x4071f6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x60], 0
and dword [esi + 0x58], 0xfffffffe
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4074f0
Capabilities:
Impersonate user

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 4], 0
test esi, esi
je 0x4075c2
mov eax, dword [0x415b94]
test eax, eax
jne 0x407515
call fcn.00408670
cmp eax, 0x28
jl 0x4075c2
mov edx, dword [ebp + 0x18]
xor ecx, ecx
cmp dword [ebp + 0x1c], ecx
lea eax, [ebp + 0x14]
setne cl
push eax
push 0
lea ecx, [ecx + ecx + 3]
push ecx
push edx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
test eax, eax
jne 0x407562
push eax
push 0x1f1
push str......_src_rprocess.c
push 1
push 3
push 0
call fcn.00404a50
add esp, 0x18
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
push 1
push 2
push 0
push 0xb
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x40758f
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x1fc
jmp 0x407548
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x4075b8
mov ecx, dword [ebp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 4]
push edx
call esi
push 0
push 0x203
jmp 0x407548
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
push fcn.00407210
push 0x94
push 0
push 0x10
push ecx
call fcn.00401c50
mov esi, eax
add esp, 0x14
test esi, esi
je 0x40755b
cmp esi, 0xffffffff
je 0x40755b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [esi], 0x6000000
mov dword [esi + 0x5c], eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and eax, 0x400
neg eax
push 0
sbb eax, eax
push 0
mov dword [esi + 0xc0], edx
mov ecx, dword [ebp - 4]
neg eax
push 0x1f0fff
lea edx, [esi + 0xb8]
inc eax
push edx
mov dword [esi + 0xb4], ecx
mov dword [esi + 0x70], eax
call edi
push eax
call edi
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
lea eax, [esi + 0xcc]
push 1
push eax
mov dword [esi + 0xc8], eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
mov eax, dword [esi + 0xc8]
push 0
push 0
push 0xffffffffffffffff
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [esi + 0xe0]
mov dword [esi + 0xc4], eax
mov dword [eax], 0xc
mov ecx, dword [esi + 0xc4]
mov edx, dword [esi + 0xc8]
mov dword [ecx + 4], edx
mov eax, dword [esi + 0xc4]
mov dword [eax + 8], 1
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4078f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 0x6000000
je 0x407904
xor eax, eax
pop esi
pop ebp
ret
mov eax, dword [esi + 0x78]
push eax
call fcn.00401be0
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi + 0x24]
push ecx
push edx
call fcn.00401c10
add esp, 0xc
push eax
mov dword [esi + 0x78], eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
cmp dword [esi + 0x78], eax
pop esi
setne al
pop ebp
ret

Function at 0x407aa0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax], 0x6000000
je 0x407ab2
xor eax, eax
pop ebp
ret
mov eax, dword [eax + 0x7c]
push ebx
push esi
push edi
push eax
call fcn.00401be0
mov ecx, dword [ebp + 0xc]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, dword [ebp + 0x10]
mov esi, eax
add esi, 3
xor edi, edi
test ebx, ebx
jbe 0x407af6
lea esp, [esp]
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + edi*4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc edi
lea esi, [esi + eax + 3]
cmp edi, ebx
jb 0x407ae0
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0x24]
lea ecx, [esi + esi]
push ecx
push edx
call fcn.00401ac0
mov edx, dword [ebp + 0xc]
add esp, 8
mov dword [edi + 0x7c], eax
call fcn.00407a10
xor esi, esi
test ebx, ebx
jbe 0x407b3b
lea ebx, [ebx]
mov edx, dword [ebp + 0x14]
mov ecx, 0x20
mov word [eax], cx
mov edx, dword [edx + esi*4]
add eax, 2
call fcn.00407a10
inc esi
cmp esi, ebx
jb 0x407b20
xor ecx, ecx
mov word [eax], cx
mov edx, dword [edi + 0x7c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
cmp dword [edi + 0x7c], eax
pop edi
pop esi
setne al
pop ebx
pop ebp
ret

Function at 0x407e70
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
or esi, 0xffffffff
cmp dword [edi], 0x3000000
jne 0x407ee2
cmp dword [edi + 0x58], 0
jne 0x407ee2
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x407ee2
cmp eax, 0xffffffff
je 0x407ee2
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x1c]
test ecx, ecx
jne 0x407ea3
test edx, edx
je 0x407ea8
mov esi, 0x10
push ebx
mov ebx, dword [ebp + 0x10]
push ebx
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push 0
push 0
push 0
push ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
pop ebx
test eax, eax
jne 0x407ee8
push eax
push 0xdc
push str......_src_service.c
push 1
push 3
push eax
call fcn.00404a50
add esp, 0x18
pop edi
xor eax, eax
pop esi
pop ebp
ret
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x407f06
lea edx, [ebp + 8]
push edx
mov dword [ebp + 8], eax
mov eax, dword [edi + 0x5c]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
pop edi
pop esi
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
ret
Function at 0x4084a0
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi], 0x3000000
je 0x4084b4
xor eax, eax
pop edi
pop ebp
ret
push ebx
xor ebx, ebx
cmp dword [edi + 0x58], ebx
jne 0x4085bb
mov eax, dword [edi + 0x60]
cmp eax, ebx
je 0x4085bb
cmp eax, 0xffffffff
je 0x4085bb
push esi
mov esi, dword [ebp + 0xc]
call fcn.00407b60
test eax, eax
je 0x4085b4
mov eax, dword [edi + 0x5c]
cmp eax, ebx
je 0x4084fb
cmp eax, 0xffffffff
je 0x4084fb
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [edi + 0x5c], ebx
mov eax, dword [edi + 0xc68]
push eax
call fcn.00401be0
mov dword [edi + 0xc68], ebx
lea ebx, [edi + 0x64]
push 0xc48
push ebx
call fcn.004053d0
mov eax, dword [ebp + 0x18]
add esp, 0xc
test eax, eax
je 0x408539
push 0
push str.Tcpip
push eax
push 0
call fcn.00408a20
add esp, 0x10
jmp 0x40853e
mov eax, str.Tcpip
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
push 0
push 0
push eax
mov eax, dword [ebp + 0x10]
push 0
push 0
push ecx
mov ecx, dword [ebp + 0xc]
push 1
push esi
push edx
mov edx, dword [edi + 0x60]
push 0xf01ff
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [edi + 0x5c], eax
test eax, eax
je 0x40859a
cmp eax, 0xffffffff
je 0x40859a
mov eax, dword [ebp + 0xc]
push eax
push 0x100
push ebx
call fcn.00405640
add esp, 0xc
mov dword [edi + 0xc64], esi
pop esi
pop ebx
mov eax, 1
pop edi
pop ebp
ret
push 0
push 0x228
push str......_src_service.c
push 1
push 3
push 0
call fcn.00404a50
add esp, 0x18
pop esi
pop ebx
xor eax, eax
pop edi
pop ebp
ret
pop ebx
xor eax, eax
pop edi
pop ebp
ret

Function at 0x4085d0
Capabilities:
Delete service
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 0x3000000
jne 0x408667
cmp dword [esi + 0x58], 0
jne 0x408667
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x408667
cmp eax, 0xffffffff
je 0x408667
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x408667
cmp dword [ebp - 0x18], 1
je 0x40861e
push 0
push 0
push 0
push 1
push esi
call fcn.004081c0
add esp, 0x14
mov edx, dword [esi + 0x5c]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x408648
cmp eax, 0xffffffff
je 0x408648
push eax
call edi
mov dword [esi + 0x5c], 0
mov eax, dword [esi + 0x60]
test eax, eax
je 0x40865e
cmp eax, 0xffffffff
je 0x40865e
push eax
call edi
mov dword [esi + 0x60], 0
mov eax, dword [ebp + 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408670
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x415b94]
test eax, eax
jne 0x40870e
push 0x415a80
mov dword [0x415a80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [0x415a90]
cmp eax, 2
jne 0x4086e3
mov eax, dword [0x415a84]
cmp eax, 4
jae 0x4086b1
mov eax, 1
mov dword [0x415b94], eax
ret
jne 0x4086be
mov eax, 0x28
mov dword [0x415b94], eax
ret
cmp eax, 5
jne 0x4086d8
mov eax, dword [0x415a88]
neg eax
sbb eax, eax
and eax, 0xa
add eax, 0x32
mov dword [0x415b94], eax
ret
mov eax, 0x3c
mov dword [0x415b94], eax
ret
cmp eax, 1
jne 0x4086a6
mov eax, dword [0x415a88]
cmp eax, 0xa
jae 0x4086fd
mov eax, 0xa
mov dword [0x415b94], eax
ret
cmp eax, 0x5a
sbb eax, eax
and eax, 0xfffffffc
add eax, 0x12
mov dword [0x415b94], eax
ret
cmp eax, 1
jge 0x408715
xor eax, eax
ret

Function at 0x408720
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
jne 0x40874c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x40874c
pop esi
xor eax, eax
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 8]
push edi
lea eax, [esi + esi + 2]
push eax
push ecx
call fcn.00401ac0
mov edi, eax
add esp, 8
test edi, edi
je 0x40878c
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x408793
push eax
push 0x54
push str......_srcutils.c
push 1
push 3
push eax
call fcn.00404a50
push edi
call fcn.00401be0
add esp, 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4087a0
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push 0
push 0
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test ebx, ebx
jne 0x4087cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x4087cb
xor eax, eax
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0xc]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
mov eax, dword [ebp + 8]
add edi, 6
lea ecx, [edi + ebx]
lea edx, [ecx + ecx + 2]
push edx
push eax
call fcn.00401ac0
mov esi, eax
add esp, 8
test esi, esi
je 0x40884a
push 0x40e08c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp + 0xc]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x40e088
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
sub ebx, edi
push ebx
lea edx, [esi + edi*2]
push edx
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x408851
push eax
push 0x7e
push str......_srcutils.c
push 1
push 3
push eax
call fcn.00404a50
push esi
call fcn.00401be0
add esp, 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
lea eax, [esi + 0xa]
push eax
push str.PATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call dword [sym.imp.msvcrt.dll__wputenv]
push esi
call fcn.00401be0
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
Function at 0x408dd0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
movzx eax, word [edi]
mov ecx, edi
test ax, ax
je 0x408e0a
movzx eax, ax
cmp ax, 0x25
je 0x408e0a
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x408de4
cmp ecx, edi
je 0x408e0a
mov eax, dword [ebp + 8]
push edi
push eax
call fcn.00401c10
add esp, 8
pop edi
pop ebp
ret
push esi
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x408e53
mov edx, dword [ebp + 8]
push ebx
lea ecx, [esi + esi]
push ecx
push edx
call fcn.00401ac0
add esp, 8
push esi
mov ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x408e43
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
push ebx
call fcn.00401be0
add esp, 4
pop ebx
pop esi
xor eax, eax
pop edi
pop ebp
ret
pop esi
xor eax, eax
pop edi
pop ebp
ret
Function at 0x4093c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, eax
cmp dword [esi + 0x10], 0
mov dword [ebp - 8], 0
jne 0x4093fa
push str.No_service_name_provided
push 0x1b2
push str......_appsprunsrvprunsrv.c
push 1
push 2
push 0
call fcn.00404a50
add esp, 0x18
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 0x10]
mov ecx, dword [0x415c40]
push 3
push eax
push str.Apache_Software_FoundationProcrun_2.0
push 0x20019
push ecx
call fcn.00405880
mov edi, eax
add esp, 0x14
mov dword [ebp - 4], edi
test edi, edi
je 0x4095c8
cmp edi, 0xffffffff
je 0x4095c8
cmp dword [str.Description], 0
je 0x4095b4
xor esi, esi
push ebx
jmp 0x409450
mov ecx, dword [esi + 0x41358c]
mov eax, ecx
and eax, 0x100
neg eax
sbb eax, eax
and eax, 0xe
add eax, 2
test ecx, 0x1000
jne 0x409535
test cl, 2
je 0x4094db
mov edx, dword [esi + 0x413584]
mov ecx, dword [esi + 0x413588]
push edx
push ecx
push eax
push edi
call fcn.00405cb0
add esp, 0x10
mov dword [esi + 0x413590], eax
test eax, eax
je 0x409596
test byte [esi + 0x41358c], 6
je 0x409596
mov edx, dword [0x415c40]
push eax
push edx
call fcn.00408dd0
mov ebx, eax
mov eax, dword [esi + 0x413590]
add esp, 8
cmp ebx, eax
je 0x4094d0
push eax
call fcn.00401be0
add esp, 4
mov dword [esi + 0x413590], ebx
jmp 0x409596
test cl, 1
je 0x409503
mov ecx, dword [esi + 0x413584]
mov edx, dword [esi + 0x413588]
push ecx
push edx
push eax
push edi
call fcn.00405df0
add esp, 0x10
mov dword [esi + 0x413594], eax
jmp 0x409596
test cl, 0x10
je 0x409596
mov edx, dword [esi + 0x413584]
lea ecx, [esi + 0x413594]
push ecx
mov ecx, dword [esi + 0x413588]
push 0
push edx
push ecx
push eax
push edi
call fcn.00405f50
add esp, 0x18
mov dword [esi + 0x413590], eax
jmp 0x409596
test ecx, 0x2000
je 0x409596
mov edx, dword [esi + 0x413590]
mov dword [ebp - 0xc], edx
test cl, 0x10
je 0x409596
mov ecx, dword [esi + 0x413584]
mov edx, dword [esi + 0x413588]
lea ebx, [esi + 0x413594]
push ebx
push 0
push ecx
push edx
push eax
push edi
call fcn.00405f50
mov ecx, dword [0x415c40]
mov edi, eax
mov eax, dword [ebp - 0xc]
push ebx
push eax
push edi
push ecx
call fcn.00408a20
add esp, 0x28
mov dword [esi + 0x413590], eax
test edi, edi
je 0x409593
push edi
call fcn.00401be0
add esp, 4
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 8]
inc esi
mov dword [ebp - 8], esi
lea esi, [esi + esi*2]
add esi, esi
add esi, esi
add esi, esi
cmp dword [esi + 0x413580], 0
jne 0x409450
pop ebx
push edi
call fcn.00401df0
add esp, 4
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4095fb
mov edx, dword [esi + 0x10]
push edx
push str.The_system_cannot_find_the_Registry_key_for_service__S
push 0x1bc
push str......_appsprunsrvprunsrv.c
push 1
push eax
push 0
call fcn.00404a50
add esp, 0x1c
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0x1bf
push str......_appsprunsrvprunsrv.c
push 1
push 3
push 0
call fcn.00404a50
add esp, 0x18
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405e44
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405eaa
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004042a8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402cd8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405e94
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405eb1
lea eax, [ebp - 0x10]
call fcn.00404038
ret

Function at 0x40baa8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40bae1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404128
jmp 0x40baea
mov eax, ebx
mov edx, esi
call fcn.0040408c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40baf4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40bb15
mov al, byte [esp]
jmp 0x40bb17
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c19c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c014
mov eax, dword [0x4a09e8]
cmp byte [eax], 0
je 0x40c218
mov eax, dword [0x4a07d0]
call fcn.00402b44
call fcn.00402854
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408a78
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40c260
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c24e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4a0778]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4a1668]
call fcn.00405358
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40cafc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40cbd2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004040d0
lea eax, [ebp - 8]
call fcn.00404548
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004044f8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cbbc
mov eax, ebx
call fcn.004026ec
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cbb5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004044f8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cb9f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cbe4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cb9f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cbbc
mov eax, dword [ebp - 0x10]
call fcn.0040270c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cbd9
lea eax, [ebp - 8]
call fcn.00404038
ret

Function at 0x40d0dc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40d140
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004042a8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004084f4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d147
lea eax, [ebp - 0xc]
call fcn.00404038
ret

Function at 0x41f200
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4a1888
cmp dword [edi], 0
jne 0x41f27c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4a1884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x49e47c
mov ecx, 2
call fcn.004028e8
mov edx, 0x41f1d8
lea eax, [esi + 5]
call fcn.0041f1f8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041f1f8
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41f251
mov dword [0x4a1884], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x420800
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x420806
ret
Function at 0x422cd4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x422d25
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x422d0c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x422cfc
jmp 0x422d25
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x422d0d
pop ebx
mov esp, ebp
pop ebp
ret