joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435760
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x608af0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebx, ecx
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
or ebp, 0xffffffff
cmp esi, ebp
je 0x43584b
mov ecx, dword [esp + 0x2c]
push 0
lea eax, [esp + 0x14]
push eax
push ebx
push ecx
push esi
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x43582a
mov ebx, 1
cmp dword [0x71038c], ebx
jl 0x43582a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, esp
mov dword [esp + 0x20], esp
push edx
mov ecx, edi
call fcn.0040b990
mov dword [esp + 0x2c], 0
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x30], ebp
call fcn.00405b60
add esp, 8
mov dword [esp + 0x28], ebx
mov ecx, dword [eax]
push ecx
push str.Error_writing_file__s___i
push str.Helper::SaveBuf
push ebx
call fcn.00579a92
add esp, 0x14
mov dword [esp + 0x24], ebp
lea ecx, [esp + 0x14]
call fcn.0040b810
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov ebx, 1
cmp dword [0x71038c], ebx
jl 0x4358b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, esp
mov dword [esp + 0x20], esp
push edx
mov ecx, edi
call fcn.0040b990
mov dword [esp + 0x2c], 2
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x30], ebp
call fcn.00405b60
add esp, 8
mov dword [esp + 0x28], 3
mov ecx, dword [eax]
push ecx
push str.Error_creating_file__s___i
push str.Helper::SaveBuf
push ebx
call fcn.00579a92
add esp, 0x14
mov dword [esp + 0x24], ebp
lea ecx, [esp + 0x14]
call fcn.0040b810
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x435ad0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x20
push ebx
push esi
xor ebx, ebx
push edi
mov dword [esp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x435b67
lea eax, [esp + 0xc]
push eax
push 0x28
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x435b64
lea ecx, [esp + 0x10]
push ecx
push str.SeDebugPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x435b5d
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push ebx
push ebx
push 0x10
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x1c]
push ebx
push edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x435b5d
mov bl, 1
mov eax, dword [esp + 0xc]
push eax
call edi
push esi
call edi
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0x20
ret
Function at 0x435d00
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ecx
push esi
mov esi, eax
mov eax, closesocket
mov dword [esp + 4], 0
test ecx, ecx
je 0x435d3a
push 0
lea eax, [esp + 8]
push eax
push 0
push 2
push 0
push 0
push 0
push ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x435d90
mov eax, dword [esp + 4]
test edi, edi
je 0x435d65
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push ecx
push edi
push edx
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test esi, esi
je 0x435d83
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
pop ecx
ret
Function at 0x435df0
Capabilities:
Enumerate services
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x6e4c28
push 0x5c8e20
mov eax, dword fs:[0]
push eax
sub esp, 0x84
push ebx
push esi
push edi
mov eax, dword [0x711ab8]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0x7530
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x20]
push edx
push 0
push 0
push 1
push edi
mov ebx, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
call ebx
test eax, eax
jne 0x435fe9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x435ec2
mov eax, dword [ebp - 0x20]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x2c], esi
test esi, esi
je 0x435ec2
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x20]
push eax
push esi
push 1
push edi
call ebx
test eax, eax
jne 0x435ed6
push 0xfffffffffffffffe
lea ecx, [ebp - 0x10]
push ecx
push 0x711ab8
call fcn.005d9f74
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov dword [ebp - 0x28], ebx
jmp 0x435ee0
cmp ebx, dword [ebp - 0x24]
jae 0x435fdd
lea edx, [ebx + ebx*8]
lea esi, [esi + edx*4]
mov ecx, 9
lea edi, [ebp - 0x94]
rep movsd dword es:[edi], dword [esi]
push 0x24
mov eax, dword [ebp - 0x94]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
jne 0x435f3f
push 0xfffffffffffffffe
lea edx, [ebp - 0x10]
push edx
push 0x711ab8
call fcn.005d9f74
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 1
mov dword [ebp - 4], edi
lea eax, [ebp - 0x70]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x435eaf
jmp 0x435f60
cmp dword [ebp - 0x6c], edi
je 0x435fb1
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push 0x24
lea ecx, [ebp - 0x70]
push ecx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x435f18
cmp dword [ebp - 0x6c], edi
je 0x435fb1
call fcn.00436270
xor ecx, ecx
sub eax, dword [ebp - 0x30]
sbb edx, ecx
cmp edx, ecx
jb 0x435faa
ja 0x435f18
cmp eax, dword [ebp - 0x34]
ja 0x435f18
mov edi, 1
jmp 0x435f60
mov dword [ebp - 4], 0
call fcn.00435fd5
add ebx, edi
mov dword [ebp - 0x28], ebx
mov esi, dword [ebp - 0x2c]
jmp 0x435ee0
mov dword [ebp - 4], 0xfffffffe
call fcn.00436003
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x436020
Capabilities:
Modify service

Disassembly:
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x436054
push 0xf003f
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x43605a
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x43608b
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
xor eax, eax
pop edi
pop esi
pop ebx
ret
push ebx
call fcn.004360b0
add esp, 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call esi
push edi
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x4360b0
Capabilities:
Query service status
Stop service

Disassembly:
sub esp, 0x48
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocalTime]
push ebp
push esi
push edi
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x1c], 0
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
call ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
je 0x436112
mov eax, dword [esp + 0x5c]
push 0x2c
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x43611c
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
lea ecx, [esp + 0x14]
push ecx
push 0x24
lea edx, [esp + 0x3c]
push edx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x43624c
mov eax, dword [esp + 0x38]
cmp eax, 1
jne 0x43614a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
mov edi, dword [esp + 0x1c]
cmp eax, 3
jne 0x4361c3
mov eax, dword [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x14]
push ecx
push 0x24
lea edx, [esp + 0x3c]
push edx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x436248
cmp dword [esp + 0x38], 1
je 0x436248
lea eax, [esp + 0x24]
push eax
call ebx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
call ebp
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
xor edx, edx
sub eax, edi
sbb ecx, edx
test ecx, ecx
ja 0x436248
jb 0x4361bc
cmp eax, 0x7530
ja 0x436248
cmp dword [esp + 0x38], 3
je 0x436153
mov eax, dword [esp + 0x10]
push eax
mov ecx, esi
call fcn.00435df0
add esp, 4
lea ecx, [esp + 0x34]
push ecx
mov ebp, 1
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x436248
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call ebx
cmp dword [esp + 0x38], ebp
je 0x436244
jmp 0x436200
lea edx, [esp + 0x14]
push edx
push 0x24
lea eax, [esp + 0x3c]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x436248
cmp dword [esp + 0x38], ebp
je 0x436244
mov ecx, dword [esp + 0x4c]
push ecx
call ebx
call fcn.00436270
xor ecx, ecx
sub eax, edi
sbb edx, ecx
test edx, edx
ja 0x436248
jb 0x43623e
cmp eax, 0x7530
ja 0x436248
cmp dword [esp + 0x38], ebp
jne 0x436200
mov dword [esp + 0x18], ebp
mov edi, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
Function at 0x4364c0
Capabilities:
Get hostname

Disassembly:
push 0xffffffffffffffff
push 0x604882
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x711ab8]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1a]
mov dword [esp + 0xc], 0
push ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 0x104
mov word [esp + 0x1c], ax
call fcn.005c8fb0
add esp, 0xc
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push esi
lea ecx, [esp + 0x14]
call fcn.0040b990
mov dword [esp + 0x224], 0
mov dword [esp + 4], 1
mov eax, esi
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.005c397a
add esp, 0x224
ret
Function at 0x436580
Capabilities:
Hash data with md5

Disassembly:
push 0xffffffffffffffff
push 0x608a9d
mov eax, dword fs:[0]
push eax
sub esp, 0x880
mov eax, dword [0x711ab8]
xor eax, esp
mov dword [esp + 0x878], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0x894]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x8a4]
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0x491]
push ebx
mov dword [esp + 0x24], ebx
push eax
mov dword [esp + 0x2c], ebp
mov byte [esp + 0x498], bl
call fcn.005c8fb0
add esp, 0xc
push 0x3ff
lea ecx, [esp + 0x91]
push ebx
push ecx
mov byte [esp + 0x98], bl
call fcn.005c8fb0
add esp, 0xc
lea ecx, [esp + 0x8c]
call fcn.00438510
lea esi, [esp + 0x18]
mov dword [esp + 0x18], ebx
call fcn.004388f0
test al, al
je 0x43665b
lea eax, [esp + 0x8c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x436630
sub eax, edx
mov edx, dword [esp + 0x18]
push edx
mov ecx, 0x400
push str._08X
sub ecx, eax
push ecx
lea edx, [esp + eax + 0x98]
push edx
call fcn.005c3fc1
add esp, 0x10
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x8c]
push eax
mov eax, 0x400
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0x67452301
mov dword [esp + 0x2c], 0xefcdab89
mov dword [esp + 0x30], 0x98badcfe
mov dword [esp + 0x34], 0x10325476
call fcn.004519f0
add esp, 4
lea esi, [esp + 0x24]
lea edi, [esp + 0x7c]
call fcn.00451a90
movzx ecx, byte [esp + 0x8b]
movzx edx, byte [esp + 0x8a]
movzx eax, byte [esp + 0x89]
push ecx
movzx ecx, byte [esp + 0x8c]
push edx
movzx edx, byte [esp + 0x8f]
push eax
movzx eax, byte [esp + 0x92]
push ecx
movzx ecx, byte [esp + 0x95]
push edx
movzx edx, byte [esp + 0x98]
push eax
movzx eax, byte [esp + 0x9b]
push ecx
movzx ecx, byte [esp + 0x9e]
push edx
movzx edx, byte [esp + 0xa1]
push eax
movzx eax, byte [esp + 0xa4]
push ecx
movzx ecx, byte [esp + 0xa7]
push edx
movzx edx, byte [esp + 0xaa]
push eax
movzx eax, byte [esp + 0xad]
push ecx
movzx ecx, byte [esp + 0xb0]
push edx
push eax
push ecx
push str._02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X
lea edx, [esp + 0x4d0]
push 0x400
push edx
call fcn.005c3fc1
add esp, 0x4c
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x490]
call fcn.0040b760
mov esi, 1
mov dword [esp + 0x89c], esi
lea ecx, [esp + 0x14]
push ecx
push ebp
call fcn.00433a20
add esp, 8
mov dword [esp + 0x1c], esi
mov byte [esp + 0x89c], bl
lea ecx, [esp + 0x14]
call fcn.0040b810
mov eax, ebp
mov ecx, dword [esp + 0x894]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x878]
xor ecx, esp
call fcn.005c397a
add esp, 0x88c
ret
Function at 0x4367c0
Capabilities:
Get mac address on windows

Disassembly:
push 0xffffffffffffffff
push 0x604841
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
lea eax, [esp + 0x14]
xor ebx, ebx
push eax
mov dword [esp + 0x20], ebx
push ebx
mov dword [esp + 0x1c], ebx
xor esi, esi
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x436816
mov ecx, dword [esp + 0x14]
push ecx
call fcn.005c2957
add esp, 4
mov esi, eax
lea edx, [esp + 0x14]
push edx
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
cmp esi, ebx
je 0x436896
lea eax, [esp + 0x18]
push eax
call fcn.0040b8d0
mov dword [esp + 0x28], 1
movzx ecx, byte [esi + 0x199]
movzx edx, byte [esi + 0x198]
movzx eax, byte [esi + 0x197]
push ecx
movzx ecx, byte [esi + 0x196]
push edx
movzx edx, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push ecx
push edx
push eax
push str._02x:_02x:_02x:_02x:_02x:_02x
lea edi, [esp + 0x34]
call fcn.0042a2d0
add esp, 0x1c
mov ecx, edi
push ecx
push ebp
call fcn.0040b930
mov dword [esp + 0x1c], 1
mov byte [esp + 0x28], bl
mov ecx, edi
call fcn.0040ba40
jmp 0x4368ad
push ebp
mov ecx, 0x6ca128
call fcn.0040b990
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], 1
mov eax, ebp
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x436ac0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x238
mov eax, dword [0x711ab8]
xor eax, esp
mov dword [esp + 0x234], eax
push esi
push edi
push 0
push 2
mov edi, ecx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x436b0c
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x436b22
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x234]
xor ecx, esp
call fcn.005c397a
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 8]
push ecx
call fcn.00443e10
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x436b22
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.005c397a
mov esp, ebp
pop ebp
ret
Function at 0x437000
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x5fa3a8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push edi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
xor ebx, ebx
mov byte [esp + 0xf], bl
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x43706e
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x43704c
push eax
call edi
mov dword [esp + 0x10], ebx
push ebx
lea eax, [esp + 0x14]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x4370a6
mov eax, dword [esp + 0x10]
jmp 0x437073
mov eax, reloc.OLEAUT32.dll_SysReAllocString
mov edx, dword [esp + 0x24]
push 4
lea ecx, [esp + 0x2c]
push ecx
push 4
push edx
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
cmp eax, ebx
jne 0x4370a6
mov eax, dword [esp + 0x10]
cmp esi, ebx
jne 0x43709a
mov eax, reloc.OLEAUT32.dll_SysReAllocString
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov byte [esp + 0xf], 1
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4370b9
push eax
call edi
mov al, byte [esp + 0xf]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x14
ret

Function at 0x4370d0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5fa378
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
je 0x437149
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x43712b
push eax
call ebx
mov dword [esp + 0x10], esi
lea eax, [esp + 0x10]
push eax
push 1
push esi
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x43717f
mov eax, dword [esp + 0x10]
jmp 0x43714e
mov eax, reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x20]
push ecx
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x43717b
cmp dword [esp + 0x18], 4
jne 0x43717b
cmp dword [esp + 0x1c], esi
jne 0x43717f
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x437196
push eax
call ebx
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x438510
Capabilities:
Get common file path
Get storage device properties

Disassembly:
mov eax, 0x2f30
call fcn.005c95e0
mov eax, dword [0x711ab8]
xor eax, esp
mov dword [esp + 0x2f28], eax
push ebx
push esi
push edi
push 0x400
lea eax, [esp + 0x24]
mov edi, ecx
xor ebx, ebx
push eax
mov byte [edi], bl
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push ecx
call fcn.00438660
add esp, 4
test al, al
je 0x43863c
mov edx, dword [esp + 0x10]
push edx
push str..PhysicalDrive_d
lea eax, [esp + 0x28]
push 0x400
push eax
call fcn.005c5a13
add esp, 0x10
push ebx
push ebx
push 3
push ebx
push 3
push closesocket
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43863c
xor eax, eax
push 0x2710
lea edx, [esp + 0x824]
push ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
push edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.005c8fb0
add esp, 0xc
push ebx
lea eax, [esp + 0x14]
push eax
push 0x2710
lea ecx, [esp + 0x82c]
push ecx
push 0xc
lea edx, [esp + 0x28]
push edx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x438635
mov eax, dword [esp + 0x838]
cmp eax, 0xffffffff
je 0x43860a
lea ecx, [esp + 0x820]
call fcn.00438970
mov eax, dword [esp + 0x830]
cmp eax, ebx
je 0x43862f
cmp byte [edi], bl
jne 0x438633
lea eax, [esp + eax + 0x820]
push eax
push 0x400
push edi
call fcn.005c680e
add esp, 0xc
cmp byte [edi], bl
je 0x438635
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x2f34]
pop edi
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.005c397a
add esp, 0x2f30
ret

Function at 0x4388f0
Capabilities:
Get common file path
Get disk information

Disassembly:
sub esp, 0x20c
mov eax, dword [0x711ab8]
xor eax, esp
mov dword [esp + 0x208], eax
push 0x104
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [esi], 0
test eax, eax
je 0x438956
cmp eax, 3
jb 0x438956
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push esi
push ecx
push ecx
lea edx, [esp + 0x1c]
push edx
mov word [esp + 0x26], cx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
setne al
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.005c397a
add esp, 0x20c
ret
mov ecx, dword [esp + 0x208]
xor ecx, esp
xor al, al
call fcn.005c397a
add esp, 0x20c
ret