joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48239c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4823a4
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x482596
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x4825ac
mov eax, esi
call fcn.0048012c
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00404784
lea ecx, [ebp - 0x10]
mov edx, 0x4825c0
mov eax, esi
call fcn.0048012c
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00404784
lea ecx, [ebp - 0x14]
mov edx, 0x4825d8
mov eax, esi
call fcn.0048012c
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00404784
lea ecx, [ebp - 0x18]
mov edx, 0x4825f4
mov eax, esi
call fcn.0048012c
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00404784
lea ecx, [ebp - 0x1c]
mov edx, 0x482610
mov eax, esi
call fcn.0048012c
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00404784
lea ecx, [ebp - 0x24]
mov edx, 0x482628
mov eax, esi
call fcn.0048012c
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408c10
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00408ff0
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x482640
mov eax, esi
call fcn.0048012c
mov eax, dword [ebp - 0x28]
call fcn.0047f244
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x482650
mov eax, esi
call fcn.0048012c
mov eax, dword [ebp - 0x2c]
call fcn.0047f244
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x482668
mov eax, esi
call fcn.0048012c
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00408ff0
inc eax
je 0x482539
lea ecx, [ebp - 0x34]
mov edx, 0x482668
mov eax, esi
call fcn.0048012c
mov eax, dword [ebp - 0x34]
call fcn.00408fb4
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040a8ac
fstp qword [ebp - 0x3c]
wait
call fcn.0040ac3c
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x482554
lea ecx, [ebp - 0x40]
mov edx, 0x482668
mov eax, esi
call fcn.0048012c
mov eax, dword [ebp - 0x40]
call fcn.0047f244
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x482678
mov eax, esi
call fcn.0048012c
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00404784
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48259d
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404754
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404754
ret
Function at 0x4b9494
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4b94e5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4b94cc
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4b94bc
jmp 0x4b94e5
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4b94cd
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4cb258
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x38]
call fcn.00419e94
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4cb2ec
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
sub eax, 1
jno 0x4cb28d
call fcn.0040385c
cmp eax, 0
jl 0x4cb2d0
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.00419ad0
test byte [eax + 0x58], 1
je 0x4cb2c7
push 0
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.00419ad0
mov eax, dword [eax + 4]
push eax
call sub.KERNEL32.DLL_TerminateThread
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.00419970
dec dword [ebp - 4]
cmp dword [ebp - 4], 0xffffffff
jne 0x4cb295
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cb2f3
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x38]
call fcn.00419ef8
ret

Function at 0x4cfa98
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4cfac6
mov eax, ebx
call fcn.004d054c
cmp dword [ebx + 0x40], 0
je 0x4cfabf
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4cfb37
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4cfb29
cmp dword [ebx + 8], 0
je 0x4cfae8
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4cfafa
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4cfb29
cmp dword [ebx + 8], 0
je 0x4cfadb
cmp eax, 3
je 0x4cfb0d
dec eax
jne 0x4cfadb
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4cfadb
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4cfadb
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4cfb55
cmp dword [ebx + 0x14], 0xcc
je 0x4cfb55
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004cfb60
pop ebx
ret
Function at 0x4e1da8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
xor edx, edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e1e32
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 5
lea eax, [ebp - 0x109]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4e1df0
mov eax, dword [ebp - 4]
call fcn.00404730
jmp 0x4e1e19
lea eax, [ebp - 0x110]
lea edx, [ebp - 0x109]
mov ecx, 0x105
call fcn.004049a0
mov edx, dword [ebp - 0x110]
mov eax, dword [ebp - 4]
mov ecx, 0x4e1e48
call fcn.00404a3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e1e39
lea eax, [ebp - 0x110]
call fcn.00404730
ret

Function at 0x4e1e6c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc8
xor ecx, ecx
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x230], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404be0
mov eax, dword [ebp - 8]
call fcn.00404be0
xor eax, eax
push ebp
push 0x4e1ff1
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1c]
mov eax, dword [0x4edcac]
mov eax, dword [eax]
call fcn.00477858
lea edx, [ebp - 0xc]
mov eax, dword [0x4ed804]
call fcn.00478bb0
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov ecx, 0x4e1ffc
call fcn.00406270
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov ecx, 0x4e200c
call fcn.00406270
mov eax, dword [ebp - 0x1c]
call fcn.00404bf0
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
lea edx, [ebp - 0x234]
mov eax, dword [ebp - 0x1c]
call fcn.00409434
mov eax, dword [ebp - 0x234]
call fcn.00404bf0
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
mov eax, dword [ebp - 4]
call fcn.00404bf0
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x2c]
push 0
push 0
lea eax, [ebp - 0x22a]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathA
lea eax, [ebp - 0x238]
lea edx, [ebp - 0x22a]
mov ecx, 0x105
call fcn.004049a0
push dword [ebp - 0x238]
push 0x4e2024
push dword [ebp - 8]
push 0x4e2030
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.00404ab0
push 0
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e1ff8
lea eax, [ebp - 0x238]
mov edx, 2
call fcn.00404754
lea eax, [ebp - 0x230]
call fcn.00404e3c
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404754
lea eax, [ebp - 0x14]
call fcn.0040622c
lea eax, [ebp - 0x10]
call fcn.0040622c
lea eax, [ebp - 0xc]
call fcn.0040622c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404754
ret
Function at 0x4e2518
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe58
xor ecx, ecx
mov dword [ebp - 0x1a8], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e2611
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x1a8]
mov edx, dword [ebp - 4]
mov eax, dword [0x4ef08c]
call fcn.0041b2b0
cmp dword [ebp - 0x1a8], 0
je 0x4e2566
mov eax, dword [ebp - 8]
call fcn.00404730
jmp 0x4e25f8
lea eax, [ebp - 0x1a4]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, dword [ebp - 8]
call fcn.00404730
mov eax, dword [ebp - 4]
call fcn.00404bf0
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4e25b2
mov eax, dword [ebp - 8]
call fcn.00404730
mov ecx, 0x4e2624
mov edx, dword [ebp - 4]
mov eax, dword [0x4ef08c]
call fcn.0041b9bc
jmp 0x4e25f8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x4e25e7
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + eax*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.00404928
add dword [ebp - 0x14], 1
jno 0x4e25e7
call fcn.0040385c
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
cmp dword [edx + eax*4], 0
jne 0x4e25c2
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e2618
lea eax, [ebp - 0x1a8]
call fcn.00404730
ret
Function at 0x4e83a8
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
lea eax, [ebp - 4]
push eax
push 0x28
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x4e83f8
lea eax, [ebp - 0x14]
push eax
push 0x4e83fc
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 2
lea eax, [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
mov esp, ebp
pop ebp
ret
Function at 0x4ea1e2
Capabilities:
Check for software breakpoints

Disassembly:
cmp dword [eax], 0xfffff000
jne 0x4ea1f7
mov dl, byte [eax + 5]
cmp dl, 0xe8
je 0x4ea1fc
cmp dl, 0xcc
je 0x4ea1fc
dec eax
dec ecx
jne fcn.004ea1e2
ret
add eax, 0xa
add eax, dword [eax - 4]
ret

Function at 0x4ea4db
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push ebx
mov ebx, edx
sub ecx, ecx
push 6
pop edx
mov eax, dword fs:[ecx + 0x30]
cmp byte [ebx + 2], cl
jne 0x4ea4f5
dec edx
mov dword [eax], edx
mov byte [eax], dl
xor eax, dword [ebx + 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.KERNEL32.DLL_OpenProcess
test eax, eax
je 0x4ea572
push eax
push dword [ebx + 0x30]
call dword [ebx + 0x10]
push dword [ebp + 0x10]
call dword [ebx + 8]
test eax, eax
sete byte [ebp - 1]
pop eax
je 0x4ea555
sub ecx, ecx
cmp byte [ebx + 2], cl
mov edx, dword fs:[ecx + 0x30]
push eax
je 0x4ea530
shr eax, 2
inc eax
shl eax, 3
add eax, dword [edx + 0x44]
mov ecx, dword [ebp + 0x10]
xor ecx, dword [ebx + 4]
mov dword [eax], ecx
cmp byte [ecx], 7
pop eax
jae 0x4ea54d
inc dword [ecx + 4]
dec dword [edx + 4]
jmp 0x4ea555
inc word [ecx + 2]
dec word [edx + 2]
push eax
push dword [ebx + 0x30]
call dword [ebx + 0x18]
pop eax
cmp byte [ebp - 1], 0
je 0x4ea572
push eax
call sub.KERNEL32.DLL_CloseHandle
push 0x57
pop ecx
call fcn.004ea46b
pop ebx
leave
ret 0xc
Function at 0x4027e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
push edi
xor edi, edi
cmp ebx, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
je 0x4028e4
lea eax, [esp + 0x10]
push eax
push str.SystemCurrentControlSetControlProductOptions
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4028e4
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edi
push edx
push edi
push str.ProductSuite
push eax
call esi
test eax, eax
je 0x40285b
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 4
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x4028d9
push eax
call fcn.0040c869
mov ebp, eax
add esp, 4
cmp ebp, edi
mov dword [esp + 0x20], ebp
jne 0x40288d
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 4
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push ebp
push edx
push edi
push str.ProductSuite
push eax
call esi
test eax, eax
je 0x4028c9
push ebp
call fcn.0040c800
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 4
cmp dword [esp + 0x18], 7
je 0x4028f0
push ebp
call fcn.0040c800
add esp, 4
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 4
mov al, byte [ebp]
mov dword [esp + 0x28], 1
test al, al
je 0x40297b
mov esi, ebx
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x402927
test cl, cl
je 0x402923
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x402927
add eax, 2
add esi, 2
test cl, cl
jne 0x402903
xor eax, eax
jmp 0x40292c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40293a
mov dword [esp + 0x1c], 1
jmp 0x402950
push ebx
push ebp
call fcn.0040c780
add esp, 8
test eax, eax
je 0x402950
mov dword [esp + 0x28], 0
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebx
lea ebp, [ecx + ebp + 1]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov al, byte [ebp]
not ecx
dec ecx
test al, al
lea ebx, [ebx + ecx + 1]
jne 0x4028ff
mov ebp, dword [esp + 0x20]
xor edi, edi
push ebp
call fcn.0040c800
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x1c], edi
je 0x4028e4
cmp dword [esp + 0x28], edi
je 0x4028e4
cmp byte [ebx], 0
jne 0x4028e4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret 4
Function at 0x4029c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
test ebp, ebp
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
jne 0x4029f1
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret 4
lea eax, [esp + 0xc]
push eax
push str.SystemCurrentControlSetControlProductOptions
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x402a15
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret 4
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push 0
push edx
push 0
push str.ProductType
push eax
call esi
test eax, eax
je 0x402a4f
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret 4
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x402a6d
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret 4
push eax
call fcn.0040c869
mov edi, eax
add esp, 4
test edi, edi
jne 0x402a92
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret 4
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edi
push edx
push 0
push str.ProductType
push eax
call esi
test eax, eax
je 0x402ace
push edi
call fcn.0040c800
mov ecx, dword [esp + 0x10]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret 4
push ebp
push edi
call fcn.0040d040
mov esi, eax
push edi
neg esi
sbb esi, esi
inc esi
call fcn.0040c800
mov edx, dword [esp + 0x18]
add esp, 0xc
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0xc
ret 4
Function at 0x405090
Capabilities:
Access peb ldr_data
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x414b8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x638
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x1c]
call fcn.00406aa0
mov eax, 0x105
lea ebx, [esi + 0x420]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov ecx, 0x82
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edi, [esi + 0xc]
mov ecx, 0x82
xor eax, eax
lea edx, [esi + 0x216]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x82
xor eax, eax
mov edi, edx
lea ebp, [esi + 0x834]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x82
xor eax, eax
mov edi, ebp
mov dword [esp + 0x650], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esi + 0xa3e]
lea ecx, [esp + 0x14]
push eax
push 0
push 0
push ecx
lea eax, [esp + 0x20]
push ebx
push eax
lea ecx, [esp + 0x30]
push ebp
push ecx
push edx
lea ecx, [esp + 0x40]
mov dword [esp + 0x44], 2
call fcn.00406cc0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4051c0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4051c0
lea eax, [esi + 0xc]
push ebp
push eax
call fcn.0040bf55
add esp, 8
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x24]
rep stosd dword es:[edi], eax
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [esp + 0x24], 0
jne 0x40518f
push str.x86data
jmp 0x405194
push str._alphadata
push ebx
call fcn.0040bf2b
mov eax, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x4051bc
push ebx
mov ecx, esi
call fcn.00402ce0
test eax, eax
jne 0x4051bc
mov ecx, 0x82
mov edi, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
jmp 0x405238
mov ecx, dword [esi + 0xca4]
mov edi, dword [sym.imp.SQLUNIRL.dll__LoadString_16]
lea eax, [esp + 0x48]
push 0x200
push eax
push 2
push ecx
call edi
mov ecx, dword [0x41c3e4]
lea edx, [esp + 0x48]
push str.8.00
lea eax, [esp + 0x44c]
push edx
push eax
call dword [ecx + 0x4cc]
mov eax, dword [esi + 0xca4]
add esp, 0xc
lea edx, [esp + 0x248]
push 0x200
push edx
push 0xb
push eax
call edi
mov eax, dword [esp + 0x658]
lea ecx, [esp + 0x248]
push 0
lea edx, [esp + 0x44c]
push ecx
push edx
push eax
call dword [sym.imp.SQLUNIRL.dll__MessageBox_16]
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x650], 0xffffffff
call fcn.00408fc0
mov ecx, dword [esp + 0x648]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x644
ret 4
Function at 0x406ba0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x414c7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0xc]
xor esi, esi
call fcn.0040a170
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x28]
push str.SoftwareMicrosoftMSSQLServ
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x23c], esi
push eax
call fcn.0040bf55
lea ecx, [esp + 0x30]
push 0x418564
push ecx
call fcn.0040bf2b
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jb 0x406c25
lea ecx, [esp + 0xc]
mov dword [esp + 0x238], 0xffffffff
call fcn.0040a1b0
xor eax, eax
jmp 0x406c9a
mov edx, dword [esp + 0x240]
mov ecx, ebx
push edx
call fcn.00406ab0
test eax, eax
jne 0x406c84
lea eax, [esp + 0x28]
lea ecx, [esp + 0xc]
push eax
push 0x80000002
call fcn.0040a1d0
and eax, 0xff
mov dword [esp + 0x24], eax
je 0x406c84
lea ecx, [esp + 0xc]
call fcn.0040a230
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebx
call fcn.00407350
mov esi, eax
test esi, esi
jne 0x406c84
lea edx, [esp + 0x28]
lea ecx, [esp + 0xc]
push edx
push 0x80000002
call fcn.0040a250
lea ecx, [esp + 0xc]
mov dword [esp + 0x238], 0xffffffff
call fcn.0040a1b0
mov eax, esi
mov ecx, dword [esp + 0x230]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret 4

Function at 0x407350
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x414cdb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x228
push ebx
push ebp
mov ebp, ecx
push edi
lea ecx, [esp + 0x10]
call fcn.0040a170
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x28]
xor ebx, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x244]
lea ecx, [esp + 0x28]
push eax
push ecx
mov dword [esp + 0x244], ebx
call fcn.0040bf55
lea edx, [esp + 0x30]
push str.Setup
push edx
call fcn.0040bf2b
add esp, 0x10
lea eax, [esp + 0x28]
lea ecx, [esp + 0x10]
push eax
push 0x80000002
call fcn.0040a1d0
and eax, 0xff
mov dword [esp + 0xc], eax
je 0x407413
push esi
push ebx
push 0x400
push ebx
push str.SQLPath
lea ecx, [esp + 0x24]
call fcn.0040a330
mov esi, eax
cmp esi, ebx
je 0x407409
push esi
mov ecx, ebp
call fcn.00407450
push esi
push 8
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [esp + 0x14]
call fcn.0040a230
pop esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x23c], 0xffffffff
call fcn.0040a1b0
mov ecx, dword [esp + 0x234]
pop edi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x234
ret 4
Function at 0x4093e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 5
mov dword [esp + 0x14], ebp
call dword [sym.imp.SQLUNIRL.dll__MAKEINTRESOURCE_4]
mov ebx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x20]
push eax
push ebx
call dword [sym.imp.SQLUNIRL.dll__FindResource_12]
mov esi, eax
test esi, esi
je 0x409460
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x409460
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x40944d
mov ecx, dword [esp + 0x20]
push ecx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebp
call fcn.00409470
add esp, 0xc
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov esi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
pop ecx
ret