joyce8/EMBER2024-capa huggingface dataset:
Function at 0x26d690
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebx
push edi
push esi
sub esp, 0xa0
mov esi, dword [esp + 0xb0]
mov edi, dword [esp + 0xb4]
push edi
push 0x20
push dword [esp + 0xc0]
call fcn.0026d460
add esp, 0xc
and byte [edi], 0xf8
mov al, byte [edi + 0x1f]
and al, 0x3f
or al, 0x40
mov byte [edi + 0x1f], al
mov ebx, esp
push edi
push ebx
call fcn.00267780
add esp, 8
push ebx
push esi
call fcn.00267710
add esp, 0xa8
pop esi
pop edi
pop ebx
ret
Function at 0x40102a
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebx
push ebp
push esi
push edi
push str._JAVA_LAUNCHER_DEBUG
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xor ebp, ebp
pop ecx
test eax, eax
je 0x401079
push str.Windows_original_main_args:_n
call fcn.004010ff
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
mov esi, ebp
pop ecx
call edi
cmp dword [eax], ebp
jle 0x401079
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argv]
mov eax, dword [eax]
push dword [eax + esi*4]
push esi
push str.wwwd_args__d____s_n
call fcn.004010ff
add esp, 0xc
inc esi
call edi
cmp esi, dword [eax]
jl 0x401059
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call sub.jli.dll_JLI_CmdToArgs
call sub.jli.dll_JLI_GetStdArgc
mov ebx, eax
lea ecx, [ebx*4 + 4]
push ecx
call sub.jli.dll_JLI_MemAlloc
pop ecx
pop ecx
mov esi, eax
call sub.jli.dll_JLI_GetStdArgs
mov edx, ebp
test ebx, ebx
jle 0x4010b7
mov edi, esi
mov ecx, dword [eax + edx*8]
inc edx
mov dword [edi], ecx
lea edi, [edi + 4]
cmp edx, ebx
jl 0x4010aa
mov ecx, dword [str.java]
mov dword [esi + edx*4], ebp
test ecx, ecx
jne 0x4010c6
mov ecx, dword [esi]
mov eax, dword [section..data]
test eax, eax
jne 0x4010d1
mov eax, dword [esi]
push ebp
push ebp
push ebp
push 1
push ecx
push eax
push 0x4021b8
push 0x4021bc
push 0x40300c
push 2
push 0x403004
push 2
push esi
push ebx
call sub.jli.dll_JLI_Launch
add esp, 0x38
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x401810
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40184f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40184f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40184f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40184f
cmp dword [ecx + 0x74], 0xe
jbe 0x40184f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401d70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4171b9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, dword [esp + 0x20]
mov ecx, edi
mov dword [esp + 8], 0
call dword [sym.imp.MFC71U.DLL_CWinThread::GetMainWnd]
push eax
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_2]
mov esi, dword [esp + 0x24]
test esi, esi
mov dword [esp + 0x14], 0
jne 0x401dbb
xor eax, eax
jmp 0x401dc5
push esi
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
mov ecx, dword [edi]
push eax
mov eax, dword [ecx - 0xc]
push esi
push eax
push ecx
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.MFC71U.DLL_CPreviewDC::ComputeDeltas]
mov esi, dword [esp + 0x30]
add esp, 0x14
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x404ee0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4176ed
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebp
push esi
mov ebp, ecx
push edi
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT]
mov eax, dword [ebp + 0x230]
mov ecx, dword [eax + 0x108]
mov edx, dword [eax + 0xf4]
push ecx
push edx
lea eax, [esp + 0x14]
push str._sbakdevs.exe__Script___s_
push eax
mov dword [esp + 0x30], 0
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
push 0x98
call sub.MFC71U.DLL_CWordArray::CWordArray
mov esi, eax
add esp, 0x14
mov dword [esp + 0x10], esi
test esi, esi
mov byte [esp + 0x20], 1
je 0x404f70
push 0
push 0
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
mov ecx, esi
call fcn.0040ece0
mov esi, eax
jmp 0x404f72
xor esi, esi
mov eax, dword [esi]
push 0
mov ecx, esi
mov byte [esp + 0x24], 0
mov word [esi + 8], 5
call dword [eax + 0x20]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x24]
mov edi, eax
neg edi
sbb edi, edi
mov ecx, esi
inc edi
call fcn.0040e7b0
push esi
call sub.MFC71U.DLL_CNoTrackObject::operator_new
add esp, 4
test edi, edi
je 0x40500f
mov eax, dword [ebp + 0x230]
add eax, 0xf4
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
push 0x41b6c8
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 2
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator]
mov ecx, dword [esp + 0x10]
push ecx
call dword [0x41a120]
xor edx, edx
cmp eax, 0xffffffff
setne dl
lea ecx, [esp + 0x10]
mov esi, edx
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebp
add esp, 0x18
ret
Function at 0x405ad0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
sub esp, 0x410
mov eax, dword [0x427b3c]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x424]
mov dword [esp + 0x41c], eax
mov eax, dword [esp + 0x428]
push edi
lea ecx, [esp + 0x220]
push ecx
mov dword [esp + 0x1c], eax
call dword [0x41a0d0]
push edi
mov esi, 0x37c5d22a
mov ebp, 0x77be9b9c
mov ebx, 0x36456178
call dword [0x41a0d4]
test eax, eax
mov dword [esp + 0x18], eax
jle 0x405b9d
xor edi, edi
mov edx, eax
lea esp, [esp]
movzx eax, word [esp + edi + 0x21c]
mov dword [esp + 0x10], eax
mov eax, esi
xor eax, dword [esp + 0x10]
shr esi, 8
and eax, 0xff
xor esi, dword [eax*4 + 0x427040]
mov ecx, ebx
mov eax, esi
and eax, 0xff
add eax, ebp
imul eax, eax, 0x8088405
or ecx, 2
inc eax
mov ebp, eax
shr eax, 0x18
xor eax, ebx
and eax, 0xff
shr ebx, 8
xor ebx, dword [eax*4 + 0x427040]
mov eax, ecx
xor eax, 1
imul eax, ecx
movzx cx, ah
mov eax, dword [esp + 0x10]
add edi, 2
xor ecx, eax
dec edx
mov word [esp + edi + 0x1a], cx
jne 0x405b30
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
lea ecx, [eax + eax + 2]
mov edx, ecx
shr ecx, 2
mov word [esp + eax*2 + 0x1c], 0
lea esi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
pop ebp
pop ebx
call fcn.00416740
add esp, 0x410
ret 8
Function at 0x407200
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x544
mov eax, dword [0x427b3c]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x540], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 4], ecx
push ebx
xor ebx, ebx
push esi
push edi
mov byte [esp + 0x28], bl
mov ecx, 0x40
lea edi, [esp + 0x29]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x238], bl
mov ecx, 0x40
lea edi, [esp + 0x239]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x130], bl
mov ecx, 0x40
lea edi, [esp + 0x131]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov word [esp + 0x340], bx
mov ecx, 0x81
lea edi, [esp + 0x342]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x28]
test edx, edx
stosw word es:[edi], ax
je 0x4072cf
mov ecx, 0xc
mov esi, str.SoftwareMicrosoftMicrosoft_SQL_Server80Tools
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
cmp eax, str.Help
movsb byte es:[edi], byte [esi]
je 0x4072cf
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4072b4
mov ecx, dword [str.Help]
mov dx, word [0x41be9c]
mov dword [edi], ecx
mov word [edi + 4], dx
lea eax, [esp + 0x238]
test eax, eax
mov dword [esp + 0x14], 0x104
mov dword [esp + 0xc], ebx
je 0x40733e
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push ebx
lea edx, [esp + 0x34]
push edx
push 0x80000002
mov byte [esp + 0x24c], bl
call dword [0x41a028]
test eax, eax
jne 0x40733e
mov edx, dword [esp + 0xc]
mov edi, dword [0x41a02c]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x23c]
push ecx
push ebx
push ebx
push str.HelpFile
push edx
call edi
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
call dword [0x41a014]
cmp esi, ebx
je 0x407353
xor eax, eax
mov ecx, dword [esp + 0x54c]
call fcn.00416740
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 0x10]
lea eax, [esp + 0x130]
test eax, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x10], 0x104
mov dword [esp + 0xc], ebx
je 0x4073de
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push ebx
lea edx, [esp + 0x34]
push edx
push 0x80000002
mov byte [esp + 0x144], bl
call dword [0x41a028]
test eax, eax
jne 0x4073de
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x134]
push ecx
push ebx
push ebx
push str.HelpLCID
push edx
call edi
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
call dword [0x41a014]
cmp esi, ebx
jne 0x4073de
lea ecx, [esp + 0x130]
push ecx
call dword [sym.imp.MSVCR71.dll_atol]
add esp, 4
jmp 0x4073e4
call dword [0x41a0b4]
push 0x104
lea edx, [esp + 0x344]
push edx
push 0xffffffffffffffff
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x244]
push eax
push 1
push ebx
call dword [0x41a0c8]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push 0xfe
lea edx, [esp + 0x348]
push edx
push eax
call fcn.004155e7
mov ecx, dword [esp + 0x54c]
call fcn.00416740
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407440
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x42c
mov eax, dword [0x427b3c]
mov dword [esp + 0x428], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
xor eax, eax
push ebx
push esi
push edi
mov byte [esp + 0x120], 0
mov ecx, 0x40
lea edi, [esp + 0x121]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov word [esp + 0x228], 0
mov ecx, 0x81
lea edi, [esp + 0x22a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x407579
lea ecx, [esp + 0x120]
test ecx, ecx
je 0x40750a
mov ecx, 0xc
mov esi, str.SoftwareMicrosoftMicrosoft_SQL_Server80Tools
lea edi, [esp + 0x120]
rep movsd dword es:[edi], dword [esi]
xor edx, edx
cmp edx, str.Help
movsb byte es:[edi], byte [esi]
je 0x40750a
lea edi, [esp + 0x120]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4074f0
mov eax, dword [str.Help]
mov cx, word [0x41be9c]
mov dword [edi], eax
mov word [edi + 4], cx
lea edx, [esp + 0x18]
test edx, edx
mov dword [esp + 0x14], 0x104
mov dword [esp + 0xc], 0
je 0x407579
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
lea ecx, [esp + 0x12c]
push ecx
push 0x80000002
mov byte [esp + 0x2c], 0
call dword [0x41a028]
test eax, eax
jne 0x407579
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push str.HelpPath
push ecx
call dword [0x41a02c]
mov edx, dword [esp + 0xc]
push edx
mov esi, eax
call dword [0x41a014]
test esi, esi
je 0x40758d
lea edx, [esp + 0x18]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x407581
jmp 0x4075cd
lea edi, [esp + 0x18]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x407592
mov ax, word [0x41bea0]
mov word [edi], ax
mov eax, ebx
mov edx, ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4075a7
lea edi, [esp + 0x18]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4075b5
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x104
lea ecx, [esp + 0x22c]
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0x24]
push edx
push 1
push 0
call dword [0x41a0c8]
mov eax, dword [ebp + 0x10]
mov edx, dword [esp + 0x10]
push eax
push 0xf
lea ecx, [esp + 0x230]
push ecx
push edx
call fcn.004155e7
mov ecx, dword [esp + 0x434]
call fcn.00416740
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407760
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x11c
mov eax, dword [0x427b3c]
push ebp
mov ebp, dword [esp + 0x130]
mov dword [esp + 0x11c], eax
movzx eax, word [esp + 0x124]
push esi
mov esi, dword [esp + 0x12c]
push edi
xor edi, edi
test eax, 0xfffffffc
mov dword [esp + 0x10], edi
jne 0x40779c
cmp esi, edi
jne 0x4077b9
pop edi
pop esi
mov eax, 0x10
pop ebp
mov ecx, dword [esp + 0x118]
call fcn.00416740
add esp, 0x11c
ret 0x10
push ebx
mov ebx, dword [esp + 0x138]
cmp bx, 2
ja 0x4077d1
mov eax, 0x10
jmp 0x407943
cmp ebp, edi
je 0x4077c7
cmp bx, 3
jae 0x4077e5
mov eax, 1
jmp 0x407943
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push edi
push str.SOFTWAREMicrosoftMSSQLServerClientConnectTo
mov byte [esi + 1], 0
mov byte [esi], 0
push 0x80000002
mov word [ebp], di
mov byte [esp + 0x34], 0
call dword [0x41a020]
test eax, eax
jne 0x40787c
test byte [esp + 0x130], 2
je 0x40787c
mov edi, edi
mov ecx, dword [esp + 0x18]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
push esi
movzx edx, bx
push edi
sub edx, 2
push ecx
mov dword [esp + 0x30], edx
call dword [0x41a024]
cmp eax, 0x103
je 0x40787c
test eax, eax
jne 0x407874
inc word [ebp]
mov edx, dword [esp + 0x10]
mov byte [esi + edx], al
mov eax, dword [esp + 0x10]
mov ecx, 0xffff
sub ecx, eax
add ebx, ecx
inc edi
cmp bx, 2
lea esi, [esi + eax + 1]
ja 0x407820
jmp 0x40787c
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x18]
test eax, eax
mov dword [esp + 0x1c], 0x104
je 0x4078aa
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push str.DSQUERY
push eax
call dword [0x41a02c]
test eax, eax
je 0x4078bf
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + str.DBNMPNTW]
mov byte [esp + eax + 0x20], cl
inc eax
test cl, cl
jne 0x4078b0
mov edx, dword [esp + 0x1c]
mov byte [esp + edx + 0x20], 0
cmp byte [esp + 0x20], 0x2c
lea eax, [esp + 0x20]
je 0x4078e7
mov cl, byte [eax]
test cl, cl
je 0x4078e7
cmp cl, 0x20
je 0x4078e7
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x2c
jne 0x4078d3
mov byte [eax], 0
lea eax, [esp + 0x20]
push eax
call dword [0x41a0a8]
mov edi, eax
test edi, edi
mov dword [esp + 0x10], edi
je 0x40792d
push str.ConnectionServerEnum
push edi
call dword [0x41a0ac]
test eax, eax
je 0x40792d
mov di, word [ebp]
push ebp
push ebx
push esi
call eax
mov ecx, dword [esp + 0x20]
or ecx, eax
add esp, 0xc
add word [ebp], di
mov edi, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
push edi
call dword [0x41a0b0]
mov ecx, dword [esp + 0x18]
push ecx
call dword [0x41a014]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x128]
pop ebx
pop edi
pop esi
pop ebp
call fcn.00416740
add esp, 0x11c
ret 0x10
Function at 0x407b40
Capabilities:
Connect network resource

Disassembly:
sub esp, 0x22c
mov eax, dword [0x427b3c]
mov dword [esp + 0x228], eax
mov eax, dword [esp + 0x230]
push esi
push eax
lea eax, [esp + 0x28]
push str._s_admin_
push eax
xor esi, esi
call dword [0x41a800]
add esp, 0xc
push esi
push esi
push esi
lea edx, [esp + 0x10]
lea ecx, [esp + 0x30]
push edx
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], esi
call sub.MPR.dll_WNetAddConnection2W
test eax, eax
jne 0x407bd8
push esi
push esi
lea eax, [esp + 0x2c]
push eax
call sub.MPR.dll_WNetCancelConnection2W
mov eax, 1
pop esi
mov ecx, dword [esp + 0x228]
call fcn.00416740
add esp, 0x22c
ret 4
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop esi
call fcn.00416740
add esp, 0x22c
ret 4

Function at 0x407c00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x21c
mov eax, dword [0x427b3c]
push ebx
mov ebx, dword [esp + 0x228]
push esi
mov esi, dword [esp + 0x228]
push edi
xor edi, edi
test esi, esi
mov dword [esp + 0x224], eax
jne 0x407c33
mov dword [esp + 0xc], 0x80000002
jmp 0x407c44
lea eax, [esp + 0xc]
push eax
push 0x80000002
push esi
call dword [section..rdata]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
push edx
call dword [0x41a018]
test eax, eax
jne 0x407ca4
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push str.PROCESSOR_ARCHITECTURE
push eax
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x30], 2
call dword [0x41a01c]
test eax, eax
jne 0x407ca4
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebx
call dword [0x41a42c]
mov edi, 1
mov eax, dword [esp + 0x10]
test eax, eax
mov ebx, dword [0x41a014]
je 0x407cb5
push eax
call ebx
test esi, esi
jne 0x407cc4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x407cc4
push eax
call ebx
mov ecx, dword [esp + 0x224]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.00416740
add esp, 0x21c
ret 8
Function at 0x407cf0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x50
mov eax, dword [0x427b3c]
push ebx
mov ebx, dword [esp + 0x58]
push esi
xor esi, esi
test ebx, ebx
mov dword [esp + 0x54], eax
push edi
jne 0x407d13
mov dword [esp + 0xc], 0x80000002
jmp 0x407d24
lea eax, [esp + 0xc]
push eax
push 0x80000002
push ebx
call dword [section..rdata]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push str.SoftwareMicrosoftMSSQLServerMSSQLServerCurrentVersion
push edx
call dword [0x41a018]
test eax, eax
jne 0x407df5
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push str.CurrentVersion
push eax
mov dword [esp + 0x2c], 0x1e
mov dword [esp + 0x30], 1
call dword [0x41a01c]
test eax, eax
jne 0x407df5
mov ax, word [esp + 0x1c]
cmp ax, 0x37
jne 0x407d9b
mov ecx, 0x30
cmp word [esp + 0x20], cx
jne 0x407df3
cmp word [esp + 0x22], cx
jne 0x407df3
mov esi, 3
jmp 0x407df5
cmp ax, 0x38
jne 0x407dbb
mov ecx, 0x30
cmp word [esp + 0x20], cx
jne 0x407df3
cmp word [esp + 0x22], cx
jne 0x407df3
mov esi, 4
jmp 0x407df5
cmp ax, 0x36
jne 0x407df3
mov ax, word [esp + 0x20]
cmp ax, 0x35
jne 0x407ddb
cmp word [esp + 0x22], 0x30
jne 0x407df3
mov esi, 2
jmp 0x407df5
mov ecx, 0x30
cmp ax, cx
jne 0x407df3
cmp word [esp + 0x22], cx
jne 0x407df3
mov esi, 1
jmp 0x407df5
xor esi, esi
mov eax, dword [esp + 0x10]
test eax, eax
mov edi, dword [0x41a014]
je 0x407e06
push eax
call edi
test ebx, ebx
jne 0x407e15
mov eax, dword [esp + 0xc]
test eax, eax
je 0x407e15
push eax
call edi
mov ecx, dword [esp + 0x58]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.00416740
add esp, 0x50
ret 4

Function at 0x407e30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push esi
xor esi, esi
test ebx, ebx
push edi
jne 0x407e4a
mov dword [esp + 0x20], 0x80000002
jmp 0x407e5b
lea eax, [esp + 0x20]
push eax
push 0x80000002
push ebx
call dword [section..rdata]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push ecx
push str.SYSTEMCurrentControlSetServicesLanmanServerParameters
push edx
call dword [0x41a018]
test eax, eax
jne 0x407eb1
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push str.AutoShareServer
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x30], 2
call dword [0x41a01c]
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
test eax, eax
mov edi, dword [0x41a014]
je 0x407ec2
push eax
call edi
test ebx, ebx
jne 0x407ed1
mov eax, dword [esp + 0x20]
test eax, eax
je 0x407ed1
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x4081d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x51c
mov eax, dword [0x427b3c]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x524], eax
xor esi, esi
mov word [esp + 0x20], si
xor eax, eax
mov ecx, 0x3f
lea edi, [esp + 0x22]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 1
stosw word es:[edi], ax
mov dword [esp + 0x1c], 0x80
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT]
lea eax, [esp + 0x10]
push eax
push 0x80000002
push ebx
call dword [section..rdata]
test eax, eax
mov edi, dword [0x41a014]
jne 0x4082bf
mov edx, dword [esp + 0x10]
mov ebx, dword [0x41a018]
lea ecx, [esp + 0xc]
push ecx
push str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
push edx
call ebx
test eax, eax
jne 0x4082bf
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
push esi
push str._VIRTUAL_SERVER_NAME_
push eax
call dword [0x41a01c]
test eax, eax
jne 0x4082bf
mov ecx, dword [esp + 0xc]
push ecx
call edi
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x124]
push str.SYSTEMCurrentControlSetServicesMSSQLServer__s
push eax
call dword [0x41a800]
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x124]
push edx
push eax
call ebx
mov esi, eax
neg esi
sbb esi, esi
inc esi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4082ca
push eax
call edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4082d5
push eax
call edi
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [esp + 0x524]
mov eax, esi
call fcn.00416740
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4