joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100f7d30
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x100f7d8c
mov esi, dword [ebx + 0x64]
test esi, esi
je 0x100f7d66
push ebp
or ebp, 0xffffffff
mov eax, ebp
lock xadd dword [esi + 4], eax
jne 0x100f7d65
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebp
dec ebp
jne 0x100f7d65
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
pop ebp
mov ecx, dword [ebx + 0x5c]
add ebx, 0x38
test ecx, ecx
je 0x100f7d85
mov edx, dword [ecx]
cmp ecx, ebx
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebx + 0x24], 0
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x100f7dcf
push dword [0x10202dfc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100f7dbf
mov edx, dword [eax + 4]
test edx, edx
je 0x100f7dbf
xor eax, eax
nop dword [eax]
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x100f7dd3
inc eax
cmp eax, 2
jl 0x100f7db0
push esi
call fcn.1017ce46
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
ret
mov al, byte [esi + 0x80]
mov byte [esi], al
mov dword [ecx], esi
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
ret

Function at 0x100f7df0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 8]
test eax, eax
je 0x100f7e21
mov ecx, dword [eax + 0x44]
lea esi, [eax + 0x20]
test ecx, ecx
je 0x100f7e1a
mov edx, dword [ecx]
cmp ecx, esi
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [esi + 0x24], 0
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x100f7e60
push dword [0x10202dfc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100f7e50
mov edx, dword [eax + 4]
test edx, edx
je 0x100f7e50
xor eax, eax
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x100f7e63
inc eax
cmp eax, 2
jl 0x100f7e41
push esi
call fcn.1017ce46
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
mov al, byte [esi + 0x50]
mov byte [esi], al
mov dword [ecx], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret

Function at 0x100f7e80
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 8]
test eax, eax
je 0x100f7eb1
mov ecx, dword [eax + 0x4c]
lea esi, [eax + 0x28]
test ecx, ecx
je 0x100f7eaa
mov edx, dword [ecx]
cmp ecx, esi
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [esi + 0x24], 0
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x100f7ef0
push dword [0x10202dfc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100f7ee0
mov edx, dword [eax + 4]
test edx, edx
je 0x100f7ee0
xor eax, eax
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x100f7ef3
inc eax
cmp eax, 2
jl 0x100f7ed1
push esi
call fcn.1017ce46
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
mov al, byte [esi + 0x58]
mov byte [esi], al
mov dword [ecx], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret
Function at 0x100f7f10
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x100f7f2a
add ecx, 8
call fcn.100ed200
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x100f7f6f
push dword [0x10202dfc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100f7f5f
mov edx, dword [eax + 4]
test edx, edx
je 0x100f7f5f
mov eax, 4
nop dword [eax]
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x100f7f72
inc eax
cmp eax, 6
jl 0x100f7f50
push esi
call fcn.1017ce46
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
mov al, byte [esi + 0x98]
mov byte [esi], al
mov dword [ecx], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret

Function at 0x100f7f90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a41e0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x101fd700]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 8]
test esi, esi
je 0x100f8003
lea ecx, [esi + 0x128]
cmp dword [ecx + 0x10], 0
mov dword [ebp - 4], 0
je 0x100f7fdb
mov eax, dword [ecx + 0xc]
push ecx
mov eax, dword [eax]
call eax
add esp, 4
lea ecx, [esi + 0xb0]
call fcn.100ed200
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x100f7ffc
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x100f7ffc
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x100f8042
push dword [0x10202dfc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100f8032
mov edx, dword [eax + 4]
test edx, edx
je 0x100f8032
xor eax, eax
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x100f8053
inc eax
cmp eax, 2
jl 0x100f8023
push esi
call fcn.1017ce46
add esp, 4
mov dword [edi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov al, byte [esi + 0x148]
mov byte [esi], al
mov dword [ecx], esi
jmp 0x100f803b

Function at 0x100fa680
Capabilities:
Send data
Send data on socket

Disassembly:
push edi
mov edi, ecx
mov eax, dword [edi + 4]
add eax, 0x18
lock inc dword [eax]
cmp byte [esp + 0x18], 0
je 0x100fa6a7
mov ecx, dword [edi + 4]
push 0
push 0
push dword [esp + 0x24]
call fcn.100f6cc0
pop edi
ret 0x18
mov eax, dword [esp + 8]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x100fa6c9
mov ecx, dword [edi + 4]
push 0
push 0x2719
push dword [esp + 0x24]
call fcn.100f6cc0
pop edi
ret 0x18
push ebx
mov ebx, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
push esi
push 0
push ebx
push dword [esp + 0x24]
mov dword [esp + 0x2c], 0
push ecx
push dword [esp + 0x28]
push dword [esp + 0x28]
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
je 0x100fa726
cmp eax, 0x3e5
je 0x100fa726
push dword [esp + 0x20]
mov ecx, dword [edi + 4]
push eax
push ebx
call fcn.100f6cc0
pop esi
pop ebx
pop edi
ret 0x18
mov ecx, dword [edi + 4]
push ebx
call fcn.100f6d40
pop esi
pop ebx
pop edi
ret 0x18
Function at 0x100feef0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a5675
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x101fd700]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edx, dword [ebp + 0xc]
mov edi, edx
cmp dword [edx + 0x14], 0xf
jbe 0x100fef27
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
cmp dword [edx + 0x10], ecx
jbe 0x100fef45
movzx eax, byte [edi + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, dword [edx + 0x10]
jb 0x100fef33
push esi
push edx
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.100e3cf0
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x100fef76
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [ebx + 8], 0x5d1745d
je 0x100ff0dd
lea eax, [ebx + 4]
mov dword [ebp - 0x1c], eax
push 0x2c
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
call fcn.10176b8e
add esp, 4
mov edi, eax
mov dword [ebp - 0x18], edi
push dword [ebp + 0xc]
lea ecx, [edi + 8]
call fcn.100d9c00
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov eax, dword [ebx + 8]
inc eax
movss xmm3, dword [ebx]
mov dword [ebp - 4], 1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x101ebf60]
mov eax, dword [ebx + 0x1c]
cvtpd2ps xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x101ebf60]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x100ff07f
divss xmm2, xmm3
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x14], xmm0
fld qword [ebp - 0x14]
fstp qword [esp]
call fcn.10185a50
fstp qword [ebp - 0x14]
movsd xmm0, qword [ebp - 0x14]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.10177540
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebx + 0x1c]
cmp eax, ecx
jae 0x100ff063
cmp eax, 0x200
jae 0x100ff061
shl eax, 3
cmp eax, ecx
jae 0x100ff063
mov eax, ecx
push eax
mov ecx, ebx
call fcn.10101360
push esi
lea eax, [edi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.100e3cf0
mov edx, dword [eax]
jmp 0x100ff082
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
inc dword [ebx + 8]
mov dword [edi + 4], eax
mov dword [edi], edx
mov dword [eax], edi
mov dword [edx + 4], edi
mov ecx, dword [ebx + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [ebx + 0x18]
and eax, esi
mov esi, dword [ecx + eax*8]
cmp esi, dword [ebx + 4]
jne 0x100ff0aa
mov dword [ecx + eax*8], edi
jmp 0x100ff0bc
cmp esi, edx
jne 0x100ff0b3
mov dword [ecx + eax*8], edi
jmp 0x100ff0c0
mov edx, dword [ebp + 0xc]
cmp dword [ecx + eax*8 + 4], edx
jne 0x100ff0c0
mov dword [ecx + eax*8 + 4], edi
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.10174a2c
int3
Function at 0x101010c0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Hash data using fnv

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ebp, ecx
push edi
mov edi, esi
cmp dword [esi + 0x14], 0xf
mov ebx, dword [esi + 0x10]
jbe 0x101010da
mov edi, dword [esi]
xor ecx, ecx
mov edx, 0x811c9dc5
test ebx, ebx
je 0x101010f6
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x101010e5
push edx
push esi
lea eax, [esp + 0x1c]
mov ecx, ebp
push eax
call fcn.100e3cf0
mov eax, dword [eax + 4]
test eax, eax
je 0x1010129e
cmp eax, dword [ebp + 4]
je 0x1010129e
mov ecx, dword [eax + 0x24]
lea ebx, [eax + 0x20]
mov esi, dword [ebx]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], ecx
cmp esi, ecx
je 0x1010129e
cmp dword [esi], edx
je 0x1010113f
add esi, 0x30
cmp esi, ecx
jne 0x10101134
cmp esi, ecx
je 0x1010129e
lea ebp, [esi + 0x30]
cmp ebp, ecx
je 0x101011e3
lea ebx, [ebp + 0x2c]
lea edi, [esi + 0x2c]
mov eax, dword [ebp]
cmp eax, edx
je 0x101011d1
mov dword [esi], eax
lea edx, [edi - 0x24]
lea eax, [ebx - 0x24]
cmp edx, eax
je 0x101011c7
mov ecx, dword [edi]
test ecx, ecx
je 0x1010118b
mov edx, dword [ecx]
lea eax, [edi - 0x24]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [edi], 0
lea eax, [ebx - 0x24]
mov ecx, dword [ebx]
test ecx, ecx
je 0x101011c3
cmp ecx, eax
jne 0x101011bb
mov eax, dword [ecx]
mov edx, dword [eax + 4]
lea eax, [edi - 0x24]
push eax
call edx
mov dword [edi], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x101011c3
mov edx, dword [ecx]
lea eax, [ebx - 0x24]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
jmp 0x101011bd
mov dword [edi], ecx
mov dword [ebx], 0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
add esi, 0x30
add edi, 0x30
add ebp, 0x30
add ebx, 0x30
cmp ebp, ecx
jne 0x10101158
mov ebx, dword [esp + 0x10]
cmp esi, ecx
je 0x1010129e
mov eax, dword [ebx + 4]
mov dword [esp + 0x24], eax
cmp ecx, eax
je 0x1010128e
mov edx, esi
lea edi, [ecx + 0x2c]
sub edx, ecx
lea ebx, [esi + 8]
mov dword [esp + 0x20], edx
mov ecx, eax
nop word [eax + eax]
mov eax, dword [edi - 0x2c]
lea ebp, [edi - 0x24]
mov dword [esi], eax
cmp ebx, ebp
je 0x1010127a
mov ecx, dword [edi + edx]
test ecx, ecx
je 0x1010123c
mov edx, dword [ecx]
cmp ecx, ebx
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov edx, dword [esp + 0x20]
mov dword [edi + edx], 0
mov ecx, dword [edi]
test ecx, ecx
je 0x10101276
cmp ecx, ebp
jne 0x1010126d
mov eax, dword [ecx]
push ebx
call dword [eax + 4]
mov edx, dword [esp + 0x20]
mov dword [edi + edx], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x10101276
mov edx, dword [ecx]
cmp ecx, ebp
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov edx, dword [esp + 0x20]
jmp 0x10101270
mov dword [edi + edx], ecx
mov dword [edi], 0
mov ecx, dword [esp + 0x24]
add edi, 0x30
add esi, 0x30
add ebx, 0x30
lea eax, [edi - 0x2c]
cmp eax, ecx
jne 0x10101210
mov ebx, dword [esp + 0x10]
push ebx
push dword [ebx + 4]
push esi
call fcn.100e2720
add esp, 0xc
mov dword [ebx + 4], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x101051b0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a604d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x101fd700]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, eax
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x10105384
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x10], eax
jle 0x1010537d
nop dword [eax]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ecx + eax*4]
lea eax, [ecx + eax*4]
push 0
push 0xfde9
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
jle 0x10105384
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
cmp edi, 0x7fffffff
ja 0x10105395
cmp edi, 0x1000
jb 0x1010528d
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x1010539a
push eax
call fcn.10176b8e
add esp, 4
test eax, eax
je 0x1010539f
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x10105298
push edi
call fcn.10176b8e
add esp, 4
mov esi, eax
push dword [ebp - 0x14]
add edi, esi
mov dword [ebp - 0x30], esi
push 0
push esi
mov dword [ebp - 0x28], edi
call fcn.10178ee0
add esp, 0xc
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push dword [eax]
mov dword [ebp - 4], 0
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], esi
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x1010531a
mov edx, esi
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
lea eax, [edx + 1]
mov dword [ebp - 0x24], eax
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x10105300
sub edx, dword [ebp - 0x24]
push edx
push esi
call fcn.100cfea0
mov ecx, dword [ebp - 0x18]
add dword [ecx + 4], 0x18
jmp 0x10105326
lea edx, [ebp - 0x24]
push edx
push ecx
mov ecx, eax
call fcn.10101fb0
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1010536a
cmp edi, 0x1000
jb 0x1010534b
mov eax, dword [esi - 4]
add edi, 0x23
sub esi, eax
add esi, 0xfffffffc
cmp esi, 0x1f
ja 0x1010539f
mov esi, eax
push edi
push esi
call fcn.10176bbe
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp - 0x10]
jl 0x10105210
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.100f09d0
call fcn.100dd290
call fcn.1017c43f
int3
Function at 0x10105e10
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [esp + 0x14]
test eax, eax
jg 0x10105e31
jl 0x10105e27
test esi, esi
jne 0x10105e31
pop esi
xor eax, eax
xor edx, edx
pop ebx
pop ecx
ret 0xc
cmp dword [ebx + 0x38], 0
push ebp
push edi
mov edi, esi
je 0x10105ee4
mov ebp, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
nop dword [eax]
mov ecx, ebx
call fcn.100efbe0
mov esi, eax
mov eax, edx
mov dword [esp + 0x10], eax
test eax, eax
jl 0x10105ea1
jg 0x10105e69
test esi, esi
je 0x10105ea1
cmp ebp, eax
jg 0x10105e79
jl 0x10105e73
cmp edi, esi
jae 0x10105e79
mov esi, edi
mov dword [esp + 0x10], ebp
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push dword [esp + 0x20]
call fcn.10178960
mov eax, dword [ebx + 0x2c]
add esp, 0xc
sub edi, esi
sbb ebp, dword [esp + 0x10]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x18]
jmp 0x10105ec0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x10105ed0
mov eax, dword [esp + 0x18]
add edi, 0xffffffff
mov esi, 1
adc ebp, 0xffffffff
mov byte [eax], cl
add eax, esi
mov dword [esp + 0x18], eax
test ebp, ebp
jg 0x10105e50
jl 0x10105ed0
test edi, edi
jne 0x10105e50
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
sub eax, edi
pop edi
sbb edx, ebp
pop ebp
pop esi
pop ebx
pop ecx
ret 0xc
mov eax, dword [ebx + 0x1c]
mov ebp, dword [esp + 0x18]
mov edx, dword [eax]
test edx, edx
je 0x10105f29
mov eax, dword [ebx + 0x2c]
lea ecx, [ebx + 0x2c]
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
test eax, eax
je 0x10105f30
mov edi, dword [esp + 0x1c]
cmp eax, edi
cmovb esi, eax
push esi
push edx
push ebp
call fcn.10178960
mov eax, dword [ebx + 0x2c]
add ebp, esi
sub edi, esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x1c]
jmp 0x10105f30
lea eax, [ebx + 0x2c]
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x4c], 0
je 0x10105f99
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10105f5a
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [eax], edx
cmp edi, 0xfff
jbe 0x10105f84
push dword [ebx + 0x4c]
push 0xfff
push 1
push ebp
call fcn.10186710
add esp, 0x10
add ebp, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10105f99
cmp edi, eax
ja 0x10105f62
test edi, edi
je 0x10105f99
push dword [ebx + 0x4c]
push edi
push 1
push ebp
call fcn.10186710
add esp, 0x10
sub edi, eax
mov edx, dword [esp + 0x20]
sub esi, edi
pop edi
pop ebp
mov eax, esi
sbb edx, 0
pop esi
pop ebx
pop ecx
ret 0xc
Function at 0x10108ff0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a67f4
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x101fd700]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x114]
push 0x104
push eax
push str.SteamPath
mov dword [ebp - 0x16c], esi
mov dword [ebp - 0x168], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x138], 0
xorps xmm0, xmm0
mov dword [ebp - 0x134], 0
push eax
lea ecx, [ebp - 0x148]
movups xmmword [ebp - 0x148], xmm0
call fcn.100cfea0
cmp dword [ebp - 0x138], 0
mov dword [ebp - 4], 0
jne 0x1010911b
lea eax, [ebp - 0x164]
mov dword [ebp - 0x120], 0
push eax
lea eax, [ebp - 0x130]
mov dword [ebp - 0x11c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x164], 0x1f
push eax
movups xmmword [ebp - 0x130], xmm0
call fcn.100cfe40
movups xmm0, xmmword [str.C:_Program_Files__x86__Steam]
mov ecx, eax
mov dword [ebp - 0x120], 0x1c
mov eax, dword [ebp - 0x164]
add esp, 8
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x130], ecx
movups xmmword [ecx], xmm0
movq xmm0, qword [0x101af818]
movq qword [ecx + 0x10], xmm0
mov eax, dword [0x101af820]
mov dword [ecx + 0x18], eax
mov byte [ecx + 0x1c], 0
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 1
mov eax, 1
jmp 0x1010913b
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0x160]
call fcn.100d9c00
mov ecx, eax
mov dword [ebp - 4], 2
mov eax, 2
cmp dword [ecx + 0x14], 0xf
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x164], eax
mov eax, dword [ecx + 0x10]
mov byte [ebp - 0x16c], 0
jbe 0x10109159
mov ecx, dword [ecx]
push dword [ebp - 0x16c]
push eax
push ecx
push esi
call fcn.100cff30
mov eax, dword [ebp - 0x164]
add esp, 0x10
or eax, 0xc
test al, 2
je 0x101091db
mov ecx, dword [ebp - 0x14c]
and eax, 0xfffffffd
mov dword [ebp - 0x164], eax
cmp ecx, 0xf
jbe 0x101091c0
mov edx, dword [ebp - 0x160]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x101091b0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10109282
push ecx
push edx
call fcn.10176bbe
mov eax, dword [ebp - 0x164]
add esp, 8
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 0xf
mov byte [ebp - 0x160], 0
test al, 1
je 0x10109230
mov ecx, dword [ebp - 0x11c]
cmp ecx, 0xf
jbe 0x10109215
mov edx, dword [ebp - 0x130]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1010920b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10109282
push ecx
push edx
call fcn.10176bbe
add esp, 8
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0xf
mov byte [ebp - 0x130], 0
mov ecx, dword [ebp - 0x134]
cmp ecx, 0xf
jbe 0x10109266
mov edx, dword [ebp - 0x148]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1010925c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10109282
push ecx
push edx
call fcn.10176bbe
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10176fcb
mov esp, ebp
pop ebp
ret
call fcn.1017c43f
int3
Function at 0x10117880
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x14
mov cl, byte [esp + 0x20]
mov eax, 0x21c
push ebx
push ebp
test cl, cl
mov edx, 0x1dc
push esi
cmove eax, edx
push edi
mov edi, dword [esp + 0x2c]
add eax, edi
mov dword [esp + 0x20], eax
test cl, cl
je 0x101178b0
mov eax, dword [edi + 0xac]
jmp 0x101178b3
mov eax, dword [edi + 0x64]
mov ebp, dword [esp + 0x40]
test ebp, ebp
je 0x101178bf
mov byte [ebp], 0
mov ebx, dword [esp + 0x28]
mov esi, dword [ebx + 0x900]
test esi, esi
je 0x10117a7a
mov ecx, dword [esi + 0x14]
push eax
mov dword [esp + 0x44], ecx
call dword [0x101fd2f0]
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x10117915
cmp byte [edi + 0x269], 0
je 0x10117922
push dword [edi + 0x7c]
call dword [0x101fd2f0]
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
jne 0x1011792a
mov ebx, dword [esp + 0x14]
push ebx
call dword [0x101fd2e8]
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x14
ret
mov dword [esp + 0x28], 0
cmp byte [edi + 0x26a], 0
je 0x1011793f
mov ecx, dword [edi + 0xcc]
mov dword [esp + 0x18], ecx
jmp 0x10117947
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x1011795d
test byte [eax + 4], 0x10
je 0x1011795d
lea ecx, [eax + 0x74]
mov dword [esp + 0x10], ecx
jmp 0x10117967
lea eax, [ebx + 0x904]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x4c0]
mov edx, 1
cmp eax, edx
jbe 0x101179b3
mov ecx, dword [ebx + 0x900]
add ecx, 0x74
nop
cmp dword [ecx - 8], 0
mov dword [esp + 0x1c], esi
je 0x101179b3
mov eax, dword [ecx]
lea esi, [ecx - 0x14]
cmp eax, dword [esp + 0x40]
cmovge esi, dword [esp + 0x1c]
inc edx
add ecx, 0x60
cmp eax, dword [esp + 0x40]
cmovge eax, dword [esp + 0x40]
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0x4c0]
cmp edx, eax
jb 0x10117980
cmp edx, eax
jne 0x101179c2
push esi
call fcn.10118440
add esp, 4
jmp 0x101179ce
lea esi, [edx + edx*2]
shl esi, 5
add esi, dword [ebx + 0x900]
mov eax, dword [esp + 0x34]
push dword [esi]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov dword [esi + 0x14], eax
call dword [0x101fd2e8]
push dword [esi + 4]
call dword [0x101fd2e8]
mov eax, dword [esp + 0x30]
add esp, 8
cmp byte [esp + 0x30], 0
mov ebx, dword [esp + 0x14]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x18]
mov dword [esi], ebx
mov dword [esi + 0x1c], eax
je 0x10117a1c
mov eax, dword [edi + 0xc4]
jmp 0x10117a22
mov eax, dword [edi + 0xc8]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x2a8]
lea edi, [esi + 0x20]
push edi
push dword [esp + 0x24]
mov eax, dword [eax]
mov dword [esi + 8], eax
call fcn.101170e0
add esp, 8
test al, al
jne 0x10117a72
push edi
call fcn.10117340
push ebx
mov dword [esi + 0xc], 0
call dword [0x101fd2e8]
push dword [esp + 0x30]
call dword [0x101fd2e8]
add esp, 0xc
mov eax, 0x1b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
test ebp, ebp
je 0x10117a7a
mov byte [ebp], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret