joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4072b6
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
lea eax, [ebp - 0x28]
push esi
push eax
lea eax, [ebp - 0x44]
xor ebx, ebx
push eax
push ebx
mov byte [ebp - 0x44], 0x4b
mov byte [ebp - 0x43], 0x45
mov byte [ebp - 0x42], 0x52
mov byte [ebp - 0x41], 0x4e
mov byte [ebp - 0x40], 0x45
mov byte [ebp - 0x3f], 0x4c
mov byte [ebp - 0x3e], 0x33
mov byte [ebp - 0x3d], 0x32
mov byte [ebp - 0x3c], 0x2e
mov byte [ebp - 0x3b], 0x64
mov byte [ebp - 0x3a], 0x6c
mov byte [ebp - 0x39], 0x6c
mov byte [ebp - 0x38], bl
mov byte [ebp - 0x28], 0x46
mov byte [ebp - 0x27], 0x72
mov byte [ebp - 0x26], 0x65
mov byte [ebp - 0x25], 0x65
mov byte [ebp - 0x24], 0x4c
mov byte [ebp - 0x23], 0x69
mov byte [ebp - 0x22], 0x62
mov byte [ebp - 0x21], 0x72
mov byte [ebp - 0x20], 0x61
mov byte [ebp - 0x1f], 0x72
mov byte [ebp - 0x1e], 0x79
mov byte [ebp - 0x1d], bl
call fcn.00406826
mov dword [ebp - 4], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x44]
push eax
push ebx
mov byte [ebp - 0x34], 0x56
mov byte [ebp - 0x33], 0x69
mov byte [ebp - 0x32], 0x72
mov byte [ebp - 0x31], 0x74
mov byte [ebp - 0x30], 0x75
mov byte [ebp - 0x2f], 0x61
mov byte [ebp - 0x2e], 0x6c
mov byte [ebp - 0x2d], 0x46
mov byte [ebp - 0x2c], 0x72
mov byte [ebp - 0x2b], 0x65
mov byte [ebp - 0x2a], 0x65
mov byte [ebp - 0x29], bl
call fcn.00406826
mov dword [ebp - 8], eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
push ebx
mov byte [ebp - 0x54], 0x47
mov byte [ebp - 0x53], 0x65
mov byte [ebp - 0x52], 0x74
mov byte [ebp - 0x51], 0x50
mov byte [ebp - 0x50], 0x72
mov byte [ebp - 0x4f], 0x6f
mov byte [ebp - 0x4e], 0x63
mov byte [ebp - 0x4d], 0x65
mov byte [ebp - 0x4c], 0x73
mov byte [ebp - 0x4b], 0x73
mov byte [ebp - 0x4a], 0x48
mov byte [ebp - 0x49], 0x65
mov byte [ebp - 0x48], 0x61
mov byte [ebp - 0x47], 0x70
mov byte [ebp - 0x46], bl
call fcn.00406826
mov dword [ebp - 0xc], eax
mov byte [ebp - 0x1c], 0x48
mov byte [ebp - 0x1b], 0x65
mov byte [ebp - 0x1a], 0x61
mov byte [ebp - 0x19], 0x70
mov byte [ebp - 0x18], 0x46
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x17], 0x72
push eax
lea eax, [ebp - 0x44]
push eax
push ebx
mov byte [ebp - 0x16], 0x65
mov byte [ebp - 0x15], 0x65
mov byte [ebp - 0x14], bl
call fcn.00406826
mov esi, dword [ebp + 8]
add esp, 0x30
cmp esi, ebx
mov dword [ebp - 0x10], eax
je 0x40745a
cmp dword [esi + 0x10], ebx
je 0x407414
mov ecx, dword [esi]
mov eax, dword [esi + 4]
push ebx
push ebx
mov ecx, dword [ecx + 0x28]
push eax
add ecx, eax
call ecx
mov dword [esi + 0x10], ebx
cmp dword [esi + 8], ebx
je 0x407440
push edi
xor edi, edi
cmp dword [esi + 0xc], ebx
jle 0x407436
mov eax, dword [esi + 8]
mov eax, dword [eax + edi*4]
cmp eax, 0xffffffff
je 0x407430
push eax
call dword [ebp - 4]
inc edi
cmp edi, dword [esi + 0xc]
jl 0x407421
push dword [esi + 8]
call fcn.00406a5a
pop ecx
pop edi
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x407451
push 0x8000
push ebx
push eax
call dword [ebp - 8]
push esi
push ebx
call dword [ebp - 0xc]
push eax
call dword [ebp - 0x10]
pop esi
pop ebx
leave
ret
Function at 0x40ccd0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x40cd00
push esi
call fcn.00410e60
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x40ccf9
mov dword [esi + 0x10], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x40cd83
mov eax, dword [esi + 0x18c]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x40cd6f
mov eax, dword [esi + 8]
test eax, eax
je 0x40cd24
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x18c]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x40cd6b
cmp eax, 2
je 0x40cd6f
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x40cd17
cmp eax, 3
je 0x40cd4a
cmp eax, 1
jne 0x40cd17
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x40cd17
mov edx, dword [esi + 0x118]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x40cd17
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.0040cdb0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x40cda3
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x12
mov edx, dword [esi]
mov eax, dword [esi + 0x10]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.0040cdb0
add esp, 4
pop esi
ret
Function at 0x40ff00
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov dword [edi + 4], ebx
call fcn.00411d20
push 0x50
push edi
mov dword [esp + 0x18], eax
call fcn.00411cd0
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x40ff44
push edi
call fcn.00411d30
mov eax, dword [edi]
push edi
mov dword [eax + 0x14], 0x35
mov ecx, dword [edi]
mov dword [ecx + 0x18], ebx
mov edx, dword [edi]
call dword [edx]
add esp, 8
mov dword [esi], fcn.00410040
mov dword [esi + 4], fcn.00410190
mov dword [esi + 8], fcn.00410240
mov dword [esi + 0xc], fcn.004102f0
mov dword [esi + 0x10], 0x4103a0
mov dword [esi + 0x14], 0x410410
mov dword [esi + 0x18], 0x410480
mov dword [esi + 0x1c], 0x410600
mov dword [esi + 0x20], 0x4107f0
mov dword [esi + 0x24], fcn.004109e0
mov dword [esi + 0x28], 0x410ae0
mov eax, dword [esp + 0xc]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x3c]
mov ecx, 2
mov dword [eax - 8], ebx
mov dword [eax], ebx
sub eax, 4
dec ecx
jne 0x40ff9f
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], 0x50
push str.JPEGMEM
mov dword [edi + 4], esi
call sub.MSVCRT.dll_getenv
add esp, 4
cmp eax, ebx
je 0x41002f
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push edx
push str._ld_c
push eax
mov byte [esp + 0x24], 0x78
call sub.MSVCRT.dll_sscanf
add esp, 0x10
test eax, eax
jle 0x41002f
mov al, byte [esp + 0x14]
cmp al, 0x6d
je 0x40fff8
cmp al, 0x4d
jne 0x41001c
mov eax, dword [esp + 0xc]
pop edi
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x2c], eax
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esp + 0xc]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4018d0
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [esp + 0x40]
mov eax, dword [ebx]
test eax, eax
je 0x401a28
mov edi, dword [esp + 0x44]
mov dword [esp + 8], 0
mov edx, dword [edi + 4]
add edx, dword [ebx + 8]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0040dbe0
test eax, eax
mov eax, dword [esp + 0x44]
js 0x401a70
mov ebp, dword [eax + 0xc]
mov dword [esp], ebp
call sub.msvcrt.dll_malloc
mov dword [esp + 0x1c], eax
test eax, eax
je 0x401a8d
mov eax, dword [esp + 0x44]
cmp byte [eax + 0x10], 1
je 0x401a00
mov esi, ebp
xor edi, edi
test ebp, ebp
je 0x4019dc
mov ebp, dword [esp + 0x1c]
mov ecx, ebx
jmp 0x401964
sub esi, dword [esp + 0x10]
sbb edi, dword [esp + 0x14]
add ebp, ebx
mov eax, edi
or eax, esi
je 0x401a20
xor eax, eax
mov edx, 0x2000
mov dword [esp + 0x40], ecx
mov ebx, eax
cmp edx, esi
sbb ebx, edi
cmovae eax, edi
cmovae edx, esi
mov dword [esp + 0x14], eax
mov eax, dword [ecx]
mov ebx, edx
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov dword [esp + 4], edx
mov dword [esp], ebp
mov dword [esp + 0x10], edx
call sub.msvcrt.dll_fread
mov ecx, dword [esp + 0x40]
test eax, eax
jne 0x401950
mov eax, dword [esp + 0x44]
mov dword [esp + 4], str.Failed_to_extract__s:_failed_to_read_data_chunk__n
mov ebx, ecx
mov dword [esp], str.fread
add eax, 0x12
mov dword [esp + 8], eax
call fcn.004023a0
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [esp + 0x1c], 0
mov eax, dword [ebx]
test eax, eax
je 0x4019f0
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov dword [ebx], 0
mov eax, dword [esp + 0x1c]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x44]
xor ecx, ecx
mov dword [esp], eax
mov eax, ebx
call fcn.00401520
test eax, eax
je 0x4019dc
jmp 0x4019c8
mov ebx, ecx
jmp 0x4019dc
lea eax, [ebx + 0x70]
mov dword [esp + 4], 0x418184
mov dword [esp], eax
call fcn.00403610
mov dword [ebx], eax
test eax, eax
jne 0x4018e5
mov eax, dword [esp + 0x44]
mov dword [esp], str.Failed_to_extract__s:_failed_to_open_archive_file__n
add eax, 0x12
mov dword [esp + 4], eax
call fcn.00402350
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x1c]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, 0x12
mov dword [esp + 4], str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
mov dword [esp + 8], eax
mov dword [esp], str.fseek
call fcn.004023a0
jmp 0x401a5c
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], ebp
mov dword [esp + 4], str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
add eax, 0x12
mov dword [esp], str.malloc
mov dword [esp + 8], eax
call fcn.004023a0
jmp 0x4019d4
Function at 0x4066c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov eax, 0x204c
push edi
push esi
push ebx
call fcn.0040d360
sub esp, eax
mov ecx, dword [esp + 0x2064]
test ecx, ecx
je 0x406727
mov dword [esp], 0x41a377
call fcn.004063d0
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2064]
mov dword [esp], eax
call fcn.00406540
mov ebx, eax
test eax, eax
je 0x4067c0
mov dword [esp + 4], eax
mov dword [esp], 0x41a37c
call dword [sym.imp.msvcrt.dll__wputenv_s]
mov dword [esp], ebx
mov esi, eax
call sub.msvcrt.dll_free
test esi, esi
jne 0x4067d0
lea edi, [esp + 0x40]
mov dword [esp], 0x1000
mov ebx, 5
mov dword [esp + 4], edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
sub esp, 8
call sub.msvcrt.dll__getpid
lea esi, [esp + 0x20]
mov dword [esp + 8], str._MEI_d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x10
mov dword [esp], esi
call fcn.00406240
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [sym.imp.msvcrt.dll__wtempnam]
mov dword [esp], eax
mov ebp, eax
call fcn.00407a60
test eax, eax
je 0x4067e0
mov dword [esp], ebp
call sub.msvcrt.dll_free
sub ebx, 1
jne 0x406769
mov eax, dword [esp + 0x2064]
test eax, eax
je 0x4067c0
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x406838
mov dword [esp + 4], edi
mov dword [esp], 0x41a377
call fcn.00406480
mov dword [esp], edi
call sub.msvcrt.dll_free
xor eax, eax
add esp, 0x204c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.LOADER:_Failed_to_set_the_TMP_environment_variable._n
call fcn.00402350
jmp 0x4067c0
mov eax, dword [esp + 0x2060]
mov dword [esp + 8], 0x1000
mov dword [esp + 4], ebp
mov dword [esp], eax
call fcn.00407640
mov dword [esp], ebp
call sub.msvcrt.dll_free
mov edx, dword [esp + 0x2064]
test edx, edx
je 0x40682e
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x406877
mov dword [esp + 4], edi
mov dword [esp], 0x41a377
call fcn.00406480
mov dword [esp], edi
call sub.msvcrt.dll_free
mov eax, 1
jmp 0x4067c2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x41a377
mov dword [esp], 0
call fcn.00407820
mov dword [esp + 4], 0
mov ebx, eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
sub esp, 8
mov dword [esp], ebx
call sub.msvcrt.dll_free
jmp 0x4067c0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x41a377
mov dword [esp], 0
call fcn.00407820
mov dword [esp + 4], 0
mov ebx, eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
sub esp, 8
mov dword [esp], ebx
call sub.msvcrt.dll_free
jmp 0x40682e
Function at 0x406a60
Capabilities:
Delete file

Disassembly:
push edi
push esi
push ebx
push eax
mov eax, 0x101c
call fcn.0040d360
sub esp, eax
mov edi, edx
mov eax, dword [esp + eax]
lea esi, [esp + 0x1044]
mov dword [esp + 4], 0x41a408
mov dword [esp], esi
mov ebx, eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x406aa0
add esp, 0x1020
pop ebx
pop esi
pop edi
ret
mov dword [esp + 4], 0x41a40c
mov dword [esp], esi
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x406a92
xor eax, eax
mov word [ebx + edi*2], ax
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_wcscat
test byte [esp + 0x1030], 0x10
mov dword [esp], ebx
je 0x406b00
call fcn.00407c30
test eax, eax
jne 0x406b30
mov dword [esp + 4], ebx
lea ebx, [esp + 0x1f]
mov dword [esp + 8], 0x1000
mov dword [esp], ebx
call fcn.00407640
mov dword [esp], ebx
call fcn.00406930
jmp 0x406a92
mov esi, dword [sym.imp.msvcrt.dll__wremove]
call esi
test eax, eax
je 0x406a92
mov dword [esp], 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
mov dword [esp], ebx
call esi
jmp 0x406a92
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll__wrmdir]
jmp 0x406a92
Function at 0x407640
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.00407358
xchg esi, eax
mov bl, 0x69
or dword [ebp - 0x17af3fbb], 0xfffffcc5
push eax
push esi
push dword [ebp + 8]
call fcn.0040731d
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.00407358
mov dl, 0xf6
xchg esp, eax
in eax, 0x8d
inc ebp
call 0x5128d44e
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.00407368
push eax
push esi
push dword [ebp + 8]
call fcn.0040731d
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00407368
push eax
push esi
push dword [ebp + 8]
call fcn.0040731d
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
salc
aam 0x88
pop ebp
xlatb

Function at 0x407780
Capabilities:
Contain obfuscated stackstrings

Disassembly:
salc
aam 0x88
pop ebp
xlatb
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00407368
push eax
push esi
push dword [ebp + 8]
call fcn.0040731d
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00407358
sti
inc ebx
wait
imul ecx, dword [eax - 0x8363], 0x7d9d88ff
invalid
Function at 0x4079e0
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x407a0c
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x407a07
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x4079f1
and ecx, 0xfff
dec dword [edi]
add byte [eax], al
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x4079f9
cmp edx, ebx
jne 0x407b47
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x4079c8
add eax, dword [eax + 4]
jmp 0x4079b5
mov dword [ebp + 0xc], ebx
jmp 0x407a17

Function at 0x407a60
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x407a2f
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x407a4d
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
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 0x407aab
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 0x407a92
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x407a9b
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x407aa5
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x407a87
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x407a11
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 0x407af8
dec eax
je 0x407aef
sub eax, 3
je 0x407ae6
mov dword [ebp - 4], 0x40
jmp 0x407b15
mov dword [ebp - 4], 4
jmp 0x407afb
mov dword [ebp - 4], 0x20
jmp 0x407afb
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 0x407b47
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x407ac7
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00407358
scasd eax, dword es:[edi]
inc edx
or byte [ebp + 0x6a1475ff], dh
add dword [esi - 1], edx
xlatb
mov eax, esi
jmp 0x407b53
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407c30
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
dec dword [edi]

Function at 0x40c650
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00415ae0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00415ae0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x40c6b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x4302ac]
test esi, esi
jle 0x40c7d0
mov eax, dword [0x4302b0]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x40c6e4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x40c767
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x40c6d0
mov dword [esp], ebx
call fcn.0040d090
mov edi, eax
test eax, eax
je 0x40c7f7
mov eax, dword [0x4302b0]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0040d1d0
mov edx, dword [0x4302b0]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40c7d7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x40c760
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x40c770
add dword [0x4302ac], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x4302b0]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40c760
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0040c650
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40c6ee
mov eax, dword [0x4302b0]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.0040c650
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0040c650
lea esi, [esi]
nop
Function at 0x40cd00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4302c8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4302c0]
sub esp, 4
test ebx, ebx
je 0x40cd55
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40cd4e
test esi, esi
je 0x40cd4e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40cd30
mov dword [esp], 0x4302c8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40d090
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x40d0b5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x40d0c0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x40d0b5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x40d108
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40d0fe
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40d10a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x40d0f0
xor eax, eax
pop ebx
pop esi
ret