joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a1bec
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4a1dc2
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4bf5e0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4a1dc2
test cl, 0x48
je 0x4a1c57
cmp byte [eax + 5], 0xa
je 0x4a1c57
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x4a1ca9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4a1c91
call fcn.00494870
mov dword [eax], 9
call fcn.00494879
mov dword [eax], esi
jmp 0x4a1ca1
cmp eax, 0x6d
je 0x4a1dc2
push eax
call fcn.00494882
pop ecx
or eax, 0xffffffff
jmp 0x4a1dc4
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x4a1dbd
test eax, eax
je 0x4a1cd0
cmp byte [ebx], 0xa
jne 0x4a1cd0
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4a1cd9
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x4a1db7
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4a1da7
cmp al, 0xd
je 0x4a1d0b
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4a1d99
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4a1d25
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4a1d20
add dword [ebp + 0x10], 2
jmp 0x4a1d79
mov dword [ebp + 0x10], eax
jmp 0x4a1d95
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x4a1d4d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x4a1d95
cmp dword [ebp - 0xc], 0
je 0x4a1d95
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4a1d6e
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4a1d79
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4a1d98
cmp ebx, dword [ebp + 0xc]
jne 0x4a1d7e
cmp byte [ebp - 1], 0xa
jne 0x4a1d7e
mov byte [ebx], 0xa
jmp 0x4a1d98
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0049d599
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a1d99
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4a1cef
jmp 0x4a1db7
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4a1db7
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4a1dc4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a25f5
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x4a260e
or eax, 0xffffffff
jmp 0x4a266f
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x4a266b
push 0x3d
push esi
call fcn.004a27f6
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4a266b
cmp esi, eax
je 0x4a266b
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x4bed5c]
sete cl
cmp eax, dword [0x4bed60]
mov dword [ebp - 4], ecx
jne 0x4a2651
mov edi, eax
call fcn.004a2594
mov dword [0x4bed5c], eax
cmp eax, ebx
jne 0x4a26aa
cmp dword [ebp + 0xc], ebx
je 0x4a2673
cmp dword [0x4bed64], ebx
je 0x4a2673
call fcn.004a1b5c
test eax, eax
je 0x4a26aa
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x4a267c
xor eax, eax
jmp 0x4a266e
push 4
call fcn.00490eb4
cmp eax, ebx
pop ecx
mov dword [0x4bed5c], eax
je 0x4a266b
mov dword [eax], ebx
cmp dword [0x4bed64], ebx
jne 0x4a26aa
push 4
call fcn.00490eb4
cmp eax, ebx
pop ecx
mov dword [0x4bed64], eax
je 0x4a266b
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x4bed5c]
sub edi, esi
push esi
call fcn.004a2547
mov edi, eax
test edi, edi
pop ecx
jl 0x4a2711
cmp dword [ebx], 0
je 0x4a2711
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00490a53
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x4a26f1
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x4a2752
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x4a26e8
mov eax, edi
shl eax, 2
push eax
push dword [0x4bed5c]
call fcn.00492a1a
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x4a2752
jmp 0x4a274d
cmp dword [ebp - 4], 0
jne 0x4a27b9
test edi, edi
jge 0x4a2721
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x4bed5c]
call fcn.00492a1a
test eax, eax
pop ecx
pop ecx
je 0x4a266b
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x4bed5c], eax
cmp dword [ebp + 0xc], 0
je 0x4a27a4
push esi
call fcn.00494b60
inc eax
inc eax
push eax
call fcn.00490eb4
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x4a27a4
push esi
push edi
call fcn.0048f860
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
test eax, eax
jne 0x4a279d
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.00490a53
pop ecx
cmp dword [ebp - 4], 0
je 0x4a27b1
push esi
call fcn.00490a53
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4a266e
push esi
call fcn.00490a53
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x4a2678
Function at 0x431005
Capabilities:
Encode data using xor

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x23796f6d
nop
nop
test eax, eax
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x431024
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x42f3f8
mov ecx, 0x34981b0d
nop
nop
nop
nop
test eax, eax
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43106c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x10088473
Capabilities:
Get number of processors

Disassembly:
jmp 0x1007c794
call fcn.1007c77f
salc
arpl word [ebp - 0x79], cx
loop 0x1007c78a
adc eax, 0x24748b56
add al, 0x8d
mov dh, 0xd4
adc byte [edx], al
add byte [ecx + 0x5e042474], cl
push edx
mov dword [esp], ebp
push esp
pop ebp
push ebp
mov ebp, esp
add ebp, 4
sub ebp, 0x80
xchg dword [esp], ebp
pop esp
sub esp, 4
mov dword [esp], ebx
push edi
mov dword [esp], esi
push 0x188b
mov dword [esp], edi
jmp 0x100a23b3
push ebx
mov ebx, 8
add ebx, ebp
mov eax, dword [ebx]
pop ebx
sub esp, 4
mov dword [esp], eax
jmp 0x1009b1dd
jmp 0x10087476
push 0
push 0x41797261
push 0x7262694c
push 0x64616f4c
lea ecx, [ebp - 0x2c]
sub esp, 4
mov dword [esp], ecx
jmp 0x10096856
push ecx
mov ecx, dword [esp + 4]
lea ecx, [ecx + 0x1983f]
mov dword [esp + 4], ecx
pop ecx
jmp 0x1009ee32
jmp 0x1009686d
call fcn.10096858
adc byte [eax - 0x77], dl
loopne 0x1009687c
add al, 0
add byte [eax], al
add eax, 4
xchg dword [esp], eax
pop esp
rol byte [edi + eax*4], 4
and al, 0x5c
push eax
pop dword [ebp - 4]
push ecx
mov ecx, 0xc
add ecx, ebp
mov eax, dword [ecx]
pop ecx
push esi
mov dword [esp], eax
push dword [ebp - 4]
sub dword [esp], 0x3f8325ed
pop ecx
add ecx, 0x3f8325ed
push esi
mov dword [esp], ecx
push eax
mov eax, 8
add eax, ebp
mov edx, dword [eax]
pop eax
push eax
mov eax, 0x64
add edx, eax
pop eax
push ebx
mov dword [esp], edx
jmp 0x1007c77d
jmp 0x1009b1f4
call fcn.1009b1df
or eax, dword [ebp + 0x68]
mov byte [eax], 0
jmp 0x1007cbce
push esi
mov esi, 0x6114390f
xor esi, 0x61143917
mov eax, esi
pop esi
mov eax, dword fs:[eax]
push eax
pop dword [ebp - 4]
push dword [ebp - 4]
pop eax
push dword [eax + 0x30]
sub dword [esp], 0x63f80c4b
pop ecx
add ecx, 0x63f80c4b
push eax
mov eax, 0xfffffff8
add eax, ebp
mov dword [eax], ecx
pop eax
push dword [ebp - 8]
pop edx
push ecx
mov ecx, 8
add ecx, edx
mov eax, dword [ecx]
pop ecx
push edx
mov edx, 0xffffffec
add edx, ebp
mov dword [edx], eax
pop edx
push ebx
mov ebx, 0
mov dword [ebp - 0x10], ebx
pop ebx
cmp dword [ebp - 0x10], 0
je 0x1007d698
jmp 0x1007e265

Function at 0x100a76f2
Capabilities:
Access peb ldr_data

Disassembly:
push eax
mov eax, dword [esp + 4]
lea eax, [eax - 0x4e23]
mov dword [esp + 4], eax
pop eax
jmp 0x10096a70

Function at 0x102f4324
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], ecx
cmp eax, 0x1000
lea ecx, [esp + 8]
jb 0x102f4382
jmp 0x102f4341
push ebx
mov ebx, 0x1000
sub ecx, ebx
pop ebx
push esi
mov esi, 0x42603735
add esi, 0x62b848ad
not esi
xor esi, 0xa3b2af6
xor esi, 0x5731f4a
shr esi, 4
xor esi, 0x55aeb5a
sub eax, esi
pop esi
test dword [ecx], eax
cmp eax, 0x1000
jae 0x102f4341
jmp 0x102f4382
sub ecx, 0x42861a21
sub ecx, eax
add ecx, 0x42861a21
push esp
pop eax
test dword [ecx], eax
mov esp, ecx
push dword [eax]
pop ecx
push dword [eax + 4]
xor dword [esp], 0x1d9f7243
pop eax
xor eax, 0x1d9f7243
push ecx
mov dword [esp], eax
ret
Function at 0x401d80
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401dcb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401dc4
test esi, esi
je 0x401dc4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401da0
mov dword [esp], 0x407044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401fb0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4020d8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40203e
cmp eax, 4
jne 0x402060
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40204e
cmp edx, 4
je 0x40204e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401fb0
Function at 0x409b90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push eax
push dword [edi + 0x14]
push dword [ebp + 0xc]
call fcn.004073aa
mov esi, eax
test esi, esi
jns 0x409bbb
push str.Failed_to_format_variable_string.
jmp 0x409c35
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, eax
cmp edx, 0xffffffff
jne 0x409bf6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x409be0
movzx esi, si
or esi, 0x80070000
cmp esi, 0x80070002
je 0x409bf0
cmp esi, 0x80070003
jne 0x409bf2
xor esi, esi
xor eax, eax
jmp 0x409c00
xor eax, eax
xor ecx, ecx
test dl, 0x10
je 0x409c02
inc eax
xor ecx, ecx
test esi, esi
jns 0x409c1b
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_directory_search:__ls__for_path:__ls
push esi
call fcn.00440657
add esp, 0x10
jmp 0x409c3d
push 0
push ecx
push eax
push dword [edi + 4]
push dword [ebp + 0xc]
call fcn.00408363
mov esi, eax
test esi, esi
jns 0x409c3d
push str.Failed_to_set_variable.
push esi
call fcn.00440657
pop ecx
pop ecx
push dword [ebp - 4]
call fcn.004028a8
pop edi
mov eax, esi
pop esi
leave
ret 8

Function at 0x409c4d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push eax
push dword [edi + 0x14]
push dword [ebp + 0xc]
call fcn.004073aa
mov esi, eax
test esi, esi
jns 0x409c83
push str.Failed_to_format_variable_string.
push esi
call fcn.00440657
pop ecx
pop ecx
jmp 0x409d0e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x409ca8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x409cce
movzx esi, si
or esi, 0x80070000
jmp 0x409cce
test al, 0x10
je 0x409cc9
push 0
push dword [ebp - 4]
push dword [edi + 4]
push dword [ebp + 0xc]
call fcn.00408309
mov esi, eax
test esi, esi
jns 0x409cce
push str.Failed_to_set_directory_search_path_variable.
jmp 0x409c76
mov esi, 0x80070003
cmp esi, 0x80070002
je 0x409cf7
cmp esi, 0x80070003
je 0x409cf7
test esi, esi
jns 0x409d0e
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_directory_search:__ls__for_path:__ls
push esi
call fcn.00440657
add esp, 0x10
jmp 0x409d0e
push esi
push dword [ebp - 4]
push dword [edi]
push str.Directory_search:__ls__did_not_find_path:__ls__reason:_0x_x
push 2
call fcn.00440b3e
add esp, 0x14
xor esi, esi
push dword [ebp - 4]
call fcn.004028a8
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x409d1e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push eax
push dword [edi + 0x14]
push dword [ebp + 0xc]
call fcn.004073aa
mov esi, eax
test esi, esi
jns 0x409d4c
push str.Failed_to_format_variable_string.
jmp 0x409dea
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, eax
cmp edx, 0xffffffff
jne 0x409dc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x409da9
cmp esi, 3
je 0x409da9
test esi, esi
je 0x409dbd
jle 0x409d7f
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x409d86
mov esi, 0x80004005
push esi
push 0x28b
push str.c:_agent_work138_s_src_burnengine_search.cpp
call fcn.004038f5
push dword [edi + 0x14]
push str.Failed_get_to_file_attributes.__ls
push esi
call fcn.00440657
add esp, 0xc
jmp 0x409df2
push dword [ebp - 4]
push dword [edi]
push str.File_search:__ls__did_not_find_path:__ls
push 2
call fcn.00440b3e
add esp, 0x10
xor eax, eax
jmp 0x409dce
xor eax, eax
xor ecx, ecx
test edx, 0x10
jne 0x409dd0
inc eax
xor ecx, ecx
push 0
push ecx
push eax
push dword [edi + 4]
push dword [ebp + 0xc]
call fcn.00408363
mov esi, eax
test esi, esi
jns 0x409df2
push str.Failed_to_set_variable.
push esi
call fcn.00440657
pop ecx
pop ecx
push dword [ebp - 4]
call fcn.004028a8
pop edi
mov eax, esi
pop esi
leave
ret 8

Function at 0x409e02
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push eax
push dword [edi + 0x14]
push dword [ebp + 0xc]
call fcn.004073aa
mov esi, eax
test esi, esi
jns 0x409e38
push str.Failed_to_format_variable_string.
push esi
call fcn.00440657
pop ecx
pop ecx
jmp 0x409ebb
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x409e84
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x409e5b
movzx esi, si
or esi, 0x80070000
cmp esi, 0x80070002
je 0x409ea5
cmp esi, 0x80070003
je 0x409ea5
test esi, esi
jns 0x409ebb
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_file_search:__ls__for_path:__ls
push esi
call fcn.00440657
add esp, 0x10
jmp 0x409ebb
test al, 0x10
jne 0x409ea5
push 0
push dword [ebp - 4]
push dword [edi + 4]
push dword [ebp + 0xc]
call fcn.00408309
mov esi, eax
test esi, esi
jns 0x409e5b
push str.Failed_to_set_variable_to_file_search_path.
jmp 0x409e2b
push dword [ebp - 4]
push dword [edi]
push str.File_search:__ls__did_not_find_path:__ls
push 2
call fcn.00440b3e
add esp, 0x10
xor esi, esi
push dword [ebp - 4]
call fcn.004028a8
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x40b2c8
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
jne 0x40b31c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x40b2f3
movzx edi, di
or edi, 0x80070000
test edi, edi
js 0x40b2fa
mov edi, 0x80004005
push edi
push 0x140
push str.c:_agent_work138_s_src_burnengine_section.cpp
call fcn.004038f5
push str.Failed_to_get_module_handle_to_process.
push edi
call fcn.00440657
pop ecx
pop ecx
jmp 0x40b469
mov eax, 0x5a4d
cmp ax, word [esi]
je 0x40b345
mov esi, 0x8007000d
push esi
push 0x14a
push str.c:_agent_work138_s_src_burnengine_section.cpp
mov edi, esi
call fcn.004038f5
push str.Failed_to_find_valid_DOS_image_header_in_buffer.
push esi
jmp 0x40b310
mov ecx, dword [esi + 0x3c]
cmp dword [ecx + esi], 0x4550
je 0x40b36f
mov esi, 0x8007000d
push esi
push 0x155
push str.c:_agent_work138_s_src_burnengine_section.cpp
mov edi, esi
call fcn.004038f5
push str.Failed_to_find_valid_NT_image_header_in_buffer.
jmp 0x40b342
movzx eax, word [ecx + esi + 0x14]
push ebx
add eax, ecx
lea ebx, [esi + 0x18]
push 8
add ebx, eax
push 0x44f1e4
push ebx
call fcn.0042f9d3
add esp, 0xc
test eax, eax
je 0x40b3b4
mov eax, dword [esi + 0x3c]
movzx ecx, word [eax + esi + 6]
xor eax, eax
inc eax
cmp eax, ecx
jae 0x40b3db
add ebx, 0x28
inc eax
cmp dword [ebx], 0x7869772e
jne 0x40b39b
cmp dword [ebx + 4], 0x6e727562
jne 0x40b39b
cmp dword [ebx + 0x10], 0x34
jae 0x40b3f9
mov esi, 0x8007000d
push esi
push 0x17a
push str.c:_agent_work138_s_src_burnengine_section.cpp
mov edi, esi
call fcn.004038f5
push dword [ebx + 0x10]
push str.Failed_to_read_section_info__data_to_short:__u
jmp 0x40b423
mov esi, 0x8007000d
push esi
push 0x16e
push str.c:_agent_work138_s_src_burnengine_section.cpp
mov edi, esi
call fcn.004038f5
push str.Failed_to_find_Burn_section.
jmp 0x40b460
mov ebx, dword [ebx + 0xc]
add ebx, esi
cmp dword [ebx + 4], 2
je 0x40b42e
mov esi, 0x8007000d
push esi
push 0x184
push str.c:_agent_work138_s_src_burnengine_section.cpp
mov edi, esi
call fcn.004038f5
push dword [ebx + 4]
push str.Failed_to_read_section_info__unsupported_version:__08x
push esi
call fcn.00440657
add esp, 0xc
jmp 0x40b468
mov edx, dword [ebp + 8]
mov ecx, edi
mov eax, dword [edx + ecx*4]
cmp eax, dword [ebx + ecx*4 + 8]
jne 0x40b444
inc ecx
cmp ecx, 4
jne 0x40b433
jmp 0x40b468
mov esi, 0x8007000d
push esi
push 0x18a
push str.c:_agent_work138_s_src_burnengine_section.cpp
mov edi, esi
call fcn.004038f5
push str.Bundle_guid_didnt_match_the_guid_in_the_PE_Header_in_memory.
push esi
call fcn.00440657
pop ecx
pop ecx
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
Function at 0x4107a3
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x4107f4
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
add al, 0x8d
dec eax
or byte [ebx], al
ror byte [ecx - 0x35c4f7b3], 1
jae 0x4107ef
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x4107d9
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x4107e1
cmp edx, ebx
jne 0x41092f
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x4107b0
add eax, dword [eax + 4]
jmp 0x41079d
mov dword [ebp + 0xc], ebx
jmp 0x4107ff

Function at 0x410821
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x410817
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x410835
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
add dword [eax], eax
add byte [ebx + 0x108c794], cl
add byte [eax], al
add dword [eax], eax
add byte [ebx + 0x108c794], cl
add byte [eax], al
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x410893
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x41087a
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x410883
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x41088d
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x41086f
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4107f9
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x4108e0
dec eax
je 0x4108d7
sub eax, 3
je 0x4108ce
mov dword [ebp - 4], 0x40
jmp 0x4108fd
mov dword [ebp - 4], 4
jmp 0x4108e3
mov dword [ebp - 4], 0x20
jmp 0x4108e3
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x41092f
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x4108af
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00410140
test byte [eax + edx*4 + 0x1475ff21], 0x6a
jne 0x41093a
push 1
push esi
call edi
mov eax, esi
jmp 0x41093b
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret