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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov ecx, dword [ebp + 8]
mov eax, dword [0x1d8f008]
xor eax, ebp
mov dword [esp + 0x28], eax
test ecx, ecx
je 0x1cf8243
cmp dword [0x1d90c00], 0xe69e32f3
jne 0x1cf8246
mov esi, 0x308
mov edx, 0x20
mov edi, 0x20
add esi, dword [ecx + 8]
mov byte [esp + 0xf], 0xff
mov al, byte [ecx + 2]
je 0x1cf8094
bsr edi, esi
xor edi, 0x1f
mov ecx, 0x1d7b724
sub ecx, edi
mov cl, byte [ecx]
mov ebx, esi
shr ebx, cl
sub edx, edi
and ebx, 7
lea ecx, [ebx + edx*8]
mov edx, dword [edx*4 + 0x1d7b728]
and edx, esi
cmp edx, 1
mov edx, dword [ebp + 8]
lea edi, [edx + 0x48]
sbb ecx, 0xffffffff
movzx ecx, word [ecx + ecx + 0x1d7b4f0]
test al, al
mov dword [esp], esi
jne 0x1cf80e3
cmp esi, 0x41
setae al
cmp cx, 0x76
setb dl
and dl, al
movzx eax, dl
or eax, ecx
mov ecx, eax
movzx ebx, cx
shl ebx, 5
mov dword [esp + 4], edi
lea esi, [edi + ebx]
mov eax, dword [ebp + 8]
lea edi, [eax + 0x40]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1cf81e0
mov dword [esp + 8], edi
mov eax, dword [esi]
mov edi, dword [eax]
test edi, edi
je 0x1cf81ec
mov byte [esp + 0xf], 0
mov edx, dword [edi]
test edx, edx
je 0x1cf81d9
mov ecx, dword [esp + 4]
mov ebx, dword [ecx + ebx + 0xc]
mov ecx, edx
bswap ecx
mov esi, ecx
xor esi, edi
cmp esi, 0x1fffff
ja 0x1cf8249
mov esi, ecx
and esi, 0x1fc000
je 0x1cf8249
prefetcht0 byte [ecx]
mov dword [eax], ecx
mov ecx, dword [eax + 0xc]
lea edx, [ecx + 2]
and edx, 0x3ffe
and ecx, 0xffffc001
or ecx, edx
mov dword [eax + 0xc], ecx
mov esi, dword [ebp + 8]
mov eax, dword [eax + 8]
mov ecx, dword [esi + 0x117c]
add ecx, dword [eax + 0xc]
mov eax, dword [esi + 0x1180]
mov dword [esi + 0x117c], ecx
cmp eax, ecx
cmova ecx, eax
mov dword [esi + 0x1180], ecx
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, edi
push esi
call fcn.01cf8290
push edi
push dword [0x1d9eb90]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x1d93658]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov dword [eax + 0x98], edi
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.01cc3f9d
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor ecx, ecx
jmp 0x1cf8151
mov ecx, edi
call fcn.01cf7ce0
jmp 0x1cf8105
lea eax, [esp + 0xf]
mov ecx, esi
push eax
push 0x4000
push dword [esp + 8]
push 2
mov esi, dword [ebp + 8]
push esi
call fcn.01cf5b20
test eax, eax
je 0x1cf823c
mov edi, eax
and eax, 0xffe00000
mov ecx, edi
shr ecx, 9
and ecx, 0x1fe0
or ecx, eax
mov eax, ecx
or eax, 0x1000
or ecx, 0x101e
movzx ecx, byte [ecx]
and ecx, 0x3f
shl ecx, 5
sub eax, ecx
jmp 0x1cf816d
xor edi, edi
jmp 0x1cf8190
int3
int3
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x10]
movdqa xmmword [esi], xmm0
mov ecx, esi
push 0
push edx
push str.first
call fcn.01cf68d0
push esi
call fcn.01cf00e0
add esp, 4
push ebx
call fcn.01cf6940
int3
Function at 0x1cf8920
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x1cf8937
test eax, eax
je 0x1cf8937
pop esi
pop edi
pop ebp
ret 0xc
test eax, eax
jne 0x1cf8945
mov ecx, dword [0x1d9ebf4]
test ecx, ecx
jne 0x1cf8981
cmp dword [0x1d9ebec], 0
je 0x1cf8931
mov esi, dword [0x1d9ebf0]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test edi, edi
jne 0x1cf898b
test esi, esi
je 0x1cf8931
mov ecx, dword [0x1d9ebec]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
jmp 0x1cf8931
call dword [section..00cfg]
call ecx
jmp 0x1cf8945
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1cf8969

Function at 0x1cfccb0
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, edx
cmp edx, 4
jb 0x1cfcce8
imul esi, dword [ecx], 0x5bd1e995
mov edi, esi
shr edi, 0x18
xor edi, esi
imul esi, edi, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor eax, esi
add ecx, 4
add edx, 0xfffffffc
cmp edx, 3
ja 0x1cfccc2
cmp edx, 2
je 0x1cfcd1a
cmp edx, 3
je 0x1cfcd11
cmp edx, 1
je 0x1cfcd23
mov ecx, eax
shr ecx, 0xd
xor ecx, eax
imul ecx, ecx, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
xor eax, ecx
pop esi
pop edi
pop ebp
ret 8
movzx edx, byte [ecx + 2]
shl edx, 0x10
xor eax, edx
movzx edx, byte [ecx + 1]
shl edx, 8
xor eax, edx
movzx ecx, byte [ecx]
xor ecx, eax
imul eax, ecx, 0x5bd1e995
jmp 0x1cfccf7

Function at 0x1d014f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ebx, dword [ebp + 8]
cmp dword [ecx], ebx
je 0x1d01525
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x1d0152c
lea eax, [ebx + 1]
cmp eax, 2
jb 0x1d0151e
mov dword [esi], ebx
call fcn.01d38980
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.01d38980
push dword [esi]
call fcn.01d27710
add esp, 4
mov dword [esi], 0
jmp 0x1d0150f

Function at 0x1d02a60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ecx + 0x10]
test eax, eax
jne 0x1d02ab0
mov edx, dword [ecx + 0xc]
test edx, edx
jne 0x1d02abe
mov edx, dword [ecx]
xor eax, eax
test edx, edx
je 0x1d02ab0
mov dword [ecx + 0xc], edx
mov esi, dword [ecx + 4]
cmp esi, 0x40
jb 0x1d02ab5
movzx edi, word [edx]
cmp edi, 0x5a4d
jne 0x1d02ab5
mov edi, dword [edx + 0x3c]
lea ebx, [edi + 0x18]
xor eax, eax
cmp ebx, esi
ja 0x1d02ab0
add edx, edi
cmp dword [edx], 0x4550
jne 0x1d02ab0
add edx, 4
mov dword [ecx + 0x10], edx
mov eax, edx
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ecx + 0xc], 0
jmp 0x1d02ab0
mov esi, dword [ecx + 4]
jmp 0x1d02a92
Function at 0x1d0ac20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x1cb8310
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword fs:[0], eax
test byte [ecx + 4], 1
jne 0x1d0acb7
movzx edi, byte [ebp + 0x18]
mov eax, dword [esi]
mov ebx, dword [eax + 0x18]
mov ecx, ebx
call dword [section..00cfg]
movsx eax, byte [ebp + 0x14]
mov ecx, esi
push edi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push esi
call ebx
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
shr al, 7
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0x20]
mov dword [edx], esi
test al, al
je 0x1d0aca9
push ecx
call fcn.01cc3180
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
jmp 0x1d0ac87
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
lea esi, [ebp - 0x30]
push esi
call fcn.01d04060
mov dword [ebp - 0x10], 0
mov ecx, esi
push 0x1da1a4c
call fcn.01d161d0
mov esi, eax
mov edi, dword [ebp - 0x30]
xor ebx, ebx
dec ebx
mov eax, ebx
lock xadd dword [edi + 4], eax
test eax, eax
jne 0x1d0ad06
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x10], 0xffffffff
call dword [section..00cfg]
mov ecx, edi
call dword [ebp - 0x24]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov eax, dword [esi]
mov cl, byte [ebp + 0x18]
xor cl, 1
movzx ecx, cl
mov edi, dword [eax + ecx*4 + 0x14]
mov dword [ebp - 0x10], ebx
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
lea eax, [ebp - 0x30]
push eax
call edi
movzx eax, byte [ebp - 0x25]
test al, al
js 0x1d0ad40
mov edx, eax
and edx, 0x7f
jmp 0x1d0ad43
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
test edx, edx
je 0x1d0ac91
test al, al
lea eax, [ebp - 0x30]
cmovns ecx, eax
mov dword [ebp - 0x24], ecx
jmp 0x1d0ad71
mov esi, dword [ebp - 0x2c]
mov edx, ecx
add edx, esi
mov esi, dword [ebp - 0x24]
inc esi
mov dword [ebp - 0x24], esi
cmp esi, edx
je 0x1d0ac91
cmp dword [ebp - 0x20], 0
je 0x1d0ada7
mov eax, dword [ebp - 0x24]
mov al, byte [eax]
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx + 0x18]
cmp ecx, dword [edx + 0x1c]
je 0x1d0adb0
lea edx, [ecx + 1]
mov esi, dword [ebp - 0x20]
mov dword [esi + 0x18], edx
mov byte [ecx], al
movzx eax, byte [ebp - 0x25]
mov ecx, dword [ebp - 0x30]
test al, al
js 0x1d0ad5b
mov esi, eax
and esi, 0x7f
lea edx, [ebp - 0x30]
jmp 0x1d0ad60
mov dword [ebp - 0x20], 0
jmp 0x1d0ad92
movzx edi, al
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov esi, dword [eax + 0x30]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, esi
call dword [section..00cfg]
mov dword [ebp - 0x10], 1
mov ecx, ebx
push edi
call esi
xor ecx, ecx
cmp eax, 0xffffffff
je 0x1d0ade0
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x20], ecx
jmp 0x1d0ad92
Function at 0x1d1cf40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [0x1d8f008]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ebx, 0x57
test ecx, ecx
je 0x1d1cfc5
mov edi, edx
test edx, edx
je 0x1d1cfc5
mov esi, ecx
xorps xmm0, xmm0
lea eax, [ebp - 0x2c]
movups xmmword [eax + 0xc], xmm0
movups xmmword [eax], xmm0
push 0x1c
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1d1cfbd
test byte [ebp - 0x18], 0xf0
lea ebx, [ebp - 0x30]
mov dword [ebx], 0
mov eax, 4
mov ecx, 0x40
cmove ecx, eax
push ebx
push ecx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1d1cfbd
mov eax, dword [edi]
mov dword [esi], eax
push ebx
push dword [ebp - 0x30]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor ebx, ebx
jmp 0x1d1cfc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cc3f9d
mov eax, ebx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1d1cfe0
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x218
mov eax, dword [0x1d8f008]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
dec eax
lea esi, [ebp - 0x220]
mov dword [esi + 4], eax
mov dword [esi], eax
push esi
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
test eax, eax
js 0x1d1d131
mov dword [ebp - 0x224], eax
mov ebx, 0xff
mov edi, 0x1da24f0
push ebx
push dword [ebp - 0x21c]
push edi
call fcn.01cddd8b
add esp, 0xc
push edi
call fcn.01cdd136
add esp, 4
sub ebx, eax
push ebx
push 0x1d7c774
push edi
call fcn.01cddd8b
add esp, 0xc
push esi
call sub.ntdll.dll_RtlFreeUnicodeString
lea esi, [ebp - 0x218]
push 0x208
push 0
push esi
call fcn.01cc71b0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
push 0x104
push esi
push str.PROGRAMFILES
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x1d1d09f
push eax
push esi
push edi
call fcn.01cdddd0
add esp, 0xc
test eax, eax
je 0x1d1d151
push 0x104
push esi
push str.PROGRAMFILES_X86_
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x1d1d0ce
push eax
push esi
push edi
call fcn.01cdddd0
add esp, 0xc
test eax, eax
je 0x1d1d151
xor eax, eax
mov byte [0x1da20ed], al
mov dword [ebp - 0x218], 0
push 0x1d7a63c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x1d7e664
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1d1d14d
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
mov ecx, edi
call dword [section..00cfg]
push esi
push ebx
call edi
test eax, eax
je 0x1d1d14d
cmp dword [ebp - 0x218], 0
setne cl
mov eax, dword [ebp - 0x224]
mov byte [0x1da20ee], cl
mov byte [0x1da20ec], 1
test eax, eax
setns bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cc3f9d
mov eax, ebx
add esp, 0x218
pop esi
pop edi
pop ebx
pop ebp
ret
xor ecx, ecx
jmp 0x1d1d11e
mov al, 1
jmp 0x1d1d0d0
Function at 0x1d1d160
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov ebx, edx
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [0x1d8f008]
xor eax, ebp
mov dword [ebp - 0x10], eax
movzx eax, byte [ecx + 0xb]
test al, al
jns 0x1d1d185
mov eax, dword [ecx + 4]
test eax, eax
je 0x1d1d245
bt ebx, 8
jae 0x1d1d1a0
mov eax, ebx
and eax, 0x200
jne 0x1d1d245
cmp edi, 2
mov eax, 0x1da20f0
mov ecx, 0x1da22f0
cmove ecx, eax
cmp word [ecx], 0
jne 0x1d1d245
xorps xmm0, xmm0
lea esi, [ebp - 0x34]
movups xmmword [esi + 0x10], xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x20], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [esi], 0
je 0x1d1d245
cmp byte [0x1da20ee], 0
setne al
bt ebx, 8
jb 0x1d1d245
shr ebx, 9
and ebx, 1
or bl, al
je 0x1d1d245
cmp edi, 2
mov eax, 0x1d7e6a8
mov edx, 0x1d7e6bc
cmove edx, eax
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0xb]
test cl, cl
jns 0x1d1d2e5
mov ecx, dword [eax]
mov dword [ebp - 0x38], ecx
mov eax, dword [eax + 4]
xor ecx, ecx
inc ecx
mov dword [ebp - 0x4c], ecx
xor esi, esi
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x44], 0
jmp 0x1d1d260
cmp dword [ebp - 0x44], 0
jne 0x1d1d2f9
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cc3f9d
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
add edx, 0x14
inc esi
cmp esi, dword [ebp - 0x4c]
jae 0x1d1d23b
mov edi, dword [edx + 4]
mov ebx, eax
sub ebx, edi
jb 0x1d1d257
push edi
push dword [edx]
push dword [ebp - 0x38]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x48], eax
call fcn.01cd9485
mov edx, dword [ebp - 0x50]
add esp, 0xc
test eax, eax
mov eax, dword [ebp - 0x48]
jne 0x1d1d257
mov eax, dword [ebp - 0x38]
movzx ecx, word [eax + edi*2]
mov eax, dword [ebp - 0x48]
cmp ecx, 0x5c
jne 0x1d1d2ef
mov eax, dword [ebp - 0x38]
lea eax, [eax + edi*2]
mov esi, dword [edx + 8]
cmp esi, 2
je 0x1d1d2ab
cmp esi, 1
jne 0x1d1d2b5
jmp 0x1d1d31c
mov dword [ebp - 0x40], str.WOW6432Node
mov dword [ebp - 0x3c], eax
cmp cx, 0x5c
mov dword [ebp - 0x44], esi
jne 0x1d1d2e0
lea ecx, [eax + 2]
dec ebx
cmp word [eax + 2], 0x5c
mov dword [ebp - 0x38], ecx
mov eax, ecx
je 0x1d1d2be
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x4c], eax
mov edx, dword [edx + 0xc]
xor esi, esi
mov eax, ebx
jmp 0x1d1d25b
mov dword [ebp - 0x38], eax
jmp 0x1d1d2ce
mov dword [ebp - 0x38], eax
mov eax, ecx
jmp 0x1d1d21c
test ecx, ecx
jne 0x1d1d257
jmp 0x1d1d296
mov eax, dword [ebp + 8]
cmp byte [eax + 0xb], 0
jns 0x1d1d304
mov eax, dword [eax]
mov edx, dword [ebp - 0x3c]
sub edx, eax
sar edx, 1
mov ecx, dword [ebp + 8]
push dword [ebp - 0x40]
push edx
call fcn.01d1b8d0
jmp 0x1d1d245
mov dword [ebp - 0x40], str.WOW6432Node_
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x3c], edi
jmp 0x1d1d2b5
Function at 0x1d1d5d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [0x1d8f008]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [0x1da20ec], 0
je 0x1d1d783
mov eax, dword [ebp + 0xc]
xor ecx, ecx
lea esi, [ebp - 0x1c]
mov dword [esi + 4], ecx
mov dword [esi], ecx
push eax
push esi
call sub.ntdll.dll_RtlInitUnicodeString
mov ebx, 0x18
lea eax, [ebp - 0x20]
mov dword [eax], ebx
xor eax, eax
dec eax
lea edi, [ebp - 0x2c]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, edi
push ebx
call fcn.01cfcdc0
mov ecx, edi
push ebx
call fcn.01cfd610
mov edi, dword [edi]
lea eax, [ebp - 0x20]
push eax
push ebx
mov ebx, dword [ebp + 8]
push edi
push 1
push esi
push ebx
call sub.ntdll.dll_NtQueryValueKey
cmp eax, 0x80000005
je 0x1d1d699
cmp eax, 0xc0000023
je 0x1d1d699
test eax, eax
js 0x1d1d695
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov edx, dword [edi + 4]
mov dword [eax], edx
mov eax, dword [edi + 0xc]
test eax, eax
je 0x1d1d6c9
add edi, dword [edi + 8]
lea edx, [edi + eax]
push eax
push edx
push edi
call fcn.01d005a0
mov bl, 1
lea ecx, [ebp - 0x14]
lea eax, [ebp - 0x2c]
mov dword [ecx], eax
call fcn.01cf2ad0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cc3f9d
mov eax, ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
jmp 0x1d1d674
lea edi, [ebp - 0x2c]
mov ecx, edi
push dword [ebp - 0x20]
call fcn.01cfd610
mov edi, dword [edi]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push edi
push 1
push esi
push ebx
call sub.ntdll.dll_NtQueryValueKey
cmp eax, 0x80000005
je 0x1d1d6e0
cmp eax, 0xc0000023
jne 0x1d1d64e
jmp 0x1d1d6e0
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov edi, edx
sub edi, eax
dec edx
cmp edi, edx
ja 0x1d1d797
mov dword [ecx + 4], eax
jmp 0x1d1d672
lea edi, [ebp - 0x2c]
mov ecx, edi
push dword [ebp - 0x20]
call fcn.01cfd610
mov edi, dword [edi]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push edi
push 1
push esi
push ebx
call sub.ntdll.dll_NtQueryValueKey
cmp eax, 0x80000005
je 0x1d1d712
cmp eax, 0xc0000023
jne 0x1d1d64e
lea edi, [ebp - 0x2c]
mov ecx, edi
push dword [ebp - 0x20]
call fcn.01cfd610
mov edi, dword [edi]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push edi
push 1
push esi
push ebx
call sub.ntdll.dll_NtQueryValueKey
cmp eax, 0x80000005
je 0x1d1d744
cmp eax, 0xc0000023
jne 0x1d1d64e
lea edi, [ebp - 0x2c]
mov ecx, edi
push dword [ebp - 0x20]
call fcn.01cfd610
mov edi, dword [edi]
mov eax, ebx
xor ebx, ebx
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp - 0x20]
push edi
push 1
push esi
push eax
call sub.ntdll.dll_NtQueryValueKey
cmp eax, 0x80000005
je 0x1d1d674
cmp eax, 0xc0000023
jne 0x1d1d64e
jmp 0x1d1d674
call fcn.01d1cfe0
test al, al
jne 0x1d1d5f0
xor ebx, ebx
jmp 0x1d1d681
push str.null_pointer_given_to_destroy_at
push str.__loc___nullptr
push 0x44
push str....._third_partylibc_srcinclude__memoryconstruct_at.h
push str._s:_d:_assertion__s_failed:__s_n
call fcn.01cfd380
int3
Function at 0x1d1dab0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [0x1d8f008]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [0x1da20ec], 0
je 0x1d1db0d
xor esi, esi
lea edi, [ebp - 0x18]
mov dword [edi + 4], esi
mov dword [edi], esi
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push eax
push edi
call sub.ntdll.dll_RtlInitUnicodeString
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push edi
push ebx
call sub.ntdll.dll_NtSetValueKey
test eax, eax
setns bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cc3f9d
mov eax, ebx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.01d1cfe0
test al, al
jne 0x1d1dacc
xor ebx, ebx
jmp 0x1d1daf9

Function at 0x1d1e3a0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [0x1d8f008]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x1da26f0]
test eax, eax
jne 0x1d1e484
mov edi, 0xc
push edi
call fcn.01cc3150
add esp, 4
mov esi, eax
xor ebx, ebx
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov dword [eax + 8], ebx
mov dword [0x1da26f0], eax
push edi
call fcn.01cc3150
add esp, 4
mov edi, eax
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov dword [eax + 8], ebx
mov dword [0x1da26f4], eax
call fcn.01d20280
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x28]
push str.user_data_dir
call fcn.01cf1750
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x34]
push eax
call fcn.01cf1750
lea ebx, [ebp - 0x1c]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
call fcn.01cba840
add esp, 0xc
push edi
push esi
push dword [ebp - 0x38]
push ebx
call fcn.01cba170
add esp, 0x10
mov byte [ebp - 0x38], al
cmp byte [ebx + 0xb], 0
jns 0x1d1e457
push dword [ebp - 0x1c]
call fcn.01cc3180
add esp, 4
cmp byte [ebp - 0x29], 0
jns 0x1d1e468
push dword [ebp - 0x34]
call fcn.01cc3180
add esp, 4
cmp byte [ebp - 0x1d], 0
jns 0x1d1e479
push dword [ebp - 0x28]
call fcn.01cc3180
add esp, 4
cmp byte [ebp - 0x38], 0
je 0x1d1e4b7
mov eax, dword [0x1da26f0]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
call fcn.01cf15e0
mov bl, 1
test esi, esi
je 0x1d1e4a3
mov ecx, esi
push dword [0x1da26f4]
call fcn.01cf15e0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cc3f9d
mov eax, ebx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
jmp 0x1d1e4a3
Function at 0x1d1e870
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov esi, dword [ebp + 8]
mov eax, dword [0x1d8f008]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x216]
push 0x206
push 0xff
push edi
call fcn.01cc71b0
add esp, 0xc
mov word [edi - 2], 0
lea edi, [ebp - 0x218]
push 0x104
push edi
push str.PROGRAMFILES
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x1d1e8dd
push esi
push eax
push edi
call fcn.01d1e800
add esp, 0xc
test al, al
jne 0x1d1e95e
mov word [ebp - 0x218], 0
push 0x104
push edi
push str.PROGRAMFILES_X86_
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x1d1e911
push esi
push eax
push edi
call fcn.01d1e800
add esp, 0xc
test al, al
jne 0x1d1e95e
mov word [ebp - 0x218], 0
push 0x104
push edi
push str.PROGRAMW6432
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x1d1e945
push esi
push eax
push edi
call fcn.01d1e800
add esp, 0xc
test al, al
jne 0x1d1e95e
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cc3f9d
mov eax, ebx
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret
mov bl, 1
jmp 0x1d1e947

Function at 0x1d1f0d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, dword [ebp + 0xc]
mov eax, dword [0x1d8f008]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor ebx, ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1d1f197
mov edi, eax
xor eax, eax
dec eax
lea ebx, [ebp - 0x1c]
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov ecx, ebx
push 0
push edi
call fcn.01d0ffc0
cmp byte [ebx + 0xb], 0
jns 0x1d1f11c
mov ebx, dword [ebp - 0x1c]
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
mov ebx, dword [ebp + 8]
je 0x1d1f17e
movzx ecx, byte [ebp - 0x11]
test cl, cl
js 0x1d1f139
and ecx, 0x7f
jmp 0x1d1f13c
mov ecx, dword [ebp - 0x18]
cmp eax, ecx
jae 0x1d1f17e
xor esi, esi
lea edi, [ebp - 0x1c]
mov ecx, edi
push esi
push eax
call fcn.01d1bb60
mov eax, dword [edi + 8]
mov dword [ebx + 8], eax
movsd xmm0, qword [edi]
movsd qword [ebx], xmm0
mov dword [edi + 4], esi
mov dword [edi], esi
mov dword [edi + 8], esi
cmp byte [ebp - 0x11], 0
js 0x1d1f18a
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cc3f9d
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov dword [ebx + 4], eax
mov dword [ebx], eax
mov dword [ebx + 8], eax
jmp 0x1d1f164
push dword [ebp - 0x1c]
call fcn.01cc3180
add esp, 4
jmp 0x1d1f16a
mov esi, dword [ebp + 8]
mov dword [esi + 4], ebx
mov dword [esi], ebx
mov dword [esi + 8], ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cc3f9d
mov eax, esi
jmp 0x1d1f176