joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a28f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x13c4], 4
jne 0x4a2905
xor eax, eax
pop esi
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x13c4], 0
push ebx
push edi
test ecx, ecx
je 0x4a2a68
mov eax, dword [ebp + 0x10]
test eax, eax
js 0x4a2a68
cmp byte [esi + 0x1390], 0
je 0x4a2940
pop edi
or eax, 0xffffffff
mov dword [esi + 0x13c4], eax
or eax, eax
pop ebx
pop esi
pop ebp
ret
test eax, eax
jne 0x4a2949
pop edi
pop ebx
pop esi
pop ebp
ret
push dword [esi]
mov dword [esi + 0x13a8], eax
mov dword [esi + 0x13a4], ecx
call fcn.004a0852
add esp, 4
test eax, eax
jne 0x4a2a2a
lea edi, [esi + 0x1394]
nop dword [eax]
cmp dword [esi + 0x1398], 0
jne 0x4a29c3
mov ebx, dword [esi]
push ebx
call fcn.0048cc0f
add esp, 4
cmp eax, 0xffffffff
je 0x4a29c3
push ebx
push eax
call fcn.0048d0ae
push dword [esi]
lea eax, [esi + 4]
push 0x1388
push 1
push eax
call fcn.00488d1e
push dword [esi]
mov ebx, eax
call fcn.004a0852
add esp, 0x1c
test eax, eax
jne 0x4a2a2a
lea eax, [esi + 4]
mov dword [esi + 0x138c], ebx
mov dword [esi + 0x1398], ebx
mov dword [edi], eax
push edi
call sym.yylauncher.exe_BZ2_bzDecompress
add esp, 4
test eax, eax
jne 0x4a2a4f
mov ebx, dword [esi]
push ebx
call fcn.0048cc0f
add esp, 4
cmp eax, 0xffffffff
jne 0x4a2a05
cmp dword [esi + 0x1398], 0
jne 0x4a2a0f
cmp dword [esi + 0x13a8], 0
jbe 0x4a2a0f
pop edi
mov eax, 0xfffffff9
mov dword [esi + 0x13c4], eax
or eax, 0xffffffff
pop ebx
pop esi
pop ebp
ret
push ebx
push eax
call fcn.0048d0ae
add esp, 8
cmp dword [esi + 0x13a8], 0
je 0x4a2a3d
push dword [esi]
call fcn.004a0852
add esp, 4
test eax, eax
je 0x4a2970
pop edi
mov eax, 0xfffffffa
mov dword [esi + 0x13c4], eax
or eax, 0xffffffff
pop ebx
pop esi
pop ebp
ret
mov eax, dword [ebp + 0x10]
pop edi
pop ebx
mov dword [esi + 0x13c4], 0
pop esi
pop ebp
ret
cmp eax, 4
jne 0x4a2a6d
mov dword [esi + 0x13c4], eax
mov eax, dword [ebp + 0x10]
sub eax, dword [esi + 0x13a8]
pop edi
pop ebx
pop esi
pop ebp
ret
mov eax, 0xfffffffe
pop edi
mov dword [esi + 0x13c4], eax
or eax, 0xffffffff
pop ebx
pop esi
pop ebp
ret
Function at 0x4a2eb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4a2ec5
mov dword [edi], 0
test esi, esi
je 0x4a3095
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x13c4], 0
test ecx, ecx
je 0x4a3095
mov eax, dword [ebp + 0x14]
test eax, eax
js 0x4a3095
cmp byte [esi + 0x1390], 0
je 0x4a2f10
test edi, edi
je 0x4a2f00
mov dword [edi], 0xffffffff
pop edi
mov dword [esi + 0x13c4], 0xffffffff
xor eax, eax
pop esi
pop ebp
ret
test eax, eax
jne 0x4a2f2a
test edi, edi
je 0x4a2f1a
mov dword [edi], eax
pop edi
mov dword [esi + 0x13c4], 0
xor eax, eax
pop esi
pop ebp
ret
push ebx
push dword [esi]
mov dword [esi + 0x13a8], eax
mov dword [esi + 0x13a4], ecx
call fcn.004a0852
add esp, 4
test eax, eax
jne 0x4a3028
lea ebx, [esi + 0x1394]
nop
cmp dword [esi + 0x1398], 0
jne 0x4a2fb0
mov eax, dword [esi]
push eax
mov dword [ebp + 0xc], eax
call fcn.0048cc0f
add esp, 4
cmp eax, 0xffffffff
je 0x4a2fb0
push dword [ebp + 0xc]
push eax
call fcn.0048d0ae
push dword [esi]
lea eax, [esi + 4]
push 0x1388
push 1
push eax
call fcn.00488d1e
push dword [esi]
mov dword [ebp + 0xc], eax
call fcn.004a0852
add esp, 0x1c
test eax, eax
jne 0x4a3028
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x138c], eax
mov dword [esi + 0x1398], eax
lea eax, [esi + 4]
mov dword [ebx], eax
push ebx
call sym.yylauncher.exe_BZ2_bzDecompress
add esp, 4
test eax, eax
jne 0x4a305f
mov eax, dword [esi]
push eax
mov dword [ebp + 0xc], eax
call fcn.0048cc0f
add esp, 4
cmp eax, 0xffffffff
jne 0x4a3001
cmp dword [esi + 0x1398], 0
jne 0x4a300d
cmp dword [esi + 0x13a8], 0
jbe 0x4a300d
test edi, edi
je 0x4a2ff0
mov dword [edi], 0xfffffff9
pop ebx
pop edi
mov dword [esi + 0x13c4], 0xfffffff9
xor eax, eax
pop esi
pop ebp
ret
push dword [ebp + 0xc]
push eax
call fcn.0048d0ae
add esp, 8
cmp dword [esi + 0x13a8], 0
je 0x4a3043
push dword [esi]
call fcn.004a0852
add esp, 4
test eax, eax
je 0x4a2f50
test edi, edi
je 0x4a3032
mov dword [edi], 0xfffffffa
pop ebx
pop edi
mov dword [esi + 0x13c4], 0xfffffffa
xor eax, eax
pop esi
pop ebp
ret
test edi, edi
je 0x4a304d
mov dword [edi], 0
mov eax, dword [ebp + 0x14]
pop ebx
pop edi
mov dword [esi + 0x13c4], 0
pop esi
pop ebp
ret
cmp eax, 4
jne 0x4a3082
test edi, edi
je 0x4a306a
mov dword [edi], eax
mov eax, dword [ebp + 0x14]
sub eax, dword [esi + 0x13a8]
pop ebx
pop edi
mov dword [esi + 0x13c4], 4
pop esi
pop ebp
ret
test edi, edi
je 0x4a3088
mov dword [edi], eax
pop ebx
mov dword [esi + 0x13c4], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret
test edi, edi
je 0x4a309f
mov dword [edi], 0xfffffffe
test esi, esi
je 0x4a30ad
mov dword [esi + 0x13c4], 0xfffffffe
pop edi
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4a5000
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov bl, byte [ecx + 0x34]
push esi
mov esi, dword [ecx + 0x38]
test esi, esi
jle 0x4a5033
mov edx, dword [ecx + 0x260]
push edi
movzx edi, bl
mov eax, edx
shl edx, 8
shr eax, 0x18
xor eax, edi
xor edx, dword [eax*4 + 0x4d6f90]
sub esi, 1
jne 0x4a5016
mov dword [ecx + 0x260], edx
pop edi
mov eax, dword [ecx + 0x34]
mov byte [eax + ecx + 0x58], 1
mov edx, dword [ecx + 0x38]
mov eax, edx
sub eax, 1
je 0x4a50e2
sub eax, 1
je 0x4a50c6
sub eax, 1
je 0x4a509e
mov byte [edx + ecx + 0x54], 1
mov edx, dword [ecx + 0x24]
mov eax, dword [ecx + 0x44]
mov byte [edx + eax], bl
mov edx, dword [ecx + 0x44]
inc edx
mov dword [ecx + 0x44], edx
mov eax, dword [ecx + 0x24]
mov byte [edx + eax], bl
inc dword [ecx + 0x44]
mov edx, dword [ecx + 0x44]
mov eax, dword [ecx + 0x24]
mov byte [edx + eax], bl
inc dword [ecx + 0x44]
mov edx, dword [ecx + 0x44]
mov eax, dword [ecx + 0x24]
mov byte [edx + eax], bl
inc dword [ecx + 0x44]
mov esi, dword [ecx + 0x44]
mov dl, byte [ecx + 0x38]
mov eax, dword [ecx + 0x24]
sub dl, 4
mov byte [esi + eax], dl
inc dword [ecx + 0x44]
pop esi
pop ebx
ret
mov eax, dword [ecx + 0x44]
mov edx, dword [ecx + 0x24]
pop esi
mov byte [edx + eax], bl
mov edx, dword [ecx + 0x44]
mov eax, dword [ecx + 0x24]
inc edx
mov dword [ecx + 0x44], edx
mov byte [edx + eax], bl
inc dword [ecx + 0x44]
mov edx, dword [ecx + 0x44]
mov eax, dword [ecx + 0x24]
mov byte [edx + eax], bl
inc dword [ecx + 0x44]
pop ebx
ret
mov eax, dword [ecx + 0x44]
mov edx, dword [ecx + 0x24]
pop esi
mov byte [edx + eax], bl
mov edx, dword [ecx + 0x44]
mov eax, dword [ecx + 0x24]
inc edx
mov dword [ecx + 0x44], edx
mov byte [edx + eax], bl
inc dword [ecx + 0x44]
pop ebx
ret
mov eax, dword [ecx + 0x44]
mov edx, dword [ecx + 0x24]
pop esi
mov byte [edx + eax], bl
inc dword [ecx + 0x44]
pop ebx
ret
Function at 0x401730
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x495f14]
xor eax, esp
mov dword [esp + 0x94], eax
push esi
mov esi, dword [esp + 0xa4]
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4017d0
cmp dword [esp + 0x14], 2
jne 0x4017d0
cmp dword [esp + 8], 5
push esi
jae 0x4017a1
mov ecx, dword [esp + 0xa4]
push ecx
call fcn.00402280
xor ecx, ecx
add esp, 8
test al, al
sete cl
pop esi
mov eax, ecx
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00453275
add esp, 0x98
ret
mov edx, dword [esp + 0xa4]
push edx
call fcn.004024e0
xor ecx, ecx
add esp, 8
test al, al
sete cl
pop esi
mov eax, ecx
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00453275
add esp, 0x98
ret
mov ecx, dword [esp + 0x98]
pop esi
xor ecx, esp
mov eax, 1
call fcn.00453275
add esp, 0x98
ret

Function at 0x4017f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x495f14]
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 0x401843
mov eax, 1
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00453275
add esp, 0x108
ret
mov ecx, dword [esp + 4]
push esi
push ecx
call fcn.00401730
mov ecx, dword [esp + 0x110]
add esp, 8
pop esi
xor ecx, esp
call fcn.00453275
add esp, 0x108
ret

Function at 0x402280
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x468ccb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
mov eax, dword [0x495f14]
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.0045358a
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 0x402376
lea ecx, [esp + 0x24]
push esi
push ecx
call fcn.00453476
mov edx, dword [0x495150]
add esp, 4
push edx
lea ecx, [esp + 0x10]
call fcn.00451d80
lea ecx, [esp + 0xc]
mov dword [esp + 0x138], ebx
call fcn.00451c90
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.004533f0
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x402361
lea ecx, [esp + 0xc]
call fcn.00451c90
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402340
sub eax, edx
push edi
add esi, eax
push 0x46f3ac
push esi
call fcn.004533ad
add esp, 0xc
cmp eax, 1
jne 0x402361
mov bl, al
lea ecx, [esp + 0xc]
mov dword [esp + 0x138], 0xffffffff
call fcn.0040bf20
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.00453275
add esp, 0x130
ret
Function at 0x4023a0
Capabilities:
Get disk information via ioctl

Disassembly:
sub esp, 0x20
mov eax, dword [0x495f14]
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.0045358a
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 0x40241c
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 0x402415
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.00453275
add esp, 0x20
ret

Function at 0x402770
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x495f14]
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 0x4027a3
cmp byte [esp + 1], 0x3a
mov al, byte [esp]
je 0x4027a5
mov al, 0x43
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00453275
add esp, 0x108
ret
Function at 0x402dd0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x468d2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x283c
call fcn.00453760
mov eax, dword [0x495f14]
push ebx
xor eax, ebp
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x2840], eax
mov eax, dword [0x495158]
push edi
push eax
lea ecx, [esp + 0x18]
call fcn.00451d80
mov ecx, dword [ebp + 8]
push ecx
xor edi, edi
mov ecx, eax
mov dword [esp + 0x2858], edi
call fcn.00451c90
push eax
lea edx, [esp + 0x38]
push edx
call fcn.0045358a
add esp, 0xc
lea ecx, [esp + 0x14]
mov dword [esp + 0x2854], 0xffffffff
call fcn.0040bf20
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 ebx, eax
cmp ebx, 0xffffffff
je 0x402fc5
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 ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x402f6c
mov eax, dword [esp + 0x13c]
test eax, eax
je 0x402eec
cmp eax, dword [esp + 0x10]
ja 0x402eec
lea edx, [esp + eax + 0x130]
push 0x64
push edx
lea eax, [esi + 4]
push eax
call fcn.004535f0
add esp, 0xc
mov eax, dword [esp + 0x140]
test eax, eax
je 0x402f13
cmp eax, dword [esp + 0x10]
ja 0x402f13
push 0x64
lea ecx, [esp + eax + 0x134]
push ecx
lea edx, [esi + 0x68]
push edx
call fcn.004535f0
add esp, 0xc
mov eax, dword [esp + 0x144]
test eax, eax
je 0x402f3d
cmp eax, dword [esp + 0x10]
ja 0x402f3d
push 0x64
lea eax, [esp + eax + 0x134]
push eax
lea ecx, [esi + 0x130]
push ecx
call fcn.004535f0
add esp, 0xc
mov eax, dword [esp + 0x148]
test eax, eax
je 0x402f6c
cmp eax, 0xffffffff
je 0x402f6c
cmp eax, dword [esp + 0x10]
ja 0x402f6c
lea edx, [esp + eax + 0x130]
push 0x64
push edx
lea eax, [esi + 0xcc]
push eax
call fcn.004535f0
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 ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x402fba
push 0x64
lea eax, [esp + 0x144]
push eax
add esi, 0xcc
push esi
call fcn.004535f0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x402fca
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.00453275
mov esp, ebp
pop ebp
ret
Function at 0x402ff0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x468d48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [0x495f14]
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 0x40304a
mov eax, 0x15
jmp 0x403112
mov ecx, dword [0x49515c]
push esi
push edi
push ecx
lea ecx, [esp + 0x14]
call fcn.00451d80
movsx edx, bl
push edx
mov ecx, eax
mov dword [esp + 0x44], 0
call fcn.00451c90
push eax
lea eax, [esp + 0x30]
push eax
call fcn.0045358a
add esp, 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 0xffffffff
call fcn.0040bf20
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 0x403109
mov ebx, dword [esp + 0x4c]
push ebp
push ebx
push edi
call fcn.00402980
mov esi, eax
add esp, 0xc
test esi, esi
je 0x403100
push ebp
push edi
call fcn.004025e0
mov esi, eax
add esp, 8
test esi, esi
je 0x403100
mov al, byte [esp + 0x54]
test al, al
je 0x403100
push ebp
push ebx
call fcn.00402c40
mov esi, eax
add esp, 8
test esi, esi
je 0x403100
push ebp
push ebx
call fcn.00402dd0
add esp, 8
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40310e
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.00453275
add esp, 0x34
ret

Function at 0x403340
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x4032d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
setne al
ret
Function at 0x403b90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x114
mov eax, dword [0x495f14]
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 0x403bd4
pop edi
mov eax, 6
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00453275
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 0x403c70
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 0x403c5c
mov edi, edi
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.00403b90
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 0x403c20
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.00453275
add esp, 0x114
ret

Function at 0x403c90
Capabilities:
Query service configuration

Disassembly:
push ecx
mov eax, dword [0x4978b4]
test eax, eax
jne 0x403c9e
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.00451e9e
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 [0x4978b4]
lea eax, [esp + 0x10]
push eax
push ecx
push esi
push edx
call ebp
test eax, eax
je 0x403d02
cmp dword [esi + 4], 3
sete bl
push esi
call fcn.0045417c
add esp, 4
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret
Function at 0x403d20
Capabilities:
Query service configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468d60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x314
mov eax, dword [0x495f14]
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 0x403d73
mov eax, dword [0x4978b4]
xor edi, edi
cmp eax, edi
jne 0x403dac
mov dword [0x4953fc], 0x2000000c
mov eax, dword [ebp - 0x320]
test eax, eax
je 0x403d85
mov edx, dword [0x4953fc]
mov dword [eax], edx
mov ecx, dword [ebp - 0xc]
mov eax, dword [0x4953fc]
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.00453275
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.00451e9e
mov ecx, dword [ebp - 0x31c]
mov edx, dword [0x4978b4]
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x31c]
push eax
push ecx
push ebx
push edx
call esi
test eax, eax
je 0x403f59
mov esi, 0x104
push esi
mov dword [0x4953fc], edi
call fcn.00451e9e
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 0x403e3a
push edi
add esi, 0x104
call fcn.0045417c
push esi
call fcn.00451e9e
add esp, 8
jmp 0x403e10
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x318]
push eax
push 0
push 0
push edi
call fcn.00454211
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x318]
push edx
push 0
push 0
push edi
call fcn.00454181
mov eax, dword [ebx + 0xc]
push eax
call fcn.00453aec
push edi
call fcn.00453aec
push 0x103
lea ecx, [ebp - 0x118]
push str.FNPLicensingService
push ecx
call fcn.0045385c
lea edx, [ebp - 0x118]
push edx
call fcn.00453aec
mov eax, dword [ebx + 0xc]
add esp, 0x40
test eax, eax
je 0x403eb3
push edi
push eax
call fcn.004538ef
add esp, 8
test eax, eax
jne 0x403ebd
mov dword [0x4953fc], 0x2000000d
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x403ed8
lea ecx, [ebp - 0x118]
push ecx
push eax
call fcn.004538ef
add esp, 8
test eax, eax
jne 0x403ee2
mov dword [0x4953fc], 0x2000000e
test byte [ebx], 0x10
jne 0x403ef3
mov dword [0x4953fc], 0x2000000f
jmp 0x403f50
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x403f46
push str.FLEXnet_Licensing_Service
push eax
call fcn.004539a1
add esp, 8
test eax, eax
jne 0x403f46
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x403f50
push str..System
push eax
call fcn.004539a1
add esp, 8
test eax, eax
je 0x403f50
mov eax, dword [ebx + 0x1c]
push str.LocalSystem
push eax
call fcn.004539a1
add esp, 8
test eax, eax
je 0x403f50
mov dword [0x4953fc], 0x20000011
jmp 0x403f50
mov dword [0x4953fc], 0x20000010
push edi
call fcn.0045417c
add esp, 4
push ebx
call fcn.0045417c
add esp, 4
jmp 0x403d73
Function at 0x4045e0
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 [0x497888], edx
mov edx, dword [0x497874]
mov dword [0x497880], eax
mov eax, dword [esp + 0x10]
push 0x49787c
mov dword [0x497884], ecx
mov ecx, dword [esp + 0x18]
push edx
mov dword [0x49787c], 0x10
mov dword [0x49788c], 0
mov dword [0x497890], eax
mov dword [0x497894], ecx
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov edi, eax
test edi, edi
jne 0x40467d
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 0x404678
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