joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402470
Capabilities:
Get common file path

Disassembly:
sub esp, 0x58
push ebx
push ebp
push esi
push edi
push 0x104
call fcn.00402630
mov esi, eax
xor ebx, ebx
add esp, 4
cmp esi, ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
je 0x4025b0
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4025a3
push 0x20
call fcn.00402630
add esp, 4
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x4025a3
mov edi, dword [esp + 0x70]
or ecx, 0xffffffff
xor eax, eax
mov ebp, dword [esp + 0x6c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp ebp, ebx
rep movsb byte es:[edi], byte [esi]
je 0x40259f
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x4c
push eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], str.Database_Files__.MDB_.MDW_.MDA_
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], 0x104
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], 0x201804
mov word [esp + 0x58], bx
mov word [esp + 0x5a], bx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
call sub.comdlg32.dll_GetOpenFileNameA
test eax, eax
je 0x40259f
mov edi, dword [esp + 0x38]
cmp byte [edi], bl
je 0x402594
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x402597
mov byte [ebp], bl
mov dword [esp + 0x18], 1
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x4025b0
push esi
call fcn.00402620
add esp, 4
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4025c1
push eax
call fcn.00402620
add esp, 4
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
Function at 0x4026f0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405150
push 0x403b48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x409634], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x409630], ecx
shl ecx, 8
add ecx, edx
mov dword [0x40962c], ecx
shr eax, 0x10
mov dword [0x409628], eax
call fcn.00403a10
test eax, eax
jne 0x40275a
push 0x1c
call fcn.004028c0
add esp, 4
mov dword [ebp - 4], 0
call fcn.00403810
call fcn.00403800
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x409af4], eax
call fcn.004031c0
mov dword [0x4095f4], eax
test eax, eax
je 0x40278d
mov eax, dword [0x409af4]
test eax, eax
jne 0x402797
push 0xffffffffffffffff
call fcn.00402b20
add esp, 4
call fcn.00402f10
call fcn.00402e20
call fcn.00402af0
mov esi, dword [0x409af4]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x402876
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x4027de
test al, al
je 0x4027de
and eax, 0xff
push eax
call fcn.00402dc0
add esp, 4
test eax, eax
je 0x4027b8
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4027b8
cmp byte [esi], 0x22
jne 0x4027e7
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x4027f7
cmp al, 0x20
ja 0x4027f7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4027e7
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x402818
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x40281d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00402b20
jmp 0x40285b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x4027e7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x402876

Function at 0x4028c0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x4095fc], 1
jne 0x4028ce
call fcn.00403c20
mov eax, dword [esp + 4]
push eax
call fcn.00403c60
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x402b60
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x409664]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x402b7f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x409660], 1
mov byte [0x40965c], bl
jne 0x402bd9
mov ecx, dword [0x409aec]
test ecx, ecx
je 0x402bc7
mov esi, dword [0x409ae8]
sub esi, 4
cmp esi, ecx
jb 0x402bc7
mov eax, dword [esi]
test eax, eax
je 0x402bc0
call eax
mov ecx, dword [0x409aec]
sub esi, 4
cmp esi, ecx
jae 0x402bb2
push 0x406014
push 0x406010
call fcn.00402c10
add esp, 8
push 0x40601c
push 0x406018
call fcn.00402c10
add esp, 8
test ebx, ebx
jne 0x402c00
push ebp
mov dword [0x409664], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x4031c0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x409778]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x403202
call edi
mov esi, eax
test esi, esi
je 0x4031ec
mov eax, 1
jmp 0x4031fd
call ebp
mov ebx, eax
test ebx, ebx
je 0x40330f
mov eax, 2
mov dword [0x409778], eax
cmp eax, 1
jne 0x4032a2
test esi, esi
jne 0x40321b
call edi
mov esi, eax
test esi, esi
je 0x40330f
cmp word [esi], 0
mov eax, esi
je 0x403235
add eax, 2
cmp word [eax], 0
jne 0x403223
add eax, 2
cmp word [eax], 0
jne 0x403223
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x403294
push edi
call fcn.00402940
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x403294
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x403286
push ebx
call fcn.004028f0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40330f
test ebx, ebx
jne 0x4032b3
call ebp
mov ebx, eax
test ebx, ebx
je 0x40330f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x4032cb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4032bb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4032bb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00402940
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4032ed
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x403c60
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x406fb8
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x403c84
add eax, 8
inc ebp
cmp eax, 0x407048
jb 0x403c75
cmp ecx, dword [ebp*8 + 0x406fb8]
jne 0x403e2b
mov eax, dword [0x4095fc]
cmp eax, 1
je 0x403ded
test eax, eax
jne 0x403cb0
cmp dword [0x406e14], 1
je 0x403ded
cmp ecx, 0xfc
je 0x403e2b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403ceb
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x403d34
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x405430
add ebx, ecx
push ebx
call fcn.00404a50
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x405410
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x406fbc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004049c0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x4099e0]
test eax, eax
je 0x403dfe
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x403e08
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x406fbc]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x1003faa
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov ecx, dword [esi + 0x4c]
mov eax, dword [0x103a024]
cmp ecx, eax
ja 0x1016747
mov ecx, dword [esi + 4]
mov eax, dword [0x103a028]
cmp ecx, eax
ja 0x101675a
mov ecx, dword [esi + 0x84]
mov eax, dword [0x103a020]
cmp ecx, eax
jbe 0x100401c
jmp 0x101676d
xor esi, esi
jmp 0x1004028
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov eax, 0xb8
push edi
push eax
mov esi, eax
call fcn.01001505
mov ebx, eax
pop ecx
test ebx, ebx
je 0x1004045
xor edi, edi
inc edi
lea eax, [ebp - 4]
push eax
push esi
push ebx
push 5
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x100403a
push ebx
call fcn.010014ce
mov eax, dword [ebp - 4]
mov ecx, eax
shr ecx, 4
lea esi, [ecx + eax + 0x8000]
push esi
call fcn.01001505
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x1004045
test edi, edi
jne 0x1003fca
inc edi
mov esi, ebx
test ebx, ebx
je 0x100402c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esi + 0x44], eax
je 0x1003f26
mov eax, dword [esi]
test eax, eax
je 0x1003f9e
add esi, eax
test esi, esi
jne 0x100400d
push ebx
call fcn.010014ce
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
xor edi, edi
test eax, eax
jge 0x1004002
jmp 0x1016780
xor eax, eax
jmp 0x1004035
push eax
push ecx
push 0x10167c8
call fcn.0101d8ec
xor edi, edi
jmp 0x1003f36
push eax
push ecx
push 0x10167b0
call fcn.0101d8ec
xor edi, edi
jmp 0x1003f46
push eax
push ecx
push 0x101678c
call fcn.0101d8ec
xor edi, edi
jmp 0x100401c
push ebx
call fcn.010014ce
pop ecx
jmp 0x1004045
Function at 0x1008c95
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1008d18
mov ebx, 0x80000002
push ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], esi
call edi
test eax, eax
jne 0x101aee7
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], esi
jne 0x101aeda
cmp dword [ebp - 0x10], 1
jne 0x101aee7
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
cmp dword [ebp - 0xc], 0xea
je 0x1008cfb
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push 0x101afe0
push ebx
call edi
test eax, eax
jne 0x101af42
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], esi
je 0x101af30
cmp dword [ebp - 0xc], 0xea
jne 0x101af42
xor eax, eax
inc eax
cmp dword [ebp - 0x10], eax
jne 0x101af42
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x1008d0a
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push dword [0x103b918]
push ebx
call edi
cmp eax, esi
jne 0x101afc6
push 4
pop ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push dword [0x103b920]
mov dword [ebp + 8], esi
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jne 0x101afa1
cmp dword [ebp - 0x10], ebx
jne 0x101afa6
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp dword [ebp + 8], esi
sete al
mov dword [ecx], eax
jmp 0x101afd5
cmp edi, 2
jne 0x101afb1
mov eax, dword [ebp + 0xc]
mov dword [eax], 1
jmp 0x101afd5
cmp edi, esi
jle 0x101afc1
and edi, 0xffff
or edi, 0x80070000
mov dword [ebp - 0x14], edi
jmp 0x101afd5
jle 0x101afd2
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
jmp 0x1008d0c
Function at 0x100bcbe
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x103a02c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x210]
push ecx
xor ebx, ebx
push ebx
push dword [0x103b470]
xor edi, edi
inc edi
push eax
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x214], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100bd61
push dword [0x103b484]
lea eax, [ebp - 0x20c]
push eax
call fcn.010089d2
test eax, eax
je 0x101b160
push dword [0x103b488]
lea eax, [ebp - 0x20c]
push eax
call fcn.010089d2
test eax, eax
jne 0x101b168
mov dword [esi + 8], edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.010086a6
leave
ret 4
mov ebx, 0x80041012
jmp 0x100bd4e
and dword [esi + 8], ebx
jmp 0x100bd4e
push dword [0x103b850]
lea eax, [ebp - 0x20c]
push eax
call fcn.010089d2
test eax, eax
jne 0x101b18a
mov dword [esi + 8], 2
jmp 0x100bd4e
push dword [0x103b854]
lea eax, [ebp - 0x20c]
push eax
call fcn.010089d2
neg eax
sbb eax, eax
neg eax
add eax, 3
mov dword [esi + 8], eax
jmp 0x100bd4e
Function at 0x100d089
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
push esi
push dword [0x103b474]
lea eax, [ebp - 4]
push dword [ebp + 8]
mov esi, ecx
push eax
push 2
call fcn.0100d2a1
mov ebx, eax
add esp, 0x10
test ebx, ebx
jl 0x100d14b
xor ecx, ecx
cmp dword [esi + 0x644], 0x20
mov eax, 0x100
setne cl
dec ecx
and ecx, eax
add eax, ecx
lea ecx, [ebp + 8]
push ecx
or eax, 0x20019
push eax
push 0
push dword [ebp - 4]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100d142
push edi
push dword [ebp + 8]
xor edi, edi
inc edi
mov ecx, esi
mov dword [esi + 0x10], edi
call fcn.0100bcbe
mov ebx, eax
test ebx, ebx
jl 0x100d111
push dword [ebp + 8]
mov ecx, esi
call fcn.0100d158
mov ebx, eax
lea eax, [ebp - 8]
push eax
add esi, 0x2c
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push dword [0x103b4e4]
mov dword [ebp - 0xc], edi
push dword [ebp + 8]
mov dword [ebp - 8], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x100d158
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x103a02c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, ecx
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x210]
push ecx
push 0
push dword [0x103b47c]
xor edi, edi
inc edi
push eax
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x214], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x101b1ad
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.010086a6
leave
ret 4
push dword [0x103b858]
lea eax, [ebp - 0x20c]
push eax
call fcn.010089d2
test eax, eax
jne 0x101b1cb
and dword [esi + 0xc], eax
jmp 0x100d1b3
push dword [0x103b85c]
lea eax, [ebp - 0x20c]
push eax
call fcn.010089d2
test eax, eax
jne 0x101b1e9
mov dword [esi + 0xc], edi
jmp 0x100d1b3
push dword [0x103b860]
lea eax, [ebp - 0x20c]
push eax
call fcn.010089d2
test eax, eax
jne 0x101b20b
mov dword [esi + 0xc], 2
jmp 0x100d1b3
push dword [0x103b864]
lea eax, [ebp - 0x20c]
push eax
call fcn.010089d2
test eax, eax
jne 0x101b22d
mov dword [esi + 0xc], 3
jmp 0x100d1b3
push dword [0x103b868]
lea eax, [ebp - 0x20c]
push eax
call fcn.010089d2
neg eax
sbb eax, eax
neg eax
add eax, 4
mov dword [esi + 0xc], eax
jmp 0x100d1b3
Function at 0x100d226
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push esi
push dword [0x103b478]
lea eax, [ebp - 4]
push dword [ebp + 8]
mov esi, ecx
push eax
push 2
call fcn.0100d2a1
add esp, 0x10
mov dword [ebp - 0x10], eax
test eax, eax
jl 0x100d294
xor ecx, ecx
cmp dword [esi + 0x644], 0x20
mov eax, 0x100
setne cl
dec ecx
and ecx, eax
add eax, ecx
lea ecx, [ebp + 8]
push ecx
or eax, 0x20019
push eax
push 0
push dword [ebp - 4]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x101b250
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x10]
pop esi
leave
ret 4
and dword [esi + 0xc], 0
inc eax
mov dword [esi + 0x14], eax
mov dword [ebp - 0xc], eax
mov dword [esi + 8], 2
lea eax, [ebp - 8]
push eax
add esi, 0x234
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push dword [0x103b4e4]
mov dword [ebp - 8], 0x208
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100d28b
Function at 0x100d366
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
xor ebx, ebx
push edi
cmp eax, ebx
jne 0x101b2c7
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp dword [ebp + 8], ebx
je 0x100d39b
push dword [ebp + 8]
call edi
mov dword [esi + 0x20], eax
cmp eax, ebx
je 0x101b2d6
mov eax, dword [esi + 0x28]
cmp eax, ebx
jne 0x101b2e0
cmp dword [ebp + 0xc], ebx
je 0x100d3bb
push dword [ebp + 0xc]
call edi
mov dword [esi + 0x28], eax
cmp eax, ebx
je 0x101b2d6
push dword [ebp + 8]
lea eax, [ebp - 4]
push dword [0x103b46c]
mov dword [ebp - 4], ebx
push eax
push 2
call fcn.0100d2a1
add esp, 0x10
cmp eax, ebx
mov dword [ebp + 8], eax
jl 0x100d488
push 0x20
pop ebx
push dword [ebp - 4]
lea edi, [esi + 0x644]
mov ecx, esi
mov dword [edi], ebx
call fcn.0100d1ca
xor ecx, ecx
cmp dword [edi], ebx
mov dword [ebp + 8], eax
setne cl
mov eax, 0x100
xor ebx, ebx
dec ecx
and ecx, eax
add eax, ecx
lea ecx, [ebp + 0xc]
push ecx
or eax, 0x20019
push eax
push ebx
push dword [ebp - 4]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor edi, edi
inc edi
test eax, eax
jne 0x100d477
lea eax, [ebp - 8]
push eax
lea eax, [esi + 0x43c]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [0x103b4e4]
mov dword [ebp - 0xc], edi
push dword [ebp + 0xc]
mov dword [ebp - 8], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0100d497
cmp eax, ebx
mov dword [ebp + 8], eax
jl 0x100d46e
cmp dword [esi + 0x10], edi
jne 0x101b2ef
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp + 8], ebx
jl 0x100d488
mov dword [esi + 0x1c], edi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi + 0x20], ebx
jmp 0x100d380
mov eax, 0x80041006
jmp 0x100d48b
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi + 0x28], ebx
jmp 0x100d3a6
cmp dword [esi + 0x14], edi
je 0x100d46e
mov dword [esi + 0x18], edi
mov dword [esi + 8], 2
mov dword [esi + 0xc], ebx
jmp 0x100d46e