joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404610
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x41d480]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x90]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404710
mov edx, dword [0x41f3d8]
push edi
lea ecx, [ebp - 0x88]
mov byte [ebp - 0x88], al
mov eax, dword [edx + 8]
mov dword [ebp - 0x8c], ecx
mov ecx, dword [esi]
push eax
push ecx
push str.__s_s___mini
lea edi, [ebp - 0x8c]
call fcn.004033e0
lea edx, [ebp - 0x44]
push 6
mov eax, edx
push str.WJNews
push eax
mov dword [ebp - 0x48], edx
mov byte [ebp - 0x44], 0
call fcn.0040a627
mov ecx, dword [ebp - 0x48]
mov byte [ecx + 6], 0
mov edx, dword [esi + 0x54]
add esp, 0x18
push edx
lea eax, [ebp - 0x48]
call fcn.00402de0
mov edx, dword [ebp - 0x8c]
mov eax, edx
lea esi, [eax + 1]
pop edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4046b7
mov ecx, dword [ebp - 0x90]
sub eax, esi
push eax
mov eax, dword [ebp - 0x48]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x90]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x44]
cmp eax, ecx
je 0x4046f7
push eax
call fcn.00409901
add esp, 4
mov eax, dword [ebp - 0x8c]
lea edx, [ebp - 0x88]
cmp eax, edx
je 0x404710
push eax
call fcn.00409901
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00409454
mov esp, ebp
pop ebp
ret
Function at 0x404e00
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 8], 0
mov dword [esi], vtable.ArkThread.0
je 0x404e32
cmp byte [esi + 9], 0
jne 0x404e32
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 9], 1
test byte [ebp + 8], 1
je 0x404e41
push esi
call fcn.00409de1
add esp, 4
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x406cf0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x406cf7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x406dcd
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41a3e8]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41a3e8]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41a3e8]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41a3e8]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41a3e8]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41a3e8]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41a3e8]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41a3e8]
add ecx, 8
sub edx, 8
dec esi
jne 0x406d10
pop edi
test edx, edx
je 0x406dea
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x41a3e8]
inc ecx
dec edx
jne 0x406dd1
not eax
pop esi
ret

Function at 0x4074b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ebx
imul esi, dword [ebp + 0xc]
cmp byte [edi], 0
je 0x4074e6
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4074dc
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
div ebx
pop esi
pop ebp
ret
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x14]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x4074f7
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x10]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.0040aed0
add dword [edi + 0x18], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop esi
pop ebp
ret

Function at 0x407520
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x407553
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [ebp - 1]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40754e
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x40757e
mov eax, dword [esi + 0x14]
push ebx
mov ebx, dword [esi + 0x18]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x407565
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x10]
push edi
add edx, ebx
push edx
lea eax, [ebp - 1]
push eax
call fcn.0040aed0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x18], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x407593
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x40758d
cmp byte [esi + 8], 0
je 0x40758d
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x407630
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [esi], 0
je 0x407677
cmp byte [esi + 1], 0
je 0x40767f
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x407691
cmp byte [esi + 1], 0
je 0x407685
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
sub ebx, dword [esi + 0xc]
mov dword [ebp - 4], ebx
jmp 0x407699
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x18], ecx
jmp 0x407651
xor eax, eax
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x407699
mov eax, dword [esi + 0x18]
mov dword [ebp - 4], eax
mov ebx, eax
push edi
mov edi, 0xffff
mov dword [ebp - 8], edi
cmp ebx, edi
jae 0x4076ab
mov dword [ebp - 8], ebx
mov edi, ebx
push 0x404
call fcn.0040a641
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4076c5
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x14], 0
cmp edi, eax
jbe 0x4077d9
jmp 0x4076e9
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
add eax, 0x400
mov dword [ebp - 0xc], edi
cmp eax, edi
ja 0x4076f8
mov dword [ebp - 0xc], eax
mov eax, ebx
sub eax, dword [ebp - 0xc]
sub ebx, eax
mov dword [ebp - 0x1c], eax
cmp ebx, 0x404
jbe 0x40770f
mov ebx, 0x404
cmp byte [esi], 0
je 0x407734
cmp byte [esi + 1], 0
je 0x4077d9
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x407737
mov dword [esi + 0x18], eax
cmp byte [esi], 0
mov edi, ebx
je 0x407760
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40775b
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x18]
jmp 0x407789
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x407771
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x10]
mov edx, dword [ebp - 0x10]
push edi
add ecx, eax
push ecx
push edx
call fcn.0040aed0
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x4077d9
lea eax, [ebx - 3]
test eax, eax
jle 0x4077cd
lea esp, [esp]
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x4077bf
cmp byte [eax + ecx + 1], 0x4b
jne 0x4077bf
cmp byte [eax + ecx + 2], 5
jne 0x4077bf
cmp byte [eax + ecx + 3], 6
je 0x4077c5
test eax, eax
jg 0x4077a0
jmp 0x4077cd
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
jne 0x4077d9
mov edx, dword [ebp - 8]
cmp dword [ebp - 0xc], edx
jb 0x4076e0
mov eax, dword [ebp - 0x10]
push eax
call fcn.00409901
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409454
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41d480]
jne 0x40945e
repz ret
jmp fcn.0040c986

Function at 0x411ba7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41d480]
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.0040e0dd
and dword [ebp - 0x14], 0
cmp dword [0x41f32c], 0
mov dword [ebp - 0x18], eax
jne 0x411c5a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x411d02
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x411d02
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41f32c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41f330], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41f334], eax
call edi
push eax
call esi
mov dword [0x41f33c], eax
test eax, eax
je 0x411c5a
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41f338], eax
mov eax, dword [0x41f338]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x411cb3
cmp dword [0x41f33c], ecx
je 0x411cb3
push eax
call esi
push dword [0x41f33c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x411cb3
test ebx, ebx
je 0x411cb3
call edi
test eax, eax
je 0x411caa
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x411caa
test byte [ebp - 8], 1
jne 0x411cb3
or dword [ebp + 0x10], 0x200000
jmp 0x411ce6
mov eax, dword [0x41f330]
cmp eax, dword [ebp - 0x18]
je 0x411ce6
push eax
call esi
test eax, eax
je 0x411ce6
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x411ce6
mov eax, dword [0x41f334]
cmp eax, dword [ebp - 0x18]
je 0x411ce6
push eax
call esi
test eax, eax
je 0x411ce6
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41f32c]
call esi
test eax, eax
je 0x411d02
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x411d04
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409454
leave
ret
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x1fe22078
Capabilities:
Encode data using xor

Disassembly:
cmp ecx, dword [edx]
cmpsb byte [esi], byte es:[edi]
sub ebp, dword [ebp + 0x46]
lodsb al, byte [esi]
cmp eax, 0x6b4d7325
invalid
Function at 0x401000
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x409004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 0x17
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionRun
lea edi, [ebp - 0x60]
lea eax, [ebp - 0x270]
push eax
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x26c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
lea edx, [ebp - 0x60]
push edx
push 0x80000002
mov dword [ebp - 0x270], 2
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
pop edi
pop esi
test eax, eax
je 0x401071
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401101
mov esp, ebp
pop ebp
ret 0x10
push 0x104
lea eax, [ebp - 0x164]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
jmp 0x401090
mov cl, byte [ebp + eax - 0x164]
inc eax
test cl, cl
jne 0x401090
lea eax, [ebp - 0x164]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4010a5
sub eax, edx
mov edx, dword [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x164]
push ecx
push 1
push 0
push str.SDKTest
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0
push 0x40789c
lea eax, [ebp - 0x164]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 0x26c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00401101
mov esp, ebp
pop ebp
ret 0x10

Function at 0x401101
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x409004]
jne 0x40110b
repz ret
jmp fcn.004012b0
Function at 0x4030fb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x409004]
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.00402058
and dword [ebp - 0x14], 0
cmp dword [0x40a84c], 0
mov dword [ebp - 0x18], eax
jne 0x4031ae
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x403256
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x406cb0
push ebx
call edi
test eax, eax
je 0x403256
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40a84c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40a850], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40a854], eax
call edi
push eax
call esi
mov dword [0x40a85c], eax
test eax, eax
je 0x4031ae
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40a858], eax
mov eax, dword [0x40a858]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x403207
cmp dword [0x40a85c], ecx
je 0x403207
push eax
call esi
push dword [0x40a85c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x403207
test ebx, ebx
je 0x403207
call edi
test eax, eax
je 0x4031fe
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4031fe
test byte [ebp - 8], 1
jne 0x403207
or dword [ebp + 0x10], 0x200000
jmp 0x40323a
mov eax, dword [0x40a850]
cmp eax, dword [ebp - 0x18]
je 0x40323a
push eax
call esi
test eax, eax
je 0x40323a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40323a
mov eax, dword [0x40a854]
cmp eax, dword [ebp - 0x18]
je 0x40323a
push eax
call esi
test eax, eax
je 0x40323a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40a84c]
call esi
test eax, eax
je 0x403256
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x403258
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401101
leave
ret
Function at 0x40116b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4077ab
call fcn.004034e0
sub esp, 0x380
push ebx
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x401309
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, 1
jl 0x401309
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, ebx
je 0x401309
cmp byte [ebp + 0x18], bl
je 0x4012dd
lea ecx, [ebp - 0x20]
call fcn.00402613
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], ebx
call fcn.004029a8
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.004029a8
push edi
push esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.00402a1b
lea ecx, [ebp - 0x38c]
mov dword [ebp - 0x28], ebx
call fcn.00402b1e
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x38c]
push eax
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 3
call fcn.00402bbb
test eax, eax
jne 0x40125a
lea ecx, [ebp - 0x38c]
mov byte [ebp - 4], 2
call fcn.00402ba8
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.004029bf
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], bl
call fcn.004029bf
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
jmp 0x401304
push ebx
lea ecx, [ebp - 0x38c]
call fcn.00402f14
test eax, eax
je 0x401228
push 1
lea ecx, [ebp - 0x20]
push dword [ebp + 0x14]
call fcn.00402862
test eax, eax
je 0x401228
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x50]
push eax
call fcn.00402ac9
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x388]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
push dword [ebp - 0x38]
lea ecx, [ebp - 0x20]
push dword [ebp - 0x3c]
call fcn.00402979
lea ecx, [ebp - 0x20]
call fcn.00402926
lea ecx, [ebp - 0x38c]
mov byte [ebp - 4], 2
call fcn.00402ba8
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.004029bf
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], bl
call fcn.004029bf
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
jmp 0x401326
lea ecx, [ebp - 0x64]
call fcn.00402613
push 1
lea ecx, [ebp - 0x64]
push dword [ebp + 0x14]
mov dword [ebp - 4], 4
call fcn.00402862
test eax, eax
jne 0x40130d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.00402629
xor al, al
jmp 0x40132d
push edi
push esi
lea ecx, [ebp - 0x64]
call fcn.00402945
lea ecx, [ebp - 0x64]
call fcn.00402926
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.00402629
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40139b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2008
call fcn.00403580
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
lea eax, [ebp - 0x2008]
push str.SOFTWAREClasses_
push eax
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x2008]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 8]
xor edi, edi
push eax
lea eax, [ebp - 4]
push eax
push edi
push 0x20006
push edi
push edi
lea eax, [ebp - 0x2008]
push edi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push dword [ebp + 0x10]
lea eax, [ebp - 0x2008]
push eax
call esi
lea eax, [ebp - 0x2008]
push eax
call fcn.00403500
pop ecx
push eax
lea eax, [ebp - 0x2008]
push eax
push 1
push edi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp esi, edi
pop edi
pop esi
sete al
leave
ret

Function at 0x401439
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40145a
xor al, al
leave
ret
lea eax, [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 4]
and byte [ebp - 0x404], 0
push eax
push 0
mov dword [ebp + 8], 0x400
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4014a3
push 1
pop ebx
cmp dword [ebp - 4], ebx
jne 0x4014a3
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x404]
push eax
call fcn.00402158
jmp 0x4014a5
xor bl, bl
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret
Function at 0x401d16
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x407844
call fcn.004034e0
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
call fcn.00401b44
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x401d6b
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, 1
jl 0x401d6b
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x401d6f
xor eax, eax
jmp 0x401de5
lea ecx, [ebp - 0x1c]
call fcn.00401e3e
and dword [ebp - 4], 0
lea eax, [edi + 0xa]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004025c1
mov esi, eax
push edi
push ebx
push esi
call fcn.004037f0
and byte [esi + edi], 0
and byte [esi + edi + 1], 0
lea eax, [esi + edi]
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.004025d5
cmp word [esi], 0xfeff
jne 0x401dbb
add esi, 2
lea ecx, [ebp - 0x1c]
push esi
call fcn.00402164
cmp dword [ebp - 0x18], 1
jl 0x401dc8
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x401dcd
mov eax, dword [0x4092e4]
mov ecx, dword [ebp - 0x10]
push eax
call fcn.00401ba1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00401e85
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc