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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x443004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x40b200
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ebad
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40b23c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40b23c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ebad
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x40b323
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x40b264
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x40b297
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.00417c80
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ebad
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x40b323
cmp eax, 1
jle 0x40b2f6
cmp eax, 3
jne 0x40b323
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.00417c80
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ebad
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40b313
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00418ca1
add esp, 0x10
cmp edi, eax
jne 0x40b323
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x40b227
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ebad
mov esp, ebp
pop ebp
ret 4
Function at 0x40bd70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x443004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40be2a
cmp byte [esi + 0x3d], 0
je 0x40be2a
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40be18
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40bde0
sub eax, 1
je 0x40bde4
sub eax, 2
jne 0x40be18
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ebad
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40be01
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00418ca1
add esp, 0x10
cmp edi, eax
jne 0x40be18
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ebad
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ebad
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0040ebad
mov esp, ebp
pop ebp
ret

Function at 0x40c180
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f6e0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x443004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0040ebc3
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0040fc9b
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40cd30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x443004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov ebx, edx
mov esi, ecx
call dword [sym.imp.ktmw32.dll_CreateTransaction]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40cd8e
push str.Failed_to_create_transaction_
push 0x444678
call fcn.00404fc0
push eax
call fcn.00405270
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ebad
mov esp, ebp
pop ebp
ret
push 0
push 0
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileTransactedW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40cdf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
push str.Failed_to_create_transacted_file:
push 0x444678
call fcn.00404fc0
add esp, 0xc
mov ecx, eax
call fcn.00402ec0
push eax
call fcn.00405270
add esp, 4
or eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ebad
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 8]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40ce4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
push str.Failed_writing_payload__Error:
push 0x444678
call fcn.00404fc0
add esp, 0xc
mov ecx, eax
call fcn.00402ec0
push eax
call fcn.00405270
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ebad
mov esp, ebp
pop ebp
ret
push esi
push 0x1000000
push 2
push 0
push 0
push 0xf001f
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
call dword [sym.imp.ntdll.dll_NtCreateSection]
test eax, eax
je 0x40ce7a
push str.NtCreateSection_failed
jmp 0x40cd67
push str.___Created_a_TxF_transaction_n
push 0x444590
call fcn.00404fc0
add esp, 8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call dword [sym.imp.ktmw32.dll_RollbackTransaction]
test eax, eax
jne 0x40cefe
push str.RollbackTransaction_failed:
push 0x444678
call fcn.00404fc0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40cebc
xor ecx, ecx
jmp 0x40cec3
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
mov eax, dword [ecx + 0x14]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00402ec0
push eax
call fcn.00405270
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ebad
mov esp, ebp
pop ebp
ret
push edi
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0040ebad
mov esp, ebp
pop ebp
ret
Function at 0x40cf40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x443004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
mov esi, ecx
mov ebx, edx
push eax
push esi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], esi
call fcn.0040ddd0
add esp, 8
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x40cfa1
push str.Cannot_read_payload_
push 0x444678
call fcn.00404fc0
push eax
call fcn.00405270
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ebad
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x24]
mov eax, ecx
and al, 0xf
mov dword [ebp - 0x28], ecx
movzx edi, al
neg edi
sbb edi, edi
and ecx, 0xfffffff0
and edi, 0x10
add edi, ecx
xor ecx, ecx
mov eax, edi
mov dword [ebp - 0x3c], edi
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.00419791
add esp, 4
mov dword [ebp - 0x2c], eax
lea ecx, [edi + 1]
push ecx
push 0
push eax
call fcn.004130f0
xor edi, edi
mov dword [ebp - 0x20], 0x72676148
add esp, 0xc
mov dword [ebp - 0x1c], 0x39326469
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
cmp dword [ebp - 0x28], edi
jbe 0x40d03e
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x20]
mov ebx, dword [ebp - 0x28]
xor ecx, ecx
mov dword [0x445144], eax
mov eax, dword [ebp - 0x2c]
movups xmm0, xmmword [ecx + esi]
add eax, ecx
mov dword [0x445148], eax
movups xmmword [eax], xmm0
call fcn.00401240
call fcn.00401590
inc edi
mov ecx, edi
shl ecx, 4
cmp ecx, ebx
jb 0x40d013
mov esi, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x38]
test ebx, ebx
jne 0x40d074
lea ecx, [ebp - 0x10]
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x40d047
lea ecx, [ebp - 0x10]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x40d058
mov eax, dword [str..enc]
lea ebx, [ebp - 0x10]
mov dword [ecx], eax
mov al, byte [0x43eb54]
mov byte [ecx + 4], al
push 0x43eb58
push ebx
call fcn.00419854
push eax
push dword [ebp - 0x3c]
push 1
push dword [ebp - 0x2c]
call fcn.00418ca1
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0040ebad
mov esp, ebp
pop ebp
ret

Function at 0x40d0b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
cmp ebx, 0x10
jae 0x40d12d
mov esi, dword [ebp + 8]
test esi, esi
je 0x40d12d
push 0x40
push esi
call fcn.0040e1d0
add esp, 8
test al, al
jne 0x40d12d
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x40d12d
mov eax, dword [esi + 0x3c]
cmp eax, 0x400
jg 0x40d12d
lea edi, [eax + esi]
push 0xf8
push edi
call fcn.0040e1d0
add esp, 8
test al, al
jne 0x40d12d
cmp dword [edi], 0x4550
jne 0x40d12d
push esi
call fcn.0040d5f0
add esp, 4
mov ecx, 0x78
test al, al
mov edx, 0x88
cmovne ecx, edx
lea eax, [ecx + ebx*8]
add eax, edi
cmp byte [ebp + 0x10], 0
jne 0x40d12f
cmp dword [eax], 0
jne 0x40d12f
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40d140
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x40d19c
push 0x40
push esi
call fcn.0040e1d0
add esp, 8
test al, al
jne 0x40d19c
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x40d19c
mov eax, dword [esi + 0x3c]
cmp eax, 0x400
jg 0x40d19c
lea edi, [eax + esi]
push 0xf8
push edi
call fcn.0040e1d0
add esp, 8
test al, al
jne 0x40d19c
cmp dword [edi], 0x4550
jne 0x40d19c
push esi
call fcn.0040d5f0
mov eax, dword [edi + 0x28]
add esp, 4
pop edi
pop esi
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
ret

Function at 0x40d1b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040d5f0
add esp, 4
mov bl, al
test esi, esi
je 0x40d21d
push 0x40
push esi
call fcn.0040e1d0
add esp, 8
test al, al
jne 0x40d21d
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x40d21d
mov eax, dword [esi + 0x3c]
cmp eax, 0x400
jg 0x40d21d
add esi, eax
push 0xf8
push esi
call fcn.0040e1d0
add esp, 8
test al, al
jne 0x40d21d
cmp dword [esi], 0x4550
jne 0x40d21d
test bl, bl
je 0x40d214
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esi + 0x34]
xor edx, edx
pop esi
pop ebx
pop ebp
ret
pop esi
xor eax, eax
xor edx, edx
pop ebx
pop ebp
ret

Function at 0x40d230
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x40d2a8
push 0x40
push esi
call fcn.0040e1d0
add esp, 8
test al, al
jne 0x40d2a8
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x40d2a8
mov eax, dword [esi + 0x3c]
cmp eax, 0x400
jg 0x40d2a8
lea edi, [eax + esi]
push 0xf8
push edi
call fcn.0040e1d0
add esp, 8
test al, al
jne 0x40d2a8
cmp dword [edi], 0x4550
jne 0x40d2a8
push esi
call fcn.0040d5f0
add esp, 4
push esi
test al, al
je 0x40d299
call fcn.0040d320
add esp, 4
mov eax, dword [eax + 0x50]
pop edi
pop esi
pop ebp
ret
call fcn.0040d2b0
add esp, 4
mov eax, dword [eax + 0x50]
pop edi
pop esi
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
ret

Function at 0x40d2b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x40d30f
push 0x40
push esi
call fcn.0040e1d0
add esp, 8
test al, al
jne 0x40d30f
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x40d30f
mov eax, dword [esi + 0x3c]
cmp eax, 0x400
jg 0x40d30f
lea edi, [eax + esi]
push 0xf8
push edi
call fcn.0040e1d0
add esp, 8
test al, al
jne 0x40d30f
cmp dword [edi], 0x4550
jne 0x40d30f
push esi
call fcn.0040d5f0
add esp, 4
test al, al
jne 0x40d30f
mov eax, edi
pop edi
pop esi
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40d320
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x40d37f
push 0x40
push esi
call fcn.0040e1d0
add esp, 8
test al, al
jne 0x40d37f
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x40d37f
mov eax, dword [esi + 0x3c]
cmp eax, 0x400
jg 0x40d37f
lea edi, [eax + esi]
push 0xf8
push edi
call fcn.0040e1d0
add esp, 8
test al, al
jne 0x40d37f
cmp dword [edi], 0x4550
jne 0x40d37f
push esi
call fcn.0040d5f0
add esp, 4
test al, al
je 0x40d37f
mov eax, edi
pop edi
pop esi
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
ret

Function at 0x40d390
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x40d3b5
mov ebx, dword [ebp + 0xc]
push 0x40
push esi
test ebx, ebx
je 0x40d3bc
push ebx
push esi
call fcn.0040e190
add esp, 0x10
test al, al
jne 0x40d3c8
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
call fcn.0040e1d0
add esp, 8
test al, al
jne 0x40d3b5
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x40d3b5
mov eax, dword [esi + 0x3c]
cmp eax, 0x400
jg 0x40d3b5
lea edi, [eax + esi]
push 0xf8
push edi
test ebx, ebx
je 0x40d3fe
push ebx
push esi
call fcn.0040e190
add esp, 0x10
test al, al
jne 0x40d40a
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
call fcn.0040e1d0
add esp, 8
test al, al
jne 0x40d3b5
cmp dword [edi], 0x4550
jne 0x40d3b5
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40d570
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x40d5e7
push 0x40
push esi
call fcn.0040e1d0
add esp, 8
test al, al
jne 0x40d5e7
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x40d5e7
mov eax, dword [esi + 0x3c]
cmp eax, 0x400
jg 0x40d5e7
lea edi, [eax + esi]
push 0xf8
push edi
call fcn.0040e1d0
add esp, 8
test al, al
jne 0x40d5e7
cmp dword [edi], 0x4550
jne 0x40d5e7
push esi
call fcn.0040d5f0
add esp, 4
mov ecx, 0xa0
test al, al
mov edx, 0xb0
cmovne ecx, edx
cmp dword [ecx + edi], 0
lea eax, [ecx + edi]
je 0x40d5e7
test eax, eax
je 0x40d5e7
pop edi
mov al, 1
pop esi
pop ebp
ret
pop edi
xor al, al
pop esi
pop ebp
ret

Function at 0x40d5f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x40d65f
push 0x40
push esi
call fcn.0040e1d0
add esp, 8
test al, al
jne 0x40d65f
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x40d65f
mov eax, dword [esi + 0x3c]
cmp eax, 0x400
jg 0x40d65f
add esi, eax
push 0xf8
push esi
call fcn.0040e1d0
add esp, 8
test al, al
jne 0x40d65f
cmp dword [esi], 0x4550
jne 0x40d65f
push 0xf8
push esi
call fcn.0040e1d0
add esp, 8
test al, al
jne 0x40d65f
movzx eax, word [esi + 0x18]
mov ecx, 0x20b
cmp ax, cx
jne 0x40d65f
mov al, 1
pop esi
pop ebp
ret
xor al, al
pop esi
pop ebp
ret
Function at 0x40d670
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x40d680
xor al, al
pop esi
pop ebp
ret
push esi
call fcn.0040d5f0
push 0x40
push esi
call fcn.0040e1d0
add esp, 0xc
test al, al
jne 0x40d6d1
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x40d6d1
mov eax, dword [esi + 0x3c]
cmp eax, 0x400
jg 0x40d6d1
add esi, eax
push 0xf8
push esi
call fcn.0040e1d0
add esp, 8
test al, al
jne 0x40d6d1
cmp dword [esi], 0x4550
jne 0x40d6d1
movzx eax, word [esi + 0x16]
shr eax, 0xd
and al, 1
pop esi
pop ebp
ret
xor eax, eax
shr eax, 0xd
and al, 1
pop esi
pop ebp
ret

Function at 0x40ddd0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40de00
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
jne 0x40de27
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
test eax, eax
je 0x40df01
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x40de5b
cmp eax, esi
cmovbe esi, eax
push esi
push dword [ebp - 4]
call fcn.0040e1d0
add esp, 8
test al, al
je 0x40df16
push str._is_invalid_
push dword [ebp + 8]
push str.____Mapping_of
push 0x444678
call fcn.00404fc0
add esp, 8
push eax
call fcn.00404fc0
add esp, 8
push eax
call fcn.00404fc0
add esp, 8
mov dword [ebp - 0x10], eax
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + eax + 0x30]
mov esi, dword [ecx + 4]
mov ecx, esi
mov dword [ebp - 8], esi
mov edx, dword [esi]
call dword [edx + 4]
lea eax, [ebp - 0xc]
push eax
call fcn.00404e40
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
mov byte [ebp - 8], al
test esi, esi
je 0x40dee5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
test eax, eax
je 0x40dee5
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
call fcn.00405bd0
mov ecx, dword [ebp - 0x10]
call fcn.00404c60
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push edi
call esi
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push esi
call fcn.0040e130
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40df35
push esi
push dword [ebp - 4]
push eax
call fcn.004125f0
add esp, 0xc
jmp 0x40df37
xor esi, esi
mov eax, dword [ebp + 0xc]
push dword [ebp - 4]
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push edi
call esi
mov eax, dword [ebp - 0x10]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x410d83
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x443004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xffff
push edi
mov edi, ecx
cmp ax, bx
jne 0x410da8
xor eax, eax
jmp 0x410e04
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x410dd5
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [ecx + esi*2]
cmp ecx, eax
jae 0x410dd5
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x410e89
cmp dword [edi + 0x4c], 0
je 0x410dfe
mov ecx, edi
call fcn.004109e4
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x410e14
push dword [edi + 0x4c]
push ebx
call fcn.004103ef
pop ecx
test al, al
movzx eax, bx
pop ecx
jne 0x410e03
mov eax, 0xffff
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040ebad
leave
ret 4
mov word [ebp - 0x28], bx
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x4301bc]
mov ecx, dword [ebp - 0x2c]
call esi
test eax, eax
js 0x410dfe
cmp eax, 1
jle 0x410e5c
cmp eax, 3
jne 0x410dfe
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x410df0
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x410e79
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.00418ca1
add esp, 0x10
cmp esi, eax
jne 0x410dfe
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
je 0x410dfe
mov ax, bx
jmp 0x410e03

Function at 0x42270d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004223b4

Function at 0x422718
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042253e

Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x7fa53583
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x425879db
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219