joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ba430
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x560cd7
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x586220]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov dword [edi], 0x4284e8
mov esi, dword [edi + 0x74]
mov dword [esp + 0x18], 4
cmp esi, dword [edi + 0x78]
je 0x4ba484
nop
mov ecx, dword [esi]
test ecx, ecx
je 0x4ba47c
mov eax, dword [ecx]
push 1
call dword [eax]
add esi, 4
cmp esi, dword [edi + 0x78]
jne 0x4ba470
mov eax, dword [edi + 0x74]
mov dword [edi + 0x78], eax
test eax, eax
je 0x4ba4ac
push eax
call fcn.00534995
add esp, 4
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x58], 0x41f328
cmp dword [edi + 0x70], 0x10
jb 0x4ba4c4
push dword [edi + 0x5c]
call fcn.00534995
add esp, 4
mov dword [edi + 0x70], 0xf
mov dword [edi + 0x6c], 0
mov byte [edi + 0x5c], 0
mov dword [edi + 0x3c], 0x41f328
cmp dword [edi + 0x54], 0x10
jb 0x4ba4ee
push dword [edi + 0x40]
call fcn.00534995
add esp, 4
mov dword [edi + 0x54], 0xf
mov dword [edi + 0x50], 0
mov byte [edi + 0x40], 0
mov dword [edi + 0x20], 0x41f328
cmp dword [edi + 0x38], 0x10
jb 0x4ba518
push dword [edi + 0x24]
call fcn.00534995
add esp, 4
mov dword [edi + 0x38], 0xf
lea ecx, [edi + 4]
mov dword [edi + 0x34], 0
mov byte [edi + 0x24], 0
mov dword [esp + 0x18], 0xffffffff
call fcn.00498f30
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x4ba550
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov dword [esi + 0xa0], 0x41f328
cmp dword [esi + 0xb8], 0x10
jb 0x4ba574
push dword [esi + 0xa4]
call fcn.00534995
add esp, 4
mov dword [esi + 0xb8], 0xf
mov dword [esi + 0xb4], 0
mov byte [esi + 0xa4], 0
mov dword [esi + 0x84], 0x41f328
cmp dword [esi + 0x9c], 0x10
jb 0x4ba5b0
push dword [esi + 0x88]
call fcn.00534995
add esp, 4
mov dword [esi + 0x9c], 0xf
mov ecx, esi
mov dword [esi + 0x98], 0
mov byte [esi + 0x88], 0
pop esi
jmp fcn.004ba430
Function at 0x4bd9c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5610c8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x586220]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x38]
lea ecx, [esp + 0xc]
push edi
call fcn.00498df0
lea eax, [esp + 0xc]
mov dword [esp + 0x30], 0
push eax
lea ecx, [esi + 0x18]
call fcn.00498f60
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.00498f30
cmp dword [esi + 8], 0
jne 0x4bda7c
cmp dword [esi + 4], 0
jne 0x4bda7c
push dword [esi + 0xc]
mov dword [esi + 0x10], 2
call fcn.004beaa0
add esp, 4
mov dword [esi + 8], eax
mov ecx, eax
mov edx, dword [eax]
push 2
call dword [edx + 0x78]
mov eax, dword [esi + 0xc]
cmp eax, 2
jl 0x4bda7c
cmp eax, 3
jle 0x4bda57
cmp eax, 6
jne 0x4bda7c
mov eax, dword [esi + 0x10]
dec eax
je 0x4bda68
dec eax
je 0x4bda72
dec eax
jne 0x4bda7c
mov ecx, dword [esi + 4]
jmp 0x4bda75
mov ecx, dword [esi + 4]
push 2
mov eax, dword [ecx]
call dword [eax + 0x78]
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
push 2
call dword [eax + 0x78]
mov eax, dword [esi + 0x10]
dec eax
je 0x4bda8d
dec eax
je 0x4bda99
dec eax
jne 0x4bdaa5
mov ecx, dword [esi + 4]
jmp 0x4bda9c
mov ecx, dword [esi + 4]
push edi
mov eax, dword [ecx]
call dword [eax + 0x90]
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
push edi
call dword [eax + 0x90]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret 4

Function at 0x4c0990
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5616d3
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x586220]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi + 4], 0xffffffff
mov dword [esi + 8], 0
mov byte [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0xffffffff
mov dword [esi + 0x1c], 0
mov byte [esi + 0x20], 0
mov dword [esi], 0x428a9c
xorps xmm0, xmm0
mov byte [esi + 0x24], 0x20
movq qword [esi + 0x28], xmm0
mov dword [esi + 0x30], 0
push 0x24
mov dword [esp + 0x1c], 0
movq qword [esi + 0x34], xmm0
call fcn.00534944
add esp, 4
mov dword [esp + 0xc], eax
mov byte [esp + 0x18], 1
test eax, eax
je 0x4c0a5d
xorps xmm0, xmm0
mov ecx, eax
movdqu xmmword [eax], xmm0
push 0
movdqu xmmword [eax + 0x10], xmm0
push 1
mov dword [eax + 0x20], 0
call fcn.00461f00
mov dword [esi + 0x3c], eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
mov dword [esi + 0x3c], 0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x4c0ea0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5616d3
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x586220]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi + 4], 0xffffffff
mov dword [esi + 8], 0
mov byte [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0xffffffff
mov dword [esi + 0x1c], 0
mov byte [esi + 0x20], 0
mov dword [esi], 0x428ac4
xorps xmm0, xmm0
mov byte [esi + 0x24], 0x21
movq qword [esi + 0x28], xmm0
mov dword [esi + 0x30], 0
push 0x24
mov dword [esp + 0x1c], 0
movq qword [esi + 0x34], xmm0
call fcn.00534944
add esp, 4
mov dword [esp + 0xc], eax
mov byte [esp + 0x18], 1
test eax, eax
je 0x4c0f6d
xorps xmm0, xmm0
mov ecx, eax
movdqu xmmword [eax], xmm0
push 0
movdqu xmmword [eax + 0x10], xmm0
push 1
mov dword [eax + 0x20], 0
call fcn.00461f00
mov dword [esi + 0x3c], eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
mov dword [esi + 0x3c], 0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret

Function at 0x4c1f30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x561758
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x586220]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], 0x428c7c
mov eax, dword [esi + 0x34]
mov dword [esp + 0x14], 0
test eax, eax
je 0x4c1f7c
cmp dword [esi + 0x30], 0
je 0x4c1f7c
push eax
call fcn.00534ada
add esp, 4
mov ecx, esi
mov dword [esi + 0x34], 0
mov dword [esi + 0x30], 0
mov dword [esp + 0x14], 0xffffffff
call fcn.004eb970
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x4c20d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x561758
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x586220]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], 0x428a4c
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x14], 0
test eax, eax
je 0x4c211c
cmp dword [esi + 0x30], 0
je 0x4c211c
push eax
call fcn.00534ada
add esp, 4
mov ecx, esi
mov dword [esi + 0x3c], 0
mov dword [esi + 0x30], 0
mov dword [esp + 0x14], 0xffffffff
call fcn.004eb970
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x4c2400
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x561758
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x586220]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], 0x428b8c
mov eax, dword [esi + 0x34]
mov dword [esp + 0x14], 0
test eax, eax
je 0x4c244c
cmp dword [esi + 0x30], 0
je 0x4c244c
push eax
call fcn.00534ada
add esp, 4
mov ecx, esi
mov dword [esi + 0x34], 0
mov dword [esi + 0x30], 0
mov dword [esp + 0x14], 0xffffffff
call fcn.004eb970
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x4c25a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x561758
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x586220]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], 0x428d94
mov eax, dword [esi + 0x40]
mov dword [esp + 0x14], 0
test eax, eax
je 0x4c25ec
cmp dword [esi + 0x34], 0
je 0x4c25ec
push eax
call fcn.00534ada
add esp, 4
mov eax, dword [esi + 0x38]
mov dword [esi + 0x40], 0
mov dword [esi + 0x34], 0
test eax, eax
je 0x4c2610
cmp dword [esi + 0x30], 0
je 0x4c2610
push eax
call fcn.00534ada
add esp, 4
mov ecx, esi
mov dword [esi + 0x38], 0
mov dword [esi + 0x30], 0
mov dword [esp + 0x14], 0xffffffff
call fcn.004eb970
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x4c39f0
Capabilities:
Get hostname
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x56183b
mov eax, dword fs:[0]
push eax
sub esp, 0x2fc
mov eax, dword [0x586220]
xor eax, esp
mov dword [esp + 0x2f8], eax
push ebx
push esi
push edi
mov eax, dword [0x586220]
xor eax, esp
push eax
lea eax, [esp + 0x30c]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [esp + 0x320]
lea eax, [esp + 0x18]
push 0x2f0
push 0
push eax
call fcn.00535f30
push 0x2c4
lea eax, [esp + 0x50]
mov dword [esp + 0x2c], 0xffffffff
push 0
push eax
mov dword [esp + 0x38], 0
mov byte [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x4c], 0
mov byte [esp + 0x50], 0
mov dword [esp + 0x30], 0x42890c
mov byte [esp + 0x54], 0x64
call fcn.00535f30
add esp, 0x18
mov dword [esp + 0x304], 0
mov dword [esp + 0x314], 0
call fcn.004a1550
mov ecx, eax
call fcn.004a1650
mov dword [esi + 0x1d0], eax
call fcn.004d17f0
mov ecx, eax
call fcn.004d2630
test al, al
je 0x4c3ae1
mov dword [esi + 0x1d0], 0
push esi
mov ecx, ebx
call fcn.004c3ce0
push esi
mov ecx, ebx
call fcn.004c3bf0
lea edi, [esi + 0x134]
mov byte [esi + 0x1b3], 0
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c3b03
sub ecx, edx
jne 0x4c3b17
push 0x7f
push edi
call dword [0x57e38c]
lea ecx, [edi + 1]
lea ebx, [ebx]
mov al, byte [edi]
inc edi
test al, al
jne 0x4c3b20
sub edi, ecx
mov eax, 0x80
sub eax, edi
push eax
lea eax, [esi + 0x134]
add eax, edi
push 0
push eax
call fcn.00535f30
mov eax, dword [esp + 0x328]
lea edi, [esp + 0x50]
and eax, 0x13
mov ecx, 0xb0
or eax, 0x10000000
add esp, 0xc
mov dword [esp + 0x40], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.004c45c0
push 1
movzx eax, al
lea ecx, [ebx + 0x14]
push 8
mov dword [esp + 0x220], eax
lea eax, [esp + 0x20]
push 0x2c8
push eax
call fcn.004f1330
test al, al
jne 0x4c3b91
xor esi, esi
jmp 0x4c3ba0
mov esi, dword [esp + 0x304]
mov dword [esp + 0x14], 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x314], 0xffffffff
mov dword [esp + 0x18], 0x42890c
call fcn.004eb970
mov eax, esi
mov ecx, dword [esp + 0x30c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2f8]
xor ecx, esp
call fcn.00535482
add esp, 0x308
ret 8
Function at 0x4c3bf0
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x561880
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x586220]
xor eax, esp
mov dword [esp + 0x2c], eax
push esi
mov eax, dword [0x586220]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, dword [esp + 0x48]
lea eax, [esp + 0x24]
push 0xf
add esi, 0x2ac
xorps xmm0, xmm0
push eax
push 0x429080
movdqu xmmword [esp + 0x30], xmm0
movdqu xmmword [esi], xmm0
call dword [0x57e0dc]
test eax, eax
je 0x4c3cb4
cmp eax, 0x10
jae 0x4c3cb4
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x44], 0
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x41f328
call fcn.00497a00
push 0x10
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x48], 1
call fcn.00498980
cmp dword [esp + 0x20], 0x10
mov dword [esp + 8], 0x41f328
jb 0x4c3cb4
push dword [esp + 0xc]
call fcn.00534995
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00535482
add esp, 0x3c
ret 4

Function at 0x4c3ce0
Capabilities:
Access peb ldr_data
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x5618c6
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x586220]
xor eax, esp
mov dword [esp + 0xa0], eax
push esi
push edi
mov eax, dword [0x586220]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov esi, dword [esp + 0xc0]
lea eax, [esp + 0x2d]
push 0x7f
xorps xmm0, xmm0
mov byte [esp + 0x30], 0
lea edi, [esi + 0x270]
push 0
movdqu xmmword [edi], xmm0
push eax
movdqu xmmword [edi + 0x10], xmm0
call fcn.00535f30
add esp, 0xc
mov dword [esp + 0xc], 0x80
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x30]
push eax
call dword [0x57e038]
test eax, eax
je 0x4c3dd2
mov eax, dword [esp + 0xc]
dec eax
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0xbc], 0
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x41f328
call fcn.00497a00
push 0x20
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0xc0], 1
call fcn.00498980
cmp dword [esp + 0x28], 0x10
mov dword [esp + 0x10], 0x41f328
jb 0x4c3dd2
push dword [esp + 0x14]
call fcn.00534995
add esp, 4
mov byte [esi + 0x28f], 0
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.00535482
add esp, 0xb0
ret 4
Function at 0x4c45c0
Capabilities:
Encode data using xor
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x586220]
xor eax, esp
mov dword [esp + 0x104], eax
push edi
mov edi, ecx
mov al, byte [edi + 0x1bc]
test al, al
jne 0x4c479b
push ebx
push esi
push 0x100
xor ebx, ebx
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.00535f30
add esp, 0xc
lea eax, [esp + 0x10]
push 0x100
push eax
push 0x429454
call dword [0x57e0dc]
mov esi, eax
call dword [0x57e230]
cmp eax, 0xcb
je 0x4c4797
test esi, esi
je 0x4c4797
cmp esi, 0x20
jae 0x4c4797
mov ecx, 0x429460
lea eax, [esp + 0x10]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4c4660
test dl, dl
je 0x4c465c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4c4660
add eax, 2
add ecx, 2
test dl, dl
jne 0x4c4640
xor eax, eax
jmp 0x4c4665
sbb eax, eax
or eax, 1
test eax, eax
je 0x4c4797
mov ecx, 0x429468
lea eax, [esp + 0x10]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4c4696
test dl, dl
je 0x4c4692
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4c4696
add eax, 2
add ecx, 2
test dl, dl
jne 0x4c4676
xor eax, eax
jmp 0x4c469b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4c4797
mov ecx, 0x429470
lea eax, [esp + 0x10]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4c46d0
test dl, dl
je 0x4c46cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4c46d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4c46b0
xor eax, eax
jmp 0x4c46d5
sbb eax, eax
or eax, 1
test eax, eax
je 0x4c4797
push 8
lea eax, [esp + 0x14]
push 0x429478
push eax
call fcn.005375e0
add esp, 0xc
test eax, eax
jne 0x4c474f
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ebx
push eax
lea eax, [esp + 0x14]
push 0x429484
push eax
call fcn.0053a702
add esp, 0xc
cmp eax, 1
jne 0x4c4731
mov eax, dword [esp + 0xc]
inc eax
and eax, 0x800000ff
jns 0x4c4728
dec eax
or eax, 0xffffff00
inc eax
movzx ebx, byte [eax + 0x428f80]
jmp 0x4c476b
xor edx, edx
test esi, esi
je 0x4c4772
movsx ecx, byte [esp + edx + 0x10]
inc edx
movzx eax, bx
xor ecx, eax
movzx ebx, byte [ecx + 0x428f80]
cmp edx, esi
jb 0x4c4737
jmp 0x4c476b
xor edx, edx
test esi, esi
je 0x4c4772
movsx ecx, byte [esp + edx + 0x10]
inc edx
movzx eax, bx
xor ecx, eax
movzx ebx, byte [ecx + 0x428f80]
cmp edx, esi
jb 0x4c4755
xor eax, eax
cmp ax, bx
jne 0x4c4777
mov ebx, 0xff
pop esi
mov byte [edi + 0x1bc], bl
mov al, bl
pop ebx
pop edi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00535482
add esp, 0x108
ret
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x108]
pop edi
xor ecx, esp
call fcn.00535482
add esp, 0x108
ret
Function at 0x4ca3c0
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x5623d8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x586220]
xor eax, esp
mov dword [esp + 4], eax
push ebx
mov eax, dword [0x586220]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
cmp dword [0x583558], 0xffffffff
jne 0x4ca45c
mov dword [esp + 8], 0
call fcn.004cd610
push eax
lea ecx, [esp + 0xc]
call fcn.004a2900
cmp dword [0x583558], 0xffffffff
mov dword [esp + 0x18], 0
je 0x4ca424
mov bl, 1
jmp 0x4ca431
call dword [0x57e170]
cmp eax, 0xffffffff
jne 0x4ca446
xor bl, bl
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0xffffffff
call fcn.004a2940
mov al, bl
jmp 0x4ca45e
lea ecx, [esp + 8]
mov dword [0x583558], eax
mov dword [esp + 0x18], 0xffffffff
call fcn.004a2940
mov al, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00535482
add esp, 0x14
ret

Function at 0x4caab0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x562468
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x586220]
xor eax, esp
mov dword [esp + 0x34], eax
push esi
push edi
mov eax, dword [0x586220]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov esi, dword [esp + 0x54]
push 0x69
call dword [eax + 4]
push 0x34
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00535f30
xorps xmm0, xmm0
mov dword [esp + 0x1c], 0xffffffff
add esp, 0xc
mov dword [esp + 0x14], 0
mov byte [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x28], 0
mov byte [esp + 0x2c], 0
mov dword [esp + 0xc], 0x428eac
mov byte [esp + 0x30], 0x72
mov dword [esp + 0x34], 0
movq qword [esp + 0x38], xmm0
push esi
lea ecx, [edi + 0x58]
mov dword [esp + 0x50], 0
call fcn.004ef850
push 0
or esi, eax
lea ecx, [edi + 0x14]
mov eax, dword [esp + 0x5c]
push 8
mov dword [esp + 0x44], eax
lea eax, [esp + 0x14]
push 0xc
push eax
mov dword [esp + 0x48], esi
call fcn.004f1330
test al, al
je 0x4cab9a
cmp dword [esp + 0x14], 0
jne 0x4cab9a
mov esi, 1
jmp 0x4cab9c
xor esi, esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x4c], 0xffffffff
call fcn.004eb970
mov eax, esi
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00535482
add esp, 0x44
ret 8
Function at 0x4d1890
Capabilities:
Query service configuration

Disassembly:
push 0xffffffffffffffff
push 0x562e58
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x586220]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x586220]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor ebx, ebx
push 0x80000001
push ebx
push ebx
mov byte [esp + 0x23], bl
call dword [0x57e014]
mov esi, eax
mov dword [esp + 0x18], esi
test esi, esi
je 0x4d1a81
push 0x80000000
push 0x42955c
push esi
call dword [0x57e010]
mov ebp, eax
mov dword [esp + 0x20], ebp
test ebp, ebp
je 0x4d1a67
mov edi, dword [0x57e00c]
lea eax, [esp + 0x24]
push eax
push ebx
push ebx
push ebp
mov dword [esp + 0x34], ebx
call edi
test eax, eax
jne 0x4d1a60
call dword [0x57e230]
cmp eax, 0x7a
jne 0x4d1a60
mov esi, dword [esp + 0x24]
test esi, esi
je 0x4d1a5c
push esi
call fcn.00537658
mov ebx, eax
add esp, 4
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x4d1a5c
lea eax, [esp + 0x24]
push eax
push esi
push ebx
push ebp
call edi
test eax, eax
je 0x4d1a5c
mov eax, dword [ebx + 4]
cmp eax, 2
jne 0x4d1971
cmp byte [esp + 0x58], 0
jne 0x4d1985
cmp eax, 3
jne 0x4d1a5c
cmp byte [esp + 0x5c], 0
je 0x4d1a5c
push dword [ebx + 0xc]
lea ecx, [esp + 0x2c]
call fcn.00498e30
mov ebx, dword [esp + 0x40]
lea esi, [esp + 0x2c]
mov edx, dword [esp + 0x2c]
lea edi, [esp + 0x2c]
cmp ebx, 0x10
mov dword [esp + 0x50], 0
lea ecx, [esp + 0x2c]
cmovae esi, edx
add esi, dword [esp + 0x3c]
cmp ebx, 0x10
cmovae edi, edx
add edi, dword [esp + 0x3c]
cmp ebx, 0x10
mov eax, edi
cmovae ecx, edx
sub eax, ecx
push eax
push 0x22
push ecx
call fcn.005360a0
add esp, 0xc
mov ecx, edi
test eax, eax
cmovne ecx, eax
cmp ecx, edi
je 0x4d1a0a
lea eax, [ecx + 1]
mov ebp, edi
sub ebp, eax
xor ebx, ebx
xor edx, edx
cmp eax, edi
cmova ebp, ebx
test ebp, ebp
je 0x4d1a06
mov bl, byte [eax]
cmp bl, 0x22
je 0x4d1a00
mov byte [ecx], bl
inc ecx
inc edx
inc eax
cmp edx, ebp
jne 0x4d19f6
mov ebp, dword [esp + 0x20]
cmp dword [esp + 0x40], 0x10
lea edx, [esp + 0x2c]
cmovae edx, dword [esp + 0x2c]
test ecx, ecx
jne 0x4d1a20
xor eax, eax
jmp 0x4d1a24
mov eax, ecx
sub eax, edx
test esi, esi
je 0x4d1a2a
sub esi, ecx
push esi
push eax
lea ecx, [esp + 0x34]
call fcn.00443df0
lea ecx, [esp + 0x28]
call fcn.004998f0
mov dword [esp + 0x50], 0xffffffff
lea ecx, [esp + 0x28]
test al, al
je 0x4d1a53
mov byte [esp + 0x17], 1
call fcn.00498f30
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
push ebp
call dword [0x57e018]
push esi
call dword [0x57e018]
test ebx, ebx
je 0x4d1a7b
push ebx
call fcn.00534ada
add esp, 4
mov al, byte [esp + 0x17]
jmp 0x4d1a83
mov al, bl
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00535482
add esp, 0x40
ret 8
Function at 0x4d2550
Capabilities:
Query service status

Disassembly:
sub esp, 0x20
mov eax, dword [0x586220]
xor eax, esp
mov dword [esp + 0x1c], eax
imul ecx, dword [esp + 0x24], 0x3e8
mov eax, 0x51eb851f
push ebx
push ebp
push esi
push 0x80000001
mul ecx
push 0
mov esi, edx
xor bh, bh
push 0
shr esi, 5
call dword [0x57e014]
mov ebp, eax
test ebp, ebp
je 0x4d2610
push edi
push 0x80000000
push 0x42955c
push ebp
call dword [0x57e010]
mov edi, eax
test edi, edi
je 0x4d2608
mov bl, byte [esp + 0x38]
lea esp, [esp]
lea eax, [esp + 0x10]
mov dword [esp + 0x28], 0
xorps xmm0, xmm0
push eax
push edi
movdqu xmmword [esp + 0x18], xmm0
movq qword [esp + 0x28], xmm0
call dword [0x57e008]
test eax, eax
je 0x4d2601
mov eax, dword [esp + 0x14]
cmp eax, 2
je 0x4d25ee
cmp eax, 4
je 0x4d25ff
test bl, bl
jne 0x4d2601
test esi, esi
je 0x4d2601
dec esi
push 0x64
call fcn.004a28d0
add esp, 4
cmp dword [esp + 0x14], 4
jne 0x4d25b0
mov bh, 1
push edi
call dword [0x57e018]
push ebp
call dword [0x57e018]
pop edi
mov ecx, dword [esp + 0x28]
mov al, bh
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00535482
add esp, 0x20
ret 8

Function at 0x4d2630
Capabilities:
Check if process is running under wine
Get file version info

Disassembly:
sub esp, 0x1c
mov eax, dword [0x586220]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
mov esi, ecx
cmp byte [esi + 1], 1
je 0x4d2748
mov eax, dword [0x429510]
push ebx
mov dword [esp + 0x18], eax
xor bl, bl
mov ax, word [0x429514]
push ebp
mov word [esp + 0x20], ax
lea eax, [esp + 0x14]
push edi
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x14], 0
push eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
call fcn.00555442
mov ebp, eax
test ebp, ebp
je 0x4d270b
xor edx, edx
mov ecx, ebp
add ecx, 0x32
setb dl
neg edx
or edx, ecx
push edx
call fcn.00537658
mov edi, eax
add esp, 4
test edi, edi
je 0x4d270b
push edi
push ebp
push dword [esp + 0x20]
lea eax, [esp + 0x2c]
push eax
call fcn.00555448
test eax, eax
je 0x4d2702
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x14]
push eax
push 0x429518
push edi
call fcn.0055544e
test eax, eax
je 0x4d2702
cmp dword [esp + 0x1c], 0
je 0x4d2702
push 4
push 0x429540
push dword [esp + 0x18]
call fcn.005375e0
add esp, 0xc
movzx ebx, bl
test eax, eax
mov ecx, 1
cmove ebx, ecx
push edi
call fcn.00534ada
add esp, 4
lea eax, [esp + 0x14]
push eax
push 1
push 0
push 0x429548
push 0x80000001
call dword [0x57e06c]
mov edi, eax
test edi, edi
jne 0x4d2734
push dword [esp + 0x14]
call dword [0x57e064]
mov byte [esi + 1], 1
test edi, edi
je 0x4d2741
cmp bl, 1
jne 0x4d2745
mov byte [esi + 2], 1
pop edi
pop ebp
pop ebx
mov al, byte [esi + 2]
mov ecx, dword [esp + 0x1c]
pop esi
xor ecx, esp
call fcn.00535482
add esp, 0x1c
ret