joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cb6c0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
cmp dword [eax + 0x28], 0
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], ecx
je 0x4cb6e9
cmp dword [edi + 0x426c], 0
je 0x4cb85d
mov edi, dword [edi + 0x426c]
lea ebx, [ecx + 0x70]
mov esi, dword [ebp + 0x14]
mov ecx, 4
inc edi
mov dword [esp + 0x10], ecx
add esi, 0x20
mov eax, dword [esi]
or eax, dword [esi + 4]
je 0x4cb71b
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
mov ecx, dword [esp + 0x10]
cmp edi, dword [eax + 0x18]
cmovbe edi, dword [eax + 0x18]
add esi, 0x40
add ebx, 0x4640
sub ecx, 1
mov dword [esp + 0x10], ecx
jne 0x4cb702
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], edi
cmp edi, dword [eax + 0x426c]
jbe 0x4cb85d
mov ecx, dword [ebp + 0x14]
mov edx, dword [esp + 0x18]
add ecx, 8
add edx, 0x70
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov edi, dword [ebp + 0x10]
mov esi, ecx
mov ebx, edx
mov dword [esp + 0x10], 4
push dword [edi + 0x426c]
mov eax, dword [ebx]
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebx
call dword [eax + 8]
mov edx, dword [esp + 0x20]
lea esi, [esi + 0x40]
add ebx, 0x4640
movsx eax, word [edx]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x50d664]
mulss xmm0, dword [0x50d47c]
movss dword [esi - 0x48], xmm0
movsx eax, word [edx + 2]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x50d664]
mulss xmm0, dword [0x50d47c]
movss dword [esi - 0x44], xmm0
movsx eax, byte [edx + 4]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x50d5c8]
movss dword [esi - 0x40], xmm0
movsx eax, byte [edx + 5]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x50d5c8]
movss dword [esi - 0x3c], xmm0
movzx eax, byte [edx + 6]
mov dword [esi - 0x38], eax
mov eax, dword [edx + 7]
mov ecx, dword [edx + 0xb]
mov dword [esi - 0x30], eax
mov dword [esi - 0x2c], ecx
mov eax, dword [edx + 0xf]
mov ecx, dword [edx + 0x13]
mov dword [esi - 0x28], eax
mov dword [esi - 0x24], ecx
movzx eax, byte [edx + 0x17]
and eax, 0xf
mov dword [esi - 0x20], eax
movzx eax, byte [edx + 0x17]
shr eax, 4
sub dword [esp + 0x10], 1
mov dword [esi - 0x1c], eax
jne 0x4cb764
push dword [ebp + 0x18]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
push edi
call fcn.004baef0
mov eax, dword [ebp + 0x10]
add esp, 8
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
cmp dword [eax + 0x426c], edi
jb 0x4cb755
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4cdad0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push 0x475
add eax, 8
mov dword [ebp - 4], edx
push 0
push eax
call fcn.004d0d20
mov ecx, dword [ebp + 8]
add esp, 0xc
inc dword [esi + 0x10]
xor edi, edi
mov eax, dword [esi + 0x10]
mov dword [ecx], 0x36696873
lea esi, [ecx + 0x40d]
mov dword [ecx + 4], eax
nop dword [eax + eax]
mov eax, dword [ebx]
mov ecx, ebx
push edi
call dword [eax + 4]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
inc edi
lea esi, [esi + 0x1c]
movups xmm0, xmmword [eax]
movups xmmword [esi - 0x1c], xmm0
movq xmm0, qword [eax + 0x10]
mov eax, dword [eax + 0x18]
movq qword [esi - 0xc], xmm0
mov dword [esi - 4], eax
cmp edi, 4
jb 0x4cdb20
mov eax, dword [ebx]
mov ecx, ebx
push dword [ebp - 4]
call dword [eax + 4]
mov esi, eax
mov dword [ebp - 4], esi
mov bl, byte [esi + 0x4294]
lea edi, [esi + 8]
cmp bl, 0x11
jb 0x4cdc02
push 0x4288
push dword [ebp - 8]
push edi
call fcn.004d21c0
add esp, 0xc
lea edx, [edi + 2]
xor ecx, ecx
mov ebx, 0x10a2
nop dword [eax + eax]
movzx eax, byte [edx - 2]
lea edx, [edx + 4]
add eax, ecx
imul eax, eax, 0x401
mov ecx, eax
shr ecx, 6
xor ecx, eax
movzx eax, byte [edx - 5]
add ecx, eax
imul eax, ecx, 0x401
mov ecx, eax
shr ecx, 6
xor ecx, eax
movzx eax, byte [edx - 4]
add ecx, eax
imul eax, ecx, 0x401
mov ecx, eax
shr ecx, 6
xor ecx, eax
movzx eax, byte [edx - 3]
add ecx, eax
imul ecx, ecx, 0x401
mov eax, ecx
shr eax, 6
xor ecx, eax
sub ebx, 1
jne 0x4cdb90
lea ecx, [ecx + ecx*8]
mov byte [esi + 0x4294], bl
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul eax, eax, 0x8001
xor bl, bl
mov dword [esi + 0x4290], eax
movzx eax, bl
add esi, 0x4290
shl eax, 0xa
add edi, eax
lea eax, [edi + 0x400]
cmp eax, esi
jae 0x4cdc20
lea esi, [edi + 0x400]
push 0x400
lea eax, [ebp - 0x408]
push 0
push eax
call fcn.004d0d20
add esp, 0xc
lea eax, [ebp - 0x408]
sub esi, edi
and esi, 0xfffffffc
push esi
push edi
push eax
call fcn.004d21c0
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x408]
mov edx, dword [ebp - 4]
add esp, 0xc
mov ecx, 0x100
lea edi, [eax + 8]
mov byte [eax + 0x40c], bl
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [edx + 0x4290]
inc bl
pop edi
pop esi
mov byte [edx + 0x4294], bl
mov dword [eax + 0x408], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4cfd5b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4cfd9a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4cfd9a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4cfd9a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4cfd9a
cmp dword [ecx + 0x74], 0xe
jbe 0x4cfd9a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4da90b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004ebe60
mov eax, dword [0x515040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004de5bd
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4da94d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4daaa9
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004ebdb0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x578fd0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004e0643
mov ecx, dword [esi*4 + 0x578fd0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4daaa2
cmp eax, dword [edi + ecx + 0x24]
jne 0x4daaa2
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4daaa2
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004e0643
add esp, 0x14
test edx, edx
jl 0x4daaa2
jg 0x4daa18
test eax, eax
jb 0x4daaa2
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4daaa2
jl 0x4daa32
cmp dword [ebp - 0x1008], eax
ja 0x4daaa2
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4daa50
test ebx, ebx
je 0x4daa89
cmp ecx, edi
jae 0x4daa89
mov al, byte [ecx]
cmp al, 0xd
jne 0x4daa6a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4daa76
cmp byte [ecx + 1], 0xa
jne 0x4daa76
inc ecx
jmp 0x4daa76
movzx eax, al
movsx eax, byte [eax + 0x515298]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4daa50
cmp edx, ebx
jne 0x4daa50
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4daaa7
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004cf01b
leave
ret

Function at 0x4df66a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4f4a20
push 0x4f4a18
push str.FlsAlloc
push 0x1e
call fcn.004df52b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4df69e
push dword [ebp + 8]
mov ecx, esi
call dword [0x4f2368]
call esi
jmp 0x4df6a4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4df6e8
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4f4a30
push 0x4f4a28
push str.FlsGetValue
push 0x20
call fcn.004df52b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4df71f
push dword [ebp + 8]
mov ecx, esi
call dword [0x4f2368]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4e06bf
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 + 0x578fd0]
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 0x4e06ff
cmp byte [ebx], 0xa
jne 0x4e06ff
or byte [eax + edi + 0x28], 4
jmp 0x4e0704
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4e0802
mov al, byte [edx]
cmp al, 0x1a
je 0x4e07e4
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4e0733
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4e0758
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4e0762
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 0x4e0715
jmp 0x4e0802
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 0x4e07df
cmp dword [ebp - 0xc], 0
je 0x4e07df
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x578fd0]
test byte [eax + edi + 0x28], 0x48
je 0x4e07b9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4e07a4
mov byte [esi], dl
jmp 0x4e07b5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x578fd0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4e0802
cmp byte [ebp - 1], 0xa
jne 0x4e07c8
cmp esi, ebx
jne 0x4e07c8
mov byte [esi], 0xa
jmp 0x4e0801
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004e0661
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4e0802
mov byte [esi], 0xd
jmp 0x4e0801
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x578fd0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4e07fe
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4e0802
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4e080b
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 + 0x578fd0]
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 0x4e084e
cmp word [esi], dx
jne 0x4e084e
or byte [edi + eax + 0x28], 4
jmp 0x4e0853
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 0x4e09a6
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 0x4e0986
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4e0895
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4e08cb
cmp eax, edx
jae 0x4e08d7
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 0x4e086d
jmp 0x4e09a6
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 0x4e0982
cmp dword [ebp - 0x14], 0
je 0x4e0982
mov eax, dword [ebx*4 + 0x578fd0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4e095a
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4e0923
mov word [esi], cx
jmp 0x4e0956
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x578fd0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x578fd0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x578fd0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4e09a6
pop ebx
cmp word [ebp - 4], bx
jne 0x4e096b
cmp esi, dword [ebp + 0xc]
jne 0x4e096b
mov word [esi], bx
jmp 0x4e09a3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004e0661
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4e09a6
push 0xd
jmp 0x4e099f
mov ecx, dword [ebx*4 + 0x578fd0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4e099d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4e09a6
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 0x4e11c7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004e1038
Function at 0x4e3f56
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 0x4e3ff3
push ebx
push esi
call fcn.004e3f1f
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.004e11d2
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4e3fa0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4e3ff2
push edi
push eax
call fcn.004dd3fa
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4e3fc0
call fcn.004dd3c0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4e3ff1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004e11d2
add esp, 0x20
test eax, eax
jne 0x4e3fdf
push edi
call fcn.004dd3c0
jmp 0x4e3fe7
push ebx
call fcn.004dd3c0
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 0x4e3ff6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4e4007
pop esi
ret
push ebx
push edi
push esi
call fcn.004e3f1f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004dd3fa
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4e402f
push ebx
push esi
push edi
call fcn.004d21c0
add esp, 0xc
push 0
call fcn.004dd3c0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4e43f3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004e4044
Function at 0x4e9af5
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.004e9a71
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4e9c6d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4e9c6d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4e9c1c
jg 0x4e9b4e
test eax, eax
je 0x4e9c12
push 1
push 0x1000
call fcn.004dee6f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4e9b74
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4e9c09
push 0x8000
push ebx
call fcn.004dc856
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 0x4e9ba0
jg 0x4e9b9b
cmp ecx, 0x1000
jb 0x4e9ba0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004e8609
add esp, 0x10
cmp eax, 0xffffffff
je 0x4e9be5
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 0x4e9b9b
jl 0x4e9bcc
test ecx, ecx
jne 0x4e9b8d
push dword [ebp - 0xc]
push ebx
call fcn.004dc856
push esi
call fcn.004dd3c0
add esp, 0xc
xor edi, edi
jmp 0x4e9c7e
cmp byte [edi + 0x24], 0
je 0x4e9bfc
cmp dword [edi + 0x20], 5
jne 0x4e9bfc
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4e9c07
mov edi, dword [edi + 0x18]
jmp 0x4e9c09
xor edi, edi
push esi
call fcn.004dd3c0
pop ecx
jmp 0x4e9c7e
test ecx, ecx
jg 0x4e9bde
jl 0x4e9c1c
test eax, eax
jae 0x4e9bde
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004e0661
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4e9c3f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4e9bde
jmp 0x4e9c76
push ebx
call fcn.004e03f0
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4e9bde
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 0x4e9c7e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4e9c7b
mov edi, dword [edi + 0x18]
jmp 0x4e9c7e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004e0661
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4ebb40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4ebb6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4ebb6d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1001dde
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0
push 0
push 0x1001def
push ecx
call fcn.01002996
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4013d9
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0xfa8]
mov eax, 0x1028
call fcn.0040a2d0
mov eax, dword [0x42a664]
xor eax, ebp
mov dword [ebp + 0xfa4], eax
push esi
push edi
mov edi, dword [ebp + 0xfb0]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40147d
push esi
call fcn.004043e7
test al, al
je 0x40147d
push esi
call fcn.004043ff
test al, al
jne 0x40147d
push 0x800
push edi
lea eax, [ebp - 0x60]
push eax
call fcn.00407081
lea eax, [ebp - 0x60]
push eax
call fcn.0040dd48
pop ecx
lea eax, [eax*2 + 2]
cmp eax, 0x1002
jae 0x401496
xor ecx, ecx
push 0x1e
mov word [ebp + eax - 0x60], cx
lea eax, [ebp - 0x80]
push ecx
push eax
call fcn.0040b230
add esp, 0xc
mov dword [ebp - 0x7c], 3
push 0x14
pop eax
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp + 0xfa4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040a2bd
lea esp, [ebp + 0xfa8]
pop ebp
ret 4
call fcn.0040a1e1
int3
Function at 0x403b1b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xc], 1
jne 0x403b34
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403ba7
mov ecx, esi
call fcn.00403c42
test al, al
je 0x403b6f
mov eax, 0x4e20
cmp dword [ebp + 0xc], eax
jbe 0x403b6f
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.00403b1b
jmp 0x403baa
cmp dword [esi + 0xc], 1
jne 0x403b84
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x403b84
xor eax, eax
jmp 0x403baa
cmp dword [esi + 0xc], 0
jne 0x403ba2
mov edi, 0x8000
cmp dword [ebp + 0xc], edi
jbe 0x403ba2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x403ba2
push edi
jmp 0x403b63
or eax, 0xffffffff
jmp 0x403baa
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x403c80
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x105c
call fcn.0040a2d0
mov eax, dword [0x42a664]
xor eax, esp
mov dword [esp + 0x1058], eax
push ebx
mov ebx, dword [esp + 0x1068]
push ebp
mov ebp, dword [esp + 0x1068]
push edi
mov edi, ecx
mov dword [esp + 0x18], ebp
and dword [edi + 0x1020], 0
cmp byte [edi + 0x1d], 0
jne 0x403cc5
test bl, 4
jne 0x403cc5
xor cl, cl
jmp 0x403cc7
mov cl, 1
mov eax, ebx
shr eax, 1
push esi
and al, 1
movzx esi, al
neg esi
sbb esi, esi
and esi, 0xc0000000
add esi, 0x80000000
test bl, 1
je 0x403cec
or esi, 0x40000000
shr ebx, 3
not ebx
and ebx, 1
test cl, cl
je 0x403cfb
or ebx, 2
xor eax, eax
lea ecx, [esp + 0x20]
cmp byte [edi + 0x15], al
setne al
dec eax
and eax, 0x8000000
mov dword [esp + 0x10], eax
call fcn.0040123f
cmp byte [edi + 0x1c], 0
je 0x403d22
or esi, 0x100
push 0
push dword [esp + 0x14]
push 3
push 0
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x403d9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x20]
push 0x800
push eax
push dword [esp + 0x24]
call fcn.0040520a
test al, al
je 0x403d8a
push 0
push dword [esp + 0x14]
lea eax, [esp + 0x28]
push 3
push 0
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x403d85
mov dword [esp + 0x14], eax
cmp ebp, 0xffffffff
jne 0x403d9b
cmp dword [esp + 0x14], 2
jne 0x403d9b
mov dword [edi + 0x1020], 1
cmp byte [edi + 0x1c], 0
pop esi
je 0x403dc1
cmp ebp, 0xffffffff
je 0x403dc1
or dword [esp + 0x10], 0xffffffff
lea eax, [esp + 0x10]
or dword [esp + 0x14], 0xffffffff
push 0
push eax
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileTime]
xor eax, eax
cmp ebp, 0xffffffff
mov byte [edi + 0x12], al
setne bl
mov dword [edi + 0xc], eax
mov byte [edi + 0x10], al
cmp ebp, 0xffffffff
je 0x403dec
push 0x800
push dword [esp + 0x1c]
lea ecx, [edi + 0x1e]
mov dword [edi + 4], ebp
push ecx
call fcn.00407081
mov ecx, dword [esp + 0x1064]
mov al, bl
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040a2bd
add esp, 0x105c
ret 8