joyce8/EMBER2024-capa huggingface dataset:
Function at 0x531040
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
sub esp, 0x12c
mov eax, dword [0x653af8]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
mov ebx, dword [esp + 0x134]
push ebp
push esi
push edi
movups xmm0, xmmword [ebx + 0x2c]
mov eax, dword [ebx + 0xc]
mov ebp, 0x30
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x14]
movups xmmword [esp + 0x38], xmm0
mov dword [esp + 0x10], eax
movups xmm0, xmmword [ebx + 0x3c]
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x1c]
movups xmmword [esp + 0x48], xmm0
mov dword [esp + 0x24], eax
movups xmm0, xmmword [ebx + 0x4c]
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x24]
movups xmmword [esp + 0x58], xmm0
mov dword [esp + 0x18], eax
movups xmm0, xmmword [ebx + 0x5c]
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x34], ebx
movups xmmword [esp + 0x68], xmm0
nop dword [eax]
mov edx, dword [eax]
lea eax, [eax + 4]
mov esi, dword [eax - 0x38]
mov edi, edx
mov ecx, edx
rol edi, 0xf
rol ecx, 0xd
xor edi, ecx
shr edx, 0xa
xor edi, edx
mov ecx, esi
mov edx, esi
ror ecx, 7
rol edx, 0xe
xor edx, ecx
shr esi, 3
xor edx, esi
add edi, edx
add edi, dword [eax - 0x3c]
add edi, dword [eax - 0x18]
mov dword [eax + 4], edi
sub ebp, 1
jne 0x5310d0
mov ebp, dword [esp + 0x2c]
xor edi, edi
mov ebx, dword [esp + 0x24]
mov esi, ebx
mov eax, ebx
rol eax, 7
mov ecx, ebx
ror esi, 0xb
not ecx
and ecx, dword [esp + 0x18]
xor esi, eax
mov eax, ebx
mov edx, ebp
ror eax, 6
xor esi, eax
ror edx, 0xd
mov eax, dword [esp + 0x14]
and eax, ebx
or ecx, eax
mov eax, ebp
rol eax, 0xa
add esi, ecx
add esi, dword [edi + 0x494aa0]
xor edx, eax
add esi, dword [esp + edi + 0x38]
mov eax, ebp
add esi, dword [esp + 0x28]
add edi, 4
ror eax, 2
xor edx, eax
mov eax, dword [esp + 0x1c]
mov ecx, eax
and eax, ebp
or ecx, ebp
and ecx, dword [esp + 0x10]
or ecx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], eax
add edx, ecx
mov eax, dword [esp + 0x14]
mov ecx, ebp
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x18], eax
lea ebp, [edx + esi]
mov eax, dword [esp + 0x10]
add ebx, esi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ecx
cmp edi, 0x100
jb 0x531114
mov eax, dword [esp + 0x30]
add eax, ebp
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
add dword [ebx + 0x10], ecx
mov ecx, dword [esp + 0x12c]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 4]
add dword [ebx + 0x14], eax
mov eax, dword [esp + 0x14]
add dword [ebx + 0x18], eax
mov eax, dword [esp + 0x18]
add dword [ebx + 0x1c], eax
mov eax, dword [esp + 8]
add dword [ebx + 0x20], eax
mov eax, dword [esp + 0xc]
add dword [ebx + 0x24], eax
mov eax, dword [esp + 0x1c]
add dword [ebx + 0x28], eax
pop ebx
xor ecx, esp
call fcn.00602a00
add esp, 0x12c
ret
Function at 0x5320a0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x30
mov eax, dword [0x653af8]
xor eax, esp
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x34]
push ebx
push esi
push edi
mov edi, dword [edx + 0x24]
mov ebx, 0
sub edi, 6
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], edi
mov eax, ebx
je 0x53212b
mov esi, dword [esp + 0x44]
mov ecx, edi
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x10]
xor esi, esi
nop
cmp ebx, dword [edx + 0x24]
ja 0x532278
cmp esi, edi
jae 0x532112
nop dword [eax]
cmp eax, 4
jae 0x53210e
mov edi, dword [esp + 0xc]
lea edx, [eax + ebx*4]
mov ecx, dword [esp + esi*4 + 0x18]
inc eax
inc esi
mov dword [edi + edx*4 + 0x38], ecx
mov edi, dword [esp + 0x10]
cmp esi, edi
jb 0x5320f0
mov edx, dword [esp + 0xc]
cmp eax, 4
lea ecx, [ebx + 1]
cmovne ecx, ebx
mov ebx, ecx
xor ecx, ecx
cmp eax, 4
cmovne ecx, eax
mov eax, ecx
cmp esi, edi
jb 0x5320e0
cmp ebx, dword [edx + 0x24]
ja 0x532278
mov esi, 0x650578
nop dword [eax]
movzx ecx, byte [esp + edi*4 + 0x15]
mov dl, byte [esp + 0x18]
xor dl, byte [ecx + 0x64d378]
mov byte [esp + 0x18], dl
movzx ecx, byte [esp + edi*4 + 0x16]
movzx ecx, byte [ecx + 0x64d378]
xor byte [esp + 0x19], cl
movzx ecx, byte [esp + edi*4 + 0x17]
movzx ecx, byte [ecx + 0x64d378]
xor byte [esp + 0x1a], cl
movzx ecx, byte [esp + edi*4 + 0x14]
movzx ecx, byte [ecx + 0x64d378]
xor byte [esp + 0x1b], cl
movzx ecx, byte [esi]
inc esi
xor cl, dl
mov dword [esp + 0x14], esi
mov byte [esp + 0x18], cl
mov edx, 1
cmp edi, 8
je 0x5321b7
cmp edi, edx
jbe 0x5321ad
nop
mov ecx, dword [esp + edx*4 + 0x14]
xor dword [esp + edx*4 + 0x18], ecx
inc edx
cmp edx, edi
jb 0x5321a0
test edi, edi
je 0x53226b
jmp 0x53221e
mov ecx, dword [esp + edx*4 + 0x14]
xor dword [esp + edx*4 + 0x18], ecx
inc edx
cmp edx, 4
jb 0x5321b7
movzx ecx, byte [esp + 0x24]
mov edx, 5
movzx ecx, byte [ecx + 0x64d378]
xor byte [esp + 0x28], cl
movzx ecx, byte [esp + 0x25]
movzx ecx, byte [ecx + 0x64d378]
xor byte [esp + 0x29], cl
movzx ecx, byte [esp + 0x26]
movzx ecx, byte [ecx + 0x64d378]
xor byte [esp + 0x2a], cl
movzx ecx, byte [esp + 0x27]
movzx ecx, byte [ecx + 0x64d378]
xor byte [esp + 0x2b], cl
nop word [eax + eax]
mov ecx, dword [esp + edx*4 + 0x14]
xor dword [esp + edx*4 + 0x18], ecx
inc edx
cmp edx, 8
jb 0x532210
xor esi, esi
mov ecx, dword [esp + 0xc]
cmp ebx, dword [ecx + 0x24]
ja 0x532267
cmp esi, edi
jae 0x53224e
nop dword [eax]
cmp eax, 4
jae 0x53224e
mov edi, dword [esp + 0xc]
lea edx, [eax + ebx*4]
mov ecx, dword [esp + esi*4 + 0x18]
inc eax
inc esi
mov dword [edi + edx*4 + 0x38], ecx
mov edi, dword [esp + 0x10]
cmp esi, edi
jb 0x532230
cmp eax, 4
lea ecx, [ebx + 1]
cmovne ecx, ebx
mov ebx, ecx
xor ecx, ecx
cmp eax, 4
cmovne ecx, eax
mov eax, ecx
cmp esi, edi
jb 0x532220
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
cmp ebx, dword [ecx + 0x24]
jbe 0x532140
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00602a00
add esp, 0x30
ret
Function at 0x532290
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov eax, dword [esp + 4]
movups xmm2, xmmword [eax]
mov eax, dword [esp + 8]
movaps xmm1, xmm2
pslldq xmm1, 4
movaps xmm0, xmm1
movups xmmword [eax], xmm2
pxor xmm0, xmm2
pslldq xmm1, 4
movaps xmm3, xmm1
pslldq xmm1, 4
pxor xmm3, xmm0
pxor xmm3, xmm1
aeskeygenassist xmm0, xmm2, 1
pshufd xmm0, xmm0, 0xff
pxor xmm3, xmm0
movaps xmm1, xmm3
movups xmmword [eax + 0x10], xmm3
pslldq xmm1, 4
movaps xmm0, xmm1
pslldq xmm1, 4
pxor xmm0, xmm3
movaps xmm2, xmm1
pxor xmm2, xmm0
pslldq xmm1, 4
pxor xmm2, xmm1
aeskeygenassist xmm0, xmm3, 2
pshufd xmm0, xmm0, 0xff
pxor xmm2, xmm0
movaps xmm1, xmm2
movups xmmword [eax + 0x20], xmm2
pslldq xmm1, 4
movaps xmm0, xmm1
pslldq xmm1, 4
pxor xmm0, xmm2
movaps xmm3, xmm1
pxor xmm3, xmm0
pslldq xmm1, 4
pxor xmm3, xmm1
aeskeygenassist xmm0, xmm2, 4
pshufd xmm0, xmm0, 0xff
pxor xmm3, xmm0
movaps xmm1, xmm3
movups xmmword [eax + 0x30], xmm3
pslldq xmm1, 4
movaps xmm0, xmm1
pslldq xmm1, 4
pxor xmm0, xmm3
movaps xmm2, xmm1
pxor xmm2, xmm0
pslldq xmm1, 4
pxor xmm2, xmm1
aeskeygenassist xmm0, xmm3, 8
pshufd xmm0, xmm0, 0xff
pxor xmm2, xmm0
movaps xmm1, xmm2
movups xmmword [eax + 0x40], xmm2
pslldq xmm1, 4
movaps xmm0, xmm1
pslldq xmm1, 4
pxor xmm0, xmm2
movaps xmm3, xmm1
pxor xmm3, xmm0
pslldq xmm1, 4
aeskeygenassist xmm0, xmm2, 0x10
pxor xmm3, xmm1
pshufd xmm0, xmm0, 0xff
pxor xmm3, xmm0
movaps xmm1, xmm3
movups xmmword [eax + 0x50], xmm3
pslldq xmm1, 4
movaps xmm0, xmm1
pslldq xmm1, 4
pxor xmm0, xmm3
movaps xmm2, xmm1
pxor xmm2, xmm0
pslldq xmm1, 4
aeskeygenassist xmm0, xmm3, 0x20
pxor xmm2, xmm1
pshufd xmm0, xmm0, 0xff
pxor xmm2, xmm0
movaps xmm1, xmm2
movups xmmword [eax + 0x60], xmm2
pslldq xmm1, 4
movaps xmm0, xmm1
pslldq xmm1, 4
pxor xmm0, xmm2
movaps xmm3, xmm1
pxor xmm3, xmm0
pslldq xmm1, 4
pxor xmm3, xmm1
aeskeygenassist xmm0, xmm2, 0x40
pshufd xmm0, xmm0, 0xff
pxor xmm3, xmm0
movaps xmm1, xmm3
movups xmmword [eax + 0x70], xmm3
pslldq xmm1, 4
movaps xmm0, xmm1
pslldq xmm1, 4
pxor xmm0, xmm3
movaps xmm2, xmm1
pxor xmm2, xmm0
pslldq xmm1, 4
pxor xmm2, xmm1
aeskeygenassist xmm0, xmm3, 0x80
pshufd xmm0, xmm0, 0xff
pxor xmm2, xmm0
movaps xmm1, xmm2
movups xmmword [eax + 0x80], xmm2
pslldq xmm1, 4
movaps xmm0, xmm1
pslldq xmm1, 4
pxor xmm0, xmm2
movaps xmm3, xmm1
pxor xmm3, xmm0
pslldq xmm1, 4
aeskeygenassist xmm0, xmm2, 0x1b
pxor xmm3, xmm1
pshufd xmm0, xmm0, 0xff
pxor xmm3, xmm0
movaps xmm2, xmm3
movups xmmword [eax + 0x90], xmm3
pslldq xmm2, 4
movaps xmm0, xmm2
pslldq xmm2, 4
pxor xmm0, xmm3
movaps xmm1, xmm2
pxor xmm1, xmm0
pslldq xmm2, 4
aeskeygenassist xmm0, xmm3, 0x36
pxor xmm1, xmm2
pshufd xmm0, xmm0, 0xff
pxor xmm1, xmm0
movups xmmword [eax + 0xa0], xmm1
ret
Function at 0x555d40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x621714
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x653af8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0xebc], 0
lea esi, [edi + 0xebc]
jne 0x555e39
mov dword [ebp - 0x14], 0
call fcn.005571f0
push eax
lea ecx, [ebp - 0x14]
call fcn.0052a590
cmp byte [esi], 0
mov dword [ebp - 4], 0
jne 0x555e31
cmp dword [edi + 0xec0], 0
jne 0x555dd9
push 4
call fcn.006024b7
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x555dd1
mov ecx, eax
mov dword [eax], 0
call fcn.0052a560
jmp 0x555dd3
xor eax, eax
mov dword [edi + 0xec0], eax
mov dword [ebp - 0x18], esi
mov ecx, edi
mov byte [ebp - 4], 2
mov byte [0x650f20], 0xf0
call fcn.0056d110
test al, al
jne 0x555e01
lea ecx, [ebp - 0x14]
mov byte [esi], 1
call fcn.0052a600
xor al, al
jmp 0x555e3b
mov ecx, edi
mov dword [ebp - 4], 2
call fcn.00555fa0
call fcn.0057a7a0
test al, al
jne 0x555e20
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
call fcn.00579610
mov ecx, eax
call fcn.0057a690
mov byte [esi], 1
lea ecx, [ebp - 0x14]
call fcn.0052a600
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00602a00
mov esp, ebp
pop ebp
ret

Function at 0x565e20
Capabilities:
Read file via mapping

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
push dword [esp + 0xc]
call fcn.00565e60
mov ecx, dword [esi + 0x18]
cmp ecx, 0xffffffff
je 0x565e56
push 0
push 0
push 0
push 6
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x565e51
xor al, al
pop esi
ret 8
mov dword [esi + 0x14], eax
mov al, 1
pop esi
ret 8
Function at 0x572170
Capabilities:
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x134]
sub esp, 0x134
push 0xffffffffffffffff
push 0x624db6
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x653af8]
xor eax, ebp
mov dword [ebp + 0x130], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x13c]
mov dword [ebp - 0x10], 0
xorps xmm0, xmm0
mov dword [ebp - 4], 0
lea ecx, [ebp + 4]
movq qword [ebp + 4], xmm0
mov dword [ebp + 0xc], 0
call fcn.00525d80
push 0x101
lea eax, [ebp + 0x2c]
mov dword [ebp - 0x10], 1
push 0
push eax
call fcn.006046d0
add esp, 0xc
mov dword [ebp], 0x101
lea eax, [ebp]
push eax
lea eax, [ebp + 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x57228d
mov eax, dword [ebp]
dec eax
mov dword [ebp + 0x24], 0
mov dword [ebp + 0x28], 0xf
mov byte [ebp + 0x14], 0
push eax
lea eax, [ebp + 0x2c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp + 0x10]
mov dword [ebp + 0x10], 0x492708
call fcn.0051edb0
lea eax, [ebp + 4]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp + 0x10]
call fcn.0051fed0
mov edx, dword [ebp + 0x28]
mov byte [ebp - 4], 0
mov dword [ebp + 0x10], 0x492708
cmp edx, 0x10
jb 0x57228d
mov ecx, dword [ebp + 0x14]
inc edx
mov eax, ecx
mov byte [ebp - 4], 3
cmp edx, 0x1000
jb 0x57227f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x57233c
push edx
push ecx
call fcn.006024e7
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp + 4]
call fcn.00525e60
mov edx, eax
mov dword [ebp + 0x24], 0
mov ecx, edx
mov dword [ebp + 0x28], 0xf
mov byte [ebp + 0x14], 0
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5722b0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp + 0x14]
call fcn.004c22a0
lea eax, [ebp + 0x14]
mov byte [ebp - 4], 4
push eax
lea eax, [edi + 0x1d0]
push eax
call fcn.005aa5e0
mov edx, dword [ebp + 0x28]
add esp, 8
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x572312
mov ecx, dword [ebp + 0x14]
inc edx
mov eax, ecx
mov byte [ebp - 4], 5
cmp edx, 0x1000
jb 0x572308
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x572341
push edx
push ecx
call fcn.006024e7
add esp, 8
lea ecx, [ebp + 4]
call fcn.004bae80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x130]
xor ecx, ebp
call fcn.00602a00
lea esp, [ebp + 0x134]
pop ebp
ret
call fcn.0053accc
call fcn.0053accc
int3
Function at 0x5732b0
Capabilities:
Encode data using xor
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x653af8]
xor eax, esp
mov dword [esp + 0x104], eax
push edi
mov edi, ecx
mov al, byte [edi + 0x1f0]
test al, al
jne 0x57348b
push ebx
push esi
push 0x100
xor ebx, ebx
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.006046d0
add esp, 0xc
lea eax, [esp + 0x10]
push 0x100
push eax
push 0x4a4080
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x573487
test esi, esi
je 0x573487
cmp esi, 0x20
jae 0x573487
mov ecx, 0x4a408c
lea eax, [esp + 0x10]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x573350
test dl, dl
je 0x57334c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x573350
add eax, 2
add ecx, 2
test dl, dl
jne 0x573330
xor eax, eax
jmp 0x573355
sbb eax, eax
or eax, 1
test eax, eax
je 0x573487
mov ecx, 0x4a4094
lea eax, [esp + 0x10]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x573386
test dl, dl
je 0x573382
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x573386
add eax, 2
add ecx, 2
test dl, dl
jne 0x573366
xor eax, eax
jmp 0x57338b
sbb eax, eax
or eax, 1
test eax, eax
je 0x573487
mov ecx, 0x4a409c
lea eax, [esp + 0x10]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x5733c0
test dl, dl
je 0x5733bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x5733c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x5733a0
xor eax, eax
jmp 0x5733c5
sbb eax, eax
or eax, 1
test eax, eax
je 0x573487
push 8
lea eax, [esp + 0x14]
push 0x4a40a4
push eax
call fcn.0053e470
add esp, 0xc
test eax, eax
jne 0x57343f
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ebx
push eax
lea eax, [esp + 0x14]
push 0x4a40b0
push eax
call fcn.00582890
add esp, 0xc
cmp eax, 1
jne 0x573421
mov eax, dword [esp + 0xc]
inc eax
and eax, 0x800000ff
jns 0x573418
dec eax
or eax, 0xffffff00
inc eax
movzx ebx, byte [eax + 0x4a3c18]
jmp 0x57345b
xor edx, edx
test esi, esi
je 0x573462
movsx ecx, byte [esp + edx + 0x10]
inc edx
movzx eax, bx
xor ecx, eax
movzx ebx, byte [ecx + 0x4a3c18]
cmp edx, esi
jb 0x573427
jmp 0x57345b
xor edx, edx
test esi, esi
je 0x573462
movsx ecx, byte [esp + edx + 0x10]
inc edx
movzx eax, bx
xor ecx, eax
movzx ebx, byte [ecx + 0x4a3c18]
cmp edx, esi
jb 0x573445
xor eax, eax
cmp ax, bx
jne 0x573467
mov ebx, 0xff
pop esi
mov byte [edi + 0x1f0], bl
mov al, bl
pop ebx
pop edi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00602a00
add esp, 0x108
ret
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x108]
pop edi
xor ecx, esp
call fcn.00602a00
add esp, 0x108
ret
Function at 0x578340
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6256f5
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x653af8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x38]
xorps xmm0, xmm0
mov dword [ebp - 0x3c], edi
movq qword [ebp - 0x38], xmm0
mov dword [ebp - 0x30], 0
call fcn.00525d80
push 0x8010
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.004c1da0
push 0x8000
mov esi, eax
mov dword [ebp - 0x18], 0x8000
push 0
push esi
mov dword [ebp - 0x14], 0x800f
call fcn.006046d0
mov byte [esi + 0x8000], 0
add esp, 0xc
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], 0x492708
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, esi
mov byte [ebp - 4], 2
push eax
push 0x4a3d18
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x578488
lea eax, [ebp - 0x38]
mov ecx, edi
push eax
call fcn.00525c90
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
mov dword [ebp - 0x2c], 0x492708
cmp edx, 0x10
jb 0x578451
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
mov byte [ebp - 4], 3
cmp edx, 0x1000
jb 0x578447
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5784e7
push edx
push ecx
call fcn.006024e7
add esp, 8
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.004bae80
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00602a00
mov esp, ebp
pop ebp
ret
push 0
push eax
lea ecx, [ebp - 0x28]
call fcn.004c3e90
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0051fed0
lea eax, [ebp - 0x38]
mov ecx, edi
push eax
call fcn.00525c90
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
mov dword [ebp - 0x2c], 0x492708
cmp edx, 0x10
jb 0x578451
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
mov byte [ebp - 4], 4
cmp edx, 0x1000
jb 0x578447
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x578447
call fcn.0053accc
int3
Function at 0x57a7a0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x625b4d
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x653af8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x651020], 0xffffffff
jne 0x57a82b
mov dword [ebp - 0x14], 0
call fcn.0057edd0
push eax
lea ecx, [ebp - 0x14]
call fcn.0052a590
cmp dword [0x651020], 0xffffffff
mov dword [ebp - 4], 0
je 0x57a805
lea ecx, [ebp - 0x14]
mov bl, 1
call fcn.0052a600
mov al, bl
jmp 0x57a82d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
jne 0x57a81e
lea ecx, [ebp - 0x14]
xor bl, bl
call fcn.0052a600
mov al, bl
jmp 0x57a82d
lea ecx, [ebp - 0x14]
mov dword [0x651020], eax
call fcn.0052a600
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00602a00
mov esp, ebp
pop ebp
ret
Function at 0x583e20
Capabilities:
Query service status

Disassembly:
sub esp, 0x20
mov eax, dword [0x653af8]
xor eax, esp
mov dword [esp + 0x1c], eax
imul ecx, dword [esp + 0x24], 0x3e8
mov eax, 0x51eb851f
push ebx
push ebp
push esi
push reloc.WS2_32.dll_accept
mul ecx
push 0
mov esi, edx
xor bh, bh
push 0
shr esi, 5
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
je 0x583edf
push edi
push closesocket
push 0x4a416c
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x583ed7
mov bl, byte [esp + 0x38]
nop dword [eax]
lea eax, [esp + 0x10]
mov dword [esp + 0x28], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [esp + 0x18], xmm0
movq qword [esp + 0x28], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x583ed0
mov eax, dword [esp + 0x14]
cmp eax, 2
je 0x583ebd
cmp eax, 4
je 0x583ece
test bl, bl
jne 0x583ed0
test esi, esi
je 0x583ed0
dec esi
push 0x64
call fcn.0052a550
add esp, 4
cmp dword [esp + 0x14], 4
jne 0x583e80
mov bh, 1
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov ecx, dword [esp + 0x28]
mov al, bh
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00602a00
add esp, 0x20
ret 8
Function at 0x583f00
Capabilities:
Check if process is running under wine
Get file version info

Disassembly:
sub esp, 0x1c
mov eax, dword [0x653af8]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
mov esi, ecx
cmp byte [esi + 8], 1
jne 0x583f2a
mov al, byte [esi + 9]
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00602a00
add esp, 0x1c
ret
mov eax, dword [0x493438]
mov dword [esp + 0x14], eax
mov ax, word [0x49343c]
push ebx
mov word [esp + 0x1c], ax
xor bl, bl
push ebp
lea eax, [esp + 0x14]
mov dword [esp + 0xc], 0
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 0
push eax
mov dword [esp + 0x20], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebp, eax
test ebp, ebp
je 0x583feb
xor edx, edx
mov ecx, ebp
add ecx, 0x32
push edi
setb dl
neg edx
or edx, ecx
push edx
call fcn.0053e0c0
mov edi, eax
add esp, 4
test edi, edi
je 0x583fea
push edi
push ebp
push dword [esp + 0x20]
lea eax, [esp + 0x2c]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x583fe1
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x14]
push eax
push 0x4a4128
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x583fe1
cmp dword [esp + 0x1c], 0
je 0x583fe1
push 4
push 0x4a4150
push dword [esp + 0x18]
call fcn.0053e470
add esp, 0xc
movzx ebx, bl
test eax, eax
mov ecx, 1
cmove ebx, ecx
push edi
call fcn.0053ae24
add esp, 4
pop edi
lea eax, [esp + 0x10]
push eax
push 1
push 0
push 0x4a4158
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x58402e
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
pop ebx
mov byte [esi + 8], 1
mov al, 1
mov byte [esi + 9], 1
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00602a00
add esp, 0x1c
ret
mov byte [esi + 8], 1
cmp bl, 1
jne 0x58404e
pop ebp
mov byte [esi + 9], bl
mov al, bl
pop ebx
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00602a00
add esp, 0x1c
ret
mov al, byte [esi + 9]
mov ecx, dword [esp + 0x24]
pop ebp
pop ebx
pop esi
xor ecx, esp
call fcn.00602a00
add esp, 0x1c
ret