joyce8/EMBER2024-capa huggingface dataset:
Function at 0xd25f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xd3a9fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0xd26002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00d29dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xd26002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00d216e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00d2a20b
push 0x10
call fcn.00d2a1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xd25fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00d161c0
jmp 0xd25fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00d25b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xd25ff0
mov ecx, edi
call fcn.00d162c0
push edi
call fcn.00d2a1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xd26021
inc ebx
cmp ebx, 0x20
jb 0xd25f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xd27250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xd3b808
push 0xd2b288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xd27329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xd27329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00d2a1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xd27329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xd27329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xd2732c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00d27351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xd27d20
Capabilities:
Query or enumerate registry value

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

Function at 0xd27d60
Capabilities:
Query or enumerate registry value

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

Function at 0xd27da0
Capabilities:
Query or enumerate registry value

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

Function at 0xd27e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xd27ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xd27eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xd40320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00d29dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xd27eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xd27e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xd28000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xd28131
push esi
call fcn.00d2b145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00d1a080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xd28131
push 0
push ebp
call fcn.00d1a3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00d1a260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xd2808b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00d1a2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xd28121
push 0xd40918
push edi
call fcn.00d293f0
push eax
push ebx
push esi
call fcn.00d27f60
push 0xd408f8
push edi
call fcn.00d293f0
push eax
push ebx
push esi
call fcn.00d27f60
push 0xd408d8
push edi
call fcn.00d293f0
push eax
push ebx
push esi
call fcn.00d27f60
push 0xd408c0
push edi
call fcn.00d293f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00d27f60
push 0xd408a0
push edi
call fcn.00d293f0
push eax
push ebx
push esi
call fcn.00d27f60
push 0xd40888
push edi
call fcn.00d293f0
push eax
push ebx
push esi
call fcn.00d27f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xd291b0
Capabilities:
Acquire debug privileges

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

Function at 0xd29bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xd29c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xd3b87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xd29c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xd29c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x91f058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x91f1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x91f07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x91f06a
add dl, dl
jne 0x91f089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x91f0dc
xor eax, eax
add dl, dl
jne 0x91f096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x91f17d
add dl, dl
jne 0x91f0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x91f0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x91f0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x91f0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x91f0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x91f075
mov eax, 1
add dl, dl
jne 0x91f0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x91f0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x91f0e1
sub eax, ebx
mov ebx, 1
jne 0x91f128
mov ecx, 1
add dl, dl
jne 0x91f10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x91f119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x91f105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x91f075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x91f13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x91f14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x91f136
cmp eax, 0x7d00
jae 0x91f16d
cmp eax, 0x500
jb 0x91f168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x91f075
cmp eax, 0x7f
ja 0x91f170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x91f075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x91f19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x91f075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x100010d8
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x128
push esi
push edi
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_Process32First
jmp 0x10001124
push dword [ebp + 8]
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1000112a
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10001107
jmp 0x1000112e
mov edi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100012bf
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push edi
push 0x103
xor edi, edi
lea eax, [ebp - 0x107]
push edi
push eax
mov byte [ebp - 0x108], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
cmp dword [ebp + 0xc], 0x40
jae 0x100012fa
push edi
push edi
push str.err1
push edi
jmp 0x10001448
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x10001310
push edi
push edi
push str.err2
jmp 0x100012f4
mov eax, dword [ecx + 0x3c]
lea edx, [eax + 0xf8]
cmp dword [ebp + 0xc], edx
jge 0x1000132c
xor eax, eax
push eax
push eax
push str.err3
jmp 0x10001447
lea edi, [eax + ecx]
cmp dword [edi], 0x4550
je 0x10001345
xor eax, eax
push eax
push eax
push str.err4
jmp 0x10001447
movzx eax, word [edi + 0x16]
test eax, 0x2000
jne 0x1000143e
test al, 2
je 0x1000143e
mov eax, 0xe0
cmp word [edi + 0x14], ax
jne 0x1000143e
mov eax, dword [edi + 0x50]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor ecx, ecx
cmp eax, ecx
jne 0x10001386
push ecx
push ecx
push str.err6
push ecx
jmp 0x10001448
push 0x40
push 0x1000
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi], eax
test eax, eax
je 0x10001415
mov ecx, dword [ebp + 0x14]
push dword [ecx]
push 0
push eax
call sub.MSVCR90.dll_memset
push dword [edi + 0x54]
mov edi, dword [sym.imp.MSVCR90.dll_memmove]
push dword [ebp + 8]
push dword [esi]
call edi
mov eax, dword [esi]
mov ecx, dword [eax + 0x3c]
and dword [ebp - 4], 0
add eax, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebx], eax
add eax, 0xf8
mov dword [ecx], eax
mov eax, dword [ebx]
xor ecx, ecx
add esp, 0x18
cmp cx, word [eax + 6]
jae 0x10001410
and dword [ebp + 0xc], ecx
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
add eax, ecx
push dword [eax + 0x10]
mov ecx, dword [eax + 0x14]
add ecx, dword [ebp + 8]
mov eax, dword [eax + 0xc]
add eax, dword [esi]
push ecx
push eax
call edi
mov eax, dword [ebx]
movzx eax, word [eax + 6]
add dword [ebp + 0xc], 0x28
add esp, 0xc
inc dword [ebp - 4]
cmp dword [ebp - 4], eax
jl 0x100013df
xor eax, eax
inc eax
jmp 0x10001450
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x108]
push str.VirtualAlloc_error_errid:_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor eax, eax
push eax
push eax
lea ecx, [ebp - 0x108]
push ecx
jmp 0x10001447
xor eax, eax
push eax
push eax
push str.err5
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
leave
ret
Function at 0x10001453
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 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 0x10001472
leave
ret
push esi
lea eax, [ebp - 0x10]
push eax
push str.SeDebugPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x100014bc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret
xor esi, esi
inc esi
jmp 0x100014ae

Function at 0x100014c1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 8]
push eax
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10001531
cmp dword [ebp + 0x14], 1
jne 0x10001505
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x1c]
push 1
jmp 0x10001513
cmp dword [ebp + 0x14], 4
jne 0x10001528
push 4
lea eax, [ebp + 0x18]
push eax
push 4
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret
Function at 0x100018ba
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
movzx eax, byte [eax + 2]
ret

Function at 0x100018cd
Capabilities:
Query service status

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x94
push esi
xor esi, esi
push 0xf003f
push esi
push esi
mov dword [ebp + 0x70], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp + 0x6c], eax
cmp eax, esi
jne 0x10001920
cmp ebx, esi
je 0x1000191b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x20]
push str.OpenSCManager___Faild_0x_x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.MSVCR90.dll__strdup]
add esp, 0x10
mov dword [ebx], eax
mov dword [ebp + 0x70], esi
jmp 0x1000199a
push edi
push 0xf01ff
push dword [ebp + 0x7c]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
cmp edi, esi
jne 0x10001964
cmp ebx, esi
je 0x1000195f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x20]
push str.OpenService___Faild_0x_x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.MSVCR90.dll__strdup]
add esp, 0x10
mov dword [ebx], eax
mov dword [ebp + 0x70], esi
jmp 0x10001987
lea eax, [ebp + 0x68]
push eax
push 0x24
lea eax, [ebp + 0x44]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x10001987
cmp dword [ebp + 0x48], 4
jne 0x10001987
mov dword [ebp + 0x70], 1
cmp edi, esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x10001994
push edi
call esi
push dword [ebp + 0x6c]
call esi
pop edi
mov eax, dword [ebp + 0x70]
pop esi
add ebp, 0x74
leave
ret
Function at 0x100027b8
Capabilities:
Get disk information
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push edi
push dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x400
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 4], edi
cmp edi, ebx
jne 0x100027e7
xor eax, eax
jmp 0x10002929
push esi
mov esi, 0x105
push esi
lea eax, [ebp - 0x11c]
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x11c]
push eax
push edi
call sub.PSAPI.DLL_GetProcessImageFileNameA
test eax, eax
jne 0x10002813
push edi
jmp 0x10002850
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push ebx
push ebx
call esi
mov edi, eax
cmp edi, ebx
je 0x1000284d
lea ebx, [edi + 1]
push ebx
call sub.MSVCR90.dll_void____cdecl_operator_new___unsigned_int_
push ebx
push 0
push eax
mov dword [ebp - 0xc], eax
call sub.MSVCR90.dll_memset
mov ebx, dword [ebp - 0xc]
add esp, 0x10
push ebx
push edi
call esi
test eax, eax
jne 0x1000285d
push ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x10002928
mov esi, 0x100075c0
lea edi, [ebp - 8]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov edi, 0x104
push edi
call sub.MSVCR90.dll_void____cdecl_operator_new___unsigned_int_
mov esi, dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
pop ecx
mov dword [ebp - 4], eax
mov al, byte [ebx]
push edi
push dword [ebp - 4]
mov byte [ebp - 8], al
lea eax, [ebp - 8]
push eax
call esi
test eax, eax
jne 0x100028bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10002913
push dword [ebp - 4]
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
push 1
call sub.MSVCR90.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
pop ecx
push 1
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
call esi
test eax, eax
je 0x10002913
push dword [ebp - 4]
call sub.MSVCR90.dll_strlen
push eax
push dword [ebp - 4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.MSVCR90.dll__mbsnbicmp]
add esp, 0x10
test eax, eax
je 0x100028ec
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100028df
cmp byte [ebx], al
jne 0x1000287d
jmp 0x10002913
mov eax, dword [ebp - 0x14]
lea eax, [ebp + eax - 0x11c]
push eax
lea eax, [ebp - 8]
push eax
push 0x100075c4
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov dword [ebp - 0x10], 1
push dword [ebp - 0xc]
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
push dword [ebp - 4]
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
pop esi
pop edi
pop ebx
leave
ret
Function at 0x10002e04
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10002e1b
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x10002e50
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x10002e4c
cmp edi, eax
jae 0x10002e50
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x10002e3e
cmp edi, eax
jb 0x10002e54
xor eax, eax
jmp 0x10002e5d
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x10002fab
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
mov eax, dword [ebp + 8]
call fcn.10002eb3
mov esi, dword [ebp - 4]
pop ecx
xor ecx, ecx
test eax, eax
jle 0x10002fdb
mov dl, byte [ecx + esi]
sub dl, 0x24
xor dl, 0x25
mov byte [ecx + esi], dl
inc ecx
cmp ecx, eax
jl 0x10002fca
mov eax, esi
pop esi
leave
ret

Function at 0x10003002
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10005fa8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9a0
push ebx
push esi
and dword [ebp - 0x414], 0
push 0x2c8
push 0
lea eax, [ebp - 0x410]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
and dword [ebp - 0x5e4], 0
mov byte [ebp - 0x584], 0
push 0x103
push 0
lea eax, [ebp - 0x583]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov byte [ebp - 0x10c], 0
push 0xff
push 0
lea eax, [ebp - 0x10b]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0x424], eax
push dword [ebp - 0x424]
lea eax, [ebp - 0x10c]
push eax
call sub.MSVCR90.dll_strcpy
pop ecx
pop ecx
mov dword [ebp - 0x474], 0x44
push 0x40
push 0
lea eax, [ebp - 0x470]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
nop
nop
mov dword [ebp - 0x5d9], eax
mov dword [ebp - 0x5d3], ecx
mov dword [ebp - 0x5cd], edx
push ecx
push eax
push esi
push esp
push ebx
push esi
call fcn.10003188
ret 0x50