joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4abcc0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa6000]
push edi
jmp 0x4abcda
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4abce1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4abcd0
mov eax, 1
add ebx, ebx
jne 0x4abcf3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4abce8
jne 0x4abd04
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4abce8
xor ecx, ecx
sub eax, 3
jb 0x4abd18
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4abd8a
mov ebp, eax
add ebx, ebx
jne 0x4abd23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4abd30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4abd54
inc ecx
add ebx, ebx
jne 0x4abd40
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4abd35
jne 0x4abd51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4abd35
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4abd74
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4abd65
jmp 0x4abcd6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4abd74
add edi, ecx
jmp 0x4abcd6
pop esi
mov edi, esi
mov ecx, 0x6600
jmp 0x4abdc5
mov al, byte [edi]
inc edi
cmp al, 0x80
jb 0x4abda5
cmp al, 0x8f
ja 0x4abda5
cmp byte [edi - 2], 0xf
je 0x4abdab
sub al, 0xe8
cmp al, 1
ja 0x4abdcf
cmp ecx, 4
jb 0x4abdd4
mov eax, dword [edi]
sub al, 1
jne 0x4abdcf
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
sub ecx, 4
stosd dword es:[edi], eax
sub ecx, 1
jb 0x4abdd4
mov al, byte [edi]
inc edi
jmp 0x4abda5
sub ecx, 1
jae 0x4abd94
lea edi, [esi + 0xa9000]
mov eax, dword [edi]
or eax, eax
je 0x4abe25
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x10a5a0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x10a658]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4abdda
mov ecx, edi
jns 0x4abe09
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x10a660]
or eax, eax
je 0x4abe1f
mov dword [ebx], eax
add ebx, 4
jmp 0x4abdf7
call dword [esi + 0x10a65c]
mov ebp, dword [esi + 0x10a664]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4abe59
sub esp, 0xffffff80
jmp 0x4034a5
Function at 0x404b10
Capabilities:
Enumerate files on windows

Disassembly:
call fcn.00404b20
test eax, eax
je 0x4056b0
ret
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x458b3d
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x477f40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [0x479734]
mov ecx, 0x479734
push dword [esi + 4]
push 0x479734
call fcn.00401bf0
mov dword [esi + 4], esi
mov eax, 0x7fffffff
mov dword [esi], esi
mov dword [esi + 8], esi
mov ecx, dword [0x475010]
sub eax, ecx
mov dword [0x479738], 0
cmp eax, 0x11
jb 0x4058cf
cmp dword [0x475014], 0xf
mov eax, section..data
push 0x11
cmova eax, dword [section..data]
push str._userlibs_.decls
push ecx
push eax
push section..data
push dword [ebp - 0x184]
lea ecx, [ebp - 0x28]
call fcn.00402730
cmp dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x180]
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ecx, dword [ebp - 0x14]
mov esi, eax
cmp ecx, 0xf
jbe 0x40579b
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405791
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4058d4
push ecx
push edx
call fcn.00435b53
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp esi, 0xffffffff
jne 0x4057c0
xor eax, eax
jmp 0x4058b4
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x154]
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x40], xmm0
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4057e0
sub eax, edx
lea ecx, [ebp - 0x40]
push eax
lea eax, [ebp - 0x154]
push eax
call fcn.004015f0
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
call fcn.004058e0
mov ecx, dword [ebp - 0x2c]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0xf
jbe 0x405846
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40583c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4058d4
push ecx
push edx
call fcn.00435b53
add esp, 8
test edi, edi
jne 0x405862
lea eax, [ebp - 0x180]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4057c0
jmp 0x405881
push edi
lea eax, [ebp - 0x154]
push eax
push str.Error_in_userlib__s____s
push 0x479760
call fcn.00407cc0
add esp, 0x10
mov edi, 0x479760
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [0x479734]
mov ecx, 0x479734
push dword [esi + 4]
push 0x479734
call fcn.00401bf0
mov dword [esi + 4], esi
mov eax, edi
mov dword [esi], esi
mov dword [esi + 8], esi
mov dword [0x479738], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00435db7
mov esp, ebp
pop ebp
ret
call fcn.00404120
call fcn.0043a88f
int3
Function at 0x4368af
Capabilities:
Parse pe header

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

Function at 0x4481fb
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x465138
push 0x465130
push str.FlsAlloc
push 0x1e
call fcn.00448068
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44822f
push dword [ebp + 8]
mov ecx, esi
call dword [0x45e14c]
call esi
jmp 0x448235
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x448279
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x465148
push 0x465140
push str.FlsGetValue
push 0x20
call fcn.00448068
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4482b0
push dword [ebp + 8]
mov ecx, esi
call dword [0x45e14c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x44995a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004497cb

Function at 0x449d54
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00436b10
mov eax, dword [0x477f40]
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.0044882e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x449d96
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x449ef2
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00458060
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 + 0x47a298]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0044ad31
mov ecx, dword [esi*4 + 0x47a298]
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 0x449eeb
cmp eax, dword [edi + ecx + 0x24]
jne 0x449eeb
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 0x449eeb
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0044ad31
add esp, 0x14
test edx, edx
jl 0x449eeb
jg 0x449e61
test eax, eax
jb 0x449eeb
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x449eeb
jl 0x449e7b
cmp dword [ebp - 0x1008], eax
ja 0x449eeb
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x449e99
test ebx, ebx
je 0x449ed2
cmp ecx, edi
jae 0x449ed2
mov al, byte [ecx]
cmp al, 0xd
jne 0x449eb3
lea eax, [edi - 1]
cmp ecx, eax
jae 0x449ebf
cmp byte [ecx + 1], 0xa
jne 0x449ebf
inc ecx
jmp 0x449ebf
movzx eax, al
movsx eax, byte [eax + 0x478208]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x449e99
cmp edx, ebx
jne 0x449e99
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x449ef0
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00435db7
leave
ret
Function at 0x44a1e9
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 + 0x47a298]
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 0x44a229
cmp byte [ebx], 0xa
jne 0x44a229
or byte [eax + edi + 0x28], 4
jmp 0x44a22e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x44a32c
mov al, byte [edx]
cmp al, 0x1a
je 0x44a30e
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x44a25d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x44a282
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x44a28c
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 0x44a23f
jmp 0x44a32c
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 0x44a309
cmp dword [ebp - 0xc], 0
je 0x44a309
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47a298]
test byte [eax + edi + 0x28], 0x48
je 0x44a2e3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x44a2ce
mov byte [esi], dl
jmp 0x44a2df
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47a298]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x44a32c
cmp byte [ebp - 1], 0xa
jne 0x44a2f2
cmp esi, ebx
jne 0x44a2f2
mov byte [esi], 0xa
jmp 0x44a32b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0044ad4f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x44a32c
mov byte [esi], 0xd
jmp 0x44a32b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47a298]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x44a328
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x44a32c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x44a335
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 + 0x47a298]
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 0x44a378
cmp word [esi], dx
jne 0x44a378
or byte [edi + eax + 0x28], 4
jmp 0x44a37d
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 0x44a4b6
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 0x44a496
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x44a3bf
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x44a3f5
cmp eax, edx
jae 0x44a401
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 0x44a397
jmp 0x44a4b6
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 0x44a492
cmp dword [ebp - 0x14], 0
je 0x44a492
mov eax, dword [ebx*4 + 0x47a298]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x44a46a
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x44a4b0
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47a298]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x47a298]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47a298]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x44a4b3
pop ebx
cmp word [ebp - 4], bx
jne 0x44a47b
cmp esi, dword [ebp + 0xc]
jne 0x44a47b
mov word [esi], bx
jmp 0x44a4b3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0044ad4f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x44a4b6
push 0xd
jmp 0x44a4af
mov ecx, dword [ebx*4 + 0x47a298]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x44a4ad
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x44a4b6
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 0x451072
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 0x45110f
push ebx
push esi
call fcn.0045103b
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.0044fe1c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4510bc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x45110e
push edi
push eax
call fcn.0044af2e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4510dc
call fcn.00447bdb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x45110d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0044fe1c
add esp, 0x20
test eax, eax
jne 0x4510fb
push edi
call fcn.00447bdb
jmp 0x451103
push ebx
call fcn.00447bdb
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 0x457c42
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.00457bbe
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x457dba
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x457dba
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x457d69
jg 0x457c9b
test eax, eax
je 0x457d5f
push 1
push 0x1000
call fcn.00447d6a
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x457cc1
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x457d56
push 0x8000
push ebx
call fcn.0044598e
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 0x457ced
jg 0x457ce8
cmp ecx, 0x1000
jb 0x457ced
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004495cb
add esp, 0x10
cmp eax, 0xffffffff
je 0x457d32
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 0x457ce8
jl 0x457d19
test ecx, ecx
jne 0x457cda
push dword [ebp - 0xc]
push ebx
call fcn.0044598e
push esi
call fcn.00447bdb
add esp, 0xc
xor edi, edi
jmp 0x457dcb
cmp byte [edi + 0x24], 0
je 0x457d49
cmp dword [edi + 0x20], 5
jne 0x457d49
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x457d54
mov edi, dword [edi + 0x18]
jmp 0x457d56
xor edi, edi
push esi
call fcn.00447bdb
pop ecx
jmp 0x457dcb
test ecx, ecx
jg 0x457d2b
jl 0x457d69
test eax, eax
jae 0x457d2b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0044ad4f
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x457d8c
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x457d2b
jmp 0x457dc3
push ebx
call fcn.00451ae1
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x457d2b
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 0x457dcb
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x457dc8
mov edi, dword [edi + 0x18]
jmp 0x457dcb
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0044ad4f
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x457f40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x457f6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x457f6d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x44d585
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, ecx
shr edi, 0x10
and ecx, 0xffff
cmp ebx, 1
jne 0x44d5d1
mov eax, dword [ebp + 0xc]
movzx edx, byte [eax]
add ecx, edx
cmp ecx, 0xfff1
jb 0x44d5b6
sub ecx, 0xfff1
add edi, ecx
cmp edi, 0xfff1
jb 0x44d5c6
sub edi, 0xfff1
mov eax, edi
shl eax, 0x10
pop edi
or eax, ecx
pop ebx
pop ebp
ret
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x44d5e1
lea eax, [esi + 1]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp ebx, 0x10
jae 0x44d620
test ebx, ebx
je 0x44d5f5
movzx eax, byte [esi]
add ecx, eax
inc esi
add edi, ecx
dec ebx
jne 0x44d5ea
cmp ecx, 0xfff1
jb 0x44d603
sub ecx, 0xfff1
mov eax, 0x80078071
mul edi
shr edx, 0xf
mov eax, edx
shl eax, 4
sub eax, edx
add eax, edi
pop esi
shl eax, 0x10
pop edi
or eax, ecx
pop ebx
pop ebp
ret
cmp ebx, 0x15b0
jb 0x44d70b
mov eax, 0x5e6ea9af
mul ebx
shr edx, 0xb
mov dword [ebp + 8], edx
jmp 0x44d645
Function at 0x4ac2a5
Capabilities:
Encode data using xor

Disassembly:
fnstcw word [eax]
sbb byte [ebx - 0x5b], bl
pop ebx
sub byte [edi], bl
jne 0x4ac2e0
aaa
push esp
mov al, byte [0x855418db]
add dword [ecx - 0x4c6aea60], esp
adc byte [esi], bh
pop ecx
int3
call 0x5f1fbe45
pop edx
enter 0xffffffffffffc0ed, 0x2f
loop 0x4ac2e8
shr byte [edi], 0xe2
cld
sbb eax, 0x848004f1
mov bl, ch
mov ah, 8
sal bh, 1
pushal
adc ah, byte [ecx - 0x73fee6b0]
add eax, 0xec48dabc
shr esp, 1
sub al, 0x41
sal byte [esp + eax], 1
invalid

Function at 0x4e25c5
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, ecx
shr edi, 0x10
and ecx, 0xffff
cmp ebx, 1
jne 0x4e2611
mov eax, dword [ebp + 0xc]
movzx edx, byte [eax]
add ecx, edx
cmp ecx, 0xfff1
jb 0x4e25f6
sub ecx, 0xfff1
add edi, ecx
cmp edi, 0xfff1
jb 0x4e2606
sub edi, 0xfff1
mov eax, edi
shl eax, 0x10
pop edi
or eax, ecx
pop ebx
pop ebp
ret
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x4e2621
lea eax, [esi + 1]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp ebx, 0x10
jae 0x4e2660
test ebx, ebx
je 0x4e2635
movzx eax, byte [esi]
add ecx, eax
inc esi
add edi, ecx
dec ebx
jne 0x4e262a
cmp ecx, 0xfff1
jb 0x4e2643
sub ecx, 0xfff1
mov eax, 0x80078071
mul edi
shr edx, 0xf
mov eax, edx
shl eax, 4
sub eax, edx
add eax, edi
pop esi
shl eax, 0x10
pop edi
or eax, ecx
pop ebx
pop ebp
ret
cmp ebx, 0x15b0
jb 0x4e274b
mov eax, 0x5e6ea9af
mul ebx
shr edx, 0xb
mov dword [ebp + 8], edx
jmp 0x4e2685
Function at 0x54c385
Capabilities:
Encode data using xor

Disassembly:
aas
pop esi
jp 0x54c3e4
inc ecx
imul ebx, dword [edx + 0x71], 0xffffffb1
sub dword [edx], edx
pop ebp
mov bl, 0x1a
xchg ebp, eax
sbb ebp, esi
cmp eax, dword [edx + edi*4 - 0x453f58dc]
adc byte [ebx + 0x4441c65], bl
movsb byte es:[edi], byte [esi]
mov esi, 0x39359a7e
xor eax, 0x915a7660
lcall 0x5a76, 0x60353935
xchg ecx, eax
movsd dword es:[edi], dword [esi]
ja 0x54c412
fsubr dword [0x426bdaba]
xchg byte [eax + ecx*4 - 0x30bdf859], bh
cmpsb byte [esi], byte es:[edi]
das
jp 0x54c42e
cmpsd dword [esi], dword es:[edi]
pop es
inc edx
iretd
cmpsd dword [esi], dword es:[edi]
add byte [ebx + 9], ch
dec ebx
js 0x54c3ba
or ch, bh
cwde
sbb esp, dword [edx]
aaa
or ebx, esp
jmp 0x54c3de
lcall 0x301a, 0x508bbca6
and eax, 0xd7df7b8d
xor byte [0xd7df7b8d], ah
pushal
jns 0x54c3f7
and dword [edx*4 - 0x343c3b03], 0xfffffffa
iretd
out 0x88, al
jo 0x54c3a6
xchg byte [eax - 0x12], al
xchg ecx, eax
dec esi
push esp
push ebp
dec edi
mov dl, byte [edi + 0x72a7d4a]
int 0x40
cmp ebp, esp
sbb bh, bl
retf
mov edx, ebx
cli
invalid
cmpsd dword [esi], dword es:[edi]
test al, 0x65
add byte [ebp + 0x3d], 0xf2
dec edi
xchg esp, eax
sbb esi, dword [esi]
sbb dl, byte [esi - 0x42]
and dword [ebp + 0x6b868810], 0xffffff8d
dec edi
xlatb
test dl, cl
cdq
xor byte [ebx - 0x626a8fd0], bl
insd dword es:[edi], dx
push ebp
cwde
jg 0x54c44e
dec ebx
xchg edi, eax
shr ebx, 1
pop ss
loopne 0x54c45f
cmc
mov cl, al
leave
and al, byte [ecx + 0x6d20a793]
movsd dword es:[edi], dword [esi]
xchg byte [eax - 0x56436a18], bh
sbb eax, 0x57e01948
xchg ebp, eax
mov esp, 0x19481da9
loopne 0x54c4be
add dword [edi - 0x2d33dc70], ebp
movsb byte es:[edi], byte [esi]
aam 0xac
sahf
salc
in eax, 0x65
fsub dword [ecx + 0x6e]
mov eax, 0x60834852
in eax, dx
sbb eax, 0x6c224e09
jecxz 0x54c425
add ebx, dword [edx - 0x1b]
xor byte [edi], al
and byte [0x2c13a8b5], al
sti
xchg esi, eax
imul ebx, eax, 0xffffffc7
in al, dx
in al, 0xd4
mov bh, 0xa4
sbb bh, al
mov ebx, 0x5bc3e7c1
lcall 0x6879, 0x9ce20fa8
and ecx, dword [edx + ebp*8]
invalid
pop ds
sti
fcmovnbe st(0), st(5)
xor eax, 0x14b47cc4
jnp 0x54c4db
mov esi, 0x38fa0497
cli
aam 0xe1
invalid
add byte [edi + 1], al
lcall 0xbc54, 0x3eb56a43
dec ebx
mov byte [edx + 0x35149f05], dh
stosb byte es:[edi], al
sahf
sbb cl, byte [edx]
sub eax, 0xd484c6dc
mov ah, 0xa0
hlt