joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401dd0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x400
mov edx, ecx
mov ecx, 0x100
xor eax, eax
push ebx
push ebp
push esi
mov ebp, dword [esp + 0x410]
push edi
lea edi, [esp + 0x10]
lea ebx, [edx + 0xa8]
rep stosd dword es:[edi], eax
push ebx
lea eax, [esp + 0x14]
push 0x400
push eax
push 0x44a580
push str.subalertid
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [esp + 0x418]
lea edi, [esp + 0x10]
xor eax, eax
push ebx
lea edx, [ecx + 4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x400
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x100
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
push ecx
push 0x44a580
push str.content
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edx, dword [esp + 0x418]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
add edx, 0x204
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x400
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x100
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
push ecx
push 0x44a580
push str.conditiontype
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edx, dword [esp + 0x418]
or ecx, 0xffffffff
add edx, 0x404
lea edi, [esp + 0x10]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x400
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x100
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
push ecx
push 0x44a580
push str.conditioncontent
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edx, dword [esp + 0x418]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
add edx, 0x604
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x400
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x100
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
push ecx
push 0x44a580
push str.conditionptl
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edx, dword [esp + 0x418]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
add edx, 0x808
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x400
ret 8
Function at 0x402e40
Capabilities:
Acquire debug privileges
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437760
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], esi
mov byte [ebp - 0x11], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x20]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x402e8b
mov byte [ebp - 0x11], al
jmp 0x402ec6
lea edx, [ebp - 0x30]
mov dword [ebp - 0x34], 1
push edx
push str.SeDebugPrivilege
push esi
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x402ec6
mov ecx, dword [ebp - 0x20]
push esi
push esi
lea eax, [ebp - 0x34]
push 0x10
push eax
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
push 0x128
mov dword [ebp - 0x24], esi
call fcn.0042ab4f
add esp, 4
mov ebx, eax
push ebx
push esi
mov dword [ebx], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x402f56
mov edx, dword [edi + 4]
mov eax, dword [edi + 8]
mov dword [ebp - 0x1c], edx
cmp edx, eax
je 0x402f48
mov eax, dword [edx + 8]
mov ecx, dword [ebx + 8]
cmp eax, ecx
jne 0x402f40
lea edi, [ebx + 0x24]
or ecx, 0xffffffff
xor eax, eax
add edx, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 8]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.00402db0
mov edi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
add edx, 0x258
jmp 0x402ef6
mov esi, dword [ebp - 0x24]
push ebx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402ef3
push ebx
call fcn.0042ab78
add esp, 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov al, byte [ebp - 0x11]
test al, al
je 0x402f80
mov edx, dword [ebp - 0x20]
push edx
call esi
jmp 0x402f80
mov esi, dword [edi + 4]
mov eax, dword [edi + 8]
cmp esi, eax
je 0x402f9f
push esi
mov ecx, edi
call fcn.0040a730
mov eax, dword [edi + 8]
add esi, 0x258
cmp esi, eax
jne 0x402f8a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402fc0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov edi, 0x94
push eax
mov dword [esp + 0xc], edi
call esi
test eax, eax
jne 0x403009
lea ecx, [esp + 8]
mov dword [esp + 8], edi
push ecx
call esi
test eax, eax
jne 0x403009
pop edi
xor al, al
pop esi
add esp, 0x94
ret
mov eax, dword [esp + 0x18]
sub eax, 2
jne 0x40303d
mov eax, dword [esp + 0xc]
cmp eax, 4
jbe 0x40303d
cmp eax, 5
jne 0x40303d
mov eax, dword [esp + 0x10]
cmp eax, 2
je 0x40303d
cmp eax, 1
je 0x40303d
test eax, eax
jne 0x40303d
pop edi
xor al, al
pop esi
add esp, 0x94
ret
pop edi
mov al, 1
pop esi
add esp, 0x94
ret

Function at 0x403250
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x224
push ebx
push esi
push edi
xor esi, esi
mov ecx, 0x88
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0xc], esi
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x234]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x403290
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x224
ret 0x10
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x224
push ecx
push ebx
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x4032ea
mov edi, dword [esp + 0x238]
cmp dword [esp + 0x10], edi
je 0x4032c5
lea edx, [esp + 0xc]
push edx
push ebx
call sub.KERNEL32.dll_Module32Next
test eax, eax
je 0x4032ea
jmp 0x4032ae
mov ecx, dword [esp + 0x240]
mov edi, dword [esp + 0x23c]
mov eax, ecx
lea esi, [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x224
ret 0x10

Function at 0x403300
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x350
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebp
push esi
mov esi, dword [esp + 0x368]
mov dword [esp + 0xc], ecx
push edi
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x18]
push 0x447474
push esi
rep stosd dword es:[edi], eax
mov dword [esp + 0x1c], 0x128
call ebx
mov ebp, dword [esp + 0x364]
lea eax, [esp + 0x14]
push eax
push ebp
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4033e0
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x368]
cmp edx, edi
je 0x403378
lea ecx, [esp + 0x14]
push ecx
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x4033e0
mov edx, dword [esp + 0x1c]
cmp edx, edi
jne 0x403361
mov ecx, 0x88
xor eax, eax
lea edi, [esp + 0x140]
mov dword [esp + 0x13c], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x13c]
push 0x224
push eax
push 1
push edx
call fcn.00403250
lea ecx, [esp + 0x25c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x4033d8
lea edx, [esp + 0x25c]
push edx
push esi
call ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret 0xc
lea eax, [esp + 0x38]
push eax
push esi
call ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret 0xc
Function at 0x4033f0
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x20
push esi
lea eax, [esp + 4]
push 0x447478
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov esi, dword [esp + 0x28]
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 8]
push 4
push esi
mov dword [esp + 0x18], 0x18
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0x40
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.ntdll.dll_ZwOpenSection]
test eax, eax
jge 0x403453
xor eax, eax
pop esi
add esp, 0x20
ret 8
mov eax, dword [esp + 0x2c]
push 0x1000
cmp eax, 1
jne 0x40346f
mov eax, dword [esi]
push 0x39000
push 0
push 4
push eax
jmp 0x40347b
mov ecx, dword [esi]
push 0x30000
push 0
push 4
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
not eax
and eax, esi
pop esi
add esp, 0x20
ret 8

Function at 0x403520
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4377a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], esp
push 0x4000
mov esi, 0x1000
call fcn.0042ab4f
mov ebx, dword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
add esp, 4
mov edi, eax
lea eax, [esi*4]
push 0
push eax
push edi
push 0x10
call ebx
cmp eax, 0xc0000004
jne 0x403592
push edi
call fcn.0042ab78
add esi, esi
lea ecx, [esi*4]
push ecx
call fcn.0042ab4f
add esp, 8
mov edi, eax
jmp 0x403560
test eax, eax
jge 0x4035b2
push edi
call fcn.0042ab78
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4035e0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
push ebx
xor ecx, ecx
push esi
mov edx, dword [eax]
add eax, 4
test edx, edx
push edi
jle 0x403610
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
cmp dword [eax], esi
jne 0x403608
xor ebx, ebx
mov bx, word [eax + 6]
cmp ebx, edi
je 0x403612
add eax, 0x10
inc ecx
cmp ecx, edx
jl 0x4035fa
xor eax, eax
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x403620
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4377b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, esi
push edi
shr eax, 0x16
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov eax, dword [ecx + eax*4]
mov ecx, eax
and ecx, 0xff
cmp ecx, 1
jae 0x403676
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp ecx, 0x80
jae 0x4036ed
mov edx, dword [ebp + 0x10]
and eax, 0xfffff000
push 0x1000
push eax
push 0
push 4
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x4036d0
push str.End_GetPte2_but_pNewMapPhy__NULL
call fcn.00402340
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, esi
push eax
shr ecx, 0xc
and ecx, 0x3ff
mov edi, dword [eax + ecx*4]
and edi, 0xfffff000
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x4036fc
mov edi, esi
and eax, 0xfffff000
and edi, 0x3ff000
add edi, eax
mov edx, dword [ebp + 0x10]
push 0x1000
push edi
push 0
push 4
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x40372f
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [ebp + 0x14]
and esi, 0xfff
add esi, eax
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4050f0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push esi
push edi
mov ecx, 0x4a
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40517e
lea ecx, [esp + 0x2c]
push str.explorer.exe
push ecx
call fcn.00420a10
add esp, 8
test eax, eax
je 0x405163
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40517e
lea eax, [esp + 0x2c]
push str.explorer.exe
push eax
call fcn.00420a10
add esp, 8
test eax, eax
jne 0x40513e
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
pop edi
pop esi
add esp, 0x128
ret
mov eax, edi
pop edi
pop esi
add esp, 0x128
ret

Function at 0x4052c0
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x41
xor eax, eax
mov edi, ebx
mov byte [ebx + 0x104], 0
push 0x104
push ebx
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x447834
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.pfnt.ini
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
ret
Function at 0x4056e0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x437808
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x400
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x10]
push esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push 0x400
push eax
push 0x44a580
push str.start
push 0
lea ecx, [esp + 0x438]
mov dword [esp + 0x430], 0
call fcn.0042b156
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
call ebp
lea ecx, [esp + 0x10]
push ecx
call fcn.0042982d
lea edx, [esp + 0x14]
push str.true
push edx
call fcn.00420a10
mov ebx, dword [esp + 0x430]
add esp, 0xc
test eax, eax
jne 0x405778
mov byte [ebx], 1
mov byte [esi + 0x104], 1
jmp 0x40577b
mov byte [ebx], 0
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x10]
push esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push 0x400
push eax
push 0x4478c8
push str.collectiontime
push 0
lea ecx, [esp + 0x438]
call fcn.0042b156
push eax
call ebp
lea ecx, [esp + 0x10]
push ecx
call fcn.00418509
add esp, 4
mov dword [ebx + 8], eax
lea edx, [esp + 0x10]
mov ecx, 0x100
push esi
xor eax, eax
lea edi, [esp + 0x14]
push 0x400
push edx
push 0x44a580
rep stosd dword es:[edi], eax
push str.filename
push eax
lea ecx, [esp + 0x438]
call fcn.0042b156
push eax
call ebp
lea eax, [esp + 0x10]
lea ecx, [ebx + 4]
push eax
call fcn.0042af97
lea ecx, [esp + 0x420]
mov dword [esp + 0x418], 0xffffffff
call fcn.0042ae0e
mov ecx, dword [esp + 0x410]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x40c
ret 8
Function at 0x407600
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x437cb1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0xa
mov dword [esp + 8], esi
lea ecx, [esi + 0x10]
call fcn.0042a4c9
xor eax, eax
mov ecx, 0x43a71c
mov dword [esp + 0x10], eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], 0xa
mov dword [esi + 0x48], ecx
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], 0xa
mov dword [esi + 8], eax
mov ecx, esi
mov byte [esp + 0x10], 2
mov dword [esi], 0x43a718
mov dword [esi + 0xc], eax
mov dword [esi + 0x64], 0xffffffff
mov dword [esi + 0x68], 0x184
call fcn.00407810
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x407d10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x80c
mov ecx, 0x100
xor eax, eax
lea edx, [esp + 0xc]
push esi
push edi
lea edi, [esp + 0x414]
rep stosd dword es:[edi], eax
mov edi, str.SOFTWAREcomp_tool_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 8]
push ecx
push 1
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
pop esi
test eax, eax
jne 0x407dba
lea eax, [esp + 8]
lea ecx, [esp + 0x40c]
push eax
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push ecx
push edx
push 0
push str.debug
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], 0x3ff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407dba
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0x80c
ret
xor eax, eax
add esp, 0x80c
ret
Function at 0x408a50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x11c
mov eax, dword [esp + 0x128]
mov ecx, dword [esp + 0x124]
push ebx
push ebp
push esi
push edi
mov edi, 0xa000
mov dword [eax], 0
push edi
mov dword [ecx], 0
call fcn.0042ab4f
add esp, 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x10]
mov ebp, eax
push edx
lea eax, [esp + 0x2c]
push ebp
push eax
push 0
push 0x447a5c
push reloc.OLEAUT32.dll_SysReAllocStringLen
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], edi
call esi
test eax, eax
je 0x408afc
cmp eax, 0xea
jne 0x408c26
mov ebx, dword [esp + 0x10]
push ebp
add ebx, edi
mov dword [esp + 0x14], ebx
call fcn.0042ab78
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0042ab4f
add esp, 8
lea edx, [esp + 0x10]
mov dword [esp + 0x14], eax
push edx
push eax
lea eax, [esp + 0x30]
push eax
push 0
push 0x447a5c
push reloc.OLEAUT32.dll_SysReAllocStringLen
call esi
mov ebp, dword [esp + 0x14]
test eax, eax
jne 0x408aaf
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x1c]
add ebx, ebp
mov dword [esp + 0x20], 0
test eax, eax
jle 0x408c26
cmp dword [ebx + 0xc], 0x1fe
jne 0x408c12
mov esi, dword [ebx + 0x20]
or eax, 0xffffffff
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 8]
xor cl, cl
add eax, ebx
xor edi, edi
test esi, esi
jle 0x408c26
mov edx, dword [eax + 4]
cmp edx, 0x108
jne 0x408b57
mov edx, dword [eax + 0x24]
or cl, 1
mov dword [esp + 0x1c], edx
jmp 0x408b69
cmp edx, 0x1fa
jne 0x408b69
mov edx, dword [eax + 0x24]
or cl, 2
mov dword [esp + 0x18], edx
cmp cl, 3
je 0x408b77
mov edx, dword [eax]
add eax, edx
inc edi
cmp edi, esi
jl 0x408b40
cmp dword [esp + 0x1c], 0xffffffff
je 0x408c26
cmp dword [esp + 0x18], 0xffffffff
je 0x408c26
mov esi, dword [ebx + 4]
mov eax, dword [ebx + 0x28]
add esi, ebx
mov dword [esp + 0x24], 0
test eax, eax
jle 0x408c12
mov ecx, dword [esi]
mov eax, dword [esi + 0x10]
mov ebp, esi
push 0
add ebp, ecx
push 0
lea ecx, [esp + 0x34]
push 0xff
add eax, esi
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov byte [esp + eax + 0x2c], 0
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x408bfe
mov eax, dword [esp + 0x130]
lea edx, [esp + 0x2c]
push edx
push eax
call fcn.00420a10
add esp, 8
test eax, eax
je 0x408c3f
mov eax, dword [esi]
mov ecx, dword [eax + esi]
add ecx, eax
add esi, ecx
mov eax, dword [esp + 0x24]
mov ecx, dword [ebx + 0x28]
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x408ba1
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x408b14
push ebp
call fcn.0042ab78
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret 0xc
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x134]
mov eax, dword [edx + ebp]
mov edx, dword [esp + 0x18]
mov dword [ecx], eax
mov ecx, dword [esp + 0x138]
mov eax, dword [edx + ebp]
mov edx, dword [esp + 0x14]
push edx
mov dword [ecx], eax
call fcn.0042ab78
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret 0xc
Function at 0x408db0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x10]
dec eax
je 0x408e2d
dec eax
je 0x408ddc
xor eax, eax
add esp, 0x94
ret
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x408e1b
mov eax, dword [esp + 8]
test eax, eax
jne 0x408df9
mov eax, 2
add esp, 0x94
ret
cmp eax, 1
jne 0x408e0a
mov eax, 3
add esp, 0x94
ret
cmp eax, 2
jne 0x408e2d
mov eax, 4
add esp, 0x94
ret
cmp eax, 6
jne 0x408e2d
mov eax, dword [esp + 8]
test eax, eax
mov eax, 5
je 0x408e32
mov eax, 1
add esp, 0x94
ret