joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419a60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44ccb6
mov eax, dword fs:[0]
push eax
mov eax, dword [0x46a070]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov dword [eax], vtable.IJitCallBack.0
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], ecx
mov dword [esp + 0xc], ecx
mov dword [eax + 0x7c], ecx
mov dword [eax + 0x80], ecx
mov dword [eax + 0x60], ecx
mov dword [eax + 0x54], ecx
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ecx
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], ecx
mov dword [eax + 0x78], ecx
mov byte [esp + 0xc], 1
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [esp + 0xc], 0xffffffff
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 4

Function at 0x419ca0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
push edi
push 0x45798c
jmp fcn.005ea377

Function at 0x42b620
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44f0d5
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x46a070]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
push esi
call fcn.00419a60
xor edi, edi
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x30]
mov dword [esi], vtable.NetFX45::CNetFX4xCallBack.0
mov dword [esi + 0x84], eax
mov dword [esi + 0x88], ebx
mov dword [esi + 0x94], edi
mov byte [esp + 0x14], 1
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov eax, dword [0x59b7a4]
mov dword [esi + 0xa8], edx
mov edx, dword [esp + 0x20]
mov dword [esi + 0x98], ecx
mov ecx, dword [eax + 0x3c]
add ecx, dword [eax + 0x34]
mov eax, dword [0x59ae6c]
mov dword [esi + 0x9c], ecx
mov dword [esi + 0xa0], edi
mov dword [esi + 0xa4], edi
mov dword [esi + 8], ebx
mov ecx, dword [esi + 0x94]
cmp ecx, edi
mov dword [esi + 0x8c], edx
mov dword [esi + 0x90], eax
je 0x42b6d4
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esi + 0x94], edi
mov ecx, dword [esp + 0x28]
mov dword [esi + 0xac], ecx
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 0x18

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

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x6c
push 0xffffffffffffffff
push 0x44ebca
mov eax, dword fs:[0]
push eax
sub esp, 0x94
push ebx
push esi
push edi
mov eax, dword [0x46a070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x78]
push 0x45dae8
jmp fcn.006f0de7
Function at 0x430a20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44eb9d
mov eax, dword fs:[0]
push eax
sub esp, 0x118
push ebx
push esi
push edi
mov eax, dword [0x46a070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0xc]
push 0x45db04
jmp loc.0070753b

Function at 0x4342c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x44eaec
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x46a070]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x18]
push esi
call fcn.00417d50
mov dword [esp + 0x10], 0
lea eax, [esi + 0xc]
push eax
call fcn.00417d50
mov byte [esp + 0x10], 1
lea ecx, [esi + 0x18]
push ecx
call fcn.00417d50
mov byte [esp + 0x10], 2
lea edx, [esi + 0x24]
push edx
call fcn.00417d50
mov byte [esp + 0x10], 3
lea eax, [esi + 0x30]
push eax
call fcn.00417d50
mov byte [esp + 0x10], 4
lea ecx, [esi + 0x3c]
push ecx
call fcn.00417d50
mov byte [esp + 0x10], 5
lea edx, [esi + 0x48]
push edx
call fcn.00417d50
mov byte [esp + 0x10], 6
lea eax, [esi + 0x54]
push eax
call fcn.00417d50
mov byte [esp + 0x10], 7
lea ecx, [esi + 0x60]
push ecx
call fcn.00417d50
mov byte [esp + 0x10], 8
lea edx, [esi + 0x6c]
push edx
call fcn.00417d50
mov byte [esp + 0x10], 9
lea eax, [esi + 0x7c]
push eax
call fcn.00417d50
mov byte [esp + 0x10], 0xa
mov dword [esi + 0x78], 1
mov dword [esp + 0x10], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 4
Function at 0x4343b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x44ea44
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x46a070]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov ecx, 9
mov dword [esp + 0x14], ecx
lea eax, [esi + 0x7c]
mov dword [esp + 8], eax
mov byte [esp + 0x14], cl
call fcn.00418240
mov cl, 8
mov byte [esp + 0x14], cl
lea eax, [esi + 0x6c]
mov dword [esp + 8], eax
mov byte [esp + 0x14], cl
call fcn.00418240
mov cl, 7
mov byte [esp + 0x14], cl
lea eax, [esi + 0x60]
mov dword [esp + 8], eax
mov byte [esp + 0x14], cl
call fcn.00418240
mov cl, 6
mov byte [esp + 0x14], cl
lea eax, [esi + 0x54]
mov dword [esp + 8], eax
mov byte [esp + 0x14], cl
call fcn.00418240
mov cl, 5
mov byte [esp + 0x14], cl
lea eax, [esi + 0x48]
mov dword [esp + 8], eax
mov byte [esp + 0x14], cl
call fcn.00418240
mov cl, 4
mov byte [esp + 0x14], cl
lea eax, [esi + 0x3c]
mov dword [esp + 8], eax
mov byte [esp + 0x14], cl
call fcn.00418240
mov cl, 3
mov byte [esp + 0x14], cl
lea eax, [esi + 0x30]
mov dword [esp + 8], eax
mov byte [esp + 0x14], cl
call fcn.00418240
mov cl, 2
mov byte [esp + 0x14], cl
lea eax, [esi + 0x24]
mov dword [esp + 8], eax
mov byte [esp + 0x14], cl
call fcn.00418240
mov cl, 1
mov byte [esp + 0x14], cl
lea eax, [esi + 0x18]
mov dword [esp + 8], eax
mov byte [esp + 0x14], cl
call fcn.00418240
xor cl, cl
mov byte [esp + 0x14], cl
lea eax, [esi + 0xc]
mov dword [esp + 8], eax
mov byte [esp + 0x14], cl
call fcn.00418240
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
call fcn.00418240
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
Function at 0x4359b0
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x49c]
sub esp, 0x49c
push 0xffffffffffffffff
push 0x44f2a3
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x46a070]
xor eax, ebp
mov dword [ebp + 0x498], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x4a4]
mov dword [ebp - 0x5c], eax
mov eax, dword [0x59b6d4]
add eax, 0x84
mov dword [ebp - 0x3c], eax
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0x38], 1
xor eax, eax
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x4a8]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x34], eax
mov esi, dword [0x59b6d4]
add esi, 0x4c
lea ebx, [ebp - 0x50]
lea eax, [ebp + 0x480]
call fcn.00436f90
mov ebx, dword [esi + 4]
mov edi, dword [ebp + 0x480]
test edi, edi
je 0x435a4c
cmp edi, esi
je 0x435a51
call fcn.0043a420
mov esi, dword [ebp + 0x484]
cmp esi, ebx
je 0x435a6e
test edi, edi
jne 0x435a64
call fcn.0043a420
cmp esi, dword [edi + 4]
jne 0x435a6e
call fcn.0043a420
mov byte [ebp - 4], 1
push 0x45e0c8
jmp 0x71c8fe

Function at 0x439047
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x46a070]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00438f86
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0043cda0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x439096
cmp dword [ebp - 0x1c], 5
jb 0x4390ae
jmp 0x4390aa
cmp dword [ebp - 0x10], 1
jne 0x4390ae
cmp dword [ebp - 0x1c], 4
ja 0x4390aa
jne 0x4390ae
cmp dword [ebp - 0x18], 0
jbe 0x4390ae
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x451528
call fcn.00438e1c
test eax, eax
jge 0x4390cf
mov byte [0x59b7d4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00439d86
add ebp, 0x78
leave
ret

Function at 0x439d86
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46a070]
jne 0x439d90
repz ret
jmp fcn.0043ed6c
Function at 0x43ba84
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x43bac1
cmp dword [ebp + 0x14], edi
je 0x43bac1
cmp ecx, edi
jne 0x43bac8
call fcn.0043d270
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0043a3fc
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x43badc
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x43bafd
cmp ebx, 0xffffffff
je 0x43baec
push ebx
push edi
push ecx
call fcn.0043cda0
add esp, 0xc
cmp esi, edi
je 0x43baa9
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x43baa9
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x43bb19
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x43bb20
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x43bc11
test word [esi + 0xc], 0x10c
je 0x43bb74
mov eax, dword [esi + 4]
test eax, eax
je 0x43bb74
jl 0x43bc72
cmp ebx, eax
mov edi, ebx
jb 0x43bb45
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x43bc19
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00439845
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x43bc09
cmp ebx, dword [ebp - 0xc]
jb 0x43bbe1
cmp dword [ebp - 0xc], 0
je 0x43bb9e
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x43bb93
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x43bb9a
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x43bba9
mov eax, SysReAllocString
cmp ebx, eax
ja 0x43bba9
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x43bc45
push eax
push dword [ebp - 8]
push esi
call fcn.00442cce
pop ecx
push eax
call fcn.00443c05
add esp, 0xc
test eax, eax
je 0x43bc84
cmp eax, 0xffffffff
je 0x43bc72
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x43bc09
push esi
call fcn.00442cfb
cmp eax, 0xffffffff
pop ecx
je 0x43bc76
cmp dword [ebp - 4], 0
je 0x43bc45
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x43bb28
mov eax, dword [ebp + 0x14]
jmp 0x43bac3
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x43bc30
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0043cda0
add esp, 0xc
call fcn.0043d270
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x43bab9
cmp dword [ebp + 0xc], 0xffffffff
je 0x43bc5b
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0043cda0
add esp, 0xc
call fcn.0043d270
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x43bab9
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x43bac3
or dword [esi + 0xc], 0x10
jmp 0x43bc76
Function at 0x43e143
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x46a338]
je 0x43e15e
inc edi
cmp edi, 0x17
jb 0x43e14f
cmp edi, 0x17
jae 0x43e2de
push ebp
push 3
call fcn.004462ae
cmp eax, 1
pop ecx
je 0x43e2aa
push 3
call fcn.004462ae
test eax, eax
pop ecx
jne 0x43e192
cmp dword [0x46a060], 1
je 0x43e2aa
cmp ebx, 0xfc
je 0x43e2dd
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x599c98
push ebp
call fcn.0043a036
add esp, 0xc
test eax, eax
je 0x43e1c8
push esi
push esi
push esi
push esi
push esi
call fcn.0043a300
add esp, 0x14
push 0x104
mov esi, 0x599cb1
push esi
push 0
mov byte [0x599db5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43e20c
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0043a036
add esp, 0xc
test eax, eax
je 0x43e20c
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0043a300
add esp, 0x14
push esi
call fcn.0043c690
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x43e251
push esi
call fcn.0043c690
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x599fac
push 0x451bcc
sub ecx, eax
push ecx
push eax
call fcn.004461fb
add esp, 0x14
test eax, eax
je 0x43e251
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0043a300
add esp, 0x14
jmp 0x43e253
xor esi, esi
push 0x451bc8
push ebx
push ebp
call fcn.0043c32b
add esp, 0xc
test eax, eax
je 0x43e273
push esi
push esi
push esi
push esi
push esi
call fcn.0043a300
add esp, 0x14
push dword [edi*8 + 0x46a33c]
push ebx
push ebp
call fcn.0043c32b
add esp, 0xc
test eax, eax
je 0x43e295
push esi
push esi
push esi
push esi
push esi
call fcn.0043a300
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0044603e
add esp, 0xc
jmp 0x43e2dd
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x43e2dd
cmp ebp, 0xffffffff
je 0x43e2dd
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x46a33c]
push dword [esi]
call fcn.0043c690
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x44603e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0043e422
xor ebx, ebx
cmp dword [0x59a678], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x446114
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4461f4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4526c4
push edi
call esi
cmp eax, ebx
je 0x4461f4
push eax
call fcn.0043e3b4
mov dword [esp], 0x4526b4
push edi
mov dword [0x59a678], eax
call esi
push eax
call fcn.0043e3b4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x59a67c], eax
call esi
push eax
call fcn.0043e3b4
mov dword [0x59a680], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0043b196
test eax, eax
pop ecx
pop ecx
je 0x4460e2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043a300
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x446114
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0043e3b4
cmp eax, ebx
pop ecx
mov dword [0x59a688], eax
je 0x446114
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043e3b4
pop ecx
mov dword [0x59a684], eax
mov eax, dword [0x59a684]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x446199
cmp dword [0x59a688], ecx
je 0x446199
push eax
call fcn.0043e42b
push dword [0x59a688]
mov esi, eax
call fcn.0043e42b
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x446199
cmp edi, ebx
je 0x446199
call esi
cmp eax, ebx
je 0x446166
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x446166
test byte [ebp - 0x18], 1
jne 0x446199
lea eax, [ebp - 0x10]
push eax
call fcn.0043b1cd
test eax, eax
pop ecx
je 0x446181
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043a300
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x446190
or dword [ebp + 0x10], 0x200000
jmp 0x4461d4
or dword [ebp + 0x10], 0x40000
jmp 0x4461d4
mov eax, dword [0x59a67c]
cmp eax, dword [ebp - 8]
je 0x4461d4
push eax
call fcn.0043e42b
cmp eax, ebx
pop ecx
je 0x4461d4
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4461d4
mov eax, dword [0x59a680]
cmp eax, dword [ebp - 8]
je 0x4461d4
push eax
call fcn.0043e42b
cmp eax, ebx
pop ecx
je 0x4461d4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x59a678]
call fcn.0043e42b
cmp eax, ebx
pop ecx
je 0x4461f4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4461f6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4010a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, eax
lea eax, [ebp - 0x810]
sub esp, 0x840
mov dword [ebp - 0x80c], 0x800
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x20019
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionAppletsRegedit
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegCreateKeyExW]
sub esp, 0x24
test eax, eax
je 0x401118
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
lea eax, [ebp - 0x80c]
lea esi, [ebp - 0x808]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x810]
mov dword [esp + 0x10], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.LastKey
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x4011b0
mov eax, dword [section..bss]
mov dword [esp], esi
add eax, 0x40
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
je 0x4011b0
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._FindPathInTree
test eax, eax
je 0x4011b0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 9
mov dword [esp + 4], 0x110b
mov dword [esp], ebx
call dword [0x417714]
sub esp, 0x10
jmp 0x4011fa
mov eax, dword [section..bss]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov esi, dword [0x417714]
mov dword [esp + 4], 0x110a
mov eax, dword [eax + 4]
mov dword [esp], eax
call esi
sub esp, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 8], 2
mov dword [esp + 4], 0x1102
mov dword [esp], ebx
call esi
sub esp, 0x10
mov eax, dword [ebp - 0x810]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x401420
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
push ebx
mov ebx, ecx
sub esp, 0x230
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x220], 0
test edx, edx
je 0x401540
lea eax, [ebp - 0x220]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp], esi
call sym._GetItemPath
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x220]
test ebx, ebx
jne 0x4014e8
test eax, eax
je 0x4014dc
cmp eax, 0x80000000
je 0x401570
cmp eax, 0x80000001
je 0x401520
mov edx, dword [str.HKEY_LOCAL_MACHINE]
cmp eax, 0x80000002
je 0x4014c7
cmp eax, 0x80000003
je 0x401580
cmp eax, 0x80000005
je 0x401590
mov edx, str.Unknown_HKEY._Please_report.
cmp eax, 0x80000006
je 0x401530
mov dword [ebp - 0x214], edx
test ebx, ebx
jne 0x4014ec
lea eax, [ebp - 0x218]
call sym._CombinePaths.constprop.0
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
test eax, eax
jne 0x401482
lea eax, [ebp - 0x21c]
lea ebx, [ebp - 0x210]
mov dword [ebp - 0x21c], 0x104
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetComputerNameW]
mov dword [ebp - 0x218], ebx
sub esp, 8
jmp 0x4014d1
mov edx, dword [str.HKEY_CURRENT_USER]
jmp 0x4014c7
mov edx, dword [str.HKEY_DYN_DATA]
jmp 0x4014c7
mov dword [esp + 0xc], 0
mov dword [esp + 8], 9
mov dword [esp + 4], 0x110a
mov dword [esp], eax
call dword [0x417714]
sub esp, 0x10
mov edx, eax
jmp 0x401455
mov edx, dword [str.HKEY_CLASSES_ROOT]
jmp 0x4014c7
mov edx, dword [str.HKEY_USERS]
jmp 0x4014c7
mov edx, dword [str.HKEY_CURRENT_CONFIG]
jmp 0x4014c7
Function at 0x402a80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [edx + 0x10]
push esi
lea esi, [edx + 8]
push ebx
mov ebx, edx
sub esp, 0x3c
mov dword [ebp - 0x20], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov eax, dword [edx + 4]
mov dword [esp + 4], eax
mov eax, dword [edx]
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [ebp - 0x24], eax
call eax
sub esp, 0x18
test eax, eax
je 0x402b40
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebx + 4]
cmp eax, 2
je 0x402b10
mov eax, dword [ebp - 0x20]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x8045
mov dword [esp], eax
call sym._error_code_messagebox
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov dword [ebx + 0xc], 0
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test ecx, ecx
jne 0x402ad8
mov dword [ebx + 8], 1
mov dword [ebx + 0x10], 2
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll_malloc]
xor ecx, ecx
mov dword [ebx + 0xc], eax
mov word [eax], cx
mov eax, 1
jmp 0x402b04
mov eax, dword [ebx + 0x10]
add eax, 2
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp + 0x14], edi
mov dword [ebp - 0x1c], eax
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0xc], esi
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp + 8], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x24]
call eax
sub esp, 0x18
test eax, eax
jne 0x402ba8
mov eax, dword [ebx + 0x10]
test al, 1
jne 0x402b91
mov ecx, dword [ebp - 0x1c]
and eax, 0xfffffffe
xor edx, edx
mov word [ecx + eax], dx
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0xc], eax
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebx + 4]
jmp 0x402ad8

Function at 0x4037b0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x1c]
push ebx
sub esp, 0x3c
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x2001b
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
jne 0x403850
mov ebx, eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0x8150
mov dword [esp + 8], 0x814f
mov dword [esp + 4], 0x34
mov dword [esp], eax
call sym._messagebox
cmp eax, 6
je 0x403830
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [sym.imp.shcore.dll_SHDeleteKeyW]
sub esp, 8
test eax, eax
jne 0x403870
mov ebx, 1
jmp 0x403814
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x7df
xor ebx, ebx
mov dword [esp], eax
call sym._error_code_messagebox
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [esp + 8], esi
mov dword [esp + 4], 0x805e
mov dword [esp], eax
call sym._error_code_messagebox
jmp 0x403814
Function at 0x403890
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
lea eax, [ebp - 0xc]
sub esp, 0x34
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], 0x2001b
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
je 0x4038d8
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
mov ebx, eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
sub esp, 8
test eax, eax
je 0x4038fb
mov edx, dword [ebp + 0x14]
test edx, edx
jne 0x403920
xor ebx, ebx
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, ebx
mov ebx, dword [ebp - 4]
sub esp, 4
leave
ret
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], 0x8045
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._error_code_messagebox
jmp 0x403902