joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49ba40
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049ba50

Function at 0x49bcd0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x49bcdc
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.0049bcf0

Function at 0x49f47b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0049f457
pop esi
leave
ret 8

Function at 0x4a0020
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x4a0041
jl 0x4a0038
test edi, edi
jne 0x4a0041
xor eax, eax
xor edx, edx
jmp 0x4a0102
cmp dword [ebx + 0x38], 0
je 0x4a0056
push eax
push edi
push dword [ebp + 8]
call fcn.0043e040
jmp 0x4a0102
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4a009d
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4a009d
cmp eax, edi
jb 0x4a0077
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.004a3000
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x4a00a3
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4a00f7
mov ecx, ebx
call fcn.0049f920
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4a00e2
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.004bcc2b
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x4a00f7
jmp 0x4a00b5
test edx, edx
je 0x4a00f7
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.004bcc2b
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x4a1386
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004a1180
mov eax, dword [0x51c100]
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.004bda0a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4bd42e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4bd58a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004dd690
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 + 0x5217e0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004bfb4c
mov ecx, dword [esi*4 + 0x5217e0]
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 0x4bd583
cmp eax, dword [edi + ecx + 0x24]
jne 0x4bd583
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 0x4bd583
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004bfb4c
add esp, 0x14
test edx, edx
jl 0x4bd583
jg 0x4bd4f9
test eax, eax
jb 0x4bd583
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4bd583
jl 0x4bd513
cmp dword [ebp - 0x1008], eax
ja 0x4bd583
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4bd531
test ebx, ebx
je 0x4bd56a
cmp ecx, edi
jae 0x4bd56a
mov al, byte [ecx]
cmp al, 0xd
jne 0x4bd54b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4bd557
cmp byte [ecx + 1], 0xa
jne 0x4bd557
inc ecx
jmp 0x4bd557
movzx eax, al
movsx eax, byte [eax + 0x51c298]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4bd531
cmp edx, ebx
jne 0x4bd531
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4bd588
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004a057b
leave
ret
Function at 0x4bfbc8
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 + 0x5217e0]
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 0x4bfc08
cmp byte [ebx], 0xa
jne 0x4bfc08
or byte [eax + edi + 0x28], 4
jmp 0x4bfc0d
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4bfd0b
mov al, byte [edx]
cmp al, 0x1a
je 0x4bfced
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4bfc3c
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4bfc61
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4bfc6b
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 0x4bfc1e
jmp 0x4bfd0b
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 0x4bfce8
cmp dword [ebp - 0xc], 0
je 0x4bfce8
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x5217e0]
test byte [eax + edi + 0x28], 0x48
je 0x4bfcc2
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4bfcad
mov byte [esi], dl
jmp 0x4bfcbe
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5217e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4bfd0b
cmp byte [ebp - 1], 0xa
jne 0x4bfcd1
cmp esi, ebx
jne 0x4bfcd1
mov byte [esi], 0xa
jmp 0x4bfd0a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004bfb6a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4bfd0b
mov byte [esi], 0xd
jmp 0x4bfd0a
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x5217e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4bfd07
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4bfd0b
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4bfd14
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 + 0x5217e0]
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 0x4bfd57
cmp word [esi], dx
jne 0x4bfd57
or byte [edi + eax + 0x28], 4
jmp 0x4bfd5c
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 0x4bfeaf
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 0x4bfe8f
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4bfd9e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4bfdd4
cmp eax, edx
jae 0x4bfde0
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 0x4bfd76
jmp 0x4bfeaf
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 0x4bfe8b
cmp dword [ebp - 0x14], 0
je 0x4bfe8b
mov eax, dword [ebx*4 + 0x5217e0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4bfe63
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4bfe2c
mov word [esi], cx
jmp 0x4bfe5f
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x5217e0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x5217e0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x5217e0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4bfeaf
pop ebx
cmp word [ebp - 4], bx
jne 0x4bfe74
cmp esi, dword [ebp + 0xc]
jne 0x4bfe74
mov word [esi], bx
jmp 0x4bfeac
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004bfb6a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4bfeaf
push 0xd
jmp 0x4bfea8
mov ecx, dword [ebx*4 + 0x5217e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4bfea6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4bfeaf
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 0x4c5246
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4f3d50
push 0x4f3d48
push str.FlsAlloc
push 0x1e
call fcn.004c5073
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4c527a
push dword [ebp + 8]
mov ecx, esi
call dword [0x4e933c]
call esi
jmp 0x4c5280
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4c52c4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4f3d60
push 0x4f3d58
push str.FlsGetValue
push 0x20
call fcn.004c5073
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4c52fb
push dword [ebp + 8]
mov ecx, esi
call dword [0x4e933c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4ca6f2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ca563

Function at 0x4cc7c4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x51c100]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4cc80f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004cc963
test al, al
jne 0x4cc809
sub edx, 2
cmp edx, edi
jne 0x4cc7ef
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4cc831
lea eax, [edi + 2]
cmp edx, eax
je 0x4cc831
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004cc710
add esp, 0x10
jmp 0x4cc92b
push esi
lea ecx, [ebp - 0x255]
call fcn.004cc963
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4cc874
push dword [ebp - 0x25c]
jmp 0x4cc821
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4cc8b1
cmp word [ebp - 0x226], 0
je 0x4cc8d2
cmp word [ebp - 0x226], ax
jne 0x4cc8b1
cmp word [ebp - 0x224], 0
je 0x4cc8d2
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004cc710
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4cc91e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4cc88b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4cc906
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4cc92b
push 0x4cc540
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004bacd0
add esp, 0x10
jmp 0x4cc8fb
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a057b
leave
ret
Function at 0x4ccb27
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4ccb38
pop esi
ret
push ebx
push edi
push esi
call fcn.004ccaf0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004c363a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4ccb60
push ebx
push esi
push edi
call fcn.004a3000
add esp, 0xc
push 0
call fcn.004c3688
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4ccf24
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ccb75
Function at 0x4ccfca
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.004ccf46
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4cd142
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4cd142
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4cd0f1
jg 0x4cd023
test eax, eax
je 0x4cd0e7
push 1
push 0x1000
call fcn.004c4d73
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4cd049
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4cd0de
push 0x8000
push ebx
call fcn.004be6fb
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 0x4cd075
jg 0x4cd070
cmp ecx, 0x1000
jb 0x4cd075
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004c0e2e
add esp, 0x10
cmp eax, 0xffffffff
je 0x4cd0ba
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 0x4cd070
jl 0x4cd0a1
test ecx, ecx
jne 0x4cd062
push dword [ebp - 0xc]
push ebx
call fcn.004be6fb
push esi
call fcn.004c3688
add esp, 0xc
xor edi, edi
jmp 0x4cd153
cmp byte [edi + 0x24], 0
je 0x4cd0d1
cmp dword [edi + 0x20], 5
jne 0x4cd0d1
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4cd0dc
mov edi, dword [edi + 0x18]
jmp 0x4cd0de
xor edi, edi
push esi
call fcn.004c3688
pop ecx
jmp 0x4cd153
test ecx, ecx
jg 0x4cd0b3
jl 0x4cd0f1
test eax, eax
jae 0x4cd0b3
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004bfb6a
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4cd114
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4cd0b3
jmp 0x4cd14b
push ebx
call fcn.004bdf89
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4cd0b3
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 0x4cd153
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4cd150
mov edi, dword [edi + 0x18]
jmp 0x4cd153
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004bfb6a
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d2620
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x10], edx
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
movzx esi, word [edx]
mov ebx, ecx
mov edi, dword [ebp + 0xc]
mov eax, esi
xor eax, 0x7f0
shr esi, 4
shr eax, 4
mov dword [ebp - 8], ebx
mov ecx, dword [edi + esi*4]
mov eax, dword [edi + eax*4]
mov dword [ebp - 4], eax
movzx eax, word [edx + 0x10]
mov esi, dword [ebp - 4]
shr eax, 4
mov dword [ebp - 0x18], ecx
mov eax, dword [edi + eax*4]
add eax, esi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4d26ac
mov esi, edx
mov dword [ebp - 0xc], eax
add ebx, 4
push edi
push ebx
push ecx
push esi
call fcn.004d6390
push edi
lea eax, [ebx + 0x20]
push eax
push dword [ebp - 0x14]
lea eax, [esi + 0x10]
push eax
call fcn.004d6390
mov ecx, dword [ebp - 0x18]
add esp, 0x20
add ebx, 0x440
add esi, 0x20
sub dword [ebp - 0xc], 1
jne 0x4d2674
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 4]
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
cmp ebx, 0x10
jbe 0x4d2789
mov eax, dword [ebp - 8]
add ebx, 0xfffffff1
add eax, 0x44
shr ebx, 1
mov dword [ebp - 0x14], eax
movzx eax, word [edx + 0x10]
xor eax, 0x7f0
shr eax, 4
add esi, dword [edi + eax*4]
lea eax, [ebx + 0x180]
mov dword [ebp - 4], esi
lea eax, [edx + eax*2]
dec ebx
sub eax, 2
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], ebx
lea eax, [ebx + 0x80]
mov ebx, dword [ebp + 8]
mov edx, eax
shr eax, 1
and edx, 1
neg edx
shr edx, 4
movzx ecx, word [ebx + eax*2 + 0x200]
and edx, 0x7f
shr ecx, 4
xor ecx, edx
add esi, dword [edi + ecx*4]
cmp eax, 2
jae 0x4d26f3
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
movzx ecx, word [eax]
mov eax, ecx
xor ecx, 0x7f0
shr eax, 4
shr ecx, 4
mov eax, dword [edi + eax*4]
add eax, esi
mov dword [edx + ebx*8], eax
mov eax, dword [edi + ecx*4]
add eax, esi
mov esi, dword [ebp - 4]
mov dword [edx + ebx*8 + 4], eax
mov eax, dword [ebp - 0xc]
test ebx, ebx
jne 0x4d26e0
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
lea ebx, [eax*4 - 0x40]
mov eax, dword [ebp - 0x10]
cmp eax, 1
jbe 0x4d2789
lea esi, [ecx + 0x484]
lea edi, [eax - 1]
nop dword [eax]
push ebx
push edx
push esi
call fcn.004a3000
mov edx, dword [ebp - 0x14]
add esp, 0xc
add esi, 0x440
sub edi, 1
jne 0x4d2770
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4d49e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
or ecx, 0x100
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
shr ecx, 1
and esi, 1
neg esi
shr esi, 4
movzx edx, word [ebx + ecx*2]
and esi, 0x7f
shr edx, 4
xor edx, esi
add eax, dword [edi + edx*4]
cmp ecx, 2
jae 0x4d49f7
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4d4a20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, 0x100
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x10]
or ecx, esi
add edi, edi
mov edx, esi
and edx, edi
mov eax, ecx
add edx, esi
shr eax, 8
add eax, edx
mov edx, dword [ebp + 8]
movzx edx, word [edx + eax*2]
mov eax, ecx
shr eax, 7
add ecx, ecx
and eax, 1
shr edx, 4
neg eax
shr eax, 4
and eax, 0x7f
xor edx, eax
mov eax, dword [ebp + 0x14]
add ebx, dword [eax + edx*4]
mov edx, ecx
xor edx, edi
not edx
and esi, edx
cmp ecx, 0x10000
jb 0x4d4a35
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
Function at 0x4d5b30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
movaps xmm0, xmmword [0x4fb070]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x400
push edi
mov edi, 0xc
mov eax, dword [esi + 0x78]
lea edx, [esi + 0x1e54]
mov dword [esi + 0x70], eax
lea eax, [esi + 0x201c]
mov dword [esi + 0x2c], 0
mov dword [esi + 0x44], 1
mov dword [esi + 0x40], 1
mov dword [esi + 0x3c], 1
mov dword [esi + 0x38], 1
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
movups xmmword [esi + 0x1e1c], xmm0
movups xmmword [esi + 0x1e2c], xmm0
nop word [eax + eax]
mov ecx, 0x10
nop word [eax + eax]
mov word [eax - 0x180], bx
mov word [eax], bx
add eax, 2
sub ecx, 1
jne 0x4d5bf0
mov word [edx - 0x18], bx
mov word [edx], bx
mov word [edx + 0x18], bx
mov word [edx + 0x30], bx
add edx, 2
sub edi, 1
jne 0x4d5be0
mov eax, 0x4000400
lea edi, [esi + 0x219c]
mov ecx, 0x80
rep stosd dword es:[edi], eax
lea edi, [esi + 0x239c]
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x98]
mov eax, 0x300
add ecx, dword [esi + 0x94]
shl eax, cl
test eax, eax
je 0x4d5c62
mov edi, dword [esi + 0x50]
mov ecx, eax
shr ecx, 1
mov eax, 0x4000400
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov eax, 0x4000400
lea edi, [esi + 0x249c]
mov ecx, 0x80
rep stosd dword es:[edi], eax
lea edi, [esi + 0x269c]
mov ecx, 0x80
rep stosd dword es:[edi], eax
mov ecx, 0x80
lea edi, [esi + 0x289c]
rep stosd dword es:[edi], eax
lea edi, [esi + 0x2a9c]
mov ecx, 0x80
rep stosd dword es:[edi], eax
mov dword [esi + 0x1c], 0
lea eax, [esi + 0xbca4]
mov dword [esi + 0x18], 0
mov ecx, 0x800
mov dword [eax], 0x40000000
lea eax, [eax + 0x20]
sub ecx, 1
jne 0x4d5cb4
mov dword [esi + 0x34], ecx
mov eax, 1
mov ecx, dword [esi + 0x9c]
mov edx, 0x100
shl eax, cl
mov ecx, dword [esi + 0x98]
dec eax
mov dword [esi + 0x4c], eax
mov eax, edx
shl eax, cl
mov ecx, dword [esi + 0x94]
shr edx, cl
sub eax, edx
pop edi
mov dword [esi + 0x48], eax
pop esi
pop ebx
pop ebp
ret

Function at 0x4d6390
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor ebx, ebx
mov edx, dword [ebp + 8]
mov edi, ebx
shr edi, 1
mov esi, ebx
shr esi, 2
mov eax, edi
and eax, 1
neg eax
shr eax, 4
movzx ecx, word [edx + esi*2 + 4]
and eax, 0x7f
shr ecx, 4
neg esi
xor ecx, eax
and esi, 0x7f0
movzx eax, word [edx + 2]
xor esi, eax
mov eax, dword [ebp + 0x14]
shr esi, 4
mov edx, dword [eax + ecx*4]
add edx, dword [eax + esi*4]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
add edx, dword [ebp + 0xc]
movzx ecx, word [eax + edi*2 + 8]
mov edi, dword [ebp + 0x10]
mov eax, ecx
shr eax, 4
xor ecx, 0x7f0
shr ecx, 4
mov eax, dword [esi + eax*4]
add eax, edx
mov dword [edi + ebx*4], eax
mov eax, dword [esi + ecx*4]
add eax, edx
mov dword [edi + ebx*4 + 4], eax
add ebx, 2
cmp ebx, 8
jb 0x4d6398
pop edi
pop esi
pop ebx
pop ebp
ret