joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d398
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
test dl, dl
je 0x41d3ab
add esp, 0xfffffff0
call fcn.00403d90
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00403b18
mov byte [ebx + 4], 0
cmp dword [esi + 0x5c], 0
jne 0x41d3d1
cmp dword [esi + 0x58], 0x40
jb 0x41d5b7
jmp 0x41d3d7
jl 0x41d5b7
lea eax, [ebx + 0xc]
mov edx, 0x40
call fcn.00406e68
push 0
push 0
push 0
push 0x40
lea edx, [ebx + 0xc]
mov eax, esi
call fcn.0041cf50
cmp word [ebx + 0xc], 0x5a4d
jne 0x41d5b7
mov ecx, dword [ebx + 0x48]
test ecx, ecx
jle 0x41d5b7
cmp ecx, 0x10000
jge 0x41d5b7
mov eax, ecx
add eax, 4
add eax, 0x14
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d432
cmp eax, dword [esi + 0x58]
ja 0x41d5b7
jmp 0x41d438
jg 0x41d5b7
lea eax, [ebx + 0x4c]
mov edx, 4
call fcn.00406e68
mov eax, dword [ebx + 0x48]
cdq
push edx
push eax
push 0
push 4
lea edx, [ebx + 0x4c]
mov eax, esi
call fcn.0041cf50
cmp dword [ebx + 0x4c], 0x4550
jne 0x41d5b7
lea eax, [ebx + 0x50]
mov edx, 0x14
call fcn.00406e68
mov eax, dword [ebx + 0x48]
add eax, 4
cdq
push edx
push eax
push 0
push 0x14
lea edx, [ebx + 0x50]
mov eax, esi
call fcn.0041cf50
mov ax, word [ebx + 0x50]
cmp ax, 0x8664
jne 0x41d4ef
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
add eax, 0xf0
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d4b3
cmp eax, dword [esi + 0x58]
ja 0x41d540
jmp 0x41d4b9
jg 0x41d540
lea eax, [ebx + 0x144]
mov edx, 0xf0
call fcn.00406e68
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
cdq
push edx
push eax
push 0
push 0xf0
lea edx, [ebx + 0x144]
mov eax, esi
call fcn.0041cf50
mov byte [ebx + 4], 1
jmp 0x41d540
cmp ax, 0x14c
jne 0x41d540
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
add eax, 0xe0
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d510
cmp eax, dword [esi + 0x58]
ja 0x41d540
jmp 0x41d512
jg 0x41d540
lea eax, [ebx + 0x64]
mov edx, 0xe0
call fcn.00406e68
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
cdq
push edx
push eax
push 0
push 0xe0
lea edx, [ebx + 0x64]
mov eax, esi
call fcn.0041cf50
mov byte [ebx + 4], 1
cmp byte [ebx + 4], 0
je 0x41d5b7
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
movzx edx, word [ebx + 0x60]
add eax, edx
mov di, word [ebx + 0x52]
movzx edx, di
shl edx, 3
lea edx, [edx + edx*4]
add eax, edx
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d571
cmp eax, dword [esi + 0x58]
ja 0x41d5b7
jmp 0x41d573
jg 0x41d5b7
movzx eax, di
push eax
lea eax, [ebx + 8]
mov ecx, 1
mov edx, dword [0x427e68]
call fcn.00405b5c
add esp, 4
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
movzx edx, word [ebx + 0x60]
add eax, edx
cdq
push edx
push eax
movzx eax, word [ebx + 0x52]
shl eax, 3
lea eax, [eax + eax*4]
xor edx, edx
push edx
push eax
mov edx, dword [ebx + 8]
mov eax, esi
call fcn.0041cf50
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x41d5ce
call fcn.00403de8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x41e2cc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42978b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e37d
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e366
test esi, esi
jbe 0x41e37d
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040888c
test eax, eax
jne 0x41e358
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e37d
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e335
jmp 0x41e37d
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e37d
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429792
ret
Function at 0x41ebdc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x42a18b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cb8
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41ec17
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41ec30
lea eax, [ebp - 0x10]
mov edx, dword [0x440194]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d18
jmp 0x41ec43
lea eax, [ebp - 0x10]
mov edx, dword [0x440194]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d18
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41ec4f
adc edx, 0
mov edx, dword [edx*4 + 0x43ecac]
call fcn.00404f08
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404eec
push eax
call fcn.00406adc
mov esi, eax
cmp esi, 0xffffffff
je 0x41ed5d
mov eax, 0x40
call fcn.00403250
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d24
test eax, eax
je 0x41ed50
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41ed50
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406d7c
mov eax, edi
call fcn.00403270
mov eax, 0x18
call fcn.00403250
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d24
test eax, eax
je 0x41ed50
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41ed50
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41ed50
cmp dx, 0x150
ja 0x41ed50
mov eax, edi
call fcn.00403270
mov eax, 0xe0
call fcn.00403250
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d24
test eax, eax
je 0x41ed50
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41ed50
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404cf4
mov eax, edi
call fcn.00403270
push esi
call fcn.00406a94
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.00405014
jne 0x41ed75
inc ebx
cmp ebx, 0x19
jne 0x41ec09
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42a192
lea eax, [ebp - 0x10]
call fcn.00404cb8
ret
Function at 0x41f0b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
xor ebx, ebx
push 0
push 0
push 0
push edi
call fcn.00406d7c
push 0
lea eax, [ebp - 4]
push eax
push 0x40
push esi
push edi
call fcn.00406d24
test eax, eax
je 0x41f14d
cmp word [esi], 0x5a4d
jne 0x41f14d
push 0
push 0
mov eax, dword [esi + 0x3c]
push eax
push edi
call fcn.00406d7c
push 0
lea eax, [ebp - 4]
push eax
push 0x18
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.00406d24
test eax, eax
je 0x41f14d
cmp dword [ebp - 0x1c], 0x4550
jne 0x41f14d
lea edx, [ebp - 0x18]
mov ecx, 0x14
mov eax, dword [ebp + 0xc]
call fcn.00406e60
mov ax, word [ebp - 0x18]
cmp ax, 0x14c
jb 0x41f14d
cmp ax, 0x150
ja 0x41f14d
push 0
lea eax, [ebp - 4]
push eax
push 0xe0
mov eax, dword [ebp + 8]
push eax
push edi
call fcn.00406d24
test eax, eax
je 0x41f14d
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x43a8c5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0042f80a
and dword [ebp - 4], 0
cmp dword [0x454778], 0
mov ebx, eax
jne 0x43a976
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x43aa27
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4470f0
push edi
call esi
test eax, eax
je 0x43aa27
push eax
call fcn.0042f798
mov dword [esp], 0x4470e0
push edi
mov dword [0x454778], eax
call esi
push eax
call fcn.0042f798
mov dword [esp], 0x4470cc
push edi
mov dword [0x45477c], eax
call esi
push eax
call fcn.0042f798
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x454780], eax
call esi
push eax
call fcn.0042f798
pop ecx
mov dword [0x454788], eax
test eax, eax
je 0x43a976
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042f798
pop ecx
mov dword [0x454784], eax
mov eax, dword [0x454784]
cmp eax, ebx
je 0x43a9ce
cmp dword [0x454788], ebx
je 0x43a9ce
push eax
call fcn.0042f813
push dword [0x454788]
mov esi, eax
call fcn.0042f813
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x43a9ce
test edi, edi
je 0x43a9ce
call esi
test eax, eax
je 0x43a9c5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43a9c5
test byte [ebp - 0xc], 1
jne 0x43a9ce
or dword [ebp + 0x10], 0x200000
jmp 0x43aa07
mov eax, dword [0x45477c]
cmp eax, ebx
je 0x43aa07
push eax
call fcn.0042f813
pop ecx
test eax, eax
je 0x43aa07
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x43aa07
mov eax, dword [0x454780]
cmp eax, ebx
je 0x43aa07
push eax
call fcn.0042f813
pop ecx
test eax, eax
je 0x43aa07
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x454778]
call fcn.0042f813
pop ecx
test eax, eax
je 0x43aa27
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43aa29
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x7c47b2
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.007c4831
jae 0x7c47be
xor ecx, ecx
call fcn.007c4831
jae 0x7c47e8
xor eax, eax
call fcn.007c4831
jae 0x7c47f9
mov al, 0x10
call fcn.007c4831
adc al, al
jae 0x7c47da
jne 0x7c4826
stosb byte es:[edi], al
jmp 0x7c47bf
call fcn.007c483d
dec ecx
loop 0x7c4805
mov eax, ebp
call fcn.007c483b
jmp 0x7c4827
lodsb al, byte [esi]
shr eax, 1
je 0x7c484d
adc ecx, 2
mov ebp, eax
jmp 0x7c4827
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.007c483b
cmp eax, 0x7d00
jae 0x7c4825
cmp eax, 0x500
jae 0x7c4826
cmp eax, 0x7f
ja 0x7c4827
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7c47bf
pop ebp
ret 8
Function at 0x406190
Capabilities:
Reference sql statements

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84c
mov eax, dword [0x44d558]
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 0xe
mov esi, str.MakeMinimalFailSafeOperator
lea edi, [ebp - 0x440]
rep movsd dword es:[edi], dword [esi]
mov ax, word [0x44d880]
mov word [ebp - 0x408], ax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x406]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov cx, word [0x44d888]
mov word [ebp - 0x848], cx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x846]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x444], 0
mov dword [ebp - 0x84c], 0
cmp dword [ebp + 0xc], 0
jne 0x406215
xor eax, eax
jmp 0x4063d4
push 0x3a0
push 0
mov edx, dword [ebp + 0xc]
push edx
call sub.MSVCR71.dll_memset
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
lea ecx, [ebp - 0x440]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00408190
add esp, 0xc
test eax, eax
je 0x4062fd
push 0x400
lea eax, [ebp - 0x848]
push eax
push 0x43e014
push 0x43e01c
push 0x44f83c
call fcn.004321e0
add esp, 0x14
lea ecx, [ebp - 0x848]
push ecx
push 0x43e020
lea edx, [ebp - 0x408]
push edx
mov eax, dword [0x450d4c]
call dword [eax + 0x4cc]
add esp, 0xc
lea ecx, [ebp - 0x408]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLExecDirect]
add esp, 8
cmp eax, 1
jne 0x4062fd
lea eax, [ebp - 0x84c]
push eax
lea ecx, [ebp - 0x444]
push ecx
push 4
push 0xfffffffffffffff0
push 1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLBind]
add esp, 0x18
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SQLSVC.dll_QSQLNextRow]
add esp, 4
cmp eax, 0xffffffff
jne 0x4062e0
jmp 0x4062cc
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SQLSVC.dll_QSQLResults]
add esp, 4
cmp eax, 1
je 0x4062ab
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x444]
mov dword [edx], eax
push 0x44f83c
mov ecx, dword [ebp + 0xc]
add ecx, 4
push ecx
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
push 0x68
push 0x44fa3c
mov edx, dword [ebp + 0xc]
add edx, 0x114
push edx
mov eax, dword [0x450d4c]
call dword [eax + 0x4c4]
push 0x68
push 0x44f93c
mov ecx, dword [ebp + 0xc]
add ecx, 0x1e4
push ecx
mov edx, dword [0x450d4c]
call dword [edx + 0x4c4]
push 0x68
push 0x44fb3c
mov eax, dword [ebp + 0xc]
add eax, 0x2b4
push eax
mov ecx, dword [0x450d4c]
call dword [ecx + 0x4c4]
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x110], 0
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x384], 0
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x388], 0
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x38c], 0
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x390], 0
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x394], 0
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x398], 0
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x39c], 0
mov eax, 1
mov ecx, dword [ebp - 4]
call fcn.00434de1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4072f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x40730b
cmp dword [ebp + 0xc], 0
jne 0x40730f
xor eax, eax
jmp 0x407368
mov eax, dword [ebp + 8]
mov word [eax], 0
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407366
lea ecx, [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 0
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
jne 0x407366
mov eax, dword [ebp + 8]
jmp 0x407368
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x407a90
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x44d558]
mov dword [ebp - 8], eax
push edi
mov dword [ebp - 0x20c], 0
mov dword [ebp - 4], 0
mov ax, word [0x44d8cc]
mov word [ebp - 0x418], ax
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x416]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov cx, word [0x44d8d4]
mov word [ebp - 0x208], cx
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x206]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0
push 0
push str.SQL60_RUNNING
push pe_nt_image_headers32
lea edx, [ebp - 0x208]
push edx
call fcn.004233a0
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
push 1
push 4
mov ecx, dword [0x450d4c]
call dword [ecx + 0x354]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
jne 0x407cf8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 5
jne 0x407b90
cmp dword [0x44d8a0], 0
jne 0x407b86
push 0
push 0x8000006a
push 1
push 3
call fcn.0041cf30
add esp, 0x10
mov dword [0x44d8a0], 1
mov eax, 3
jmp 0x407d11
push 4
push 0
push 0
push 2
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x407bb8
xor eax, eax
jmp 0x407d11
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax]
mov dword [ebp - 0x41c], ecx
cmp dword [ebp - 0x41c], 0
je 0x407bea
cmp dword [ebp - 0x41c], 1
je 0x407c3a
cmp dword [ebp - 0x41c], 2
je 0x407c86
jmp 0x407cf6
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [0x44ff44], 0
je 0x407c07
xor eax, eax
jmp 0x407d11
cmp dword [0x44d8a4], 0
jne 0x407c3a
push 0x44e400
push 0x43e49c
push 0x168
push 0
push 2
call fcn.0041d760
add esp, 0x14
call fcn.00432030
mov eax, 1
jmp 0x407d11
mov eax, dword [ebp - 0x214]
mov dword [eax], 2
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [0x44d8a4], 0
jne 0x407c86
push 0x44e400
push 0x43e4bc
push 0x168
push 0
push 2
call fcn.0041d760
add esp, 0x14
call fcn.00432030
mov eax, 1
jmp 0x407d11
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push pe_nt_image_headers32
lea eax, [ebp - 0x418]
push eax
call fcn.00424640
add esp, 8
lea ecx, [ebp - 0x418]
push ecx
push 0
push 0x100000
mov edx, dword [0x450d4c]
call dword [edx + 0x350]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x407cec
push 0x44e400
push 0x43e4dc
push 0x168
push 0
push 2
call fcn.0041d760
add esp, 0x14
call fcn.00432030
jmp 0x407cf6
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x407d0c
mov ecx, dword [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 2
jmp 0x407d11
mov eax, 3
mov ecx, dword [ebp - 8]
call fcn.00434de1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x408a50
Capabilities:
Reference sql statements

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x44d558]
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x414], 0
mov dword [ebp - 0x20c], 0
mov ax, word [0x44d930]
mov word [ebp - 0x208], ax
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x206]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov cx, word [0x44d938]
mov word [ebp - 0x410], cx
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x40e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp dword [ebp + 8], 0
je 0x408ac1
cmp dword [ebp + 0xc], 0
jne 0x408ac8
xor eax, eax
jmp 0x408b7e
push 0x200
lea edx, [ebp - 0x410]
push edx
push 0x43ebf0
push 0x43ebf8
mov eax, dword [ebp + 0xc]
push eax
call fcn.004321e0
add esp, 0x14
lea ecx, [ebp - 0x410]
push ecx
push str.IF__EXISTS__SELECT__FROM_master.dbo.sysdatabases_WHERE__name__N_s____SELECT_1_ELSE_SELECT_0
lea edx, [ebp - 0x208]
push edx
mov eax, dword [0x450d4c]
call dword [eax + 0x4cc]
add esp, 0xc
lea ecx, [ebp - 0x208]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLExecDirect]
add esp, 8
cmp eax, 1
jne 0x408b78
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push 4
push 0xfffffffffffffff0
push 1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLBind]
add esp, 0x18
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SQLSVC.dll_QSQLNextRow]
add esp, 4
cmp eax, 0xffffffff
jne 0x408b59
jmp 0x408b45
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SQLSVC.dll_QSQLPurgeResults]
add esp, 4
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLResults]
add esp, 4
cmp eax, 1
je 0x408b24
mov eax, dword [ebp - 0x20c]
mov ecx, dword [ebp - 4]
call fcn.00434de1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40cd40
Capabilities:
Reference sql statements

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x460
mov eax, dword [0x44d558]
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 0xc
mov esi, str.ConnCacheMSXInstructions
lea edi, [ebp - 0x45c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ax, word [0x44d9d0]
mov word [ebp - 0x428], ax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x426]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x45c]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00408190
add esp, 0xc
test eax, eax
je 0x40cec7
push 0x1c
push 0
lea eax, [ebp - 0x20]
push eax
call sub.MSVCR71.dll_memset
add esp, 0xc
push 0x44e508
mov ecx, dword [ebp + 0x10]
push ecx
push str.SELECT_TOP__ld_instance_id__operation_code__object_type__object_id_FROM_msdb.dbo.sysdownloadlist_WHERE__target_server__N_s__AND__status__0__ORDER_BY_instance_id
lea edx, [ebp - 0x428]
push edx
mov eax, dword [0x450d4c]
call dword [eax + 0x4cc]
add esp, 0x10
lea ecx, [ebp - 0x428]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLExecDirect]
add esp, 8
cmp eax, 1
jne 0x40cec7
lea eax, [ebp - 0x460]
push eax
lea ecx, [ebp - 0x20]
push ecx
push 4
push 0xfffffffffffffff0
push 1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLBind]
add esp, 0x18
lea eax, [ebp - 0x460]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 4
push 0xfffffffffffffff0
push 2
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLBind]
add esp, 0x18
lea eax, [ebp - 0x460]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 4
push 0xfffffffffffffff0
push 3
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLBind]
add esp, 0x18
lea eax, [ebp - 0x460]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0x10
push 0xfffffffffffffffe
push 4
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLBind]
add esp, 0x18
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SQLSVC.dll_QSQLNextRow]
add esp, 4
cmp eax, 0xffffffff
jne 0x40ceb1
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.SQLSVC.dll_SHRecMemAdd]
add esp, 8
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
push 0x1c
push 0
lea ecx, [ebp - 0x20]
push ecx
call sub.MSVCR71.dll_memset
add esp, 0xc
jmp 0x40ce73
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLResults]
add esp, 4
cmp eax, 1
je 0x40cdfb
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
call fcn.00434de1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x424360
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0xc]
push eax
push str.SystemCurrentControlSetControlProductOptions
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4243ad
jmp 0x424462
lea ecx, [ebp - 8]
push ecx
push 0
lea edx, [ebp - 0x14]
push edx
push 0
push 0x445b64
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4243d7
cmp dword [ebp - 8], 0
jne 0x4243dc
jmp 0x424462
mov ecx, dword [ebp - 8]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4243f3
jmp 0x424462
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0
push str.ProductSuite
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x42441f
cmp dword [ebp - 0x14], 7
je 0x424421
jmp 0x424462
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
test edx, edx
je 0x424462
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x42444c
mov dword [ebp - 0x18], 1
jmp 0x424462
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 1]
mov dword [ebp - 4], edx
jmp 0x424427
cmp dword [ebp - 0x10], 0
je 0x424472
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0xc], 0
je 0x424482
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret