joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bc80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x40e6ac
cmp dword [edi], 0
jne 0x40bcfc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x40e6a8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x40d27c
mov ecx, 2
call fcn.00402608
mov edx, 0x40bc58
lea eax, [esi + 5]
call fcn.0040bc78
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0040bc78
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x40bcd1
mov dword [0x40e6a8], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4500e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 0x4c], 0x266
mov dword [ebp - 0x50], 0x3b5
mov dword [ebp - 0x20], 0x23
mov dword [ebp - 0x54], 0x1e3
mov dword [ebp - 0x58], 0x39a
mov dword [ebp - 0x14], 0x30
mov dword [ebp - 0x5c], 0x122
mov dword [ebp - 0x60], 0xd8
mov dword [ebp - 0xc], 0x201
mov dword [ebp - 0x10], 0x30b
mov dword [ebp - 0x64], 0x14c
mov dword [ebp - 0x48], 0x60
mov dword [ebp - 0x18], 0x1b8
mov dword [ebp - 0x24], 0xe3
mov dword [ebp - 4], 0x3b2
mov dword [ebp - 0x34], 0x24
mov dword [ebp - 0x30], 0x2cc
mov dword [ebp - 0x68], 0x180
mov dword [ebp - 0x1c], 0x20d
mov dword [ebp - 8], 0x16e
mov dword [ebp - 0x38], 0xa5
mov dword [ebp - 0x2c], 0x3bf
mov dword [ebp - 0x28], 0x3de
mov dword [ebp - 0x3c], 0x384
mov eax, dword [ebp - 4]
sub eax, 0x394
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x1c]
sub ecx, 3
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00408b60
add esp, 8
mov ecx, dword [ebp - 0x2c]
sub ecx, 0x32b
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x10]
sub edx, 0xd3
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x28]
sub eax, 0x3b6
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 8]
sub ecx, 0x9a
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x24]
sub edx, 0xbf
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 8]
add eax, 0x146
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0040a830
add esp, 0x18
mov ecx, dword [ebp - 0x20]
add ecx, 0x154
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0xc]
sub edx, 0x16
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
sub eax, 0xc5
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x34]
add ecx, 0x1ef
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x14]
add edx, 0x325
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
sub eax, 0x33e
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x30]
sub ecx, 0x5a
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x18]
sub edx, 0x93
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00403f60
add esp, 0x20
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40536b
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x4053a6
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x40538d
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x40539e
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x4053a8
inc edi
add eax, 0x28
cmp edi, esi
jb 0x405383
xor eax, eax
pop edi
pop esi
ret

Function at 0x4074ea
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sbb byte [edx + eax - 0x6a], dh
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.0040532b
invalid

Function at 0x407580
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
push edx
je 0x4075ab
and eax, 0xfffffffe
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
push ebx
mov ebx, dword [ebp - 4]
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edx, 0
cmp eax, 0xffffffff
push ecx
cmove eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, dword [ebp - 4]
sub esp, 0x1c
leave
ret 0xc

Function at 0x40760e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, 0x65
push ebx
sub esp, 0x3c
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x1c]
jmp 0x40766c
mov dword [ebp - 0x1c], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x1a
xor edx, edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [ebp - 0x2c], eax
div ecx
mov dword [ebp - 0x30], edx
mov cl, byte [ebp - 0x30]
add ecx, 0x61
mov byte [ebp - 0x1a], cl
mov ecx, dword [ebp + 0xc]
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
sub esp, 0x10
test eax, eax
jne 0x407674
dec esi
jne 0x407624
mov byte [ebx], 0
xor ebx, ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x4015d0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x18]
push esi
test eax, eax
push edi
mov dword [esp + 8], 0
mov esi, 0x2001f
mov dword [esp + 0xc], 0
je 0x4015f7
mov esi, 0x2011f
mov edi, dword [esp + 0x14]
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push esi
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x401636
lea edx, [esp + 8]
push edx
push esi
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401670
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x40164d
push esi
call fcn.00412df8
add esp, 4
lea eax, [eax + eax + 2]
jmp 0x40164f
xor eax, eax
mov ecx, dword [esp + 8]
push eax
mov eax, dword [esp + 0x1c]
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 8
ret 0x10

Function at 0x401680
Capabilities:
Set registry value

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x18]
push esi
test eax, eax
push edi
mov dword [esp + 8], 0
mov esi, 0x2001f
mov dword [esp + 0xc], 0
je 0x4016a7
mov esi, 0x2011f
mov edi, dword [esp + 0x14]
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push esi
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4016e6
lea edx, [esp + 8]
push edx
push esi
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40170c
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 8]
lea eax, [esp + 0x1c]
push 4
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 8
ret 0x10

Function at 0x401720
Capabilities:
Set registry value

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x1c]
push esi
test eax, eax
push edi
mov dword [esp + 8], 0
mov esi, 0x2001f
mov dword [esp + 0xc], 0
je 0x401747
mov esi, 0x2011f
mov edi, dword [esp + 0x14]
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push esi
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x401786
lea edx, [esp + 8]
push edx
push esi
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4017ac
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 8]
lea eax, [esp + 0x1c]
push 8
push eax
push 3
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 8
ret 0x14
Function at 0x4017c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 8]
push eax
xor esi, esi
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x4017fd
lea ecx, [esp + 8]
push ecx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40187d
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edx
lea eax, [esp + 0x14]
push 0
push eax
push 0
push edi
push ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
call ebx
mov eax, dword [esp + 0x18]
cmp eax, 2
jb 0x401867
add eax, 2
mov dword [esp + 0x18], eax
shr eax, 1
lea edx, [eax + eax]
push edx
call fcn.0046fd77
mov esi, eax
add esp, 4
test esi, esi
je 0x401867
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
push 0
push edi
push edx
call ebx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, esi
pop edi
pop esi
add esp, 8
ret 8
mov eax, esi
pop edi
pop esi
add esp, 8
ret 8

Function at 0x401890
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 4]
mov dword [esp + 8], 0
push eax
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x4018d2
lea ecx, [esp + 4]
push ecx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40190e
lea edx, [esp + 0x14]
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
pop esi
add esp, 0xc
ret 8

Function at 0x401920
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
lea eax, [esp + 4]
mov dword [esp + 0xc], 0
push eax
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x40196a
lea ecx, [esp + 4]
push ecx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4019a6
lea edx, [esp + 0x18]
lea eax, [esp + 0xc]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
fld qword [esp + 0xc]
pop esi
add esp, 0x10
ret 8
Function at 0x401a00
Capabilities:
Copy file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x489038
push eax
mov eax, dword [0x4a7500]
mov dword fs:[0], esp
sub esp, 8
test eax, eax
je 0x401a3a
push str.CopyFile_1_______
push str.cmdtest
push 0xf
push 0x4a7494
call fcn.004061d0
add esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x2c]
push edi
mov ecx, esi
call fcn.004701c5
push str._NEW.txt
push str..txt
mov ecx, esi
call fcn.0046d076
mov ebp, dword [esp + 0x28]
lea ecx, [esp + 0x14]
push ebp
call fcn.004700fc
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0
call fcn.004700fc
lea eax, [esp + 0x14]
push 0x49f234
lea ecx, [esp + 0x34]
mov bl, 1
push eax
push ecx
mov byte [esp + 0x2c], bl
call fcn.004702d1
push edi
lea edx, [esp + 0x30]
push eax
push edx
mov byte [esp + 0x2c], 2
call fcn.004702d1
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 3
call fcn.00470175
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 2
call fcn.0047003c
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], bl
call fcn.0047003c
lea eax, [esp + 0x10]
push 0x49f234
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.004702d1
push esi
lea edx, [esp + 0x30]
push eax
push edx
mov byte [esp + 0x2c], 4
call fcn.0047026b
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 5
call fcn.00470175
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 4
call fcn.0047003c
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], bl
call fcn.0047003c
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, eax
mov eax, dword [0x4a7500]
test eax, eax
je 0x401b7e
mov esi, dword [esi]
lea ecx, [esp + 0x2c]
push esi
call fcn.004297e0
mov eax, dword [eax]
push edi
push eax
push str.CopyFile_1______s___d_
push str.cmdtest
push 0xf
push 0x4a7494
mov byte [esp + 0x38], 6
call fcn.004061d0
add esp, 0x18
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], bl
call fcn.0042a160
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0
call fcn.0047003c
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
call fcn.0047003c
mov ecx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x428650
Capabilities:
Extract resource via kernel32 functions
Print debug messages

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, eax
push esi
mov esi, dword [esp + 0x10]
and ebp, 0xf
shr eax, 4
inc eax
push edi
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x4286a9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4286a9
xor edi, edi
xor ebx, ebx
mov bx, word [esi]
add esi, 2
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp ebp, edi
je 0x4286b0
inc edi
lea esi, [esi + ebx*2]
cmp edi, 0x10
jl 0x42868d
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov edx, ecx
xor eax, eax
mov edi, ebp
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec eax
push eax
push ebp
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4286ab
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
pop edi
dec ecx
pop esi
pop ebp
mov eax, ecx
pop ebx
ret

Function at 0x42e180
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_FindResourceExA]
test eax, eax
je 0x42e1d0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x42e1d0
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x42e1d5
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x42e1bb
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x42e1e2
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 0x438ec0
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 0x438f01
lea edx, [esp + 0x14]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x14]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x438f03
mov esi, edi
test esi, esi
je 0x438f78
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
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 0x438f6d
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x438f6d
cmp dword [esp + 0x1c], eax
jbe 0x438f3e
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 0x438f6d
cmp esi, edi
je 0x438f5f
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 0x438f78
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 0x438f90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
mov dword [esp + 0xc], 0
je 0x438ff5
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push 0
push ecx
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x438ff5
mov ecx, dword [esp + 0x10]
mov eax, 4
cmp ecx, eax
jne 0x438ff5
cmp dword [esp + 0x18], eax
jbe 0x438fdb
mov dword [esp + 0x18], eax
lea edx, [esp + 0x18]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0
push edi
push esi
call ebx
test eax, eax
mov eax, dword [esp + 0xc]
je 0x438ff9
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
add esp, 8
ret 8
Function at 0x439290
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x48b7af
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x4a0748]
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 0x4392fb
lea edx, [esp + 0x18]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x4392fd
mov esi, edi
test esi, esi
je 0x4393c7
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_RegQueryValueExA]
test eax, eax
jne 0x4393bc
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x43933f
cmp eax, 2
je 0x43933f
cmp eax, 6
je 0x43933f
cmp eax, 7
jne 0x4393bc
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.0046fd77
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_RegQueryValueExA]
test eax, eax
push ebp
jne 0x4393a2
lea ecx, [esp + 0x14]
call fcn.004701c5
cmp esi, dword [esp + 0x14]
je 0x439397
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.0046fda0
add esp, 4
jmp 0x4393d9
call fcn.0046fda0
add esp, 4
lea ecx, [esp + 0x10]
push 0x48de48
call fcn.004701c5
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x4393c7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4393d9
push eax
lea ecx, [esp + 0x14]
call fcn.004701c5
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.0046fdb1
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.0047003c
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 0x439520
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 0x439557
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_RegOpenKeyExA]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x43955a
mov esi, dword [ebp + 8]
test esi, esi
je 0x43970b
call fcn.00451e20
test eax, eax
je 0x439644
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x43957b
mov dword [ebp + 0x10], eax
jmp 0x4395ae
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
lea eax, [edi + edi]
add eax, 3
and al, 0xfc
call fcn.00414550
mov ecx, dword [ebp + 0x10]
mov ebx, esp
push edi
push ebx
push 0xffffffffffffffff
push ecx
push 0
push 0
mov word [ebx], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp + 0x10], ebx
mov ecx, dword [ebp + 0x10]
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 0x14]
push 0
push eax
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4396ff
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x4395e8
cmp eax, 2
je 0x4395e8
cmp eax, 6
je 0x4395e8
cmp eax, 7
jne 0x4396ff
mov edx, dword [ebp + 0xc]
add edx, 2
push edx
call fcn.0046fd77
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov edi, ebx
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
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 0x4396ea
mov ecx, dword [ebp + 0x18]
call fcn.0042a440
cmp esi, dword [ebp + 8]
je 0x4396d4
jmp 0x4396cd
mov ecx, dword [ebp + 0x10]
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 0x14]
push 0
push eax
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4396ff
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x43967e
cmp eax, 2
je 0x43967e
cmp eax, 6
je 0x43967e
cmp eax, 7
jne 0x4396ff
mov edx, dword [ebp + 0xc]
add edx, 2
push edx
call fcn.0046fd77
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov edi, ebx
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
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 0x4396ea
mov ecx, dword [ebp + 0x18]
call fcn.0042a510
cmp esi, dword [ebp + 8]
je 0x4396d4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.0046fda0
add esp, 4
mov eax, 1
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.0046fda0
mov ecx, dword [ebp + 0x18]
add esp, 4
push 0x48de48
call fcn.0042a510
cmp esi, dword [ebp + 8]
je 0x43970b
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