joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402650
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
mov eax, dword [0x41d004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
je 0x40267d
mov eax, 2
imul ecx, eax, 0
mov edx, dword [ebp + 0xc]
movzx eax, word [edx + ecx]
cmp eax, 0x2e
jne 0x402684
xor al, al
jmp 0x40278c
push 0x208
push 0
lea ecx, [ebp - 0x28c]
push ecx
call fcn.00404130
add esp, 0xc
mov edx, 2
imul eax, edx, 0
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + eax]
test edx, edx
jne 0x4026c7
mov eax, dword [ebp + 8]
push eax
push str._sConfigConfig.ini
lea ecx, [ebp - 0x28c]
push ecx
call fcn.00402160
add esp, 0xc
jmp 0x4026e3
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str._s_sConfigConfig.ini
lea ecx, [ebp - 0x28c]
push ecx
call fcn.00402160
add esp, 0x10
mov dword [ebp - 0x290], 0xffffffff
push 0x80
push 0
lea edx, [ebp - 0x84]
push edx
call fcn.00404130
add esp, 0xc
lea eax, [ebp - 0x28c]
push eax
push 0x40
lea ecx, [ebp - 0x84]
push ecx
push 0x41574c
push str.Patcher
push 0x415760
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [ebp - 0x28c]
push edx
push 0xffffffffffffffff
push str.GameID
push str.GENERAL
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x290], eax
mov eax, 2
imul ecx, eax, 0
movzx edx, word [ebp + ecx - 0x84]
test edx, edx
je 0x402764
cmp dword [ebp - 0x290], 0xffffffff
jne 0x402768
xor al, al
jmp 0x40278c
mov eax, dword [ebp - 0x290]
push eax
lea ecx, [ebp - 0x28c]
push ecx
lea edx, [ebp - 0x84]
push edx
push str._WmglLauncher__Find_Patcher___s__in_dir__s___gid___d
call fcn.00402390
add esp, 0x10
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040352b
mov esp, ebp
pop ebp
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x181a1889
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
mov ecx, 0x57f376cc
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x10035595
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x100ae134]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x118], 0
cmp dword [0x100af38c], 0
jne 0x100355e3
lea eax, [ebp - 0x118]
push eax
push ecx
lea ecx, [ebp - 0x114]
call fcn.100356d9
pop ecx
pop ecx
test eax, eax
jne 0x1003b52e
push 1
call fcn.10035630
call fcn.100355f3
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.100365c0
mov esp, ebp
pop ebp
ret
cmp dword [0x100af360], 0
lea eax, [ebp - 0x114]
mov dword [0x100ae0ac], eax
mov byte [ebp - 7], 0
jne 0x1003b552
mov eax, 0xfff
push eax
push eax
call fcn.1006a0e0
mov ecx, 0x100ae140
call fcn.10069df9
cmp dword [0x100ae008], 0x1006a130
jne 0x1003b593
cmp dword [ebp - 0x118], 0
je 0x1003b593
push 0x1001cc0c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [0x100ae0ac]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x1001cc14
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [0x100ae0ac], 0x1001cc2c
jmp 0x100355e3
Function at 0x10036980
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x100369be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x100369b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x100369c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x100369a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10036a90
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x10036aa6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x10036ac1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x1003f771
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
je 0x1003f784
mov al, byte [ecx]
rol al, 4
xor al, 0xa5
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x1003f775
ret
Function at 0x1005a3b6
Capabilities:
Check http status code

Disassembly:
mov edi, edi
push ebx
push esi
push edi
mov edi, ecx
push 0x48
pop ebx
mov esi, dword [edi]
movzx eax, word [esi]
cmp eax, ebx
ja 0x1005a46d
je 0x1005a4c2
push 5
pop ebx
cmp eax, ebx
ja 0x1005a42a
je 0x1005a44a
sub eax, 0
je 0x1005a422
sub eax, 1
je 0x1005a41f
sub eax, 1
je 0x1005a410
sub eax, 1
je 0x1005a3fd
sub eax, 1
jne 0x1005a520
push 4
jmp 0x1005a412
mov dword [edx], 4
push 3
lea eax, [esi + 0x10]
mov dword [edi], eax
pop eax
jmp 0x1005a546
push 2
pop eax
lea ecx, [esi + 0x10]
mov dword [edx], eax
mov dword [edi], ecx
jmp 0x1005a546
and dword [edx], 0
xor eax, eax
inc eax
jmp 0x1005a546
push 6
pop ebx
cmp eax, ebx
je 0x1005a44a
push 0xb
pop ebx
cmp eax, ebx
je 0x1005a465
push 0x11
pop ebx
cmp eax, ebx
je 0x1005a452
push 0x14
pop ebx
cmp eax, ebx
jne 0x1005a520
mov dword [edx], 8
jmp 0x1005a458
mov dword [edx], 1
lea ecx, [esi + 0x10]
mov ax, bx
mov dword [edi], ecx
jmp 0x1005a546
mov dword [edx], 2
jmp 0x1005a458
cmp eax, 0xcc
ja 0x1005a4e4
cmp eax, 0xcb
jae 0x1005a4d2
mov ebx, 0x83
cmp eax, ebx
je 0x1005a4ca
add ebx, 4
cmp eax, ebx
je 0x1005a4c2
cmp eax, 0xc8
je 0x1005a4b5
add eax, 0xffffff37
cmp eax, 1
ja 0x1005a520
movsx eax, word [esi + 0x10]
mov dword [edx], eax
mov eax, dword [esi + 0x14]
mov dword [edi], eax
mov eax, 0x82
jmp 0x1005a546
mov dword [edx], 8
push 6
jmp 0x1005a405
mov dword [edx], 0x10
jmp 0x1005a458
mov dword [edx], 0x13
jmp 0x1005a458
movsx eax, word [esi + 0x10]
mov dword [edx], eax
mov eax, dword [esi + 0x14]
mov dword [edi], eax
mov eax, 0x81
jmp 0x1005a546
cmp eax, 0xcd
je 0x1005a536
mov ecx, 0xce
cmp eax, ecx
je 0x1005a524
jbe 0x1005a520
cmp eax, 0xd0
jbe 0x1005a50e
cmp eax, 0xd1
jne 0x1005a520
mov eax, dword [esi + 0x10]
mov dword [edx], eax
mov eax, dword [esi + 0x24]
jmp 0x1005a517
movsx eax, word [esi + 0x10]
mov dword [edx], eax
mov eax, dword [esi + 0x14]
mov dword [edi], eax
mov eax, 0x80
jmp 0x1005a546
xor eax, eax
jmp 0x1005a546
lea eax, [esi + 0x10]
mov dword [edx], 0x10
mov dword [edi], eax
mov eax, 0x87
jmp 0x1005a546
lea eax, [esi + 0x10]
mov dword [edx], 0x13
mov dword [edi], eax
mov eax, 0x83
pop edi
pop esi
pop ebx
ret

Function at 0x1005c66b
Capabilities:
Encrypt data using dpapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push ebx
push esi
mov esi, ecx
je 0x1005c6b7
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x1005c6b7
push ebx
mov dword [esi + 4], ebx
call dword [sym.imp.MSDART.DLL_mpMalloc]
mov dword [esi], eax
pop ecx
test eax, eax
je 0x1005c6ba
push ebx
push dword [ebp + 8]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push 0
push ebx
push dword [esi]
call dword [sym.imp.CRYPT32.dll_CryptUnprotectMemory]
test eax, eax
jne 0x1005c6be
push dword [esi]
call dword [sym.imp.MSDART.DLL_mpFree]
pop ecx
and dword [esi], 0
and dword [esi + 4], 0
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x100621a1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
test ebx, ebx
je 0x100621b7
xor eax, eax
mov word [ebx], ax
mov esi, dword [0x100af324]
test esi, esi
jne 0x100621f5
call fcn.100620ee
test eax, eax
jns 0x100621ef
test byte [0x100af360], 2
je 0x100621e8
push 0x722
mov edx, 0x10019058
mov ecx, 0x80004005
call fcn.10036de6
pop ecx
xor eax, eax
jmp 0x10062283
mov esi, dword [0x100af324]
push 0xa
movzx eax, di
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10062232
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x10062236
test byte [0x100af360], 2
je 0x10062232
push 0x73b
mov edx, 0x10019058
mov ecx, 0x80004005
call fcn.10036de6
pop ecx
xor esi, esi
jmp 0x10062281
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
mov esi, ecx
cmp word [eax + esi*2], cx
jne 0x1006224e
cmp word [eax + esi*2 + 2], cx
je 0x10062251
inc esi
jmp 0x10062241
push esi
push eax
mov edx, 0x80
mov ecx, ebx
call fcn.10047487
test byte [0x100af360], 2
je 0x1006227a
push 0x74c
mov edx, 0x10019058
mov ecx, eax
call fcn.10036de6
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x100632a2
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x9e4
mov eax, dword [0x100ae134]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
lea edx, [ebp - 0x20c]
mov ecx, dword [ebp + 8]
push SysReAllocStringLen
call fcn.100631e5
mov esi, eax
pop ecx
test esi, esi
jns 0x100632f9
test byte [0x100af360], 2
je 0x1006344d
push 0x767
mov edx, 0x100195e0
mov ecx, esi
call fcn.10036de6
pop ecx
jmp 0x1006344d
push edi
xor edi, edi
movzx eax, word [edi + 0x100198c0]
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x9e4], eax
movzx eax, word [edi + 0x100198c2]
mov dword [ebp - 0x9e0], eax
movzx eax, word [edi + 0x100198c4]
push ecx
push 0x3e8
imul eax, eax, 0x28
lea ecx, [ebp - 0x9dc]
push ecx
push 0x10019938
add eax, 0x10015bc0
push eax
push 0x10019960
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, 0x12
jne 0x1006338c
mov ecx, 0x10019938
lea eax, [ebp - 0x9dc]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1006337f
test dx, dx
je 0x1006337b
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1006337f
add eax, 4
add ecx, 4
test dx, dx
jne 0x10063359
xor eax, eax
jmp 0x10063384
sbb eax, eax
or eax, 1
test eax, eax
je 0x10063423
push dword [ebp - 0x9e0]
mov ecx, ebx
push dword [ebp - 0x9e4]
call dword [sym.imp.MSDATL3.dll_public:_unsigned_short_int___thiscall_CUtlProps2::GetExpectedVarType_unsigned_long_int__unsigned_long_int_]
cmp ax, 0xb
jne 0x100633d8
lea eax, [ebp - 0x9dc]
push 0x10004370
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
mov ecx, ebx
dec eax
push eax
push dword [ebp - 0x9e0]
push dword [ebp - 0x9e4]
call dword [sym.imp.MSDATL3.dll_public:_void___thiscall_CUtlProps2::SetValBool_unsigned_long_int__unsigned_long_int__short_int_]
jmp 0x10063423
mov eax, dword [ebp - 0x9e4]
mov ecx, dword [ebp - 0x9e0]
test eax, eax
jne 0x1006340d
test ecx, ecx
jne 0x1006340d
lea eax, [ebp - 0x9dc]
push 0x10004370
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x1006341f
push 0x10019974
push eax
push eax
jmp 0x10063416
lea edx, [ebp - 0x9dc]
push edx
push ecx
push eax
mov ecx, ebx
call fcn.100638f0
mov esi, eax
test esi, esi
js 0x10063431
add edi, 6
cmp edi, 0x78
jb 0x100632fc
jmp 0x1006344c
test byte [0x100af360], 2
je 0x1006344c
push 0x7ab
mov edx, 0x100195e0
mov ecx, esi
call fcn.10036de6
pop ecx
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.100365c0
mov esp, ebp
pop ebp
ret 4
Function at 0x100638f0
Capabilities:
Encrypt data using dpapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
jne 0x100639e5
cmp edi, 1
je 0x10063917
cmp edi, 9
jne 0x100639e5
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 4]
and dword [ebp - 4], 0
push eax
call fcn.100639ff
mov esi, eax
test esi, esi
js 0x100639f4
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1c]
add edx, 0x11
imul esi, edi, 0x28
and edx, 0xfffffff0
push edx
push 0
mov eax, dword [eax + 8]
mov dword [ebp - 8], edx
add esi, 0x18
add esi, eax
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov edi, eax
test edi, edi
je 0x100639c3
push esi
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push 8
pop eax
mov word [esi], ax
mov eax, dword [ebp - 4]
add eax, 2
mov dword [esi + 8], edi
push eax
push dword [ebp + 0x10]
mov dword [edi], eax
mov eax, dword [esi + 8]
add eax, 4
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push 0
push dword [ebp - 8]
push dword [esi + 8]
call dword [sym.imp.CRYPT32.dll_CryptProtectMemory]
test eax, eax
je 0x100639ae
mov ecx, dword [ebx + 0x1a4]
xor esi, esi
mov eax, dword [ecx + 0x5c]
test al, 4
je 0x100639f4
and eax, 0xfffffffb
mov dword [ecx + 0x5c], eax
jmp 0x100639f4
test byte [0x100af360], 2
mov esi, 0x80004005
je 0x100639f4
push 0x993
jmp 0x100639d6
test byte [0x100af360], 2
mov esi, 0x8007000e
je 0x100639f4
push 0x999
mov edx, 0x10019790
mov ecx, esi
call fcn.10036de6
pop ecx
jmp 0x100639f4
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call dword [sym.imp.MSDATL3.dll_public_virtual:_long_int___thiscall_CUtlProps2::SetValString_unsigned_long_int__unsigned_long_int__unsigned_short_int_const__]
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100678d0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc4
mov eax, dword [0x100ae134]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, edx
xor esi, esi
mov dword [edi], esi
mov al, byte [ecx + 4]
test al, al
je 0x10067901
movzx eax, al
movzx eax, word [eax*2 + 0x1001bfb0]
jmp 0x1006795a
mov ecx, dword [ecx]
mov edx, esi
and ecx, 0xfffff
mov eax, esi
cmp ecx, dword [eax + 0x100037e0]
je 0x10067975
add eax, 0xc
inc edx
cmp eax, 0x18
jb 0x1006790d
push esi
push 0x55
lea eax, [ebp - 0xc4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LCIDToLocaleName]
test eax, eax
jle 0x1006795e
push 0xa
lea eax, [ebp - 0x18]
push eax
push 0x1004
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jle 0x1006795e
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
mov dword [edi], eax
jmp 0x10067980
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10067980
movzx esi, si
or esi, 0x80070000
jmp 0x10067980
imul ecx, edx, 0xc
mov ecx, dword [ecx + 0x100037e8]
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.100365c0
mov esp, ebp
pop ebp
ret

Function at 0x10069b17
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x100ae134]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x228]
push eax
xor ebx, ebx
mov dword [ebp - 0x228], 0x10e
lea eax, [ebp - 0x114]
mov byte [ebp - 0x114], bl
push eax
push ebx
push 2
push edx
push ebx
push ecx
mov dword [esi], ebx
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
je 0x10069b67
xor eax, eax
jmp 0x10069b96
lea ecx, [ebp - 0x224]
call fcn.10069a9f
test eax, eax
je 0x10069b93
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.msvcrt.dll__stricmp]
neg eax
pop ecx
sbb eax, eax
inc eax
pop ecx
mov dword [esi], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.100365c0
mov esp, ebp
pop ebp
ret
Function at 0x10069d28
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x100ae134]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10069d43
sub ecx, edx
cmp ecx, 3
jae 0x10069d58
xor eax, eax
jmp 0x10069dea
mov al, byte [esi]
push ebx
xor ebx, ebx
push edi
cmp al, 0x2e
je 0x10069d8f
cmp al, 0x5c
je 0x10069dc9
cmp al, 0x2f
je 0x10069dc9
cmp byte [esi + 1], 0x3a
je 0x10069dc9
lea eax, [ebp - 0x118]
mov edi, 0x10e
push eax
lea eax, [ebp - 0x114]
push eax
push edi
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathA]
jmp 0x10069daa
lea eax, [ebp - 0x118]
mov edi, 0x10e
push eax
lea eax, [ebp - 0x114]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x10069de6
cmp eax, edi
jae 0x10069de6
push 0xffffffffffffffff
lea eax, [ebp - 0x114]
mov byte [ebp - 7], bl
push eax
push edi
push esi
call dword [sym.imp.msvcrt.dll_strncpy_s]
add esp, 0x10
mov bl, byte [esi + 3]
push esi
mov byte [esi + 3], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
xor ecx, ecx
mov byte [esi + 3], bl
cmp eax, 3
sete cl
mov eax, ecx
jmp 0x10069de8
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100365c0
mov esp, ebp
pop ebp
ret
Function at 0x1006e083
Capabilities:
Get number of processors

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10037dfa
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x100ae134]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0x68]
mov dword [edi], fcn.1006f740
test ecx, ecx
je 0x1006e0c2
call fcn.1007b0cd
mov eax, dword [edi + 0x58]
xor ebx, ebx
test eax, eax
je 0x1006e138
mov dword [eax + 0xf4], ebx
test dword [edi + 0x5c], 0x8000
jne 0x1006e138
mov eax, dword [edi + 0x58]
mov edx, 0x2000000
mov eax, dword [eax + 0x44]
mov ecx, dword [edi + 0x58]
and eax, edx
je 0x1006e0fa
push edx
call fcn.1003c74c
mov ecx, dword [edi + 0x58]
push 2
pop eax
jmp 0x1006e109
mov eax, dword [ecx + 0x28]
mov eax, dword [eax + 0x328]
shr eax, 0xc
and eax, 2
push ebx
push eax
call fcn.1009080d
test dword [edi + 0x5c], 0x80000
je 0x1006e138
mov eax, dword [edi + 0x58]
push ebx
or dword [eax + 0x10c], 0xffffffff
mov ecx, dword [edi + 0x58]
call fcn.1004b7eb
mov ecx, dword [edi + 0x58]
push ecx
mov ecx, dword [ecx + 0x20]
call fcn.100518b7
mov esi, dword [edi + 0x50]
test esi, esi
je 0x1006e155
mov ecx, esi
mov dword [esi], 0x10001424
call dword [sym.imp.MSDATL3.dll_public_virtual:_void___thiscall_CUtlProps2::destructor_void_]
push esi
call dword [sym.imp.MSDART.DLL_mpFree]
pop ecx
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x1006e172
call dword [sym.imp.MSDATL3.dll_public:_struct_IUnknown____thiscall_CBaseObj::GetOuterUnknown_void_]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x100b05a4]
call esi
mov ecx, dword [edi + 0x44]
test ecx, ecx
je 0x1006e189
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x100b05a4]
call esi
mov eax, dword [edi + 0x54]
test eax, eax
je 0x1006e1aa
lock dec dword [eax + 0x334]
mov eax, dword [edi + 0x54]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x100b05a4]
call esi
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x1006e1bd
lock dec dword [eax + 0x44]
push dword [edi + 0x4c]
call fcn.1006b4f0
mov eax, dword [edi + 0x40]
test eax, eax
je 0x1006e1d2
push eax
mov dword [eax], 0x1000105c
call dword [sym.imp.MSDART.DLL_mpFree]
pop ecx
lea eax, [edi + 0x64]
cmp dword [eax], ebx
je 0x1006e1e1
push eax
call dword [sym.imp.MSDART.DLL_MPDeleteCriticalSection]
pop ecx
cmp dword [edi + 0x1c], ebx
je 0x1006e211
cmp dword [0x100ae140], 0xffffffff
je 0x1006e211
push ebx
push dword [edi + 0x1c]
push 7
push dword [0x100b4fac]
mov esi, dword [0x100ae03c]
mov ecx, esi
push dword [0x100ae140]
call dword [0x100b05a4]
call esi
mov ecx, edi
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x38], 0x10001704
mov dword [edi + 0x30], 0x1000171c
mov dword [edi + 0x28], 0x1000152c
mov dword [edi + 0x20], 0x1000153c
call dword [sym.imp.MSDATL3.dll_public_virtual:_void___thiscall_CBaseObj::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100365c0
mov esp, ebp
pop ebp
ret
Function at 0x1008cfea
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x100ae134]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x10
push 9
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.msvcrt.dll__ultoa_s]
add esp, 0x10
lea ecx, [ebp - 0x38]
push 0x10004e8c
push 0x28
pop edx
call fcn.10069bea
test eax, eax
jns 0x1008d033
or eax, 0xffffffff
jmp 0x1008d06d
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x38]
call fcn.1008d457
lea eax, [ebp - 0x38]
push eax
push esi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
test eax, eax
je 0x1008d06b
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, edi
mov dword [edi + 0x3d8], eax
call fcn.1008ceab
mov esi, eax
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100365c0
mov esp, ebp
pop ebp
ret

Function at 0x1008d340
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x100ae134]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [ebx], 0x48
jae 0x1008d365
xor eax, eax
jmp 0x1008d445
cmp dword [ebx + 0x30], 0xff
ja 0x1008d35e
push 0x10
push 9
lea eax, [ebp - 0x10]
push eax
push dword [ebx + 8]
call dword [sym.imp.msvcrt.dll__ultoa_s]
add esp, 0x10
lea ecx, [ebp - 0x38]
push 0x10004e8c
push 0x28
pop edx
call fcn.10069bea
test eax, eax
js 0x1008d35e
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x38]
call fcn.1008d457
test eax, eax
js 0x1008d35e
push esi
call fcn.1008d07d
mov esi, eax
test esi, esi
je 0x1008d3c2
and dword [ebp - 0x40], edi
lea edi, [ebp - 0x48]
mov dword [ebp - 0x48], 0xc
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x38]
push eax
push 0x13c
push 0
push 4
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test esi, esi
je 0x1008d3e5
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
test edi, edi
je 0x1008d444
push eax
push eax
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [ebp - 0x3c], edx
test edx, edx
je 0x1008d444
mov eax, dword [ebx + 4]
lea edi, [edx + 8]
mov dword [edx], eax
lea esi, [ebx + 0xc]
mov eax, dword [ebx + 0x44]
mov dword [edx + 4], eax
push 8
pop ecx
rep movsd dword es:[edi], dword [esi]
lea edi, [edx + 0x28]
lea esi, [ebx + 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x30]
mov dword [edx + 0x38], eax
lea eax, [edx + 0x3c]
push dword [ebx + 0x30]
push dword [ebx + 0x2c]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor eax, eax
inc eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.100365c0
mov esp, ebp
pop ebp
ret 4
Function at 0x100a960a
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x100ae134]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x110]
xor ebx, ebx
push eax
push 0x20019
push ebx
push 0x1002a2f0
push SysReAllocStringLen
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100a96cf
push edi
lea eax, [ebp - 0x114]
mov dword [ebp - 0x10c], 1
push eax
lea eax, [ebp - 0x108]
mov edi, 0x104
push eax
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x114], edi
push eax
push ebx
push ebx
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100a96be
cmp dword [ebp - 0x10c], 2
lea eax, [ebp - 0x108]
mov byte [ebp - 5], bl
jne 0x100a96ad
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb ebx, ebx
inc ebx
jmp 0x100a96be
push eax
mov edx, edi
mov ecx, esi
call fcn.10069bea
xor ebx, ebx
test eax, eax
setns bl
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
jmp 0x100a96d1
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.100365c0
mov esp, ebp
pop ebp
ret