joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009610
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push str.Wrapper_not_implemented:SteamWasBlobRegistryDeleted
mov dword [ecx], 1
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov eax, dword [str.Wrapper_not_implemented]
mov dword [ecx + 0xc], eax
mov eax, dword [0x10055784]
mov dword [ecx + 0x10], eax
mov eax, dword [0x10055788]
mov dword [ecx + 0x14], eax
mov eax, dword [0x1005578c]
mov dword [ecx + 0x18], eax
mov eax, dword [0x10055790]
mov dword [ecx + 0x1c], eax
mov eax, dword [0x10055794]
mov dword [ecx + 0x20], eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
pop ebp
ret

Function at 0x1000a1c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push dword [ebp + 0x18]
call fcn.100057f0
mov esi, dword [ebp + 0x10]
add esp, 4
test esi, esi
je 0x1000a1df
mov dword [esi], 0
xor eax, eax
cmp dword [0x100739d4], eax
je 0x1000a259
push edi
mov edi, dword [ebp + 8]
test edi, edi
cmovne eax, dword [ebp + 0xc]
push eax
push edi
push str.SteamUser
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test esi, esi
je 0x1000a206
mov dword [esi], eax
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x1000a23c
mov ecx, dword [0x100739d4]
lea edx, [ebp - 8]
push edx
mov eax, dword [ecx]
call dword [eax + 8]
mov edx, dword [eax]
xor eax, eax
mov word [ebp - 0x10], ax
mov ecx, edx
mov eax, dword [ebp - 0x10]
and ecx, 1
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
shr edx, 1
mov dword [esi + 4], eax
mov dword [esi + 8], edx
mov dword [esi + 0xc], ecx
cmp byte [0x10074238], 0
je 0x1000a253
push edi
push str.SteamGetUser:__s
call fcn.10025570
add esp, 8
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000a330
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc10
push ebx
push esi
push edi
push dword [ebp + 0x14]
call fcn.100057f0
mov esi, dword [ebp + 0x10]
add esp, 4
cmp byte [0x10074238], 0
mov edi, dword [ebp + 8]
je 0x1000a365
push esi
push edi
push str.SteamLaunchApp_uAppId__u__args___s_
call fcn.10025570
add esp, 0xc
push 0x410
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.10033d30
lea eax, [ebp - 0x410]
push 0x410
push eax
call fcn.1000fc10
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x1000a460
push 0xffffffffffffffff
push 0x410
lea eax, [ebp - 0x410]
push 0x100579c8
push eax
call fcn.1002e530
push 0xffffffffffffffff
push 0x410
lea eax, [ebp - 0x410]
push ebx
push eax
call fcn.1002e530
test esi, esi
mov eax, 0x1005546a
cmovne eax, esi
push eax
push edi
push 0x100579cc
lea eax, [ebp - 0xc10]
push 0x400
push eax
call fcn.1000a8b0
add esp, 0x34
xor eax, eax
mov word [ebp - 0x412], ax
push 1
push eax
lea eax, [ebp - 0xc10]
push eax
push 4
push 0
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.1002f370
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1003183e
push 0
mov edi, eax
lea eax, [ebp - 0x410]
push esi
push edi
push eax
call fcn.1002f370
add esp, 0x24
push edi
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push edi
mov esi, eax
call fcn.10031847
add esp, 4
cmp esi, 0x20
jbe 0x1000a460
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000a470
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [0x100739dc], 0
jne 0x1000a4bc
push 0x100
lea eax, [ebp - 0x118]
push eax
push str.SteamGameId
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x1000a4bc
cmp eax, 0x100
jae 0x1000a4bc
push 0xa
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.1003a71c
add esp, 0xc
mov dword [0x100739dc], eax
push esi
push edi
push 0x20
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0xf
call fcn.10009b30
mov dword [ebp - 8], 0x1b
mov edi, eax
mov dword [ebp - 4], 0x1f
mov ecx, 6
mov esi, str.cser.steampowered.com:27013
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov byte [eax + 0x1b], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call fcn.10014d50
mov edx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
cmp edx, 0x10
jb 0x1000a541
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000a537
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000a54f
push edx
push ecx
call fcn.10031830
add esp, 8
push 0xa
call fcn.10014d30
add esp, 4
mov esp, ebp
pop ebp
ret
call fcn.10039ac0
int3
Function at 0x1000a690
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
mov esi, dword [ebp + 0xc]
push esi
call fcn.100057f0
push str.SteamClient021
push 0
push 0
push 0x100739c0
call fcn.1000f8c0
add esp, 0x14
mov dword [0x100739c4], eax
test eax, eax
je 0x1000a837
cmp dword [0x100739c0], 0
je 0x1000a837
mov edx, dword [eax]
mov ecx, eax
call dword [edx]
mov ecx, dword [0x100739c4]
mov dword [0x100739c8], eax
push eax
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [0x100739c4]
mov dword [0x100739cc], eax
push str.SteamUtils010
push dword [0x100739c8]
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, dword [0x100739c4]
push str.SteamUser023
push dword [0x100739c8]
mov dword [0x100739d0], eax
mov eax, dword [ecx]
push dword [0x100739cc]
call dword [eax + 0x14]
mov ecx, dword [0x100739c4]
push str.STEAMAPPS_INTERFACE_VERSION008
push dword [0x100739c8]
mov dword [0x100739d4], eax
mov eax, dword [ecx]
push dword [0x100739cc]
call dword [eax + 0x3c]
mov ecx, dword [0x100739d0]
mov dword [0x100739d8], eax
test ecx, ecx
je 0x1000a820
cmp dword [0x100739d4], 0
je 0x1000a820
cmp dword [0x100739cc], 0
je 0x1000a820
test eax, eax
je 0x1000a820
cmp byte [0x10074238], 0
je 0x1000a798
push 0x100577e4
call fcn.10025570
mov ecx, dword [0x100739d0]
add esp, 4
mov eax, dword [ecx]
call dword [eax + 0x24]
mov edx, eax
mov dword [0x100739dc], edx
test edx, edx
jne 0x1000a7ee
push 0x100
lea eax, [ebp - 0x100]
push eax
push str.SteamGameId
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x1000a7e8
cmp eax, 0x100
jae 0x1000a7e8
push 0xa
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.1003a71c
mov edx, eax
add esp, 0xc
mov dword [0x100739dc], edx
jmp 0x1000a7ee
mov edx, dword [0x100739dc]
mov ecx, dword [0x100739d8]
push 0x400
push 0x100739e0
push edx
mov eax, dword [ecx]
call dword [eax + 0x48]
call fcn.1000c690
test al, al
je 0x1000a847
call fcn.1000cb80
test al, al
je 0x1000a847
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
push 1
push str.Missing_interface
push esi
call fcn.10006e60
add esp, 0xc
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 1
push str.SteamAPI_Init_Internal_failed
push esi
call fcn.10006e60
add esp, 0xc
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000c040
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x2c]
sub esp, 0x100
mov ecx, dword [0x100f0df8]
push esi
mov esi, dword [eax + ecx*4]
mov eax, dword [0x10074228]
cmp eax, dword [esi + 4]
jg 0x1000c1d5
mov eax, dword [0x1007422c]
cmp eax, dword [esi + 4]
jg 0x1000c20b
mov eax, dword [0x10074230]
cmp eax, dword [esi + 4]
jg 0x1000c241
mov eax, dword [0x10074234]
cmp eax, dword [esi + 4]
jg 0x1000c277
mov esi, dword [ebp + 8]
test esi, esi
je 0x1000c1ce
mov ecx, 0x100592e0
mov eax, esi
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1000c0d0
test dl, dl
je 0x1000c0cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1000c0d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x1000c0b0
xor eax, eax
jmp 0x1000c0d5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1000c0e3
mov eax, 0x10072604
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, str.Steam004
mov eax, esi
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1000c110
test dl, dl
je 0x1000c10c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1000c110
add eax, 2
add ecx, 2
test dl, dl
jne 0x1000c0f0
xor eax, eax
jmp 0x1000c115
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1000c123
mov eax, 0x10072608
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, str.Steam005
mov eax, esi
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1000c150
test dl, dl
je 0x1000c14c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1000c150
add eax, 2
add ecx, 2
test dl, dl
jne 0x1000c130
xor eax, eax
jmp 0x1000c155
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1000c163
mov eax, 0x1007260c
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, str.Steam006
mov eax, esi
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1000c190
test dl, dl
je 0x1000c18c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1000c190
add eax, 2
add ecx, 2
test dl, dl
jne 0x1000c170
xor eax, eax
jmp 0x1000c195
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1000c1a3
mov eax, 0x10072610
pop esi
mov esp, ebp
pop ebp
ret
push esi
push str.Steam_interface_not_implemented:__s
lea eax, [ebp - 0x100]
push 0x100
push eax
call fcn.1000a870
add esp, 0x10
mov byte [ebp - 1], 0
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 0x10074228
call fcn.10031c99
add esp, 4
cmp dword [0x10074228], 0xffffffff
jne 0x1000c06a
push 0x10053df0
call fcn.10031b51
push 0x10074228
call fcn.10031c4f
add esp, 8
jmp 0x1000c06a
push 0x1007422c
call fcn.10031c99
add esp, 4
cmp dword [0x1007422c], 0xffffffff
jne 0x1000c07b
push 0x10053e00
call fcn.10031b51
push 0x1007422c
call fcn.10031c4f
add esp, 8
jmp 0x1000c07b
push 0x10074230
call fcn.10031c99
add esp, 4
cmp dword [0x10074230], 0xffffffff
jne 0x1000c08c
push 0x10053e10
call fcn.10031b51
push 0x10074230
call fcn.10031c4f
add esp, 8
jmp 0x1000c08c
push 0x10074234
call fcn.10031c99
add esp, 4
cmp dword [0x10074234], 0xffffffff
jne 0x1000c09d
push 0x10053e20
call fcn.10031b51
push 0x10074234
call fcn.10031c4f
add esp, 8
jmp 0x1000c09d
Function at 0x1000ea10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 0xc]
call fcn.100057f0
add esp, 4
test dword [ebp + 8], 0x40000000
je 0x1000ea44
push str.__hFile__VPK_FILE_HANDLE_FLAG_
push 0x2bb
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_steam2wrapper_steam2wrapper_stdio.cpp
call fcn.100236d0
add esp, 0xc
test al, al
jne 0x1000ea44
int3
push esi
push edi
push 0x100594a8
push str.nul:
lea edi, [ebp + 0x14]
call fcn.10035ea5
add esp, 8
mov esi, eax
xor eax, eax
test esi, esi
cmove edi, eax
push edi
push eax
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push esi
call fcn.10005600
push dword [eax + 4]
push dword [eax]
call fcn.1003970a
push esi
mov edi, eax
call fcn.10035d6a
add esp, 0x1c
test eax, eax
jne 0x1000eae6
test edi, edi
js 0x1000eae6
je 0x1000eae6
call fcn.10023250
lea esi, [edi + 1]
push esi
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x1000eae6
push dword [ebp - 4]
push dword [ebp + 0x10]
push esi
push edi
call fcn.1000f0d0
push dword [ebp + 8]
mov esi, eax
call fcn.1000c620
push eax
push esi
push 1
push edi
call fcn.1003afa4
add esp, 0x24
mov esi, eax
call fcn.10023250
push 0
push edi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000eb40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 0x18]
call fcn.100057f0
mov esi, dword [ebp + 0x14]
push esi
call fcn.1000cb20
mov ebx, eax
add esp, 8
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x1000ec47
mov edx, dword [ebp + 0xc]
imul edx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ecx, dword [ebx + 0x18]
push edx
push esi
push ebx
call fcn.10004b10
test dword [ebp + 0x14], 0x20000000
mov edi, eax
je 0x1000ec18
cmp edi, 1
jbe 0x1000ebce
add edi, esi
xor ebx, ebx
mov ecx, esi
cmp esi, edi
jae 0x1000ebc7
jmp 0x1000eba0
mov dl, byte [esi]
cmp dl, 0xd
jne 0x1000ebba
lea eax, [esi + 1]
cmp eax, edi
jae 0x1000ebba
cmp byte [eax], 0xa
jne 0x1000ebba
mov byte [ecx], 0xa
mov esi, eax
jmp 0x1000ebc0
cmp ecx, esi
je 0x1000ebc0
mov byte [ecx], dl
inc esi
inc ecx
inc ebx
cmp esi, edi
jb 0x1000eba0
mov edi, ebx
mov ebx, dword [ebp - 4]
jmp 0x1000ec18
jne 0x1000ec18
cmp byte [esi], 0xd
jne 0x1000ec18
mov ecx, dword [ebx + 0x18]
lea eax, [ebp - 4]
push 1
push eax
push ebx
mov dword [ebp - 4], 0
call fcn.10004b10
test eax, eax
je 0x1000ec18
cmp dword [ebp - 4], 0xa
jne 0x1000ebfa
mov byte [esi], 0xa
jmp 0x1000ec18
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
dec ecx
cmp edx, ecx
mov eax, edx
cmovge eax, ecx
test eax, eax
jns 0x1000ec10
xor ecx, ecx
jmp 0x1000ec15
cmp edx, ecx
cmovl ecx, edx
mov dword [ebx + 0xc], ecx
mov ecx, dword [ebp + 0xc]
cmp ecx, 1
jbe 0x1000ec28
mov eax, edi
xor edx, edx
div ecx
mov edi, eax
cmp edi, dword [ebp + 0x10]
je 0x1000ec75
mov eax, dword [ebx + 0xc]
cmp eax, dword [ebx + 8]
jl 0x1000ec75
mov eax, dword [ebp + 0x18]
mov dword [eax], 0xb
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.1000c620
mov esi, dword [ebp + 0x10]
mov ebx, eax
push ebx
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100360a2
mov edi, eax
add esp, 0x14
cmp edi, esi
je 0x1000ec77
push ebx
call fcn.1003a79a
add esp, 4
test eax, eax
jne 0x1000ec35
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000f080
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x18]
call fcn.100057f0
add esp, 4
test dword [ebp + 0x14], 0x40000000
je 0x1000f0b3
push str.__hFile__VPK_FILE_HANDLE_FLAG_
push 0x29d
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_steam2wrapper_steam2wrapper_stdio.cpp
call fcn.100236d0
add esp, 0xc
test al, al
jne 0x1000f0b3
int3
push dword [ebp + 0x14]
call fcn.1000c620
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1003afa4
add esp, 0x14
pop ebp
ret
Function at 0x1000f380
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.1000f5a0
mov ebx, dword [ebp + 0xc]
add esp, 4
mov edi, ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x1000f3a6
sub edi, ecx
mov edx, 2
inc edi
xor ecx, ecx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1003183e
add esp, 4
mov esi, eax
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1000f3e6
mov word [esi], ax
lea eax, [ebp - 4]
push eax
push 0x20219
push 0
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
mov edi, eax
call fcn.10031847
add esp, 4
test edi, edi
jne 0x1000f4a4
mov ebx, dword [ebp + 0x18]
xor ecx, ecx
mov edx, 2
lea eax, [ebx + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1003183e
add esp, 4
lea ecx, [ebx + ebx]
mov dword [ebp - 8], ecx
mov esi, eax
lea ecx, [ebp - 0xc]
push dword [ebp + 0x10]
call fcn.1000f190
lea ecx, [ebp - 8]
push ecx
push esi
lea ecx, [ebp - 0x10]
push ecx
push edi
push dword [eax]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xc]
mov edi, eax
call fcn.10031847
add esp, 4
test edi, edi
jne 0x1000f490
mov eax, dword [ebp - 8]
xor ecx, ecx
push ecx
push ecx
push ebx
push dword [ebp + 0x14]
shr eax, 1
push 0xffffffffffffffff
push esi
push ecx
push 0xfde9
mov word [esi + eax*2], cx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
mov ecx, 0x7a
cmove edi, ecx
push esi
call fcn.10031847
add esp, 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000f4b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
push dword [ebp + 8]
call fcn.1000f5a0
mov edi, dword [ebp + 0xc]
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea ecx, [edi + 1]
lea esp, [esp]
mov al, byte [edi]
inc edi
test al, al
jne 0x1000f4e0
sub edi, ecx
mov edx, 2
inc edi
xor ecx, ecx
mov eax, edi
mul edx
push esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1003183e
add esp, 4
mov esi, eax
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 0xc]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1000f523
mov word [esi], ax
lea eax, [ebp - 4]
push eax
push 0x20219
push 0
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
mov edi, eax
call fcn.10031847
add esp, 4
pop esi
test edi, edi
jne 0x1000f589
push dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], 4
call fcn.1000f190
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push 0
push dword [eax]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov edi, eax
call fcn.10031847
add esp, 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x14]
test edi, edi
pop edi
cmove eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x100103e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x404
test eax, eax
jne 0x100104c1
mov word [ebp - 0x404], ax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
lea eax, [ebp - 0x404]
mov dword [ebp + 0xc], 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001053d
mov eax, dword [ebp - 4]
push esi
push edi
cmp eax, 1
je 0x10010442
cmp eax, 2
jne 0x100104f4
mov esi, dword [ebp + 0xc]
and esi, 0xfffffffe
mov dword [ebp + 0xc], esi
cmp esi, 0xbebc200
jae 0x10010536
mov eax, esi
xor ecx, ecx
shr eax, 1
mov edx, 2
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1003183e
add esp, 4
mov edi, eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 0x404]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 0xc]
xor edx, edx
shr ecx, 1
mov word [edi + ecx*2], dx
mov ecx, dword [ebp - 4]
cmp ecx, 1
je 0x100104a8
cmp ecx, 2
jne 0x100104eb
cmp eax, 0xea
jne 0x10010500
push edi
call fcn.10031847
add esp, 4
lea esi, [esi*2 + 0xfa0]
jmp 0x10010448
push 0x200
lea ecx, [ebp - 0x404]
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x100103fb
mov eax, 0x57
mov esp, ebp
pop ebp
ret
push edi
call fcn.10031847
add esp, 4
pop edi
pop esi
mov eax, 0xd
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x14]
push 0xa
push esi
push dword [ebp + 0x10]
push edi
call fcn.1002f1e0
push edi
mov ebx, eax
call fcn.10031847
add esp, 0x14
test ebx, ebx
jne 0x10010523
cmp word [edi], bx
jne 0x100104f4
xor eax, eax
mov ecx, 0xea
cmp ebx, esi
pop edi
pop esi
cmovg eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 0xe
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10010c00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [ecx]
push edi
mov edi, dword [ebp + 0x14]
cmp esi, 7
jle 0x10010cc0
test bl, 3
je 0x10010c38
movzx edx, byte [ebx]
dec esi
movzx ecx, al
inc ebx
xor edx, ecx
shr eax, 8
xor eax, dword [edi + edx*4]
test bl, 3
jne 0x10010c23
mov ecx, esi
and ecx, 0xfffffff8
add ebx, ecx
sub esi, ecx
neg ecx
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], ecx
je 0x10010cbd
mov esi, ecx
xor eax, dword [esi + ebx]
movzx ecx, al
shr eax, 8
mov edx, dword [edi + ecx*4 + 0xc00]
movzx ecx, al
shr eax, 8
xor edx, dword [edi + ecx*4 + 0x800]
movzx ecx, al
shr eax, 8
mov ebx, dword [edi + ecx*4 + 0x400]
xor ebx, dword [edi + eax*4]
mov eax, dword [ebp + 0xc]
xor ebx, dword [esi + eax + 4]
xor ebx, edx
movzx eax, bl
shr ebx, 8
mov ecx, dword [edi + eax*4 + 0xc00]
movzx eax, bl
shr ebx, 8
xor ecx, dword [edi + eax*4 + 0x800]
movzx eax, bl
shr ebx, 8
mov eax, dword [edi + eax*4 + 0x400]
xor eax, dword [edi + ebx*4]
mov ebx, dword [ebp + 0xc]
xor eax, ecx
add esi, 8
jne 0x10010c50
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
test esi, esi
jle 0x10010cdd
movzx edx, byte [ebx]
lea ebx, [ebx + 1]
movzx ecx, al
dec esi
xor edx, ecx
shr eax, 8
xor eax, dword [edi + edx*4]
test esi, esi
jg 0x10010cc4
mov ecx, dword [ebp + 8]
pop edi
pop esi
mov dword [ecx], eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10010cf0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x10074f7a], 0
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0xc], 0xffffffff
je 0x10010d32
cmp edi, 0xc0
jl 0x10010d32
mov eax, edi
shr eax, 6
dec eax
push eax
lea eax, [ebp + 0xc]
push esi
push eax
call fcn.10010aa0
mov eax, edi
add esp, 0xc
and eax, 0x3f
sub esi, eax
add esi, edi
mov edi, eax
push 0x1005a170
push edi
lea eax, [ebp + 0xc]
push esi
push eax
call fcn.10010c00
mov eax, dword [ebp + 0xc]
add esp, 0x10
not eax
pop edi
pop esi
pop ebp
ret

Function at 0x100111c0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
cmp byte [edi + 0x94], 0
mov dword [edi], vtable.CFileWriterThread.0
jne 0x100111ee
push 1
call fcn.100136a0
mov ecx, edi
call fcn.10024660
test al, al
je 0x100111ee
push 0
mov ecx, edi
call fcn.10024b00
lea ecx, [edi + 0x80]
mov dword [edi + 0x90], 0
call fcn.100106a0
lea ecx, [edi + 0x80]
call fcn.100106a0
lea ecx, [edi + 0x70]
call fcn.10024550
lea ecx, [edi + 0x50]
call fcn.10010fe0
lea ecx, [edi + 0x38]
call fcn.10024510
mov ecx, edi
pop edi
pop esi
jmp fcn.10024310
Function at 0x10011390
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0x1005c1e0
mov dword [ebp - 4], 0
call fcn.10012490
push 0
lea ecx, [ebp - 0xc]
call fcn.100122c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100113d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x100113d8
xor bl, bl
jmp 0x100113da
mov bl, 1
mov eax, dword [ebp - 4]
test eax, eax
je 0x100113ea
push eax
call fcn.10031847
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x100113fa
push eax
call fcn.10031847
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10011450
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0x1005c1e0
mov dword [ebp - 4], 0
call fcn.10012490
lea ecx, [ebp - 0xc]
call fcn.100122c0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov eax, dword [ebp - 4]
setne bl
test eax, eax
je 0x10011497
push eax
call fcn.10031847
add esp, 4
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x100114a7
push ecx
call fcn.10031847
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100114b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0x1005c1e0
mov dword [ebp - 4], 0
call fcn.10012490
lea ecx, [ebp - 0xc]
call fcn.100122c0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100114ee
test al, 0x10
je 0x100114ee
mov bl, 1
jmp 0x100114f0
xor bl, bl
mov eax, dword [ebp - 4]
test eax, eax
je 0x10011500
push eax
call fcn.10031847
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x10011510
push eax
call fcn.10031847
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret