joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40de70
Capabilities:
Resolve dns

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x10
test edx, edx
je 0x40ded0
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
je 0x40ded0
mov dword [esp + 2], eax
push edx
mov dword [esp + 0xa], eax
mov dword [esp + 0xe], eax
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x40debf
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
test eax, eax
je 0x40ded0
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
add esp, 0x10
ret 4
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
add esp, 0x10
ret 4
xor eax, eax
add esp, 0x10
ret 4
Function at 0x40f690
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x53a6fb
push eax
mov eax, dword [0x584ac8]
mov dword fs:[0], esp
sub esp, 0xe18
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
jne 0x40f8c8
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x622]
mov word [esp + 0x620], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x41a]
mov word [esp + 0x418], bx
rep stosd dword es:[edi], eax
push 0x5432c8
mov dword [0x584ac8], 1
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
stosw word es:[edi], ax
call fcn.004125e0
push eax
lea eax, [esp + 0x420]
push 0x56c2b0
push eax
call fcn.00423d0b
add esp, 0x10
lea ecx, [esp + 0x418]
lea edx, [esp + 0x620]
push ecx
push 0x400
push edx
push 0x583998
push 0x5432f8
push str.AgentConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, ebx
jbe 0x40f78e
cmp word [esp + 0xe1e], bx
jne 0x40f78e
lea eax, [esp + 0x18]
push 0x400
lea ecx, [esp + 0x624]
push eax
push ecx
call fcn.004d3c10
add esp, 0xc
mov dword [esp + 8], eax
jmp 0x40f792
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x40f892
lea ecx, [esp + 0x10]
call fcn.004490b0
push 0x20019
push str.SOFTWAREClassesCLSIDAFFAEF68_CDC5_4aad_9D3F_997C0D55927BProgID
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x1c]
mov dword [esp + 0xe34], ebx
call fcn.00449220
test eax, eax
je 0x40f809
lea edx, [esp + 8]
lea eax, [esp + 0xc]
push edx
push eax
push 0x54338c
lea ecx, [esp + 0x1c]
call fcn.00449570
test eax, eax
je 0x40f809
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x40f809
push esi
mov ecx, 0xff
mov esi, eax
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push eax
movsb byte es:[edi], byte [esi]
call fcn.00520a33
add esp, 4
mov dword [esp + 0x10], ebx
pop esi
lea ecx, [esp + 0x10]
call fcn.00449270
lea ecx, [esp + 0x10]
mov dword [esp + 0xe28], 0xffffffff
call fcn.004491a0
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x40f892
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x620]
push 0x400
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x624]
push ecx
push 0x583998
push 0x54338c
push str.ED30_8AC4_11D5_8930_A730
call dword [sym.imp.KERNEL32.dll_GetProfileStringW]
test eax, eax
jbe 0x40f88a
cmp word [esp + 0xe1e], bx
jne 0x40f88a
lea edx, [esp + 0x18]
push 0x400
lea eax, [esp + 0x624]
push edx
push eax
call fcn.004d3c10
add esp, 0xc
jmp 0x40f88e
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x40f8c8
cmp eax, 4
jbe 0x40f8c8
lea ecx, [esp + 0x18]
test ecx, ecx
je 0x40f8c8
cmp dword [esp + 0x18], 1
je 0x40f8c8
mov edx, dword [esp + 0x34]
and edx, 0xffff
lea ecx, [edx + edx + 0x22]
cmp ecx, ebx
je 0x40f8c8
add eax, 0xfffffffc
cmp ecx, eax
ja 0x40f8c8
mov eax, dword [esp + 0x20]
mov dword [0x584ac4], eax
mov ecx, dword [esp + 0xe20]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0xe24
ret
Function at 0x410dd0
Capabilities:
Create service

Disassembly:
sub esp, 8
push ebx
push ebp
call fcn.0044be00
test eax, eax
je 0x410efc
mov eax, dword [esp + 0x1c]
xor ebx, ebx
cmp eax, ebx
je 0x410ef2
mov ebp, dword [esp + 0x28]
cmp ebp, ebx
je 0x410ef2
push eax
call fcn.00422e21
add esp, 4
test eax, eax
je 0x410ef2
push ebp
call fcn.00422e21
add esp, 4
test eax, eax
je 0x410ef2
push esi
push edi
push 0xa
push ebx
push ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x1c], ebx
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
cmp edi, ebx
je 0x410eaa
push edi
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x410eaa
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x34]
test ebx, ebx
je 0x410e66
push ebx
call fcn.00422e21
add esp, 4
test eax, eax
jbe 0x410e66
lea esi, [esp + 0x14]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x34]
push esi
push ebx
push ebp
push 1
push eax
mov eax, dword [esp + 0x44]
push ecx
push 0xf01ff
push edx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
je 0x410ea8
mov dword [esp + 0x30], 1
xor ebx, ebx
mov eax, dword [esp + 0x30]
mov dword [0x584acc], ebx
cmp eax, ebx
jne 0x410ec3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x584acc], eax
cmp esi, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x410ed0
push esi
call ebx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x410edf
push eax
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
test edi, edi
je 0x410ee6
push edi
call ebx
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov dword [0x584acc], 0x57
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x411486
Capabilities:
Get disk information

Disassembly:
sub esp, 0x208
push esi
mov esi, ecx
call fcn.0044be50
test eax, eax
je 0x4114ef
mov edx, dword [esp + 0x210]
test edx, edx
je 0x4114ef
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
pop edi
jbe 0x4114ef
cmp eax, 0x104
jae 0x4114ef
mov ecx, dword [esp + 0x214]
lea edx, [esp + 4]
push ecx
push edx
mov ecx, esi
call fcn.00411360
pop esi
add esp, 0x208
ret 8
xor eax, eax
pop esi
add esp, 0x208
ret 8
Function at 0x411636
Capabilities:
Get disk information

Disassembly:
sub esp, 0x208
push esi
mov esi, ecx
call fcn.0044be50
test eax, eax
je 0x41169f
mov edx, dword [esp + 0x210]
test edx, edx
je 0x41169f
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
pop edi
jbe 0x41169f
cmp eax, 0x104
jae 0x41169f
mov ecx, dword [esp + 0x214]
lea edx, [esp + 4]
push ecx
push edx
mov ecx, esi
call fcn.00411500
pop esi
add esp, 0x208
ret 8
xor eax, eax
pop esi
add esp, 0x208
ret 8

Function at 0x411806
Capabilities:
Get disk information

Disassembly:
sub esp, 0x208
push esi
mov esi, ecx
call fcn.0044be50
test eax, eax
je 0x411877
mov edx, dword [esp + 0x210]
test edx, edx
je 0x411877
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
pop edi
jbe 0x411877
cmp eax, 0x104
jae 0x411877
mov ecx, dword [esp + 0x218]
mov edx, dword [esp + 0x214]
push ecx
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
call fcn.004116b0
pop esi
add esp, 0x208
ret 0xc
xor eax, eax
pop esi
add esp, 0x208
ret 0xc
Function at 0x413e60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x53ab53
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x54a4b4]
push esi
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
lea edi, [esi + 4]
mov dword [edi], eax
mov dword [esi], 0x543404
mov eax, dword [0x54a4b4]
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov byte [esp + 0x24], 4
test eax, eax
je 0x413ed2
call fcn.00503ed0
push eax
lea ecx, [esp + 0x18]
push str.__lu
push ecx
call fcn.0043ed60
add esp, 0xc
mov eax, dword [esp + 0x34]
test eax, eax
je 0x413ef3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea edx, [esp + 0x14]
push str.__lu
push edx
call fcn.0043ed60
add esp, 0xc
mov eax, dword [esp + 0x38]
test eax, eax
je 0x413f14
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [esp + 0x10]
push str.__lu
push eax
call fcn.0043ed60
add esp, 0xc
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x413f35
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [esp + 0xc]
push 0x56e8d8
push ecx
call fcn.0043ed60
add esp, 0xc
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
push edx
call fcn.0043b640
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x38]
push edx
push eax
push ecx
push str._s_s_s_s_s
push edi
mov byte [esp + 0x40], 5
call fcn.0043ed60
add esp, 0x1c
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 4
call fcn.0043bde0
lea ecx, [esp + 8]
mov byte [esp + 0x24], 3
call fcn.0043bde0
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 2
call fcn.0043bde0
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 1
call fcn.0043bde0
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call fcn.0043bde0
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 0x14
Function at 0x41401d
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x53ab88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x54a4b4]
push esi
mov esi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov byte [esp + 0x1c], 3
cmp eax, 0xffffffff
je 0x414059
push eax
lea eax, [esp + 0x14]
push str.__lu
push eax
call fcn.0043ed60
add esp, 0xc
mov eax, dword [esp + 0x2c]
cmp eax, 0xffffffff
je 0x414075
push eax
lea ecx, [esp + 0x10]
push str.__lu
push ecx
call fcn.0043ed60
add esp, 0xc
mov eax, dword [esp + 0x30]
cmp eax, 0xffffffff
je 0x414091
push eax
lea edx, [esp + 0xc]
push str.__lu
push edx
call fcn.0043ed60
add esp, 0xc
mov eax, dword [esp + 0x34]
cmp eax, 0xffffffff
je 0x4140ad
push eax
lea eax, [esp + 8]
push 0x56e8d8
push eax
call fcn.0043ed60
add esp, 0xc
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0043b640
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
push eax
add esi, 4
push str._s_s_s_s_s
push esi
mov byte [esp + 0x38], 4
call fcn.0043ed60
add esp, 0x1c
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 3
call fcn.0043bde0
lea ecx, [esp + 4]
mov byte [esp + 0x1c], 2
call fcn.0043bde0
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 1
call fcn.0043bde0
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 0
call fcn.0043bde0
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0043bde0
mov ecx, dword [esp + 0x14]
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x14

Function at 0x4141e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x53abe7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x54a4b4]
push esi
mov esi, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 0x18], 1
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov byte [esp + 0x18], 2
test eax, eax
je 0x41422c
push 0x56c754
jmp 0x414231
push 0x56c744
lea ecx, [esp + 8]
call fcn.0043c060
mov eax, dword [esi + 4]
mov ecx, dword [esp + 4]
push eax
push ecx
lea edx, [esp + 0x10]
push 0x56e900
push edx
call fcn.0043ed60
mov esi, dword [esp + 0x30]
add esp, 0x10
lea eax, [esp + 8]
mov ecx, esi
push eax
call fcn.0043b3e0
mov dword [esp + 0xc], 1
lea ecx, [esp + 4]
mov byte [esp + 0x18], 1
call fcn.0043bde0
lea ecx, [esp + 8]
mov byte [esp + 0x18], 0
call fcn.0043bde0
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 8
Function at 0x43a4b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
mov esi, eax
shr eax, 4
and esi, 0xf
inc eax
push edi
mov edi, dword [esp + 0xc]
and eax, 0xffff
push ecx
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x43a4fe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x43a4fe
xor edx, edx
xor ecx, ecx
mov cx, word [eax]
add eax, 2
cmp esi, edx
je 0x43a503
inc edx
lea eax, [eax + ecx*2]
cmp edx, 0x10
jl 0x43a4e9
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
test edi, edi
jne 0x43a513
test esi, esi
jne 0x43a531
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x43a52f
mov byte [eax + esi - 1], 0
jne 0x43a538
mov byte [esi + edi - 1], 0
mov eax, edi
pop edi
dec eax
pop esi
ret

Function at 0x43fc20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x43fc70
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x43fc70
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x43fc75
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x43fc5b
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x43fc82
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret
Function at 0x4492f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x449331
lea edx, [esp + 0x14]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x14]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x449333
mov esi, edi
test esi, esi
je 0x4493a8
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x44939d
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x44939d
cmp dword [esp + 0x1c], eax
jbe 0x44936e
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x44939d
cmp esi, edi
je 0x44938f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
cmp esi, edi
je 0x4493a8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x449500
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
je 0x44955f
mov edi, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
push 0
push ecx
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x44955f
cmp dword [esp + 0xc], 3
jne 0x44955f
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp edx, eax
jb 0x44955f
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push ecx
push 0
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x44955f
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc
Function at 0x449570
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [ecx + 4]
push ebx
mov ebx, dword [ecx]
mov ecx, dword [esp + 0xc]
push ebp
push esi
test ecx, ecx
push edi
je 0x4495a7
lea edx, [esp + 0x10]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x10]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x4495a9
mov esi, ebx
test esi, esi
je 0x449632
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push 0
push ecx
push 0
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x449627
cmp dword [esp + 0x1c], 3
jne 0x449627
mov edx, dword [esp + 0x18]
push edx
call fcn.00520a0a
mov edi, eax
add esp, 4
test edi, edi
je 0x449627
lea eax, [esp + 0x18]
push eax
push edi
push 0
push 0
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x44961e
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
cmp esi, ebx
mov dword [ecx], edx
je 0x449614
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
push edi
call fcn.00520a33
add esp, 4
cmp esi, ebx
je 0x449632
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0xc
Function at 0x4496c0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x53d3af
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x54a4b4]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], 1
test ecx, ecx
mov dword [esp + 0x14], edi
je 0x44972b
lea edx, [esp + 0x18]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x44972d
mov esi, edi
test esi, esi
je 0x4497f7
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4497ec
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x44976f
cmp eax, 2
je 0x44976f
cmp eax, 6
je 0x44976f
cmp eax, 7
jne 0x4497ec
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.00520a0a
mov ebp, eax
mov eax, dword [esp + 0x38]
mov edi, ebp
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
push ebp
push 0
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebp
jne 0x4497d2
lea ecx, [esp + 0x14]
call fcn.0043c060
cmp esi, dword [esp + 0x14]
je 0x4497c7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.00520a33
add esp, 4
jmp 0x449809
call fcn.00520a33
add esp, 4
lea ecx, [esp + 0x10]
push 0x583998
call fcn.0043c060
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x4497f7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x449809
push eax
lea ecx, [esp + 0x14]
call fcn.0043c060
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.0043b3e0
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.0043bde0
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x449950
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
je 0x449987
mov edx, dword [ebp + 0x14]
lea ecx, [ebp + 0xc]
or edx, 0x20019
push ecx
push edx
push 0
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x44998a
mov esi, dword [ebp + 8]
test esi, esi
je 0x449b45
call fcn.0044be00
test eax, eax
je 0x449a35
mov eax, dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp + 0x14]
push 0
push edx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x449b39
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x4499d9
cmp eax, 2
je 0x4499d9
cmp eax, 6
je 0x4499d9
cmp eax, 7
jne 0x449b39
mov ecx, dword [ebp + 0xc]
add ecx, 2
push ecx
call fcn.00520a0a
mov edx, dword [ebp + 0xc]
mov ebx, eax
xor eax, eax
mov edi, ebx
lea ecx, [edx + 2]
add esp, 4
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebx
jne 0x449b24
mov ecx, dword [ebp + 0x18]
call fcn.0043c060
cmp esi, dword [ebp + 8]
je 0x449b0e
jmp 0x449b07
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x449a77
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.00423a50
mov edi, esp
test edi, edi
je 0x449a77
mov edx, dword [ebp + 0x10]
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push edx
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp + 0x10], edi
jmp 0x449a7e
mov dword [ebp + 0x10], 0
mov edx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 0x14]
push 0
push ecx
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x449b39
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x449ab8
cmp eax, 2
je 0x449ab8
cmp eax, 6
je 0x449ab8
cmp eax, 7
jne 0x449b39
mov eax, dword [ebp + 0xc]
add eax, 2
push eax
call fcn.00520a0a
mov ecx, dword [ebp + 0xc]
mov ebx, eax
add ecx, 2
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebx
jne 0x449b24
mov ecx, dword [ebp + 0x18]
call fcn.0043c140
cmp esi, dword [ebp + 8]
je 0x449b0e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.00520a33
add esp, 4
mov eax, 1
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.00520a33
mov ecx, dword [ebp + 0x18]
add esp, 4
push 0x583998
call fcn.0043c060
cmp esi, dword [ebp + 8]
je 0x449b45
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esp, [ebp - 0xc]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret