joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4744c0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4ca908
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x4cd5ac]
push 0
lea ecx, [esp + 0x20]
call fcn.004c2e8a
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00473e60
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004c2db8
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004bf676
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004bf676
push 1
push 0
push 0
mov ecx, esi
call fcn.004bf61e
push 1
push 0
push 1
mov ecx, esi
call fcn.004bf61e
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004c2efc
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x474640
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4ca928
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004c2e8a
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00473e60
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004c2db8
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x4cd5ac]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x474704
cmp dword [esp + 0x40], 1
jne 0x474702
cmp ecx, eax
jge 0x474704
mov eax, ecx
cmp eax, 0xc8
jge 0x474710
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.004744c0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x4cd5a8]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004c2efc
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x474e80
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4ca993
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004bda96
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x799c70
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x7958c0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x4cd0b4]
push eax
mov ecx, edi
call fcn.004c3132
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004c464e
test eax, eax
je 0x474f9c
mov ecx, dword [esp + 0x3c]
call fcn.004c315f
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x4cd5cc]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x474f60
push edi
mov ecx, esi
call fcn.004c07c0
mov ecx, esi
call fcn.00475100
cmp dword [esp + 0x38], 1
jne 0x474f95
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004c08fb
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x4779b0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4779e3
push esi
call fcn.0047aac0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4779dc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x477a69
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x477a52
mov eax, dword [esi + 8]
test eax, eax
je 0x477a07
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x477a4e
cmp eax, 2
je 0x477a52
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4779fa
cmp eax, 3
je 0x477a2d
cmp eax, 1
jne 0x4779fa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4779fa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4779fa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00477a90
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x477a78
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00477a90
add esp, 4
pop esi
ret
Function at 0x48f190
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4cb4d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0048ed40
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0048edc0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0048edc0
lea ecx, [esi + 0xc]
call fcn.004bc446
lea ecx, [esi + 0x10]
call fcn.004bc446
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00490350
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00490350
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00490350
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004bc4bb
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004bc4bb
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4966d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x80a024]
xor edx, edx
cmp eax, edx
jne 0x4966f6
xor eax, eax
mov byte [eax + 0x809f24], al
inc eax
cmp eax, 0x100
jl 0x4966de
mov dword [0x80a024], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x809f24
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x496787
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x49675a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x496728
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x496800
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x496853
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x49683a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49d210
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4cb8ce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0049db30
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x798dc4
call fcn.004bc1fc
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x49d2a3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004bc1fc
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x49d29c
push 0
mov ecx, eax
call fcn.00494310
mov dword [esi + 0xc], eax
jmp 0x49d2a5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x49d2a5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x442564
Capabilities:
Parse credit card information

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
xor cl, cl
mov bl, 1
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x442702
mov edx, 0x10000000
cmp eax, 0x7c
je 0x442702
cmp eax, 0x29
jne 0x44259f
cmp dword [esi + 0x10], 0
jne 0x442702
test dword [esi + 0x50], edx
je 0x442708
cmp eax, 0x2e
jne 0x4425ba
push 5
lea ecx, [esi + 0x24]
call fcn.00442803
mov ecx, esi
call fcn.0044253b
jmp 0x4426ea
cmp eax, 0x5c
jne 0x442615
mov ecx, esi
call fcn.0044253b
mov eax, dword [esi + 0x50]
and eax, 0x80
je 0x4425ec
cmp byte [esi + 0x48], 0x62
jne 0x4425ec
push 4
lea ecx, [esi + 0x24]
call fcn.00442803
mov ecx, esi
call fcn.0044253b
jmp 0x4426f1
test eax, eax
je 0x442609
cmp byte [esi + 0x48], 0x42
jne 0x442609
push 4
lea ecx, [esi + 0x24]
call fcn.00442803
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x4425e0
mov ecx, esi
call fcn.004432f0
jmp 0x4426ea
cmp eax, 0x5b
jne 0x442675
mov ecx, esi
call fcn.0044253b
lea ecx, [esi + 0x24]
call fcn.00443fc0
cmp dword [esi + 0x4c], 0x5e
jne 0x44263d
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.0044253b
test dword [esi + 0x50], 0x20000000
je 0x44265d
cmp dword [esi + 0x4c], 0x5d
jne 0x44265d
push 0x5d
lea ecx, [esi + 0x24]
call fcn.0044400a
mov ecx, esi
call fcn.0044253b
mov ecx, esi
call fcn.00443d87
cmp dword [esi + 0x4c], 0x5d
je 0x4425ae
push 4
jmp 0x44270a
cmp eax, 0x28
jne 0x442692
mov ecx, esi
call fcn.0044253b
mov ecx, esi
call fcn.004433d0
cmp dword [esi + 0x4c], 0x29
mov bl, al
je 0x4426df
jmp 0x442708
cmp eax, 0x5e
jne 0x44269e
push 2
jmp 0x4425d8
cmp eax, 0x24
jne 0x4426aa
push 3
jmp 0x4425d8
cmp eax, 0x2a
je 0x4426fe
cmp eax, 0x2b
je 0x4426fe
cmp eax, 0x3f
je 0x4426fe
cmp eax, 0x7b
je 0x4426fe
cmp eax, 0x7d
jne 0x4426c8
test dword [esi + 0x50], edx
je 0x4426fa
cmp eax, 0x5d
jne 0x4426d2
test dword [esi + 0x50], edx
je 0x44266e
movzx eax, byte [esi + 0x48]
push eax
lea ecx, [esi + 0x24]
call fcn.00443544
mov ecx, esi
call fcn.0044253b
test bl, bl
je 0x4426f1
mov ecx, esi
call fcn.00443480
mov cl, 1
mov bl, cl
jmp 0x44256d
push 6
jmp 0x44270a
push 0xa
jmp 0x44270a
pop edi
pop esi
mov al, cl
pop ebx
ret
push 5
call fcn.0044b27a
int3
Function at 0x4469f5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x446a00
xor eax, eax
pop ebp
ret
push ebx
push esi
mov esi, dword [ebp + 8]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x446ab8
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x42dfd0]
movzx eax, byte [edx + 1]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x42dfd0]
movzx eax, byte [edx + 2]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x42dfd0]
movzx eax, byte [edx + 3]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x42dfd0]
movzx eax, byte [edx + 4]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x42dfd0]
movzx eax, byte [edx + 5]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x42dfd0]
movzx eax, byte [edx + 6]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x42dfd0]
movzx eax, byte [edx + 7]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x42dfd0]
add edx, 8
sub esi, 8
dec edi
jne 0x446a1b
pop edi
test esi, esi
je 0x446ad1
movzx eax, byte [edx]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x42dfd0]
inc edx
dec esi
jne 0x446abc
not ecx
pop esi
mov eax, ecx
pop ebx
pop ebp
ret

Function at 0x446ad9
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov edx, 0xff
and eax, edx
shr esi, 8
mov eax, dword [eax*4 + 0x42dfd0]
xor eax, esi
movzx ecx, al
add ecx, dword [edi + 4]
mov dword [edi], eax
mov eax, dword [edi + 8]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [edi + 4], ecx
shr ecx, 0x18
xor ecx, eax
and ecx, edx
shr eax, 8
xor eax, dword [ecx*4 + 0x42dfd0]
mov dword [edi + 8], eax
pop edi
pop esi
ret
Function at 0x44ab0c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x426a92
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x43383c]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x43383c]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
xor ebx, ebx
cmp dword [esi + 0x40], ebx
je 0x44ac59
cmp byte [esi + 0x45], bl
je 0x44ac59
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x44ab70
xor al, al
jmp 0x44ac5b
push ebx
push 8
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.0044059c
lea eax, [esi + 0x48]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
cmp ecx, 0x10
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
mov ecx, dword [ecx + 0x40]
push eax
mov eax, dword [esp + 0x34]
lea edi, [esp + 0x24]
cmovae edi, edx
lea esi, [esp + 0x24]
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
push dword [esp + 0x24]
call dword [edx + 0x20]
sub eax, ebx
je 0x44abda
dec eax
jne 0x44ac3f
mov esi, dword [esp + 0x14]
jmp 0x44abe1
mov esi, dword [esp + 0x14]
mov byte [esi + 0x45], bl
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
cmp ecx, 0x10
lea eax, [esp + 0x20]
cmovae eax, edx
sub edi, eax
je 0x44ac20
push dword [esi + 0x50]
cmp ecx, 0x10
push edi
lea eax, [esp + 0x28]
cmovae eax, edx
push 1
push eax
call fcn.0044d675
add esp, 0x10
cmp edi, eax
jne 0x44ac48
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
cmp byte [esi + 0x45], 0
je 0x44ac46
test edi, edi
jne 0x44ab9f
push ebx
push 8
lea ecx, [esp + 0x28]
call fcn.0043e054
jmp 0x44ab97
dec eax
dec eax
jne 0x44ac4c
inc eax
jmp 0x44ac4a
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [esp + 0x20]
call fcn.0043df71
mov al, bl
jmp 0x44ac5b
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0044bc2a
mov esp, ebp
pop ebp
ret
Function at 0x403360
Capabilities:
Set registry value

Disassembly:
sub esp, 0x168
mov eax, dword [0x495f14]
xor eax, esp
mov dword [esp + 0x164], eax
mov eax, dword [0x4978b0]
test eax, eax
je 0x4034b3
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.0045379d
add esp, 0x18
push 0
lea ecx, [esp + 4]
push ecx
push 0x497868
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 0x4033f4
xor al, al
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.00453275
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.00453823
push eax
call fcn.004537f4
add esp, 8
call fcn.00453801
mov esi, eax
shl esi, 0x10
call fcn.00453801
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.004032a0
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 0x403440
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.00453275
add esp, 0x168
ret
mov ecx, dword [esp + 0x164]
xor ecx, esp
mov al, 1
call fcn.00453275
add esp, 0x168
ret

Function at 0x403a20
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 0x403a5e
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 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 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 [0x46f124]
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