joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013d3
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x449450], 1
mov dword [0x449454], 1
mov dword [0x449458], 1
mov dword [0x449444], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40141e
mov eax, 0
jmp 0x4014b8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x401441
mov eax, 0
jmp 0x4014b8
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x401463
cmp eax, 0x20b
je 0x401488
jmp 0x4014b3
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401475
mov eax, 0
jmp 0x4014b8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014b8
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x4014a0
mov eax, 0
jmp 0x4014b8
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014b8
mov eax, 0
leave
ret

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

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [0x42a860]
mov eax, dword [0x42a868]
sub eax, ebx
cmp eax, 0x7fff
ja 0x401b1b
mov ecx, dword [0x42a5d4]
test ecx, ecx
je 0x401b30
mov dword [esp + 4], 0x11000
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ebx, [eax + 0xfff]
sub esp, 8
and ebx, 0xfffff000
cmp dword [0x42a8ac], 0x1ff
jbe 0x401adc
mov dword [esp], 0x422078
call sym._GC_default_on_abort.lto_priv.70
call dword [sym.imp.KERNEL32.dll_DebugBreak]
test ebx, ebx
je 0x401ba0
mov eax, dword [0x42a8ac]
add dword [0x42a840], 0x10000
cmp dword [0x42a7dc], 2
lea edx, [eax + 1]
mov dword [eax*4 + 0x43ea14], ebx
mov dword [0x42a8ac], edx
je 0x401c00
lea eax, [ebx + 0x10000]
mov dword [0x42a868], eax
lea eax, [ebx + 0x8000]
mov dword [0x42a860], eax
add esp, 0x18
mov eax, ebx
pop ebx
ret
cmp dword [0x421848], 1
mov edx, dword [0x42a7e0]
mov dword [esp], 0
sbb eax, eax
and eax, 0xffffffc4
add eax, 0x40
mov dword [esp + 0xc], eax
mov eax, dword [0x42a5d0]
or ah, 0x30
mov dword [esp + 8], eax
xor eax, eax
test edx, edx
sete al
add eax, 0x10000
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
sub esp, 0x10
mov ebx, eax
test eax, 0xfff
je 0x401abe
mov dword [esp], 0x422060
call sym._GC_default_on_abort.lto_priv.70
call dword [sym.imp.KERNEL32.dll_DebugBreak]
jmp 0x401abe
mov dword [esp + 4], 0x8000
mov dword [esp], 0x4220a8
call dword [0x42184c]
mov eax, 0x8000
call sym._GC_win32_get_mem
mov ebx, eax
test eax, eax
je 0x401b26
add dword [0x42a840], 0x8000
cmp dword [0x42a7dc], 2
jne 0x401b26
mov dword [esp + 4], 0x8000
mov dword [esp], 0x42208f
call sym._GC_log_printf
jmp 0x401b26
mov dword [esp + 4], 0x10000
mov dword [esp], 0x42208f
call sym._GC_log_printf
jmp 0x401b10
Function at 0x4029e0
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
mov esi, str.double_string.free___detected_n
push ebx
mov ebx, 0x1e
sub esp, 0x10
mov dword [esp], 1
call dword [0x4218a8]
mov edi, eax
nop
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 0xc], edi
mov dword [esp + 4], 1
call sym._fwrite
sub ebx, eax
add esi, eax
test ebx, ebx
jg 0x402a00
add esp, 0x10
pop ebx
pop esi
pop edi
ret

Function at 0x402a50
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [esp + 0x18], edx
test eax, eax
je 0x402b30
mov esi, dword [sym.___acrt_iob_func]
mov ebx, eax
mov dword [esp], 1
call esi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov dword [esp], 2
call esi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov edi, dword [esp + 0x18]
mov byte [esp + 0x24], 0xa
test edi, edi
jle 0x402ad0
mov dword [esp], 1
call esi
mov dword [esp], 2
call esi
mov ebp, eax
nop
mov dword [esp + 8], edi
mov dword [esp], ebx
mov dword [esp + 0xc], ebp
mov dword [esp + 4], 1
call sym._fwrite
sub edi, eax
add ebx, eax
test edi, edi
jg 0x402ab0
mov dword [esp], 1
lea edi, [esp + 0x24]
mov ebx, 1
call esi
mov dword [esp], 2
call esi
mov ebp, eax
lea esi, [esi]
mov dword [esp + 8], ebx
mov dword [esp], edi
mov dword [esp + 0xc], ebp
mov dword [esp + 4], 1
call sym._fwrite
sub ebx, eax
add edi, eax
test ebx, ebx
jg 0x402af0
mov dword [esp], 2
call esi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, str.eprintln_NIL_
mov edx, 0xd
mov ecx, 1
mov dword [esp + 0x24], str.eprintln_NIL_
mov dword [esp + 0x28], 0xd
mov dword [esp + 0x2c], 1
call sym._eprintln
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x407ac0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x7c
mov eax, dword [esp + 0x90]
mov eax, dword [eax]
mov edx, dword [eax]
cmp edx, 0x4001000a
je 0x407bfc
cmp edx, 0xe06d7363
je 0x407bfc
cmp edx, 0x40010006
je 0x407bfc
xor eax, eax
lea edi, [esp + 0x44]
mov ecx, 0xb
mov dword [esp + 0x40], edx
rep stosd dword es:[edi], eax
lea edx, [esp + 0x30]
lea eax, [esp + 0x18]
mov dword [esp + 0x30], str.Unhandled_Exception_0x
mov dword [esp + 0x34], 0x16
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], 0x7000fe86
mov dword [esp + 0x50], 0x4222f5
mov dword [esp + 0x58], 1
call sym._str_intp.constprop.9
mov esi, dword [esp + 0x18]
test esi, esi
je 0x407c10
mov ebx, dword [esp + 0x1c]
mov ebp, dword [sym.___acrt_iob_func]
mov byte [esp + 0x24], 0xa
test ebx, ebx
jle 0x407b90
mov dword [esp], 1
call ebp
mov edi, eax
nop
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 0xc], edi
mov dword [esp + 4], 1
call sym._fwrite
sub ebx, eax
add esi, eax
test ebx, ebx
jg 0x407b70
mov dword [esp], 1
lea esi, [esp + 0x24]
mov ebx, 1
call ebp
mov edi, eax
lea esi, [esi]
lea esi, [esi]
nop
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 0xc], edi
mov dword [esp + 4], 1
call sym._fwrite
sub ebx, eax
add esi, eax
test ebx, ebx
jg 0x407bb0
mov eax, str.print_backtrace_skipping_top_frames_is_not_implemented
mov edx, 0x36
mov ecx, 1
mov dword [esp + 0x24], str.print_backtrace_skipping_top_frames_is_not_implemented
mov dword [esp + 0x28], 0x36
mov dword [esp + 0x2c], 1
call sym._eprintln
add esp, 0x7c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov byte [esp + 0x24], 0xa
mov esi, str.println_NIL_
mov ebx, 0xc
mov ebp, dword [sym.___acrt_iob_func]
mov dword [esp], 1
call ebp
mov edi, eax
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 0xc], edi
mov dword [esp + 4], 1
call sym._fwrite
sub ebx, eax
add esi, eax
test ebx, ebx
jg 0x407c30
mov dword [esp], 1
lea esi, [esp + 0x24]
mov ebx, 1
call ebp
mov edi, eax
lea esi, [esi]
lea esi, [esi]
nop
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 0xc], edi
mov dword [esp + 4], 1
call sym._fwrite
sub ebx, eax
add esi, eax
test ebx, ebx
jg 0x407c70
jmp 0x407bd0
Function at 0x407ca0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
mov edi, str.V_panic:
push esi
mov esi, 9
push ebx
sub esp, 0x8c
mov ebx, dword [sym.___acrt_iob_func]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
mov dword [esp], 1
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov dword [esp], 2
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov dword [esp], 1
call ebx
mov dword [esp], 2
call ebx
mov ebp, eax
mov dword [esp + 8], esi
mov dword [esp], edi
mov dword [esp + 0xc], ebp
mov dword [esp + 4], 1
call sym._fwrite
sub esi, eax
add edi, eax
test esi, esi
jg 0x407cfc
mov dword [esp], 2
lea edi, [esp + 0x5c]
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
call sym._eprintln
xor eax, eax
mov ecx, 9
lea edx, [esp + 0x40]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x40], str.v_hash:
mov dword [esp + 0x44], 8
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], 0xfe10
mov dword [esp + 0x50], str.6b2d527
mov dword [esp + 0x54], 7
mov dword [esp + 0x58], 1
mov dword [esp + 0x60], 0x4222f5
mov dword [esp + 0x68], 1
call sym._str_intp.constprop.9
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
call sym._eprintln
mov eax, str.print_backtrace_skipping_top_frames_is_not_implemented
mov edx, 0x36
mov ecx, 1
call sym._eprintln
mov dword [esp], 1
call sym._exit
lea esi, [esi]
lea esi, [esi]
nop
Function at 0x40ba60
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x4c
fld qword [esp + 0x60]
fstp qword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
lea ecx, [edx - 0x80000000]
or ecx, eax
je 0x40bb10
or edx, eax
je 0x40baf0
fld qword [esp + 0x18]
fchs
fld qword [esp + 0x18]
fldz
fcompi st(1)
fld st(0)
fcmovnbe st(0), st(2)
fstp st(2)
fld qword [0x423630]
fxch st(2)
fcomi st(2)
fstp st(2)
jb 0x40bac0
fld dword [0x423618]
fcompi st(2)
fstp st(1)
ja 0x40bb30
fstp st(0)
jmp 0x40bac4
fstp st(0)
fstp st(0)
fld qword [esp + 0x18]
mov eax, ebx
mov edx, 0x11
fstp qword [esp]
call sym._strconv__f64_to_str
add esp, 0x4c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebx], 0x422c9d
mov eax, ebx
mov dword [ebx + 4], 3
mov dword [ebx + 8], 1
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebx], str._0.0
mov eax, ebx
mov dword [ebx + 4], 4
mov dword [ebx + 8], 1
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x28]
fstp qword [esp]
mov edx, 0x12
call sym._strconv__f64_to_str
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
lea eax, [esp + 0x34]
call sym._strconv__fxx_to_str_l_parse
cmp esi, 0xfa1d05ee
je 0x40bb90
mov eax, dword [esp + 0x34]
mov dword [ebx], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [ebx + 8], eax
add esp, 0x4c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 1
mov edi, str.double_string.free___detected_n
mov esi, 0x1e
call dword [0x4218a8]
mov ebp, eax
lea esi, [esi]
mov dword [esp + 8], esi
mov dword [esp], edi
mov dword [esp + 0xc], ebp
mov dword [esp + 4], 1
call sym._fwrite
sub esi, eax
add edi, eax
test esi, esi
jg 0x40bbb0
jmp 0x40bb69
Function at 0x40d540
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x3c
mov eax, dword [esp + 0x50]
cmp eax, 0x80000000
je 0x40d5e0
test eax, eax
je 0x40d5c0
fld dword [esp + 0x50]
fchs
fld dword [esp + 0x50]
fldz
fcompi st(1)
fxch st(1)
fcmovbe st(0), st(1)
fld dword [0x423614]
fxch st(1)
fcomi st(1)
fstp st(1)
jb 0x40d590
fld dword [0x423618]
fcompi st(1)
fstp st(0)
ja 0x40d600
fstp st(0)
jmp 0x40d594
fstp st(0)
fstp st(0)
fld dword [esp + 0x50]
mov eax, ebx
mov edx, 8
fstp dword [esp]
call sym._strconv__f32_to_str
add esp, 0x3c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebx], 0x422c9d
mov eax, ebx
mov dword [ebx + 4], 3
mov dword [ebx + 8], 1
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebx], str._0.0
mov eax, ebx
mov dword [ebx + 4], 4
mov dword [ebx + 8], 1
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x18]
fstp dword [esp]
mov edx, 6
call sym._strconv__f32_to_str
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov dword [esp], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
lea eax, [esp + 0x24]
call sym._strconv__fxx_to_str_l_parse
cmp esi, 0xfa1d05ee
je 0x40d660
mov eax, dword [esp + 0x24]
mov dword [ebx], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 8], eax
add esp, 0x3c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 1
mov edi, str.double_string.free___detected_n
mov esi, 0x1e
call dword [0x4218a8]
mov ebp, eax
lea esi, [esi]
mov dword [esp + 8], esi
mov dword [esp], edi
mov dword [esp + 0xc], ebp
mov dword [esp + 4], 1
call sym._fwrite
sub esi, eax
add edi, eax
test esi, esi
jg 0x40d680
jmp 0x40d639
Function at 0x40e860
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x1c
mov dword [esp + 4], 1
mov dword [esp], 0x42a580
call dword [sym.imp.msvcrt.dll_longjmp]
lea esi, [esi]
nop

Function at 0x40e880
Capabilities:
Query environment variable

Disassembly:
push ebx
sub esp, 0x148
lea ebx, [esp + 0x2c]
mov dword [esp + 8], 0x105
mov dword [esp + 4], ebx
mov dword [esp], str.GC_LOG_FILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
sub eax, 1
sub esp, 0xc
cmp eax, 0x103
ja 0x40e960
cmp dword [0x42a7dc], 2
mov edx, pe_nt_image_headers32
mov eax, 0x80000080
mov dword [esp], ebx
cmove eax, edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 4
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x40000000
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
mov ebx, eax
cmp eax, 0xffffffff
jne 0x40e920
add esp, 0x148
mov eax, ebx
pop ebx
ret
lea eax, [esp + 0x28]
mov dword [esp], ebx
mov dword [esp + 0x28], 0
mov dword [esp + 0xc], 2
mov dword [esp + 8], eax
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, ebx
sub esp, 0x10
add esp, 0x148
pop ebx
ret
mov dword [esp + 8], 0x105
mov dword [esp + 4], ebx
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
sub esp, 0xc
cmp eax, 4
jle 0x40e98c
lea edx, [eax - 4]
cmp byte [esp + eax + 0x28], 0x2e
cmove eax, edx
add eax, ebx
mov edx, 0x80000080
cmp dword [0x42a7dc], 2
mov dword [eax], 0x2e63672e
mov dword [eax + 4], 0x676f6c
mov eax, pe_nt_image_headers32
cmovne eax, edx
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x40000000
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
mov ebx, eax
add esp, 0x148
mov eax, ebx
pop ebx
ret

Function at 0x40ea00
Capabilities:
Write file on windows

Disassembly:
test edx, edx
je 0x40ea50
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x34
mov eax, dword [0x4493e4]
test eax, eax
je 0x40ea60
cmp eax, 0xffffffff
je 0x40ea70
lea ecx, [esp + 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x40ea70
mov eax, dword [esp + 0x2c]
add esp, 0x34
pop ebx
pop esi
ret
xor eax, eax
ret
call sym._GC_CreateLogFile
mov dword [0x4493e4], eax
jmp 0x40ea16
mov eax, 0xffffffff
jmp 0x40ea47
Function at 0x40ea80
Capabilities:
Query environment variable

Disassembly:
push ebx
sub esp, 0x18
mov dword [0x4493e8], 1
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x40eacf
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.Fatal_error_in_GC
mov dword [esp + 4], ebx
mov dword [esp], 0
call dword [sym.imp.USER32.dll_MessageBoxA]
sub esp, 0x10
mov dword [esp], ebx
call sym._strlen
mov edx, eax
mov eax, ebx
call sym._GC_write
test eax, eax
jns 0x40eaf0
mov dword [esp], str.GC_LOOP_ON_ABORT
call sub.msvcrt.dll_getenv
test eax, eax
je 0x40eb0f
jmp 0x40eadf
mov edx, 1
mov eax, 0x42367e
call sym._GC_write
mov dword [esp], str.GC_LOOP_ON_ABORT
call sub.msvcrt.dll_getenv
test eax, eax
jne 0x40eadf
add esp, 0x18
pop ebx
ret

Function at 0x40eb20
Capabilities:
Get system information on windows
Query environment variable

Disassembly:
mov eax, dword [0x42a558]
test eax, eax
je 0x40eb30
ret
sub esp, 0x1c
mov dword [esp], str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
sub esp, 4
test eax, eax
je 0x40eb80
mov dword [esp + 4], str.InitializeCriticalSectionAndSpinCount
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
test eax, eax
je 0x40eb80
mov dword [esp + 4], 0xfa0
mov dword [esp], 0x42a540
call eax
sub esp, 8
jmp 0x40eb90
mov dword [esp], 0x42a540
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
sub esp, 4
add esp, 0x1c
jmp sym._GC_init.part.57

Function at 0x40eba0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [0x42a464]
test esi, esi
jne 0x40ec6d
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, eax
shr edx, 8
xor edx, eax
movzx edx, dl
mov edx, dword [edx*4 + 0x42a060]
test edx, edx
je sym._GC_notify_or_invoke_finalizers.part.16.lto_priv.80.cold.0
cmp eax, dword [edx + 8]
jne 0x40ec90
mov ebp, dword [edx + 4]
movzx ecx, byte [ebp + 0x10]
test cl, cl
je 0x40ec02
movzx eax, word [ebp + 0x12]
add eax, 1
movzx edx, ax
shr edx, cl
test edx, edx
je 0x40ec80
xor eax, eax
mov word [ebp + 0x12], ax
add ecx, 1
xor edi, edi
mov byte [ebp + 0x10], cl
jmp 0x40ec38
mov eax, dword [ebx + 4]
add esi, 1
mov dword [0x42a8d0], eax
mov dword [ebx + 4], 0
mov eax, dword [ebx + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call dword [ebx + 8]
mov dword [ebx + 0xc], 0
mov eax, dword [0x42a8d0]
test eax, eax
je 0x40ec54
mov ebx, dword [0x42a8d0]
test esi, esi
cmove edi, dword [0x42a850]
test ebx, ebx
jne 0x40ec10
test esi, esi
je 0x40ec69
mov eax, dword [0x42a850]
cmp eax, edi
je 0x40ec69
sub eax, edi
add dword [0x42a854], eax
mov byte [ebp + 0x10], 0
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov word [ebp + 0x12], ax
jmp 0x40ec6d
mov edx, dword [edx]
test edx, edx
jne 0x40ebd4
jmp sym._GC_notify_or_invoke_finalizers.part.16.lto_priv.80.cold.0
Function at 0x40eef0
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
push ebx
sub esp, 0x14
mov edx, dword [0x42a5d4]
test edx, edx
je 0x40ef80
cmp eax, 0xffffeffe
lea edx, [eax + 0x1000]
mov eax, 0xffffffff
mov dword [esp], 0
cmova edx, eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ebx, [eax + 0xfff]
sub esp, 8
and ebx, 0xfffff000
cmp dword [0x42a8ac], 0x1ff
jbe 0x40ef54
mov dword [esp], str.Too_many_heap_sections
call sym._GC_default_on_abort.lto_priv.70
call dword [sym.imp.KERNEL32.dll_DebugBreak]
test ebx, ebx
je 0x40ef6d
mov eax, dword [0x42a8ac]
lea edx, [eax + 1]
mov dword [eax*4 + 0x43ea14], ebx
mov dword [0x42a8ac], edx
add esp, 0x14
mov eax, ebx
pop ebx
pop esi
ret
cmp dword [0x421848], 1
mov esi, dword [0x42a7e0]
mov dword [esp], 0
sbb ecx, ecx
mov ebx, dword [0x42a5d0]
xor edx, edx
and ecx, 0xffffffc4
add ecx, 0x40
or bh, 0x30
test esi, esi
sete dl
mov dword [esp + 8], ebx
mov esi, edx
add edx, eax
mov dword [esp + 0xc], ecx
not esi
cmp esi, eax
mov eax, 0xffffffff
cmovbe edx, eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
sub esp, 0x10
mov ebx, eax
test eax, 0xfff
je 0x40ef36
mov dword [esp], str.Bad_VirtualAlloc_result
call sym._GC_default_on_abort.lto_priv.70
call dword [sym.imp.KERNEL32.dll_DebugBreak]
jmp 0x40ef36

Function at 0x40f000
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x4493ec]
test eax, eax
je 0x40f010
ret
push ebx
sub esp, 0x78
mov dword [esp], str.GC_USE_GETWRITEWATCH
call sub.msvcrt.dll_getenv
test eax, eax
je 0x40f02d
cmp byte [eax], 0x30
je 0x40f110
mov dword [esp], str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
sub esp, 4
test eax, eax
je 0x40f100
mov dword [esp + 4], str.GetWriteWatch
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov dword [0x42a7e0], eax
test eax, eax
je 0x40f100
mov eax, dword [0x42a4e0]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x202000
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
sub esp, 0x10
mov ebx, eax
test eax, eax
je 0x40f130
lea eax, [esp + 0x2c]
mov dword [esp + 0x28], 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x30]
mov dword [esp + 0xc], eax
mov eax, dword [0x42a4e0]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp], 1
call dword [0x42a7e0]
sub esp, 0x18
test eax, eax
jne 0x40f120
mov dword [0x42a5d0], 0x200000
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
sub esp, 0xc
mov dword [0x4493ec], 1
add esp, 0x78
pop ebx
ret
cmp byte [eax + 1], 0
jne 0x40f02d
jmp 0x40f100
mov dword [0x42a7e0], 0
jmp 0x40f0e4
mov dword [0x42a7e0], 0
jmp 0x40f100
Function at 0x40f1c0
Capabilities:
Execute shellcode via indirect call

Disassembly:
push ebp
shl edx, 0xc
xor ecx, 1
mov ebp, eax
push edi
lea edi, [eax + edx]
mov edx, ecx
push esi
and edx, 1
push ebx
sub esp, 0x2c
mov esi, dword [0x42a4e0]
mov byte [esp + 0x1b], dl
mov ebx, esi
lea esi, [esi + edi - 1]
neg ebx
and ebp, ebx
and esi, ebx
mov dword [esp + 0x1c], ebp
cmp ebp, esi
jae 0x40f243
mov dword [esp + 0x14], eax
mov edx, ebp
mov ebp, 1
cmp dword [esp + 0x14], edx
seta bl
cmp edi, edx
setbe cl
or bl, cl
jne 0x40f217
cmp byte [esp + 0x1b], 0
je 0x40f239
mov ebx, edx
mov ecx, edx
mov eax, ebp
shr ebx, 0x11
shr ecx, 0xc
and ebx, 0x1fff
shl eax, cl
add ebx, 0x307c
lock or dword [ebx*4 + 0x42a820], eax
add edx, 0x1000
cmp edx, esi
jb 0x40f200
cmp dword [0x421848], 1
mov dword [esp + 0xc], 0x4493f8
sbb eax, eax
and eax, 0xffffffc4
add eax, 0x40
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c]
sub esi, eax
mov dword [esp], eax
mov dword [esp + 4], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x40f280
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.un_VirtualProtect_failed:_errcode_0x_X_n
mov dword [esp + 4], eax
call sym._GC_log_printf
mov dword [esp], str.un_VirtualProtect_failed
call sym._GC_default_on_abort.lto_priv.70
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_DebugBreak]

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

Disassembly:
mov ecx, dword [0x42a7e8]
test ecx, ecx
je 0x40f2ff
mov edx, dword [0x42a7e4]
test edx, edx
jne 0x40f2ff
mov edx, dword [eax + 4]
cmp edx, 0x42a468
je 0x40f2d9
mov ecx, dword [0x42a7e0]
test ecx, ecx
je 0x40f300
cmp eax, 0x42a480
jne 0x40f2f0
ret
mov edx, dword [0x42a7e0]
and eax, 0xfffff000
test edx, edx
je 0x40f370
ret
push ebx
mov ebx, eax
mov eax, edx
xor ecx, ecx
and eax, 0xfffff000
mov edx, 1
sub esp, 8
call sym._GC_remove_protection.part.34.lto_priv.72
cmp ebx, 0x42a480
je 0x40f360
mov eax, dword [0x42a7e8]
test eax, eax
je 0x40f360
mov eax, ebx
mov ebx, dword [0x42a7e4]
and eax, 0xfffff000
test ebx, ebx
jne 0x40f360
mov ecx, dword [0x42a7e0]
test ecx, ecx
jne 0x40f360
add esp, 8
xor ecx, ecx
mov edx, 1
pop ebx
jmp sym._GC_remove_protection.part.34.lto_priv.72
add esp, 8
pop ebx
ret
xor ecx, ecx
mov edx, 1
jmp sym._GC_remove_protection.part.34.lto_priv.72
Function at 0x40f380
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
xor eax, eax
cmp dword [edx], 0xc0000005
je 0x40f3a0
add esp, 0x10
pop ebx
pop esi
pop edi
ret 4
cmp dword [edx + 0x14], 1
jne 0x40f396
mov ecx, dword [edx + 0x18]
mov edx, ecx
shr edx, 0x16
mov ebx, dword [edx*4 + 0x446214]
mov edx, ecx
shr edx, 0xc
and edx, 0x3ff
mov edx, dword [ebx + edx*4]
test edx, edx
jne 0x40f3da
mov edx, dword [0x42a4c8]
cmp edx, 0xffffffff
je 0x40f396
add esp, 0x10
pop ebx
pop esi
pop edi
jmp edx
mov edx, dword [0x42a4e0]
cmp dword [0x421848], 1
mov dword [esp + 0xc], 0x4493f8
sbb eax, eax
mov ebx, edx
and eax, 0xffffffc4
mov dword [esp + 4], edx
neg ebx
add eax, 0x40
and ebx, ecx
mov dword [esp + 8], eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x40f46f
mov eax, dword [0x42a4e0]
xor edx, edx
mov esi, 1
shr eax, 0xc
je 0x40f465
lea esi, [esi]
lea esi, [esi]
mov eax, ebx
mov ecx, ebx
mov edi, esi
shr eax, 0x11
shr ecx, 0xc
and eax, 0x1fff
shl edi, cl
add eax, 0x307c
lock or dword [eax*4 + 0x42a820], edi
mov eax, dword [0x42a4e0]
shr eax, 0xc
add edx, 1
add ebx, 0x1000
cmp eax, edx
ja 0x40f430
mov eax, 0xffffffff
jmp 0x40f396
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.un_VirtualProtect_failed:_errcode_0x_X_n
mov dword [esp + 4], eax
call sym._GC_log_printf
mov dword [esp], str.un_VirtualProtect_failed
call sym._GC_default_on_abort.lto_priv.70
call dword [sym.imp.KERNEL32.dll_DebugBreak]
jmp 0x40f415