joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4011c6
Capabilities:
Access peb ldr_data
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
call fcn.0040114f
call section..text
movzx eax, al
cmp eax, 1
jne 0x4011e9
push 5
pop eax
jmp 0x4013b8
and dword [ebp - 0x40], 0
and dword [ebp - 0xc], 0
and dword [ebp - 0x30], 0
and dword [ebp - 0x14], 0
and dword [ebp - 0x24], 0
and dword [ebp - 0x44], 0
and dword [ebp - 8], 0
and dword [ebp - 0x18], 0
and dword [ebp - 0x1c], 0
and dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 0x330
pushal
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ebx, eax
add ebx, 0xc
mov eax, dword [eax + 0xc]
mov edi, dword [eax + 0x30]
mov ecx, 0x18
xor esi, esi
xor ebx, ebx
add bl, byte [edi + ecx - 1]
add esi, ebx
loop 0x401234
cmp esi, dword [ebp - 0x2c]
je 0x401249
mov eax, dword [eax]
cmp eax, ebx
jne 0x40122a
mov eax, dword [eax + 0x18]
mov dword [ebp - 8], eax
nop
popal
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
push 0x424728
push dword [0x404714]
push 0x424718
push dword [0x424728]
push 0x42472c
call fcn.0040102b
add esp, 0x14
push 0x42472c
push dword [ebp - 8]
call dword [ebp - 0xc]
mov dword [ebp - 0x30], eax
push 0x424748
push dword [0x404714]
push 0x424718
push dword [0x424748]
push 0x42474c
call fcn.0040102b
add esp, 0x14
push 0x42474c
push dword [ebp - 8]
call dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
push 0x424768
push dword [0x404714]
push 0x424718
push dword [0x424768]
push 0x42476c
call fcn.0040102b
add esp, 0x14
push 0x42476c
push dword [ebp - 8]
call dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [0x404038]
mov dword [ebp - 0x10], eax
push 4
push 0x1000
mov eax, dword [ebp - 0x10]
inc eax
push eax
push 0
call dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 0x404040
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x10]
push eax
push dword [section..data]
push 0x404004
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.0040102b
add esp, 0x14
mov dword [ebp - 4], eax
and dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
push eax
push 0x20
push dword [0x404038]
push dword [ebp - 4]
call dword [ebp - 0x24]
push 0x404710
push dword [0x40403c]
push 0x4046e0
push dword [0x404710]
push 0x404718
call fcn.0040102b
add esp, 0x14
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 4]
mov dword [0x4247bc], eax
and dword [ebp - 0x28], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + eax]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 1
push dword [ebp - 0x28]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
call dword [0x4247bc]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x55c720
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xff000]
push edi
jmp 0x55c73a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x55c741
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55c730
mov eax, 1
add ebx, ebx
jne 0x55c753
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x55c764
jne 0x55c783
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55c783
dec eax
add ebx, ebx
jne 0x55c770
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x55c748
add ebx, ebx
jne 0x55c77f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x55c7d5
xor ecx, ecx
sub eax, 3
jb 0x55c79b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x55c80a
sar eax, 1
mov ebp, eax
jmp 0x55c7a6
add ebx, ebx
jne 0x55c7a6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55c774
inc ecx
add ebx, ebx
jne 0x55c7b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55c774
add ebx, ebx
jne 0x55c7c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x55c7b6
jne 0x55c7d2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x55c7b6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x55c7f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x55c7e6
jmp 0x55c736
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x55c7f4
add edi, ecx
jmp 0x55c736
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x55c812
cmp byte [edi], 0x11
jne 0x55c812
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x55c817
lea edi, [esi + 0x155000]
mov eax, dword [edi]
or eax, eax
je 0x55c88f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1d3cb0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1d3e2c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x55c844
mov ecx, edi
jns 0x55c873
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1d3e30]
or eax, eax
je 0x55c889
mov dword [ebx], eax
add ebx, 4
jmp 0x55c861
call dword [esi + 0x1d3e40]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x55c8c0
cmp al, 0xef
ja 0x55c8b3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x55c895
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x55c8a2
mov ebp, dword [esi + 0x1d3e34]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x55c8f4
sub esp, 0xffffff80
jmp 0x420577
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x8c1e00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x8d2c94
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x8da014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0x1388
call dword [0x8d3004]
push 1
mov dword [ebp - 4], 0
call fcn.008c21c4
mov ebx, eax
add esp, 4
mov dword [ebp - 0x28], ebx
push 0x3b9aca00
mov byte [ebp - 4], 1
call fcn.008c6549
add esp, 4
test eax, eax
je 0x8c1ef8
push 0x3b9aca00
push 0xd5
push eax
call fcn.008c33b0
add esp, 0xc
xor edx, edx
nop dword [eax]
mov eax, edx
and eax, 3
mov al, byte [eax + 0x8d8bc0]
xor byte [edx + 0x8da8c0], al
inc edx
cmp edx, 0x22400
jb 0x8c1e80
push 7
push 2
push 0x8d8b3c
call fcn.008c1c10
add esp, 0xc
xor edx, edx
nop dword [eax]
mov eax, edx
and eax, 3
mov al, byte [eax + 0x8d8bc0]
xor byte [edx + 0x8fccc0], al
inc edx
cmp edx, 0x77e
jb 0x8c1eb0
call fcn.008c1d70
mov dword [ebp - 0x24], 0x8fce42
mov edx, 0x8da8c0
push edx
xor edx, edx
mov edi, edx
push 0
lea esi, [0x8da8b0]
push esi
mov edx, dword [esp]
mov edx, dword [edx]
pop esi
push edx
pop esi
push esi
mov eax, dword [ebp - 0x24]
dec eax
call eax
push 1
push ebx
call fcn.008c21f4
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.008c21b6
mov esp, ebp
pop ebp
ret

Function at 0x8c26a9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [0x8d3030]
test eax, eax
je 0x8c26e8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x8c26e8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x8c26e8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x8c26e8
cmp dword [ecx + 0x74], 0xe
jbe 0x8c26e8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x5adbcf
Capabilities:
Encode data using xor

Disassembly:
fild dword [edx - 0x31]
mov al, 0x50
stc
inc esp
sub al, 0x5a
sbb dh, bl
cwde
pushfd
enter 0xfffffffffffffcb8, 0x6b
pop edx
popal
arpl si, bp
invalid
retf 0x5d5a
jbe 0x5adb44
mov esi, 0x82adfdc6
xlatb
enter 0xffffffffffffc87d, 0x1f
std
lodsd eax, dword [esi]
adc bh, 0xc8
jge 0x5adb77
pop ds
popal
and ecx, eax
sal dword [edi - 0x20], 1
popal
jmp 0x5adba4
loopne 0x5adbfe
loopne 0x5adc02
adc ebp, dword [ebx + 0x4b2dec31]
mov byte [ebx + 0x2297a0e6], dh
aad 0xd
mov al, byte [0xdd52297]
out 0x4f, al
js 0x5adbdc
out 0xa0, al
out dx, eax
add eax, 0xd832ebe6
neg byte ds:[esp + 0x6f22ee5a]
jae 0x5adba8
or byte [esi - 0x6b], al
push 0xbecdb92a
jge 0x5adc58
mov esi, 0x6135577d
xor eax, 0x4e9e2361
in al, dx
push ss
cmp dh, byte [edx]
out dx, eax
popal
and ebx, dword [esi + 0x3a16ec4e]
xor ch, bh
lock sub dword [esi - 0x59], 0x91c7711a
push ebx
int1
or bh, ch
cdq
inc esp
dec esi
aam 0xec
fnstcw word [edi - 0x4d9b5b2]
sti
in eax, 0x35
sti
aaa
insb byte es:[edi], dx
mov dh, 0x1d
pop ebp
inc edi
mov ah, dh
xor esp, dword [edx - 0x39]
jb 0x5adc20
pop ebx
out 0x3e, eax
xor eax, 0xb8500a5d
or ebp, 0x65
xor dword [ebx - 0x49], ebx
push ebp
lcall 0x9855, 0xd1548ce8
into
jecxz 0x5adbfe
adc byte [ecx + 0x56dc4b1c], ch
hlt
inc edi
or edi, edi
jl 0x5adc19
sub dword [edx - 0x45], esi
loopne 0x5adcd2
out 0xc0, al
sbb ebp, eax
sbb esp, dword [ebp + 0x1545528e]
xchg dword [edi - 0xc], edx
popal
std
push edx
shl byte [edi - 0x2f3b5263], 0xb6
in eax, 0x86
push edi
add ebp, dword [esi + 0x58098c07]
invalid
clc
cmp byte [eax - 0x69bac5f0], cl
or al, 0xea
adc eax, dword [edi + 0x45]
stosd dword es:[edi], eax
scasd eax, dword es:[edi]
dec edx
jge 0x5add3c
xor esi, dword [ecx]
ret 0xe1e5
sbb eax, 0x1ccd427f
sahf
inc esp
pop ebx
and al, byte [ecx]
push esp
or byte [edx + 0x5ef93b59], ch
xor al, bl
jmp 0xd37882c9
Function at 0x401520
Capabilities:
Download url
Receive data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4023f8
push eax
mov dword fs:[0], esp
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 0
push 0
push eax
push ecx
push 0
mov dword [esp + 0x1c], 0
call sub.urlmon.dll_URLDownloadToFileA
lea ecx, [esp + 0x10]
call fcn.00402008
lea ecx, [esp + 0x14]
mov dword [esp + 8], 0xffffffff
call fcn.00402008
mov ecx, dword [esp]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0xc
ret
Function at 0x42bf20
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x434b10]
jne 0x42bf2a
repz ret
jmp fcn.0042f0c0

Function at 0x42e5b0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0042a068
xor ebx, ebx
cmp dword [0x4537fc], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x42e685
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x42e5f0
xor eax, eax
jmp 0x42e749
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x42e5e9
push eax
call fcn.0042a005
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4537fc], eax
call esi
push eax
call fcn.0042a005
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x453800], eax
call esi
push eax
call fcn.0042a005
mov dword [0x453804], eax
lea eax, [ebp - 8]
push eax
call fcn.0042a7da
test eax, eax
pop ecx
pop ecx
je 0x42e653
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00429550
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x42e685
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0042a005
cmp eax, ebx
pop ecx
mov dword [0x45380c], eax
je 0x42e685
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042a005
pop ecx
mov dword [0x453808], eax
mov eax, dword [0x453808]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x42e6fe
cmp dword [0x45380c], esi
je 0x42e6fe
push eax
call fcn.0042a071
pop ecx
call eax
cmp eax, ebx
je 0x42e6cb
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x45380c]
call fcn.0042a071
pop ecx
call eax
test eax, eax
je 0x42e6cb
test byte [ebp - 0x18], 1
jne 0x42e6fe
lea eax, [ebp - 0xc]
push eax
call fcn.0042a811
test eax, eax
pop ecx
je 0x42e6e6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00429550
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x42e6f5
or dword [ebp + 0x10], 0x200000
jmp 0x42e72f
or dword [ebp + 0x10], 0x40000
jmp 0x42e72f
mov eax, dword [0x453800]
cmp eax, esi
je 0x42e72f
push eax
call fcn.0042a071
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42e72f
mov eax, dword [0x453804]
cmp eax, esi
je 0x42e72f
push dword [ebp - 4]
push eax
call fcn.0042a071
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4537fc]
call fcn.0042a071
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409888
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 0x40995b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409974
push ebx
push 0x409980
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
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.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409908
mov al, 0x62
call fcn.00409460
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040985c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409911
call fcn.0040985c
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 0x409962
lea eax, [ebp - 4]
call fcn.00403198
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409ac8
jmp 0x409abd
cmp dword [esi + 0x10], 0x1000
jne 0x409aa9
test byte [esi + 0x15], 1
jne 0x409aa9
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409a68
cmp eax, 2
je 0x409a68
cmp eax, 0x10
je 0x409a68
cmp eax, 0x20
jne 0x409a7d
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409a7d
mov bl, 1
xor ebp, ebp
jmp 0x409a8e
mov eax, dword [esi]
add eax, ebp
call fcn.00409a0c
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409a81
test bl, bl
je 0x409aa9
push esp
mov eax, dword [esp + 4]
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 ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409ac8
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409a40
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x10004360
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100477d5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x24
mov eax, dword [0x1007c040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], edx
mov esi, ecx
lea eax, [ebp - 0x18]
push eax
push 0x40
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10004417
push 0x22
xorps xmm0, xmm0
mov dword [ebp - 0x20], eax
push str.Failed_to_change_memory_protection
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], eax
movups xmmword [ebp - 0x30], xmm0
call fcn.10009180
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 1
call fcn.1003c400
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xf
jbe 0x10004410
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10004406
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004481
push ecx
push edx
call fcn.10046175
add esp, 8
xor al, al
jmp 0x10004499
mov eax, dword [ebp - 0x34]
mov dword [esi], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10004487
push 0x23
xorps xmm0, xmm0
mov dword [ebp - 0x20], eax
push str.Failed_to_restore_memory_protection
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], eax
movups xmmword [ebp - 0x30], xmm0
call fcn.10009180
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 2
call fcn.1003c400
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xf
jbe 0x10004410
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10004406
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10004406
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10046167
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x100044c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10047800
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x1007c040]
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, ecx
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x14]
push eax
push 0x40
sub edx, esi
push 5
push esi
lea ebx, [edx - 5]
call edi
test eax, eax
je 0x10004531
lea eax, [ebp - 0x14]
mov byte [esi], 0xe9
push eax
mov dword [esi + 1], ebx
push dword [ebp - 0x14]
push 5
push esi
call edi
test eax, eax
je 0x10004531
push 5
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, 1
jmp 0x10004533
xor al, al
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.10046167
mov esp, ebp
pop ebp
ret
Function at 0x100047a0
Capabilities:
Block operations on executable memory pages using arbitrary code guard

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x1007c040]
xor eax, esp
mov dword [esp + 0x128], eax
cmp byte [0x10080357], 0
push esi
je 0x1000488b
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000488b
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x1000488b
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call esi
test eax, eax
jne 0x1000488b
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.win:
call fcn.10008100
push dword [esp + 0xc]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
push 0x100085a0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
cmp dword [esp + 0xc], 0xa
setae al
test al, al
je 0x1000488b
push 4
lea eax, [esp + 0x12c]
mov dword [esp + 0x12c], 1
push eax
push 2
call dword [sym.imp.KERNEL32.dll_SetProcessMitigationPolicy]
test eax, eax
je 0x1000488b
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.ACG_enabled
call fcn.10008100
push 0x100085a0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
cmp byte [0x10080356], 0
je 0x100048bd
push 1
call dword [sym.imp.KERNEL32.dll_SetProcessDEPPolicy]
test eax, eax
je 0x100048bd
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.DEP_enabled
call fcn.10008100
push 0x100085a0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [esp + 0x12c]
pop esi
xor ecx, esp
call fcn.10046167
mov esp, ebp
pop ebp
ret