joyce8/EMBER2024-capa huggingface dataset:
Function at 0x102fd48
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 8], ebx
jne 0x102fda8
push 0x102fdc0
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
push eax
mov ecx, esi
call fcn.0100b77e
cmp dword [esi + 4], ebx
jne 0x102fd7e
call fcn.0100f5ae
mov ebx, eax
test ebx, ebx
jl 0x102fdb6
mov eax, dword [esi + 4]
push 0x7530
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x102fdaf
cmp eax, 0x80
je 0x102fdaf
cmp eax, 0x102
jne 0x102fdb6
push 0
mov ecx, esi
call fcn.0100b77e
mov ebx, 0x80004005
jmp 0x102fdb6
mov dword [esi + 8], 1
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x10315e1
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
test byte [ebp + 8], 2
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
je 0x1031605
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test byte [ebp + 8], 1
je 0x103164a
cmp dword [esi + 0x68], 0
je 0x103164a
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x103162b
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x103161d
sub eax, edx
sar eax, 1
lea edi, [eax + eax]
push edi
mov ecx, esi
call fcn.01031526
mov eax, dword [esi + 0x6c]
add eax, dword [esi + 0x68]
push edi
push ebx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
add dword [esi + 0x6c], edi
test byte [ebp + 8], 8
mov esi, dword [sym.imp.msvcrt.dll_fprintf]
mov edi, 0x1031694
je 0x103166b
mov eax, dword [sym.imp.msvcrt.dll__iob]
push ebx
add eax, 0x40
push edi
push eax
call esi
add esp, 0xc
test byte [ebp + 8], 4
je 0x1031681
mov eax, dword [sym.imp.msvcrt.dll__iob]
push ebx
add eax, 0x20
push edi
push eax
call esi
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1035b79
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x104d004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x2001f
mov eax, ecx
mov ecx, dword [ebp + 8]
push ebx
push esi
push ecx
push dword [eax]
mov dword [ebp - 0x218], ecx
xor edi, edi
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x210], edx
mov dword [ebp - 0x208], edi
call fcn.010356b9
cmp eax, edi
mov dword [ebp - 0x214], eax
je 0x1035c18
lea ecx, [ebp - 0x208]
call fcn.01004400
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01001666
leave
ret 0x10
push dword [ebp - 0x210]
lea eax, [ebp - 0x204]
push ebx
push esi
push eax
lea ecx, [ebp - 0x208]
call fcn.01035b79
cmp eax, edi
jne 0x1035c6e
lea eax, [ebp - 0x224]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push edi
push dword [ebp - 0x208]
mov dword [ebp - 0x20c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1035bfa
lea ecx, [ebp - 0x208]
call fcn.01004400
push dword [ebp - 0x210]
mov ecx, dword [ebp - 0x21c]
push esi
push dword [ebp - 0x218]
call fcn.01034e15
lea ecx, [ebp - 0x208]
mov esi, eax
call fcn.01004400
mov eax, esi
jmp 0x1035be9
Function at 0x1035c87
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
push esi
push dword [ecx]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
cmp edi, esi
jne 0x1035d02
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
inc dword [ebp - 4]
cmp eax, dword [ebp - 4]
jbe 0x1035cd0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push 2
xor ecx, ecx
pop edx
mul edx
seto cl
neg ecx
or eax, ecx
push eax
call dword [0x1050b64]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x1035cff
push dword [ebp - 0x24]
call dword [0x1050b64]
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x1035d02
push 0xe
pop edi
xor ebx, ebx
jmp 0x1035d56
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x28]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
mov eax, dword [ebp - 0x20]
push ebx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
inc ebx
cmp edi, 0x103
je 0x1035d5c
cmp edi, esi
jne 0x1035d5e
push dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
push dword [ebp - 0x18]
push dword [ebp - 0x28]
push dword [ebp - 8]
call fcn.010350cf
mov edi, eax
cmp edi, esi
jne 0x1035d5e
jmp 0x1035d06
xor edi, edi
cmp edi, esi
mov dword [ebp - 0x1c], esi
jne 0x1035e2e
mov ebx, 0x2001f
mov eax, dword [ebp - 4]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
mov eax, dword [ebp - 0x20]
push dword [ebp - 0x1c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc dword [ebp - 0x1c]
mov edi, eax
cmp edi, 0x103
je 0x1035e1a
cmp edi, esi
jne 0x1035e2e
mov eax, dword [ebp - 0x20]
push ebx
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
push dword [ebp - 8]
push dword [eax]
call fcn.010356b9
mov edi, eax
cmp edi, esi
jne 0x1035e26
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push esi
push esi
push ebx
push esi
push esi
push dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
push dword [ebp + 0xc]
mov dword [ebp - 0x14], esi
push dword [ebp - 8]
push eax
call fcn.01035633
mov edi, eax
cmp edi, esi
jne 0x1035e1e
push dword [ebp + 0x14]
lea eax, [ebp - 0x14]
push dword [ebp + 0x10]
lea ecx, [ebp - 0xc]
push dword [ebp + 0xc]
push eax
call fcn.01035c87
lea ecx, [ebp - 0x14]
mov edi, eax
call fcn.01004400
lea ecx, [ebp - 0xc]
call fcn.01004400
cmp edi, esi
jne 0x1035e2e
jmp 0x1035d6e
xor edi, edi
jmp 0x1035e2e
lea ecx, [ebp - 0x14]
call fcn.01004400
lea ecx, [ebp - 0xc]
call fcn.01004400
push dword [ebp - 8]
call dword [0x1050b60]
push dword [ebp - 0x18]
call dword [0x1050b60]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x103890d
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x250
mov eax, 0x10464bd
call fcn.01001615
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x224], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x214], ebx
mov eax, dword [eax]
mov esi, 0x2001f
push esi
push eax
push ecx
lea ecx, [ebp - 0x214]
mov dword [ebp - 4], ebx
call fcn.01003af9
cmp eax, ebx
je 0x1038973
cmp eax, 2
je 0x1038961
cmp eax, ebx
jle 0x103895f
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
lea ecx, [ebp - 0x214]
call fcn.01004400
mov eax, ebx
jmp 0x1038aff
mov dword [ebp - 0x220], ebx
lea eax, [ebp - 0x230]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x220]
mov dword [ebp - 0x228], 0x100
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x1038a77
cmp eax, ebx
jne 0x1038a7b
mov dword [ebp - 0x218], ebx
push esi
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 1
call fcn.01003af9
cmp eax, ebx
jne 0x1038a8b
lea ecx, [ebp - 0x25c]
call fcn.01005a7c
push 0x104d19c
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 2
call fcn.01003395
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 3
call fcn.010063ee
mov edi, eax
cmp edi, ebx
jl 0x1038a9b
mov ecx, dword [ebp - 0x224]
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x21c]
call fcn.01005c9b
mov ecx, dword [ebp - 0x21c]
inc dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.01002480
lea ecx, [ebp - 0x25c]
call fcn.0100253d
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], bl
call fcn.01004400
jmp 0x1038979
xor edi, edi
jmp 0x1038ac3
jle 0x1038a87
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x1038abf
jle 0x1038a97
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x1038ab4
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.01002480
lea ecx, [ebp - 0x25c]
call fcn.0100253d
lea ecx, [ebp - 0x218]
call fcn.01004400
cmp edi, ebx
jl 0x1038af2
lea eax, [ebp - 0x224]
push eax
push dword [0x1050d0c]
lea ecx, [ebp - 0x214]
call fcn.01003b35
test eax, eax
jne 0x1038af2
mov eax, dword [ebp - 0x220]
cmp dword [ebp - 0x224], eax
je 0x1038af2
mov edi, 0x80004005
lea ecx, [ebp - 0x214]
call fcn.01004400
mov eax, edi
call fcn.01001652
ret 8
Function at 0x1038e3b
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x268
mov eax, 0x10468f9
call fcn.01001615
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x220], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x214], ebx
mov eax, dword [eax]
mov esi, 0x2001f
push esi
push eax
push ecx
lea ecx, [ebp - 0x214]
mov dword [ebp - 4], ebx
call fcn.01003af9
cmp eax, ebx
je 0x1038ea1
cmp eax, 2
je 0x1038e8f
cmp eax, ebx
jle 0x1038e8d
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
lea ecx, [ebp - 0x214]
call fcn.01004400
mov eax, ebx
jmp 0x103901f
mov dword [ebp - 0x21c], ebx
lea eax, [ebp - 0x274]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x21c]
mov dword [ebp - 0x224], 0x100
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x1038f9a
cmp eax, ebx
jne 0x1038f9e
mov dword [ebp - 0x218], ebx
push esi
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 1
call fcn.01003af9
cmp eax, ebx
jne 0x1038fae
lea ecx, [ebp - 0x26c]
call fcn.01005c4e
lea ecx, [ebp - 0x244]
call fcn.01005c72
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 3
call fcn.01005d94
mov edi, eax
cmp edi, ebx
jl 0x1038fbe
mov ecx, dword [ebp - 0x220]
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.0100471e
inc dword [ebp - 0x21c]
lea ecx, [ebp - 0x244]
call fcn.01002610
lea ecx, [ebp - 0x26c]
call fcn.010026aa
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], bl
call fcn.01004400
jmp 0x1038ea7
xor edi, edi
jmp 0x1038fe3
jle 0x1038faa
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x1038fdf
jle 0x1038fba
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x1038fd4
lea ecx, [ebp - 0x244]
call fcn.01002610
lea ecx, [ebp - 0x26c]
call fcn.010026aa
lea ecx, [ebp - 0x218]
call fcn.01004400
cmp edi, ebx
jl 0x1039012
lea eax, [ebp - 0x220]
push eax
push dword [0x1050d0c]
lea ecx, [ebp - 0x214]
call fcn.01003b35
test eax, eax
jne 0x1039012
mov eax, dword [ebp - 0x21c]
cmp dword [ebp - 0x220], eax
je 0x1039012
mov edi, 0x80004005
lea ecx, [ebp - 0x214]
call fcn.01004400
mov eax, edi
call fcn.01001652
ret 8
Function at 0x1039861
Capabilities:
Get token membership

Disassembly:
push 0x7c
mov eax, 0x1046c8d
call fcn.010017d1
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.ole32.dll_CoImpersonateClient]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x10]
push eax
xor esi, esi
inc esi
push esi
push 8
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
jne 0x10398b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x1039908
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], esi
lea ecx, [ebp - 0x18]
call fcn.0100bab1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0100bd05
mov esi, dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0x10], ebx
je 0x10398f4
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x14]
call fcn.0100c21a
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.0100c21a
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x28], ebx
jl 0x1039917
call dword [sym.imp.ole32.dll_CoRevertToSelf]
cmp dword [ebp - 0x1c], ebx
je 0x1039a37
cmp dword [ebp - 0x20], ebx
jne 0x103992e
cmp dword [ebp - 0x24], ebx
je 0x1039a37
lea esi, [edi + 0x10]
push esi
lea ebx, [edi + 0x14]
push ebx
lea ecx, [ebp - 0x48]
call fcn.01006caa
push esi
push ebx
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 2
call fcn.0100579e
push esi
push ebx
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 3
call fcn.0100579e
push 0x104d4ac
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.01038b0c
test eax, eax
jl 0x1039a1c
push 0x104d4a4
lea ecx, [ebp - 0x68]
call fcn.0103974b
test eax, eax
jl 0x1039a1c
push 0x104d4a8
lea ecx, [ebp - 0x88]
call fcn.0103974b
test eax, eax
jl 0x1039a1c
push dword [ebp - 0x48]
lea ecx, [ebp - 0x48]
call fcn.01005029
mov ebx, eax
jmp 0x10399cc
push ebx
lea ecx, [ebp - 0x48]
mov esi, ebx
call fcn.01004fe3
mov ecx, dword [edi + 0x38]
mov ebx, eax
lea eax, [esi + 4]
push eax
push dword [esi]
call fcn.01005c9b
test ebx, ebx
jne 0x10399b1
lea eax, [ebp - 0x68]
push eax
mov ecx, edi
call fcn.010396ed
lea eax, [ebp - 0x88]
push eax
mov ecx, edi
call fcn.010396ed
and dword [ebp - 0x10], ebx
push 0x2001f
push 0x100af48
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x10]
call fcn.01003af9
test eax, eax
jne 0x1039a14
push 0x10188f8
lea ecx, [ebp - 0x10]
call fcn.01007598
lea ecx, [ebp - 0x10]
call fcn.01004400
lea ecx, [ebp - 0x68]
call fcn.010028f8
lea ecx, [ebp - 0x88]
call fcn.010028f8
lea ecx, [ebp - 0x48]
call fcn.01002c6f
call fcn.01001740
ret
Function at 0x103a593
Capabilities:
Get keyboard layout

Disassembly:
mov edi, edi
push esi
push 0
mov esi, ecx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx eax, ax
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [esi + 0x10], eax
push 0x1018a14
lea eax, [esi + 0x1c]
push eax
mov ecx, esi
call fcn.01032115
test eax, eax
jl 0x103a5d3
push 0x1019718
lea eax, [esi + 0x20]
push eax
mov ecx, esi
call fcn.01032115
pop esi
ret

Function at 0x103c0af
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x103c0ca
cmp dword [esi], 2
jae 0x103c0ca
push 0x7a
pop eax
jmp 0x103c128
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x103c128
cmp dword [ebp + 0x10], 7
je 0x103c0f8
push 0xd
jmp 0x103c0c7
test edi, edi
mov ecx, dword [ebp + 0xc]
je 0x103c122
test cl, 1
jne 0x103c0f4
mov eax, ecx
shr eax, 1
cmp eax, 1
jb 0x103c0f4
cmp word [edi + eax*2 - 2], 0
jne 0x103c0f4
cmp eax, 1
jbe 0x103c122
cmp word [edi + eax*2 - 4], 0
jne 0x103c0f4
shr ecx, 1
mov dword [esi], ecx
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x103c5c6
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x104d004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20
lea eax, [ebp - 0x44]
push eax
push 8
push 0x404
mov esi, 0xc04
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x103c61a
push 3
lea eax, [ebp - 0x44]
push 0x103c62c
push eax
call sub.msvcrt.dll_wcsncmp
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffff800
add esi, 0xc04
mov ecx, dword [ebp - 4]
mov ax, si
xor ecx, ebp
pop esi
call fcn.01001666
leave
ret

Function at 0x103c7cc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x104d004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
cmp word [0x1050f64], si
jne 0x103c864
lea eax, [ebp - 0x10]
push eax
push 1
push esi
push 0x103c958
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x14], 6
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x103c864
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x103ca10
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x103c864
push 3
push dword [esi*8 + 0x103c878]
lea eax, [ebp - 0xc]
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x103c856
inc esi
cmp esi, 0x1c
jae 0x103c864
jmp 0x103c835
mov ax, word [esi*8 + 0x103c87c]
mov word [0x1050f64], ax
mov ecx, dword [ebp - 4]
mov ax, word [0x1050f64]
xor ecx, ebp
pop esi
call fcn.01001666
leave
ret
Function at 0x103ce3d
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
lea eax, [eax + esi*4 - 4]
mov ecx, 0xff
je 0x103ce96
push ebx
push edi
mov edi, edx
shr edi, 0x10
and edi, ecx
mov edi, dword [edi*4 + 0x104e3b8]
movzx ebx, dh
xor edi, dword [ebx*4 + 0x104e7b8]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x104dbb8]
and edx, ecx
xor edi, dword [edx*4 + 0x104dfb8]
xor edi, dword [eax]
dec esi
sub eax, 4
test esi, esi
mov edx, edi
jne 0x103ce5b
pop edi
pop ebx
mov eax, edx
shr eax, 0x10
and eax, ecx
mov eax, dword [eax*4 + 0x104e3b8]
movzx esi, dh
xor eax, dword [esi*4 + 0x104e7b8]
mov esi, edx
shr esi, 0x18
xor eax, dword [esi*4 + 0x104dbb8]
mov esi, edx
and esi, ecx
xor eax, dword [esi*4 + 0x104dfb8]
pop esi
xor eax, edx
pop ebp
ret 0xc

Function at 0x103ced1
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, esi
neg eax
xor ecx, ecx
and eax, 3
jmp 0x103cf04
test eax, eax
je 0x103cf08
mov edx, ecx
shr edx, 0x18
shl ecx, 8
xor ecx, dword [edx*4 + 0x104dfb8]
movzx edx, byte [esi]
xor ecx, edx
dec ebx
inc esi
dec eax
test ebx, ebx
jne 0x103cee9
push edi
mov edi, ebx
push ecx
shr edi, 2
push edi
push esi
call fcn.0103ce3d
mov ecx, eax
mov eax, edi
shl eax, 2
add esi, eax
sub ebx, eax
pop edi
je 0x103cf3e
mov eax, ecx
shr eax, 0x18
shl ecx, 8
xor ecx, dword [eax*4 + 0x104dfb8]
movzx eax, byte [esi]
xor ecx, eax
dec ebx
inc esi
test ebx, ebx
jne 0x103cf24
mov eax, ecx
shr eax, 0x10
mov edx, 0xff
and eax, edx
mov eax, dword [eax*4 + 0x104e3b8]
movzx esi, ch
xor eax, dword [esi*4 + 0x104e7b8]
mov esi, ecx
shr esi, 0x18
xor eax, dword [esi*4 + 0x104dbb8]
mov esi, ecx
and esi, edx
xor eax, dword [esi*4 + 0x104dfb8]
pop esi
xor eax, ecx
pop ebx
pop ebp
ret 8
Function at 0x10002290
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x28
mov eax, dword [ecx]
mov edi, dword [ecx + 4]
mov ebx, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
mov dword [ebp - 0x14], eax
test byte [0x1000b018], 8
jne 0x10002380
mov dword [esp + 8], 0x10
mov dword [esp + 4], 8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov edx, eax
test eax, eax
je 0x1000241b
mov eax, 0x1000d5e0
mov ecx, 0x1000d5d0
movd xmm1, eax
movzx eax, byte [0x1000b018]
movd xmm0, ecx
punpckldq xmm0, xmm1
movq qword [edx], xmm0
and eax, 8
test esi, esi
je 0x100023c0
mov dword [edx + 8], esi
mov dword [edx + 0xc], 1
test al, al
jne 0x10002340
mov dword [ebx], edx
xor eax, eax
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp + 0x18], edi
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov dword [ebp - 0x14], edx
mov dword [esp + 0xc], str.__p___p__0x_lX__n
mov dword [esp + 8], str.stillimagew_Initialize
mov dword [esp + 4], 0x1000b018
mov dword [esp], 3
call fcn.100014e0
mov edx, dword [ebp - 0x14]
jmp 0x1000232b
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__p___lu___p___p__n
mov dword [esp + 8], str.StiCreateInstanceW
mov dword [esp + 4], 0x1000b018
mov dword [esp], 3
call fcn.100014e0
jmp 0x100022bf
mov dword [edx + 8], edx
mov dword [edx + 0xc], 1
test al, al
jne 0x100023e0
add edx, 4
jmp 0x1000232b
mov dword [esp + 0x18], edi
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov dword [ebp - 0x14], edx
mov dword [esp + 0xc], str.__p___p__0x_lX__n
mov dword [esp + 8], str.stillimagew_Initialize
mov dword [esp + 4], 0x1000b018
mov dword [esp], 3
call fcn.100014e0
mov edx, dword [ebp - 0x14]
jmp 0x100023ce
mov eax, 0x8007000e
jmp 0x1000232f
Function at 0x1000a0f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x214
mov eax, dword [0x100180c0]
test eax, eax
je 0x1000a1a8
mov dword [esp], ebx
call eax
sub esp, 4
test eax, eax
mov dword [ebx + 8], eax
jns 0x1000a130
mov eax, dword [ebx]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x214]
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.MODULE
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], str.SystemRoot
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.SystemRoot
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
jmp 0x1000a11c
mov dword [esp], str.atl100.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x1000a1dd
mov dword [esp + 4], str.AtlCreateRegistrar
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
sub esp, 8
mov dword [0x100180c0], eax
test eax, eax
jne 0x1000a10d
mov dword [ebx + 8], 0x80004002
xor eax, eax
jmp 0x1000a11e

Function at 0xc654d8
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
sub eax, dword [edx + ecx + 0x10]
jmp 0xbd6afd
je 0xd27633
mov esi, dword [ebp + 0xc]
test esi, esi
jmp 0x837261
je 0xd27633
mov eax, dword [eax + ecx + 0x7c]
cmp cl, 0xc7
clc
cmc
push ebx
push edi
cmc
clc
mov dword [ebp - 0x10], eax
stc
mov dword [ebp - 8], 0xffffffff
clc
cmc
cmp esi, 0xffff
jmp 0x891b09
mov edi, dword [edx + ecx + 0x18]
jmp 0xc9647b
je 0xd27633
mov eax, 0x5a4d
cmp al, 0xa1
jmp 0xc13037
ja 0x81fcac
mov eax, esi
test ecx, ecx
jmp 0x7a22c7
cmp dword [eax + ecx], 0x4550
jmp 0xbe98bc
mov dword [ebp - 8], eax
jmp 0xd08ac7
jne 0xd27633
mov edx, dword [eax + ecx + 0x78]
cmp ax, di
jmp 0xca3894
add eax, ecx
cmp ah, 0xb
cmp bp, si
xor ebx, ebx
jmp 0xd01ca8
cmp word [ecx], ax
jmp 0xd2762d
push ebp
mov ebp, esp
xor cl, 0xf2
ror cl, cl
mov ecx, dword [ebp + 8]
lea esp, [esp - 0x114]
push esi
clc
test ecx, ecx
jmp 0x7ca930
js 0x8302a4
jmp 0xd16cda
je 0x8302a4
mov eax, dword [edx + ecx + 0x20]
test bx, 0x78ab
cmp ah, dl
jmp 0xbefab2
mov eax, dword [ecx + 0x3c]
jmp 0xbd537c
test edi, edi
jmp 0xc74b18
mov dword [ebp - 4], edx
test edx, edx
jmp 0x81bf06
ret
dec edi
jmp 0xd1b746
jmp 0x8302a4
mov dword [ebp - 0xc], eax
jmp 0xc66898
je 0xc85398
xor eax, eax
pop esi
mov esp, ebp
pop ebp
jmp 0xcd1877