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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov eax, edx
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 4], ecx
lea esp, [esp]
xor eax, dword [edi + ebx*4]
inc ebx
mov ecx, eax
mov dword [ebp - 8], eax
shr ecx, 0x10
mov edx, eax
movzx ecx, cl
shr edx, 0x18
mov esi, dword [edi + ecx*4 + 0x448]
mov ecx, eax
add esi, dword [edi + edx*4 + 0x48]
mov edx, dword [ebp - 8]
shr ecx, 8
movzx ecx, cl
movzx eax, al
xor esi, dword [edi + ecx*4 + 0x848]
add esi, dword [edi + eax*4 + 0xc48]
xor esi, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, esi
cmp ebx, 0x10
jl 0x4f0ea0
mov ecx, dword [edi + 0x44]
xor ecx, edx
mov edx, dword [ebp - 0xc]
mov dword [edx], ecx
mov ecx, dword [edi + 0x40]
xor ecx, eax
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4f0f10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, edx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], ebx
movzx eax, byte [ebx]
movzx ecx, byte [ebx + 1]
movzx edx, byte [ebx + 4]
shl eax, 8
or eax, ecx
shl edx, 8
movzx ecx, byte [ebx + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebx + 3]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebx + 5]
or edx, ecx
movzx ecx, byte [ebx + 6]
shl edx, 8
or edx, ecx
movzx ecx, byte [ebx + 7]
shl edx, 8
mov ebx, 0x11
or edx, ecx
mov dword [ebp - 4], edx
xor eax, dword [edi + ebx*4]
dec ebx
mov ecx, eax
mov dword [ebp - 8], eax
shr ecx, 0x10
mov edx, eax
movzx ecx, cl
shr edx, 0x18
mov esi, dword [edi + ecx*4 + 0x448]
mov ecx, eax
add esi, dword [edi + edx*4 + 0x48]
shr ecx, 8
movzx ecx, cl
movzx eax, al
xor esi, dword [edi + ecx*4 + 0x848]
add esi, dword [edi + eax*4 + 0xc48]
xor esi, dword [ebp - 4]
mov eax, esi
mov esi, dword [ebp - 8]
mov dword [ebp - 4], esi
cmp ebx, 1
jg 0x4f0f65
mov ecx, dword [edi]
mov edx, dword [edi + 4]
xor ecx, esi
mov esi, dword [ebp - 0xc]
xor edx, eax
mov eax, ecx
sar eax, 0x18
pop edi
mov byte [esi], al
mov eax, ecx
sar eax, 0x10
mov byte [esi + 1], al
mov eax, ecx
sar eax, 8
mov byte [esi + 2], al
mov eax, edx
sar eax, 0x18
mov byte [esi + 4], al
mov eax, edx
sar eax, 0x10
mov byte [esi + 5], al
mov eax, edx
sar eax, 8
mov byte [esi + 3], cl
mov byte [esi + 6], al
mov byte [esi + 7], dl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4fb6e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], edx
lea edx, [ecx + 0x44b2]
mov dword [ebp - 0x10], ecx
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x18], eax
or esi, 0xffffffff
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x20], edx
jmp 0x4fb710
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0x1c
mov dword [ebp - 0x1c], edx
shr esi, 0xe
mov eax, edi
sub eax, ebx
xor edx, edx
div esi
movzx eax, byte [eax + ecx + 0x4b2]
mov edx, eax
mov dword [ebp + 0xc], eax
movsx eax, word [ecx + edx*2 + 0x2ae]
imul eax, esi
add ebx, eax
movsx eax, word [ecx + edx*2 + 0x2c]
mov ecx, dword [ebp - 4]
imul esi, eax
lea eax, [esi + ebx]
xor eax, ebx
cmp eax, 0xffffff
ja 0x4fb77e
lea ecx, [ecx]
movzx eax, byte [ecx]
inc ecx
shl ebx, 8
shl esi, 8
shl edi, 8
or edi, eax
lea eax, [esi + ebx]
xor eax, ebx
cmp eax, 0xffffff
jbe 0x4fb760
mov dword [ebp - 4], ecx
cmp esi, 0xffff
ja 0x4fb7ab
movzx eax, byte [ecx]
mov esi, ebx
not esi
shl edi, 8
inc esi
shl ebx, 8
shl esi, 8
or edi, eax
and esi, 0xffff00
inc ecx
cmp esi, 0xffff
jbe 0x4fb786
mov dword [ebp - 4], ecx
cmp edx, 0xfe
jb 0x4fb84b
mov ecx, dword [ebp + 0xc]
mov eax, edi
sub ecx, 0xfe
neg ecx
sbb ecx, ecx
sub eax, ebx
and ecx, 5
xor edx, edx
add ecx, 8
shr esi, cl
div esi
mov ecx, esi
mov edx, eax
imul ecx, edx
add ebx, ecx
cmp dword [ebp + 0xc], 0xfe
jne 0x4fb7ec
add edx, 0xfe
mov ecx, dword [ebp - 4]
lea eax, [esi + ebx]
xor eax, ebx
cmp eax, 0xffffff
ja 0x4fb81e
jmp 0x4fb800
movzx eax, byte [ecx]
inc ecx
shl ebx, 8
shl esi, 8
shl edi, 8
or edi, eax
lea eax, [esi + ebx]
xor eax, ebx
cmp eax, 0xffffff
jbe 0x4fb800
mov dword [ebp - 4], ecx
cmp esi, 0xffff
ja 0x4fb84b
movzx eax, byte [ecx]
mov esi, ebx
not esi
shl edi, 8
inc esi
shl ebx, 8
shl esi, 8
or edi, eax
and esi, 0xffff00
inc ecx
cmp esi, 0xffff
jbe 0x4fb826
mov dword [ebp - 4], ecx
test dl, 1
je 0x4fb860
movsx eax, dx
inc eax
cdq
sub eax, edx
sar eax, 1
neg eax
movzx eax, ax
jmp 0x4fb865
shr edx, 1
movzx eax, dx
mov edx, dword [ebp - 8]
mov dword [ebp + 0xc], eax
cmp edx, 0x1c
jge 0x4fb8a2
mov ecx, dword [ebp - 0xc]
add ecx, edx
cmp word [ebp + 8], 0
je 0x4fb887
mov edx, dword [ebp - 0x10]
add ax, word [edx + ecx*2 + 0x22e]
mov edx, dword [ebp - 0x10]
mov word [edx + ecx*2 + 0x22e], ax
mov edx, dword [ebp - 8]
test edx, edx
je 0x4fb8a2
test ax, ax
je 0x4fb8a2
add dword [ebp - 0x14], 0x20
mov ecx, dword [ebp - 0x1c]
inc edx
mov dword [ebp - 8], edx
mov word [ecx], ax
add ecx, 2
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x14]
jl 0x4fb721
add dword [ebp - 0x18], edx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
add eax, 0x20
add edx, 0x800
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x20], edx
cmp eax, 0x40
jl 0x4fb710
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4fb8f0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx eax, byte [edx + 2]
push ebx
push esi
movzx esi, byte [edx + 3]
shl esi, 8
or esi, eax
movzx eax, byte [edx + 1]
shl esi, 8
or esi, eax
movzx eax, byte [edx]
push edi
mov edi, ecx
shl esi, 8
or esi, eax
mov dword [edi], esi
movzx ecx, byte [edx + 7]
movzx eax, byte [edx + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
mov dword [edi + 4], ecx
movzx ecx, byte [edx + 9]
movzx eax, byte [edx + 8]
shl cx, 8
or cx, ax
mov word [edi + 8], cx
movzx eax, cx
movzx ecx, byte [edx + 0xb]
shl cx, 8
mov dword [ebp - 0x14], eax
movzx eax, byte [edx + 0xa]
or cx, ax
mov word [edi + 0xa], cx
movzx eax, cx
movzx ecx, byte [edx + 0xd]
shl cx, 8
mov dword [ebp - 8], eax
movzx eax, byte [edx + 0xc]
or cx, ax
mov word [edi + 0xc], cx
movzx eax, cx
movzx ecx, byte [edx + 0xf]
shl cx, 8
mov dword [ebp - 0x10], eax
movzx eax, byte [edx + 0xe]
or cx, ax
mov word [edi + 0xe], cx
movzx eax, cx
movzx ecx, byte [edx + 0x13]
mov dword [ebp - 0xc], eax
movzx eax, byte [edx + 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x10]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x10], ecx
movzx ebx, byte [edx + 0x17]
movzx eax, byte [edx + 0x16]
shl ebx, 8
or ebx, eax
mov dword [ebp - 0x18], ecx
movzx eax, byte [edx + 0x15]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 0x14]
shl ebx, 8
or ebx, eax
mov dword [edi + 0x14], ebx
movzx ecx, byte [edx + 0x1b]
movzx eax, byte [edx + 0x1a]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x19]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x18]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x18], ecx
movzx eax, byte [edx + 0x1f]
shl eax, 8
mov dword [ebp - 4], eax
movzx eax, byte [edx + 0x1e]
or dword [ebp - 4], eax
movzx eax, byte [edx + 0x1d]
shl dword [ebp - 4], 8
or dword [ebp - 4], eax
shl dword [ebp - 4], 8
movzx eax, byte [edx + 0x1c]
mov edx, dword [ebp - 4]
or edx, eax
lea eax, [esi - 0x20]
mov dword [ebp - 4], edx
mov dword [edi + 0x1c], edx
cmp eax, 0x4dfe0
ja 0x4fba91
xor edx, edx
mov eax, ebx
mov esi, 0x4e000
div esi
test edx, edx
jne 0x4fba91
mov eax, 0x400
cmp word [ebp - 8], ax
ja 0x4fba91
mov eax, dword [ebp - 0xc]
movzx eax, ax
inc eax
cmp eax, 0x400
ja 0x4fba91
mov eax, dword [ebp - 0x10]
cmp word [ebp - 0x14], ax
ja 0x4fba91
cmp dword [ebp - 0x18], ebx
ja 0x4fba91
test ecx, ecx
je 0x4fba82
cmp ecx, 1
jne 0x4fba91
cmp dword [ebp - 4], 0
jne 0x4fba91
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50378b
Capabilities:
Parse pe header

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

Function at 0x50f6a6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0051efe0
mov eax, dword [0x5ff004]
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.005114a5
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x50f6e8
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x50f844
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0051ef30
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 + 0x600e18]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00515d29
mov ecx, dword [esi*4 + 0x600e18]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x50f83d
cmp eax, dword [ecx + edi + 0x24]
jne 0x50f83d
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x50f83d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00515d29
add esp, 0x14
test edx, edx
jl 0x50f83d
jg 0x50f7b3
test eax, eax
jb 0x50f83d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x50f83d
jl 0x50f7cd
cmp dword [ebp - 0x1008], eax
ja 0x50f83d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x50f7eb
test ebx, ebx
je 0x50f824
cmp ecx, edi
jae 0x50f824
mov al, byte [ecx]
cmp al, 0xd
jne 0x50f805
lea eax, [edi - 1]
cmp ecx, eax
jae 0x50f811
cmp byte [ecx + 1], 0xa
jne 0x50f811
inc ecx
jmp 0x50f811
movzx eax, al
movsx eax, byte [eax + 0x5ff210]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x50f7eb
cmp edx, ebx
jne 0x50f7eb
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x50f842
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00502eb4
leave
ret

Function at 0x5120fa
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5233b8
push 0x5233b0
push str.FlsAlloc
push 0x1f
call fcn.00511fb9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x51212e
push dword [ebp + 8]
mov ecx, esi
call dword [0x5212b4]
call esi
jmp 0x512134
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x512178
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5233c8
push 0x5233c0
push str.FlsGetValue
push 0x21
call fcn.00511fb9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5121af
push dword [ebp + 8]
mov ecx, esi
call dword [0x5212b4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x5121b7
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5233d0
push 0x5233c8
push str.FlsSetValue
push 0x22
call fcn.00511fb9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5121f1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5212b4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x515da5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x600e18]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x515de5
cmp byte [ebx], 0xa
jne 0x515de5
or byte [edi + eax + 0x28], 4
jmp 0x515dea
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x515ee9
mov dl, byte [eax]
cmp dl, 0x1a
je 0x515ecc
inc eax
cmp dl, 0xd
je 0x515e16
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x515e3c
cmp eax, ecx
jae 0x515e4a
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x515dfe
jmp 0x515ee9
push 0
lea eax, [ebp - 0x10]
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 0x515ec7
cmp dword [ebp - 0x10], 0
je 0x515ec7
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x600e18]
test byte [eax + edi + 0x28], 0x48
je 0x515ea1
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x515e8c
mov byte [esi], dl
jmp 0x515e9d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x600e18]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x515ee9
cmp byte [ebp - 1], 0xa
jne 0x515eb0
cmp esi, ebx
jne 0x515eb0
mov byte [esi], 0xa
jmp 0x515ee8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00515d47
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x515ee9
mov byte [esi], 0xd
jmp 0x515ee8
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x600e18]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x515ee6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x515ee9
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x515ef2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x600e18]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x515f38
cmp word [ebx], dx
jne 0x515f38
or byte [eax + edi + 0x28], 4
jmp 0x515f3d
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x5160a0
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x516080
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x515f7e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x515fb4
cmp eax, edx
jae 0x515fc2
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x515f59
jmp 0x5160a0
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x51607b
cmp dword [ebp - 0x18], 0
je 0x51607b
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x600e18]
test byte [eax + edi + 0x28], 0x48
je 0x516051
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x516015
mov word [esi], cx
jmp 0x51604c
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x600e18]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x600e18]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x600e18]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x5160a0
pop eax
cmp word [ebp - 4], ax
jne 0x516061
cmp esi, ebx
jne 0x516061
mov word [esi], ax
jmp 0x51609d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00515d47
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x5160a0
push 0xd
pop eax
jmp 0x51605c
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x600e18]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x51609a
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x5160a0
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x518003
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 0x5180a0
push ebx
push esi
call fcn.00517fcc
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.00517f60
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x51804d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x51809f
push edi
push eax
call fcn.005130d6
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x51806d
call fcn.00511e4c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x51809e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00517f60
add esp, 0x20
test eax, eax
jne 0x51808c
push edi
call fcn.00511e4c
jmp 0x518094
push ebx
call fcn.00511e4c
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 0x51cce3
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0051cc5f
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x51ce52
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x51ce52
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x51ce07
jg 0x51cd3f
test eax, eax
je 0x51cdfd
push 1
push 0x1000
call fcn.00511def
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x51cd62
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x51cdf4
push 0x8000
push ebx
call fcn.00508ef5
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x51cd8b
jg 0x51cd86
cmp ecx, 0x1000
jb 0x51cd8b
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0051517d
add esp, 0x10
cmp eax, 0xffffffff
je 0x51cdd0
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 0x51cd86
jl 0x51cdb7
test ecx, ecx
jne 0x51cd78
push dword [ebp - 0xc]
push ebx
call fcn.00508ef5
push esi
call fcn.00511e4c
add esp, 0xc
xor ebx, ebx
jmp 0x51ce60
cmp byte [edi + 0x24], 0
je 0x51cde7
cmp dword [edi + 0x20], 5
jne 0x51cde7
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x51cdf2
mov ebx, dword [edi + 0x18]
jmp 0x51cdf4
xor ebx, ebx
push esi
call fcn.00511e4c
pop ecx
jmp 0x51ce60
test ecx, ecx
jg 0x51cdc9
jl 0x51ce07
test eax, eax
jae 0x51cdc9
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00515d47
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x51ce27
cmp byte [edi + 0x1c], 0
je 0x51cdc9
jmp 0x51ce58
push ebx
call fcn.00514813
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x51cdc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x51ce60
cmp byte [edi + 0x1c], 0
je 0x51ce5d
mov ebx, dword [edi + 0x18]
jmp 0x51ce60
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00515d47
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x51ecd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x51ecfd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x51ecfd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x6eed78e5
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x43f32fe7
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x408944
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push 0x4085d8
pop esi
mov edi, 0x95930829
call fcn.0040897b
inc edx
mov edi, edi
xor dword [ecx], esi
add edi, 0xbf8e863c
mov edx, 0xe2ecece9
inc ecx
sub edi, 0xd721819e
mov edi, 0xf9979ed6
cmp ecx, eax
jne fcn.00408944
add edx, 0xe54de8a3
ret