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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x446c38]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x426049
cmp word [ebx], dx
jne 0x426049
or byte [eax + edi + 0x28], 4
jmp 0x42604e
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4261b1
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x426191
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x42608f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4260c5
cmp eax, edx
jae 0x4260d3
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x42606a
jmp 0x4261b1
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42618c
cmp dword [ebp - 0x18], 0
je 0x42618c
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x446c38]
test byte [eax + edi + 0x28], 0x48
je 0x426162
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x426126
mov word [esi], cx
jmp 0x42615d
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x446c38]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x446c38]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x446c38]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4261b1
pop eax
cmp word [ebp - 4], ax
jne 0x426172
cmp esi, ebx
jne 0x426172
mov word [esi], ax
jmp 0x4261ae
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00426a3c
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4261b1
push 0xd
pop eax
jmp 0x42616d
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x446c38]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4261ab
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4261b1
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42a36a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x42a407
push ebx
push esi
call fcn.0042a333
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00429121
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42a3b4
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42a406
push edi
push eax
call fcn.00421d9e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42a3d4
call fcn.00421d64
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42a405
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00429121
add esp, 0x20
test eax, eax
jne 0x42a3f3
push edi
call fcn.00421d64
jmp 0x42a3fb
push ebx
call fcn.00421d64
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x42cbe4
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004219dd
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42cc53
cmp esi, dword [ebp - 4]
je 0x42cc4e
cmp dword [ebp + 0xc], 0
je 0x42cc4e
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x42cc2b
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0042c736
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x42cc55
xor eax, eax
inc eax
jmp 0x42cc55
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x42ccba
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x445014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004219dd
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004219dd
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x42cd31
cmp word [ecx], dx
je 0x42cd31
mov eax, dword [0x439b14]
push edi
dec eax
push eax
push 0x439a00
call fcn.0042cc59
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x42cda4
cmp word [eax], dx
je 0x42cda4
mov eax, dword [edi]
test eax, eax
je 0x42cd55
cmp word [eax], dx
je 0x42cd55
lea eax, [ebp - 0x10]
push eax
call fcn.0042c63c
jmp 0x42cd5e
lea eax, [ebp - 0x10]
push eax
call fcn.0042c6d7
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x42cdce
mov eax, dword [0x4399fc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4396f0
call fcn.0042cc59
add esp, 0xc
test al, al
je 0x42cdce
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x42cd99
cmp word [eax], di
je 0x42cd99
lea eax, [ebp - 0x10]
push eax
call fcn.0042c63c
pop ecx
jmp 0x42cdd0
lea eax, [ebp - 0x10]
push eax
call fcn.0042c6d7
jmp 0x42cd96
mov eax, dword [edi]
test eax, eax
je 0x42cdbb
cmp word [eax], dx
je 0x42cdbb
lea eax, [ebp - 0x10]
push eax
call fcn.0042c5f1
pop ecx
jmp 0x42cdce
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x42ce99
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0042cade
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x42ce99
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x42ce99
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x42ce99
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x42ce26
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0042369b
test ebx, ebx
je 0x42ce94
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0042369b
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42ce99
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42ce99
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00430337
add esp, 0x10
xor eax, eax
inc eax
jmp 0x42ce9b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412680
leave
ret
Function at 0x431430
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43145d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43145d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10001d60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1026ca08
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push edi
mov eax, dword [0x1037c990]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [esi + 4], ebx
setne al
cmp al, bl
jne 0x10001dac
push ebx
push 0x1fb
push str.c:dvsp4_build_sw_relgpu_drvinstaller_coreincNVProp.h
push 0xe0e00062
call fcn.100048f0
mov edi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [esp + 0xc]
push eax
call edi
mov dword [esp + 0x38], ebx
mov eax, dword [esi + 4]
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
cmp eax, ebx
jge 0x10001de2
push ebx
push 0x1fd
push str.c:dvsp4_build_sw_relgpu_drvinstaller_coreincNVProp.h
push eax
call fcn.100048f0
cmp word [esp + 0xc], bx
je 0x10001e1f
lea ecx, [esp + 0x1c]
push ecx
call edi
push 8
push ebx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
cmp eax, ebx
jge 0x10001e14
push ebx
push ebx
push 0x102b274a
push eax
call fcn.100048f0
mov ecx, dword [esp + 0x24]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov bl, 1
mov dword [esp + 0x38], 0xffffffff
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov al, bl
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10003080
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x102710f0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x1037c990]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [esp + 0x1c]
push eax
call edi
mov dword [esp + 0x38], 0
lea ecx, [esp + 0xc]
push ecx
call edi
mov byte [esp + 0x38], 1
mov edx, dword [ebp + 0x14]
mov edi, dword [esi]
push edx
push ecx
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.10003150
add esp, 0xc
push eax
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0x24]
push edx
push eax
call fcn.10003150
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 0x10]
add esp, 8
push eax
push ecx
mov ecx, esi
call edx
mov esi, eax
mov byte [esp + 0x38], 0
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0xc]
push eax
call edi
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x1c]
push ecx
call edi
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100031b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x102710f0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x1037c990]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [esp + 0x1c]
push eax
call edi
mov dword [esp + 0x38], 0
lea ecx, [esp + 0xc]
push ecx
call edi
mov byte [esp + 0x38], 1
mov edx, dword [ebp + 0x14]
mov edi, dword [esi]
push edx
push ecx
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.10003150
add esp, 0xc
push eax
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0x24]
push edx
push eax
call fcn.10003150
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 0x14]
add esp, 8
push eax
push ecx
mov ecx, esi
call edx
mov byte [esp + 0x38], 0
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0xc]
push eax
call esi
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x1c]
push ecx
call esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10003f70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10003f89
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10003fc4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x10003fc0
lea ebx, [ebx]
cmp esi, eax
jae 0x10003fc4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10003fb0
cmp esi, eax
jb 0x10003fca
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x10009ef0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x10263741
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x1037c990]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, dword [esp + 0x40]
xor ebx, ebx
mov dword [esp + 0x10], ebx
xor eax, eax
mov word [esp + 0x18], ax
mov eax, edx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
lea edi, [eax + 2]
jmp 0x10009f40
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10009f40
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.10035ce0
mov edi, 1
mov dword [esp + 0x38], edi
mov ecx, dword [esp + 0x44]
push 0xffffffffffffffff
push ebx
push ecx
lea ecx, [esp + 0x20]
call fcn.10022020
push 0xffffffffffffffff
push ebx
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov word [esi + 4], dx
call fcn.100377d0
mov dword [esp + 0x10], edi
mov byte [esp + 0x38], bl
cmp dword [esp + 0x2c], 8
jb 0x10009fab
mov eax, dword [esp + 0x18]
push eax
call fcn.101d2eac
add esp, 4
xor ecx, ecx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], cx
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret

Function at 0x1000a8a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10262de1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x1037c990]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov dword [esp + 0x14], ebx
xor eax, eax
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], ax
call fcn.100377d0
mov dword [esp + 0x34], 1
mov edx, dword [esp + 0x40]
push 0xffffffffffffffff
push ebx
push edx
lea ecx, [esp + 0x1c]
call fcn.10022020
push 0xffffffffffffffff
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push ebx
mov word [esi + 4], cx
push eax
mov ecx, esi
call fcn.100377d0
mov dword [esp + 0xc], 1
mov byte [esp + 0x34], bl
cmp dword [esp + 0x28], 8
jb 0x1000a943
mov edx, dword [esp + 0x14]
push edx
call fcn.101d2eac
add esp, 4
xor eax, eax
mov word [esp + 0x14], ax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret
Function at 0x1000b2f0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x10262da0
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
mov eax, dword [0x1037c990]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov ebx, dword [edi + 0x14]
xor ebp, ebp
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], eax
jb 0x1000b332
mov eax, dword [eax]
push ebp
push ebp
push ebp
push ebp
push ebx
push eax
push ebp
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x74], 0
test esi, esi
jle 0x1000b393
push esi
call fcn.1021e8a2
add esp, 4
mov ecx, eax
lea edx, [esp + 0x18]
call fcn.1000b290
cmp dword [edi + 0x18], 8
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], ebp
jb 0x1000b37e
mov eax, dword [eax]
push 0
push 0
push esi
push ebp
push ebx
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x7c]
push 0
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [eax]
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000b3dd
cmp dword [esp + 0x20], esi
jne 0x1000b3dd
mov dword [esp + 0x74], 0xffffffff
push ebp
call fcn.102306c5
add esp, 4
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 4
push 0x14
push str.Error_writing_to_log
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
call fcn.10036910
mov byte [esp + 0x74], 1
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x44]
call fcn.100339a0
push 0x1031cb40
lea eax, [esp + 0x44]
push eax
call fcn.1023215b
int3
Function at 0x1000b840
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x10262d6a
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1037c990]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
push 0x800
call fcn.1021e8a2
add esp, 4
push eax
lea eax, [esp + 0x24]
push eax
call fcn.1000b700
mov dword [esp + 0x30], 0
cmp dword [edi + 0x18], 8
mov dword [esp + 0x18], 0x800
lea ebp, [edi + 4]
jb 0x1000b89f
mov eax, dword [ebp]
jmp 0x1000b8a1
mov eax, ebp
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push ecx
push edx
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x24]
push ecx
push 0
push eax
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp ebx, 0xea
jne 0x1000b91c
mov eax, dword [esp + 0x18]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1021e8a2
add esp, 4
push eax
lea esi, [esp + 0x24]
call fcn.1000b760
cmp dword [edi + 0x18], 8
jb 0x1000b8fb
mov ebp, dword [ebp]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
push 0
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
jne 0x1000b984
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
shr esi, 1
cmp eax, 1
je 0x1000b93b
cmp eax, 2
je 0x1000b93b
mov ebx, 0x3bc6
jmp 0x1000b984
mov edx, dword [esp + 0x20]
cmp word [edx + esi*2 - 2], 0
jne 0x1000b96c
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000b950
mov ecx, dword [esp + 0x3c]
sub eax, esi
sar eax, 1
push eax
push edx
call fcn.10035ce0
jmp 0x1000b984
mov edi, dword [esp + 0x3c]
mov eax, edi
call fcn.1000b7e0
mov edx, dword [esp + 0x20]
push esi
push edx
mov ecx, edi
call fcn.1001df80
mov dword [esp + 0x30], 0xffffffff
lea eax, [esp + 0x20]
push eax
call fcn.10014810
mov eax, ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8

Function at 0x1000ba40
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x10262d38
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x1037c990]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
push 0xfffe
call fcn.1021e8a2
mov esi, eax
add esp, 4
mov dword [esp + 8], esi
mov dword [esp + 0x14], 0
cmp dword [edi + 0x18], 8
jb 0x1000ba88
mov eax, dword [edi + 4]
jmp 0x1000ba8b
lea eax, [edi + 4]
push 0x7fff
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000baa0
sub eax, edx
sar eax, 1
push eax
push esi
mov ecx, edi
call fcn.10035ce0
mov dword [esp + 0x14], 0xffffffff
test esi, esi
je 0x1000bacd
push esi
call fcn.101d2eac
add esp, 4
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x1000bbe0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10262185
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x1037c990]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x20]
push edi
mov ecx, esi
call fcn.1000bf40
mov dword [esp + 0x18], 0
mov dword [esi + 0x3c], vtable.boost::exception_detail::clone_base.0
mov byte [esp + 0x18], 1
mov dword [esi], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_Nvidia::Logging::RegistryException__.0
mov dword [esi + 0x28], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_Nvidia::Logging::RegistryException__.1.0
mov dword [esi + 0x3c], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_Nvidia::Logging::RegistryException__.2.0
test edi, edi
je 0x1000bc42
lea ebx, [edi + 0x28]
jmp 0x1000bc44
xor ebx, ebx
mov ecx, dword [esi + 0x2c]
mov edi, dword [ebx + 4]
test ecx, ecx
je 0x1000bc55
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
mov dword [esi + 0x2c], edi
test edi, edi
je 0x1000bc65
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
mov ecx, edi
call edx
mov eax, dword [ebx + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [ebx + 0x10]
mov dword [esi + 0x38], edx
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x1000c170
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x102620b1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x1037c990]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
xor ebx, ebx
push 0xffffffffffffffff
mov dword [esp + 0x10], ebx
push ebx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.10036ec0
mov dword [esp + 0x34], 1
mov ecx, dword [esp + 0x44]
push 0xffffffffffffffff
push ebx
push ecx
lea ecx, [esp + 0x1c]
call fcn.10029270
push 0xffffffffffffffff
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov byte [esi + 4], bl
call fcn.10036ec0
mov dword [esp + 0xc], 1
mov byte [esp + 0x34], bl
cmp dword [esp + 0x28], 0x10
jb 0x1000c211
mov edx, dword [esp + 0x14]
push edx
call fcn.101d2eac
add esp, 4
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret