joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10049de0
Capabilities:
Reference sql statements

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x1006ccbd
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x100ad040]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edx + 4]
lea ecx, [ebp]
xor eax, eax
mov edx, str.SELECT__Cabinet__FROM__Media__WHERE__Media_._Cabinet_
push 0xffffffffffffffff
mov word [ebp], ax
call fcn.10013e00
add esp, 4
cmp word [eax], 0
je 0x10049e49
nop dword [eax]
add eax, 2
cmp word [eax], 0
jne 0x10049e40
push 0xffffffffffffffff
mov edx, esi
mov ecx, eax
call fcn.10013e00
add esp, 4
cmp word [eax], 0
je 0x10049e69
nop dword [eax]
add eax, 2
cmp word [eax], 0
jne 0x10049e60
push 0xffffffffffffffff
mov edx, str..cab
mov ecx, eax
call fcn.10013e00
add esp, 4
cmp word [eax], 0
je 0x10049e89
add eax, 2
cmp word [eax], 0
jne 0x10049e80
push 0xffffffffffffffff
mov edx, 0x1009d4ec
mov ecx, eax
call fcn.10013e00
add esp, 4
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10049eb6
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
push edi
mov dword [ebp - 0x10], 0
call dword [sym.imp.msi.dll_MsiGetFeatureCostA]
mov esi, eax
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
cmp word [ebp], 0
je 0x10049ef8
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.msi.dll_MsiEnumClientsA]
test eax, eax
jle 0x10049ef1
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x10049f43
call fcn.1002f0b0
mov byte [ebp - 4], 0
test esi, esi
je 0x10049f07
push esi
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x10049f1e
push ecx
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.1004d40a
lea esp, [ebp + 0x20c]
pop ebp
ret
push 0
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiViewModify]
mov edi, eax
test edi, edi
jle 0x10049f5f
movzx edi, di
or edi, 0x80070000
test edi, edi
jns 0x10049f66
call fcn.1002f0b0
mov byte [ebp - 4], 0
test esi, esi
je 0x10049f75
push esi
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
test edi, edi
js 0x10049f07
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10049f92
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
test eax, eax
sete bl
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10049f09
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
jmp 0x10049f09
Function at 0x10049fd0
Capabilities:
Reference sql statements

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x1006cd0d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x100ad040]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
xor eax, eax
lea ecx, [ebp]
push 0xffffffffffffffff
mov edx, str.SELECT__FROM__Condition__WHERE__Condition_._Feature__
mov word [ebp], ax
call fcn.10013e00
add esp, 4
cmp word [eax], 0
je 0x1004a039
nop dword [eax + eax]
add eax, 2
cmp word [eax], 0
jne 0x1004a030
push 0xffffffffffffffff
mov edx, ebx
mov ecx, eax
call fcn.10013e00
add esp, 4
cmp word [eax], 0
je 0x1004a059
nop dword [eax]
add eax, 2
cmp word [eax], 0
jne 0x1004a050
push 0xffffffffffffffff
mov edx, 0x1009d4ec
mov ecx, eax
call fcn.10013e00
add esp, 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
push esi
call dword [sym.imp.msi.dll_MsiGetFeatureCostA]
mov esi, eax
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1004a096
push ecx
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.msi.dll_MsiEnumClientsA]
push 0
push dword [ebp - 0x14]
call dword [sym.imp.msi.dll_MsiViewModify]
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1004a0d0
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push dword [ebp - 0x14]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
test eax, eax
jne 0x1004a0f8
push dword [ebp - 0x10]
push 6
push dword [ebp - 0x14]
call dword [sym.imp.msi.dll_MsiRecordClearData]
jmp 0x1004a0c2
push 3
call dword [sym.imp.msi.dll_MsiDatabaseExportA]
mov ecx, dword [ebp - 0x10]
mov edi, eax
test ecx, ecx
je 0x1004a110
push ecx
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
push ebx
push 1
push edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.msi.dll_MsiReinstallFeatureW]
push 0
push 2
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiRecordSetStringW]
push 0x10093d00
push 3
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiReinstallFeatureW]
push dword [ebp - 0x10]
push 7
push dword [ebp - 0x14]
call dword [sym.imp.msi.dll_MsiRecordClearData]
push esi
call dword [sym.imp.msi.dll_MsiDatabaseGenerateTransformW]
test eax, eax
sete bl
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1004a166
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov byte [ebp - 4], 0
test esi, esi
je 0x1004a175
push esi
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1004a18a
push ecx
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.1004d40a
lea esp, [ebp + 0x20c]
pop ebp
ret
Function at 0x1004ce3d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x1004ce64
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x1004ce67
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.1004ce19
pop esi
leave
ret 8

Function at 0x1005872c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10090088
push 0x10090080
push str.FlsAlloc
push 0x1e
call fcn.1005864a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10058760
push dword [ebp + 8]
mov ecx, esi
call dword [0x1006e578]
call esi
jmp 0x10058766
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100587aa
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10090098
push 0x10090090
push str.FlsGetValue
push 0x20
call fcn.1005864a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100587e1
push dword [ebp + 8]
mov ecx, esi
call dword [0x1006e578]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1005a890
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 0x1005a92d
push ebx
push esi
call fcn.1005a859
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.100597d5
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1005a8da
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005a92c
push edi
push eax
call fcn.10056f9d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1005a8fa
call fcn.10056ec7
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005a92b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100597d5
add esp, 0x20
test eax, eax
jne 0x1005a919
push edi
call fcn.10056ec7
jmp 0x1005a921
push ebx
call fcn.10056ec7
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 0x10060830
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1006085d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1006085d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x4044fc
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov eax, ebx
mov edx, esp
mov ecx, 0x104
call fcn.00403978
add esp, 0x104
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403aec
xor eax, eax
push ebp
push 0x404574
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00403afc
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
setne bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40457b
lea eax, [ebp - 4]
call fcn.00403848
ret
Function at 0x5e8da0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.HAOCMP1
lea edi, [esi - 0x144000]
push edi
or ebp, 0xffffffff
jmp 0x5e8dc2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5e8dc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5e8db8
mov eax, 1
add ebx, ebx
jne 0x5e8ddb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5e8dec
jne 0x5e8e0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5e8e0b
dec eax
add ebx, ebx
jne 0x5e8df8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5e8dd0
add ebx, ebx
jne 0x5e8e07
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5e8e5d
xor ecx, ecx
sub eax, 3
jb 0x5e8e23
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5e8e92
sar eax, 1
mov ebp, eax
jmp 0x5e8e2e
add ebx, ebx
jne 0x5e8e2e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5e8dfc
inc ecx
add ebx, ebx
jne 0x5e8e3c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5e8dfc
add ebx, ebx
jne 0x5e8e49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5e8e3e
jne 0x5e8e5a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5e8e3e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5e8e7c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5e8e6e
jmp 0x5e8dbe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5e8e7c
add edi, ecx
jmp 0x5e8dbe
pop esi
mov edi, esi
mov ecx, 0x4afb
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5e8e9a
cmp byte [edi], 0x11
jne 0x5e8e9a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5e8e9f
lea edi, [esi + 0x1e5000]
mov eax, dword [edi]
or eax, eax
je 0x5e8f17
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x23ef0c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x23f038]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5e8ecc
mov ecx, edi
jns 0x5e8efb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x23f03c]
or eax, eax
je 0x5e8f11
mov dword [ebx], eax
add ebx, 4
jmp 0x5e8ee9
call dword [esi + 0x23f044]
mov ebp, dword [esi + 0x23f040]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x257]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5e8f4b
sub esp, 0xffffff80
jmp 0x439ea6

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x403a74
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x390
mov eax, dword [0x44608c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, 0x101
push 0
push eax
mov ecx, esi
mov dword [ebp - 0x390], eax
call fcn.004046c1
cmp dword [esi + 0x14], 8
jb 0x403aaa
mov eax, dword [esi]
jmp 0x403aac
mov eax, esi
lea ecx, [ebp - 0x390]
push ecx
push eax
push 2
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x403adf
push 0
push dword [ebp - 0x390]
mov ecx, esi
call fcn.004046c1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004065bb
mov esp, ebp
pop ebp
ret 4
push 0x4243c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf
lea ecx, [ebp - 0x38c]
call fcn.004018f5
push 0x442bc0
lea eax, [ebp - 0x38c]
push eax
call fcn.004073d4
int3

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x76e44829
Capabilities:
Check if file exists
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x76e5f514]
push esi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x88], eax
call fcn.76e448ec
test eax, eax
mov dword [esi], eax
je 0x76e4930c
cmp dword [0x76e5f57c], 1
jne 0x76e44878
call fcn.76e42476
test eax, eax
jne 0x76e448d4
cmp dword [ebp + 0xc], 2
je 0x76e49317
cmp dword [ebp + 0xc], 1
je 0x76e49317
push 0x40
lea eax, [ebp - 0x84]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x76e448e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x76e448e2
push dword [ebp - 0x8c]
push dword [esi]
push 9
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
test eax, eax
je 0x76e4933d
cmp dword [0x76e5f57c], 1
jne 0x76e448d2
call sub.RPCRT4.dll_RpcRevertToSelf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.76e42a30
leave
ret 0x14
push 0x55
pop eax
jmp 0x76e448d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x76e448d4
mov eax, dword [ebp - 0x88]
push ebx
push edi
lea edi, [ebp - 0x90]
lea ebx, [ebp - 0x88]
call fcn.76e434f8
cmp dword [ebp - 0x88], 0
pop ebx
jmp 0x76e448aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x76e5f57c], 1
mov esi, eax
jne 0x76e49353
call sub.RPCRT4.dll_RpcRevertToSelf
mov eax, esi
jmp 0x76e448d4
Function at 0x76e44e87
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x14]
test ecx, ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x10], eax
je 0x76e498e6
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ecx], eax
je 0x76e498ee
push esi
lea eax, [ebp + 8]
push eax
push 0
push ebx
call fcn.76e44d4a
mov esi, eax
test esi, esi
jne 0x76e44f06
cmp dword [ebp + 8], 0
je 0x76e498f6
push edi
push dword [ebp + 8]
call fcn.76e44d27
mov edi, eax
test edi, edi
je 0x76e498fd
lea eax, [ebp + 8]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x76e49905
xor esi, esi
push edi
call fcn.76e42450
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
push 0x57
pop eax
jmp 0x76e44f08
push 0x57
pop eax
jmp 0x76e44f07
xor eax, eax
jmp 0x76e44f06
push 8
pop eax
jmp 0x76e44f05
test eax, eax
je 0x76e49910
mov esi, eax
jmp 0x76e44efd
cmp dword [ebp - 4], 1
jne 0x76e49980
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
mov ebx, eax
test ebx, ebx
pop ecx
jne 0x76e49928
xor esi, esi
jmp 0x76e4998b
push 2
push 0x76e499c0
push edi
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x76e4995f
push 0x10
lea eax, [ebp + 8]
push eax
push edi
call dword [sym.imp.msvcrt.dll_wcstoul]
mov esi, dword [ebp + 8]
sub esi, edi
sar esi, 1
sub esi, ebx
add esp, 0xc
neg esi
sbb esi, esi
and esi, 0xd
jmp 0x76e49988
push 0x76e499a8
push edi
call dword [sym.imp.msvcrt.dll_wcsspn]
cmp eax, ebx
pop ecx
pop ecx
je 0x76e49976
push 0xd
pop esi
jmp 0x76e4998b
push edi
call fcn.76e5bfd4
xor esi, esi
jmp 0x76e49988
cmp dword [ebp - 4], 4
jne 0x76e4999e
mov eax, dword [edi]
mov dword [ebp + 0x10], eax
push edi
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [eax], ecx
jmp 0x76e44f03
push 0xd
pop esi
jmp 0x76e44efd
Function at 0x76e44fa7
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x14]
test ecx, ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x10], eax
je 0x76e49807
push edi
mov edi, dword [ebp + 8]
test edi, edi
mov dword [ecx], eax
je 0x76e4980f
push esi
lea eax, [ebp + 8]
push eax
push 0
push edi
call fcn.76e44d4a
mov esi, eax
test esi, esi
jne 0x76e45026
cmp dword [ebp + 8], 0
je 0x76e49817
push ebx
push dword [ebp + 8]
call fcn.76e44d27
mov ebx, eax
test ebx, ebx
je 0x76e4981e
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x76e49826
xor esi, esi
push ebx
call fcn.76e42450
mov eax, esi
pop ebx
pop esi
pop edi
leave
ret 0x10
push 0x57
pop eax
jmp 0x76e45028
push 0x57
pop eax
jmp 0x76e45027
xor eax, eax
jmp 0x76e45026
push 8
pop eax
jmp 0x76e45025
test eax, eax
je 0x76e49831
mov esi, eax
jmp 0x76e4501d
xor edi, edi
inc edi
cmp dword [ebp - 4], edi
jne 0x76e49898
mov esi, dword [sym.imp.msvcrt.dll__wcsicmp]
push 0x76e498dc
push ebx
call esi
test eax, eax
pop ecx
pop ecx
jne 0x76e49854
mov dword [ebp + 0x10], edi
xor esi, esi
jmp 0x76e498a3
push 0x76e498d4
push ebx
call esi
test eax, eax
pop ecx
pop ecx
je 0x76e4984d
push 0x76e498c8
push ebx
call esi
test eax, eax
pop ecx
pop ecx
jne 0x76e49877
xor esi, esi
mov dword [ebp + 0x10], esi
jmp 0x76e498a3
push 0x76e498c0
push ebx
call esi
test eax, eax
pop ecx
pop ecx
je 0x76e49870
push ebx
call dword [sym.imp.msvcrt.dll_wcslen]
mov esi, eax
neg esi
sbb esi, esi
pop ecx
and esi, 0xd
jmp 0x76e498a3
cmp dword [ebp - 4], 4
jne 0x76e498b6
mov eax, dword [ebx]
mov dword [ebp + 0x10], eax
push ebx
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [eax], ecx
jmp 0x76e45023
push 0xd
pop esi
jmp 0x76e4501d
Function at 0x76e457de
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push esi
call fcn.76e476ea
mov esi, eax
test esi, esi
jne 0x76e4853a
call fcn.76e473a7
mov esi, eax
test esi, esi
jne 0x76e48555
call fcn.76e47446
mov esi, eax
test esi, esi
jne 0x76e4855d
call fcn.76e45826
mov esi, eax
test esi, esi
jne 0x76e48565
xor eax, eax
pop esi
ret
cmp esi, 0x420
je 0x76e457f0
push esi
push 0x76e48634
call sub.ntdll.dll_DbgPrint
pop ecx
pop ecx
jmp 0x76e48582
push esi
push 0x76e4860c
jmp 0x76e4854c
push esi
push 0x76e485e0
jmp 0x76e4854c
push esi
push 0x76e485ac
call sub.ntdll.dll_DbgPrint
push 0x76e48588
call sub.ntdll.dll_DbgPrint
add esp, 0xc
call fcn.76e4b60a
mov eax, esi
pop esi
ret