joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40142e
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x406168
call fcn.00401df4
mov edi, 0x94
mov eax, edi
call fcn.00402b00
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4082e0], ecx
mov eax, dword [esi + 4]
mov dword [0x4082ec], eax
mov edx, dword [esi + 8]
mov dword [0x4082f0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4082e4], esi
cmp ecx, 2
je 0x40148e
or esi, 0x8000
mov dword [0x4082e4], esi
shl eax, 8
add eax, edx
mov dword [0x4082e8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4014c9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4014c9
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4014e1
cmp eax, 0x20b
je 0x4014ce
mov dword [ebp - 0x1c], esi
jmp 0x4014f5
cmp dword [ecx + 0x84], 0xe
jbe 0x4014c9
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4014ef
cmp dword [ecx + 0x74], 0xe
jbe 0x4014c9
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00402aa6
pop ecx
test eax, eax
jne 0x401521
cmp dword [0x4082c8], 1
jne 0x40150e
call fcn.0040225b
push 0x1c
call fcn.004020e4
push 0xff
call fcn.00401f49
pop ecx
pop ecx
call fcn.00402a04
mov dword [ebp - 4], esi
call fcn.00402859
test eax, eax
jge 0x40153a
push 0x1b
call fcn.00401409
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x408840], eax
call fcn.00402737
mov dword [0x4082c0], eax
call fcn.00402695
test eax, eax
jge 0x401560
push 8
call fcn.00401409
pop ecx
call fcn.00402462
test eax, eax
jge 0x401571
push 9
call fcn.00401409
pop ecx
push 1
call fcn.00401f79
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x401587
push eax
call fcn.00401409
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00402405
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4015a8
movzx eax, word [ebp - 0x40]
jmp 0x4015ab
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call section..text
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4015c9
push edi
call fcn.004020a4
call fcn.004020c6
jmp 0x4015fb
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00401e2f
ret
Function at 0x401fe3
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x408320], esi
push edi
jne 0x402003
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x40831c], esi
mov byte [0x408318], al
jne 0x402069
mov ecx, dword [0x408608]
test ecx, ecx
je 0x40204a
mov eax, dword [0x408604]
sub eax, 4
cmp eax, ecx
jmp 0x402043
mov eax, dword [eax]
test eax, eax
je 0x402035
call eax
mov eax, dword [0x408604]
sub eax, 4
cmp eax, dword [0x408608]
mov dword [0x408604], eax
jae 0x40202d
mov eax, 0x40801c
mov esi, 0x408020
cmp eax, esi
mov edi, eax
jae 0x402069
mov eax, dword [edi]
test eax, eax
je 0x402062
call eax
add edi, 4
cmp edi, esi
jb 0x40205a
mov eax, 0x408024
mov esi, 0x408028
cmp eax, esi
mov edi, eax
jae 0x402088
mov eax, dword [edi]
test eax, eax
je 0x402081
call eax
add edi, 4
cmp edi, esi
jb 0x402079
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4020a2
push dword [ebp + 8]
mov dword [0x408320], 1
call fcn.00401f49
pop ebp
ret

Function at 0x4020e4
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x408030]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x408140]
je 0x402119
inc eax
cmp eax, 0x13
jb 0x40210a
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x408140]
jne 0x40223f
mov eax, dword [0x4082c8]
cmp eax, 1
je 0x402217
cmp eax, edx
jne 0x402149
cmp dword [0x408038], 1
je 0x402217
cmp ecx, 0xfc
je 0x40223f
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40217f
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00403290
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00401a00
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4021b3
mov eax, edi
push eax
call fcn.00401a00
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4061ac
push edi
call fcn.00403390
add esp, 0x10
push edi
call fcn.00401a00
push dword [esi + 0x408144]
mov ebx, eax
call fcn.00401a00
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00402b00
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00403290
push edi
push ebx
call fcn.004032a0
push 0x4061a8
push ebx
call fcn.004032a0
push dword [esi + 0x408144]
push ebx
call fcn.004032a0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040318e
add esp, 0x2c
jmp 0x40223f
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x408144]
push dword [esi]
call fcn.00401a00
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.004013fb
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40318e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x408464], ebx
push esi
push edi
jne 0x40320e
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x403249
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x408464], eax
je 0x403249
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x408468], eax
call esi
cmp dword [0x4082e0], 2
mov dword [0x40846c], eax
jne 0x40320e
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x408474], eax
je 0x40320e
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x408470], eax
mov eax, dword [0x408470]
test eax, eax
je 0x403253
call eax
test eax, eax
je 0x40323a
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x408474]
test eax, eax
je 0x40323a
test byte [ebp - 8], 1
jne 0x403253
cmp dword [0x4082ec], 4
jb 0x40324d
or byte [ebp + 0x12], 0x20
jmp 0x403272
xor eax, eax
jmp 0x403282
or byte [ebp + 0x12], 4
jmp 0x403272
mov eax, dword [0x408468]
test eax, eax
je 0x403272
call eax
mov ebx, eax
test ebx, ebx
je 0x403272
mov eax, dword [0x40846c]
test eax, eax
je 0x403272
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x408464]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4035a2
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4035d0
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4035d7
cmp ebx, dword [eax + 4]
jae 0x4035d7
xor eax, eax
jmp 0x4037c7
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4035e8
xor eax, eax
inc eax
jmp 0x4037c6
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4035fe
cmp ecx, edx
jae 0x403743
cmp dword [eax + 4], 0
je 0x403607
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4035ef
cmp dword [ebp + 8], 0
je 0x403629
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x403743
cmp eax, esi
jae 0x403743
mov eax, dword [0x408478]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40364e
cmp dword [esi*4 + 0x408480], edi
je 0x403747
inc esi
cmp esi, eax
jl 0x40363c
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4037c3
cmp dword [ebp - 8], 0x1000000
jne 0x4037c3
test byte [ebp - 0xc], 0xcc
je 0x4036cc
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4037c3
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4037c3
cmp word [eax + 0x18], 0x10b
jne 0x4037c3
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4037c3
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4036cc
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4036cc
test byte [ecx + 0x27], 0x80
jne 0x403743
push 1
push 0x4084c0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4035e0
mov ecx, dword [0x408478]
test ecx, ecx
mov edx, ecx
jle 0x403700
lea eax, [ecx*4 + 0x40847c]
cmp dword [eax], edi
je 0x403700
dec edx
sub eax, 4
test edx, edx
jg 0x4036f4
test edx, edx
jne 0x403731
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40370d
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x403725
lea eax, [edx*4 + 0x408480]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x403713
cmp ecx, 0x10
jge 0x403731
inc ecx
mov dword [0x408478], ecx
push 0
push 0x4084c0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4035e0
xor eax, eax
jmp 0x4037c6
test esi, esi
jle 0x4035e0
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4084c0
call ebx
test eax, eax
jne 0x4035e0
cmp dword [esi*4 + 0x408480], edi
je 0x40379d
mov eax, dword [0x408478]
lea esi, [eax - 1]
test esi, esi
jl 0x40378b
cmp dword [esi*4 + 0x408480], edi
je 0x403787
dec esi
jns 0x40377b
test esi, esi
jge 0x40379b
cmp eax, 0x10
jge 0x403796
inc eax
mov dword [0x408478], eax
lea esi, [eax - 1]
jmp 0x40379d
je 0x4037b5
xor ecx, ecx
test esi, esi
jl 0x4037b5
lea eax, [ecx*4 + 0x408480]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4037a3
push 0
push 0x4084c0
call ebx
jmp 0x4035e0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404a5c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00402b00
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404af7
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4082e0]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x404af7
cmp eax, 1
je 0x404b18
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404af7
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x404ac4
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x404af3
xor eax, eax
inc eax
jmp 0x404b37
cmp edi, eax
jae 0x404afb
xor eax, eax
jmp 0x404b37
cmp eax, esi
jae 0x404b02
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4082e0]
jmp 0x404b1b
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4239f6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x423a05
pop dword [ebp - 0x24]
mov eax, 0x8701f028
sub eax, 0x86bfb623
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x378c5
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0x3b81
mov esi, eax
mov edx, 0x29632121
sub edx, 0x291e5b21
add edx, dword [ebp - 0x24]
mov edi, 0xcb017911
mov ebx, dword [edx]
sub ebx, edi
xor dword [ebp - 0x20], esi
mov dword [esi], ebx
add esi, 0x90509225
sub esi, 0x90509221
add edx, 0x66f988e
add edx, 0xf9906776
loop 0x423a53
add eax, 0xe0d7
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xe2b36937
sub ecx, 0xe2736937
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x4281f2
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
mov eax, 0x436de3
call fcn.004339e0
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x43a908
mov dword [esi + 4], 0x43a8f4
mov dword [esi + 8], 0x438e70
mov dword [esi + 0xc], 0x43a8d8
mov dword [esi + 0x10], 0x43a8c4
mov dword [esi + 0x14], 0x43a8b4
mov dword [esi + 0x18], 0x438e60
mov dword [esi + 0x1c], 0x438e50
mov dword [esi + 0x20], 0x43a8ac
mov dword [esi + 0x24], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
or dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 4
call fcn.004028e9
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 5
call fcn.004028e9
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
or dword [esi + 0x9c], 0xffffffff
mov byte [ebp - 4], 7
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0xa0], ebx
mov byte [esi + 0xa4], bl
mov byte [esi + 0xa5], bl
mov byte [esi + 0xa6], bl
mov byte [esi + 0xa7], bl
mov byte [esi + 0xa8], bl
mov byte [esi + 0xa9], bl
mov byte [esi + 0xaa], bl
mov dword [esi + 0xac], ebx
mov dword [esi], 0x43a880
mov dword [esi + 4], 0x43a86c
mov dword [esi + 8], 0x43a854
mov dword [esi + 0xc], 0x43a838
mov dword [esi + 0x10], 0x43a824
mov dword [esi + 0x14], 0x43a814
mov dword [esi + 0x18], 0x43a804
mov dword [esi + 0x1c], 0x43a7f4
mov dword [esi + 0x20], 0x43a7ec
call fcn.0040d4f9
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x28], al
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x10001000
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret 4

Function at 0x10001e00
Capabilities:
Reference the vmware io port

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10012420
push 0x100037d4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x1c], 1
mov dword [ebp - 4], 0
push edx
push ecx
push ebx
mov eax, 0x564d5868
mov ebx, 0
mov ecx, 0xa
mov edx, 0x5658
in eax, dx
cmp ebx, 0x564d5868
sete byte [ebp - 0x1c]
pop ebx
pop ecx
pop edx
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100029b0
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
xor ecx, ecx
mov ebp, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 8], 0
mov cx, word [eax + 0x14]
cmp word [eax + 6], 0
lea ebx, [ecx + eax + 0x18]
jbe 0x10002a71
push esi
push edi
add ebx, 0x10
cmp dword [ebx], 0
jne 0x10002a1b
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 0x38]
test esi, esi
jle 0x10002a4f
mov eax, dword [ebx - 4]
push 4
push 0x1000
add eax, ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx - 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x10002a4f
mov ecx, dword [ebx - 4]
mov eax, dword [ebx]
push 4
push 0x1000
add ecx, ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx]
mov esi, dword [ebx + 4]
mov edi, dword [esp + 0x18]
mov edx, ecx
add esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx - 8], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc eax
add ebx, 0x28
mov edx, dword [ecx]
xor ecx, ecx
mov dword [esp + 0x10], eax
mov cx, word [edx + 6]
cmp eax, ecx
jl 0x100029de
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x10002a80
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
xor ecx, ecx
push ebp
mov ebx, dword [eax]
xor ebp, ebp
mov cx, word [ebx + 0x14]
cmp word [ebx + 6], bp
lea eax, [ecx + ebx + 0x18]
jbe 0x10002b34
push esi
push edi
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x10002ad7
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x10002b1a
lea ecx, [edx + ecx*2]
test eax, 0x4000000
lea edx, [esi + ecx*2]
mov edx, dword [edx*4 + 0x100161d4]
je 0x10002aee
or dh, 2
mov ecx, dword [edi - 0x14]
test ecx, ecx
jne 0x10002b07
test al, 0x40
je 0x10002afe
mov ecx, dword [ebx + 0x20]
jmp 0x10002b05
test al, 0x80
je 0x10002b1a
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x10002b1a
lea eax, [esp + 0x10]
push eax
push edx
push ecx
mov ecx, dword [edi - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x18]
xor eax, eax
inc ebp
add edi, 0x28
mov ebx, dword [edx]
mov ax, word [ebx + 6]
cmp ebp, eax
jl 0x10002aa4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x7ff51bd6
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add eax, 0xe0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push 0x40
mov eax, dword [ebp - 0x14]
push dword [eax + 0x38]
push dword [ebp - 4]
call dword [0x7ff9604c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x7ff51c38
push dword [ebp - 4]
push str.VirtualProtect_failed__x
push 0x2d
push str.X:_thinstall_stub_ts_stub.cc
call fcn.7ff85958
pop ecx
pop ecx
call eax
pop ecx
pop ecx
mov eax, dword [ebp - 4]
mov dword [0x7ffa58e0], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x38]
mov dword [0x7ffa58d4], eax
leave
ret

Function at 0x7ff51d84
Capabilities:
Query environment variable
Set environment variable
Terminate process

Disassembly:
add esp, 0x100
jmp fcn.7ff52230
Function at 0x7ff51d8f
Capabilities:
Create process on windows
Create process suspended
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
cmp dword [0x7ffa58dc], 0
jne 0x7ff51dbd
push str.IsDebuggerPresent
push str.kernel32
call dword [0x7ff962c8]
push eax
call dword [0x7ff962b8]
mov dword [0x7ffa58dc], eax
mov eax, dword [0x7ffa59a4]
and eax, 0x2000000
test eax, eax
je 0x7ff51f82
call dword [0x7ff9606c]
push eax
push str._d.df
lea eax, [ebp - 0xc8]
push eax
call fcn.7ff85dd0
add esp, 0xc
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax]
mov dword [ebp - 0xd4], eax
push dword [ebp - 0xd4]
push 0
push 4
call dword [0x7ff96068]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0xc8]
call fcn.7ff86114
cmp dword [ebp - 4], 0
jne 0x7ff51f82
mov dword [ebp - 0xa8], 0x44
lea eax, [ebp - 0xa8]
push eax
call dword [0x7ff96064]
call fcn.7ff77a19
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xa8]
push eax
push 0
push 0
push 2
push 0
push 0
push 0
push dword [ebp - 0xc0]
push 0
call dword [0x7ff96060]
test eax, eax
jne 0x7ff51e7c
push 0
call dword [0x7ff962c4]
cmp dword [0x7ffa58dc], 0
je 0x7ff51e94
call dword [0x7ffa58dc]
test eax, eax
je 0x7ff51e94
call fcn.7ff51d84
push dword [ebp - 0xb4]
push str._d.df
lea eax, [ebp - 0xcc]
push eax
call fcn.7ff85dd0
add esp, 0xc
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xd8]
mov eax, dword [eax]
mov dword [ebp - 0xdc], eax
push dword [ebp - 0xdc]
push 4
push 0
push 0x8000004
push 0
push 0xffffffffffffffff
call dword [0x7ff9605c]
mov dword [ebp - 0xac], eax
lea ecx, [ebp - 0xcc]
call fcn.7ff86114
push 1
pop eax
test eax, eax
je 0x7ff51f82
cmp dword [0x7ffa58dc], 0
je 0x7ff51f0f
call dword [0x7ffa58dc]
test eax, eax
je 0x7ff51f0f
call fcn.7ff51d84
push 0xffffffffffffffff
lea eax, [ebp - 0x64]
push eax
call dword [0x7ff96058]
test eax, eax
jne 0x7ff51f27
push 0
call dword [0x7ff962c4]
mov dword [ebp - 0xc4], 0x10002
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0xe0], eax
cmp dword [ebp - 0xe0], 1
je 0x7ff51f4e
cmp dword [ebp - 0xe0], 5
je 0x7ff51f63
jmp 0x7ff51f6b
cmp dword [ebp - 0x58], 0x80000003
je 0x7ff51f61
mov dword [ebp - 0xc4], 0x80010001
jmp 0x7ff51f6b
push 0
call dword [0x7ff962c4]
push dword [ebp - 0xc4]
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
call dword [0x7ff96054]
jmp 0x7ff51eec
leave
ret