joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001b6e8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x1002c4b0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1001b728
cmp byte [ebx], 0xa
jne 0x1001b728
or byte [edi + eax + 0x28], 4
jmp 0x1001b72d
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1001b82c
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1001b80f
inc eax
cmp dl, 0xd
je 0x1001b759
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1001b77f
cmp eax, ecx
jae 0x1001b78d
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1001b741
jmp 0x1001b82c
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001b80a
cmp dword [ebp - 0x10], 0
je 0x1001b80a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1002c4b0]
test byte [eax + edi + 0x28], 0x48
je 0x1001b7e4
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1001b7cf
mov byte [esi], dl
jmp 0x1001b7e0
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1002c4b0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1001b82c
cmp byte [ebp - 1], 0xa
jne 0x1001b7f3
cmp esi, ebx
jne 0x1001b7f3
mov byte [esi], 0xa
jmp 0x1001b82b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001c13a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1001b82c
mov byte [esi], 0xd
jmp 0x1001b82b
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1002c4b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1001b829
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1001b82c
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001b835
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x1002c4b0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1001b87b
cmp word [ebx], dx
jne 0x1001b87b
or byte [eax + edi + 0x28], 4
jmp 0x1001b880
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1001b9e3
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1001b9c3
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1001b8c1
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1001b8f7
cmp eax, edx
jae 0x1001b905
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1001b89c
jmp 0x1001b9e3
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001b9be
cmp dword [ebp - 0x18], 0
je 0x1001b9be
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1002c4b0]
test byte [eax + edi + 0x28], 0x48
je 0x1001b994
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1001b958
mov word [esi], cx
jmp 0x1001b98f
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1002c4b0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x1002c4b0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1002c4b0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1001b9e3
pop eax
cmp word [ebp - 4], ax
jne 0x1001b9a4
cmp esi, ebx
jne 0x1001b9a4
mov word [esi], ax
jmp 0x1001b9e0
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1001c13a
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1001b9e3
push 0xd
pop eax
jmp 0x1001b99f
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1002c4b0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1001b9dd
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1001b9e3
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001ed50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001ed7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001ed7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403b2c
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x40f030]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.00403b0b
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x403bce
cmp dword [ebp - 0x94], 5
jb 0x403ba1
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x403be8
call fcn.004033e5
test eax, eax
jl 0x4067c7
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00401d55
leave
ret
cmp dword [ebp - 0x88], 1
je 0x4067af
jmp 0x403ba1
cmp dword [ebp - 0x90], 0
jbe 0x403ba1
jmp 0x403b9d
cmp dword [ebp - 0x94], 4
ja 0x403b9d
je 0x403bdd
jmp 0x403ba1
mov byte [0x40f288], 1
jmp 0x403bbf

Function at 0x40468d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x40], bl
jne 0x4046b4
push 0x4046b8
mov byte [esi + 0x40], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x44], eax
cmp eax, ebx
jne 0x406ccb
pop esi
pop ebx
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x406dd8
push eax
call edi
push 0x406dc8
push dword [esi + 0x44]
mov dword [esi + 0xc], eax
call edi
push 0x406db4
push dword [esi + 0x44]
mov dword [esi + 0x10], eax
call edi
push 0x406da0
push dword [esi + 0x44]
mov dword [esi], eax
call edi
push 0x406d88
push dword [esi + 0x44]
mov dword [esi + 4], eax
call edi
push 0x406d74
push dword [esi + 0x44]
mov dword [esi + 8], eax
call edi
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x14], eax
pop edi
cmp ecx, ebx
je 0x406d61
cmp dword [esi + 0x10], ebx
je 0x406d61
cmp dword [esi], ebx
je 0x406d61
cmp dword [esi + 4], ebx
je 0x406d61
cmp dword [esi + 8], ebx
je 0x406d61
cmp eax, ebx
je 0x406d61
lea eax, [esi + 0x18]
push eax
push dword [esi + 0x38]
call ecx
mov dword [esi + 0x3c], eax
cmp eax, ebx
jne 0x4046b4
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x14], ebx
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x44], ebx
jmp 0x4046b4

Function at 0x407d37
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ebx, ecx
test esi, esi
jne 0x407d52
push 0x80004005
call fcn.0040788a
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x407d54
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x10009d93
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10009dd2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10009dd2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10009dd2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10009dd2
cmp dword [ecx + 0x74], 0xe
jbe 0x10009dd2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000ca4f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000caec
push ebx
push esi
call fcn.1000ca18
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000c9ac
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000ca99
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000caeb
push edi
push eax
call fcn.1000da0a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000cab9
call fcn.1000b4f4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000caea
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000c9ac
add esp, 0x20
test eax, eax
jne 0x1000cad8
push edi
call fcn.1000b4f4
jmp 0x1000cae0
push ebx
call fcn.1000b4f4
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1000cd59
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10014658
push 0x10014650
push str.FlsAlloc
push 0x1f
call fcn.1000cc75
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000cd8d
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001313c]
call esi
jmp 0x1000cd93
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000cdd7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10014668
push 0x10014660
push str.FlsGetValue
push 0x21
call fcn.1000cc75
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000ce0e
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001313c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000ce16
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10014670
push 0x10014668
push str.FlsSetValue
push 0x22
call fcn.1000cc75
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000ce50
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001313c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100124d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100124fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100124fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
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 0x401686
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404474], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4041cf], ebp
mov dword [0x404404], eax
mov dword [0x4041c7], eax
mov dword [0x4043f0], 0x30
mov dword [0x4043f4], 2
jmp 0x4016c6
mov dword [0x4043f8], 0x403051
mov dword [0x4043fc], 0
mov dword [0x404400], 0
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x40440c], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x404408], eax
mov dword [0x40441c], eax
mov dword [0x404418], 0x40439a
mov dword [0x404410], 0xf
push 0x4043f0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x4041c7]
push 0
push 0
push 0x1e0
push 0x1fe
push 0xfffff862
push 0xfffff8f8
push 0xcf0000
push 0x4043e7
push str.lunt
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x404468], eax
push 5
push dword [0x404468]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x404468]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x404420]
jmp 0x40179a
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x40178c
mov eax, dword [0x404428]
jmp 0x4017b5
call 0x402a06
ret
Function at 0x402330
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7d0b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x4e949c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esi + 4], 0
mov dword [esi], vtable.ATL::CComPolyObject_class_ATL::CAxHostWindow_.0
mov dword [esi + 0x58], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x28], eax
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0xe0], 0
mov dword [esi + 0xe4], 0
mov dword [esi + 0xf0], 0
mov eax, dword [esi + 0xd0]
and dword [esi + 0xa0], 0xffffff40
and eax, 0xfffffffb
or eax, 3
mov dword [esi + 0xd4], 0
push 8
mov dword [esi + 0xd0], eax
call dword [sym.imp.USER32.dll_GetSysColor]
and dword [esi + 0xa0], 0xffffffbf
xorps xmm0, xmm0
mov dword [esi + 0xd8], eax
mov ecx, esi
mov eax, dword [esi + 0xd0]
and eax, 0xffffffaf
movlpd qword [ebp - 0x18], xmm0
or eax, 0x28
mov dword [esi + 0xdc], 0x400
mov dword [esi + 0xd0], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0xac], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xb0], eax
movlpd qword [ebp - 0x18], xmm0
mov eax, dword [ebp - 0x18]
mov dword [esi + 0xb4], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xb8], eax
mov eax, dword [ebp + 8]
test eax, eax
movups xmmword [esi + 0x88], xmm0
cmovne ecx, eax
mov dword [esi + 0x98], 0
mov dword [esi + 0x9c], 0xcdcdcdcd
mov dword [esi + 0xe8], 4
mov dword [esi + 0xec], 0
mov dword [esi + 0x60], 0
mov byte [esi + 0x64], 1
mov dword [esi + 0xcc], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa8], 0
movups xmmword [esi + 0xbc], xmm0
mov dword [esi + 8], vtable.ATL::CComContainedObject_class_ATL::CAxHostWindow_.0
mov dword [esi + 0x2c], vtable.ATL::CComContainedObject_class_ATL::CAxHostWindow_.1.0
mov dword [esi + 0x30], vtable.ATL::CComContainedObject_class_ATL::CAxHostWindow_.2.0
mov dword [esi + 0x34], vtable.ATL::CComContainedObject_class_ATL::CAxHostWindow_.3.0
mov dword [esi + 0x38], vtable.ATL::CComContainedObject_class_ATL::CAxHostWindow_.4.0
mov dword [esi + 0x3c], vtable.ATL::CComContainedObject_class_ATL::CAxHostWindow_.5.0
mov dword [esi + 0x40], vtable.ATL::CComContainedObject_class_ATL::CAxHostWindow_.6.0
mov dword [esi + 0x48], vtable.ATL::CComContainedObject_class_ATL::CAxHostWindow_.7.0
mov dword [esi + 0x4c], vtable.ATL::CComContainedObject_class_ATL::CAxHostWindow_.8.0
mov dword [esi + 0x50], vtable.ATL::CComContainedObject_class_ATL::CAxHostWindow_.9.0
mov dword [esi + 0x54], vtable.ATL::CComContainedObject_class_ATL::CAxHostWindow_.10.0
mov dword [esi + 0x58], ecx
mov ecx, dword [0x4ec7ac]
mov dword [ebp - 4], 0
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x406330
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x4e949c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
cmp edi, eax
je 0x40636b
cmp dword [eax + 0x14], 0x10
mov ecx, eax
jb 0x406360
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, edi
call fcn.0040a7b0
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x208], 0x200
jb 0x40637d
mov esi, dword [esi]
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push 0
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x4063be
lea edx, [ebp - 0x204]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4063a6
sub edx, ecx
lea eax, [ebp - 0x204]
push edx
push eax
mov ecx, edi
call fcn.0040a7b0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00462391
mov esp, ebp
pop ebp
ret
Function at 0x409890
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8870
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4e949c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x20]
push 0x39
xor eax, eax
mov dword [ebp - 4], 0
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControl_
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov bl, 1
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.0040a8a0
lea eax, [ebp + 8]
mov byte [ebp - 4], bl
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00401da0
add esp, 0xc
lea ecx, [ebp - 0x44]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push ecx
push 0
push 0x20006
push 1
push 0
push 0
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x409932
xor bl, bl
jmp 0x409963
push 4
lea eax, [ebp + 0x24]
push eax
push 4
push 0
push esi
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x44]
xor ecx, ecx
movzx ebx, bl
test eax, eax
cmovne ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
movzx ebx, bl
test eax, eax
cmovne ebx, ecx
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40999d
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409993
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409a3a
push edx
push ecx
call fcn.00462596
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x4099e7
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4099dd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409a3f
push edx
push ecx
call fcn.00462596
add esp, 8
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x409a1d
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409a13
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409a44
push edx
push ecx
call fcn.00462596
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00462391
mov esp, ebp
pop ebp
ret
call fcn.0046f938
call fcn.0046f938
call fcn.0046f938
int3
Function at 0x40cd90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40cde9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40cde9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40cdda
cmp esi, edx
jae 0x40cde9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40cdc8
cmp esi, edx
jae 0x40cde9
cmp word [esi], 0
je 0x40cde9
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40d720
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x4e949c]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [ebp + 8]
mov eax, dword [ebp + 0x48]
push esi
movups xmmword [ebp - 0x48], xmm0
mov esi, dword [ebp + 0x8c]
movups xmm0, xmmword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x90]
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0x4c], esi
mov dword [edi + 0x40], esi
movups xmm0, xmmword [ebp + 0x28]
movups xmmword [ebp - 0x28], xmm0
movups xmm0, xmmword [ebp + 0x38]
movups xmmword [ebp - 0x18], xmm0
movups xmm0, xmmword [ebp + 0x4c]
movups xmmword [ebp - 0x8c], xmm0
movups xmm0, xmmword [ebp + 0x5c]
movups xmmword [ebp - 0x7c], xmm0
movups xmm0, xmmword [ebp + 0x6c]
movups xmmword [ebp - 0x6c], xmm0
movups xmm0, xmmword [ebp + 0x7c]
movups xmmword [ebp - 0x5c], xmm0
test esi, esi
jle 0x40d8a4
cmp esi, 0x40
jb 0x40d88d
lea edx, [esi - 1]
lea ecx, [ebp + esi - 0x49]
add edx, edi
cmp edi, ecx
ja 0x40d7c7
lea ecx, [ebp - 0x48]
cmp edx, ecx
jae 0x40d88d
lea ecx, [ebp + esi - 0x8d]
cmp edi, ecx
ja 0x40d7e0
lea ecx, [ebp - 0x8c]
cmp edx, ecx
jae 0x40d88d
mov ecx, esi
push ebx
and ecx, 0x8000003f
jns 0x40d7f0
dec ecx
or ecx, 0xffffffc0
inc ecx
mov ebx, esi
lea edx, [edi + 0x20]
sub ebx, ecx
mov dword [ebp - 0x98], edx
mov esi, edi
lea ecx, [ebp - 0x38]
sub esi, ecx
sub ecx, edi
mov dword [ebp - 0x90], ecx
lea ecx, [ebp - 0x7c]
sub ecx, edi
mov edi, dword [ebp - 0x90]
mov dword [ebp - 0x94], ecx
nop dword [eax]
movups xmm0, xmmword [ebp + eax - 0x48]
lea ecx, [ebp - 0x38]
add edx, eax
movups xmm1, xmmword [ebp + eax - 0x8c]
add ecx, eax
pxor xmm1, xmm0
movups xmm0, xmmword [ecx]
movups xmmword [esi + ecx], xmm1
mov ecx, dword [ebp - 0x94]
movups xmm1, xmmword [ebp + eax - 0x7c]
pxor xmm1, xmm0
movups xmm0, xmmword [ebp + eax - 0x6c]
movups xmmword [edx - 0x10], xmm1
movups xmm1, xmmword [ebp + eax - 0x28]
add eax, 0x40
pxor xmm1, xmm0
movups xmm0, xmmword [edi + edx]
movups xmmword [edx], xmm1
movups xmm1, xmmword [ecx + edx]
pxor xmm1, xmm0
movups xmmword [edx + 0x10], xmm1
mov edx, dword [ebp - 0x98]
cmp eax, ebx
jl 0x40d820
mov esi, dword [ebp - 0x9c]
mov edi, dword [ebp - 0xa0]
pop ebx
cmp eax, esi
jge 0x40d8a4
mov cl, byte [ebp + eax - 0x8c]
xor cl, byte [ebp + eax - 0x48]
mov byte [edi + eax], cl
inc eax
cmp eax, esi
jl 0x40d891
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00462391
mov esp, ebp
pop ebp
ret