joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001a10
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1010b520]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x38], esi
test edi, edi
jne 0x10001a34
xor eax, eax
jmp 0x10001a4b
cmp byte [edi], 0
jne 0x10001a3d
xor eax, eax
jmp 0x10001a4b
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001a42
sub eax, edx
xor ecx, ecx
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], cx
lea ecx, [ebp - 0x1c]
push ecx
push eax
push edi
mov dword [ebp - 0xc], 0
call fcn.1000b4a0
add esp, 0xc
lea eax, [ebp - 0x1c]
cmp dword [ebp - 8], 8
cmovae eax, dword [ebp - 0x1c]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp dword [ebp - 8], 8
mov ebx, eax
jb 0x10001ab6
mov ecx, dword [0x10310174]
test ecx, ecx
je 0x10001aae
dec ecx
cmp ecx, 1
ja 0x10001ab6
push dword [ebp - 0x1c]
push 0
push dword [0x10310170]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10001ab6
mov ecx, dword [ebp - 0x1c]
call fcn.1002f460
test ebx, ebx
jne 0x10001acf
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10041ad4
mov esp, ebp
pop ebp
ret 8
test esi, esi
je 0x10001bdd
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
call fcn.1002fe00
mov esi, eax
test edi, edi
jne 0x10001af8
xor ecx, ecx
jmp 0x10001b0f
cmp byte [edi], 0
jne 0x10001b01
xor ecx, ecx
jmp 0x10001b0f
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001b06
sub ecx, edx
xor eax, eax
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x1c]
push eax
push ecx
push edi
mov dword [ebp - 0xc], 0
call fcn.1000b4a0
add esp, 0xc
lea eax, [ebp - 0x1c]
cmp dword [ebp - 8], 8
cmovae eax, dword [ebp - 0x1c]
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp - 0x1c]
call fcn.10002210
push esi
lea ecx, [ebp - 0x34]
call fcn.100020d0
cmp dword [ebp - 0x20], 8
lea edi, [ebp - 0x34]
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
cmovae edi, dword [ebp - 0x34]
mov edx, ebx
push eax
mov ecx, edi
mov dword [ebp - 8], 0xf
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x1c], 0
call fcn.10024ac0
add esp, 4
lea eax, [ebp - 0x1c]
mov edx, ebx
mov ecx, edi
push eax
call fcn.1000b660
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x1c]
add esp, 4
push eax
call fcn.10001fe0
lea ecx, [ebp - 0x1c]
call fcn.10002040
lea ecx, [ebp - 0x34]
call fcn.10002210
test esi, esi
je 0x10001bdd
mov eax, dword [0x10310174]
test eax, eax
je 0x10001bd6
dec eax
cmp eax, 1
ja 0x10001bdd
push esi
push 0
push dword [0x10310170]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10001bdd
mov ecx, esi
call fcn.1002f460
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10041ad4
mov esp, ebp
pop ebp
ret 8

Function at 0x100077e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.100077f0
Function at 0x100077f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [0x1010b520]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push esi
mov esi, edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0
call fcn.10007b60
mov ebx, eax
mov dword [esp + 0x30], 7
xor eax, eax
mov dword [esp + 0xc], ebx
push 0xffffffffffffffff
push eax
push esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
call fcn.10002c40
cmp dword [esp + 0x30], 8
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1000786c
xor edx, edx
lea ecx, [esp + 0x1c]
call fcn.1000ccd0
test al, al
je 0x100078c8
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x34]
call fcn.1000c840
lea ecx, [esp + 0x1c]
cmp ecx, eax
je 0x1000788b
push 0xffffffffffffffff
push 0
push eax
call fcn.10002c40
cmp dword [esp + 0x48], 8
jb 0x100078c1
mov ecx, dword [0x10310174]
test ecx, ecx
je 0x100078b8
lea eax, [ecx - 1]
cmp eax, 1
ja 0x100078c1
push dword [esp + 0x34]
push 0
push dword [0x10310170]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x100078c1
mov ecx, dword [esp + 0x34]
call fcn.1002f460
cmp dword [esp + 0x2c], 0
jne 0x100078cc
xor bl, bl
jmp 0x10007937
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebx + 0x18]
call fcn.10007e70
mov eax, dword [ebx + 0x18]
lea edx, [esp + 0x14]
push edx
lea ecx, [ebx + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
push 0x10
push eax
mov dword [ecx + 4], eax
lea eax, [esp + 0x24]
push eax
call fcn.100083d0
lea eax, [esp + 0x10]
mov dword [ebx + 0x2c], 7
push eax
lea ecx, [ebx + 0x38]
mov dword [ebx + 0x30], 8
call fcn.10007990
lea ecx, [esp + 0x1c]
cmp eax, ecx
je 0x1000792b
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.10002c40
push dword [esp + 0xc]
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x30], 8
jb 0x1000797c
mov ecx, dword [0x10310174]
test ecx, ecx
je 0x10007973
dec ecx
cmp ecx, 1
ja 0x1000797c
push dword [esp + 0x1c]
push 0
push dword [0x10310170]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, bl
pop esi
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.10041ad4
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x1c]
call fcn.1002f460
mov ecx, dword [esp + 0x4c]
mov al, bl
pop esi
pop ebx
xor ecx, esp
call fcn.10041ad4
mov esp, ebp
pop ebp
ret
Function at 0x1000ae50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x1010b520]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x10], ebx
mov edi, ecx
push dword [esp + 0x10]
mov esi, edx
mov dword [esp + 0x10], edi
mov edx, dword [ebx + 4]
push ecx
mov ecx, dword [ebx]
call fcn.1000b300
mov eax, dword [ebx]
add esp, 8
mov dword [ebx + 4], eax
xor ebx, ebx
jmp 0x1000ae95
mov edi, dword [esp + 0xc]
cmp dword [esi + 0x14], 0x10
jb 0x1000ae9f
mov eax, dword [esi]
jmp 0x1000aea1
mov eax, esi
push dword [esi + 0x10]
mov ecx, edi
push ebx
push eax
call fcn.1000a920
mov edi, eax
cmp edi, 0xffffffff
je 0x1000afb4
mov ecx, edi
mov dword [esp + 0x40], 0xf
sub ecx, ebx
mov dword [esp + 0x3c], 0
push ecx
push ebx
push dword [esp + 0x14]
lea ecx, [esp + 0x38]
mov byte [esp + 0x38], 0
call fcn.10002470
lea eax, [esp + 0x14]
mov dword [esp + 0x28], 0xf
push eax
mov edx, 3
mov dword [esp + 0x28], 0
lea ecx, [esp + 0x30]
mov byte [esp + 0x18], 0
call fcn.1000ea80
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
add esp, 4
push eax
call fcn.1000b0f0
mov ebx, dword [esi + 0x10]
mov eax, dword [0x10310174]
add ebx, edi
cmp dword [esp + 0x28], 0x10
jb 0x1000af5f
test eax, eax
je 0x1000af51
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [eax - 1]
cmp ecx, 1
ja 0x1000af65
push dword [esp + 0x14]
push 0
push dword [0x10310170]
call edi
mov eax, dword [0x10310174]
jmp 0x1000af65
mov ecx, dword [esp + 0x14]
call fcn.1002f460
mov eax, dword [0x10310174]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esp + 0x40], 0x10
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
jb 0x1000ae91
test eax, eax
je 0x1000afa6
dec eax
cmp eax, 1
ja 0x1000ae91
push dword [esp + 0x2c]
push 0
push dword [0x10310170]
call edi
jmp 0x1000ae91
mov ecx, dword [esp + 0x2c]
call fcn.1002f460
jmp 0x1000ae91
push 0xffffffffffffffff
push ebx
push dword [esp + 0x14]
lea ecx, [esp + 0x68]
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], 0
mov byte [esp + 0x68], 0
call fcn.10002470
lea eax, [esp + 0x44]
mov dword [esp + 0x58], 0xf
push eax
mov edx, 3
mov dword [esp + 0x58], 0
lea ecx, [esp + 0x60]
mov byte [esp + 0x48], 0
call fcn.1000ea80
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x48]
add esp, 4
push eax
call fcn.1000b0f0
lea ecx, [esp + 0x44]
call fcn.10002040
lea ecx, [esp + 0x5c]
call fcn.10002040
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10041ad4
mov esp, ebp
pop ebp
ret
Function at 0x1000c2d0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 8
jb 0x1000c2e7
mov edi, dword [edi]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x1000c385
push ebx
call fcn.1002f9d0
mov esi, eax
add esp, 4
test esi, esi
je 0x1000c385
push ebx
push 0
push esi
call fcn.100438b0
add esp, 0xc
push esi
push ebx
push dword [esp + 0x18]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x1000c37c
lea eax, [esp + 0x14]
mov dword [esp + 0xc], 0
push eax
lea eax, [esp + 0x10]
push eax
push 0x10104784
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1000c37c
cmp dword [esp + 0xc], 0
je 0x1000c37c
mov ecx, 0x14
call fcn.1002fe00
test eax, eax
je 0x1000c385
mov edx, dword [esp + 0xc]
movzx ecx, word [edx + 2]
push ecx
movzx ecx, word [edx]
push ecx
push esi
mov ecx, eax
call fcn.1000c1b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.1002fa60
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000c610
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x1010b520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push edi
mov edi, ecx
mov dword [ebp - 0x228], eax
movzx eax, word [edi + 8]
mov word [ebp - 0x14], ax
movzx eax, word [edi + 0xc]
mov word [ebp - 0x12], ax
call esi
mov word [ebp - 0x10], ax
movzx eax, word [edi + 0xc]
mov word [ebp - 0xe], ax
movzx eax, word [edi + 8]
mov word [ebp - 0xc], ax
mov eax, 0x4e4
mov word [ebp - 0xa], ax
call esi
mov word [ebp - 8], ax
xor esi, esi
mov eax, 0x4e4
mov word [ebp - 6], ax
lea ebx, [ebx]
movzx eax, word [ebp + esi*2 - 0x12]
movzx ecx, word [ebp + esi*2 - 0x14]
add esi, 2
push ebx
push eax
push ecx
push 0x10104990
push 0x104
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.10044b0d
add esp, 0x1c
mov dword [ebp - 0x224], 0
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x220]
push eax
push dword [edi + 4]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1000c6e4
mov edx, dword [ebp - 0x224]
test edx, edx
jne 0x1000c6fe
cmp esi, 8
jb 0x1000c680
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10041ad4
mov esp, ebp
pop ebp
ret 8
cmp word [edx], 0
jne 0x1000c728
mov ecx, dword [ebp - 0x228]
xor eax, eax
push eax
push edx
call fcn.10002790
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10041ad4
mov esp, ebp
pop ebp
ret 8
mov eax, edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000c730
mov ecx, dword [ebp - 0x228]
sub eax, esi
sar eax, 1
push eax
push edx
call fcn.10002790
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10041ad4
mov esp, ebp
pop ebp
ret 8
Function at 0x1000c9a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x1000c9ae
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret

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

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x1000c9c8
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1000c9db
shr eax, 4
and eax, 1
ret
xor al, al
ret

Function at 0x1000c9e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x1010b520]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x218]
mov esi, ecx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x1000ca88
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.100020d0
lea eax, [ebp - 0x248]
push eax
push ecx
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x260]
call fcn.10004460
add esp, 4
mov ecx, eax
call fcn.10004fb0
cmp esi, eax
je 0x1000ca56
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.10002c40
lea ecx, [ebp - 0x248]
call fcn.10002210
lea ecx, [ebp - 0x260]
call fcn.10002210
lea ecx, [ebp - 0x230]
call fcn.10002210
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10041ad4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.10041ad4
mov esp, ebp
pop ebp
ret
Function at 0x1000ccd0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1010b520]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x20], 0
mov esi, edx
cmp dword [edi + 0x14], 8
jb 0x1000ccf8
mov ebx, dword [edi]
jmp 0x1000ccfa
mov ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1000cd3a
test al, 0x10
je 0x1000cd1d
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10041ad4
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x1000cd27
mov dword [esi], 0xfffffff7
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10041ad4
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.10004830
cmp dword [edi + 0x14], 8
jb 0x1000cd4f
mov eax, dword [edi]
jmp 0x1000cd51
mov eax, edi
push dword [edi + 0x10]
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0xc]
push 0
call fcn.10003300
test eax, eax
jne 0x1000cd74
test esi, esi
je 0x1000cdbb
mov dword [esi], 0xfffffffc
xor bl, bl
jmp 0x1000cdc1
mov edx, esi
lea ecx, [ebp - 0x1c]
call fcn.1000ccd0
test al, al
jne 0x1000cd86
xor bl, bl
jmp 0x1000cdc1
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1000cdbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
jne 0x1000cdae
mov ecx, edi
call fcn.1000c9c0
test al, al
jne 0x1000cdbf
test esi, esi
je 0x1000cdbb
mov ecx, ebx
call fcn.1001ff10
mov dword [esi], eax
xor bl, bl
jmp 0x1000cdc1
mov bl, 1
cmp dword [ebp - 8], 8
jb 0x1000ce02
mov eax, dword [0x10310174]
test eax, eax
je 0x1000cdfa
dec eax
cmp eax, 1
ja 0x1000ce02
push dword [ebp - 0x1c]
push 0
push dword [0x10310170]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10041ad4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x1c]
call fcn.1002f460
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10041ad4
mov esp, ebp
pop ebp
ret

Function at 0x1000ce20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1054
call fcn.100440a0
mov eax, dword [0x1010b520]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov word [ebp - 0x1008], ax
mov esi, ecx
lea eax, [ebp - 0x1008]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1000ced8
cmp eax, 0x800
ja 0x1000ced8
lea eax, [ebp - 0x1008]
push eax
lea ecx, [ebp - 0x1020]
call fcn.100020d0
lea eax, [ebp - 0x1038]
push eax
push ecx
lea eax, [ebp - 0x1020]
push eax
lea ecx, [ebp - 0x1050]
call fcn.10004460
add esp, 4
mov ecx, eax
call fcn.10004fb0
cmp esi, eax
je 0x1000cea6
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.10002c40
lea ecx, [ebp - 0x1038]
call fcn.10002210
lea ecx, [ebp - 0x1050]
call fcn.10002210
lea ecx, [ebp - 0x1020]
call fcn.10002210
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10041ad4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.10041ad4
mov esp, ebp
pop ebp
ret
Function at 0x1000d3c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
lea eax, [esp + 8]
mov dword [esp + 0xc], 0
push eax
lea eax, [esp + 0x10]
mov dword [esp + 8], 4
push eax
lea eax, [esp + 0xc]
mov dword [esp + 0x10], 4
push eax
push 0
push dword [ebp + 8]
mov dword [esp + 0x20], 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, eax
test edx, edx
jne 0x1000d436
mov ecx, dword [esp + 4]
cmp ecx, 4
je 0x1000d419
cmp ecx, 3
jne 0x1000d431
cmp dword [esp + 8], 4
jne 0x1000d431
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0xc]
mov dword [ecx], eax
mov eax, edx
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov esp, ebp
pop ebp
ret 8

Function at 0x1000d440
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1010
call fcn.100440a0
mov eax, dword [0x1010b520]
xor eax, esp
mov dword [esp + 0x100c], eax
mov eax, dword [ebp + 8]
lea edx, [esp]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edx
lea edx, [esp + 0x14]
mov dword [esp + 0xc], 0
push edx
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 1
push edx
push 0
push eax
push dword [ecx]
mov dword [esp + 0x20], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x1000d587
mov ecx, dword [esp + 0xc]
cmp ecx, 1
jne 0x1000d514
cmp word [esp + 0x10], ax
jne 0x1000d4d8
xor ecx, ecx
lea eax, [esp + 0x10]
push ecx
push eax
mov ecx, edi
call fcn.10002790
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.10041ad4
mov esp, ebp
pop ebp
ret 8
lea ecx, [esp + 0x10]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000d4e0
sub ecx, edx
lea eax, [esp + 0x10]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.10002790
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.10041ad4
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
jne 0x1000d582
push 0x400
lea eax, [esp + 0x814]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [esp + 8], eax
test eax, eax
je 0x1000d567
cmp eax, 0x400
ja 0x1000d567
lea eax, [esp + 0x810]
mov ecx, edi
push eax
call fcn.10005610
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.10041ad4
mov esp, ebp
pop ebp
ret 8
mov eax, 0xea
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.10041ad4
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [esp + 0x1014]
pop edi
pop esi
xor ecx, esp
call fcn.10041ad4
mov esp, ebp
pop ebp
ret 8
Function at 0x1000d5a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
push esi
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000d5e9
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push 0
push 0
push 0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x1000d5fe
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [esi], 0
mov word [esi + 8], ax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi]
dec ecx
mov dword [esi + 4], ecx
test edx, edx
je 0x1000d634
test ecx, ecx
js 0x1000d634
lea eax, [ebp - 8]
mov dword [ebp + 0xc], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp + 0xc]
push eax
lea eax, [esi + 8]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1000d63a
xor eax, eax
mov word [esi + 8], ax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x100108e0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x1010b520]
xor eax, esp
mov dword [esp + 0x18], eax
cmp dword [0x1030f264], 0
push esi
je 0x10010910
xor al, al
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.10041ad4
mov esp, ebp
pop ebp
ret
mov ecx, 0x18
call fcn.1002fe00
test eax, eax
je 0x1001092e
push 0
mov ecx, eax
call fcn.100107a0
mov dword [0x1030f264], eax
jmp 0x10010938
mov dword [0x1030f264], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov dword [esp + 0x18], 7
xor eax, eax
mov dword [esp + 0x14], 0
mov word [esp + 4], ax
cmp word [edx], ax
jne 0x10010960
xor ecx, ecx
jmp 0x10010974
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10010965
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0xc]
call fcn.10002790
mov ecx, dword [0x1030f264]
lea eax, [esp + 4]
push eax
call fcn.100115d0
cmp dword [esp + 0x18], 8
jb 0x100109d2
mov eax, dword [0x10310174]
test eax, eax
je 0x100109c9
dec eax
cmp eax, 1
ja 0x100109d2
push dword [esp + 4]
push 0
push dword [0x10310170]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.10041ad4
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 4]
call fcn.1002f460
mov ecx, dword [esp + 0x1c]
mov al, 1
pop esi
xor ecx, esp
call fcn.10041ad4
mov esp, ebp
pop ebp
ret
Function at 0x100115d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x1010b520]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0
xor ecx, ecx
mov dword [esp + 0x20], 7
mov word [esp + 0xc], cx
lea ecx, [esp + 0xc]
push ecx
push 3
push eax
mov dword [esp + 0x28], 0
call fcn.1000e9b0
add esp, 0xc
cmp dword [esp + 0x1c], 0
je 0x10011658
cmp dword [esp + 0x20], 8
lea ecx, [esp + 8]
lea eax, [esp + 0xc]
mov dword [esp + 8], 0
cmovae eax, dword [esp + 0xc]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov ecx, edi
push esi
push dword [esp + 0xc]
call fcn.10010a30
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x20], 8
jb 0x1001169c
mov eax, dword [0x10310174]
test eax, eax
je 0x10011693
dec eax
cmp eax, 1
ja 0x1001169c
push dword [esp + 0xc]
push 0
push dword [0x10310170]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.10041ad4
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0xc]
call fcn.1002f460
mov ecx, dword [esp + 0x24]
pop edi
pop esi
xor ecx, esp
call fcn.10041ad4
mov esp, ebp
pop ebp
ret 4