joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10012810
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x100b2370]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x418], 0
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.1004f5f0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 0x100a5628
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0x208
push 0
lea edx, [ebp - 0x414]
push edx
call fcn.1004f5f0
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push 0
push str.acp
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea edx, [ebp - 0x414]
push edx
mov ecx, dword [ebp + 8]
call fcn.1000dfe0
mov eax, dword [ebp - 0x418]
or eax, 1
mov dword [ebp - 0x418], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10048fad
mov esp, ebp
pop ebp
ret

Function at 0x100128c0
Capabilities:
Create directory
Delete file
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100919db
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x100b2370]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x424], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov word [ebp - 0x420], ax
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call fcn.1004f5f0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x420]
push edx
push 0x100a5640
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.1004f5f0
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
push 0
push 0x100a564c
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x444]
call fcn.1000dfe0
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x428], eax
mov dword [ebp - 4], 0
push 0x100a5654
mov ecx, dword [ebp - 0x428]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100145d0
add esp, 0xc
mov eax, dword [ebp - 0x424]
or eax, 1
mov dword [ebp - 0x424], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x444]
call fcn.1000e020
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10048fad
mov esp, ebp
pop ebp
ret
Function at 0x10012b70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10091a26
mov eax, dword fs:[0]
push eax
sub esp, 0x4b4
mov eax, dword [0x100b2370]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x100a5658
mov ecx, dword [ebp + 8]
call fcn.1000e0f0
push eax
call fcn.100497dc
add esp, 8
mov dword [ebp - 0x4a0], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x4a0], 0
jne 0x10012bcd
xor al, al
jmp 0x10012cf1
mov dword [ebp - 0x49c], 1
mov byte [ebp - 0x410], 0
push 0x3ff
push 0
lea eax, [ebp - 0x40f]
push eax
call fcn.1004f5f0
add esp, 0xc
lea ecx, [ebp - 0x494]
call fcn.1003d520
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x49c], 0
je 0x10012c55
mov ecx, dword [ebp - 0x4a0]
push ecx
push 0x400
push 1
lea edx, [ebp - 0x410]
push edx
call fcn.1004a07d
add esp, 0x10
mov dword [ebp - 0x49c], eax
cmp dword [ebp - 0x49c], 0
jle 0x10012c53
mov eax, dword [ebp - 0x49c]
push eax
lea ecx, [ebp - 0x410]
push ecx
lea ecx, [ebp - 0x494]
call fcn.1003d680
jmp 0x10012c05
mov edx, dword [ebp - 0x4a0]
push edx
call fcn.1004a9c7
add esp, 4
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x494]
call fcn.1003ed00
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
lea ecx, [ebp - 0x428]
push ecx
lea edx, [ebp - 0x4c0]
push edx
call fcn.10011950
add esp, 0xc
mov dword [ebp - 0x4a8], eax
mov eax, dword [ebp - 0x4a8]
mov dword [ebp - 0x4a4], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x4a4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.10012a00
add esp, 8
mov byte [ebp - 0x495], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c0]
call fcn.1000e020
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x428]
call fcn.1000df90
mov al, byte [ebp - 0x495]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10048fad
mov esp, ebp
pop ebp
ret
Function at 0x10012e10
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.10051500
mov eax, dword [0x100b2370]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1010], 0
mov dword [ebp - 0x1014], 0
push 0x100a5664
mov ecx, dword [ebp + 8]
call fcn.1000e0f0
push eax
call fcn.100497dc
add esp, 8
mov dword [ebp - 0x1010], eax
cmp dword [ebp - 0x1010], 0
jne 0x10012e67
xor eax, eax
jmp 0x10012fbc
push 0x100a566c
mov ecx, dword [ebp + 0xc]
call fcn.1000e0f0
push eax
call fcn.100497dc
add esp, 8
mov dword [ebp - 0x1014], eax
cmp dword [ebp - 0x1014], 0
jne 0x10012e93
xor eax, eax
jmp 0x10012fbc
mov byte [ebp - 0x1004], 0
push 0xfff
push 0
lea eax, [ebp - 0x1003]
push eax
call fcn.1004f5f0
add esp, 0xc
mov dword [ebp - 0x1018], 0
mov byte [ebp - 0x1005], 0x5a
mov ecx, dword [ebp - 0x1010]
push ecx
call fcn.1004ab7e
add esp, 4
test eax, eax
jne 0x10012f99
mov edx, dword [ebp - 0x1010]
push edx
push 0x1000
push 1
lea eax, [ebp - 0x1004]
push eax
call fcn.1004a07d
add esp, 0x10
mov dword [ebp - 0x1018], eax
mov dword [ebp - 0x100c], 0
jmp 0x10012f16
mov ecx, dword [ebp - 0x100c]
add ecx, 1
mov dword [ebp - 0x100c], ecx
mov edx, dword [ebp - 0x100c]
cmp edx, dword [ebp - 0x1018]
jge 0x10012f75
mov eax, dword [ebp - 0x100c]
movsx ecx, byte [ebp + eax - 0x1004]
test ecx, ecx
je 0x10012f73
mov edx, dword [ebp - 0x100c]
movsx eax, byte [ebp + edx - 0x1004]
movsx ecx, byte [ebp - 0x1005]
cmp eax, ecx
je 0x10012f73
movsx edx, byte [ebp - 0x1005]
mov eax, dword [ebp - 0x100c]
movsx ecx, byte [ebp + eax - 0x1004]
xor ecx, edx
mov edx, dword [ebp - 0x100c]
mov byte [ebp + edx - 0x1004], cl
jmp 0x10012f07
mov eax, dword [ebp - 0x1014]
push eax
mov ecx, dword [ebp - 0x1018]
push ecx
push 1
lea edx, [ebp - 0x1004]
push edx
call fcn.1004a2e1
add esp, 0x10
jmp 0x10012ec1
mov eax, dword [ebp - 0x1010]
push eax
call fcn.1004a9c7
add esp, 4
mov ecx, dword [ebp - 0x1014]
push ecx
call fcn.1004a9c7
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10048fad
mov esp, ebp
pop ebp
ret
Function at 0x10013130
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x100b2370]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x108], 0
push 0x103
push 0
lea eax, [ebp - 0x107]
push eax
call fcn.1004f5f0
add esp, 0xc
mov dword [ebp - 0x118], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x114], ecx
mov edx, dword [ebp - 0x114]
add edx, 1
mov dword [ebp - 0x11c], edx
mov eax, dword [ebp - 0x114]
mov cl, byte [eax]
mov byte [ebp - 0x109], cl
add dword [ebp - 0x114], 1
cmp byte [ebp - 0x109], 0
jne 0x10013182
mov edx, dword [ebp - 0x114]
sub edx, dword [ebp - 0x11c]
mov dword [ebp - 0x128], edx
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x110], 0
jmp 0x100131d9
mov ecx, dword [ebp - 0x110]
add ecx, 1
mov dword [ebp - 0x110], ecx
mov edx, dword [ebp - 0x110]
cmp edx, dword [ebp - 0x124]
jge 0x10013223
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x110]
movsx ecx, byte [eax]
cmp ecx, 0x22
jne 0x100131fa
jmp 0x100131ca
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x110]
mov eax, dword [ebp - 0x118]
mov cl, byte [edx]
mov byte [ebp + eax - 0x108], cl
mov edx, dword [ebp - 0x118]
add edx, 1
mov dword [ebp - 0x118], edx
jmp 0x100131ca
lea eax, [ebp - 0x108]
test eax, eax
je 0x10013241
mov ecx, 1
imul ecx, ecx, 0
movsx edx, byte [ebp + ecx - 0x108]
test edx, edx
jne 0x10013245
xor al, al
jmp 0x10013267
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0xffffffff
jne 0x10013265
xor al, al
jmp 0x10013267
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10048fad
mov esp, ebp
pop ebp
ret

Function at 0x10013380
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x100b2370]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x48], 0x44
push 0x40
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.1004f5f0
add esp, 0xc
mov dword [ebp - 0x1c], 1
mov ecx, dword [ebp + 0x10]
movzx edx, byte [ecx]
test edx, edx
je 0x100133c3
mov eax, 5
mov word [ebp - 0x18], ax
jmp 0x100133c9
xor ecx, ecx
mov word [ebp - 0x18], cx
mov byte [ebp - 0x59], 0
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.1000e0f0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x100133fc
mov byte [ebp - 0x5a], 1
jmp 0x10013400
mov byte [ebp - 0x5a], 0
mov cl, byte [ebp - 0x5a]
mov byte [ebp - 0x59], cl
movzx edx, byte [ebp - 0x59]
test edx, edx
je 0x10013420
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x58]
mov dword [eax], ecx
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [ebp - 0x59]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10048fad
mov esp, ebp
pop ebp
ret
Function at 0x10013a90
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x100b2370]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x3c], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x10013ac6
xor eax, eax
jmp 0x10013b5e
mov dword [ebp - 0x30], 0
push 0xf01ff
mov ecx, dword [ebp + 8]
call fcn.1000e0f0
push eax
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x10013af2
xor eax, eax
jmp 0x10013b5e
mov dword [ebp - 0x28], 0
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
lea edx, [ebp - 0x2c]
push edx
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x10013b31
xor eax, eax
jmp 0x10013b5e
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x24], 4
jne 0x10013b54
mov dword [ebp - 0x38], 1
jmp 0x10013b5b
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10048fad
mov esp, ebp
pop ebp
ret

Function at 0x1003d600
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov byte [eax + 0x68], 0
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx + 0x10], 0
mov eax, 4
imul eax, eax, 0
mov ecx, dword [ebp - 4]
mov dword [ecx + eax + 0x10], 0
mov edx, 4
imul edx, edx, 0
mov eax, dword [ebp - 4]
mov dword [eax + edx], 0x67452301
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx], 0xefcdab89
mov eax, 4
shl eax, 1
mov ecx, dword [ebp - 4]
mov dword [ecx + eax], 0x98badcfe
mov edx, 4
imul edx, edx, 3
mov eax, dword [ebp - 4]
mov dword [eax + edx], 0x10325476
mov esp, ebp
pop ebp
ret
Function at 0x1003f0d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10094608
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x100b2370]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x40], 0
je 0x1003f110
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x45]
test edx, edx
jne 0x1003f11c
mov al, 1
jmp 0x1003f2bf
mov dword [ebp - 0x54], 8
call fcn.10015630
push eax
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x30]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x40], eax
call fcn.10015630
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x44]
push edx
call fcn.100155b0
add esp, 8
movzx eax, al
test eax, eax
je 0x1003f15f
xor al, al
jmp 0x1003f2bf
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.10029ce0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x28]
call fcn.10013f40
mov ecx, eax
call fcn.10010cf0
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.1000e170
add esi, eax
push esi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x28]
call fcn.10013f40
mov ecx, eax
call fcn.10010cf0
push eax
mov ecx, dword [ebp - 0x30]
add ecx, 0x48
push ecx
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx + 0x40]
call fcn.1003f330
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x1003f1da
cmp dword [ebp - 0x3c], 1
je 0x1003f1e1
cmp dword [ebp - 0x3c], 3
je 0x1003f27b
jmp 0x1003f293
mov eax, dword [ebp - 0x30]
mov byte [eax + 0x45], 0
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.10013f40
mov ecx, eax
call fcn.10010cf0
mov edx, dword [ebp - 0x2c]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x1003f244
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x28]
call fcn.10013f40
mov ecx, eax
call fcn.10010cf0
push eax
call fcn.1004a2e1
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x1003f244
mov byte [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1000df90
mov al, byte [ebp - 0x34]
jmp 0x1003f2bf
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x45]
test edx, edx
jne 0x1003f267
mov byte [ebp - 0x31], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1000df90
mov al, byte [ebp - 0x31]
jmp 0x1003f2bf
cmp dword [ebp - 0x38], 0
jne 0x1003f279
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.10010170
jmp 0x1003f2ab
mov byte [ebp - 0x33], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1000df90
mov al, byte [ebp - 0x33]
jmp 0x1003f2bf
mov byte [ebp - 0x32], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1000df90
mov al, byte [ebp - 0x32]
jmp 0x1003f2bf
jmp 0x1003f172
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10048fad
mov esp, ebp
pop ebp
ret
Function at 0x1003f4b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x100b2370]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0xc]
call fcn.1003f440
movzx eax, al
test eax, eax
je 0x1003f530
mov dword [ebp - 8], 0x104
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x418], 0x208
mov edx, dword [ebp - 0xc]
add edx, 0x418
push edx
mov eax, dword [ebp - 0xc]
add eax, 0x210
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x41c
push ecx
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
add eax, 8
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1003f530
mov al, 1
jmp 0x1003f566
mov edx, 2
imul edx, edx, 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov word [ecx + edx + 8], ax
mov edx, 2
imul edx, edx, 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov word [ecx + edx + 0x210], ax
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x418], 0
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10048fad
mov esp, ebp
pop ebp
ret

Function at 0x1003f6d0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100b2370]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x14]
call fcn.1003f440
movzx eax, al
test eax, eax
je 0x1003f72e
mov dword [ebp - 8], 0x104
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x14]
add eax, 8
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1003f72e
mov al, 1
jmp 0x1003f742
mov edx, 2
imul edx, edx, 0
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov word [ecx + edx + 8], ax
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10048fad
mov esp, ebp
pop ebp
ret

Function at 0x1003fb70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x1003fb85
xor al, al
jmp 0x1003fbbf
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1003fbb5
mov dword [ebp - 8], 1
jmp 0x1003fbbc
mov dword [ebp - 8], 0
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1003fbd0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.10051500
mov eax, dword [0x100b2370]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1010], ecx
mov dword [ebp - 0x100c], 1
mov dword [ebp - 0x1008], 0x800
lea eax, [ebp - 0x100c]
push eax
lea ecx, [ebp - 0x1008]
push ecx
lea edx, [ebp - 0x804]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1010]
call fcn.1003fb70
movzx ecx, al
test ecx, ecx
je 0x1003fca2
cmp dword [ebp - 0x100c], 1
jne 0x1003fc46
lea edx, [ebp - 0x804]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.1000e040
jmp 0x1003fc9c
cmp dword [ebp - 0x100c], 2
jne 0x1003fc98
push 0x400
lea eax, [ebp - 0x1004]
push eax
lea ecx, [ebp - 0x804]
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1008], eax
cmp dword [ebp - 0x1008], 0
je 0x1003fc83
cmp dword [ebp - 0x1008], 0x400
jbe 0x1003fc87
xor al, al
jmp 0x1003fca4
lea edx, [ebp - 0x1004]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.1000e040
jmp 0x1003fc9c
xor al, al
jmp 0x1003fca4
mov al, 1
jmp 0x1003fca4
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10048fad
mov esp, ebp
pop ebp
ret 8

Function at 0x1003fd40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x1003fd55
xor al, al
jmp 0x1003fd8f
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1003fd85
mov dword [ebp - 8], 1
jmp 0x1003fd8c
mov dword [ebp - 8], 0
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100404d0
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100b2370]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x100404fc
xor al, al
jmp 0x10040560
push 0xf01ff
mov ecx, dword [ebp + 8]
call fcn.1000e0f0
push eax
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x10040521
xor al, al
jmp 0x10040560
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x1c], 0
je 0x1004054a
push 0
push 0
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10048fad
mov esp, ebp
pop ebp
ret

Function at 0x10040570
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100b2370]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x1004059c
xor al, al
jmp 0x100405e7
push 0xf01ff
mov ecx, dword [ebp + 8]
call fcn.1000e0f0
push eax
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x100405c1
xor al, al
jmp 0x100405e7
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x1c], 1
je 0x100405e5
lea eax, [ebp - 0x20]
push eax
push 1
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10048fad
mov esp, ebp
pop ebp
ret
Function at 0x10040cd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100b2370]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0x18]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 1
call fcn.10040600
test eax, eax
je 0x10040d43
lea ecx, [ebp - 0x10]
push ecx
push 0x20219
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x10]
push ecx
push 0x20219
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10040d41
jmp 0x10040d8f
jmp 0x10040d64
lea ecx, [ebp - 0x10]
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10040d64
jmp 0x10040d8f
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10040d88
jmp 0x10040d8f
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x10], 0
je 0x10040d9f
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10048fad
mov esp, ebp
pop ebp
ret
Function at 0x10041960
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
cmp dword [ebp + 8], 0
je 0x10041979
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x1004197d
xor al, al
jmp 0x10041996
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x10041994
xor al, al
jmp 0x10041996
mov al, 1
mov esp, ebp
pop ebp
ret 4