joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10197cb0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push esi
call fcn.10197bb0
add esp, 8
test eax, eax
je 0x10197cd1
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp - 4]
test edi, edi
jne 0x10197ce9
push esi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__rmdir]
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wrmdir]
push edi
mov esi, eax
call sub.avutil_56.dll_av_free
add esp, 8
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1019bbb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
bswap edx
movups xmmword [eax], xmm0
mov dword [eax + 4], edx
bswap ecx
shr edx, 0x10
push ebx
mov ebx, dword [ebp + 0x14]
push esi
bswap ebx
xor dl, bl
xor esi, esi
or esi, ecx
mov byte [eax + 6], dl
mov ecx, esi
mov dword [ebp - 4], esi
mov edx, ebx
shrd edx, ecx, 8
mov ecx, esi
xor byte [eax + 7], dl
mov edx, ebx
shrd edx, ecx, 0x10
xor byte [eax + 8], dl
mov edx, esi
xor byte [eax + 0xa], dl
mov ecx, edx
mov esi, dword [ebp + 0xc]
shrd ebx, ecx, 0x18
mov ecx, edx
xor byte [eax + 9], bl
shr ecx, 8
xor byte [eax + 0xb], cl
mov ecx, edx
shr edx, 0x18
xor byte [eax + 0xd], dl
mov edx, 0xe
shr ecx, 0x10
xor byte [eax + 0xc], cl
sub esi, eax
mov cl, byte [esi + eax]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x1019bc24
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x101a5040
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x18], 0
lea eax, [esi + 0x18]
push edi
mov edi, dword [ebp + 0xc]
jle 0x101a507f
push 4
push eax
push 0x1002
push 0xffff
push edi
call ebx
test eax, eax
je 0x101a507f
push str.setsockopt_SO_RCVBUF_
push 0x18
push esi
call fcn.10001a3c
add esp, 0xc
cmp dword [esi + 0x1c], 0
lea eax, [esi + 0x1c]
jle 0x101a50ac
push 4
push eax
push 0x1001
push 0xffff
push edi
call ebx
test eax, eax
je 0x101a50ac
push str.setsockopt_SO_SNDBUF_
push 0x18
push esi
call fcn.10001a3c
add esp, 0xc
cmp dword [esi + 0x20], 0
lea eax, [esi + 0x20]
jle 0x101a50d3
push 4
push eax
push 1
push 6
push edi
call ebx
test eax, eax
je 0x101a50d3
push str.setsockopt_TCP_NODELAY_
push 0x18
push esi
call fcn.10001a3c
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x101c4c80
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 0
push 0xffffffffffffffff
push esi
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
jle 0x101c4cf3
push ebx
push 2
push edi
call sub.avutil_56.dll_av_mallocz_array
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x101c4cc8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
pop ebx
pop edi
pop esi
mov dword [eax], 0xc
or eax, 0xffffffff
pop ebp
ret
push edi
push ebx
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmkdir]
push ebx
mov esi, eax
call sub.avutil_56.dll_av_free
add esp, 8
mov eax, esi
pop ebx
pop edi
pop esi
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
add esp, 4
pop edi
pop esi
pop ebp
ret

Function at 0x101c7730
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x10]
shr esi, 2
mov edx, dword [ebx]
test esi, esi
je 0x101c7764
push edi
mov edi, dword [ebp + 0xc]
sub edi, ecx
nop dword [eax]
mov eax, dword [ecx]
lea ecx, [ecx + 4]
xor eax, edx
add edx, dword [ebp + 0x14]
mov dword [edi + ecx - 4], eax
sub esi, 1
jne 0x101c7750
pop edi
pop esi
mov dword [ebx], edx
pop ebx
pop ebp
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x811004]
jne 0x40100a
repz ret
jmp fcn.00401424

Function at 0x406ecc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x811004]
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.00404a1c
and dword [ebp - 0x14], 0
cmp dword [0x813d78], 0
mov dword [ebp - 0x18], eax
jne 0x406f7f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407027
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x407027
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x813d78], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x813d7c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x813d80], eax
call edi
push eax
call esi
mov dword [0x813d88], eax
test eax, eax
je 0x406f7f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x813d84], eax
mov eax, dword [0x813d84]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x406fd8
cmp dword [0x813d88], ecx
je 0x406fd8
push eax
call esi
push dword [0x813d88]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x406fd8
test ebx, ebx
je 0x406fd8
call edi
test eax, eax
je 0x406fcf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x406fcf
test byte [ebp - 8], 1
jne 0x406fd8
or dword [ebp + 0x10], 0x200000
jmp 0x40700b
mov eax, dword [0x813d7c]
cmp eax, dword [ebp - 0x18]
je 0x40700b
push eax
call esi
test eax, eax
je 0x40700b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40700b
mov eax, dword [0x813d80]
cmp eax, dword [ebp - 0x18]
je 0x40700b
push eax
call esi
test eax, eax
je 0x40700b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x813d78]
call esi
test eax, eax
je 0x407027
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407029
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

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

Disassembly:
mov eax, dword [esp + 4]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x100144b
push esi
lea ecx, [eax + 8]
call dword [sym.imp.ulib.dll_public:_class_WSTRING____thiscall_PATH::QueryFullPathString_void_const]
mov esi, eax
cmp esi, ebx
je 0x100144a
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x1001442
cmp word [eax], bx
je 0x1001442
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1001442
test ah, 0x10
je 0x1001442
mov bl, 1
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
pop esi
mov al, bl
pop ebx
ret 4
Function at 0x402280
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
push edi
lea ebp, [ecx + 0x120]
push esi
push ebx
mov ebx, 0x3020100
sub esp, 8
mov dword [ecx + 0x120], ebx
mov esi, dword [ecx + 0x118]
mov dword [esp], ecx
mov ecx, 1
lea esi, [esi]
lea edi, [edi]
add ebx, 0x4040404
mov dword [ebp + ecx*4], ebx
add ecx, 1
cmp esi, ecx
jae 0x4022b0
test edx, edx
je 0x40231c
mov esi, dword [esp]
lea edi, [eax + edx]
mov dword [esp + 4], edi
xor edi, edi
lea edx, [esi + 0x11f]
mov esi, esi
lea edi, [edi]
movzx esi, byte [eax]
lea ecx, [ebp + esi]
or edi, esi
mov esi, dword [esp]
movzx ebx, byte [ecx]
mov byte [eax], bl
mov byte [esi + 0x11f], bl
mov esi, esi
lea edi, [edi]
movzx ebx, byte [ecx - 1]
sub ecx, 1
mov byte [ecx + 1], bl
cmp edx, ecx
jne 0x402300
add eax, 1
cmp dword [esp + 4], eax
jne 0x4022e0
shr edi, 2
mov edx, edi
mov eax, dword [esp]
mov dword [eax + 0x118], edx
add esp, 8
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x408440
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
test eax, eax
je 0x4085d4
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x20], eax
lea eax, [ebx + 8]
mov dword [ebx + 0x5c], 0
mov dword [esp], eax
call fcn.00401a50
movzx eax, byte [ebx + 0x230]
mov dword [ebx], 0
mov dword [ebx + 0x220], 0
mov dword [ebx + 0x224], 0
mov dword [ebx + 0x228], 0
mov dword [ebx + 0x22c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 4], 0
and eax, 0xffffffd0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x110], 0
or eax, 0x10
mov dword [ebx + 0x114], 0
mov dword [ebx + 0xa8], 0
mov byte [ebx + 0x230], al
mov dword [ebx + 0xac], 0
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x238], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x240], 0
mov dword [ebx + 0x244], 0
mov dword [ebx + 0xfc], 0
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x74], 0
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x8c], 0
mov dword [ebx + 0x88], 0
mov dword [ebx + 0x9c], 0
mov dword [ebx + 0x98], 0
mov dword [ebx + 0x234], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x4c], 0x10
mov dword [ebx + 0x50], 0xf
mov dword [ebx + 0x54], 0xb
mov dword [ebx + 0x58], 4
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x118], 0x3f
call fcn.00401630
mov dword [ebx + 0x248], eax
call fcn.004017f0
mov dword [ebx + 0x24c], eax
add esp, 0x18
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x18], 0x408430
mov dword [ebx + 0x1c], 0x408420
mov dword [ebx + 0x20], 0
jmp 0x408465
Function at 0x444610
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, eax
mov edx, 0x4ba620
sub esp, 0x18
mov eax, dword [eax + 0xac]
mov dword [esp + 4], str.__s_:
test eax, eax
cmove eax, edx
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [ebx + 0xd8]
call fcn.00444540
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 4
mov dword [esp + 4], 1
mov dword [esp], 0x4ba666
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebx + 0xdc]
add esp, 0x18
pop ebx
jmp fcn.00444540

Function at 0x444870
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, eax
sub esp, 0x18
mov eax, dword [eax + 0xc0]
mov dword [esp + 8], 0x80000
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0xa4]
mov dword [esp], eax
call sub.msvcrt.dll_fread
add dword [ebx + 0xd8], eax
mov dword [ebx + 0xc8], eax
mov eax, dword [ebx + 0xa4]
mov dword [ebx + 0xcc], eax
mov eax, dword [ebx + 0xc0]
mov dword [esp], eax
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x4448d2
add esp, 0x18
mov eax, 1
pop ebx
ret
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov edx, dword [ebx + 0xac]
mov dword [esp + 0xc], eax
mov ecx, 0x4ba620
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], str.failed_to_read_input___s_:__s_n
test edx, edx
cmove edx, ecx
add eax, 0x40
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
add esp, 0x18
xor eax, eax
pop ebx
ret

Function at 0x444920
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov ecx, dword [eax + 0xa8]
mov edx, dword [eax + 0xd4]
sub edx, ecx
add dword [eax + 0xdc], edx
test edx, edx
je 0x444944
mov esi, dword [eax + 0x1c]
test esi, esi
je 0x444951
mov esi, 1
add esp, 0x14
mov eax, esi
pop ebx
pop esi
ret
mov ebx, eax
mov eax, dword [eax + 0xc4]
mov dword [esp + 8], edx
mov dword [esp], ecx
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebx + 0xc4]
mov dword [esp], eax
call sub.msvcrt.dll_ferror
test eax, eax
je 0x444944
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov edx, dword [ebx + 0xb0]
mov dword [esp + 0xc], eax
mov ecx, 0x4ba620
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], str.failed_to_write_output___s_:__s_n
test edx, edx
cmove edx, ecx
add eax, 0x40
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x444949

Function at 0x445130
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.00445190
Function at 0x445190
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x4c13a0]
test esi, esi
jle 0x44527d
mov edi, dword [0x4c13a4]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x4451c4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x445276
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x4451b0
mov dword [esp], eax
mov esi, eax
call fcn.00445ae0
test eax, eax
mov edi, eax
je 0x4452ba
mov esi, dword [0x4c13a4]
lea ebx, [ebx + ebx*2]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call fcn.00445bf0
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x4c13a4]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x44529a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x44526f
sub eax, 0x40
and eax, 0xffffffbf
je 0x44526f
mov eax, dword [esp + 0x20]
add ebx, dword [0x4c13a4]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x445284
add dword [0x4c13a0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor ebx, ebx
jmp 0x4451ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00445130
mov eax, dword [0x4c13a4]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00445130
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00445130
lea esi, [esi]

Function at 0x445750
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4c13b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4c13b0]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x4457a5
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x44579e
test esi, esi
je 0x44579e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x445780
mov dword [esp], 0x4c13b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x447485
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
Function at 0x401200
Capabilities:
Extract resource via kernel32 functions

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

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52e4a6
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5886f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call fcn.0040c080
lea eax, [edi + 4]
lea ecx, [esi + 4]
push eax
mov dword [ebp - 4], 0
call fcn.0040c080
lea edx, [edi + 8]
lea ecx, [esi + 8]
push edx
mov byte [ebp - 4], 1
call fcn.0040c080
lea eax, [edi + 0xc]
lea ecx, [esi + 0xc]
push eax
mov byte [ebp - 4], 2
call fcn.0040c080
lea edx, [edi + 0x10]
lea ecx, [esi + 0x10]
push edx
mov byte [ebp - 4], 3
call fcn.0040c080
lea eax, [edi + 0x14]
lea ecx, [esi + 0x14]
push eax
mov byte [ebp - 4], 4
call fcn.0040c080
lea edx, [edi + 0x18]
lea ecx, [esi + 0x18]
push edx
mov byte [ebp - 4], 5
call fcn.0040c080
lea eax, [edi + 0x1c]
lea ecx, [esi + 0x1c]
push eax
mov byte [ebp - 4], 6
call fcn.0040c080
lea edx, [edi + 0x20]
lea ecx, [esi + 0x20]
push edx
mov byte [ebp - 4], 7
call fcn.0040c080
lea eax, [edi + 0x24]
lea ecx, [esi + 0x24]
push eax
mov byte [ebp - 4], 8
call fcn.0040c080
lea edx, [edi + 0x28]
lea ecx, [esi + 0x28]
push edx
mov byte [ebp - 4], 9
call fcn.0040c080
lea eax, [edi + 0x2c]
push eax
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 0xa
call fcn.0040c080
mov ecx, dword [edi + 0x30]
mov dword [esi + 0x30], ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4031b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52ee88
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5886f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
call fcn.00419b9d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4031f1
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, 0x55c3b6
mov dword [ebp - 4], 0
test ecx, 0xffff0000
jne 0x40322d
mov edx, ecx
movzx edi, dx
push edi
call fcn.00419ab8
test eax, eax
je 0x403239
push edi
push eax
mov ecx, esi
call fcn.0040bf10
jmp 0x403239
push 0x55c3b6
mov ecx, esi
call fcn.0040aa00
or eax, 0xffffffff
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x38], 2
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x408710
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52fa40
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push esi
mov eax, dword [0x5886f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x55c28c
lea eax, [esi + 0x100]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.0040b0c0
lea edx, [esi + 0x104]
push edx
push eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], 0
call fcn.0040b000
add esp, 0x18
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40878b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x54]
call sym.Autorun.exe_public:_void___thiscall_CBootstrapConfigItem::constructor_void_
push 0x55f3fc
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x18]
push edx
mov byte [ebp - 4], 3
call fcn.0040b0c0
add esp, 8
mov ecx, esp
mov byte [ebp - 4], 4
mov dword [ebp - 0x14], esp
add esi, 0xfc
push esi
push eax
push ecx
call fcn.0040b000
add esp, 8
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.HP_Installer_Launch
call fcn.0040a850
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
mov byte [ebp - 4], 6
call fcn.0040a850
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 4
call dword [sym.imp.BootstrapLibrary.dll_public:_bool___thiscall_CBootstrapPrereqCheck::RegistrySetString_struct_HKEY_____class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t____]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408822
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x54]
call sym.Autorun.exe_public:_void___thiscall_CBootstrapConfigItem::destructor_void_
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408850
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret