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

Disassembly:
sub esp, 0x12c
mov eax, dword [0x10205ac8]
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 0x100e3080
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 + 0x10046a90]
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 0x100e30c4
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.101b4a00
add esp, 0x12c
ret
Function at 0x100e4070
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
mov eax, dword [0x10205ac8]
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 0x100e40fb
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 0x100e4248
cmp esi, edi
jae 0x100e40e2
nop dword [eax]
cmp eax, 4
jae 0x100e40de
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 0x100e40c0
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 0x100e40b0
cmp ebx, dword [edx + 0x24]
ja 0x100e4248
mov esi, 0x10202578
nop dword [eax]
movzx ecx, byte [esp + edi*4 + 0x15]
mov dl, byte [esp + 0x18]
xor dl, byte [ecx + 0x101ff378]
mov byte [esp + 0x18], dl
movzx ecx, byte [esp + edi*4 + 0x16]
movzx ecx, byte [ecx + 0x101ff378]
xor byte [esp + 0x19], cl
movzx ecx, byte [esp + edi*4 + 0x17]
movzx ecx, byte [ecx + 0x101ff378]
xor byte [esp + 0x1a], cl
movzx ecx, byte [esp + edi*4 + 0x14]
movzx ecx, byte [ecx + 0x101ff378]
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 0x100e4187
cmp edi, edx
jbe 0x100e417d
nop
mov ecx, dword [esp + edx*4 + 0x14]
xor dword [esp + edx*4 + 0x18], ecx
inc edx
cmp edx, edi
jb 0x100e4170
test edi, edi
je 0x100e423b
jmp 0x100e41ee
mov ecx, dword [esp + edx*4 + 0x14]
xor dword [esp + edx*4 + 0x18], ecx
inc edx
cmp edx, 4
jb 0x100e4187
movzx ecx, byte [esp + 0x24]
mov edx, 5
movzx ecx, byte [ecx + 0x101ff378]
xor byte [esp + 0x28], cl
movzx ecx, byte [esp + 0x25]
movzx ecx, byte [ecx + 0x101ff378]
xor byte [esp + 0x29], cl
movzx ecx, byte [esp + 0x26]
movzx ecx, byte [ecx + 0x101ff378]
xor byte [esp + 0x2a], cl
movzx ecx, byte [esp + 0x27]
movzx ecx, byte [ecx + 0x101ff378]
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 0x100e41e0
xor esi, esi
mov ecx, dword [esp + 0xc]
cmp ebx, dword [ecx + 0x24]
ja 0x100e4237
cmp esi, edi
jae 0x100e421e
nop dword [eax]
cmp eax, 4
jae 0x100e421e
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 0x100e4200
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 0x100e41f0
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
cmp ebx, dword [ecx + 0x24]
jbe 0x100e4110
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101b4a00
add esp, 0x30
ret
Function at 0x100e4260
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 0x10107d10
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101d3714
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x10205ac8]
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 0x10107e09
mov dword [ebp - 0x14], 0
call fcn.101091d0
push eax
lea ecx, [ebp - 0x14]
call fcn.100dc540
cmp byte [esi], 0
mov dword [ebp - 4], 0
jne 0x10107e01
cmp dword [edi + 0xec0], 0
jne 0x10107da9
push 4
call fcn.101b44b7
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x10107da1
mov ecx, eax
mov dword [eax], 0
call fcn.100dc510
jmp 0x10107da3
xor eax, eax
mov dword [edi + 0xec0], eax
mov dword [ebp - 0x18], esi
mov ecx, edi
mov byte [ebp - 4], 2
mov byte [0x10202f20], 0xf0
call fcn.1011f0f0
test al, al
jne 0x10107dd1
lea ecx, [ebp - 0x14]
mov byte [esi], 1
call fcn.100dc5b0
xor al, al
jmp 0x10107e0b
mov ecx, edi
mov dword [ebp - 4], 2
call fcn.10107f70
call fcn.1012c780
test al, al
jne 0x10107df0
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
call fcn.1012b5f0
mov ecx, eax
call fcn.1012c670
mov byte [esi], 1
lea ecx, [ebp - 0x14]
call fcn.100dc5b0
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.101b4a00
mov esp, ebp
pop ebp
ret

Function at 0x10117e00
Capabilities:
Read file via mapping

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

Disassembly:
push ebp
lea ebp, [esp - 0x134]
sub esp, 0x134
push 0xffffffffffffffff
push 0x101d6db6
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x10205ac8]
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.100d7d30
push 0x101
lea eax, [ebp + 0x2c]
mov dword [ebp - 0x10], 1
push 0
push eax
call fcn.101b66d0
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 0x1012426d
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], 0x100446f8
call fcn.100d0d50
lea eax, [ebp + 4]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp + 0x10]
call fcn.100d1e70
mov edx, dword [ebp + 0x28]
mov byte [ebp - 4], 0
mov dword [ebp + 0x10], 0x100446f8
cmp edx, 0x10
jb 0x1012426d
mov ecx, dword [ebp + 0x14]
inc edx
mov eax, ecx
mov byte [ebp - 4], 3
cmp edx, 0x1000
jb 0x1012425f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1012431c
push edx
push ecx
call fcn.101b44e7
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp + 4]
call fcn.100d7e10
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 0x10124290
sub ecx, esi
push ecx
push edx
lea ecx, [ebp + 0x14]
call fcn.10074240
lea eax, [ebp + 0x14]
mov byte [ebp - 4], 4
push eax
lea eax, [edi + 0x1d0]
push eax
call fcn.1015c5f0
mov edx, dword [ebp + 0x28]
add esp, 8
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x101242f2
mov ecx, dword [ebp + 0x14]
inc edx
mov eax, ecx
mov byte [ebp - 4], 5
cmp edx, 0x1000
jb 0x101242e8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10124321
push edx
push ecx
call fcn.101b44e7
add esp, 8
lea ecx, [ebp + 4]
call fcn.1006ce20
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.101b4a00
lea esp, [ebp + 0x134]
pop ebp
ret
call fcn.100ecc9c
call fcn.100ecc9c
int3
Function at 0x10125290
Capabilities:
Encode data using xor
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x10205ac8]
xor eax, esp
mov dword [esp + 0x104], eax
push edi
mov edi, ecx
mov al, byte [edi + 0x1f0]
test al, al
jne 0x1012546b
push ebx
push esi
push pe_nt_image_headers32
xor ebx, ebx
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.101b66d0
add esp, 0xc
lea eax, [esp + 0x10]
push pe_nt_image_headers32
push eax
push 0x10056070
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x10125467
test esi, esi
je 0x10125467
cmp esi, 0x20
jae 0x10125467
mov ecx, 0x1005607c
lea eax, [esp + 0x10]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10125330
test dl, dl
je 0x1012532c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10125330
add eax, 2
add ecx, 2
test dl, dl
jne 0x10125310
xor eax, eax
jmp 0x10125335
sbb eax, eax
or eax, 1
test eax, eax
je 0x10125467
mov ecx, 0x10056084
lea eax, [esp + 0x10]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10125366
test dl, dl
je 0x10125362
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10125366
add eax, 2
add ecx, 2
test dl, dl
jne 0x10125346
xor eax, eax
jmp 0x1012536b
sbb eax, eax
or eax, 1
test eax, eax
je 0x10125467
mov ecx, 0x1005608c
lea eax, [esp + 0x10]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x101253a0
test dl, dl
je 0x1012539c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x101253a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x10125380
xor eax, eax
jmp 0x101253a5
sbb eax, eax
or eax, 1
test eax, eax
je 0x10125467
push 8
lea eax, [esp + 0x14]
push 0x10056094
push eax
call fcn.100f0440
add esp, 0xc
test eax, eax
jne 0x1012541f
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ebx
push eax
lea eax, [esp + 0x14]
push 0x100560a0
push eax
call fcn.10134870
add esp, 0xc
cmp eax, 1
jne 0x10125401
mov eax, dword [esp + 0xc]
inc eax
and eax, 0x800000ff
jns 0x101253f8
dec eax
or eax, 0xffffff00
inc eax
movzx ebx, byte [eax + 0x10055c08]
jmp 0x1012543b
xor edx, edx
test esi, esi
je 0x10125442
movsx ecx, byte [esp + edx + 0x10]
inc edx
movzx eax, bx
xor ecx, eax
movzx ebx, byte [ecx + 0x10055c08]
cmp edx, esi
jb 0x10125407
jmp 0x1012543b
xor edx, edx
test esi, esi
je 0x10125442
movsx ecx, byte [esp + edx + 0x10]
inc edx
movzx eax, bx
xor ecx, eax
movzx ebx, byte [ecx + 0x10055c08]
cmp edx, esi
jb 0x10125425
xor eax, eax
cmp ax, bx
jne 0x10125447
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.101b4a00
add esp, 0x108
ret
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x108]
pop edi
xor ecx, esp
call fcn.101b4a00
add esp, 0x108
ret
Function at 0x1012a320
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101d76f5
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x10205ac8]
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.100d7d30
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.10073d40
push 0x8000
mov esi, eax
mov dword [ebp - 0x18], 0x8000
push 0
push esi
mov dword [ebp - 0x14], 0x800f
call fcn.101b66d0
mov byte [esi + 0x8000], 0
add esp, 0xc
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], 0x100446f8
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, esi
mov byte [ebp - 4], 2
push eax
push 0x10055d08
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x1012a468
lea eax, [ebp - 0x38]
mov ecx, edi
push eax
call fcn.100d7c40
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
mov dword [ebp - 0x2c], 0x100446f8
cmp edx, 0x10
jb 0x1012a431
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
mov byte [ebp - 4], 3
cmp edx, 0x1000
jb 0x1012a427
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1012a4c7
push edx
push ecx
call fcn.101b44e7
add esp, 8
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.1006ce20
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.101b4a00
mov esp, ebp
pop ebp
ret
push 0
push eax
lea ecx, [ebp - 0x28]
call fcn.10075e30
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100d1e70
lea eax, [ebp - 0x38]
mov ecx, edi
push eax
call fcn.100d7c40
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
mov dword [ebp - 0x2c], 0x100446f8
cmp edx, 0x10
jb 0x1012a431
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
mov byte [ebp - 4], 4
cmp edx, 0x1000
jb 0x1012a427
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1012a427
call fcn.100ecc9c
int3
Function at 0x1012c780
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101d7b4d
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x10205ac8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x10203020], 0xffffffff
jne 0x1012c80b
mov dword [ebp - 0x14], 0
call fcn.10130db0
push eax
lea ecx, [ebp - 0x14]
call fcn.100dc540
cmp dword [0x10203020], 0xffffffff
mov dword [ebp - 4], 0
je 0x1012c7e5
lea ecx, [ebp - 0x14]
mov bl, 1
call fcn.100dc5b0
mov al, bl
jmp 0x1012c80d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
jne 0x1012c7fe
lea ecx, [ebp - 0x14]
xor bl, bl
call fcn.100dc5b0
mov al, bl
jmp 0x1012c80d
lea ecx, [ebp - 0x14]
mov dword [0x10203020], eax
call fcn.100dc5b0
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.101b4a00
mov esp, ebp
pop ebp
ret
Function at 0x10135e00
Capabilities:
Query service status

Disassembly:
sub esp, 0x20
mov eax, dword [0x10205ac8]
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 0x10135ebf
push edi
push closesocket
push 0x1005615c
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x10135eb7
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 0x10135eb0
mov eax, dword [esp + 0x14]
cmp eax, 2
je 0x10135e9d
cmp eax, 4
je 0x10135eae
test bl, bl
jne 0x10135eb0
test esi, esi
je 0x10135eb0
dec esi
push 0x64
call fcn.100dc500
add esp, 4
cmp dword [esp + 0x14], 4
jne 0x10135e60
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.101b4a00
add esp, 0x20
ret 8
Function at 0x10135ee0
Capabilities:
Check if process is running under wine
Get file version info

Disassembly:
sub esp, 0x1c
mov eax, dword [0x10205ac8]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
mov esi, ecx
cmp byte [esi + 8], 1
jne 0x10135f0a
mov al, byte [esi + 9]
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.101b4a00
add esp, 0x1c
ret
mov eax, dword [0x10045428]
mov dword [esp + 0x14], eax
mov ax, word [0x1004542c]
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 0x10135fcb
xor edx, edx
mov ecx, ebp
add ecx, 0x32
push edi
setb dl
neg edx
or edx, ecx
push edx
call fcn.100f0090
mov edi, eax
add esp, 4
test edi, edi
je 0x10135fca
push edi
push ebp
push dword [esp + 0x20]
lea eax, [esp + 0x2c]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x10135fc1
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x14]
push eax
push 0x10056118
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x10135fc1
cmp dword [esp + 0x1c], 0
je 0x10135fc1
push 4
push 0x10056140
push dword [esp + 0x18]
call fcn.100f0440
add esp, 0xc
movzx ebx, bl
test eax, eax
mov ecx, 1
cmove ebx, ecx
push edi
call fcn.100ecdf4
add esp, 4
pop edi
lea eax, [esp + 0x10]
push eax
push 1
push 0
push 0x10056148
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1013600e
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.101b4a00
add esp, 0x1c
ret
mov byte [esi + 8], 1
cmp bl, 1
jne 0x1013602e
pop ebp
mov byte [esi + 9], bl
mov al, bl
pop ebx
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.101b4a00
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.101b4a00
add esp, 0x1c
ret