joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40734f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x45a571
call fcn.00455ad1
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov edi, edx
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x4073a7
call fcn.0040612c
mov esi, eax
jmp 0x4074b1
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x4073c0
call fcn.0040612c
jmp 0x4074a3
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, esi
je 0x4073b6
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x424], edi
cmp eax, edi
jae 0x4073fd
mov esi, 0x8007000e
jmp 0x4074a5
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
cmp ecx, esi
ja 0x407412
cmp eax, 0xffffffff
jbe 0x40741c
push 0x80070216
call fcn.004052e7
cmp eax, 0x400
jbe 0x407449
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00406109
jmp 0x407455
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], esi
je 0x4073f3
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x420]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x4073b6
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0x42c]
call fcn.004071ef
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4074ca
lea eax, [ebp - 0x418]
call fcn.004065c4
mov eax, esi
call fcn.00455b2d
ret 0xc
Function at 0x40a7b3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a817
cmp dword [ebp + 0xc], 1
je 0x40a7ef
cmp dword [ebp + 0xc], 2
je 0x40a7ef
push 0xd
pop eax
jmp 0x40a817
mov eax, dword [ebp - 4]
test edi, edi
je 0x40a811
test eax, eax
je 0x40a80c
test al, 1
jne 0x40a7ea
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x40a811
jmp 0x40a7ea
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x40faa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor eax, eax
push esi
test edi, edi
je 0x40faca
mov esi, ecx
sub esi, edx
mov ebx, eax
and ebx, 7
mov bl, byte [ebx + 0x46e880]
lea ecx, [eax + edx]
xor bl, byte [esi + ecx]
inc eax
mov byte [ecx], bl
cmp eax, edi
jb 0x40fab2
mov dword [ebp - 4], 0x6257
mov eax, dword [ebp - 4]
imul eax, eax, 0x7eb6
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fstp qword [ebp - 0x10]
sar dword [ebp - 4], 0x1f
fld qword [ebp - 0x10]
fmul qword [0x464f28]
fadd qword [ebp - 0x10]
fstp qword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
fild dword [ebp - 8]
fmul qword [ebp - 0x10]
call fcn.00426fd0
pop esi
mov dword [ebp - 4], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419f60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x456908
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push edi
mov eax, dword [0x46d0a0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x38], esi
cmp esi, edi
je 0x419f9d
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
mov dword [esp + 0x80], edi
cmp esi, edi
je 0x41a10f
lea eax, [esp + 0x2c]
push eax
push 0x400
push 1
lea ecx, [ebp + 8]
push ecx
mov dword [esp + 0x3c], 0xffffffff
mov edx, dword [esi]
mov edx, dword [edx + 0x14]
push 0x45b360
push esi
call edx
mov dword [esp + 0x24], 0x17b7
mov ebx, eax
mov eax, dword [esp + 0x24]
imul eax, eax, 0x15e6
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
fstp qword [esp + 0x3c]
sar dword [esp + 0x24], 0x1f
fld qword [esp + 0x3c]
fmul qword [0x465000]
fadd qword [esp + 0x3c]
fstp qword [esp + 0x3c]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x30], ecx
fild dword [esp + 0x30]
fmul qword [esp + 0x3c]
call fcn.00426fd0
mov dword [esp + 0x24], eax
cmp ebx, edi
jge 0x41a0ea
mov edx, dword [esi]
mov ecx, dword [edx]
lea eax, [esp + 0x28]
push eax
push 0x462af0
push esi
mov dword [esp + 0x34], edi
call ecx
mov byte [esp + 0x80], 1
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x41a080
mov ebx, eax
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x41a121
mov dword [esp + 0x34], edi
lea eax, [esp + 0x2c]
push eax
push 3
mov byte [esp + 0x88], 2
mov edx, dword [ebx]
mov ecx, dword [edx + 0x1c]
push edi
push ebx
call ecx
push edi
mov ebx, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
fld qword [0x464ff8]
mov ecx, 1
fstp qword [esp + 0x3c]
nop
xor edx, edx
mov eax, 0x6ae9
div ecx
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
fadd qword [esp + 0x3c]
fstp qword [esp + 0x3c]
cmp ecx, 2
je 0x41a0b7
inc ecx
cmp ecx, 0xbe2
jl 0x41a090
fld qword [esp + 0x3c]
sub esp, 8
fstp qword [esp]
push 0x4607c8
call fcn.00423a88
mov byte [esp + 0x8c], 0
mov eax, dword [esp + 0x34]
add esp, 0xc
test eax, eax
je 0x41a0e6
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
test ebx, ebx
js 0x41a0fc
mov ecx, dword [esp + 0x2c]
mov eax, dword [ebp + 0xc]
push ecx
mov ebx, esi
call fcn.0040a598
add esp, 4
mov dword [esp + 0x80], 0xffffffff
mov edx, dword [esi]
mov eax, dword [edx + 8]
push esi
call eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [esp + 0x34], edi
test edi, edi
jne 0x41a05f
push 0x8007000e
call fcn.004052e7
int3
Function at 0x41c080
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, 0x5a4d
push esi
cmp word [edi], ax
je 0x41c098
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [edi + 0x3c]
cmp dword [esi + edi], 0x4550
jne 0x41c091
fld qword [0x464f20]
mov dword [ebp - 4], 0x4f22
fstp qword [ebp - 0x10]
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x6c4c
mov dword [ebp - 4], ecx
fild dword [ebp - 4]
fld qword [ebp - 0x10]
fld qword [0x464f18]
fmul st(1), st(0)
fxch st(2)
fsubrp st(1)
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fldz
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x41c0ed
fld qword [ebp - 0x10]
fchs
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
call fcn.00426fd0
fld qword [0x464f08]
mov dword [ebp - 4], eax
mov dword [ebp - 4], 0x3cd6
fstp qword [ebp - 0x10]
mov edx, dword [ebp - 4]
imul edx, edx, 0x4103
mov dword [ebp - 4], edx
fild dword [ebp - 4]
fld qword [ebp - 0x10]
fmulp st(3)
fsubrp st(2)
fxch st(1)
fstp qword [ebp - 0x10]
fcomp qword [ebp - 0x10]
fnstsw ax
test ah, 0x41
jne 0x41c135
fld qword [ebp - 0x10]
fchs
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
call fcn.00426fd0
mov esi, dword [esi + edi + 0x98]
mov dword [ebp - 4], eax
test esi, esi
je 0x41c091
lea eax, [esi + edi]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41e1c1
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
fld qword [0x45ce78]
push ebx
push esi
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
push edi
push ecx
mov ebx, ecx
push ecx
fstp qword [esp]
mov edi, eax
not ebx
call fcn.00423b50
fadd qword [0x464f30]
pop ecx
pop ecx
fstp qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0x45ce70]
fadd qword [0x464f18]
fstp qword [ebp - 0x10]
fld qword [ebp - 8]
fldz
fucompp
fnstsw ax
test ah, 0x44
jnp 0x41e21a
fld qword [ebp - 0x10]
fdiv qword [ebp - 8]
fstp qword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov esi, 0xff
cmp eax, 8
jb 0x41e317
shr eax, 3
mov dword [ebp - 4], eax
movzx ecx, byte [edi]
fld qword [0x45ce68]
xor ecx, ebx
and ecx, esi
mov eax, ebx
shr eax, 8
xor eax, dword [ecx*4 + 0x45b470]
movzx ecx, byte [edi + 1]
xor ecx, eax
and ecx, esi
shr eax, 8
xor eax, dword [ecx*4 + 0x45b470]
movzx ecx, byte [edi + 2]
xor ecx, eax
and ecx, esi
shr eax, 8
xor eax, dword [ecx*4 + 0x45b470]
movzx ecx, byte [edi + 3]
xor ecx, eax
and ecx, esi
shr eax, 8
xor eax, dword [ecx*4 + 0x45b470]
movzx ecx, byte [edi + 4]
xor ecx, eax
and ecx, esi
shr eax, 8
xor eax, dword [ecx*4 + 0x45b470]
movzx ecx, byte [edi + 5]
xor ecx, eax
and ecx, esi
shr eax, 8
xor eax, dword [ecx*4 + 0x45b470]
movzx ecx, byte [edi + 6]
xor ecx, eax
and ecx, esi
shr eax, 8
xor eax, dword [ecx*4 + 0x45b470]
movzx ecx, byte [edi + 7]
xor ecx, eax
and ecx, esi
shr eax, 8
xor eax, dword [ecx*4 + 0x45b470]
xor ecx, ecx
add edi, 8
fstp qword [ebp - 0x18]
mov ebx, eax
inc ecx
mov eax, 0x3414
cdq
idiv ecx
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fadd qword [ebp - 0x18]
fstp qword [ebp - 0x18]
cmp ecx, 2
je 0x41e2f5
inc ecx
cmp ecx, 0xd97
jl 0x41e2d3
fld qword [ebp - 0x18]
push ecx
push ecx
fstp qword [esp]
push 0x4607c8
call fcn.00423a88
sub dword [ebp + 8], 8
add esp, 0xc
dec dword [ebp - 4]
jne 0x41e231
cmp dword [ebp + 8], 0
je 0x41e334
movzx eax, byte [edi]
xor eax, ebx
and eax, esi
shr ebx, 8
xor ebx, dword [eax*4 + 0x45b470]
inc edi
dec dword [ebp + 8]
jne 0x41e31d
mov dword [ebp + 8], 0x5e61
mov dword [ebp - 4], 0x68da
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
push ecx
push ecx
fmul qword [0x464f30]
fstp qword [esp]
call fcn.004254b0
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
fild dword [ebp - 0xc]
mov dword [ebp + 8], eax
fmulp st(1)
fild dword [ebp + 8]
faddp st(1)
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fstp qword [esp]
push str._lf_
call fcn.00423a88
add esp, 0xc
pop edi
mov eax, ebx
pop esi
not eax
pop ebx
leave
ret
Function at 0x423611
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x46e8c0], 0
push esi
push edi
jne 0x423587
call fcn.004234f3
test eax, eax
je 0x4235cc
mov eax, dword [0x46e8c0]
cmp eax, 1
jne 0x4235a8
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4235cc
jmp 0x42360e
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x42360e
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4235d0
xor eax, eax
jmp 0x42360e
mov eax, dword [esi]
push dword [0x46e8c0]
call edi
mov edi, eax
test edi, edi
je 0x4235f2
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x42360e
lea edi, [esi + 0xff0]
push esi
push dword [0x46e8c0]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x4235f8
mov eax, esi
pop edi
pop esi
ret
jmp 0x423573

Function at 0x42393e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46d0a0]
jne 0x423948
repz ret
jmp fcn.004270c7
Function at 0x4317a1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x46d0a0]
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.0042bc88
and dword [ebp - 0x14], 0
cmp dword [0x46f70c], 0
mov dword [ebp - 0x18], eax
jne 0x431854
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4318fc
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4318fc
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x46f70c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x46f710], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x46f714], eax
call edi
push eax
call esi
mov dword [0x46f71c], eax
test eax, eax
je 0x431854
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x46f718], eax
mov eax, dword [0x46f718]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4318ad
cmp dword [0x46f71c], ecx
je 0x4318ad
push eax
call esi
push dword [0x46f71c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4318ad
test ebx, ebx
je 0x4318ad
call edi
test eax, eax
je 0x4318a4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4318a4
test byte [ebp - 8], 1
jne 0x4318ad
or dword [ebp + 0x10], 0x200000
jmp 0x4318e0
mov eax, dword [0x46f710]
cmp eax, dword [ebp - 0x18]
je 0x4318e0
push eax
call esi
test eax, eax
je 0x4318e0
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4318e0
mov eax, dword [0x46f714]
cmp eax, dword [ebp - 0x18]
je 0x4318e0
push eax
call esi
test eax, eax
je 0x4318e0
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x46f70c]
call esi
test eax, eax
je 0x4318fc
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4318fe
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042393e
leave
ret
Function at 0x402230
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x130
mov eax, dword [0x47b400]
xor eax, esp
mov dword [esp + 0x12c], eax
push esi
push edi
push 0
push 2
mov dword [esp + 0x10], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
test esi, esi
jne 0x40229b
push 0x405b10
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Failed_to_get_list_of_processes.
call fcn.004058f0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.00464d28
mov esp, ebp
pop ebp
ret
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x4022e9
push 0x405b10
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Failed_to_get_first_element_in_process_list.
call fcn.004058f0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.00464d28
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
nop
mov eax, str.steam.exe
lea ecx, [esp + 0x2c]
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x402320
test dl, dl
je 0x40231c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x402320
add ecx, 2
add eax, 2
test dl, dl
jne 0x402300
xor eax, eax
jmp 0x402325
sbb eax, eax
or eax, 1
test eax, eax
je 0x40236b
lea eax, [esp + 8]
push eax
push esi
call edi
cmp eax, 1
je 0x4022f0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.No_process_with_the_name_
push 0x405b10
call fcn.004058f0
mov edx, str.steam.exe
mov ecx, eax
call fcn.004058f0
push ecx
mov edx, str._could_be_found.
mov ecx, eax
jmp 0x402275
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x134]
mov eax, dword [esp + 0x10]
pop edi
pop esi
xor ecx, esp
call fcn.00464d28
mov esp, ebp
pop ebp
ret
Function at 0x402390
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x418
mov eax, dword [0x47b400]
xor eax, esp
mov dword [esp + 0x414], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0xc], esi
cmp dword [eax + 0x14], 0xf
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x10], 0x400
jbe 0x4023cc
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push 0
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402417
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Error_opening_registry_key:
push 0x405b10
push eax
call fcn.004058f0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0
push 0x475fe1
jmp 0x40248a
cmp dword [edi + 0x14], 0xf
jbe 0x40241f
mov edi, dword [edi]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push edi
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x402475
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Error_reading_registry_value:
push 0x405b10
push eax
call fcn.004058f0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x475fe1
jmp 0x40248a
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
dec eax
push eax
lea eax, [esp + 0x1c]
push eax
xorps xmm0, xmm0
mov ecx, esi
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00406070
mov ecx, dword [esp + 0x41c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.00464d28
mov esp, ebp
pop ebp
ret
Function at 0x403080
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov eax, dword [0x47b400]
xor eax, esp
mov dword [esp + 4], eax
cmp dword [edx + 0x14], 0xf
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
jbe 0x4030a4
mov edx, dword [edx]
lea eax, [esp + 8]
push eax
push 0x20006
push 0
push edx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4030f9
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Error_opening_registry_key:
push 0x405b10
push eax
call fcn.004058f0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00464d28
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 0xf
mov ecx, esi
jbe 0x403103
mov ecx, dword [esi]
cmp dword [edi + 0x14], 0xf
jbe 0x40310b
mov edi, dword [edi]
mov eax, dword [esi + 0x10]
inc eax
push eax
push ecx
push 1
push 0
push edi
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x403167
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Error_writing_registry_value:
push 0x405b10
push eax
call fcn.004058f0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00464d28
mov esp, ebp
pop ebp
ret
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0xc]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.00464d28
mov esp, ebp
pop ebp
ret
Function at 0x404640
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x40466c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x404694
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x40469a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x404702
jg 0x4046b1
test esi, esi
je 0x404702
test ecx, ecx
jl 0x4046fd
jg 0x4046bb
test eax, eax
je 0x4046fd
cmp edi, ecx
jg 0x4046cf
jl 0x4046c5
cmp esi, eax
jae 0x4046cf
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x404705
mov ecx, dword [ebp + 8]
jmp 0x40470f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x404729
jg 0x40470f
test esi, esi
je 0x404729
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x404729
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc