joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449455
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.004493d1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4495cd
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4495cd
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x44957c
jg 0x4494ae
test eax, eax
je 0x449572
push 1
push 0x1000
call fcn.0043a908
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4494d4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x449569
push 0x8000
push ebx
call fcn.00438a9a
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 0x449500
jg 0x4494fb
cmp ecx, 0x1000
jb 0x449500
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0043e0c9
add esp, 0x10
cmp eax, 0xffffffff
je 0x449545
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 0x4494fb
jl 0x44952c
test ecx, ecx
jne 0x4494ed
push dword [ebp - 0xc]
push ebx
call fcn.00438a9a
push esi
call fcn.0043a965
add esp, 0xc
xor edi, edi
jmp 0x4495de
cmp byte [edi + 0x24], 0
je 0x44955c
cmp dword [edi + 0x20], 5
jne 0x44955c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x449567
mov edi, dword [edi + 0x18]
jmp 0x449569
xor edi, edi
push esi
call fcn.0043a965
pop ecx
jmp 0x4495de
test ecx, ecx
jg 0x44953e
jl 0x44957c
test eax, eax
jae 0x44953e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043f9bb
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x44959f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x44953e
jmp 0x4495d6
push ebx
call fcn.00442c0a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x44953e
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 0x4495de
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4495db
mov edi, dword [edi + 0x18]
jmp 0x4495de
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0043f9bb
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x44a930
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44a95d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44a95d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x364e66d5
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x68357db6
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x414ee0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x4c
mov eax, dword [0x4595e0]
mov ecx, dword [esp + 0x60]
xor edi, edi
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [ecx + 0x3c]
mov eax, dword [ecx + eax + 0x78]
add eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x20]
add eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x10]
mov dword [esp], 0
mov eax, dword [eax + 0x18]
mov dword [esp + 0x14], eax
mov eax, 0x77f1ae11
cmp eax, 0x5e336c90
jle 0x414f77
jmp 0x414fc0
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ebx
call fcn.00415170
mov eax, dword [esp + 0x18]
cmp dword [esp + 0xc], 0
mov edx, dword [esp + 0x2c]
mov eax, 0x67cbc463
mov ecx, 0xa5e30dce
cmove eax, ecx
mov dword [esp + 4], edx
nop word cs:[eax + eax]
nop
cmp eax, 0x5e336c90
jg 0x414fc0
cmp eax, 0xec67d645
jg 0x415020
cmp eax, 0x9740022a
je 0x41509b
cmp eax, 0xa5e30dce
jne 0x414f70
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp], eax
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
mov eax, 0x77f1ae11
cmp eax, 0x5e336c90
jle 0x414f77
nop word cs:[eax + eax]
nop
cmp eax, 0x77f1ae10
jle 0x415080
cmp eax, 0x7e29eef3
je 0x415104
cmp eax, 0x77f1ae11
jne 0x414f70
mov eax, dword [esp + 8]
mov dword [esp + 0x24], edi
mov edx, 0x9740022a
mov dword [esp + 0x1c], eax
mov eax, dword [esp]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
cmp ecx, eax
mov eax, 0x7e29eef3
cmovb eax, edx
cmp eax, 0x5e336c90
jle 0x414f77
jmp 0x414fc0
cmp eax, 0xec67d646
je 0x414f35
cmp eax, 0x1c2f3c8b
jne 0x414f70
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x60]
mov eax, dword [eax + 0x24]
mov edx, ecx
add eax, ecx
mov ecx, dword [esp + 0x20]
movzx eax, word [eax + ecx*2]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], 2
mov ecx, dword [ecx + 0x1c]
add ecx, edx
mov ebx, dword [ecx + eax*4]
mov esi, dword [esp + 0x1c]
mov eax, 0xec67d646
cmp eax, 0x5e336c90
jle 0x414f77
jmp 0x414fc0
cmp eax, 0x5e336c91
je 0x415121
cmp eax, 0x67cbc463
jne 0x414f70
jmp 0x415149
mov eax, dword [esp + 0x1c]
mov ebp, edi
lea edi, [esp + 0x30]
mov eax, dword [eax]
mov dword [esp + 0x18], edi
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x30], 0
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov ecx, edi
add eax, dword [esp + 0x60]
push eax
call fcn.0041b600
push 0x235
push edi
mov edi, ebp
call fcn.0040e1f0
add esp, 8
cmp eax, dword [esp + 0x64]
mov eax, 0x5e336c91
mov ecx, 0x1c2f3c8b
cmove eax, ecx
cmp eax, 0x5e336c90
jle 0x414f77
jmp 0x414fc0
mov ecx, dword [esp + 0x24]
mov eax, 0x67cbc463
mov dword [esp + 4], ecx
cmp eax, 0x5e336c90
jle 0x414f77
jmp 0x414fc0
mov esi, dword [esp + 0x1c]
mov dword [esp + 0xc], 0
mov eax, 0xec67d646
mov ebx, dword [esp + 0x24]
add esi, 4
cmp eax, 0x5e336c90
jle 0x414f77
jmp 0x414fc0
mov esi, dword [esp + 4]
mov ecx, dword [esp + 0x48]
add esi, dword [esp + 0x60]
xor ecx, esp
call fcn.0043a3d3
mov eax, esi
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43b5e9
Capabilities:
Parse pe header

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

Function at 0x440ab6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00448f20
mov eax, dword [0x4595e0]
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.00445538
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x440af8
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x440c54
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00448e70
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 + 0x45afe0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00448c9c
mov ecx, dword [esi*4 + 0x45afe0]
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 0x440c4d
cmp eax, dword [ecx + edi + 0x24]
jne 0x440c4d
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 0x440c4d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00448c9c
add esp, 0x14
test edx, edx
jl 0x440c4d
jg 0x440bc3
test eax, eax
jb 0x440c4d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x440c4d
jl 0x440bdd
cmp dword [ebp - 0x1008], eax
ja 0x440c4d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x440bfb
test ebx, ebx
je 0x440c34
cmp ecx, edi
jae 0x440c34
mov al, byte [ecx]
cmp al, 0xd
jne 0x440c15
lea eax, [edi - 1]
cmp ecx, eax
jae 0x440c21
cmp byte [ecx + 1], 0xa
jne 0x440c21
inc ecx
jmp 0x440c21
movzx eax, al
movsx eax, byte [eax + 0x459d60]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x440bfb
cmp edx, ebx
jne 0x440bfb
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x440c52
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0043a3d3
leave
ret

Function at 0x442190
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4421bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4421bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x442522
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x451ec0
push 0x451eb8
push str.FlsAlloc
push 0x1f
call fcn.00442805
mov esi, eax
add esp, 0x10
test esi, esi
je 0x442556
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x44255c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4425a0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x451ed0
push 0x451ec8
push str.FlsGetValue
push 0x21
call fcn.00442805
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4425d7
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4425df
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x451ed8
push 0x451ed0
push str.FlsSetValue
push 0x22
call fcn.00442805
mov esi, eax
add esp, 0x10
test esi, esi
je 0x442619
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x446eab
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 0x446f48
push ebx
push esi
call fcn.00446f4b
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.00446daf
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x446ef5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x446f47
push edi
push eax
call fcn.00444366
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x446f15
call fcn.004439bb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x446f46
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00446daf
add esp, 0x20
test eax, eax
jne 0x446f34
push edi
call fcn.004439bb
jmp 0x446f3c
push ebx
call fcn.004439bb
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 0x44875d
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 + 0x45afe0]
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 0x44879d
cmp byte [ebx], 0xa
jne 0x44879d
or byte [edi + eax + 0x28], 4
jmp 0x4487a2
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 0x4488a1
mov dl, byte [eax]
cmp dl, 0x1a
je 0x448884
inc eax
cmp dl, 0xd
je 0x4487ce
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4487f4
cmp eax, ecx
jae 0x448802
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 0x4487b6
jmp 0x4488a1
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 0x44887f
cmp dword [ebp - 0x10], 0
je 0x44887f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x45afe0]
test byte [eax + edi + 0x28], 0x48
je 0x448859
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x448844
mov byte [esi], dl
jmp 0x448855
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x45afe0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4488a1
cmp byte [ebp - 1], 0xa
jne 0x448868
cmp esi, ebx
jne 0x448868
mov byte [esi], 0xa
jmp 0x4488a0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00448c3e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4488a1
mov byte [esi], 0xd
jmp 0x4488a0
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x45afe0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x44889e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4488a1
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4488aa
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 + 0x45afe0]
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 0x4488f0
cmp word [ebx], dx
jne 0x4488f0
or byte [eax + edi + 0x28], 4
jmp 0x4488f5
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 0x448a58
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 0x448a38
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x448936
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x44896c
cmp eax, edx
jae 0x44897a
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 0x448911
jmp 0x448a58
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 0x448a33
cmp dword [ebp - 0x18], 0
je 0x448a33
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x45afe0]
test byte [eax + edi + 0x28], 0x48
je 0x448a09
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 0x4489cd
mov word [esi], cx
jmp 0x448a04
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x45afe0]
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 + 0x45afe0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x45afe0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x448a58
pop eax
cmp word [ebp - 4], ax
jne 0x448a19
cmp esi, ebx
jne 0x448a19
mov word [esi], ax
jmp 0x448a55
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00448c3e
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x448a58
push 0xd
pop eax
jmp 0x448a14
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x45afe0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x448a52
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x448a58
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 0x44e848
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.0044e9df
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x44e9b7
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x44e9b7
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x44e96c
jg 0x44e8a4
test eax, eax
je 0x44e962
push 1
push 0x1000
call fcn.0044421e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x44e8c7
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x44e959
push 0x8000
push ebx
call fcn.00440034
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x44e8f0
jg 0x44e8eb
cmp ecx, 0x1000
jb 0x44e8f0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00449695
add esp, 0x10
cmp eax, 0xffffffff
je 0x44e935
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 0x44e8eb
jl 0x44e91c
test ecx, ecx
jne 0x44e8dd
push dword [ebp - 0xc]
push ebx
call fcn.00440034
push esi
call fcn.004439bb
add esp, 0xc
xor ebx, ebx
jmp 0x44e9c5
cmp byte [edi + 0x24], 0
je 0x44e94c
cmp dword [edi + 0x20], 5
jne 0x44e94c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x44e957
mov ebx, dword [edi + 0x18]
jmp 0x44e959
xor ebx, ebx
push esi
call fcn.004439bb
pop ecx
jmp 0x44e9c5
test ecx, ecx
jg 0x44e92e
jl 0x44e96c
test eax, eax
jae 0x44e92e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00448c3e
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x44e98c
cmp byte [edi + 0x1c], 0
je 0x44e92e
jmp 0x44e9bd
push ebx
call fcn.0044730c
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x44e92e
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 0x44e9c5
cmp byte [edi + 0x1c], 0
je 0x44e9c2
mov ebx, dword [edi + 0x18]
jmp 0x44e9c5
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00448c3e
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406cfc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4378ac], 0
jne 0x406d3a
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406d10
mov dword [ecx*4 + 0x4378a8], eax
inc ecx
cmp ecx, 0x100
jl 0x406d0b
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406d67
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4378a8]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406d48
not eax
pop ebp
ret 0xc

Function at 0x406da5
Capabilities:
Hash data using murmur3

Disassembly:
mov eax, dword [esp + 4]
shr eax, 0xf
xor eax, dword [esp + 4]
imul eax, eax, 0x85ebca77
mov ecx, eax
shr ecx, 0xd
xor ecx, eax
imul ecx, ecx, 0xc2b2ae3d
mov eax, ecx
shr eax, 0x10
xor eax, ecx
ret

Function at 0x401a80
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x409008], 0x8088405
inc edx
mov dword [ebx + 0x409008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x406480
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x4064a1
mov eax, 0xff
call fcn.00401a80
xor byte [esi], al
inc esi
dec ebx
jne 0x406491
pop esi
pop ebx
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x3ed11fc3
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x1f257a64
nop
nop
test eax, eax
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43106c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x407408
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x407514
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
test bl, bl
je 0x407488
movzx eax, bl
add ax, 0x41
dec eax
mov word [ebp - 0x10], ax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], 0
lea eax, [ebp - 0x420]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
mov edi, eax
cmp edi, 0x104
jbe 0x40747f
mov edx, edi
dec edx
lea eax, [ebp - 4]
call fcn.0040ac3c
mov eax, dword [ebp - 4]
call fcn.0040aac8
push eax
push edi
call sub.kernel32.dll_GetCurrentDirectoryW
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [ebp - 0x218]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
cmp esi, 0x104
ja 0x4074b8
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x218]
mov ecx, 0x104
call fcn.0040ab64
jmp 0x4074d4
mov edx, esi
dec edx
mov eax, dword [ebp - 8]
call fcn.0040ac3c
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0040aac8
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x4074fc
cmp edi, 0x104
jbe 0x4074f0
mov eax, dword [ebp - 4]
call fcn.0040aac8
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
jmp 0x4074fc
lea eax, [ebp - 0x420]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40751b
lea eax, [ebp - 4]
call fcn.0040a070
pop eax
jmp eax

Function at 0x407ae8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040a070
test esi, esi
jne 0x407b1e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040a208
jmp 0x407b3c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004079c8
mov edi, eax
test esi, esi
je 0x407b3c
cmp dword [ebx], 0
je 0x407b3c
dec esi
jmp 0x407b25
add esp, 0x20c
pop edi
pop esi
pop ebx
ret