joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408fec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x10], 0xc
push edi
mov edi, eax
jge 0x409002
xor eax, eax
jmp 0x40913e
inc dword [0x418b0c]
cmp dword [0x418b0c], 1
jne 0x409025
push 0
call fcn.0040b0df
xor eax, 0xbb40e64e
push eax
call fcn.0040b0b2
pop ecx
pop ecx
mov eax, dword [ebp + 8]
push edi
mov ecx, ebx
call fcn.00408fb5
and dword [ebp + 0x10], 0
push esi
call fcn.0040b0bc
mov esi, dword [ebx + 8]
sar eax, 7
and eax, 0xff
and esi, 0xfffd
push eax
mov ecx, ebx
mov dword [ebp - 4], eax
or esi, 2
call fcn.00408f6f
mov ecx, dword [ebp + 0x10]
mov eax, esi
xor eax, 1
imul eax, esi
shr eax, 8
xor al, byte [ebp - 4]
inc dword [ebp + 0x10]
cmp dword [ebp + 0x10], 0xa
mov byte [ebp + ecx - 0x10], al
jl 0x409035
mov eax, dword [ebp + 8]
push edi
mov ecx, ebx
call fcn.00408fb5
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
xor esi, esi
sub eax, ecx
mov dword [ebp + 0x10], eax
mov eax, dword [ebx + 8]
and eax, 0xfffd
or eax, 2
mov dword [ebp + 8], eax
movzx eax, byte [ebp + esi - 0x10]
push eax
mov ecx, ebx
call fcn.00408f6f
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
xor eax, 1
imul eax, dword [ebp + 8]
shr eax, 8
xor al, byte [ebp + esi - 0x10]
add ecx, esi
inc esi
cmp esi, 0xa
mov byte [ebp + ecx - 0x10], al
jl 0x40908f
mov eax, dword [ebx + 8]
and eax, 0xfffd
or eax, 2
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x14]
shr eax, 0x10
mov dword [ebp + 0x10], eax
and eax, 0xff
push eax
mov ecx, ebx
call fcn.00408f6f
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
xor eax, 1
imul eax, dword [ebp + 8]
shr eax, 8
xor al, byte [ebp + 0x10]
mov byte [esi + ecx], al
mov eax, dword [ebx + 8]
and eax, 0xfffd
or eax, 2
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x14]
shr eax, 0x18
push eax
mov ecx, ebx
inc esi
mov dword [ebp + 0x14], eax
call fcn.00408f6f
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
xor eax, 1
imul eax, dword [ebp + 8]
shr eax, 8
xor al, byte [ebp + 0x14]
mov byte [esi + ecx], al
lea eax, [esi + 1]
pop esi
pop edi
leave
ret 0x10

Function at 0x40980d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
cmp dword [esi + 0x4090], eax
mov dword [ebp - 0xc], eax
je 0x409879
cmp dword [esi + 0x6c], eax
jbe 0x409879
push ebx
mov dword [ebp - 4], 0xffffff78
sub dword [ebp - 4], esi
push edi
lea ecx, [esi + 0x4094]
lea ebx, [esi + 0x88]
mov eax, dword [esi + 0x409c]
mov edi, dword [esi + 0x40a0]
and eax, 0xfffd
or eax, 2
mov dword [ebp - 8], eax
movzx eax, byte [ebx]
push eax
call fcn.00408f6f
mov eax, dword [ebp - 8]
xor eax, 1
imul eax, dword [ebp - 8]
shr eax, 8
xor byte [ebx], al
mov eax, dword [ebp - 4]
inc ebx
add eax, ebx
cmp eax, dword [esi + 0x6c]
jb 0x40983d
pop edi
pop ebx
push dword [esi + 0x6c]
mov edx, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
lea eax, [esi + 0x88]
push eax
call dword [esi + 8]
cmp eax, dword [esi + 0x6c]
je 0x409895
or dword [ebp - 0xc], 0xffffffff
and dword [esi + 0x6c], 0
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x40a835
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x418b64], esi
push edi
jne 0x40a855
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x418b60], esi
mov byte [0x418b5c], al
jne 0x40a8bb
mov ecx, dword [0x41a154]
test ecx, ecx
je 0x40a89c
mov eax, dword [0x41a150]
sub eax, 4
cmp eax, ecx
jmp 0x40a895
mov eax, dword [eax]
test eax, eax
je 0x40a887
call eax
mov eax, dword [0x41a150]
sub eax, 4
cmp eax, dword [0x41a154]
mov dword [0x41a150], eax
jae 0x40a87f
mov eax, 0x418020
mov esi, 0x418028
cmp eax, esi
mov edi, eax
jae 0x40a8bb
mov eax, dword [edi]
test eax, eax
je 0x40a8b4
call eax
add edi, 4
cmp edi, esi
jb 0x40a8ac
mov eax, 0x41802c
mov esi, 0x418030
cmp eax, esi
mov edi, eax
jae 0x40a8da
mov eax, dword [edi]
test eax, eax
je 0x40a8d3
call eax
add edi, 4
cmp edi, esi
jb 0x40a8cb
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x40a8f4
push dword [ebp + 8]
mov dword [0x418b64], 1
call fcn.0040a79b
pop ebp
ret
Function at 0x40b13d
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x60
push 0x4160c8
call fcn.0040d880
mov edi, 0x94
mov eax, edi
call fcn.0040abc0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x418b24], ecx
mov eax, dword [esi + 4]
mov dword [0x418b30], eax
mov edx, dword [esi + 8]
mov dword [0x418b34], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x418b28], esi
cmp ecx, 2
je 0x40b19d
or esi, 0x8000
mov dword [0x418b28], esi
shl eax, 8
add eax, edx
mov dword [0x418b2c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40b1d8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40b1d8
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40b1f0
cmp eax, 0x20b
je 0x40b1dd
mov dword [ebp - 0x1c], esi
jmp 0x40b204
cmp dword [ecx + 0x84], 0xe
jbe 0x40b1d8
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40b1fe
cmp dword [ecx + 0x74], 0xe
jbe 0x40b1d8
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0040bf83
pop ecx
test eax, eax
jne 0x40b230
cmp dword [0x418b98], 1
jne 0x40b21d
call fcn.0040d27f
push 0x1c
call fcn.0040d108
push 0xff
call fcn.0040a79b
pop ecx
pop ecx
call fcn.0040b831
mov dword [ebp - 4], esi
call fcn.0040ccaf
test eax, eax
jge 0x40b249
push 0x1b
call fcn.0040b118
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x41a148], eax
call fcn.0040d75b
mov dword [0x418b90], eax
call fcn.0040d6b9
test eax, eax
jge 0x40b26f
push 8
call fcn.0040b118
pop ecx
call fcn.0040d486
test eax, eax
jge 0x40b280
push 9
call fcn.0040b118
pop ecx
push 1
call fcn.0040a7cb
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40b296
push eax
call fcn.0040b118
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040d429
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40b2b7
movzx eax, word [ebp - 0x40]
jmp 0x40b2ba
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00405fe9
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40b2d8
push edi
call fcn.0040a8f6
call fcn.0040a918
jmp 0x40b30a
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040d8bb
ret
Function at 0x40b9cf
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x418fe0]
mov eax, dword [0x4186f0]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x40bb95
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x419000]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x40bb95
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x40ba39
xor eax, eax
jmp 0x40bba9
test al, 0x20
je 0x40ba4a
push 2
push edi
push edi
push ecx
call fcn.0040e728
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40bb1f
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x40bb66
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x40baac
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40ba9d
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x40ba7f
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40baec
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x40baf8
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x40ba73
jmp 0x40bafa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x40bb90
cmp dword [ebp + 0x3a4], edi
je 0x40bb66
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x40bb58
mov dword [0x418b1c], eax
jmp 0x40bb9c
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40bb4a
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x40bafa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x40bafa
push dword [ebp + 0x3a4]
call fcn.0040d034
pop ecx
jmp 0x40bba6
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40bb7e
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x40ba32
mov dword [0x418b18], 0x1c
mov dword [0x418b1c], edi
jmp 0x40bba6
sub eax, dword [ebp - 0x7c]
jmp 0x40bba9
and dword [0x418b1c], 0
mov dword [0x418b18], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.0040e7f8
add ebp, 0x39c
leave
ret
Function at 0x40bc9d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x418fe0]
push edi
jae 0x40be72
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x419000]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x40be72
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x40bd48
test dl, 2
jne 0x40bd48
test dl, 0x48
je 0x40bd12
cmp byte [eax + 5], 0xa
je 0x40bd12
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40bd5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x40bd43
mov dword [0x418b1c], ecx
jmp 0x40be79
cmp eax, 0x6d
jne 0x40bd4f
xor eax, eax
jmp 0x40be86
push eax
call fcn.0040d034
pop ecx
jmp 0x40be83
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x40be6d
test eax, eax
je 0x40bd82
cmp byte [ebx], 0xa
jne 0x40bd82
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x40bd8b
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x40be67
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x40be57
cmp al, 0xd
je 0x40bdbd
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x40be49
dec ecx
cmp dword [ebp - 8], ecx
jae 0x40bdd7
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x40bdd2
add dword [ebp - 8], 2
jmp 0x40be2b
mov dword [ebp - 8], eax
jmp 0x40be45
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
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 0x40bdff
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40be45
cmp dword [ebp - 0x10], 0
je 0x40be45
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x40be20
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x40be2b
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x40be48
cmp ebx, dword [ebp + 0xc]
jne 0x40be30
cmp byte [ebp - 1], 0xa
jne 0x40be30
mov byte [ebx], 0xa
jmp 0x40be48
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040cc08
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x40be49
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x40bda1
jmp 0x40be67
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x40be67
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x40be86
and dword [0x418b1c], 0
mov dword [0x418b18], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d108
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4186f0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x418580]
je 0x40d13d
inc eax
cmp eax, 0x13
jb 0x40d12e
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x418580]
jne 0x40d263
mov eax, dword [0x418b98]
cmp eax, 1
je 0x40d23b
cmp eax, edx
jne 0x40d16d
cmp dword [0x4180a8], 1
je 0x40d23b
cmp ecx, 0xfc
je 0x40d263
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40d1a3
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0040ada0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040a710
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40d1d7
mov eax, edi
push eax
call fcn.0040a710
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4168e0
push edi
call fcn.0040ef10
add esp, 0x10
push edi
call fcn.0040a710
push dword [esi + 0x418584]
mov ebx, eax
call fcn.0040a710
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040abc0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040ada0
push edi
push ebx
call fcn.0040adb0
push 0x4168c0
push ebx
call fcn.0040adb0
push dword [esi + 0x418584]
push ebx
call fcn.0040adb0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040ee08
add esp, 0x2c
jmp 0x40d263
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x418584]
push dword [esi]
call fcn.0040a710
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040e7f8
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40ee08
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x418d08], ebx
push esi
push edi
jne 0x40ee88
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40eec3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x418d08], eax
je 0x40eec3
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x418d0c], eax
call esi
cmp dword [0x418b24], 2
mov dword [0x418d10], eax
jne 0x40ee88
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x418d18], eax
je 0x40ee88
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x418d14], eax
mov eax, dword [0x418d14]
test eax, eax
je 0x40eecd
call eax
test eax, eax
je 0x40eeb4
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x418d18]
test eax, eax
je 0x40eeb4
test byte [ebp - 8], 1
jne 0x40eecd
cmp dword [0x418b30], 4
jb 0x40eec7
or byte [ebp + 0x12], 0x20
jmp 0x40eeec
xor eax, eax
jmp 0x40eefc
or byte [ebp + 0x12], 4
jmp 0x40eeec
mov eax, dword [0x418d0c]
test eax, eax
je 0x40eeec
call eax
mov ebx, eax
test ebx, ebx
je 0x40eeec
mov eax, dword [0x418d10]
test eax, eax
je 0x40eeec
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x418d08]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f54e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40f57c
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40f583
cmp ebx, dword [eax + 4]
jae 0x40f583
xor eax, eax
jmp 0x40f773
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40f594
xor eax, eax
inc eax
jmp 0x40f772
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40f5aa
cmp ecx, edx
jae 0x40f6ef
cmp dword [eax + 4], 0
je 0x40f5b3
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40f59b
cmp dword [ebp + 8], 0
je 0x40f5d5
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40f6ef
cmp eax, esi
jae 0x40f6ef
mov eax, dword [0x418d20]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40f5fa
cmp dword [esi*4 + 0x418d28], edi
je 0x40f6f3
inc esi
cmp esi, eax
jl 0x40f5e8
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40f76f
cmp dword [ebp - 8], 0x1000000
jne 0x40f76f
test byte [ebp - 0xc], 0xcc
je 0x40f678
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40f76f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40f76f
cmp word [eax + 0x18], 0x10b
jne 0x40f76f
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40f76f
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40f678
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40f678
test byte [ecx + 0x27], 0x80
jne 0x40f6ef
push 1
push 0x418d68
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40f58c
mov ecx, dword [0x418d20]
test ecx, ecx
mov edx, ecx
jle 0x40f6ac
lea eax, [ecx*4 + 0x418d24]
cmp dword [eax], edi
je 0x40f6ac
dec edx
sub eax, 4
test edx, edx
jg 0x40f6a0
test edx, edx
jne 0x40f6dd
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40f6b9
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40f6d1
lea eax, [edx*4 + 0x418d28]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40f6bf
cmp ecx, 0x10
jge 0x40f6dd
inc ecx
mov dword [0x418d20], ecx
push 0
push 0x418d68
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40f58c
xor eax, eax
jmp 0x40f772
test esi, esi
jle 0x40f58c
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x418d68
call ebx
test eax, eax
jne 0x40f58c
cmp dword [esi*4 + 0x418d28], edi
je 0x40f749
mov eax, dword [0x418d20]
lea esi, [eax - 1]
test esi, esi
jl 0x40f737
cmp dword [esi*4 + 0x418d28], edi
je 0x40f733
dec esi
jns 0x40f727
test esi, esi
jge 0x40f747
cmp eax, 0x10
jge 0x40f742
inc eax
mov dword [0x418d20], eax
lea esi, [eax - 1]
jmp 0x40f749
je 0x40f761
xor ecx, ecx
test esi, esi
jl 0x40f761
lea eax, [ecx*4 + 0x418d28]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40f74f
push 0
push 0x418d68
call ebx
jmp 0x40f58c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410768
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0040abc0
mov eax, dword [0x4186f0]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x418fe0]
mov dword [ebp - 4], eax
jae 0x4108ab
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x419000]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x4108ab
push 1
push esi
push ebx
call fcn.0040cc08
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x4108b5
push 2
push esi
push ebx
call fcn.0040cc08
add esp, 0xc
cmp eax, 0xffffffff
je 0x4108b5
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x410855
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0040a530
push 0x8000
push ebx
call fcn.00410e6b
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x410814
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.0040b9cf
add esp, 0xc
cmp eax, 0xffffffff
je 0x410832
sub edi, eax
test edi, edi
jg 0x410809
jmp 0x410848
cmp dword [0x418b1c], 5
jne 0x410845
mov dword [0x418b18], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.00410e6b
pop ecx
pop ecx
jmp 0x410895
jge 0x410895
push 0
push dword [ebp + 0xc]
push ebx
call fcn.0040cc08
push ebx
call fcn.0040e994
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x410895
mov dword [0x418b18], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x418b1c], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.0040cc08
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4108b8
mov dword [0x418b18], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0040e7f8
leave
ret
Function at 0x410ad0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040abc0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x410b6b
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x418b24]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x410b6b
cmp eax, 1
je 0x410b8c
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x410b6b
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x410b38
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x410b67
xor eax, eax
inc eax
jmp 0x410bab
cmp edi, eax
jae 0x410b6f
xor eax, eax
jmp 0x410bab
cmp eax, esi
jae 0x410b76
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x418b24]
jmp 0x410b8f
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x432072
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x6fbd7310
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x432060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4320d2
nop
mov ebx, 0x42f314
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
mov esi, 0x7a3c000f
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4320c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219