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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5a77db
sub esp, 0x2c
lea eax, [0x5f1160]
mov dword [esp], eax
call fcn.0040c1e0
mov eax, dword [esp + 4]
mov dword [esp + 0x20], eax
lea ecx, [0x5eaf80]
mov dword [esp], ecx
call fcn.0040c1e0
mov eax, dword [esp + 4]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x3c]
mov dword [esp], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], ecx
call fcn.00409b20
mov eax, dword [esp + 8]
lea ecx, [0x5f1960]
mov edx, dword [esp + 0x1c]
mov dword [edx], ecx
mov ebx, dword [0x7f8db0]
test ebx, ebx
jne 0x5a7708
mov dword [edx + 4], eax
jmp 0x5a7710
lea edi, [edx + 4]
call fcn.00464380
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
call fcn.00409b20
mov eax, dword [esp + 8]
lea ecx, [0x5f1960]
mov edx, dword [esp + 0x1c]
mov dword [edx + 8], ecx
mov ecx, dword [0x7f8db0]
test ecx, ecx
jne 0x5a7744
mov dword [edx + 0xc], eax
jmp 0x5a774c
lea edi, [edx + 0xc]
call fcn.00464380
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x1c]
mov ecx, dword [esp + 0x34]
mov dword [esp], ecx
lea ecx, [0x62c156]
mov dword [esp + 4], ecx
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], 2
call eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
lea ecx, [0x5e2080]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
mov dword [esp], eax
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
mov dword [esp + 8], 1
mov dword [esp + 0xc], 1
call fcn.0056f9a0
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
test eax, eax
setg al
mov byte [esp + 0x4c], al
add esp, 0x2c
ret
call fcn.00462f70
jmp fcn.005a7690
Function at 0x5a77f0
Capabilities:
Reference sql statements

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5a78ff
sub esp, 0x2c
lea eax, [0x5f1160]
mov dword [esp], eax
call fcn.0040c1e0
mov eax, dword [esp + 4]
mov dword [esp + 0x20], eax
lea ecx, [0x5eab00]
mov dword [esp], ecx
call fcn.0040c1e0
mov eax, dword [esp + 4]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x3c]
mov dword [esp], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], ecx
call fcn.00409b20
mov eax, dword [esp + 8]
lea ecx, [0x5f1960]
mov edx, dword [esp + 0x1c]
mov dword [edx], ecx
mov ecx, dword [0x7f8db0]
test ecx, ecx
jne 0x5a7868
mov dword [edx + 4], eax
jmp 0x5a7870
lea edi, [edx + 4]
call fcn.00464380
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x1c]
mov ecx, dword [esp + 0x34]
mov dword [esp], ecx
lea ecx, [0x62c1d6]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x86
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 1
call eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
lea ecx, [0x5e2080]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
mov dword [esp], eax
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
mov dword [esp + 8], 1
mov dword [esp + 0xc], 1
call fcn.0056f9a0
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
test eax, eax
setg al
mov byte [esp + 0x44], al
add esp, 0x2c
ret
call fcn.00462f70
jmp fcn.005a77f0
Function at 0x5a7910
Capabilities:
Reference sql statements

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5a7a5b
sub esp, 0x2c
lea eax, [0x5f1160]
mov dword [esp], eax
call fcn.0040c1e0
mov eax, dword [esp + 4]
mov dword [esp + 0x20], eax
lea ecx, [0x5eaf80]
mov dword [esp], ecx
call fcn.0040c1e0
mov eax, dword [esp + 4]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x3c]
mov dword [esp], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], ecx
call fcn.00409b20
mov eax, dword [esp + 8]
lea ecx, [0x5f1960]
mov edx, dword [esp + 0x1c]
mov dword [edx], ecx
mov ebx, dword [0x7f8db0]
test ebx, ebx
jne 0x5a7988
mov dword [edx + 4], eax
jmp 0x5a7990
lea edi, [edx + 4]
call fcn.00464380
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
call fcn.00409b20
mov eax, dword [esp + 8]
lea ecx, [0x5f1960]
mov edx, dword [esp + 0x1c]
mov dword [edx + 8], ecx
mov ecx, dword [0x7f8db0]
test ecx, ecx
jne 0x5a79c4
mov dword [edx + 0xc], eax
jmp 0x5a79cc
lea edi, [edx + 0xc]
call fcn.00464380
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x1c]
mov ecx, dword [esp + 0x34]
mov dword [esp], ecx
lea ecx, [0x62c0d8]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x7e
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], 2
call eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
lea ecx, [0x5e2080]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
mov dword [esp], eax
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
mov dword [esp + 8], 1
mov dword [esp + 0xc], 1
call fcn.0056f9a0
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
test eax, eax
setg al
mov byte [esp + 0x4c], al
add esp, 0x2c
ret
call fcn.00462f70
jmp fcn.005a7910
Function at 0x5a8440
Capabilities:
Reference sql statements

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5a85c1
sub esp, 0x3c
lea eax, [0x5f1160]
mov dword [esp], eax
call fcn.0040c1e0
mov eax, dword [esp + 4]
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov ecx, dword [esp + 0x54]
mov dword [esp], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 4], ecx
call fcn.00409b20
mov eax, dword [esp + 8]
lea ecx, [0x5f1960]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
lea eax, [0x62bc70]
mov dword [esp], eax
mov dword [esp + 4], 0x54
lea eax, [esp + 0x34]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004e18f0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
lea edx, [0x5eab00]
mov dword [esp], edx
call fcn.0040c1e0
mov eax, dword [esp + 4]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x4c]
mov dword [esp], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 4], ecx
call fcn.00409b20
mov eax, dword [esp + 8]
lea ecx, [0x5f1960]
mov edx, dword [esp + 0x20]
mov dword [edx], ecx
mov ecx, dword [0x7f8db0]
test ecx, ecx
jne 0x5a852c
mov dword [edx + 4], eax
jmp 0x5a8534
lea edi, [edx + 4]
call fcn.00464380
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 0x1c]
mov ecx, dword [esp + 0x44]
mov dword [esp], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 1
call eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
lea ecx, [0x5e2080]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x30], ecx
mov dword [esp], eax
lea eax, [esp + 0x2c]
mov dword [esp + 4], eax
mov dword [esp + 8], 1
mov dword [esp + 0xc], 1
call fcn.0056f9a0
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
test eax, eax
setg al
mov byte [esp + 0x5c], al
add esp, 0x3c
ret
call fcn.00462f70
jmp fcn.005a8440
Function at 0x5a85d0
Capabilities:
Reference sql statements

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5a86df
sub esp, 0x2c
lea eax, [0x5f1160]
mov dword [esp], eax
call fcn.0040c1e0
mov eax, dword [esp + 4]
mov dword [esp + 0x20], eax
lea ecx, [0x5eab00]
mov dword [esp], ecx
call fcn.0040c1e0
mov eax, dword [esp + 4]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x3c]
mov dword [esp], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], ecx
call fcn.00409b20
mov eax, dword [esp + 8]
lea ecx, [0x5f1960]
mov edx, dword [esp + 0x1c]
mov dword [edx], ecx
mov ecx, dword [0x7f8db0]
test ecx, ecx
jne 0x5a8648
mov dword [edx + 4], eax
jmp 0x5a8650
lea edi, [edx + 4]
call fcn.00464380
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x1c]
mov ecx, dword [esp + 0x34]
mov dword [esp], ecx
lea ecx, [0x62b4b7]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 1
call eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
lea ecx, [0x5e2080]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
mov dword [esp], eax
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
mov dword [esp + 8], 1
mov dword [esp + 0xc], 1
call fcn.0056f9a0
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
test eax, eax
setg al
mov byte [esp + 0x44], al
add esp, 0x2c
ret
call fcn.00462f70
jmp fcn.005a85d0
Function at 0x5a86f0
Capabilities:
Reference sql statements

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5a88a7
sub esp, 0x44
lea eax, [0x5f1160]
mov dword [esp], eax
call fcn.0040c1e0
mov eax, dword [esp + 4]
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov ecx, dword [esp + 0x5c]
mov dword [esp], ecx
mov edx, dword [esp + 0x60]
mov dword [esp + 4], edx
call fcn.00409b20
mov eax, dword [esp + 8]
lea ecx, [0x5f1960]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 4], eax
call fcn.00409b20
mov eax, dword [esp + 8]
lea ecx, [0x5f1960]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
lea eax, [0x62bf2b]
mov dword [esp], eax
mov dword [esp + 4], 0x68
lea eax, [esp + 0x34]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004e18f0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
lea edx, [0x5eab00]
mov dword [esp], edx
call fcn.0040c1e0
mov eax, dword [esp + 4]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x54]
mov dword [esp], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 4], ecx
call fcn.00409b20
mov eax, dword [esp + 8]
lea ecx, [0x5f1960]
mov edx, dword [esp + 0x20]
mov dword [edx], ecx
mov ecx, dword [0x7f8db0]
test ecx, ecx
jne 0x5a8812
mov dword [edx + 4], eax
jmp 0x5a881a
lea edi, [edx + 4]
call fcn.00464380
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 0x1c]
mov ecx, dword [esp + 0x4c]
mov dword [esp], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 1
call eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
lea ecx, [0x5e2080]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x30], ecx
mov dword [esp], eax
lea eax, [esp + 0x2c]
mov dword [esp + 4], eax
mov dword [esp + 8], 1
mov dword [esp + 0xc], 1
call fcn.0056f9a0
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
test eax, eax
setg al
mov byte [esp + 0x64], al
add esp, 0x44
ret
call fcn.00462f70
jmp fcn.005a86f0
Function at 0x401898
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x41244d], 0
push esi
mov esi, ecx
je 0x4018b0
or eax, 0xffffffff
jmp 0x401936
push edi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
jns 0x4018db
cmp edi, 0x80010106
jne 0x401933
push str.Mscoree.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x4018df
jmp 0x401933
mov byte [esi + 0x3e], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.00402000
cmp al, 1
jne 0x401924
push ecx
mov ecx, esi
call fcn.00402572
mov edi, eax
test edi, edi
jne 0x40190a
xor ecx, ecx
call fcn.00401351
test edi, edi
js 0x401927
call fcn.004028e3
cmp byte [esi + 0x3c], 0
mov edi, eax
je 0x401927
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401927
mov edi, dword [ebp - 4]
cmp byte [esi + 0x3e], 0
je 0x401933
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x402572
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov ecx, 0x411160
call fcn.004036a0
mov esi, eax
test esi, esi
js 0x402620
push ebx
jne 0x402619
cmp byte [edi + 0x3c], 0
je 0x402606
xor esi, esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi + 0x30], eax
test eax, eax
je 0x4025ff
lea eax, [ebp - 4]
push eax
push esi
push edi
push 0x40126c
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
jne 0x4025d4
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x4025ff
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x4025f6
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [edi + 0x34]
add ecx, ecx
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40260e
mov esi, 0x80004005
jmp 0x402612
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x40261d
call fcn.004028e3
jmp 0x40261d
mov byte [edi + 0x3c], 0
mov eax, esi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x405b80
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x128
mov eax, dword [0x4110e4]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
mov ebx, ecx
xor eax, eax
mov ecx, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 4]
push esi
or eax, 0x2001f
mov dword [esp + 0x1c], ecx
push eax
push ecx
push dword [ebx]
lea ecx, [esp + 0x18]
call fcn.00405b22
jmp 0x405bd8
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.00405b80
mov esi, eax
test esi, esi
jne 0x405c2c
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x405bca
cmp dword [esp + 0xc], esi
je 0x405c1b
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], esi
push dword [esp + 0x1c]
mov ecx, ebx
mov dword [esp + 0x14], esi
call fcn.00405cf8
mov esi, eax
cmp dword [esp + 0xc], 0
je 0x405c3d
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x12c]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00409ef7
mov esp, ebp
pop ebp
ret 4
Function at 0x406650
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x420
mov eax, 0x40b421
call fcn.0040b01c
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x418], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x420], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x414], ebx
mov byte [ebp - 4], 1
test edi, edi
je 0x406829
mov edx, edi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, bx
jne 0x4066a2
sub edx, ecx
sar edx, 1
inc edx
push ecx
lea ecx, [ebp - 0x41c]
mov dword [ebp - 0x41c], edx
call fcn.0040545e
test eax, eax
js 0x406829
mov esi, dword [ebp - 0x41c]
cmp esi, 0x400
jg 0x4066f0
mov ecx, esi
call fcn.004054be
test al, al
je 0x4066f0
mov eax, esi
call fcn.0040b0df
mov eax, esp
jmp 0x4066fc
push esi
lea ecx, [ebp - 0x420]
call fcn.00405526
push 3
push esi
mov edx, edi
mov ecx, eax
call fcn.00404e75
mov esi, eax
test esi, esi
je 0x406823
push 0x60
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
test edi, edi
jne 0x40673e
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
test edi, edi
jne 0x40673e
call fcn.00404de3
mov esi, eax
jmp 0x406808
push dword [ebp - 0x424]
push dword [ebp - 0x418]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x406761
call fcn.00404de3
jmp 0x4067fb
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x418], eax
test eax, eax
je 0x406757
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea ecx, [esi + 1]
cmp ecx, esi
jae 0x40678b
mov esi, 0x8007000e
jmp 0x4067fd
call fcn.00405565
cmp eax, 0x400
jbe 0x4067a5
push eax
lea ecx, [ebp - 0x414]
call fcn.00404dfa
jmp 0x4067b1
lea eax, [ebp - 0x410]
mov dword [ebp - 0x414], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x414], 0
je 0x406784
mov ecx, dword [ebp - 0x414]
mov edx, esi
push esi
push dword [ebp - 0x418]
call fcn.00404f6c
pop ecx
pop ecx
mov ecx, eax
call fcn.004059f4
mov eax, dword [ebp - 0x414]
lea ecx, [ebp - 0x42c]
push dword [ebp + 0x14]
mov byte [eax + esi], bl
push dword [ebp - 0x414]
call fcn.00406504
mov esi, eax
test edi, edi
je 0x406808
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x410]
cmp dword [ebp - 0x414], eax
je 0x406843
lea ecx, [ebp - 0x414]
call fcn.00404dd1
jmp 0x406843
mov ebx, dword [ebp - 0x414]
lea eax, [ebp - 0x410]
cmp ebx, eax
je 0x40683e
lea ecx, [ebp - 0x414]
call fcn.00404dd1
mov esi, 0x8007000e
lea ecx, [ebp - 0x420]
call fcn.00405444
mov eax, esi
lea esp, [ebp - 0x43c]
call fcn.0040afda
ret 0x10
Function at 0x408d7c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, ecx
push eax
push 0x20019
push 0
push 0x40d238
push SysReAllocString
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x408e13
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push ebx
push dword [ebp - 8]
call edi
test eax, eax
jne 0x408e08
push 4
pop edi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], edi
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push str.InsecureQI
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408e08
cmp dword [ebp - 0xc], edi
jne 0x408e08
mov edi, dword [ebp - 0x10]
cmp edi, 3
ja 0x408e08
cmp dword [ebp - 4], eax
je 0x408e15
push dword [ebp - 4]
call esi
jmp 0x408e15
cmp dword [ebp - 4], 0
je 0x408e13
push dword [ebp - 4]
call esi
xor edi, edi
cmp dword [ebp - 8], 0
je 0x408e20
push dword [ebp - 8]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4090f2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x4124f4], 0
je 0x40910a
mov eax, dword [0x4124f8]
jmp 0x4091d8
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push str.SoftwarePoliciesMicrosoftSecurity
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409158
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push 0x4124f8
push esi
push esi
push str.CLSIDInterfaceTest
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409158
cmp dword [ebp - 8], 4
je 0x4091b1
mov eax, dword [ebp - 4]
mov dword [ebp - 4], esi
test eax, eax
je 0x409169
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push str.SoftwareMicrosoftSecurity
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4091b9
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push 0x4124f8
push esi
push esi
push str.CLSIDInterfaceTest
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4091b9
cmp dword [ebp - 8], 4
jne 0x4091b9
mov esi, dword [0x4124f8]
jmp 0x4091bf
mov dword [0x4124f8], esi
cmp dword [ebp - 4], 0
mov byte [0x4124f4], 1
je 0x4091d5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4110e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea eax, [ebp - 0x20c]
push edi
push 0xffffffffffffffff
push ecx
push 0x104
push eax
mov edi, edx
call esi
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
add eax, 2
lea ecx, [ebp - 4]
push 0xffffffffffffffff
sub ecx, eax
push edi
sar ecx, 1
push ecx
push eax
call esi
add esp, 0x24
lea ecx, [ebp - 0x20c]
call fcn.00409368
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x409434
and dword [0x412528], 0
jmp 0x40943b
call edi
mov dword [0x412528], eax
test esi, esi
je 0x409448
and dword [0x412524], 0
jmp 0x40945f
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [0x412524], eax
cmp eax, 0xffffffff
je 0x409468
and dword [0x412520], 0
jmp 0x40946f
call edi
mov dword [0x412520], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00409ef7
mov esp, ebp
pop ebp
ret
Function at 0x409481
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4110e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0x208
push eax
lea eax, [ebp - 0x20c]
mov esi, ecx
push eax
push 0
push 2
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x409513
mov ecx, dword [ebp - 0x210]
cmp ecx, 4
jb 0x409513
shr ecx, 1
push 0xffffffffffffffff
cmp word [ebp + ecx*2 - 0x210], 0x5c
sete al
lea eax, [eax*2 + str.Microsoft_SharedOffice16_]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
lea ecx, [ebp - 0x20c]
mov edx, esi
call fcn.004093c3
jmp 0x409515
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00409ef7
mov esp, ebp
pop ebp
ret

Function at 0x409544
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4110e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0x208
push eax
lea eax, [ebp - 0x20c]
mov esi, ecx
push eax
push 0
push 2
push esi
push str.SoftwareMicrosoftOffice16.0CommonFilesPaths
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x4095a3
cmp dword [ebp - 0x210], 4
jb 0x4095a3
mov edx, esi
lea ecx, [ebp - 0x20c]
call fcn.004093c3
jmp 0x4095a5
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00409ef7
mov esp, ebp
pop ebp
ret