joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3407cf7e
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x3413f70e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x44]
call fcn.340df380
mov dword [ebp - 4], 0
push 1
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x74]
call fcn.3407c07c
test eax, eax
je 0x3407d07f
push 0xffffffffffffffff
lea ecx, [ebp - 0x44]
call fcn.340dfcb0
push 0x23d
push 0x341892c0
call fcn.3407bcd0
add esp, 8
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp - 0x44]
call fcn.340dfd00
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x58], ecx
cmp dword [ebp - 0x58], 0
je 0x3407d028
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x4c], edx
jmp 0x3407d042
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.340dfce0
mov dword [ebp - 0x54], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x50], eax
push 0x24f
push 0x341892e8
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.3407bd79
add esp, 0x10
lea ecx, [ebp - 0x44]
call fcn.340dfa80
cmp dword [ebp - 0x48], 0
jbe 0x3407d152
mov edx, dword [ebp - 0x4c]
and edx, 2
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x64]
push eax
lea ecx, [ebp - 0x60]
push ecx
mov ecx, dword [ebp - 0x74]
call fcn.3407c8e2
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x60]
call fcn.340020c0
push eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x3407d146
mov edx, dword [ebp - 0x48]
push edx
push 0
push 0
push 4
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
je 0x3407d135
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.340bd438
add esp, 4
mov dword [ebp - 0x6c], eax
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
je 0x3407d124
mov eax, dword [ebp - 0x48]
push eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.340bd3e0
add esp, 0xc
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.340be130
add esp, 0xc
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x5c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.340a7330
cmp dword [ebp + 8], 0
je 0x3407d160
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x48]
mov dword [ecx], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x70], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.340df520
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x3407fb37
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x3413fb62
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push edi
mov dword [ebp - 0x84], ecx
cmp dword [ebp + 8], 0
je 0x3407fb6f
mov eax, dword [ebp + 8]
push eax
call fcn.340bd4b7
add esp, 4
test eax, eax
jne 0x3407fb76
xor eax, eax
jmp 0x3407fd36
lea ecx, [ebp - 0x24]
call fcn.34017748
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x20]
call fcn.34080dc0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x30], 0
je 0x3407fc98
mov dword [ebp - 0x34], 0
cmp dword [ebp - 0x30], 0
je 0x3407fc98
mov ecx, dword [ebp - 0x30]
and ecx, 1
test ecx, ecx
je 0x3407fc82
mov word [ebp - 0x74], 0
mov ecx, 0xd
xor eax, eax
lea edi, [ebp - 0x72]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edx, dword [ebp - 0x34]
add edx, 0x41
mov word [ebp - 0x74], dx
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x3c]
call fcn.340a6b90
mov byte [ebp - 4], 2
push 0x3418a330
lea ecx, [ebp - 0x3c]
call fcn.340a7f80
lea ecx, [ebp - 0x3c]
call fcn.340020c0
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x64], eax
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x60]
push ecx
push 0
push 0
lea ecx, [ebp - 0x3c]
call fcn.340020c0
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x3407fc6a
cmp dword [ebp - 0x60], 0
je 0x3407fc6a
mov edx, dword [ebp - 0x60]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x60]
shr eax, 0x10
and eax, 0xffff
and eax, 0xffff
push eax
push str._04X__04X
lea ecx, [ebp - 0x5c]
push ecx
call fcn.340be4d8
add esp, 0x10
lea edx, [ebp - 0x74]
push edx
lea ecx, [ebp - 0x20]
call fcn.34080e30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.340a7330
mov eax, dword [ebp - 0x30]
shr eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov dword [ebp - 0x34], ecx
jmp 0x3407fbab
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x2c]
call fcn.34078d00
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.34080e00
push eax
lea ecx, [ebp - 0x20]
call fcn.34080e20
push eax
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x2c]
call fcn.3407b306
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x2c]
call fcn.34079315
test eax, eax
je 0x3407fd06
lea ecx, [ebp - 0x20]
call fcn.34080e20
mov dword [ebp - 0x7c], eax
lea ecx, [ebp - 0x20]
call fcn.34080e00
imul eax, eax, 0x38
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
push ecx
mov edx, dword [ebp - 0x7c]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.34088905
add esp, 0x10
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x80], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.34078d60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.34080e60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.34017784
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x340811cb
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x3413fd82
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov dword [ebp - 0x10], 0
push 0x341a3ce0
lea ecx, [ebp - 0x18]
call fcn.340a6b90
mov dword [ebp - 4], 0
push 0
push 0x80
push 3
push 0
push 1
push accept
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x3408129d
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x400000
ja 0x34081293
mov dword [ebp - 0x24], 0
mov edx, dword [ebp - 0x20]
shr edx, 1
add edx, 1
push edx
lea ecx, [ebp - 0x18]
call fcn.340a8000
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
add eax, 2
push eax
push 0
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.340bd3e0
add esp, 0xc
push 0
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.340a80d0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0
jne 0x340812c1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.340a7330
mov eax, dword [ebp - 0x2c]
jmp 0x34081349
push 0x3418a81c
lea ecx, [ebp - 0x18]
call fcn.340a8510
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x340812f2
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.340a7330
mov eax, dword [ebp - 0x30]
jmp 0x34081349
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x18]
call fcn.340a9620
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], edx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x40]
call fcn.340020c0
push eax
call fcn.34081357
add esp, 0xc
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.340a7330
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.340a7330
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x3408367a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x34140140
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.3408378a
add esp, 0x10
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.340020d0
test eax, eax
je 0x340836de
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.340a7330
mov eax, dword [ebp - 0x28]
jmp 0x3408377c
mov dword [ebp - 0x10], 0
push 0
push 0x80
push 2
push 0
push 0
push 0x10000000
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x34083764
mov word [ebp - 0x20], 0xfeff
mov dword [ebp - 0x1c], 0
push 0
lea edx, [ebp - 0x1c]
push edx
push 2
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x18]
call fcn.3400b5e0
shl eax, 1
mov dword [ebp - 0x24], eax
push 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
call fcn.340020c0
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.340a7330
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x340851cd
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x3414025f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
push edi
mov dword [ebp - 0xa0], ecx
mov eax, dword [ebp - 0xa0]
cmp dword [eax + 4], 0xffffffff
je 0x34085208
mov eax, 1
jmp 0x340852f4
mov word [ebp - 0x8c], 0
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0x8a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xff
cmp eax, 5
jae 0x3408524d
push 0x3418b8ec
push 0x3418b910
lea ecx, [ebp - 0x8c]
push ecx
call fcn.340be4d8
add esp, 0xc
jmp 0x34085266
push str.TSandboxDrvCDOSL
push 0x3418b950
lea edx, [ebp - 0x8c]
push edx
call fcn.340be4d8
add esp, 0xc
push 0xffffffffffffffff
lea ecx, [ebp - 0x94]
call fcn.3409952a
mov dword [ebp - 4], 0
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0xa0]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0xa0]
cmp dword [edx + 4], 0xffffffff
jne 0x340852d2
mov dword [ebp - 0x98], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.34099560
mov eax, dword [ebp - 0x98]
jmp 0x340852f4
mov dword [ebp - 0x9c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.34099560
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x3408b4c6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x3408b504
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x3408b550
cmp dword [ebp + 0x10], 0
je 0x3408b51f
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.340bd4b7
add esp, 4
lea edx, [eax + eax + 2]
mov dword [ebp - 0x10], edx
jmp 0x3408b526
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 1
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x3408b556
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x3408b594
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x3408b5b6
push 4
lea ecx, [ebp + 0x10]
push ecx
push 4
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x3408b5bc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x3408b605
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x3408b687
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
push 0
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x10], 2
jb 0x3408b67d
mov edx, dword [ebp - 0x10]
add edx, 2
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
shl ecx, 1
push ecx
call fcn.340bd438
add esp, 4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x3408b67d
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x3408b690
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x3408b6d5
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x3408b753
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
push 0
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0x10], 1
jb 0x3408b749
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.340bd438
add esp, 4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x3408b749
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8
Function at 0x3408b75c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x3408b7a1
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x3408b7d5
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 4
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x3408c8bf
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0xf01ff
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x3408c8f3
xor eax, eax
jmp 0x3408c942
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x3408c928
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x3408c928
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x422
je 0x3408c928
mov dword [ebp - 0xc], 0
jmp 0x3408c92f
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x3408c946
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push edi
mov word [ebp - 0x84], 0
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0x82]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xff
cmp eax, 5
jae 0x3408c99c
mov eax, dword [ebp + 8]
push eax
push str..Global_s
lea ecx, [ebp - 0x84]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x3408c9b5
mov edx, dword [ebp + 8]
push edx
push str.._s
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
lea ecx, [ebp - 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x3408c9e1
xor eax, eax
jmp 0x3408ca00
cmp dword [ebp + 0xc], 0
je 0x3408c9f1
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov dword [edx], eax
jmp 0x3408c9fb
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x3408ca05
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0xf01ff
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x3408ca52
lea edx, [ebp - 0x24]
push edx
push 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x3408ca59
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0xf01ff
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x3408caa0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x34093e76
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x341409a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.3400b090
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.34095370
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x34146818
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.340a75b0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x10]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x14], 0xffffffff
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x18], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x1c], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x20], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x24], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x28], 0xa000
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x2c], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x5c], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x58], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x34097976
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x340979a8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 4]
sub eax, dword [ecx + 8]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 4]
ja 0x340979ac
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 4]
cmp eax, dword [ecx + 8]
jb 0x340979ac
xor eax, eax
jmp 0x340979b1
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x3409a156
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x341a8d04], 0
jne 0x3409a1b1
mov dword [0x341a8d04], 1
call fcn.340f2990
test eax, eax
je 0x3409a1a1
push 0
push 0x104
push 0x341a8d08
call fcn.340d1950
add esp, 0xc
test eax, eax
je 0x3409a19f
push 0x3418fb24
push 0x341a8d08
call fcn.340bd8ca
add esp, 8
jmp 0x3409a1b1
push 0x104
push 0x341a8d08
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, 0x341a8d08
pop ebp
ret

Function at 0x3409a54b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x341a9d64], 0
jne 0x3409a5a6
mov dword [0x341a9d64], 1
call fcn.340f2990
test eax, eax
je 0x3409a596
push 0
push 0x104
push 0x341a9d68
call fcn.340d1b40
add esp, 0xc
test eax, eax
je 0x3409a594
push str.SysWow64
push 0x341a9d68
call fcn.340bd8ca
add esp, 8
jmp 0x3409a5a6
push 0x104
push 0x341a9d68
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, 0x341a9d68
pop ebp
ret