joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4071b0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417028
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x424d78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], edi
cmp dword [ebx], edi
jne 0x4071ee
xor esi, esi
jmp 0x4071f1
lea esi, [ebx + 4]
cmp esi, edi
je 0x407273
test esi, esi
je 0x407228
sub esi, ebx
sub esi, 3
lea eax, [esi - 1]
cmp eax, 0x1f3
ja 0x407228
mov ecx, dword [ebx]
cmp esi, ecx
jae 0x407214
lea esi, [esi + ebx + 4]
jmp 0x407216
xor esi, esi
cmp eax, ecx
jae 0x40722a
cmp eax, 0xffffffff
je 0x40722a
mov edi, dword [ebx + eax*4 + 0x1f8]
jmp 0x40722c
xor esi, esi
xor edi, edi
push 0x31
lea ecx, [ebp - 0x18]
call fcn.00406680
mov edx, dword [ebp - 0x18]
mov eax, str.SystemCurrentControlSetControlMediaCategories_
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x407240
mov eax, dword [edi + 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.00406e20
mov edi, dword [ebp - 0x18]
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x40726f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x4071f9
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x407290
mov eax, dword [ebp - 0x14]
push eax
call fcn.0040d3de
push edi
call fcn.0040d3de
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x407ef0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x424d78]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x418]
push eax
push 0x20119
push 0
push 0x41db68
mov esi, 1
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x420], esi
mov dword [ebp - 0x41c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407faf
lea ecx, [ebp - 0x41c]
push ecx
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x420]
push eax
push 0
push str.Locale
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407fa2
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x414]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x407f97
test ax, ax
je 0x407f93
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x407f97
add ecx, 4
add edx, 4
test ax, ax
jne 0x407f71
xor eax, eax
jmp 0x407f9c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x407fa2
xor esi, esi
mov edx, dword [ebp - 0x418]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040d7c0
mov esp, ebp
pop ebp
ret 4
Function at 0x4089a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
lea eax, [ebp - 4]
push eax
push 0x20106
xor edi, edi
push edi
push 0x41db68
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408a04
mov eax, dword [ebp + 8]
push esi
test eax, eax
jne 0x408a0d
xor esi, esi
push esi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov ecx, dword [ebp - 4]
push eax
push esi
push 1
push 0
push str.Locale
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4089f2
lea edi, [eax + 1]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 4
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
jne 0x4089cf
push 0x8007000e
call fcn.00401270
int3
Function at 0x408cc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x408cdb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x408d12
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x408d0e
jmp 0x408d00
cmp esi, eax
jae 0x408d12
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x408d00
cmp esi, eax
jb 0x408d19
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x408ee0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x424d78]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x408f26
lea eax, [ebp - 0x230]
push eax
push edi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x408f37
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d7c0
mov esp, ebp
pop ebp
ret
push esi
jmp 0x408f40
lea ecx, [ebp - 0x20c]
push 0x41df24
push ecx
call fcn.0040ea2b
add esp, 8
test eax, eax
je 0x408f6b
lea edx, [ebp - 0x230]
push edx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x408f40
jmp 0x408fa2
mov eax, dword [ebp - 0x228]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x408f92
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d7c0
mov esp, ebp
pop ebp
ret
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 1
pop edi
call fcn.0040d7c0
mov esp, ebp
pop ebp
ret
Function at 0x408fc0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push eax
push 0x20119
push 0
push str.SoftwareConexant
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40905c
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push eax
push eax
mov eax, dword [ebp - 8]
push str.CallApps
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409013
inc dword [ebp - 4]
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push 0x20106
push 0
push 0
push 0
push str.SoftwareConexant
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x409052
push 4
lea edx, [ebp - 4]
push edx
push 4
push eax
mov eax, dword [ebp - 8]
push str.CallApps
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x40ad30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4173a0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x424d78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 0xc]
mov eax, 0x80004004
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
test ebx, ebx
je 0x40ae4d
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x40ae4d
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x40ae4d
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x40ae4d
push esi
push edi
xor eax, eax
push ebx
push 0x4249b0
mov word [ecx], ax
call fcn.0040a830
add esp, 0x10
cmp eax, 1
je 0x40adc5
push esi
push edi
push ebx
push 0x424510
call fcn.0040a830
add esp, 0x10
cmp eax, 1
jne 0x40ae2e
lea ecx, [ebp + 0xc]
push ecx
push 0x20119
push 0
push edi
push ebx
mov dword [ebp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ae2e
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40ae2e
mov ecx, dword [ebp + 0x18]
lea edx, [ebp + 0x14]
push edx
push ecx
lea edx, [ebp + 0x10]
push edx
push 0
push esi
mov edi, 4
push eax
mov dword [ebp + 0x10], edi
mov dword [ebp + 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40ae2e
cmp dword [ebp + 0x10], edi
jne 0x40ae2e
cmp dword [ebp + 0x14], edi
jne 0x40ae2e
mov edx, dword [ebp + 0x1c]
or ecx, 0xffffffff
mov word [edx], cx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x40ae70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4173c0
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x424d78]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov eax, 0x80004004
mov dword [ebp - 0x424], edx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x428], eax
mov dword [ebp - 4], 0
test esi, esi
je 0x40b016
test edi, edi
je 0x40b016
test ebx, ebx
je 0x40b016
test edx, edx
je 0x40b016
test ecx, ecx
je 0x40b016
push ebx
push edi
xor eax, eax
push esi
push 0x4249b0
mov word [ecx], ax
call fcn.0040a830
add esp, 0x10
cmp eax, 1
je 0x40af29
push ebx
push edi
push esi
push 0x424510
call fcn.0040a830
add esp, 0x10
cmp eax, 1
jne 0x40b006
lea ecx, [ebp - 0x418]
push ecx
push 0x20119
push 0
push edi
push esi
mov dword [ebp - 0x418], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b006
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x40b006
lea edx, [ebp - 0x420]
push edx
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x41c]
push edx
push 0
push ebx
mov edi, 1
push eax
mov dword [ebp - 0x41c], edi
mov dword [ebp - 0x420], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 0x418]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40b006
cmp dword [ebp - 0x41c], edi
jne 0x40b006
cmp dword [ebp - 0x420], 0x400
ja 0x40b006
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x430], esi
test esi, esi
jne 0x40afdd
push 0x8007000e
call fcn.00401270
mov edx, dword [ebp - 0x424]
push edx
lea ecx, [ebp - 0x430]
call fcn.004090b0
test eax, eax
jne 0x40afff
mov ecx, dword [ebp - 0x42c]
or eax, 0xffffffff
mov word [ecx], ax
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
jmp 0x40b016
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040d7c0
mov esp, ebp
pop ebp
ret 0x18
Function at 0x40b040
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4173f0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x424d78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0xc]
mov eax, 0x80004004
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
test edi, edi
je 0x40b14e
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x40b14e
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x40b14e
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x40b14e
push ebx
push esi
xor eax, eax
push edi
push 0x424510
mov word [ecx], ax
call fcn.0040a830
add esp, 0x10
cmp eax, 1
jne 0x40b12f
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp + 0x10]
push edx
push esi
push edi
push eax
mov eax, dword [ecx + 0x24]
mov dword [ebp + 0x10], 0
call eax
cmp word [ebp + 0x10], 0xffff
jne 0x40b12f
lea ecx, [ebp + 0xc]
push ecx
push 0x20106
push 0
push esi
push edi
mov dword [ebp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b12f
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40b12f
push 4
lea edx, [ebp + 0x18]
push edx
push 4
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40b12f
mov edx, dword [ebp + 0x1c]
or ecx, 0xffffffff
mov word [edx], cx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x40b170
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417410
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x424d78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0xc]
mov eax, 0x80004004
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
test edi, edi
je 0x40b2b1
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x40b2b1
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x40b2b1
cmp dword [ebp + 0x18], 0
je 0x40b2b1
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x40b2b1
push ebx
push esi
xor eax, eax
push edi
push 0x424510
mov word [ecx], ax
call fcn.0040a830
add esp, 0x10
cmp eax, 1
jne 0x40b292
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp + 0x10]
push edx
push esi
push edi
push eax
mov eax, dword [ecx + 0x24]
mov dword [ebp + 0x10], 0
call eax
cmp word [ebp + 0x10], 0xffff
jne 0x40b292
lea ecx, [ebp + 0xc]
push ecx
push 0x20106
push 0
push esi
push edi
mov dword [ebp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b292
cmp dword [ebp + 0xc], eax
je 0x40b292
mov edx, dword [ebp + 0x18]
push edx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
jne 0x40b25a
push 0x8007000e
call fcn.00401270
push esi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
mov eax, dword [ebp + 0xc]
push esi
push 1
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp + 0xc]
push ecx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x40b28b
mov eax, dword [ebp + 0x1c]
or edx, 0xffffffff
mov word [eax], dx
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x40d7c0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x424d78]
jne 0x40d7ca
repz ret
jmp fcn.0041059f

Function at 0x415ab9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x424d78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00411e80
and dword [ebp - 0x14], 0
cmp dword [0x42707c], 0
mov dword [ebp - 0x18], eax
jne 0x415b6c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x415c14
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41fb64
push ebx
call edi
test eax, eax
je 0x415c14
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42707c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x427080], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x427084], eax
call edi
push eax
call esi
mov dword [0x42708c], eax
test eax, eax
je 0x415b6c
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x427088], eax
mov eax, dword [0x427088]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x415bc5
cmp dword [0x42708c], ecx
je 0x415bc5
push eax
call esi
push dword [0x42708c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x415bc5
test ebx, ebx
je 0x415bc5
call edi
test eax, eax
je 0x415bbc
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x415bbc
test byte [ebp - 8], 1
jne 0x415bc5
or dword [ebp + 0x10], 0x200000
jmp 0x415bf8
mov eax, dword [0x427080]
cmp eax, dword [ebp - 0x18]
je 0x415bf8
push eax
call esi
test eax, eax
je 0x415bf8
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x415bf8
mov eax, dword [0x427084]
cmp eax, dword [ebp - 0x18]
je 0x415bf8
push eax
call esi
test eax, eax
je 0x415bf8
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42707c]
call esi
test eax, eax
je 0x415c14
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x415c16
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d7c0
leave
ret
Function at 0x40149d
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x472eb0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x401532
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x4014ef
cmp dword [ebp + 0x10], ebx
jne 0x401526
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call fcn.0040149d
test eax, eax
jne 0x401501
push edi
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014d6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.0040645d
cmp eax, ebx
je 0x401539
push ebx
push dword [0x472eb0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x401532
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x472eb0], ebx
jne 0x40152f
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x40152f
jmp 0x401532

Function at 0x405d9f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x457288
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x457288], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405dda
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405fad
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 4

Function at 0x405fb0
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [eax + 1]
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x405fe0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40968c]
mov dword [ebp - 8], eax
mov eax, dword [0x409690]
dec edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406030
test edi, edi
jne 0x405fed
mov word [esi], ax
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x40602a
Function at 0x406034
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
mov word [esi], ax
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4060ad
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x4008
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406096
cmp dword [ebp + 0x14], 1
je 0x40609b
cmp dword [ebp + 0x14], 2
je 0x40609b
xor eax, eax
mov word [esi], ax
push dword [ebp + 0x18]
xor eax, eax
mov word [esi + 0x4006], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret 0x14

Function at 0x406248
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406271
mov eax, dword [0x40b058]
cmp eax, 0xffffffff
je 0x406265
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40b058], 0xffffffff
jmp 0x40631c
cmp dword [0x461530], ebx
je 0x40631c
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp word [0x46a560], bx
je 0x4062e8
cmp dword [0x40b058], 0xffffffff
jne 0x4062f1
mov esi, 0x46a560
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 4
push 0x40000000
push esi
mov dword [ebp + 8], eax
call fcn.00405fb0
mov dword [0x40b058], eax
cmp eax, 0xffffffff
je 0x40631a
cmp dword [ebp + 8], 0xffffffff
jne 0x4062dd
push ebx
lea ecx, [ebp - 4]
push ecx
push 2
lea ecx, [ebp + 8]
push ecx
push eax
mov dword [ebp + 8], 0xfeff
call edi
mov eax, dword [0x40b058]
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40b058], 0xffffffff
je 0x40631a
push 0x4096a8
mov esi, 0x461540
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp + 8]
push ecx
add eax, eax
push eax
push esi
push dword [0x40b058]
call edi
pop edi
pop esi
pop ebx
leave
ret 4

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

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4572d0
push esi
call fcn.0040616a
push esi
call fcn.00405eb9
mov edi, eax
test edi, edi
jne 0x406900
xor eax, eax
jmp 0x40695d
push edi
call fcn.00406199
test byte [0x472e28], 0x80
je 0x40691c
movzx eax, word [edi]
test ax, ax
je 0x4068fc
cmp eax, 0x5c
je 0x4068fc
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x40693e
push esi
call fcn.00406436
test eax, eax
je 0x406938
test byte [eax], 0x10
je 0x406962
push esi
call fcn.004068b2
push esi
call ebx
cmp eax, edi
jg 0x406929
push esi
call fcn.00406883
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x40695c
Function at 0xc74370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xc7438e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xc9d074
push ecx
mov edi, eax
call fcn.00c88198
mov esi, eax
add esp, 8
test esi, esi
jne 0xc743cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00c8802e
push esi
call fcn.00c87fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret