joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409530
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x34
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_puts]
push esi
push edi
mov ebx, ecx
push 0x414dac
call ebp
add esp, 4
push 0
push 0
push 0
push 0x414da4
call dword [sym.imp.GDI32.dll_CreateDCA]
mov esi, eax
push 0x414dac
mov dword [esp + 0x1c], esi
call ebp
add esp, 4
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
push 0x414da0
mov dword [esp + 0x18], edi
call ebp
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
add esp, 4
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push 0x414d9c
mov dword [esp + 0x14], eax
call ebp
mov edx, dword [esp + 0x14]
add esp, 4
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x414d98
call ebp
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
add esp, 4
push 0xcc0020
push 0
push 0
push esi
push eax
push ecx
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push str.23DO
call ebp
mov eax, dword [ebx + 0x18]
mov cx, word [ebx + 0x1c]
mov edx, dword [ebx + 0x14]
add esp, 4
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 4]
mov word [esp + 0x2a], cx
mov ecx, 0xa
lea esi, [esp + 0x1c]
mov edi, eax
mov dword [esp + 0x1c], 0x28
mov dword [esp + 0x20], edx
mov word [esp + 0x28], 1
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebx + 0x10]
push 0
push eax
mov eax, dword [ebx + 4]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
add edx, eax
mov eax, dword [ebx + 0x18]
push edx
push eax
push 0
push edi
push esi
call dword [sym.imp.GDI32.dll_GetDIBits]
push 0x414dac
call ebp
add esp, 4
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push 0x414da0
call ebp
mov ecx, dword [esp + 0x1c]
add esp, 4
push ecx
call esi
push 0x414d9c
call ebp
add esp, 4
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0x414d98
call ebp
push str.23DO
call ebp
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
Function at 0x426beb
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x46a004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
xor eax, eax
push esi
push edi
push 7
pop ecx
lea edi, [ebp - 0x20]
xor esi, esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x426c58
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x426c34
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x426c3b
mov esi, 0x80004005
push esi
push 0x1fc
push str.msuengine.cpp
call fcn.00403821
push str.Failed_to_stop_wusa_service.
push esi
call fcn.00440237
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0042e06f
mov esp, ebp
pop ebp
ret 4

Function at 0x429c84
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov eax, dword [ebx + 4]
mov edi, 0x44b534
mov dword [ebp - 4], esi
test eax, eax
je 0x429ca3
mov edx, dword [eax]
jmp 0x429cb0
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x429cae
mov edx, dword [ecx]
jmp 0x429cb0
mov edx, edi
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x429cb9
mov edi, dword [ecx]
test eax, eax
je 0x429ccb
xor eax, eax
test ecx, ecx
setne al
add eax, 0x20000150
jmp 0x429cda
mov eax, dword [ebx + 8]
neg eax
sbb eax, eax
and eax, 3
add eax, 0x2000014f
push dword [ebp + 0xc]
push str.copy
push edi
push edx
push eax
push 2
call fcn.00405602
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 4]
add esp, 0x18
push eax
push edi
call fcn.00444440
test eax, eax
je 0x429d58
mov eax, dword [ebp - 4]
test al, 1
je 0x429d58
and eax, 0xfffffffe
push eax
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x429d58
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x429d30
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x429d37
mov esi, 0x80004005
push esi
push 0x538
push str.apply.cpp
call fcn.00403821
push edi
push str.Failed_to_clear_readonly_bit_on_payload_destination_path:__ls
push esi
call fcn.00440237
add esp, 0xc
jmp 0x429dd6
push esi
lea eax, [ebx + 0x20]
push eax
push ebx
push fcn.00429b69
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x429dd6
cmp dword [ebx + 0x20], esi
je 0x429d96
mov esi, 0x80070642
push esi
push 0x542
push str.apply.cpp
call fcn.00403821
push edi
push dword [ebp + 0xc]
push str.BA_aborted_copy_of_payload_from:__ls_to:__ls.
jmp 0x429dcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x429dad
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x429db4
mov esi, 0x80004005
push esi
push 0x546
push str.apply.cpp
call fcn.00403821
push edi
push dword [ebp + 0xc]
push str.Failed_attempt_to_copy_payload_from:__ls_to:__ls.
push esi
call fcn.00440237
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4317ec
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x460ee8
push str.FlsAlloc
push 0
call fcn.0043176c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43181e
push dword [ebp + 8]
mov ecx, esi
call fcn.0042ea87
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x431860
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x460f18
push str.FlsSetValue
push 3
call fcn.0043176c
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x431894
mov ecx, esi
call fcn.0042ea87
call esi
jmp 0x43189a
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret
Function at 0x455930
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x998
mov eax, dword [0x7be738]
xor eax, esp
mov dword [esp + 0x994], eax
movsd xmm2, qword [ecx + 0x160]
xor eax, eax
movsd xmm0, qword [0x74eb30]
movsd xmm3, qword [0x791430]
push esi
mov dword [esp + 0xc], ecx
lea esi, [esp + 0x34]
xor ecx, ecx
movsd qword [esp + 0x24], xmm0
push edi
mov dword [esp + 0x14], 3
mov dword [esp + 8], eax
movsd qword [esp + 0x30], xmm2
mov dword [esp + 0xc], ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], 0x64
jmp 0x4559a0
mov edx, dword [esp + 0x10]
xor edi, edi
mov edx, dword [edx + eax*4 + 0x1d88]
lea eax, [esi + 8]
mov dword [esp + 0x24], edx
mov esi, eax
mov dword [esp + 0x1c], eax
lea ebx, [ebx]
lea eax, [edx + edi]
inc edi
cdq
lea esi, [esi + 0x10]
idiv dword [esp + 0x20]
lea eax, [ecx + edx]
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x10]
movsd xmm1, qword [eax + ecx*8 + 0x178]
mov eax, dword [esp + 0xc]
add eax, 0xf
add eax, edx
mov edx, dword [esp + 0x10]
lea eax, [eax + eax*2]
movsd xmm0, qword [edx + eax*8]
mulsd xmm0, xmm2
divsd xmm0, xmm1
xorpd xmm0, xmm3
movsd qword [esi - 0x18], xmm0
movsd xmm0, qword [edx + ecx*8 + 0x170]
mulsd xmm0, xmm2
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x24]
divsd xmm0, xmm1
xorpd xmm0, xmm3
movsd qword [esi - 0x10], xmm0
cmp edi, 0x32
jl 0x4559c0
mov esi, dword [esp + 0x18]
mov edi, 0x32
jmp 0x455a40
movsd xmm1, qword [ebp + 0x10]
movsd xmm0, qword [ebp + 8]
subsd xmm0, qword [esi]
subsd xmm1, qword [esi + 8]
mulsd xmm0, xmm0
mulsd xmm1, xmm1
addsd xmm0, xmm1
call fcn.004ce1ce
movsd xmm1, qword [esp + 0x28]
comisd xmm1, xmm0
mov eax, dword [esp + 8]
jbe 0x455a90
movsd xmm1, qword [0x74eb28]
comisd xmm1, xmm0
jbe 0x455a90
mov edx, eax
movsd qword [esp + 0x28], xmm0
mov dword [esp + 0x14], edx
jmp 0x455a94
mov edx, dword [esp + 0x14]
add esi, 0x10
dec edi
jne 0x455a40
mov ecx, dword [esp + 0xc]
inc eax
movsd xmm2, qword [esp + 0x30]
add ecx, 0x64
movsd xmm3, qword [0x791430]
mov dword [esp + 0x18], esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
cmp ecx, 0x12c
jl 0x4559a0
mov ecx, dword [esp + 0x99c]
mov eax, edx
pop edi
pop esi
xor ecx, esp
call fcn.004ce128
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4a5760
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [ebx + 0x14]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edx
and ecx, eax
cmp dword [ebx + 0x18], ecx
ja 0x4a57b3
shr edx, 1
or eax, 0xffffffff
sub eax, edx
add ecx, eax
mov edx, dword [ebx + 8]
lea eax, [ecx*8]
mov esi, dword [ebx]
mov dword [ebp - 4], eax
add eax, edx
mov dword [ebp + 0xc], eax
mov eax, dword [eax]
cmp esi, eax
je 0x4a57ed
mov esi, dword [ebp + 0xc]
mov esi, dword [esi + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x4a57ed
mov eax, dword [edi]
jmp 0x4a57e0
mov esi, dword [esi + 4]
cmp dword [esi + 8], eax
je 0x4a5830
cmp esi, dword [edx + ecx*8]
jne 0x4a57e0
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
cmp esi, eax
je 0x4a5817
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov ecx, dword [ebx + 8]
mov edx, dword [ebp - 4]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x4a5860
mov dword [ecx], edi
mov eax, dword [ebx + 8]
mov dword [eax + edx + 4], edi
jmp 0x4a5882
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
dec dword [ebx + 4]
call fcn.004ce116
mov eax, dword [ebp + 8]
add esp, 4
pop edi
mov dword [eax], esi
pop esi
mov byte [eax + 4], 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, esi
jne 0x4a5868
mov dword [ecx], edi
jmp 0x4a5882
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x4a5882
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
call fcn.004a7dd0
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4ade70
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [esi + 0x14]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edx
and ecx, eax
cmp dword [esi + 0x18], ecx
ja 0x4adec2
shr edx, 1
or eax, 0xffffffff
sub eax, edx
add ecx, eax
mov edx, dword [esi + 8]
mov esi, dword [esi]
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov ebx, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
cmp ebx, esi
jne 0x4adeda
mov ecx, esi
jmp 0x4adedf
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x4adf0c
mov ecx, dword [eax + 8]
cmp ecx, dword [edi]
je 0x4adeee
mov eax, dword [eax]
jmp 0x4aded2
mov ecx, dword [edi]
cmp ecx, dword [eax + 8]
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], esi
jne 0x4adefe
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4b3400
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d82db
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x7be738]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0
push dword [ebp + 0x10]
call dword [0x4dbfe8]
push esi
lea ecx, [esi + 0x18]
mov dword [ebp - 4], 0
mov dword [esi], vtable.GSyncBoxSetting.0
mov dword [esi + 8], vtable.GSyncBoxSetting.1.0
call fcn.0044a880
mov eax, dword [ebp + 8]
mov ecx, esi
mov ebx, dword [ebp + 0xc]
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], 0
call fcn.004b3bc0
mov edi, dword [0x4db698]
lea eax, [ebp + 0x10]
push 0
push str.1syncBoxChanged_int_
push esi
push str.2currentIndexChanged_int_
push dword [esi + 0x28]
push eax
call edi
mov esi, dword [0x4db6ac]
lea ecx, [ebp + 0x10]
add esp, 0x18
call esi
mov eax, dword [ebp - 0x10]
push 0
push str.1setBtnClickedSlot__
push eax
push str.2clicked__
push dword [eax + 0x40]
lea eax, [ebp + 0x10]
push eax
call edi
add esp, 0x18
lea ecx, [ebp + 0x10]
call esi
mov eax, dword [ebp - 0x10]
push 0
push str.1setSoftTriggerSlot__
push eax
push str.2clicked__
push dword [eax + 0x2c]
lea eax, [ebp + 0x10]
push eax
call edi
add esp, 0x18
lea ecx, [ebp + 0x10]
call esi
mov eax, dword [ebp - 0x10]
push 0
push str.1getSoftTrigNum_int_
push eax
push str.2valueChanged_int_
push dword [eax + 0x30]
lea eax, [ebp + 0x10]
push eax
call edi
add esp, 0x18
lea ecx, [ebp + 0x10]
call esi
push 0
push str.1configDataReadySlot_quint32__void__int__int_
push dword [0x7bfab0]
lea eax, [ebp + 0x10]
push str.2setSyncBox_quint32__void__int__int_
push dword [ebp - 0x10]
push eax
call edi
add esp, 0x18
lea ecx, [ebp + 0x10]
call esi
push 2
push 0x752630
call dword [0x4db678]
mov dword [ebp + 0x10], eax
add esp, 4
mov byte [ebp + 8], 0x20
mov ecx, esp
mov byte [ebp - 4], 1
push dword [ebp + 8]
call dword [0x4db670]
push 0xa
push 0
push ebx
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 0x10]
call dword [0x4db628]
mov ebx, dword [ebp - 0x10]
push eax
mov byte [ebp - 4], 2
mov ecx, dword [ebx + 0x3c]
call dword [0x4dbc10]
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call dword [0x4db6d8]
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0
call dword [0x4db6d8]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x827000
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
mov ebx, 4
lea eax, [edi + ecx]
sub esi, ecx
lea edx, [ebp + edx - 0x14]
add edi, ebx
mov cl, byte [esi + eax]
mov byte [edx], cl
mov byte [eax], cl
add edx, 4
inc eax
dec ebx
jne 0x827027
mov eax, dword [ebp - 4]
inc eax
cmp eax, 4
mov dword [ebp - 4], eax
jl 0x82700e
cmp edi, 0xb0
jge 0x8270e7
mov esi, 0x832eb0
jmp 0x827057
mov esi, dword [ebp + 0xc]
xor eax, eax
lea ecx, [ebp - 0x14]
inc eax
mov edx, eax
and edx, 0x80000003
jns 0x82706c
dec edx
or edx, 0xfffffffc
inc edx
xor ebx, ebx
add ecx, 4
mov bl, byte [ebp + edx*4 - 0x11]
mov dl, byte [ebx + 0x832cb0]
mov bl, byte [ecx - 4]
xor bl, dl
cmp eax, 4
mov byte [ecx - 4], bl
jl 0x82705c
mov al, byte [esi]
mov cl, byte [ebp - 0x14]
xor cl, al
add esi, 4
mov dword [ebp + 0xc], esi
mov byte [ebp - 0x14], cl
mov esi, 1
lea eax, [ebp + esi - 0x14]
mov ecx, 4
mov dl, byte [eax - 1]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
add eax, 4
dec ecx
jne 0x8270a6
inc esi
cmp esi, 4
jl 0x82709d
xor esi, esi
lea eax, [ebp + esi - 0x14]
mov ecx, 4
mov ebx, dword [ebp + 8]
mov dl, byte [eax]
add eax, 4
mov byte [edi + ebx], dl
inc edi
dec ecx
jne 0x8270c6
inc esi
cmp esi, 4
jl 0x8270bd
cmp edi, 0xb0
jl 0x827054
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x827590
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0x10]
push esi
cmp ebx, 0x10
push edi
jae 0x8275f2
mov al, bl
lea edx, [ebp - 0x10]
mov cl, al
push edx
mov ch, cl
mov eax, ecx
shl eax, 0x10
mov ax, cx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.008270f0
add esp, 8
test ebx, ebx
jbe 0x827645
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
sub ecx, edx
mov esi, ebx
lea eax, [edx + ebx]
mov dl, byte [ecx + eax - 1]
mov bl, byte [eax - 1]
dec eax
xor bl, dl
dec esi
mov byte [eax], bl
jne 0x8275dc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebx - 4]
xor edx, edx
mov ecx, 0xc
mov edi, dword [ebp + 8]
div ecx
mov esi, edx
test esi, esi
jle 0x82761a
mov edx, dword [ebp + 0xc]
lea eax, [edx + ebx - 0x10]
push eax
push edi
call fcn.00827300
add esp, 8
sub ebx, esi
cmp ebx, 0x10
jb 0x827645
mov ecx, dword [ebp + 0xc]
mov eax, 0xaaaaaaab
lea esi, [ecx + ebx - 0x10]
add ebx, 0xfffffffc
mul ebx
mov ebx, edx
shr ebx, 3
push esi
push edi
call fcn.00827300
add esp, 8
sub esi, 0xc
dec ebx
jne 0x827635
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x827650
Capabilities:
Check for peb beingdebugged flag
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov byte [ebp - 1], 0
mov dword [ebp - 8], 0
call dword [0x8dd62c]
cmp eax, 1
jne 0x827674
push 0
call dword [fcn.008dd630]
mov eax, dword fs:[0x30]
mov al, byte [eax + 2]
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
test al, al
je 0x82768f
push 0
call dword [fcn.008dd630]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0x68]
mov dword [ebp - 8], eax
test byte [ebp - 8], 0x70
je 0x8276a9
push 0
call dword [fcn.008dd630]
mov esp, ebp
pop ebp
ret

Function at 0x8276b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
lea eax, [0x8276f2]
lea ecx, [0x8276fa]
sub ecx, eax
mov dword [ebp - 4], ecx
lea eax, [ebp - 8]
push eax
push 0x40
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x827716
mov edi, dword [ebp + 8]
lea esi, [0x8276f2]
mov ecx, dword [ebp - 4]
rep movsb byte es:[edi], byte [esi]
jmp 0x827711
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x827720
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov cl, 0x65
mov al, 0x6d
mov byte [ebp - 0xa], cl
mov byte [ebp - 9], al
mov byte [ebp - 8], al
mov byte [ebp - 6], cl
mov byte [ebp - 5], al
mov byte [ebp - 4], al
mov cl, 0x6a
mov al, 0x66
push esi
mov dl, 0x75
push edi
mov byte [ebp - 0x1c], cl
mov byte [ebp - 0x1a], al
mov byte [ebp - 0x16], al
mov byte [ebp - 0x13], al
mov byte [ebp - 0x10], cl
mov byte [ebp - 0xb], dl
mov byte [ebp - 0x17], dl
lea edi, [ebp - 0xc]
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp - 0xc], 0x6f
mov byte [ebp - 7], 0x2f
mov byte [ebp - 3], 0
xor edx, edx
mov byte [ebp - 0x20], 0x45
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ebp - 0x1f], 0x63
mov byte [ebp - 0x1e], 0x68
mov byte [ebp - 0x1d], 0x56
mov byte [ebp - 0x1b], 0x53
mov byte [ebp - 0x19], 0x6e
mov byte [ebp - 0x18], 0x70
mov byte [ebp - 0x15], 0x43
mov byte [ebp - 0x14], 0x73
mov byte [ebp - 0x12], 0x62
mov byte [ebp - 0x11], 0x6c
mov byte [ebp - 0xf], 0x6f
mov byte [ebp - 0xe], 0
je 0x8277c6
mov cl, byte [ebp + edx - 0xc]
lea edi, [ebp - 0xc]
dec cl
xor eax, eax
mov byte [ebp + edx - 0xc], cl
or ecx, 0xffffffff
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x8277aa
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x8277dc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea edi, [ebp - 0x20]
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x827809
mov al, byte [ebp + edx - 0x20]
lea edi, [ebp - 0x20]
dec al
or ecx, 0xffffffff
mov byte [ebp + edx - 0x20], al
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x8277ed
lea ecx, [ebp - 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x827821
push eax
call fcn.008276b0
add esp, 4
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x827c60
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
push ebx
call fcn.0082e250
mov ebx, dword [0x8dd618]
cmp word [ebx], 0x5a4d
je 0x827c91
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00828f30
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x3c]
add eax, ebx
cmp dword [eax], 0x4550
jne 0x827c7c
mov cx, word [eax + 6]
xor edx, edx
mov dx, word [eax + 0x14]
test cx, cx
lea eax, [edx + eax + 0x18]
jbe 0x827cc3
and ecx, 0xffff
mov edx, ecx
mov ecx, eax
add eax, 0x28
dec edx
jne 0x827cb9
jmp 0x827cc6
mov ecx, dword [ebp - 4]
push esi
mov esi, dword [ecx + 0xc]
push edi
mov edi, dword [0x83298e]
push 0x10
lea eax, [ebp - 0xf4]
push 0x83297e
push eax
add esi, ebx
call fcn.00831150
push edi
lea ecx, [ebp - 0xf4]
push esi
push ecx
call fcn.008313b0
lea edx, [ebp - 0xf4]
lea eax, [ebp - 0x24]
push edx
push eax
call fcn.008313d0
push 0x20
lea ecx, [ebp - 0x24]
push 0x83295e
push ecx
call fcn.00828d60
add esp, 0x2c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40eb68
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40ec3d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40ec58
push ebx
push 0x40ec68
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040513c
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403250
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404d24
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x40ebe8
mov al, 0x6a
call fcn.0040e788
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040eb3c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x40ebf1
call fcn.0040eb3c
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ec44
lea eax, [ebp - 4]
call fcn.00404c88
ret

Function at 0x40ed58
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40ee23
jmp 0x40ee17
cmp dword [esi + 0x10], 0x1000
jne 0x40ee03
test byte [esi + 0x15], 1
jne 0x40ee03
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x40edb4
cmp ebp, 2
je 0x40edb4
cmp ebp, 0x10
je 0x40edb4
cmp ebp, 0x20
jne 0x40edd0
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x40edd0
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x40ede1
mov eax, dword [esi]
add eax, ebx
call fcn.0040ed50
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x40edd4
cmp byte [esp + 4], 0
je 0x40ee03
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40ee23
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x40ed89
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x408917
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4085d8
add edi, edi
call fcn.0040893f
or esi, esi
xor dword [ebx], eax
and esi, edi
add ebx, 1
sub edi, edi
add edi, esi
cmp ebx, edx
jne fcn.00408917
mov esi, 0x6a8a7088
ret