joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a260
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3b8
mov eax, dword [0x46db30]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x3a0], ecx
push 0
push 0
push 0xf0
push 0x3ec
lea eax, [ebp - 0x39c]
push eax
mov ecx, dword [ebp - 0x3a0]
add ecx, 4
call fcn.0040bd60
mov ecx, eax
call fcn.0040bce0
sub eax, 1
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], 0
lea ecx, [ebp - 0x214]
push ecx
push 0x2001f
push 0
push 0x461f38
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40a300
lea edx, [ebp - 0x214]
push edx
push 0x461f88
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x40a300
jmp 0x40a479
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov cx, word [0x461e2c]
mov word [ebp - 0x398], cx
push 0x17e
push 0
lea edx, [ebp - 0x396]
push edx
call fcn.00443fb0
add esp, 0xc
cmp dword [ebp - 0x218], 0
je 0x40a390
mov eax, dword [ebp - 0x3a0]
cmp dword [eax + 0xf8], 0
je 0x40a371
push 0xc0
lea ecx, [ebp - 0x398]
push ecx
push 0x3eb
mov ecx, dword [ebp - 0x3a0]
add ecx, 4
call fcn.0040bcb0
jmp 0x40a390
push 0xc0
lea edx, [ebp - 0x398]
push edx
push 0x3f0
mov ecx, dword [ebp - 0x3a0]
add ecx, 4
call fcn.0040bcb0
mov eax, dword [ebp - 0x3a0]
cmp dword [eax + 0xf8], 0
je 0x40a3e9
lea ecx, [ebp - 0x210]
add ecx, 0xfffffffe
mov dword [ebp - 0x3a4], ecx
mov edx, dword [ebp - 0x3a4]
mov ax, word [edx + 2]
mov word [ebp - 0x3a6], ax
add dword [ebp - 0x3a4], 2
cmp word [ebp - 0x3a6], 0
jne 0x40a3ae
mov edi, dword [ebp - 0x3a4]
mov ecx, dword [0x461fd8]
mov dword [edi], ecx
mov dx, word [0x461fdc]
mov word [edi + 4], dx
lea eax, [ebp - 0x398]
mov dword [ebp - 0x3ac], eax
mov ecx, dword [ebp - 0x3ac]
add ecx, 2
mov dword [ebp - 0x3b0], ecx
mov edx, dword [ebp - 0x3ac]
mov ax, word [edx]
mov word [ebp - 0x3b2], ax
add dword [ebp - 0x3ac], 2
cmp word [ebp - 0x3b2], 0
jne 0x40a404
mov ecx, dword [ebp - 0x3ac]
sub ecx, dword [ebp - 0x3b0]
sar ecx, 1
mov dword [ebp - 0x3b8], ecx
mov edx, dword [ebp - 0x3b8]
lea eax, [edx + edx + 2]
push eax
lea ecx, [ebp - 0x398]
push ecx
push 1
push 0
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 0x214], 0
je 0x40a479
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00441cf2
mov esp, ebp
pop ebp
ret
Function at 0x40ad60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x46db30]
xor eax, ebp
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x25c], ecx
mov dword [ebp - 0xc], 1
mov ecx, 0x473b90
call fcn.00407ad0
mov dword [ebp - 8], eax
push 0xf0
movzx eax, word [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40af15
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40af15
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40af15
cmp dword [ebp - 0xc], 0
je 0x40af15
mov edx, dword [ebp - 0x14]
movzx eax, word [edx]
test eax, eax
je 0x40af15
mov ecx, dword [ebp - 0x14]
mov dx, word [ecx]
mov word [ebp - 0x1c], dx
mov eax, dword [ebp - 0x14]
add eax, 2
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dx, word [ecx]
mov word [ebp - 0x20], dx
mov eax, dword [ebp - 0x14]
add eax, 2
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
movzx ecx, word [ebp - 0x20]
cmp ecx, 0x403
jne 0x40ae89
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x130]
call fcn.0040b060
lea ecx, [ebp - 0x130]
call fcn.0041ebc0
push eax
push 0
push 0x143
movzx eax, word [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x25c]
add ecx, 4
call fcn.0040b580
cmp eax, 0xffffffff
jne 0x40ae7c
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x130]
call fcn.0040b090
jmp 0x40af07
movzx ecx, word [ebp - 0x20]
cmp ecx, 0x1234
jne 0x40af07
mov dword [ebp - 0x154], 1
mov dword [ebp - 0x150], 0xffffffff
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x258]
call fcn.0040b060
mov dword [ebp - 0x260], eax
mov ecx, dword [ebp - 0x260]
call fcn.0041ebc0
mov dword [ebp - 0x14c], eax
lea ecx, [ebp - 0x258]
call fcn.0040b090
lea eax, [ebp - 0x154]
push eax
push 0
push 0x40b
movzx ecx, word [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x25c]
add ecx, 4
call fcn.0040b580
cmp eax, 0xffffffff
jne 0x40af07
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x14], edx
jmp 0x40ade0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.00441cf2
mov esp, ebp
pop ebp
ret 4
Function at 0x416d20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
call fcn.00416880
call fcn.00410bc0
mov dword [ebp - 4], eax
push 5
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00416aa0
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x416e64
push 0xf0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00416aa0
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0x1c], 0
je 0x416da4
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
xor eax, eax
jne 0x416d8f
xor ecx, ecx
jne 0x416d8f
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x416e4b
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x416e40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00416ac0
add esp, 8
mov dword [ebp - 0x24], eax
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00416d10
add esp, 4
movzx edx, al
test edx, edx
jne 0x416e25
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
je 0x416e3e
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x416e49
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
jmp 0x416e54
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x416e64
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x41e1f0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0x20
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x41e217
xor eax, eax
jmp 0x41e27e
lea edx, [ebp - 0x10]
push edx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x41e230
xor eax, eax
jmp 0x41e27e
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 2
push 0
push 0
push 0x10
lea edx, [ebp - 0x20]
push edx
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x41e268
xor eax, eax
jmp 0x41e27e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
jne 0x41e279
xor eax, eax
jmp 0x41e27e
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x420ed0
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4590db
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x46db30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x23c], 0
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x224]
call fcn.00404620
mov dword [ebp - 4], 0
push str.HK_KBD.SYS
lea ecx, [ebp - 0x224]
call fcn.0040a750
push str.Analyse
push 0x86
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x421062
mov edx, dword [ebp - 0x220]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
je 0x421062
mov eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
je 0x421062
mov ecx, dword [ebp - 0x220]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jle 0x421062
push 0
push 0x82
push 2
push 0
push 2
push 0x40000000
lea ecx, [ebp - 0x224]
call fcn.0041ebc0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0xffffffff
je 0x421062
push 0
lea edx, [ebp - 0x238]
push edx
mov eax, dword [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0x22c]
push ecx
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x224]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00404b40
mov edx, dword [ebp - 0x23c]
or edx, 1
mov dword [ebp - 0x23c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.0042edc0
mov eax, dword [ebp + 8]
jmp 0x421093
push 0x45faf0
mov ecx, dword [ebp + 8]
call fcn.00404620
mov eax, dword [ebp - 0x23c]
or eax, 1
mov dword [ebp - 0x23c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.0042edc0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00441cf2
mov esp, ebp
pop ebp
ret
Function at 0x422e00
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
add ecx, 2
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
mov ax, word [edx]
mov word [ebp - 0x16], ax
add dword [ebp - 0x10], 2
cmp word [ebp - 0x16], 0
jne 0x422e18
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x14]
sar ecx, 1
mov dword [ebp - 0x1c], ecx
jne 0x422e3f
jmp 0x422f34
push 0x45f8f0
push 0x400
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x2fc], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x2fc], 0
je 0x422f22
push 0x400
push 0
push 0
push 6
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x2fc]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x300], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x300], 0
je 0x422f04
push 0x400
push 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x300]
push ecx
call fcn.00443fb0
add esp, 0xc
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x300]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x20]
mov dx, word [ecx]
mov word [ebp - 0x2a], dx
mov eax, dword [ebp - 0x24]
mov cx, word [ebp - 0x2a]
mov word [eax], cx
mov edx, dword [ebp - 0x20]
add edx, 2
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x24]
add eax, 2
mov dword [ebp - 0x24], eax
cmp word [ebp - 0x2a], 0
jne 0x422ed7
push 1
mov ecx, dword [ebp - 0xc]
call fcn.00422f40
push 0x45f978
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0xc]
add ecx, 0x378
call fcn.0042f030
mov esp, ebp
pop ebp
ret 4
Function at 0x422f40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x458e68
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x46db30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftMediaPlayerMediaPluginsDSPConfig8EAABC66_3F85_4b85_84A1_424AB8DDA041_
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x422f90
jmp 0x423009
lea ecx, [ebp - 0x14]
call fcn.0041e290
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x422fb4
push str.true
lea ecx, [ebp - 0x14]
call fcn.0042f030
jmp 0x422fc1
push str.false
lea ecx, [ebp - 0x14]
call fcn.0042f030
lea ecx, [ebp - 0x14]
call fcn.00404b00
lea ecx, [eax + eax + 2]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00423020
push eax
push 1
push 0
push str.Enabled
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 0x10], 0
je 0x422ffa
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0042edc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4234e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
call fcn.00416880
call fcn.004234a0
mov dword [ebp - 4], eax
push 5
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00416aa0
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x423624
push 0xf0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00416aa0
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0x1c], 0
je 0x423564
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
xor eax, eax
jne 0x42354f
xor ecx, ecx
jne 0x42354f
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x42360b
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x423600
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00416ac0
add esp, 8
mov dword [ebp - 0x24], eax
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.004234b0
add esp, 4
movzx edx, al
test edx, edx
jne 0x4235e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
je 0x4235fe
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x423609
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
jmp 0x423614
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x423624
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x424850
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45906b
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x46db30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x224], 0
push 0
push 0x1c
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x220]
call fcn.00404620
mov dword [ebp - 4], 0
push 0x45f34c
lea ecx, [ebp - 0x220]
call fcn.0040a750
push 0x45f350
lea edx, [ebp - 0x220]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00424bc0
add esp, 0xc
mov ecx, dword [ebp - 0x224]
or ecx, 1
mov dword [ebp - 0x224], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.0042edc0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00441cf2
mov esp, ebp
pop ebp
ret

Function at 0x424920
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459998
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x46db30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x45f36c
push 0x87
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x424a58
mov eax, dword [ebp - 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x424a58
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x424a58
mov edx, dword [ebp - 0x10]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jle 0x424a58
lea eax, [ebp - 0x20]
push eax
call fcn.00424850
add esp, 4
mov dword [ebp - 4], 0
push 0
push 0x82
push 2
push 0
push 2
push 0x40000000
lea ecx, [ebp - 0x20]
call fcn.0041ebc0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
je 0x424a49
push 0
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x20]
call fcn.0041ebc0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x424a49
push 0x45f37c
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x424a3f
call dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0042edc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4270d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x4270d9
xor ecx, ecx
jne 0x4270d9
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x4270fa
mov eax, 0xd
jmp 0x427155
xor eax, eax
jne 0x4270e1
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*2]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
mov dword [ebp - 4], edx
cmp dword [ebp - 0xc], 1
jne 0x42710b
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 7
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8
Function at 0x427a10
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x46db30]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x230], ecx
lea ecx, [ebp - 0x14]
call fcn.00427b70
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004279a0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x427a7b
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x14]
call fcn.00427bf0
mov eax, dword [ebp - 0x224]
jmp 0x427b0c
mov dword [ebp - 4], 0x100
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x427ae1
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00427a10
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x427ad8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x228], edx
lea ecx, [ebp - 0x14]
call fcn.00427bf0
mov eax, dword [ebp - 0x228]
jmp 0x427b0c
mov dword [ebp - 4], 0x100
jmp 0x427a82
lea ecx, [ebp - 0x14]
call fcn.00427ba0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x230]
call fcn.00427c40
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x14]
call fcn.00427bf0
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00441cf2
mov esp, ebp
pop ebp
ret 4
Function at 0x42e6c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0x2001f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x42e71e
cmp dword [ebp - 8], 0
je 0x42e71e
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x42f180
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov dword [edx], 0x67452301
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xefcdab89
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 0x98badcfe
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], 0x10325476
mov esp, ebp
pop ebp
ret

Function at 0x441cf2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46db30]
jne 0x441cfc
repz ret
jmp fcn.00445dc2