joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100439f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x10], 0
jg 0x10043a10
jl 0x10043a07
cmp dword [ebp + 0xc], 0
ja 0x10043a10
xor eax, eax
xor edx, edx
jmp 0x10043b47
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x10043a32
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.10044420
jmp 0x10043b47
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
call fcn.10045c60
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x10043aa1
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.10043b50
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
call fcn.10045dc0
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.10046a70
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
call fcn.10045d40
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x10043b38
mov ecx, dword [ebp - 8]
call fcn.10045780
mov dword [ebp - 0x18], 0xfff
cmp dword [ebp - 4], 0xfff
jbe 0x10043b11
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.1016db70
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x10], 0xfff
je 0x10043b0f
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x10043b47
jmp 0x10043abd
cmp dword [ebp - 4], 0
jbe 0x10043b38
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.1016db70
add esp, 0x10
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10043fd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x10245db0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov dword [ebp - 0x2c], ecx
call fcn.10046980
mov dword [ebp - 0x44], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.100469e0
add esp, 8
movzx edx, al
test edx, edx
je 0x10044015
lea eax, [ebp + 8]
push eax
call fcn.10046990
add esp, 4
jmp 0x10044192
mov ecx, dword [ebp - 0x2c]
call fcn.10045da0
test eax, eax
je 0x10044057
mov ecx, dword [ebp - 0x2c]
call fcn.10045da0
mov esi, eax
mov ecx, dword [ebp - 0x2c]
call fcn.10045d20
cmp esi, eax
jae 0x10044057
lea ecx, [ebp + 8]
push ecx
call fcn.100441b0
add esp, 4
mov bl, al
mov ecx, dword [ebp - 0x2c]
call fcn.10045bd0
mov byte [eax], bl
mov eax, dword [ebp + 8]
jmp 0x10044192
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x4c], 0
jne 0x1004406a
call fcn.10046980
jmp 0x10044192
mov ecx, dword [ebp - 0x2c]
call fcn.10045780
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x38], 0
jne 0x100440b9
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x4c]
push edx
lea eax, [ebp + 8]
push eax
call fcn.100441b0
add esp, 4
movzx ecx, al
push ecx
call fcn.100424e0
add esp, 8
movzx edx, al
test edx, edx
je 0x100440a9
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
jmp 0x100440b1
call fcn.10046980
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
jmp 0x10044192
mov dword [ebp - 0x50], 0x20
lea ecx, [ebp + 8]
push ecx
call fcn.100441b0
add esp, 4
mov byte [ebp - 0x2e], al
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x2d]
push eax
lea ecx, [ebp - 0x2e]
push ecx
mov edx, dword [ebp - 0x2c]
add edx, 0x40
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x38]
call fcn.100456a0
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x10044110
cmp dword [ebp - 0x34], 1
je 0x10044110
cmp dword [ebp - 0x34], 3
je 0x1004415d
jmp 0x1004418d
mov ecx, dword [ebp - 0x48]
lea edx, [ebp - 0x28]
sub ecx, edx
mov dword [ebp - 0x38], ecx
je 0x10044142
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.1016a5c0
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x10044142
call fcn.10046980
jmp 0x10044192
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + 0x3d], 1
lea edx, [ebp - 0x2e]
cmp dword [ebp - 0x4c], edx
je 0x10044156
mov eax, dword [ebp + 8]
jmp 0x10044192
call fcn.10046980
jmp 0x10044192
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
movzx edx, byte [ebp - 0x2e]
push edx
call fcn.100424e0
add esp, 8
movzx eax, al
test eax, eax
je 0x10044180
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x40], ecx
jmp 0x10044188
call fcn.10046980
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
jmp 0x10044192
call fcn.10046980
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10154220
mov esp, ebp
pop ebp
ret 4
Function at 0x10045810
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x10245db0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x38], 0
je 0x10045837
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x1004583e
mov al, 1
jmp 0x10045919
call fcn.10046980
push eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x3c], eax
call fcn.10046980
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.100469e0
add esp, 8
movzx eax, al
test eax, eax
je 0x1004587a
xor al, al
jmp 0x10045919
mov dword [ebp - 0x48], 0x20
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x40
push ecx
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx + 0x38]
call fcn.10046b40
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x100458b6
cmp dword [ebp - 0x30], 1
je 0x100458bd
cmp dword [ebp - 0x30], 3
je 0x1004590c
jmp 0x10045917
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x3d], 0
mov ecx, dword [ebp - 0x44]
lea edx, [ebp - 0x28]
sub ecx, edx
mov dword [ebp - 0x34], ecx
je 0x100458ec
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.1016a5c0
add esp, 0x10
cmp dword [ebp - 0x34], eax
je 0x100458ec
xor al, al
jmp 0x10045919
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x10045900
mov dword [ebp - 0x38], 1
jmp 0x10045907
mov dword [ebp - 0x38], 0
mov al, byte [ebp - 0x38]
jmp 0x10045919
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x3d], 0
mov al, 1
jmp 0x10045919
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10154220
mov esp, ebp
pop ebp
ret
Function at 0x100578b0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101acf48
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x10245db0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.10045210
mov dword [ebp - 4], 0
push 0x100577e0
push 3
push 0x20
mov eax, dword [ebp - 0x10]
add eax, 0x88
push eax
call fcn.1004c8e0
push 0x10057840
push 3
push 0x28
mov ecx, dword [ebp - 0x10]
add ecx, 0xe8
push ecx
call fcn.1004c8e0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x168], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x24], 0
lea ecx, [ebp - 0x38]
call fcn.10044b60
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], 0x558
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x38]
call fcn.10051440
mov dword [ebp - 0x20], 0
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x38]
call fcn.10051440
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x28], esp
lea eax, [ebp - 0x38]
push eax
call fcn.100515a0
push 0xf3690c
mov ecx, dword [0x1024ca04]
call fcn.100daaa0
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
mov dword [ecx + 0x168], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x160], 0
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov word [edx + 6], cx
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov word [ecx + 4], ax
xor edx, edx
mov eax, dword [ebp - 0x10]
mov word [eax + 2], dx
push 0x101e91fa
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.10044f60
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x28], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x2c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x30], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x34], 0
mov edx, dword [ebp - 0x10]
mov byte [edx], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x3c], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x40], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x50], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x4c], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x48], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x44], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x54], 0
mov dword [ebp - 0x14], 0
jmp 0x10057a4d
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 3
jge 0x10057a71
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov dword [eax + edx*4 + 0x58], 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov dword [edx + ecx*4 + 0x64], 0
jmp 0x10057a44
mov dword [ebp - 0x18], 0
jmp 0x10057a83
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 2
jge 0x10057a99
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov dword [edx + ecx*4 + 0x70], 0
jmp 0x10057a7a
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x164], 0
mov ecx, dword [ebp - 0x10]
call fcn.10057ae0
mov ecx, dword [ebp - 0x10]
call fcn.1005a650
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.10051550
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x1005ccb0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x1005ccce
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0xc]
jae 0x1005ccfa
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
movzx ecx, byte [eax]
xor ecx, dword [ebp - 8]
and ecx, 0xff
mov edx, dword [ebp - 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x102475d8]
mov dword [ebp - 8], edx
jmp 0x1005ccc5
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x1005f910
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x10245db0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x40], ecx
mov ecx, 0xb
mov esi, str._pipediscord_ipc_0
lea edi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 0x44], 0x15
mov eax, 2
imul ecx, eax, 0x15
mov edx, 0x30
mov word [ebp + ecx - 0x34], dx
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x38], eax
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [ebp - 0x38]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x38]
cmp dword [eax + 4], 0xffffffff
je 0x1005f987
mov ecx, dword [ebp - 0x38]
mov byte [ecx], 1
mov al, 1
jmp 0x1005f9f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 2
jne 0x1005f9ca
mov edx, 2
imul eax, edx, 0x15
movzx ecx, word [ebp + eax - 0x34]
cmp ecx, 0x39
jge 0x1005f9c8
mov edx, 2
imul eax, edx, 0x15
mov cx, word [ebp + eax - 0x34]
add cx, 1
mov edx, 2
imul eax, edx, 0x15
mov word [ebp + eax - 0x34], cx
jmp 0x1005f955
jmp 0x1005f9ef
cmp dword [ebp - 0x3c], 0xe7
jne 0x1005f9ef
push 0x2710
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x1005f9ea
xor al, al
jmp 0x1005f9f8
jmp 0x1005f955
xor al, al
jmp 0x1005f9f8
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10154220
mov esp, ebp
pop ebp
ret
Function at 0x1005fa50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 0xc], 0
jne 0x1005fa66
mov al, 1
jmp 0x1005fb09
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1005fa86
push 0x4f
push 0x101edff0
push 0x101ee15c
call fcn.1016faa0
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x1005fa90
xor al, al
jmp 0x1005fb09
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0xffffffff
jne 0x1005fa9d
xor al, al
jmp 0x1005fb09
cmp dword [ebp + 8], 0
jne 0x1005fab7
push 0x56
push 0x101ee168
push 0x101ee2d4
call fcn.1016faa0
add esp, 0xc
cmp dword [ebp + 8], 0
jne 0x1005fac1
xor al, al
jmp 0x1005fb09
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x1005faff
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0xc]
jne 0x1005faff
mov dword [ebp - 0x10], 1
jmp 0x1005fb06
mov dword [ebp - 0x10], 0
mov al, byte [ebp - 0x10]
mov esp, ebp
pop ebp
ret 8

Function at 0x1005fb10
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], ecx
cmp dword [ebp + 8], 0
jne 0x1005fb33
push 0x62
push 0x101ee2e0
push 0x101ee44c
call fcn.1016faa0
add esp, 0xc
cmp dword [ebp + 8], 0
jne 0x1005fb40
xor al, al
jmp 0x1005fc0c
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x1005fb60
push 0x67
push 0x101ee458
push str.self
call fcn.1016faa0
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x1005fb6d
xor al, al
jmp 0x1005fc0c
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x1005fb7d
xor al, al
jmp 0x1005fc0c
mov dword [ebp - 0xc], 0
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x1005fc02
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 0xc]
jb 0x1005fc00
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x1005fbf8
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x14]
je 0x1005fbf2
push 0x74
push 0x101ee5d0
push str.bytesToRead__bytesRead
call fcn.1016faa0
add esp, 0xc
mov al, 1
jmp 0x1005fc0c
mov ecx, dword [ebp - 8]
call fcn.1005fa10
jmp 0x1005fc0a
mov ecx, dword [ebp - 8]
call fcn.1005fa10
xor al, al
mov esp, ebp
pop ebp
ret 8
Function at 0x1005fde0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x1005fe41
mov ecx, 2
imul edx, ecx, 0
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx]
test ecx, ecx
je 0x1005fe41
push 0
lea edx, [ebp - 4]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1005fe3b
mov eax, dword [ebp - 8]
jmp 0x1005fe7b
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x1005fe78
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 8]
je 0x1005fe78
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x10060200
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xaa0
mov eax, dword [0x10245db0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x20
lea eax, [ebp - 0x84]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x20
lea edx, [ebp - 0x44]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [ebp - 0xa9c]
push ecx
push 0x20019
push 0
push str.SoftwareValveSteam
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xa94], eax
cmp dword [ebp - 0xa94], 0
je 0x10060292
push str.Error_opening_Steam_key_n
push 2
call fcn.10169d60
add esp, 4
push eax
call fcn.1005fcc0
add esp, 8
jmp 0x1006039b
mov dword [ebp - 0xa98], 0x208
lea edx, [ebp - 0xa98]
push edx
lea eax, [ebp - 0x28c]
push eax
push 0
push 0
push str.SteamExe
mov ecx, dword [ebp - 0xa9c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xa94], eax
mov edx, dword [ebp - 0xa9c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xa94], 0
jne 0x100602e5
cmp dword [ebp - 0xa98], 1
jae 0x10060302
push str.Error_reading_SteamExe_key_n
push 2
call fcn.10169d60
add esp, 4
push eax
call fcn.1005fcc0
add esp, 8
jmp 0x1006039b
mov eax, dword [ebp - 0xa98]
shr eax, 1
mov dword [ebp - 0xaa0], eax
mov dword [ebp - 0xa90], 0
jmp 0x1006032b
mov ecx, dword [ebp - 0xa90]
add ecx, 1
mov dword [ebp - 0xa90], ecx
mov edx, dword [ebp - 0xa90]
cmp edx, dword [ebp - 0xaa0]
jae 0x10060361
mov eax, dword [ebp - 0xa90]
movzx ecx, word [ebp + eax*2 - 0x28c]
cmp ecx, 0x2f
jne 0x1006035f
mov edx, 0x5c
mov eax, dword [ebp - 0xa90]
mov word [ebp + eax*2 - 0x28c], dx
jmp 0x1006031c
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x28c]
push edx
push str.__s__steam:__rungameid__s
push 0x800
lea eax, [ebp - 0xa8c]
push eax
call fcn.1005fd00
add esp, 0x14
lea ecx, [ebp - 0xa8c]
push ecx
lea edx, [ebp - 0x84]
push edx
call fcn.1005fe80
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10154220
mov esp, ebp
pop ebp
ret
Function at 0x10062140
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ad4d7
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x10245db0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.10062830
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.10062910
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.10051d50
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x10], 0
jne 0x10062207
push 0x14
call fcn.10154550
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x14], 0
je 0x100621e4
push 0
push 0x10000
mov ecx, dword [ebp - 0x14]
call fcn.10062620
mov dword [ebp - 0x18], eax
jmp 0x100621eb
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 0x14], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x100635b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ad56d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x10245db0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
push eax
call fcn.10046970
add esp, 4
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.10063d70
add esp, 8
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
call fcn.10063df0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.100637e0
mov dword [ebp - 0x20], 0x10063e30
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
push 0
lea ecx, [ebp - 0x14]
call fcn.10040fd0
push eax
mov ecx, dword [ebp - 0x20]
push ecx
push 0
push 0
call fcn.1016fe70
add esp, 0x18
mov edx, dword [ebp - 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x1006364f
lea ecx, [ebp - 0x14]
call fcn.1004b800
jmp 0x10063660
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
push 6
call fcn.10152f20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.100637e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x100a2790
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101af45d
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x10245db0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 0xc], 1
jne 0x100a2929
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x138]
jne 0x100a28d2
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x124], 1
jne 0x100a282d
push 0xe9
lea ecx, [ebp - 0x34]
call fcn.10089810
mov dword [ebp - 4], 0
push 2
push 0xad
lea ecx, [ebp - 0x34]
call fcn.100543f0
mov ecx, eax
call fcn.100543f0
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [0x1024ca04]
call fcn.100da330
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.10054580
jmp 0x100a28d0
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x124], 2
jne 0x100a2883
push 0xe9
lea ecx, [ebp - 0x58]
call fcn.10089810
mov dword [ebp - 4], 1
push 1
push 0xad
lea ecx, [ebp - 0x58]
call fcn.100543f0
mov ecx, eax
call fcn.100543f0
lea edx, [ebp - 0x58]
push edx
mov ecx, dword [0x1024ca04]
call fcn.100da330
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.10054580
jmp 0x100a28d0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x124], 4
jne 0x100a28d0
push 0xe3
push 0xe9
lea ecx, [ebp - 0x7c]
call fcn.100544e0
mov dword [ebp - 4], 2
push 2
lea ecx, [ebp - 0x7c]
call fcn.100543f0
lea ecx, [ebp - 0x7c]
push ecx
mov ecx, dword [0x1024ca04]
call fcn.100da330
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.10054580
jmp 0x100a2921
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
cmp eax, dword [edx + 0x134]
jne 0x100a28e2
jmp 0x100a2921
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 0x13c]
jne 0x100a2921
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x124], 3
jne 0x100a2921
push 0
call fcn.101726f0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 0x10]
call fcn.100a2a60
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8