joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4017d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x495f34]
xor eax, esp
push esi
mov esi, dword [esp + 0x110]
mov dword [esp + 0x108], eax
push 0x104
lea eax, [esp + 8]
push eax
mov byte [esp + 0xd], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp byte [esp + 5], 0x3a
je 0x401823
mov eax, 1
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004530e5
add esp, 0x108
ret
mov ecx, dword [esp + 4]
push esi
push ecx
call fcn.00401710
mov ecx, dword [esp + 0x110]
add esp, 8
pop esi
xor ecx, esp
call fcn.004530e5
add esp, 0x108
ret

Function at 0x402260
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x468b3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
mov eax, dword [0x495f34]
xor eax, esp
push ebx
mov dword [esp + 0x124], eax
movsx eax, byte [esp + 0x138]
push edi
mov edi, dword [esp + 0x140]
push eax
lea ecx, [esp + 0x1c]
push 0x46f3b0
push ecx
xor ebx, ebx
call fcn.004533fa
add esp, 0xc
push 0x104
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x402356
lea ecx, [esp + 0x24]
push esi
push ecx
call fcn.004532e6
mov edx, dword [0x495150]
add esp, 4
push edx
lea ecx, [esp + 0x10]
call fcn.00451bf0
lea ecx, [esp + 0xc]
mov dword [esp + 0x138], ebx
call fcn.00451ad0
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00453260
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x402341
lea ecx, [esp + 0xc]
call fcn.00451ad0
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402320
sub eax, edx
push edi
add esi, eax
push 0x46f3ac
push esi
call fcn.0045321d
add esp, 0xc
cmp eax, 1
jne 0x402341
mov bl, al
lea ecx, [esp + 0xc]
mov dword [esp + 0x138], 0xffffffff
call fcn.00451af0
pop esi
mov ecx, dword [esp + 0x12c]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x124]
mov al, bl
pop ebx
xor ecx, esp
call fcn.004530e5
add esp, 0x130
ret

Function at 0x402380
Capabilities:
Get disk information via ioctl

Disassembly:
sub esp, 0x20
mov eax, dword [0x495f34]
xor eax, esp
push ebx
mov dword [esp + 0x20], eax
movsx eax, byte [esp + 0x28]
push esi
push eax
lea ecx, [esp + 0x10]
push str.._c:
push ecx
xor bl, bl
call fcn.004533fa
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4023fc
push 0
lea eax, [esp + 0xc]
push eax
push 0xc
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0x2d1080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4023f5
mov edx, dword [esp + 0x1c]
mov dword [edi], edx
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x24]
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.004530e5
add esp, 0x20
ret
Function at 0x402750
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x495f34]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x104
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, 2
jb 0x402783
cmp byte [esp + 1], 0x3a
mov al, byte [esp]
je 0x402785
mov al, 0x43
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004530e5
add esp, 0x108
ret

Function at 0x402dc0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x468b9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x283c
call fcn.004535d0
mov eax, dword [0x495f34]
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, ebp
push esi
mov dword [esp + 0x2840], eax
mov eax, dword [0x495158]
push edi
push eax
lea ecx, [esp + 0x18]
call fcn.00451bf0
mov ecx, dword [ebp + 8]
push ecx
xor edi, edi
mov ecx, eax
mov dword [esp + 0x2858], edi
call fcn.00451ad0
push eax
lea edx, [esp + 0x38]
push edx
call fcn.004533fa
add esp, 0xc
lea ecx, [esp + 0x14]
mov dword [esp + 0x2854], 0xffffffff
call fcn.00451af0
push edi
push edi
push 3
push edi
push 3
push edi
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402f98
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
xor eax, eax
push eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
lea edx, [esp + 0x14]
push edx
push 0x2710
mov ecx, 0x9c4
lea edi, [esp + 0x13c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x13c]
push eax
push 0xc
lea ecx, [esp + 0x38]
push ecx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x402f3f
mov eax, dword [esp + 0x13c]
test eax, eax
je 0x402ed6
lea edx, [esp + eax + 0x130]
push 0x64
push edx
lea eax, [ebx + 4]
push eax
call fcn.00453460
add esp, 0xc
mov eax, dword [esp + 0x140]
test eax, eax
je 0x402ef7
push 0x64
lea ecx, [esp + eax + 0x134]
push ecx
lea edx, [ebx + 0x68]
push edx
call fcn.00453460
add esp, 0xc
mov eax, dword [esp + 0x144]
test eax, eax
je 0x402f1b
push 0x64
lea eax, [esp + eax + 0x134]
push eax
lea ecx, [ebx + 0x130]
push ecx
call fcn.00453460
add esp, 0xc
mov eax, dword [esp + 0x148]
test eax, eax
je 0x402f3f
lea edx, [esp + eax + 0x130]
push 0x64
push edx
lea eax, [ebx + 0xcc]
push eax
call fcn.00453460
add esp, 0xc
xor eax, eax
push eax
mov ecx, 0x9c4
lea edi, [esp + 0x134]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push ecx
push 0x2710
lea edx, [esp + 0x13c]
push edx
push eax
push eax
push 0x2d0c10
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x402f8d
push 0x64
lea eax, [esp + 0x144]
push eax
add ebx, 0xcc
push ebx
call fcn.00453460
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x402f9d
mov eax, 0xb
mov ecx, dword [esp + 0x284c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x2844]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004530e5
mov esp, ebp
pop ebp
ret
Function at 0x402fc0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x468bb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [0x495f34]
xor eax, esp
push ebx
mov bl, byte [esp + 0x3c]
mov dword [esp + 0x28], eax
push ebp
mov ebp, dword [esp + 0x48]
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], 0x3a
mov byte [esp + 0x1e], 0x5c
mov byte [esp + 0x1f], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
je 0x40301a
mov eax, 0x15
jmp 0x4030e2
mov ecx, dword [0x49515c]
push esi
push edi
push ecx
lea ecx, [esp + 0x14]
call fcn.00451bf0
movsx edx, bl
push edx
mov ecx, eax
mov dword [esp + 0x44], 0
call fcn.00451ad0
push eax
lea eax, [esp + 0x30]
push eax
call fcn.004533fa
add esp, 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 0xffffffff
call fcn.00451af0
xor eax, eax
push eax
push eax
push 3
push eax
push 3
mov ecx, 0x68
mov edi, ebp
rep stosd dword es:[edi], eax
push 0xc0000000
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4030d9
mov ebx, dword [esp + 0x4c]
push ebp
push ebx
push edi
call fcn.00402960
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4030d0
push ebp
push edi
call fcn.004025c0
mov esi, eax
add esp, 8
test esi, esi
je 0x4030d0
mov al, byte [esp + 0x54]
test al, al
je 0x4030d0
push ebp
push ebx
call fcn.00402c20
mov esi, eax
add esp, 8
test esi, esi
je 0x4030d0
push ebp
push ebx
call fcn.00402dc0
add esp, 8
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4030de
mov esi, 0xb
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x30]
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x28]
pop ebx
xor ecx, esp
call fcn.004530e5
add esp, 0x34
ret

Function at 0x403310
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x4032a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
setne al
ret
Function at 0x403330
Capabilities:
Set registry value

Disassembly:
sub esp, 0x168
mov eax, dword [0x495f34]
xor eax, esp
mov dword [esp + 0x164], eax
mov eax, dword [0x4978d0]
test eax, eax
je 0x403483
push str.FNPLicensingService
push str.FLEXnet_Publisher
push str.Macrovision
push str.SOFTWARE_s_s_s
lea eax, [esp + 0x74]
push 0x100
push eax
mov dword [esp + 0x18], 0
call fcn.0045360d
add esp, 0x18
push 0
lea ecx, [esp + 4]
push ecx
push 0x497888
push 0xf003f
push 0
push 0
push 0
lea edx, [esp + 0x80]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4033c4
xor al, al
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.004530e5
add esp, 0x168
ret
push esi
push edi
xor eax, eax
mov ecx, 0x18
lea edi, [esp + 0xc]
push eax
rep stosd dword es:[edi], eax
call fcn.00453693
push eax
call fcn.00453664
add esp, 8
call fcn.00453671
mov esi, eax
shl esi, 0x10
call fcn.00453671
add esi, eax
mov eax, dword [esp + 0x174]
add eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x174], eax
mov edi, 4
lea esp, [esp]
lea eax, [esp + 0x174]
push eax
call fcn.00403270
mov eax, dword [esp + 0x178]
mov dword [esp + edi + 0x10], eax
lea ecx, [eax + eax]
sub ecx, esi
add edi, 4
add esp, 4
cmp edi, 0x60
mov dword [esp + 0x174], ecx
jb 0x403410
mov eax, dword [esp + 8]
push 0x60
lea edx, [esp + 0x10]
push edx
push 3
push 0
push 0x46f400
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop edi
sete al
pop esi
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.004530e5
add esp, 0x168
ret
mov ecx, dword [esp + 0x164]
xor ecx, esp
mov al, 1
call fcn.004530e5
add esp, 0x168
ret

Function at 0x4039d0
Capabilities:
Access the windows event log

Disassembly:
push ecx
push esi
push str.FLEXnet_Licensing_Service
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
mov eax, dword [esp + 0xc]
mov dword [esp + 4], eax
je 0x403a0e
push 0
lea ecx, [esp + 8]
push ecx
push 0
push 1
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
pop ecx
ret
Function at 0x403b40
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x114
mov eax, dword [0x495f34]
xor eax, esp
push ebx
mov ebx, dword [esp + 0x120]
push edi
mov edi, dword [esp + 0x120]
test edi, edi
mov dword [esp + 0x118], eax
jne 0x403b84
pop edi
mov eax, 6
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.004530e5
add esp, 0x114
ret
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403c20
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x30]
push eax
push 0
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x403c0c
mov edi, edi
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.00403b40
add esp, 8
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x30]
push eax
push 0
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x403bd0
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop esi
mov ecx, dword [esp + 0x118]
pop edi
pop ebx
xor ecx, esp
call fcn.004530e5
add esp, 0x114
ret

Function at 0x403c40
Capabilities:
Query service configuration

Disassembly:
push ecx
mov eax, dword [0x4978d4]
test eax, eax
jne 0x403c4e
mov al, 1
pop ecx
ret
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
push esi
push edi
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push eax
xor bl, bl
mov dword [esp + 0x20], 1
call ebp
mov edx, dword [esp + 0x10]
push edx
call fcn.00451d0e
mov ecx, dword [esp + 0x14]
mov edx, ecx
mov esi, eax
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
add esp, 4
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x10]
mov edx, dword [0x4978d4]
lea eax, [esp + 0x10]
push eax
push ecx
push esi
push edx
call ebp
test eax, eax
je 0x403cb2
cmp dword [esi + 4], 3
sete bl
push esi
call fcn.00453fec
add esp, 4
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret
Function at 0x403cd0
Capabilities:
Query service configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468bd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x314
mov eax, dword [0x495f34]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x320], eax
mov al, byte [ebp + 0xc]
test al, al
push edi
mov dword [ebp - 0x10], esp
je 0x403d23
mov eax, dword [0x4978d4]
xor edi, edi
cmp eax, edi
jne 0x403d5c
mov dword [0x49541c], 0x2000000c
mov eax, dword [ebp - 0x320]
test eax, eax
je 0x403d35
mov edx, dword [0x49541c]
mov dword [eax], edx
mov ecx, dword [ebp - 0xc]
mov eax, dword [0x49541c]
neg eax
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
pop edi
sbb eax, eax
pop esi
xor ecx, ebp
and eax, 0x19
pop ebx
call fcn.004530e5
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
lea ecx, [ebp - 0x31c]
push ecx
push edi
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x31c], 1
call esi
mov edx, dword [ebp - 0x31c]
push edx
call fcn.00451d0e
mov ecx, dword [ebp - 0x31c]
mov edx, dword [0x4978d4]
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x31c]
push eax
push ecx
push ebx
push edx
call esi
test eax, eax
je 0x403f09
mov esi, 0x104
push esi
mov dword [0x49541c], edi
call fcn.00451d0e
add esp, 4
push esi
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esi - 2]
cmp eax, ecx
jbe 0x403dea
push edi
add esi, 0x104
call fcn.00453fec
push esi
call fcn.00451d0e
add esp, 8
jmp 0x403dc0
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x318]
push eax
push 0
push 0
push edi
call fcn.00454081
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x318]
push edx
push 0
push 0
push edi
call fcn.00453ff1
mov eax, dword [ebx + 0xc]
push eax
call fcn.0045395c
push edi
call fcn.0045395c
push 0x103
lea ecx, [ebp - 0x118]
push str.FNPLicensingService
push ecx
call fcn.004536cc
lea edx, [ebp - 0x118]
push edx
call fcn.0045395c
mov eax, dword [ebx + 0xc]
add esp, 0x40
test eax, eax
je 0x403e63
push edi
push eax
call fcn.0045375f
add esp, 8
test eax, eax
jne 0x403e6d
mov dword [0x49541c], 0x2000000d
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x403e88
lea ecx, [ebp - 0x118]
push ecx
push eax
call fcn.0045375f
add esp, 8
test eax, eax
jne 0x403e92
mov dword [0x49541c], 0x2000000e
test byte [ebx], 0x10
jne 0x403ea3
mov dword [0x49541c], 0x2000000f
jmp 0x403f00
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x403ef6
push str.FLEXnet_Licensing_Service
push eax
call fcn.00453811
add esp, 8
test eax, eax
jne 0x403ef6
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x403f00
push str..System
push eax
call fcn.00453811
add esp, 8
test eax, eax
je 0x403f00
mov eax, dword [ebx + 0x1c]
push str.LocalSystem
push eax
call fcn.00453811
add esp, 8
test eax, eax
je 0x403f00
mov dword [0x49541c], 0x20000011
jmp 0x403f00
mov dword [0x49541c], 0x20000010
push edi
call fcn.00453fec
add esp, 4
push ebx
call fcn.00453fec
add esp, 4
jmp 0x403d23
Function at 0x4045b0
Capabilities:
Access the windows event log

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
xor ecx, ecx
cmp eax, 2
setne cl
push edi
mov dword [0x4978a8], edx
mov edx, dword [0x497894]
mov dword [0x4978a0], eax
mov eax, dword [esp + 0x10]
push 0x49789c
mov dword [0x4978a4], ecx
mov ecx, dword [esp + 0x18]
push edx
mov dword [0x49789c], 0x10
mov dword [0x4978ac], 0
mov dword [0x4978b0], eax
mov dword [0x4978b4], ecx
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov edi, eax
test edi, edi
jne 0x40464d
push esi
push str.FLEXnet_Licensing_Service
push eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
mov dword [esp + 0xc], str.SetServiceStatus_failed
je 0x404648
push edi
lea eax, [esp + 0x10]
push eax
push edi
push 1
push edi
push edi
push edi
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov eax, edi
pop edi
ret
mov eax, edi
pop edi
ret
Function at 0x407cd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x468e08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ebx
call fcn.004541fd
mov edi, dword [esp + 0x34]
cmp edi, ebx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x20], ebx
mov dword [esi], 0x46f6f4
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
jne 0x407d29
mov edi, 0x46f400
lea ecx, [esi + 0x18]
mov eax, edi
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
mov byte [ecx + 4], bl
lea ebp, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x407d40
sub eax, ebp
push eax
push edi
call fcn.00406060
mov ecx, dword [esp + 0x18]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10

Function at 0x409930
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46912c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x46f6fc
lea ecx, [esi + 0x30]
mov dword [esp + 0x1c], 3
call fcn.0043acd0
mov eax, dword [esi + 0x28]
mov ecx, dword [eax]
lea edi, [esi + 0x24]
push eax
push ecx
lea eax, [esp + 0x18]
push eax
mov ecx, edi
mov byte [esp + 0x28], 2
call fcn.004072e0
mov eax, dword [edi + 4]
push eax
call fcn.00452af1
xor ebx, ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax]
add esp, 4
lea edi, [esi + 0x18]
push eax
push ecx
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
mov byte [esp + 0x28], 1
call fcn.00407750
mov eax, dword [edi + 4]
push eax
call fcn.00452af1
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov edi, dword [esi + 0x14]
add esp, 4
cmp edi, ebx
mov byte [esp + 0x1c], bl
je 0x4099f4
lea edx, [edi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4099f4
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
lea eax, [edi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4099f4
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
mov esi, dword [esi + 0xc]
cmp esi, ebx
mov dword [esp + 0x1c], 0xffffffff
je 0x409a29
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x409a29
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x409a29
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x40a620
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0x14
lea eax, [esp + 4]
push eax
mov dword [esp + 0xc], 0x40a070
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 8], str.FLEXnet_Licensing_Service
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
test eax, eax
jne 0x40a695
push esi
push str.FLEXnet_Licensing_Service
push eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
mov dword [esp + 4], str.StartServiceCtrlDispatcher___failed
je 0x40a68e
push 0
lea ecx, [esp + 8]
push ecx
push 0
push 1
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
xor eax, eax
pop esi
add esp, 0x14
ret
xor eax, eax
add esp, 0x14
ret

Function at 0x40a710
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
sub eax, 0
push ebx
je 0x40a730
dec eax
je 0x40a728
dec eax
jne 0x40a77e
mov ebx, dword [0x497a20]
jmp 0x40a736
mov ebx, dword [0x497a1c]
jmp 0x40a736
mov ebx, dword [0x497a18]
test ebx, ebx
je 0x40a77e
cmp ebx, 1
jne 0x40a74e
call fcn.00402750
mov ecx, dword [esp + 0xc]
mov byte [ecx], al
mov al, bl
pop ebx
ret
cmp ebx, 0x41
jb 0x40a77e
cmp ebx, 0x5a
ja 0x40a77e
lea edx, [esp + 8]
mov dword [esp + 8], 0x5c3a41
push edx
mov byte [esp + 0xc], bl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x40a77e
mov eax, dword [esp + 0xc]
mov byte [eax], bl
mov al, 1
pop ebx
ret
xor al, al
pop ebx
ret

Function at 0x40b610
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x497a00
call esi
push 0x4979e8
call esi
push 0
push 0
push 0
push 0x40b5a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x40c980
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x469418
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
mov dword [esp + 0x1c], 0x46f58c
mov dword [esp + 0x28], 0x7ebbcba2
mov dword [esp + 0x14], 0x46fa10
xor eax, eax
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x40]
mov word [esp + 8], ax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x46f9dc
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 8]
push eax
mov byte [esp + 0x40], 2
call fcn.0040c6b0
mov edx, dword [esp + 0x24]
add esp, 8
push 0xd1e0863c
push 0x6ee61963
push 0xcdadd022
lea ecx, [esp + 0x28]
call dword [edx]
mov ecx, dword [esi]
xor eax, 0x507ed26d
mov eax, dword [ecx + eax*8 + 4]
mov ecx, dword [esp + 0x44]
mov edx, dword [eax]
push ecx
lea ecx, [esp + 8]
push ecx
mov ecx, eax
call dword [edx + 4]
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x40dbe0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
cmp esi, ebx
je 0x40dc24
push edi
mov edi, dword [esp + 0x1c]
mov eax, dword [esi + 0x10]
push 4
lea ecx, [esi + 0x10]
push 0x5b
push 0x1a
call dword [eax]
xor al, 0xd8
mov cl, al
not cl
xor cl, al
and cl, 0x2c
xor cl, al
xor cl, 0x8b
mov byte [edi], cl
mov esi, dword [esi]
inc edi
cmp esi, ebx
jne 0x40dbf3
mov eax, dword [esp + 0x10]
mov dword [eax], edi
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x18]
pop esi
mov dword [eax], edx
pop ebx
ret