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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x6108b0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4aeaa5
cmp word [esi], dx
jne 0x4aeaa5
or byte [edi + eax + 0x28], 4
jmp 0x4aeaaa
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4aebfd
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4aebdd
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4aeaec
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4aeb22
cmp eax, edx
jae 0x4aeb2e
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4aeac4
jmp 0x4aebfd
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4aebd9
cmp dword [ebp - 0x14], 0
je 0x4aebd9
mov eax, dword [ebx*4 + 0x6108b0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4aebb1
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4aeb7a
mov word [esi], cx
jmp 0x4aebad
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x6108b0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x6108b0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x6108b0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4aebfd
pop ebx
cmp word [ebp - 4], bx
jne 0x4aebc2
cmp esi, dword [ebp + 0xc]
jne 0x4aebc2
mov word [esi], bx
jmp 0x4aebfa
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401ac8
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4aebfd
push 0xd
jmp 0x4aebf6
mov ecx, dword [ebx*4 + 0x6108b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4aebf4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4aebfd
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4051c6
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42ca5d
push eax
mov dword fs:[0], esp
sub esp, 0x844
push esi
push edi
xor edi, edi
cmp dword [0x241b84c], 0x400
jne 0x405296
lea eax, [esp + 0x2c]
call fcn.00405d77
push edi
push edi
mov dword [esp + 0x85c], edi
call fcn.00407b5c
push 0x38
push edi
push 0x40376c
push 0x431918
call fcn.00407f44
push edi
push edi
push edi
call fcn.004083f9
add esp, 0x24
push edi
call fcn.004084cf
mov dword [esp], 0x7fc
lea eax, [esp + 0x50]
push edi
push eax
mov dword [esp + 0x54], 0x30
call fcn.0040d050
add esp, 0xc
lea eax, [esp + 0x848]
push eax
lea eax, [esp + 0x4c]
push eax
push 0xa60
push 0x241b850
call fcn.00407d28
add esp, 0x10
lea eax, [esp + 0x14]
push eax
call fcn.00405d9c
lea eax, [esp + 0x14]
push eax
call fcn.00405dd8
or dword [esp + 0x854], 0xffffffff
lea esi, [esp + 0x2c]
call fcn.00405d94
mov eax, dword [0x430a04]
mov dword [0x241b84c], eax
mov eax, dword [0x4309dc]
mov dword [0x241c2b0], eax
call fcn.00404ee7
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
push edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp esi, 0x2b259d
jle 0x4052d6
cmp dword [esp + 0x10], 0x785074d5
jne 0x4052df
inc esi
cmp esi, 0x6dcc4e
jl 0x4052b1
mov eax, dword [0x23fd56c]
mov dword [0x241b840], eax
call eax
mov ecx, dword [esp + 0x84c]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x408d59
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42f618]
jne 0x408d63
repz ret
jmp fcn.0041119c
Function at 0x416913
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040d13c
and dword [ebp - 4], 0
cmp dword [0x431844], 0
mov ebx, eax
jne 0x4169c4
push 0x4034c4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x416a75
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4034b8
push edi
call esi
test eax, eax
je 0x416a75
push eax
call fcn.0040d0ca
mov dword [esp], 0x4034a8
push edi
mov dword [0x431844], eax
call esi
push eax
call fcn.0040d0ca
mov dword [esp], 0x403494
push edi
mov dword [0x431848], eax
call esi
push eax
call fcn.0040d0ca
mov dword [esp], 0x403478
push edi
mov dword [0x43184c], eax
call esi
push eax
call fcn.0040d0ca
pop ecx
mov dword [0x431854], eax
test eax, eax
je 0x4169c4
push 0x403460
push edi
call esi
push eax
call fcn.0040d0ca
pop ecx
mov dword [0x431850], eax
mov eax, dword [0x431850]
cmp eax, ebx
je 0x416a1c
cmp dword [0x431854], ebx
je 0x416a1c
push eax
call fcn.0040d145
push dword [0x431854]
mov esi, eax
call fcn.0040d145
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x416a1c
test edi, edi
je 0x416a1c
call esi
test eax, eax
je 0x416a13
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x416a13
test byte [ebp - 0xc], 1
jne 0x416a1c
or dword [ebp + 0x10], 0x200000
jmp 0x416a55
mov eax, dword [0x431848]
cmp eax, ebx
je 0x416a55
push eax
call fcn.0040d145
pop ecx
test eax, eax
je 0x416a55
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x416a55
mov eax, dword [0x43184c]
cmp eax, ebx
je 0x416a55
push eax
call fcn.0040d145
pop ecx
test eax, eax
je 0x416a55
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x431844]
call fcn.0040d145
pop ecx
test eax, eax
je 0x416a75
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x416a77
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
mov eax, section..rdata
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x778a33be
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x8920faf
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219

Function at 0x7d8058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.007d81a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x7d807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7d806a
add dl, dl
jne 0x7d8089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7d80dc
xor eax, eax
add dl, dl
jne 0x7d8096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7d817d
add dl, dl
jne 0x7d80a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7d80b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7d80bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7d80c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x7d80d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x7d8075
mov eax, 1
add dl, dl
jne 0x7d80ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7d80f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7d80e1
sub eax, ebx
mov ebx, 1
jne 0x7d8128
mov ecx, 1
add dl, dl
jne 0x7d810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x7d8119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7d8105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7d8075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x7d813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x7d814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7d8136
cmp eax, 0x7d00
jae 0x7d816d
cmp eax, 0x500
jb 0x7d8168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7d8075
cmp eax, 0x7f
ja 0x7d8170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7d8075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x7d819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x7d8075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401b60
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401b9f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401b9f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401b9f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401b9f
cmp dword [ecx + 0x74], 0xe
jbe 0x401b9f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4094f8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x409595
push ebx
push esi
call fcn.004094c1
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040940a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x409542
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x409594
push edi
push eax
call fcn.00409f15
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x409562
call fcn.00405c32
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x409593
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040940a
add esp, 0x20
test eax, eax
jne 0x409581
push edi
call fcn.00405c32
jmp 0x409589
push ebx
call fcn.00405c32
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40a7d1
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4121e8
push 0x4121e0
push str.FlsAlloc
push 0x1e
call fcn.0040a6ef
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a805
push dword [ebp + 8]
mov ecx, esi
call dword [0x410144]
call esi
jmp 0x40a80b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40a84f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4121f8
push 0x4121f0
push str.FlsGetValue
push 0x20
call fcn.0040a6ef
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a886
push dword [ebp + 8]
mov ecx, esi
call dword [0x410144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40baf7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x42e6c0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40bb37
cmp byte [ebx], 0xa
jne 0x40bb37
or byte [eax + edi + 0x28], 4
jmp 0x40bb3c
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x40bc3a
mov al, byte [edx]
cmp al, 0x1a
je 0x40bc1c
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x40bb6b
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x40bb90
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x40bb9a
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x40bb4d
jmp 0x40bc3a
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40bc17
cmp dword [ebp - 0xc], 0
je 0x40bc17
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x42e6c0]
test byte [eax + edi + 0x28], 0x48
je 0x40bbf1
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x40bbdc
mov byte [esi], dl
jmp 0x40bbed
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x42e6c0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x40bc3a
cmp byte [ebp - 1], 0xa
jne 0x40bc00
cmp esi, ebx
jne 0x40bc00
mov byte [esi], 0xa
jmp 0x40bc39
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040b8f0
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x40bc3a
mov byte [esi], 0xd
jmp 0x40bc39
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x42e6c0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x40bc36
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x40bc3a
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40bc43
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x42e6c0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40bc86
cmp word [esi], dx
jne 0x40bc86
or byte [edi + eax + 0x28], 4
jmp 0x40bc8b
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x40bdde
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x40bdbe
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x40bccd
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x40bd03
cmp eax, edx
jae 0x40bd0f
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x40bca5
jmp 0x40bdde
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40bdba
cmp dword [ebp - 0x14], 0
je 0x40bdba
mov eax, dword [ebx*4 + 0x42e6c0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x40bd92
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x40bd5b
mov word [esi], cx
jmp 0x40bd8e
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x42e6c0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x42e6c0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x42e6c0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x40bdde
pop ebx
cmp word [ebp - 4], bx
jne 0x40bda3
cmp esi, dword [ebp + 0xc]
jne 0x40bda3
mov word [esi], bx
jmp 0x40bddb
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040b8f0
add esp, 0x10
cmp word [ebp - 4], bx
je 0x40bdde
push 0xd
jmp 0x40bdd7
mov ecx, dword [ebx*4 + 0x42e6c0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x40bdd5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x40bdde
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40ddd5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040dd51
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x40df4d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x40df4d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x40defc
jg 0x40de2e
test eax, eax
je 0x40def2
push 1
push 0x1000
call fcn.00407ff7
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x40de54
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x40dee9
push 0x8000
push ebx
call fcn.00405321
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x40de80
jg 0x40de7b
cmp ecx, 0x1000
jb 0x40de80
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004075bd
add esp, 0x10
cmp eax, 0xffffffff
je 0x40dec5
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x40de7b
jl 0x40deac
test ecx, ecx
jne 0x40de6d
push dword [ebp - 0xc]
push ebx
call fcn.00405321
push esi
call fcn.00405c32
add esp, 0xc
xor edi, edi
jmp 0x40df5e
cmp byte [edi + 0x24], 0
je 0x40dedc
cmp dword [edi + 0x20], 5
jne 0x40dedc
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x40dee7
mov edi, dword [edi + 0x18]
jmp 0x40dee9
xor edi, edi
push esi
call fcn.00405c32
pop ecx
jmp 0x40df5e
test ecx, ecx
jg 0x40debe
jl 0x40defc
test eax, eax
jae 0x40debe
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040b8f0
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x40df1f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x40debe
jmp 0x40df56
push ebx
call fcn.00409a33
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x40debe
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x40df5e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x40df5b
mov edi, dword [edi + 0x18]
jmp 0x40df5e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0040b8f0
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40fd10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40fd3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40fd3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
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
mov ebx, 0x40c7d0
nop
mov ecx, 0x784a5a56
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
mov ecx, 0xdde674b
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219