joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e239
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88c
lea ecx, [esp + 4]
push ebx
push esi
push edi
call fcn.00403624
lea ecx, [esp + 0x680]
call fcn.00403624
push 0x208
xor ebx, ebx
lea eax, [esp + 0x22c]
push ebx
push eax
call fcn.0041db90
add esp, 0xc
lea eax, [esp + 0x228]
push 0x103
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x228]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
mov esi, dword [ebp + 8]
test esi, esi
je 0x45e3a1
cmp word [esi], bx
je 0x45e3a1
push esi
lea eax, [esp + 0x684]
push 0x4781c0
push eax
call fcn.004011fb
add esp, 0xc
lea eax, [esp + 0x430]
push eax
push dword [esp + 0x688]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x45e3a1
test byte [esp + 0x430], 0x10
jne 0x45e383
lea eax, [esp + 0x45c]
push eax
push esi
lea eax, [esp + 0x18]
push 0x470ff8
push eax
call fcn.004011fb
mov ecx, dword [esp + 0x24]
add esp, 0x10
test ecx, ecx
je 0x45e35e
mov eax, dword [esp + 0x18]
inc eax
push eax
push ecx
call fcn.0042bc33
pop ecx
pop ecx
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x45e35e
lea edx, [esp + 0x228]
mov eax, ecx
mov bx, word [eax]
cmp bx, word [edx]
jne 0x45e357
test bx, bx
je 0x45e353
mov bx, word [eax + 2]
cmp bx, word [edx + 2]
jne 0x45e357
add eax, 4
add edx, 4
test bx, bx
jne 0x45e331
xor eax, eax
jmp 0x45e366
sbb eax, eax
or eax, 1
jmp 0x45e366
cmp dword [esp + 0x18], 1
sbb eax, eax
inc eax
test eax, eax
je 0x45e383
push 0x46cf64
push ecx
call fcn.0041ce8e
pop ecx
pop ecx
push eax
call fcn.0045e10b
push esi
call fcn.0045dfb5
lea eax, [esp + 0x430]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x45e2e1
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x1b27528a
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data_1
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x210a53f5
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x813058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.008131a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x81307e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x81306a
add dl, dl
jne 0x813089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8130dc
xor eax, eax
add dl, dl
jne 0x813096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x81317d
add dl, dl
jne 0x8130a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8130b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8130bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8130c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8130d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x813075
mov eax, 1
add dl, dl
jne 0x8130ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8130f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8130e1
sub eax, ebx
mov ebx, 1
jne 0x813128
mov ecx, 1
add dl, dl
jne 0x81310e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x813119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x813105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x813075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x81313f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x81314a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x813136
cmp eax, 0x7d00
jae 0x81316d
cmp eax, 0x500
jb 0x813168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x813075
cmp eax, 0x7f
ja 0x813170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x813075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x81319e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x813075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

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 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rdata
mov ebx, 0x40c7d0
nop
mov ecx, 0x4723122e
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x42f314
nop
mov ecx, 0x724539d3
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x404930
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5c28
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4fa008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
push 0x4cd3f0
mov eax, dword [ebx]
call dword [eax + 4]
mov esi, dword [ebp + 8]
mov eax, esi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x404ac0
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
and esi, 0xf
jbe 0x4049b2
movzx ecx, word [edi]
lea edi, [edi + ecx*2]
add edi, 2
sub esi, 1
jne 0x4049a4
movzx esi, word [edi]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x18]
call fcn.00403ad0
add esi, esi
lea eax, [edi + 2]
push esi
push eax
push dword [ebp - 0x18]
call fcn.0049ae30
mov eax, dword [ebp - 0x18]
add esp, 0xc
xor ecx, ecx
push dword [ebp + 0xc]
mov word [esi + eax], cx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [ebp - 0x28], vtable.UnicodeStringStorage.0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
push 1
mov ecx, eax
call fcn.00403ad0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cd35c
push ecx
call fcn.0049ae30
add esp, 0xc
mov byte [ebp - 4], 2
mov esi, 0x4cd35c
mov eax, dword [ebp - 0x18]
test eax, eax
cmovne esi, eax
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404a63
sub eax, edx
lea ecx, [ebp - 0x24]
sar eax, 1
push ecx
inc eax
push eax
call fcn.00403ad0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
sub eax, ecx
and eax, 0xfffffffe
push eax
push esi
push ecx
call fcn.0049ae30
mov eax, dword [ebx]
add esp, 0xc
mov ecx, ebx
push 0x4cd35c
call dword [eax + 4]
mov eax, dword [ebx]
mov ecx, ebx
push dword [ebp - 0x24]
call dword [eax + 4]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x28], vtable.UnicodeStringStorage.0
call fcn.004039a0
lea ecx, [ebp - 0x18]
call fcn.004039a0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x408400
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5ed0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4fa008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
mov ecx, dword [eax]
mov edi, ecx
mov ebx, dword [ebp + 0x10]
mov al, 1
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0x14], al
mov edx, dword [edi + 4]
cmp byte [edx + 0xd], 0
jne 0x40847b
mov ecx, dword [ebx]
mov eax, dword [edx + 0x10]
mov edi, edx
cmp ecx, eax
jb 0x40846b
ja 0x408464
mov eax, dword [ebx + 4]
cmp eax, dword [edx + 0x14]
jb 0x40846b
mov edx, dword [edx + 8]
xor al, al
jmp 0x40846f
mov edx, dword [edx]
mov al, 1
cmp byte [edx + 0xd], 0
mov byte [ebp - 0x14], al
je 0x408451
mov ecx, dword [ebp - 0x1c]
mov esi, edi
test al, al
je 0x40851b
cmp edi, dword [ecx]
jne 0x4084bb
push dword [ebp + 0x14]
push ecx
push edi
push 1
mov ecx, dword [ebp - 0x18]
lea eax, [ebp + 0x10]
push eax
call fcn.004081d0
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp byte [edi + 0xd], 0
je 0x4084c6
mov esi, dword [edi + 8]
jmp 0x40851b
mov eax, dword [edi]
cmp byte [eax + 0xd], 0
je 0x4084fd
mov eax, dword [edi + 4]
cmp byte [eax + 0xd], 0
jne 0x4084f3
mov ecx, edi
nop dword [eax]
mov edx, eax
cmp ecx, dword [eax]
jne 0x4084f3
mov esi, eax
mov ecx, edx
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4084e0
cmp byte [esi + 0xd], 0
jne 0x40851b
mov esi, eax
jmp 0x40851b
mov esi, eax
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x40851b
nop dword [eax + eax]
mov esi, eax
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x408510
mov ecx, dword [ebx]
cmp dword [esi + 0x10], ecx
jb 0x40856f
ja 0x40852c
mov eax, dword [esi + 0x14]
cmp eax, dword [ebx + 4]
jb 0x40856f
mov ebx, dword [ebp + 0x14]
lea ecx, [ebx + 0x30]
call fcn.004067c0
lea ecx, [ebx + 0x24]
call fcn.004067c0
lea ecx, [ebx + 0x18]
call fcn.004067c0
push 0x3c
push ebx
call fcn.00497c34
mov eax, dword [ebp + 8]
add esp, 8
mov dword [eax], esi
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp + 0x14]
push ecx
push edi
push dword [ebp - 0x14]
jmp 0x408490
Function at 0x408ad0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5fdf
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4fa008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [ebp - 4], 0
lea eax, [edi + 0x10]
mov dword [edi], vtable.ControlCommandLine.0
lea esi, [eax + 4]
mov dword [ebp - 0x14], eax
mov dword [eax], vtable.StringStorage.0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push esi
push 1
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00403ad0
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cd35c
push ecx
call fcn.0049ae30
add esp, 0xc
lea eax, [edi + 0x20]
mov dword [ebp - 0x14], eax
lea esi, [eax + 4]
mov dword [eax], vtable.StringStorage.0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push esi
push 1
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00403ad0
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cd35c
push ecx
call fcn.0049ae30
add esp, 0xc
lea eax, [edi + 0x30]
mov dword [ebp - 0x14], eax
lea esi, [eax + 4]
mov dword [eax], vtable.StringStorage.0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push esi
push 1
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.00403ad0
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cd35c
push ecx
call fcn.0049ae30
add esp, 0xc
lea eax, [edi + 0x40]
mov dword [ebp - 0x14], eax
mov dword [eax], vtable.StringStorage.0
lea esi, [eax + 4]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push esi
push 1
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.00403ad0
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cd35c
push ecx
call fcn.0049ae30
add esp, 0xc
lea eax, [edi + 0x50]
mov dword [ebp - 0x14], eax
lea esi, [eax + 4]
mov dword [eax], vtable.StringStorage.0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push esi
push 1
mov ecx, esi
mov byte [ebp - 4], 9
call fcn.00403ad0
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cd35c
push ecx
call fcn.0049ae30
add esp, 0xc
mov dword [edi + 0x60], vtable.Rect.0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
lea eax, [edi + 0x78]
mov byte [edi + 0x74], 0
mov dword [ebp - 0x14], eax
lea esi, [eax + 4]
mov dword [eax], vtable.StringStorage.0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push esi
push 1
mov ecx, esi
mov byte [ebp - 4], 0xc
call fcn.00403ad0
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
and eax, 0xfffffffe
push eax
push 0x4cd35c
push ecx
call fcn.0049ae30
add esp, 0xc
mov dword [edi + 0x88], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40c250
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6758
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4fa008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0x86
mov dword [esi + 0xc], vtable.Control.0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x20], 0
mov dword [ebp - 4], 0
mov dword [esi], vtable.SetPasswordsDialog.0
mov dword [esi + 0x28], 0
mov dword [esi + 0x24], vtable.CheckBox.0
mov dword [esi + 0x34], 0
mov dword [esi + 0x30], vtable.CheckBox.0
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], vtable.CheckBox.0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], vtable.TextBox.0
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], vtable.TextBox.0
mov dword [esi + 0x64], 0
mov dword [esi + 0x60], vtable.CheckBox.0
mov dword [esi + 0x70], 0
mov dword [esi + 0x6c], vtable.CheckBox.0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x78], vtable.CheckBox.0
mov dword [esi + 0x88], 0
mov dword [esi + 0x84], vtable.TextBox.0
mov dword [esi + 0x94], 0
mov dword [esi + 0x90], vtable.TextBox.0
lea edi, [esi + 0x9c]
mov byte [ebp - 4], 0xa
mov ecx, edi
call fcn.0044d540
lea ebx, [esi + 0xc0]
mov byte [ebp - 4], 0xb
mov ecx, ebx
call fcn.0044d540
lea ecx, [esi + 0xe4]
mov byte [ebp - 4], 0xc
call fcn.0044d540
mov cl, byte [ebp + 8]
mov al, cl
mov byte [esi + 0x109], cl
xor al, 1
mov byte [esi + 0x108], al
lea eax, [esi + 0x10c]
mov dword [ebp + 8], eax
lea esi, [eax + 4]
mov dword [eax], vtable.StringStorage.0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push esi
push 1
mov ecx, esi
mov byte [ebp - 4], 0xe
call fcn.00403ad0
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cd35c
push ecx
call fcn.0049ae30
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov word [eax + 0x11c], 1
add eax, 0x120
mov dword [ebp + 8], eax
lea esi, [eax + 4]
mov dword [eax], vtable.StringStorage.0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push esi
push 1
mov ecx, esi
mov byte [ebp - 4], 0x10
call fcn.00403ad0
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cd35c
push ecx
call fcn.0049ae30
add esp, 0xc
mov byte [ebp - 4], 0x11
mov ecx, 0x9c57
mov esi, dword [edi]
call fcn.0044ed10
push eax
mov ecx, edi
call dword [esi + 8]
mov esi, dword [edi]
mov ecx, 0x9c55
call fcn.0044ed10
push eax
mov ecx, edi
call dword [esi + 0xc]
mov esi, dword [ebx]
mov ecx, 0x9c58
call fcn.0044ed10
push eax
mov ecx, ebx
call dword [esi + 8]
mov esi, dword [ebx]
mov ecx, 0x9c55
call fcn.0044ed10
push eax
mov ecx, ebx
call dword [esi + 0xc]
mov edi, dword [ebp - 0x10]
mov ecx, 0x9ca7
mov esi, dword [edi + 0xe4]
call fcn.0044ed10
push eax
lea ecx, [edi + 0xe4]
call dword [esi + 8]
mov esi, dword [edi + 0xe4]
mov ecx, 0x9ca8
call fcn.0044ed10
push eax
lea ecx, [edi + 0xe4]
call dword [esi + 0xc]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40de50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6a28
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x4fa008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 5
push 0
push 0
push dword [ebp + 8]
mov dword [ebp - 4], 0
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x40def5
jmp 0x40dee1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push eax
lea ecx, [ebp - 0x50]
call fcn.0041cb90
push 0x4f80ac
lea eax, [ebp - 0x50]
push eax
call fcn.00499368
int3

Function at 0x40e3d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6ad0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4fa008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov edx, dword [ebx + 0x6c]
lea ecx, [ebx + 0x6c]
lea eax, [ebx + 0x24]
push eax
call dword [edx + 0x18]
push 0
push 0
push 0xf0
push dword [ebx + 0x7c]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
lea edi, [ebx + 0x54]
mov ecx, edi
setne al
mov byte [ebx + 0x34], al
push dword [ebx + 0x28]
call fcn.0042bae0
mov dword [ebp - 0x2c], vtable.StringStorage.0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
push 1
mov ecx, eax
call fcn.00403ad0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cd35c
push ecx
call fcn.0049ae30
add esp, 0xc
mov dword [ebp - 4], 1
xor esi, esi
mov edx, dword [edi + 8]
sub edx, dword [edi + 4]
sar edx, 4
xor ebx, ebx
mov dword [ebp - 0x18], edx
mov ecx, dword [edi + 0x10]
cmp edx, ecx
mov eax, ecx
cmovb eax, edx
cmp esi, eax
jae 0x40e512
push esi
lea eax, [ebp - 0x2c]
push 0x4d1fe4
push eax
call fcn.004038a0
mov eax, dword [edi + 8]
add esp, 0xc
mov ecx, dword [edi + 4]
sub eax, ecx
sar eax, 4
cmp eax, esi
jbe 0x40e556
mov eax, dword [edi + 0x14]
mov ecx, dword [ebx + ecx + 4]
mov dword [ebp - 0x14], ecx
mov edx, dword [eax + 4]
test edx, edx
je 0x40e509
mov eax, ecx
lea ecx, [eax + 2]
mov dword [ebp - 0x10], ecx
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e4e0
sub eax, dword [ebp - 0x10]
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x14]
push 1
push 0
push dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x18]
inc esi
add ebx, 0x10
jmp 0x40e493
cmp edx, ecx
jbe 0x40e51d
mov ecx, edi
call fcn.0042b8a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], vtable.StringStorage.0
call fcn.004039a0
mov ecx, edi
call fcn.0042b8a0
mov ecx, dword [ebp - 0x1c]
push 1
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00427dc0
int3
Function at 0x4112f0
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7058
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push esi
push edi
mov eax, dword [0x4fa008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], vtable.StringStorage.0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0
push eax
push 1
mov ecx, eax
call fcn.00403ad0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cd35c
push ecx
call fcn.0049ae30
add esp, 0xc
mov dword [ebp - 4], 1
mov dword [ebp - 0x24], vtable.StringStorage.0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
push eax
push 1
mov ecx, eax
call fcn.00403ad0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cd35c
push ecx
call fcn.0049ae30
add esp, 0xc
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.0041d6c0
test al, al
je 0x4113da
push str._service
push dword [ebp - 0x20]
lea eax, [ebp - 0x34]
push 0x4cddb4
push eax
call fcn.004038a0
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.StringStorage.0
call fcn.004039a0
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004204d0
push 0
push 0
push 0x4cd35c
push 0
push 0
mov byte [ebp - 4], 4
push dword [ebp - 0x30]
mov esi, dword [ebp - 0x18]
push 1
push 2
push 0x10
push 0xf01ff
push 0x4c7424
push 0x4c7444
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
test edi, edi
je 0x41149c
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
push eax
push 2
push edi
mov dword [ebp - 0x10], 0x1388
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 1
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
test esi, esi
je 0x41147c
push esi
call edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x34], vtable.StringStorage.0
call fcn.004039a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x70]
call fcn.0041cad0
push 0x4f80ac
lea eax, [ebp - 0x70]
push eax
call fcn.00499368
int3