joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466960
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x466a03
test eax, eax
jbe 0x466a03
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x466a03
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x4669ae
xor esi, esi
jmp 0x4669b4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x4669df
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0046a2e0
add esi, eax
push esi
mov ebx, esi
call fcn.0046a2e0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x4669c0
pop ebp
test edi, edi
pop edi
jne 0x466a03
test ebx, ebx
je 0x466a03
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0046edf0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x466b45
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x466c5d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x466c5d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00492818
mov esi, eax
test esi, esi
je 0x466c5d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x466c5d
mov ecx, esi
call fcn.00466ab0
cmp edi, eax
jge 0x466c5d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x466be3
mov dword [esp + 0x34], 1
jmp 0x466c3e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x466c5d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00465320
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x46aa80
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x46aac9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x46af40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49fff0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0046aaf0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0046ab70
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0046ab70
lea ecx, [esi + 0xc]
call fcn.00490d9f
lea ecx, [esi + 0x10]
call fcn.00490d9f
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0046c100
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0046c100
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0046c100
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00490e14
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00490e14
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x46c2f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x46c356
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x46c356
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x46c337
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x4870d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4a11f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.0047c140
mov eax, dword [0x62aae8]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.0047c072
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.00487b90
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x487177
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x48716e
cmp al, 0xff
je 0x48716e
dec al
mov byte [ecx], al
jmp 0x487177
push ecx
call fcn.00490b7e
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x4871a8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x48719f
cmp al, 0xff
je 0x48719f
dec al
mov byte [ecx], al
jmp 0x4871a8
push ecx
call fcn.00490b7e
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x4931bb
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4931f3
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0049126f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00491247
jmp 0x4931ff
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4948ad
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4948ef
call fcn.0049a427
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4948ef
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4948e6
xor eax, eax
jmp 0x4948f7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004948fd
pop edi
pop esi
pop ebx
ret 4

Function at 0x49a957
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x49a985
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49a9a3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049a8bd
jmp 0x49a9a3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49a9a3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049a8bd
test edi, edi
mov eax, edi
jne 0x49a98d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x56d14c], 1
mov dword [0x56d148], 1
mov dword [0x56d144], 1
mov dword [0x56d13c], 1
jne 0x401060
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010c0
mov dword [0x56a014], eax
mov eax, dword [0x56d158]
test eax, eax
je 0x4010b0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x56d16c]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x56d154]
mov dword [eax], edx
call sym.__setargv
cmp dword [0x4f3750], 1
je 0x4010f0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x40107a
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401060
cmp dword [ecx + 0x84], 0xe
jbe 0x401060
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401060
mov dword [esp], sym.__matherr
call sym.___mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401060
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401060

Function at 0x4014c0
Capabilities:
Terminate process

Disassembly:
mov dword [0x56d158], 0
jmp sym.___tmainCRTStartup
Function at 0x402c00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, edx
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x9c
mov dword [esp], 0x2000
call sym._xmalloc
mov dword [esp], edi
mov dword [esp + 4], 0
mov ebx, eax
call sym._open
mov dword [esp + 4], 0
mov dword [esp], ebp
mov esi, eax
call sym._open
mov edi, eax
mov eax, esi
or eax, edi
jns 0x402c70
mov dword [esp], ebx
call sym._free
mov dword [esp], esi
call sym._close
mov dword [esp], edi
call sym._close
xor eax, eax
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x30]
mov dword [esp], esi
mov ebp, dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__fstat32i64]
mov dword [esp + 4], eax
call ebp
test eax, eax
js 0x402c46
lea eax, [esp + 0x60]
mov dword [esp], edi
mov dword [esp + 4], eax
call ebp
test eax, eax
js 0x402c46
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x18], eax
xor edx, eax
mov eax, dword [esp + 0x1c]
xor eax, dword [esp + 0x4c]
or eax, edx
jne 0x402c46
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, edx
mov edx, ecx
or edx, eax
je 0x402db4
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x20], ebx
jmp 0x402d62
mov dword [esp + 0x18], esi
mov ebp, esi
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov dword [esp + 8], ebp
mov dword [esp + 4], eax
mov dword [esp], ecx
call sym._read
cmp eax, ebx
jne 0x402d90
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
mov dword [esp + 8], ebp
lea ecx, [eax + 0x1000]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 0x24], ecx
call sym._read
cmp eax, ebx
jne 0x402d90
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebp
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._memcmp
test eax, eax
jne 0x402d90
sub esi, dword [esp + 0x18]
sbb edi, dword [esp + 0x1c]
mov eax, edi
or eax, esi
je 0x402da8
mov ebx, esi
cmp esi, 0x1000
jle 0x402ce8
mov dword [esp + 0x18], 0x1000
mov ebx, 0x1000
mov ebp, 0x1000
mov dword [esp + 0x1c], 0
jmp 0x402cf2
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
jmp 0x402c46
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov dword [esp], ebx
call sym._free
mov dword [esp], esi
call sym._close
mov dword [esp], edi
call sym._close
mov eax, 1
jmp 0x402c60
Function at 0x402de0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
mov esi, 1
push ebx
mov ebx, edx
sub esp, 0x11c
mov dword [esp + 4], 0x4f5355
mov dword [esp], eax
call sym._fopen
mov dword [esp], ebx
lea ebx, [esp + 0x10]
mov dword [esp + 4], 0x4f5358
mov ebp, eax
call sym._fopen
mov edi, eax
jmp 0x402e43
mov dword [esp + 4], edi
mov dword [esp], ebx
call sym._fputs
mov dword [esp + 4], 0xa
mov dword [esp], ebx
call sym._strchr
test eax, eax
setne al
mov esi, eax
mov dword [esp + 8], ebp
mov dword [esp + 4], 0x100
mov dword [esp], ebx
call sym._fgets
test eax, eax
je 0x402e88
mov eax, esi
test al, al
je 0x402e20
mov dword [esp + 0xc], edi
mov dword [esp + 8], 3
mov dword [esp + 4], 1
mov dword [esp], 0x4f535b
call sym._fwrite
jmp 0x402e20
mov dword [esp], ebp
call sym._fclose
mov dword [esp], edi
call sym._fclose
add esp, 0x11c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x406b80
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
cmp dword [esp + 0x30], 2
mov esi, dword [esp + 0x34]
jne 0x406c10
mov ebp, dword [esi]
mov dword [esp], ebp
call sym._getenv
cmp byte [0x56a2a1], 0
mov ebx, eax
jne 0x406c20
test ebx, ebx
je 0x406c4d
mov dword [esp], ebx
call sym._strlen
mov edi, eax
mov eax, dword [esi + 4]
mov dword [esp], eax
call sym._strlen
lea eax, [eax + edi*2 + 1]
mov dword [esp], eax
call sym._xmalloc
cmp byte [ebx], 0
mov edi, eax
je 0x406bf5
lea esi, [esi]
nop
add ebx, 1
mov byte [eax], 0x5c
add eax, 2
movzx edx, byte [ebx - 1]
mov byte [eax - 1], dl
cmp byte [ebx], 0
jne 0x406be0
mov edx, dword [esi + 4]
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._strcpy
add esp, 0x1c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x1c
xor edi, edi
pop ebx
mov eax, edi
pop esi
pop edi
pop ebp
ret
mov dword [esp], 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ebp
mov dword [esp + 4], str.env_manager::getenv___s______s_n
mov dword [esp], eax
call sym.fprintf__iobuf__char_const__..._
test ebx, ebx
jne 0x406baf
cmp byte [0x56a0c9], 0
jne 0x406c70
mov eax, dword [0x56cefc]
mov dword [esp + 8], ebp
mov dword [esp + 4], str.environment_variable__qs_not_defined
mov dword [esp], eax
call sym.fatal_error_unsigned_int__char_const__..._
nop
mov dword [esp], ebp
call sym._strlen
add eax, 2
mov dword [esp], eax
call sym._xmalloc
mov dword [esp + 8], ebp
mov dword [esp + 4], 0x4f5bc8
mov edi, eax
mov dword [esp], eax
call sym.sprintf_char__char_const__..._
jmp 0x406c04
Function at 0x40e500
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov dword [esp + 0x10], sym.mempool_obstack_chunk_free_void_
mov edi, dword [esp + 0x30]
mov dword [esp + 0xc], sym.mempool_obstack_chunk_alloc_unsigned_int_
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x56a1e0
call sym.__obstack_begin
mov eax, dword [0x56a1ec]
mov edx, dword [0x56a1f0]
sub edx, eax
cmp edx, 0xb
jbe 0x40e5f0
mov dword [eax], 0x4c4c4f43
mov dword [eax + 4], 0x5f544345
mov dword [eax + 8], 0x3d434347
mov eax, dword [0x56a1ec]
mov dword [esp], edi
lea esi, [eax + 0xc]
mov dword [0x56a1ec], esi
call sym._strlen
lea ebx, [eax + 1]
mov eax, dword [0x56a1f0]
sub eax, esi
cmp ebx, eax
ja 0x40e610
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._memcpy
mov edx, dword [0x56a1e8]
add ebx, dword [0x56a1ec]
cmp ebx, edx
je 0x40e630
mov eax, dword [0x56a1f8]
mov dword [esp + 0x30], edx
add ebx, eax
not eax
and ebx, eax
mov eax, dword [0x56a1f0]
mov esi, ebx
sub esi, dword [0x56a1e4]
mov ecx, eax
sub ecx, dword [0x56a1e4]
cmp esi, ecx
mov ecx, 0x56a2a0
cmovbe eax, ebx
mov dword [0x56a1ec], eax
mov dword [0x56a1e8], eax
add esp, 0x20
pop ebx
pop esi
pop edi
jmp method.env_manager.xput_char_const_
mov dword [esp + 4], 0xc
mov dword [esp], 0x56a1e0
call sym.__obstack_newchunk
mov eax, dword [0x56a1ec]
jmp 0x40e54c
mov dword [esp + 4], ebx
mov dword [esp], 0x56a1e0
call sym.__obstack_newchunk
mov esi, dword [0x56a1ec]
jmp 0x40e588
or byte [0x56a208], 2
jmp 0x40e5ac
Function at 0x410220
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov dword [esp], 0x4f8241
call sym._getenv
cmp byte [0x56a2a1], 0
mov ebx, eax
jne 0x410318
test ebx, ebx
je 0x41030c
mov dword [esp + 4], str.__jobserver_auth
mov dword [esp], ebx
call sym._strstr
mov esi, eax
test eax, eax
je 0x41030c
lea eax, [esp + 0x1c]
mov dword [esp + 4], str._d__d
mov dword [esp + 0xc], eax
lea eax, [esp + 0x18]
mov dword [esp + 8], eax
lea eax, [esi + 0x11]
mov dword [esp], eax
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
call sym.sscanf_char_const__char_const__..._
cmp eax, 2
jne 0x4102b0
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x4102b0
mov edx, dword [esp + 0x1c]
test edx, edx
jg 0x410350
nop
mov dword [esp], ebx
call sym._xstrdup
mov edi, eax
mov eax, esi
sub eax, ebx
lea ebx, [edi + eax]
mov byte [ebx], 0
mov dword [esp + 4], 0x20
mov dword [esp], esi
call sym._strchr
test eax, eax
je 0x4102e4
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._strcpy
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], str.MAKEFLAGS
call sym._concat
mov ecx, 0x56a2a0
mov dword [esp], eax
call method.env_manager.xput_char_const_
sub esp, 4
add esp, 0x20
pop ebx
pop esi
pop edi
ret
mov dword [esp], 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x4f8241
mov dword [esp + 4], str.env_manager::getenv___s______s_n
mov dword [esp], eax
call sym.fprintf__iobuf__char_const__..._
jmp 0x410241
mov dword [esp], eax
call sym._is_valid_fd
test eax, eax
je 0x4102b0
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call sym._is_valid_fd
test eax, eax
jne 0x41030c
jmp 0x4102b0
Function at 0x414a50
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov dword [ebp - 0x24], eax
movzx eax, byte [eax]
mov byte [ebp - 0x1a], al
cmp al, 0x24
je 0x414a70
cmp al, 0x40
jne 0x414ba8
nop
mov eax, dword [ebp - 0x24]
lea esi, [eax + 1]
mov dword [ebp - 0x28], esi
mov esi, eax
movzx eax, byte [eax + 1]
cmp al, 0x2f
setne cl
test al, al
setne dl
test cl, dl
je 0x414bb8
cmp al, 0x5c
je 0x414bb8
lea edx, [esi + 2]
xor eax, eax
jmp 0x414aa5
cmp cl, 0x5c
je 0x414acb
mov ecx, eax
add eax, 1
lea edi, [ecx + 2]
movzx ecx, byte [edx]
mov esi, eax
mov dword [ebp - 0x20], edi
mov edi, edx
add edx, 1
cmp cl, 0x2f
setne byte [ebp - 0x19]
test cl, cl
setne bl
test byte [ebp - 0x19], bl
jne 0x414aa0
mov eax, dword [ebp - 0x20]
add eax, 0x1b
shr eax, 4
shl eax, 4
call fcn.00471ce0
sub esp, eax
mov eax, dword [ebp - 0x28]
lea ebx, [esp + 0x1b]
mov dword [esp + 8], esi
and ebx, 0xfffffff0
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._memcpy
cmp byte [ebp - 0x1a], 0x40
mov byte [ebx + esi], 0
je 0x414b50
mov dword [esp], ebx
call sym._getenv
mov ebx, eax
test eax, eax
je 0x414b9e
mov dword [esp], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], edi
call sym._concat
mov ebx, eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._free
movzx eax, byte [ebx]
mov byte [ebp - 0x1a], al
cmp al, 0x40
je 0x414b43
cmp al, 0x24
jne 0x414bab
mov dword [ebp - 0x24], ebx
jmp 0x414a70
mov dword [esp], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str._ROOT
call sym._concat
mov dword [esp], eax
mov esi, eax
call sym._getenv
mov ebx, eax
test eax, eax
je 0x414b88
mov dword [esp], esi
call sym._free
jmp 0x414b14
mov dword [esp], esi
mov ebx, dword [str._Host_home_yyyy_Work_riscv_none_elf_gcc_12.2.0_1_win32_ia32_install_riscv_none_elf_gcc]
call sym._free
test ebx, ebx
jne 0x414b14
mov ebx, str._Host_home_yyyy_Work_riscv_none_elf_gcc_12.2.0_1_win32_ia32_install_riscv_none_elf_gcc
jmp 0x414b14
mov ebx, dword [ebp - 0x24]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x20], 1
mov edi, dword [ebp - 0x28]
xor esi, esi
jmp 0x414acb
Function at 0x42dca0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x1c
mov dword [esp], str.COLUMNS
call sym._getenv
test eax, eax
je 0x42dcc8
mov dword [esp], eax
call sym._atoi
test eax, eax
jle 0x42dcc8
add esp, 0x1c
ret
mov eax, 0x7fffffff
add esp, 0x1c
ret

Function at 0x42dce0
Capabilities:
Query environment variable

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
test eax, eax
je 0x42dd00
sub eax, 1
test eax, eax
jle 0x42dd1c
mov dword [ebx + 0x64], eax
add esp, 0x18
pop ebx
ret
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x60]
mov dword [esp], eax
call sym._fileno
mov dword [esp], eax
call sym._isatty
test eax, eax
jne 0x42dd30
mov eax, 0x7fffffff
mov dword [ebx + 0x64], eax
add esp, 0x18
pop ebx
ret
mov dword [esp], str.COLUMNS
call sym._getenv
test eax, eax
je 0x42dd4c
mov dword [esp], eax
call sym._atoi
test eax, eax
jg 0x42dcf0
mov eax, 0x7ffffffe
jmp 0x42dcf7
Function at 0x42dd60
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov dword [esp], 0x30
lea edi, [ebx + 0xc]
call sym._xmalloc
and edi, 0xfffffffc
mov dword [ebx], eax
mov ecx, eax
mov dword [esp], 0
call method.pretty_printer.pretty_printer_int_
lea ecx, [ebx + 8]
xor eax, eax
mov dword [ebx + 8], 0
sub ecx, edi
mov dword [ebx + 0x40], 0
sub esp, 4
add ecx, 0x3c
shr ecx, 2
rep stosd dword es:[edi], eax
lea edi, [esi*4]
mov byte [ebx + 0x44], 0
mov dword [ebx + 0x48], esi
mov dword [esp], edi
call sym._xmalloc
mov dword [ebx + 0x4c], eax
test esi, esi
jle 0x42dde1
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._memset
mov eax, dword [ebx]
mov byte [ebx + 0x60], 0
mov eax, dword [eax + 0x1c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym.diagnostic_set_caret_max_width_diagnostic_context__int_
xor eax, eax
xor edx, edx
xor ecx, ecx
mov dword [ebx + 0x68], 0x5e5e5e
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x70], 0
mov word [ebx + 0x74], ax
mov dword [ebx + 0x78], 0
mov word [ebx + 0x7c], dx
mov byte [ebx + 0x7e], 0
mov dword [ebx + 0x80], 0
mov dword [ebx + 0x90], 0
mov dword [ebx + 0x84], sym.default_diagnostic_starter_diagnostic_context__diagnostic_info_
mov dword [ebx + 0x88], sym.default_diagnostic_start_span_fn_diagnostic_context__expanded_location_
mov dword [ebx + 0x8c], sym.default_diagnostic_finalizer_diagnostic_context__diagnostic_info__diagnostic_t_
mov dword [ebx + 0x94], 0
mov dword [ebx + 0x98], 0
mov dword [ebx + 0x9c], 0
mov dword [ebx + 0xa0], 0
mov dword [ebx + 0xb0], 0
mov dword [ebx + 0xb4], 0
mov dword [ebx + 0xac], 0
mov dword [ebx + 0xb8], 0
mov dword [ebx + 0xc0], 0
mov dword [ebx + 0xc4], 0
mov word [ebx + 0xc8], cx
mov dword [esp], str.GCC_EXTRA_DIAGNOSTIC_OUTPUT
call sym._getenv
mov esi, eax
test eax, eax
je 0x42def5
mov dword [esp + 4], str.fixits_v1
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x42df70
mov dword [ebx + 0xcc], 1
mov dword [ebx + 0xd0], 0
mov dword [ebx + 0xd4], 1
mov dword [ebx + 0xd8], 8
mov dword [ebx + 0xdc], 0
mov dword [ebx + 0xe0], 0
mov dword [ebx + 0xe4], 0
mov dword [ebx + 0xe8], 0
mov dword [ebx + 0xec], 0
mov dword [ebx + 0xf0], 0
mov dword [ebx + 0xf4], sym.default_diagnostic_final_cb_diagnostic_context_
mov dword [ebx + 0xfc], 0
add esp, 0x10
pop ebx
pop esi
pop edi
ret
mov dword [esp + 4], str.fixits_v2
mov dword [esp], esi
call sym._strcmp
test eax, eax
jne 0x42def5
mov dword [ebx + 0xcc], 2
jmp 0x42def5
Function at 0x42eab0
Capabilities:
Terminate process

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov esi, dword [ebx + 0x80]
test esi, esi
je 0x42ead5
mov eax, dword [ebx + 0x1c]
add eax, dword [ebx + 0x18]
add eax, dword [ebx + 0x3c]
cmp esi, eax
jle 0x42eadc
add esp, 0x10
pop ebx
pop esi
pop edi
ret
mov dword [esp], 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.compilation_terminated_due_to__fmax_errors_u._n
call sym.fnotice__iobuf__char_const__..._
mov eax, edi
test al, al
jne 0x42eb0f
mov dword [esp], 1
call sym._exit
mov dword [esp], ebx
call sym.diagnostic_finish_diagnostic_context_
jmp 0x42eb03