joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40482a
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x404881
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x40487c
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x404866
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x40486e
cmp edx, ebx
jne 0x4049bc
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x40483d
add eax, dword [eax + 4]
jmp fcn.0040482a
mov dword [ebp + 0xc], ebx
jmp 0x40488c
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4048a4
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4048c2
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x404920
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x404907
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x404910
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x40491a
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4048fc
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x404886
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x40496d
dec eax
je 0x404964
sub eax, 3
je 0x40495b
mov dword [ebp - 4], 0x40
jmp 0x40498a
mov dword [ebp - 4], 4
jmp 0x404970
mov dword [ebp - 4], 0x20
jmp 0x404970
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4049bc
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x40493c
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.004041cd
and byte [0x75ff7235], al
adc al, 0x6a
add dword [esi - 1], edx
xlatb
mov eax, esi
jmp 0x4049c8
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40504d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
les edx, [edi + edi*8]
and al, 0xc8
call fcn.004041cd
push 0xffffffffffffffea
push ss
and byte [ebp - 0x544], 0
push 0
call dword [ebp - 0x340]
mov dword [ebp + 8], eax
push 0x104
lea eax, [ebp - 0x334]
push eax
push 0
call dword [ebp - 0x538]
call fcn.004041cd
xor bh, byte [ebp + 6]
or eax, dword [eax - 0x22f5b]
inc dword [eax]
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.004041ab
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
xchg ebp, eax
cld
invalid
inc dword [eax]
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
test dword [ebx + 0x27fffffc], esp
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x46f0f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4a000]
push edi
or ebp, 0xffffffff
jmp 0x46f112
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x46f119
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46f108
mov eax, 1
add ebx, ebx
jne 0x46f12b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x46f13c
jne 0x46f14c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46f14c
dec eax
add ebx, ebx
jne 0x46f148
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x46f120
xor ecx, ecx
sub eax, 3
jb 0x46f164
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x46f1d6
sar eax, 1
mov ebp, eax
jmp 0x46f16f
add ebx, ebx
jne 0x46f16f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x46f17c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x46f1a0
inc ecx
add ebx, ebx
jne 0x46f18c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x46f181
jne 0x46f19d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46f181
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x46f1c0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x46f1b1
jmp 0x46f10e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x46f1c0
add edi, ecx
jmp 0x46f10e
pop esi
mov edi, esi
mov ecx, 0x2a11
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x46f1de
cmp byte [edi], 0x11
jne 0x46f1de
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 eax, ebx
loop 0x46f1e3
lea edi, [esi + 0x6c000]
mov eax, dword [edi]
or eax, eax
je 0x46f25b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6f7dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6f8b8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46f210
mov ecx, edi
jns 0x46f23f
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 + 0x6f8bc]
or eax, eax
je 0x46f255
mov dword [ebx], eax
add ebx, 4
jmp 0x46f22d
call dword [esi + 0x6f8c0]
popal
jmp 0x440ef7
Function at 0x1401110
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x158c7e0
push 0x144a340
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov edi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x14011b2
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x14011b2
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x14011b2
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x14011b2
mov dword [ebp - 4], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1401480
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
lea ecx, [esi - 0x10000]
movzx eax, cx
mov edi, ecx
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
jbe 0x1401548
nop word [eax + eax]
lea eax, [edi - 0x70000000]
cmp eax, 0x10000000
ja 0x14014c5
sub edi, 0x8000000
jmp 0x1401540
push 0x1c
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1401548
cmp dword [ebp - 0xc], 0x10000
jne 0x140152b
cmp dword [ebp - 0x10], 0x10000
jb 0x140152b
push 0x40
push 0x3000
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1401604
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x677
je 0x1401548
sub edi, 0x10000
jmp 0x1401540
mov ecx, dword [ebp - 0x18]
add ecx, 0xffff0000
mov edi, ecx
movzx eax, di
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
ja 0x14014b0
movzx eax, si
test eax, eax
je 0x1401557
sub esi, eax
add esi, 0x10000
mov edi, dword [ebp + 8]
cmp esi, edi
jae 0x1401602
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
nop dword [eax + eax]
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x1401585
add esi, 0x8000000
jmp 0x14015fa
push 0x1c
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call ebx
test eax, eax
je 0x1401602
cmp dword [ebp - 0xc], 0x10000
mov ecx, dword [ebp - 0x10]
jne 0x14015e5
cmp ecx, 0x10000
jb 0x14015e5
push 0x40
push 0x3000
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1401604
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x677
je 0x1401602
add esi, 0x10000
jmp 0x14015fa
mov esi, dword [ebp - 0x1c]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x14015fa
mov eax, 0x10000
sub eax, ecx
add esi, eax
cmp esi, edi
jb 0x1401570
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1405cb0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1000
call fcn.0144a150
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [esp + 0xc]
push 0xfff
push eax
call fcn.01402890
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.014311da
mov eax, dword [0x15bbf3c]
add esp, 0x1c
mov byte [esp + 0xfff], 0
test eax, eax
je 0x1405d0b
mov eax, dword [eax + 0x50]
test eax, eax
je 0x1405d0b
push str.escape_n
call eax
add esp, 4
push 0x10
push str.Fatal_Error
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtTerminateProcess]
mov esp, ebp
pop ebp
ret
Function at 0x1407e00
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [0x15bcf54]
push edi
test esi, esi
je 0x1407fc3
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop dword [eax]
cmp byte [esi + 4], 0
jne 0x1407fb8
mov eax, dword [esi]
cmp eax, 1
jne 0x1407e5c
call fcn.01401610
mov edx, dword [esi + 0xc]
lea ecx, [esi + 0x18]
sub esp, 0xc
call fcn.01401950
call fcn.014016a0
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x1407fb4
mov eax, dword [esi + 0x18]
jmp 0x1407fb2
cmp eax, 2
jne 0x1407e99
mov edi, dword [esi + 0x28]
mov dword [ebp - 4], 0
mov eax, dword [edi]
mov dword [esi + 8], eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push edi
call ebx
test eax, eax
je 0x1407fa8
mov eax, dword [esi + 0xc]
mov dword [edi], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push edi
call ebx
jmp 0x1407fa8
cmp eax, 3
jne 0x1407ed6
mov edi, dword [esi + 0x20]
mov dword [ebp - 8], 0
mov eax, dword [edi]
mov dword [esi + 8], eax
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
call ebx
test eax, eax
je 0x1407fa8
mov eax, dword [esi + 0xc]
mov dword [edi], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 4
push edi
call ebx
jmp 0x1407fa8
cmp eax, 4
jne 0x1407fb4
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x1407eee
mov eax, dword [0x15bd548]
add eax, 5
mov dword [0x15bd548], eax
mov edx, eax
mov dword [ebp - 0x10], 0
mov edi, eax
mov ebx, eax
mov cl, byte [eax]
cmp cl, 0xff
jne 0x1407f20
mov al, byte [edx + 1]
cmp al, 0x15
jne 0x1407f15
mov eax, dword [edi + 2]
mov eax, dword [eax]
jmp 0x1407f32
cmp al, 0x25
jne 0x1407f4b
mov eax, dword [ebx + 2]
mov eax, dword [eax]
jmp 0x1407f32
cmp cl, 0xe8
je 0x1407f2a
cmp cl, 0xe9
jne 0x1407f4b
mov ecx, dword [eax + 1]
add eax, 5
add eax, ecx
mov ecx, dword [ebp - 0x10]
mov edx, eax
inc ecx
mov dword [0x15bd548], eax
mov dword [ebp - 0x10], ecx
mov edi, edx
mov ebx, edx
cmp ecx, 1
jb 0x1407f00
jmp 0x1407f4d
xor eax, eax
push dword [esi + 0x1c]
mov dword [esi + 8], eax
lea eax, [esi + 0x20]
push dword [esi + 0x18]
push eax
call fcn.0142acd0
mov edi, dword [esi + 0x1c]
lea eax, [ebp - 0xc]
mov ebx, dword [esi + 0x18]
add esp, 0xc
mov dword [ebp - 0xc], 0
push eax
push 0x40
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1407fa2
push edi
lea eax, [esi + 0x28]
push eax
push ebx
call fcn.0142acd0
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call ebx
jmp 0x1407fa8
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x1407fb4
mov eax, dword [esi + 8]
mov dword [ecx], eax
mov byte [esi + 4], 1
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x1407e20
pop edi
pop esi
mov byte [0x15bbee0], 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x140a480
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x140a53c
mov eax, dword [esi]
cmp eax, 1
jne 0x140a4b2
call fcn.01401610
mov edx, dword [esi + 0xc]
lea ecx, [esi + 0x18]
call fcn.01401e40
call fcn.014016a0
jmp 0x140a538
push ebx
push edi
cmp eax, 2
jne 0x140a4be
mov edi, dword [esi + 0x28]
jmp 0x140a4c6
cmp eax, 3
jne 0x140a4f5
mov edi, dword [esi + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push edi
mov dword [ebp - 4], 0
call ebx
test eax, eax
je 0x140a536
mov eax, dword [esi + 8]
mov dword [edi], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push edi
call ebx
jmp 0x140a536
cmp eax, 4
jne 0x140a536
mov edi, dword [esi + 0x1c]
lea eax, [ebp - 4]
mov ebx, dword [esi + 0x18]
push eax
push 0x40
push edi
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140a536
push edi
lea eax, [esi + 0x20]
push eax
push ebx
call fcn.0142acd0
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop ebx
mov byte [esi + 4], 0
push 0x164
push esi
call fcn.014280c5
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x140ad20
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x144c240
push 0x164
mov edi, edx
mov ebx, ecx
call fcn.01428070
mov esi, eax
add esp, 8
test esi, esi
je 0x140ae46
push 0x14c
lea eax, [esi + 0x18]
mov byte [esi + 4], 0
push 0
push eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.0142aac0
push 0x160
lea eax, [esi + 4]
push 0
push eax
call fcn.0142aac0
mov ecx, dword [ebp + 0x18]
mov dword [esi], 3
mov eax, dword [0x15bcf54]
mov dword [esi + 0x14], eax
mov dword [0x15bcf54], esi
mov eax, dword [ecx]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
push 0x40
push dword [ebp + 8]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x24]
push eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], ecx
call fcn.01435550
push 0x100
push dword [ebp + 0xc]
lea eax, [esi + 0x64]
mov byte [esi + 0x63], 0
push eax
call fcn.01435550
mov eax, dword [ebp + 0x14]
add esp, 0x30
cmp byte [0x15bbee0], 0
mov byte [esi + 0x163], 0
mov dword [esi + 0x10], eax
je 0x140adfc
xor al, al
mov byte [esi + 4], al
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esi + 0x20]
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push eax
push 0x40
push 4
push edi
mov dword [ebp - 4], 0
call ebx
test eax, eax
je 0x140ae2c
mov eax, dword [esi + 0xc]
mov dword [edi], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push edi
call ebx
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x140ae38
mov eax, dword [esi + 8]
mov dword [ecx], eax
mov al, 1
mov byte [esi + 4], al
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x140ba10
Capabilities:
Access pe header
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x159058c
call fcn.01429133
add esp, 4
test eax, eax
jne 0x140bb73
cmp dword [0x15905b8], 0x7fffffff
je 0x140bb7a
mov eax, dword [0x15bcf98]
mov ecx, dword [0x15bcf9c]
push esi
push edi
mov edi, dword [ebp + 8]
cmp eax, ecx
je 0x140ba5e
nop
mov esi, dword [eax]
cmp edi, dword [esi + 0xc]
je 0x140bac5
add eax, 4
cmp eax, ecx
jne 0x140ba50
push 0x159058c
call fcn.01429144
add esp, 4
push ebx
push edi
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
test eax, eax
je 0x140babc
movzx ecx, word [eax + 0x14]
movzx esi, word [eax + 6]
add ecx, eax
mov dword [ebp - 8], ecx
xor eax, eax
add ecx, 0x18
mov dword [ebp - 4], ecx
xor ecx, ecx
cmp ax, si
jae 0x140babc
mov ebx, dword [ebp + 0xc]
movzx eax, cx
lea edx, [eax + eax*4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + edx*8]
cmp eax, dword [ebx]
jne 0x140bab6
mov eax, dword [ebp - 4]
mov eax, dword [eax + edx*8 + 4]
cmp eax, dword [ebx + 4]
je 0x140bb4d
inc ecx
cmp cx, si
jb 0x140ba96
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 0x159058c
call fcn.01429144
add esp, 4
test esi, esi
je 0x140ba6b
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0x7865742e
jne 0x140bafc
cmp dword [eax + 4], 0x74
jne 0x140bafc
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x140baf3
mov eax, dword [esi + 0x24]
mov dword [ecx], eax
mov eax, dword [esi + 0x20]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [eax], 0x7461642e
jne 0x140bb1f
cmp dword [eax + 4], 0x61
jne 0x140bb1f
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x140bb16
mov eax, dword [esi + 0x2c]
mov dword [ecx], eax
mov eax, dword [esi + 0x28]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [eax], 0x6164722e
jne 0x140bb45
cmp dword [eax + 4], 0x6174
jne 0x140bb45
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x140bb3c
mov eax, dword [esi + 0x34]
mov dword [ecx], eax
mov eax, dword [esi + 0x30]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp - 8]
test esi, esi
je 0x140bb66
mov ecx, dword [ebx + edx*8 + 0x28]
cmp ecx, dword [ebx + edx*8 + 0x20]
cmovbe ecx, dword [ebx + edx*8 + 0x20]
mov dword [esi], ecx
mov eax, dword [ebx + edx*8 + 0x24]
pop ebx
add eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 5
call fcn.014290d5
push 6
mov dword [0x15905b8], 0x7ffffffe
call fcn.014290d5
int3
Function at 0x140faa0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x144adfd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
push 0
mov eax, dword [ebx]
push 0
mov dword [ebp - 0x14], ebx
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
mov dword [edi + 0x30], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x201
mov dword [edi + 0x18], 6
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.01405b70
push 8
call fcn.01428355
add esp, 4
mov esi, eax
push 1
mov dword [ebp - 4], 1
call fcn.0142949e
mov dword [esi + 4], eax
add esp, 4
mov eax, dword [ebp + 8]
mov dword [edi + 0x30], esi
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0
mov esi, dword [esi + 4]
mov ecx, esi
mov dword [ebp - 0x1c], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 2
push eax
call fcn.01410820
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov byte [ebp - 4], 0
mov ecx, esi
mov edx, dword [esi]
mov byte [ebp + 0xb], al
call dword [edx + 8]
test eax, eax
je 0x140fbb6
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [edi + 0x38], 0
mov al, byte [ebp + 0xb]
mov byte [edi + 0x40], al
jne 0x140fbd2
mov eax, dword [edi + 0xc]
mov ecx, edi
push 0
or eax, 4
push eax
call fcn.01405b70
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1410510
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x144ae50
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.01428355
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0142949e
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.014104b0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1412cd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [ecx + 4], 0
je 0x1412d0a
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ecx + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1412d0a
cmp dword [ebp - 8], 4
mov eax, dword [ebp - 0xc]
je 0x1412d0d
mov eax, dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret 8

Function at 0x1412d50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov byte [0x15bdd88], 0
cmp byte [ecx + 4], 0
mov dword [ebp - 4], 0x200
je 0x1412d9c
lea eax, [ebp - 4]
push eax
push 0x15bdd88
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ecx + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1412d9c
cmp dword [ebp - 8], 1
mov eax, 0x15bdd88
cmovne eax, dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret 8