joyce8/EMBER2024-capa huggingface dataset:
Function at 0x471ef4
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfe0
mov eax, dword [0x4c4290]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xfa4]
push edi
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Program_FilesInternet_Exploreriexplore.exe
push 0x4aa2d0
call fcn.00479233
pop ecx
lea ecx, [ebp - 0xfa4]
lea eax, [ecx + eax*2]
push eax
call fcn.00479211
lea eax, [ebp - 0xfa4]
push esi
push eax
call fcn.0047ccd0
push 0x3c
xor edi, edi
lea eax, [ebp - 0xfe0]
push edi
push eax
call fcn.00475710
add esp, 0x1c
mov dword [ebp - 0xfdc], 0x200
xor eax, eax
mov dword [ebp - 0xfcc], esi
inc eax
mov ecx, str.open
mov dword [ebp - 0xfd4], ecx
push eax
push edi
push edi
push esi
push ecx
push edi
mov dword [ebp - 0xfc4], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x471fa5
push edi
push edi
lea eax, [ebp - 0xfa4]
push edi
push eax
call fcn.0046f6f2
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042e895
mov esp, ebp
pop ebp
ret 4

Function at 0x47208d
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4c4290]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x418]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x418], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4720d5
xor eax, eax
jmp 0x4721bf
push 0x208
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00475710
add esp, 0xc
mov dword [ebp - 0x41c], 0x104
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x420], 1
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x420]
push eax
push ebx
push 0x4997e4
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4721a1
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00475710
add esp, 0xc
lea eax, [ebp - 0x20c]
push ebx
push 0x26
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
push str.Internet_Exploreriexplore.exe
push eax
call fcn.0047ccd0
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4720ce
lea ecx, [ebp - 0x20c]
push ecx
push esi
call fcn.00479211
pop ecx
pop ecx
jmp 0x4721bc
lea eax, [ebp - 0x414]
push eax
push esi
call fcn.00479211
pop ecx
pop ecx
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e895
mov esp, ebp
pop ebp
ret 4
Function at 0x4721ee
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4c4290]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
xor ebx, ebx
push 0x208
push ebx
push eax
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x21c], ebx
call fcn.00475710
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x218]
add esp, 0xc
push eax
push 0x20019
push ebx
push str.http
push SysReAllocString
call esi
test eax, eax
je 0x472260
xor eax, eax
jmp 0x472309
lea eax, [ebp - 0x210]
push eax
push 0x20019
push ebx
push str.shell
push dword [ebp - 0x218]
call esi
test eax, eax
jne 0x472259
lea eax, [ebp - 0x214]
push eax
push 0x20019
push ebx
push str.opencommand
push dword [ebp - 0x210]
call esi
test eax, eax
jne 0x472259
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x104
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x220], 1
push eax
lea eax, [ebp - 0x220]
push eax
push ebx
push 0x4997e4
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x210]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x214]
call esi
lea eax, [ebp - 0x20c]
push eax
call fcn.00482644
push edi
push eax
call fcn.004769e3
add esp, 0xc
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e895
mov esp, ebp
pop ebp
ret 4
Function at 0x47351f
Capabilities:
Get disk information

Disassembly:
push 0x4e0
mov eax, 0x498962
call fcn.0042e911
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x4e0]
mov ebx, dword [ebp + 0xc]
xor edi, edi
push edi
xor eax, eax
mov dword [ebp - 0x4ec], edi
push 0x4997e4
mov dword [ebp - 0x4cc], 7
mov dword [ebp - 0x4d0], edi
mov word [ebp - 0x4e0], ax
call fcn.0040252a
mov dword [ebp - 4], edi
test ebx, ebx
je 0x473655
lea eax, [ebp - 0x4c8]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x473655
mov dword [ebp - 0x4e4], edi
cmp word [ebp - 0x4c8], di
je 0x473655
and dword [ebp - 0x4e8], 0
lea edi, [ebp - 0x4c8]
push 0x4a9ff0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x473629
push 0x4a9ff8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x473629
mov ax, word [edi]
mov word [ebp - 0x18], ax
mov eax, dword [ebp - 0x4e8]
push 0x64
mov ax, word [ebp + eax - 0x4c6]
mov word [ebp - 0x16], ax
xor eax, eax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4736d3
lea eax, [ebp - 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea eax, [ebp - 0xe0]
push edi
push eax
push ebx
call fcn.00483d2a
add esp, 0xc
test eax, eax
je 0x47367b
mov eax, dword [ebp - 0x4e4]
lea edi, [ebp - 0x4c8]
add eax, 4
mov dword [ebp - 0x4e4], eax
add eax, eax
add edi, eax
mov dword [ebp - 0x4e8], eax
xor eax, eax
cmp word [edi], ax
jne 0x4735ab
xor edi, edi
lea eax, [ebp - 0x4e0]
mov ecx, esi
push eax
call fcn.00424831
push edi
push 1
lea ecx, [ebp - 0x4e0]
call fcn.004023d7
mov eax, esi
call fcn.0042e8bb
ret 8
cmp word [ebp - 0x18], 0
jne 0x473686
xor eax, eax
jmp 0x473690
lea eax, [ebp - 0x18]
push eax
call fcn.00479233
pop ecx
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x4e0]
call fcn.00424573
lea edi, [ebx + edi*2]
xor ebx, ebx
cmp word [edi], bx
jne 0x4736ae
mov eax, ebx
jmp 0x4736b5
push edi
call fcn.00479233
pop ecx
push eax
push edi
lea ecx, [ebp - 0x4e0]
call fcn.00424573
lea eax, [ebp - 0x4e0]
mov ecx, esi
push eax
call fcn.00424831
push ebx
jmp 0x473664
xor ecx, ecx
mov dword [esi + 0x14], 7
xor eax, eax
mov dword [esi + 0x10], ecx
mov word [esi], ax
push ecx
jmp 0x473664
Function at 0x474591
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push esi
xor ecx, ecx
xor edx, edx
xor esi, esi
push edi
cmp dword [ebp + 0xc], ecx
jle 0x474672
mov edi, dword [ebp + 8]
mov al, byte [esi + edi]
cmp al, 0x3d
jne 0x4745b5
inc edx
cmp edx, 2
jg 0x4745f3
cmp al, 0x7f
ja 0x4745f3
movzx eax, al
mov al, byte [eax + 0x4aa3f8]
cmp al, 0x7f
je 0x4745f3
cmp al, 0x40
jae 0x4745ce
test edx, edx
jne 0x4745f3
inc ecx
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x4745a8
test ecx, ecx
je 0x474672
mov edi, dword [ebp + 0x14]
imul eax, ecx, 6
add eax, 7
sar eax, 3
cmp dword [edi], eax
jge 0x4745f8
mov dword [edi], eax
push 0xfffffffffffffff0
jmp 0x4745f5
push 0xffffffffffffffee
pop eax
jmp 0x474674
mov edx, dword [ebp + 0x10]
xor eax, eax
push ebx
xor ebx, ebx
mov dword [ebp + 0xc], eax
test esi, esi
jle 0x47466c
mov eax, dword [ebp + 8]
push 3
pop edi
movzx eax, byte [eax]
mov cl, byte [eax + 0x4aa3f8]
xor eax, eax
cmp cl, 0x40
sete al
shl ebx, 6
sub edi, eax
movzx eax, cl
mov ecx, dword [ebp + 0xc]
and eax, 0x3f
or ebx, eax
inc ecx
mov dword [ebp + 0xc], ecx
cmp ecx, 4
jne 0x47465d
xor eax, eax
mov dword [ebp + 0xc], eax
test edi, edi
jle 0x474648
mov eax, ebx
shr eax, 0x10
mov byte [edx], al
inc edx
cmp edi, 1
jle 0x474655
mov eax, ebx
shr eax, 8
mov byte [edx], al
inc edx
cmp edi, 2
jle 0x47465d
mov byte [edx], bl
inc edx
mov eax, dword [ebp + 8]
dec esi
inc eax
mov dword [ebp + 8], eax
test esi, esi
jg 0x47460d
mov edi, dword [ebp + 0x14]
sub edx, dword [ebp + 0x10]
mov dword [edi], edx
pop ebx
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x474678
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x47468c
xor eax, eax
jmp 0x4747ca
mov eax, ebx
shl eax, 3
push 6
pop ecx
cdq
idiv ecx
mov edx, ebx
imul ecx, eax, 6
shl edx, 3
push 3
sub edx, ecx
dec edx
pop ecx
sub edx, 1
je 0x4746b5
dec edx
sub edx, 1
jne 0x4746b7
add eax, 2
jmp 0x4746b7
add eax, ecx
push esi
mov esi, dword [ebp + 0x14]
inc eax
cmp dword [esi], eax
jge 0x4746ca
push 0xfffffffffffffff0
mov dword [esi], eax
pop eax
jmp 0x4747c9
mov eax, ebx
cdq
idiv ecx
xor ecx, ecx
imul eax, eax, 3
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
jle 0x474760
dec eax
mov ebx, dword [ebp + 8]
xor edx, edx
push 3
pop ecx
div ecx
inc eax
imul ecx, eax, 3
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
movzx ecx, byte [ebx]
movzx edx, byte [ebx + 1]
mov eax, ecx
movzx esi, byte [ebx + 2]
add ebx, 3
shr eax, 2
shl ecx, 4
mov al, byte [eax + 0x4aa3b8]
mov byte [edi], al
mov eax, edx
shr eax, 4
add eax, ecx
and eax, 0x3f
mov al, byte [eax + 0x4aa3b8]
mov byte [edi + 1], al
mov eax, esi
shr eax, 6
and esi, 0x3f
lea eax, [eax + edx*4]
and eax, 0x3f
mov al, byte [eax + 0x4aa3b8]
mov byte [edi + 2], al
mov al, byte [esi + 0x4aa3b8]
mov byte [edi + 3], al
add edi, 4
sub dword [ebp - 4], 1
jne 0x4746f5
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
jmp 0x474763
mov eax, dword [ebp + 8]
cmp ecx, ebx
jge 0x4747bc
movzx edx, byte [eax]
inc ecx
mov dword [ebp + 0xc], ecx
cmp ecx, ebx
jge 0x474778
movzx ecx, byte [eax + 1]
jmp 0x47477a
xor ecx, ecx
mov eax, edx
shl edx, 4
shr eax, 2
mov al, byte [eax + 0x4aa3b8]
mov byte [edi], al
mov eax, ecx
shr eax, 4
add eax, edx
and eax, 0x3f
mov al, byte [eax + 0x4aa3b8]
mov byte [edi + 1], al
cmp dword [ebp + 0xc], ebx
jge 0x4747b1
and ecx, 0xf
mov al, byte [ecx*4 + 0x4aa3b8]
mov byte [edi + 2], al
jmp 0x4747b5
mov byte [edi + 2], 0x3d
mov byte [edi + 3], 0x3d
add edi, 4
mov eax, edi
sub eax, dword [ebp + 0x10]
mov dword [esi], eax
xor eax, eax
mov byte [edi], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x48ae3f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048aaff
Function at 0x10004eb3
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.10004fd4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10004efc
push ebx
call fcn.10014c47
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0
push 0
mov eax, dword [ebp - 4]
test eax, eax
je 0x10004f14
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop
nop
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fmul qword [0x1001a296]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
call fcn.10001173
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x1bc
call fcn.10015dd0
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x10004f6d
push ebx
call fcn.10014c47
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.10005174
mov dword [ebp - 0x10], eax
push dword [ebp - 8]
push dword [ebp - 0x10]
mov eax, dword [ebp - 4]
test eax, eax
je 0x10004f8d
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop
nop
lea eax, [ebp - 0xc]
push eax
call fcn.10003a99
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
jmp 0x10004fac
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10004fbd
push ebx
call fcn.10014c47
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x10004fcd
push ebx
call fcn.10014c47
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x10005531
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ebx, dword [ebp + 0x10]
push dword [ebx]
push 0x1001a29e
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ecx, 3
call fcn.1000106b
add esp, 0xc
mov dword [ebp - 4], eax
push dword [ebp + 0x14]
push dword [ebp - 4]
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
nop
nop
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10005581
push ebx
call fcn.10014c47
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x10005589
mov esp, ebp
pop ebp
ret 0x14
Function at 0x10005fa6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
nop
nop
mov dword [ebp - 4], eax
push 0x80000005
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x10005ff9
mov eax, 0x1001a201
push eax
push 1
mov ebx, 0x168
call fcn.10015500
add esp, 0x10
mov dword [ebp - 0x18], eax
push 0x80000005
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x10006024
mov eax, 0x1001a201
push eax
push 1
mov ebx, 0x168
call fcn.10015500
add esp, 0x10
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
nop
nop
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x10006060
push ebx
call fcn.10014c47
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x10006070
push ebx
call fcn.10014c47
add esp, 4
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
push dword [ebp - 8]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
nop
nop
mov dword [ebp - 0xc], eax
push dword [ebp - 8]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
nop
nop
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
nop
nop
mov dword [ebp - 0x14], eax
push 0x80000301
push 0
push dword [ebp - 0xc]
push 0x80000301
push 0
push dword [ebp - 0x14]
push 2
mov ebx, 0x910
call fcn.10015d80
add esp, 0x1c
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
jmp 0x100060dd
mov esp, ebp
pop ebp
ret 4
Function at 0x10006e36
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x18], 1
jne 0x10006e55
mov dword [ebp + 0x18], 0
jmp 0x10006e72
cmp dword [ebp + 0x18], 2
jne 0x10006e6b
mov dword [ebp + 0x18], 7
jmp 0x10006e72
mov dword [ebp + 0x18], 1
push 0x80000004
push 0
push str.Open
push 1
mov ebx, 0x168
call fcn.10015500
add esp, 0x10
mov dword [ebp - 4], eax
push 0xa0000301
push 0
push 0x1001a201
push 1
mov ebx, 0x168
call fcn.10015500
add esp, 0x10
mov dword [ebp - 8], eax
push dword [ebp + 0x18]
push dword [ebp - 8]
mov ebx, dword [ebp + 0x10]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 4]
push 0
xor eax, eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10006ee9
push ebx
call fcn.10014c47
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10006ef9
push ebx
call fcn.10014c47
add esp, 4
cmp dword [ebp - 0xc], 2
jne 0x10006f12
mov eax, 0
jmp 0x10006f1c
mov eax, 1
jmp 0x10006f1c
mov esp, ebp
pop ebp
ret 0x18
Function at 0x100078bd
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 0xf003f
push 0
push 0
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
nop
nop
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10007912
mov eax, 0
jmp 0x100079bf
push dword [ebp + 8]
call fcn.10003ea5
mov dword [ebp - 0x14], eax
push 2
push dword [ebp - 0x14]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
nop
nop
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10007956
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
mov eax, 0
jmp 0x100079bf
push dword [ebp + 0xc]
call fcn.10003ea5
mov dword [ebp - 0x14], eax
push dword [ebp + 0xc]
call fcn.10003ea5
mov dword [ebp - 0x18], eax
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x14]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
nop
nop
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 1
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
nop
nop
mov dword [ebp - 0x10], eax
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
mov eax, dword [ebp - 0x10]
jmp 0x100079bf
mov esp, ebp
pop ebp
ret 8
Function at 0x1000a51f
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0
push 0x1001a200
push 0x1001a8a4
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
nop
nop
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor ecx, ecx
inc ecx
push ecx
push eax
cmp ecx, eax
jg 0x1000a596
push 0x1001a8ac
push dword [ebp - 8]
mov ecx, 2
call fcn.1000106b
add esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1000a58e
push ebx
call fcn.10014c47
add esp, 4
pop eax
mov dword [ebp - 8], eax
pop eax
pop ecx
jmp 0x1000a557
add esp, 8
push dword [ebp - 4]
push dword [ebp - 8]
push 0x1001a8a4
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
nop
nop
mov eax, dword [ebp - 8]
test eax, eax
je 0x1000a5ca
push eax
mov ebx, eax
call fcn.10001000
inc eax
push eax
call fcn.10014c4d
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x1000a5cf
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1000a5e0
push ebx
call fcn.10014c47
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x1000dbf6
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0x1000dc3d
cmp ebx, 0x20
je 0x1000dc3d
cmp ebx, 0xffffffe0
je 0x1000dc3d
jne 0x1000dc46
add eax, 1
cmp esi, eax
je 0x1000dc53
jne 0x1000dc22
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0x1000dc57
jne 0x1000dc1e
pop edx
mov eax, dword [edx + 0x18]
leave
ret 4

Function at 0x1000dc6b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx]
test eax, eax
je 0x1000dd2c
test ecx, ecx
je 0x1000dd2c
mov ebx, dword [eax + 0x3c]
mov edx, dword [ebx + eax + 0x78]
mov ebx, dword [ebx + eax + 0x7c]
test edx, edx
je 0x1000dd2c
test ebx, ebx
je 0x1000dd2c
mov ebx, eax
add ebx, edx
je 0x1000dd2c
mov esi, dword [edx + eax + 0x18]
test esi, esi
je 0x1000dd2c
cmp dword [edx + eax + 0x14], 0
je 0x1000dd2c
mov edi, dword [edx + eax + 0x20]
mov ebx, dword [edx + eax + 0x24]
add edi, eax
mov edx, dword [edx + eax + 0x1c]
add ebx, eax
add edx, eax
test esi, esi
jbe 0x1000dd2c
mov dword [esp], edx
xor ebp, ebp
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 8]
movzx ecx, word [ebx + ebp*2]
mov esi, dword [eax + ebp*4]
add esi, dword [esp + 0x24]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x1000dd1c
test dl, dl
je 0x1000dd18
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x1000dd1c
add edi, 2
add esi, 2
test dl, dl
jne 0x1000dcfc
xor eax, eax
jmp 0x1000dd21
sbb eax, eax
or eax, 1
test eax, eax
je 0x1000dd38
inc ebp
cmp ebp, dword [esp + 4]
jb 0x1000dce9
xor eax, eax
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [esp]
mov edx, dword [edx + ecx*4]
mov eax, dword [esp + 0x24]
add eax, edx
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x1001070a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 8]
push eax
mov ebx, dword [ebp + 0xc]
push dword [ebx]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
nop
nop
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x10010756
add eax, 8
push eax
mov eax, 7
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
mov ebx, dword [ebp + 0x10]
push dword [ebx]
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop
nop
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 0x10]
push 1
mov ebx, 0x1bc
call fcn.10015dd0
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x100107b0
push ebx
call fcn.10014c47
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x100107c2
add eax, 8
push eax
mov eax, 7
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
mov ebx, dword [ebp + 0x10]
push dword [ebx]
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop
nop
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100107fd
mov eax, 0x1001a201
jmp 0x1001081c
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x10010817
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.10014c4d
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x1001081c
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x1001082d
push ebx
call fcn.10014c47
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10