joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a3b74
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x5d42e8
cmp edx, dword [eax]
je 0x5a3b96
add eax, 8
inc ecx
cmp eax, 0x5d4378
jl 0x5a3b87
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x5d42e8]
jne 0x5a3cc4
mov eax, dword [0x13c28f0]
cmp eax, 1
je 0x5a3c9e
test eax, eax
jne 0x5a3bc7
cmp dword [0x5d38c4], 1
je 0x5a3c9e
cmp edx, 0xfc
je 0x5a3cc4
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5a3bfe
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.005996e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.005997d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x5a3c41
lea eax, [ebp - 0x1a4]
push eax
call fcn.005997d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x5b46ac
push edi
call fcn.005999b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.005996e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.005996f0
lea eax, [ebp - 0xa0]
push 0x5b468c
push eax
call fcn.005996f0
push dword [esi + 0x5d42ec]
lea eax, [ebp - 0xa0]
push eax
call fcn.005996f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.005a62fd
add esp, 0x2c
pop edi
jmp 0x5a3cc4
lea eax, [ebp + 8]
lea esi, [esi + 0x5d42ec]
push 0
push eax
push dword [esi]
call fcn.005997d0
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]
pop esi
leave
ret
Function at 0x4013d3
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x44a410], 1
mov dword [0x44a414], 1
mov dword [0x44a418], 1
mov dword [0x44a404], 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 [0x42b3e0]
mov eax, dword [0x42b3e8]
sub eax, ebx
cmp eax, 0x7fff
ja 0x401b1b
mov ecx, dword [0x42b36c]
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 [0x42b42c], 0x1ff
jbe 0x401adc
mov dword [esp], 0x423078
call sym._GC_default_on_abort.lto_priv.75
call dword [sym.imp.KERNEL32.dll_DebugBreak]
test ebx, ebx
je 0x401ba0
mov eax, dword [0x42b42c]
add dword [0x42b3c0], 0x10000
cmp dword [0x42b370], 2
lea edx, [eax + 1]
mov dword [eax*4 + 0x43f594], ebx
mov dword [0x42b42c], edx
je 0x401c00
lea eax, [ebx + 0x10000]
mov dword [0x42b3e8], eax
lea eax, [ebx + 0x8000]
mov dword [0x42b3e0], eax
add esp, 0x18
mov eax, ebx
pop ebx
ret
cmp dword [0x42282c], 1
mov edx, dword [0x42b364]
mov dword [esp], 0
sbb eax, eax
and eax, 0xffffffc4
add eax, 0x40
mov dword [esp + 0xc], eax
mov eax, dword [0x42b368]
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], 0x423060
call sym._GC_default_on_abort.lto_priv.75
call dword [sym.imp.KERNEL32.dll_DebugBreak]
jmp 0x401abe
mov dword [esp + 4], 0x8000
mov dword [esp], 0x4230a8
call dword [0x422830]
mov eax, 0x8000
call sym._GC_win32_get_mem
mov ebx, eax
test eax, eax
je 0x401b26
add dword [0x42b3c0], 0x8000
cmp dword [0x42b370], 2
jne 0x401b26
mov dword [esp + 4], 0x8000
mov dword [esp], 0x42308f
call sym._GC_log_printf
jmp 0x401b26
mov dword [esp + 4], 0x10000
mov dword [esp], 0x42308f
call sym._GC_log_printf
jmp 0x401b10
Function at 0x4029f0
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 [0x422888]
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 0x402a10
add esp, 0x10
pop ebx
pop esi
pop edi
ret

Function at 0x402a60
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 0x402b40
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 0x402ae0
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 0x402ac0
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 0x402b00
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 0x4077e0
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 0x40791c
cmp edx, 0xe06d7363
je 0x40791c
cmp edx, 0x40010006
je 0x40791c
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], 0x423324
mov dword [esp + 0x58], 1
call sym._str_intp.constprop.9
mov esi, dword [esp + 0x18]
test esi, esi
je 0x407930
mov ebx, dword [esp + 0x1c]
mov ebp, dword [sym.___acrt_iob_func]
mov byte [esp + 0x24], 0xa
test ebx, ebx
jle 0x4078b0
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 0x407890
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 0x4078d0
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 0x407950
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 0x407990
jmp 0x4078f0
Function at 0x4079c0
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 0x407a1c
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], 0x423324
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 0x4087d0
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
push eax
mov eax, 0x1088
call fcn.0041961c
mov ecx, 0x400
sub esp, eax
mov esi, edx
mov eax, dword [esp + eax]
lea ebp, [esp + 0x80]
mov edi, ebp
mov ebx, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, 0x1000
call sym._vcalloc_noscan
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0x1000
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], 1
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 1
mov dword [esp], ebp
call sub.msvcrt.dll_fread
test eax, eax
jle 0x408860
mov ecx, eax
mov edx, ebp
lea eax, [esp + 0x24]
call sym._array_push_many.part.81
jmp 0x408830
mov dword [esp], esi
call sub.msvcrt.dll_feof
test eax, eax
jne 0x408900
mov dword [esp], esi
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_ferror
test eax, eax
je 0x408830
mov eax, 0x10
mov dword [esp + 0x54], str.file_read_error
mov edi, ebx
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x5c], 1
mov dword [esp + 0x60], 0
call sym.__v_malloc
mov edx, dword [esp + 0x1c]
mov ecx, 0xb
mov esi, eax
mov eax, dword [esp + 0x54]
mov dword [esi], eax
mov eax, dword [esp + 0x58]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x5c]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x60]
mov dword [esi + 0xc], eax
mov eax, edx
rep stosd dword es:[edi], eax
mov dword [ebx + 4], esi
mov eax, ebx
mov dword [ebx + 0xc], esi
add esi, 0xc
mov dword [ebx + 0x10], esi
mov byte [ebx], 1
mov dword [ebx + 8], 3
add esp, 0x108c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, 1
mov eax, 1
call sym._GC_malloc_kind_aligned_global.constprop.26
mov byte [esp + 0x54], 0
mov eax, dword [esp + 0x54]
mov dword [ebx], eax
mov eax, dword [0x447dcc]
mov dword [ebx + 4], eax
mov eax, dword [0x447dd0]
mov dword [ebx + 8], eax
mov eax, dword [0x447dd4]
mov dword [ebx + 0xc], eax
mov eax, dword [0x447dd8]
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x20], eax
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x24], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x28], eax
add esp, 0x108c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40db80
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 0x40dc20
test eax, eax
je 0x40dc00
fld dword [esp + 0x50]
fchs
fld dword [esp + 0x50]
fldz
fcompi st(1)
fxch st(1)
fcmovbe st(0), st(1)
fld dword [0x424550]
fxch st(1)
fcomi st(1)
fstp st(1)
jb 0x40dbd0
fld dword [0x424554]
fcompi st(1)
fstp st(0)
ja 0x40dc40
fstp st(0)
jmp 0x40dbd4
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], 0x423bff
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 0x40dca0
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 [0x422888]
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 0x40dcc0
jmp 0x40dc79
Function at 0x40f1f0
Capabilities:
Query environment variable

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

Function at 0x40f210
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 0x40f2f0
cmp dword [0x42b370], 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 0x40f2b0
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 0x40f31c
lea edx, [eax - 4]
cmp byte [esp + eax + 0x28], 0x2e
cmove eax, edx
add eax, ebx
mov edx, 0x80000080
cmp dword [0x42b370], 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 0x40f390
Capabilities:
Write file on windows

Disassembly:
test edx, edx
je 0x40f450
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x34
mov ecx, dword [0x42b0e0]
test ecx, ecx
jne 0x40f400
mov eax, dword [0x449f64]
test eax, eax
je 0x40f419
cmp eax, 0xffffffff
je 0x40f453
lea edx, [esp + 0x2c]
mov dword [esp + 8], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
mov eax, dword [0x42b0e0]
sub esp, 0x14
test eax, eax
jne 0x40f430
test ebx, ebx
je 0x40f470
mov eax, dword [esp + 0x2c]
add esp, 0x34
pop ebx
pop esi
ret
mov dword [esp], 0x42b0a4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x449f64]
sub esp, 4
test eax, eax
jne 0x40f3b4
call sym._GC_CreateLogFile
mov dword [0x449f64], eax
jmp 0x40f3b4
mov dword [esp], 0x42b0a4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x40f3ec
xor eax, eax
ret
mov edx, dword [0x42b0e0]
test edx, edx
je 0x40f470
mov dword [esp], 0x42b0a4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
lea esi, [esi]
mov eax, 0xffffffff
jmp 0x40f3f8
Function at 0x40f480
Capabilities:
Query environment variable

Disassembly:
push ebx
sub esp, 0x18
mov dword [0x449f68], 1
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x40f4cf
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 0x40f4f0
mov dword [esp], str.GC_LOOP_ON_ABORT
call sub.msvcrt.dll_getenv
test eax, eax
je 0x40f50f
jmp 0x40f4df
mov edx, 1
mov eax, 0x4245be
call sym._GC_write
mov dword [esp], str.GC_LOOP_ON_ABORT
call sub.msvcrt.dll_getenv
test eax, eax
jne 0x40f4df
add esp, 0x18
pop ebx
ret

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

Disassembly:
mov eax, dword [0x42b0e4]
test eax, eax
je 0x40f530
ret
sub esp, 0x1c
mov dword [esp], str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
sub esp, 4
test eax, eax
je 0x40f580
mov dword [esp + 4], str.InitializeCriticalSectionAndSpinCount
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
test eax, eax
je 0x40f580
mov dword [esp + 4], 0xfa0
mov dword [esp], 0x42b0c8
call eax
sub esp, 8
jmp 0x40f590
mov dword [esp], 0x42b0c8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
sub esp, 4
add esp, 0x1c
jmp sym._GC_init.part.57
Function at 0x40f5a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [0x449f8c]
test ebx, ebx
jne 0x40f720
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, eax
shr edx, 8
xor edx, eax
movzx edx, dl
mov edx, dword [edx*4 + 0x44a000]
test edx, edx
je sym._GC_notify_or_invoke_finalizers.part.16.lto_priv.85.cold.0
cmp dword [edx + 8], eax
jne 0x40f760
mov edi, dword [edx + 4]
mov edx, dword [0x42b0e0]
movzx ecx, byte [edi + 0x10]
test cl, cl
je 0x40f60c
movzx eax, word [edi + 0x12]
add eax, 1
mov word [edi + 0x12], ax
movzx eax, ax
shr eax, cl
test eax, eax
je 0x40f730
xor eax, eax
mov word [edi + 0x12], ax
add ecx, 1
mov byte [edi + 0x10], cl
test edx, edx
jne 0x40f700
xor esi, esi
jmp 0x40f667
mov ebp, dword [0x42b450]
test ebx, ebx
cmove esi, dword [0x42b3d0]
test ebp, ebp
je 0x40f6b0
mov edx, dword [ebp + 4]
mov dword [0x42b450], edx
mov ecx, dword [0x42b0e0]
test ecx, ecx
jne 0x40f690
mov edx, dword [ebp + 0xc]
mov dword [ebp + 4], 0
add ebx, 1
mov dword [esp + 4], edx
mov edx, dword [ebp]
mov dword [esp], edx
call dword [ebp + 8]
mov dword [ebp + 0xc], 0
mov eax, dword [0x42b450]
test eax, eax
je 0x40f6ca
mov eax, dword [0x42b0e0]
test eax, eax
je 0x40f620
mov dword [esp], 0x42b0c8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub esp, 4
jmp 0x40f620
mov dword [esp], 0x42b0c8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x40f646
mov ebp, dword [0x42b0e0]
test ebp, ebp
je 0x40f6ca
mov dword [esp], 0x42b0c8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
test ebx, ebx
je 0x40f6f2
mov eax, dword [0x42b3d0]
cmp eax, esi
je 0x40f6f2
mov edx, dword [0x42b0e0]
test edx, edx
jne 0x40f780
add eax, dword [0x42b3d4]
sub eax, esi
mov dword [0x42b3d4], eax
mov byte [edi + 0x10], 0
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x42b0c8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x40f61a
mov eax, dword [0x42b0e0]
test eax, eax
je 0x40f6f6
jmp 0x40f740
test edx, edx
je 0x40f6f6
lea esi, [esi]
lea esi, [esi]
nop
mov dword [esp], 0x42b0c8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x40f6f6
mov edx, dword [edx]
test edx, edx
je 0x40f7c4
cmp eax, dword [edx + 8]
je 0x40f5dd
jmp 0x40f760
mov dword [esp], 0x42b0c8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x42b3d4]
sub esp, 4
sub eax, esi
add eax, dword [0x42b3d0]
mov dword [0x42b3d4], eax
mov eax, dword [0x42b0e0]
test eax, eax
je 0x40f6f2
mov dword [esp], 0x42b0c8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x40f6f2
jmp sym._GC_notify_or_invoke_finalizers.part.16.lto_priv.85.cold.0
Function at 0x40f890
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
push ebx
sub esp, 0x14
mov edx, dword [0x42b36c]
test edx, edx
je 0x40f920
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 [0x42b42c], 0x1ff
jbe 0x40f8f4
mov dword [esp], str.Too_many_heap_sections
call sym._GC_default_on_abort.lto_priv.75
call dword [sym.imp.KERNEL32.dll_DebugBreak]
test ebx, ebx
je 0x40f90d
mov eax, dword [0x42b42c]
lea edx, [eax + 1]
mov dword [eax*4 + 0x43f594], ebx
mov dword [0x42b42c], edx
add esp, 0x14
mov eax, ebx
pop ebx
pop esi
ret
cmp dword [0x42282c], 1
mov esi, dword [0x42b364]
mov dword [esp], 0
sbb ecx, ecx
mov ebx, dword [0x42b368]
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 0x40f8d6
mov dword [esp], str.Bad_VirtualAlloc_result
call sym._GC_default_on_abort.lto_priv.75
call dword [sym.imp.KERNEL32.dll_DebugBreak]
jmp 0x40f8d6

Function at 0x40f9a0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x449f6c]
test eax, eax
je 0x40f9b0
ret
push ebx
sub esp, 0x78
mov dword [esp], str.GC_USE_GETWRITEWATCH
call sub.msvcrt.dll_getenv
test eax, eax
je 0x40f9cd
cmp byte [eax], 0x30
je 0x40fab0
mov dword [esp], str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
sub esp, 4
test eax, eax
je 0x40faa0
mov dword [esp + 4], str.GetWriteWatch
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov dword [0x42b364], eax
test eax, eax
je 0x40faa0
mov eax, dword [0x42b070]
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 0x40fad0
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 [0x42b070]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp], 1
call dword [0x42b364]
sub esp, 0x18
test eax, eax
jne 0x40fac0
mov dword [0x42b368], 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 [0x449f6c], 1
add esp, 0x78
pop ebx
ret
cmp byte [eax + 1], 0
jne 0x40f9cd
jmp 0x40faa0
mov dword [0x42b364], 0
jmp 0x40fa84
mov dword [0x42b364], 0
jmp 0x40faa0