joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b340
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445495
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x455100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov edi, dword [ebp + 8]
cmp edi, dword [ebp + 0xc]
je 0x41b51a
nop dword [eax]
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, ebx
push eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.0041b2d0
cmp dword [ebp - 0x1c], 0
jne 0x41b50b
cmp dword [ebx + 8], 0x15555555
je 0x41b52e
lea eax, [ebx + 4]
mov dword [ebp - 0x28], eax
push 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
call fcn.0041f953
mov cx, word [edi]
mov esi, eax
add esp, 4
mov dword [ebp - 0x24], esi
mov word [esi + 8], cx
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0x1c]
inc ecx
mov dword [ebp - 0x14], eax
movss xmm3, dword [ebx]
mov dword [ebp - 4], 1
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x4474e0]
cvtpd2ps xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x4474e0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x41b4b2
divss xmm2, xmm3
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x30], xmm0
fld qword [ebp - 0x30]
fstp qword [esp]
call fcn.0042ed40
fstp qword [ebp - 0x30]
movsd xmm0, qword [ebp - 0x30]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.00420170
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebp - 0x14]
cmp eax, ecx
jae 0x41b48b
cmp eax, 0x200
jae 0x41b489
shl eax, 3
cmp eax, ecx
jae 0x41b48b
mov eax, ecx
push eax
mov ecx, ebx
call fcn.0041c910
push dword [ebp - 0x10]
lea eax, [esi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0041b2d0
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
jmp 0x41b4b5
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 4]
inc dword [ebx + 8]
mov edi, dword [ebp - 0x28]
mov dword [esi + 4], eax
mov dword [esi], edx
mov dword [eax], esi
mov dword [edx + 4], esi
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x18]
and eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], 0
mov ebx, dword [ecx + eax*8]
cmp ebx, dword [edi]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0x18]
jne 0x41b4ed
mov dword [ecx + eax*8], esi
jmp 0x41b500
cmp dword [ecx + eax*8], edx
jne 0x41b4f7
mov dword [ecx + eax*8], esi
jmp 0x41b504
mov edx, dword [ebp - 0x14]
cmp dword [ecx + eax*8 + 4], edx
jne 0x41b504
mov dword [ecx + eax*8 + 4], esi
mov dword [ebp - 4], 0xffffffff
add edi, 2
mov dword [ebp + 8], edi
cmp edi, dword [ebp + 0xc]
jne 0x41b380
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.0041d110
int3
Function at 0x41c910
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
push ebx
push esi
push edi
mov edi, ecx
mov esi, 1
bsr ecx, eax
mov eax, esi
mov dword [ebp - 4], edi
shl eax, cl
cmp edx, eax
ja 0x41ca44
mov ebx, dword [edi + 4]
lea eax, [edx - 1]
or eax, esi
mov dword [ebp - 8], ebx
bsr ecx, eax
push ebx
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [edi + 0xc]
lea eax, [esi + esi]
push eax
call fcn.00418a30
lea eax, [esi - 1]
mov dword [edi + 0x1c], esi
mov dword [edi + 0x18], eax
mov ecx, dword [edi + 4]
mov ecx, dword [ecx]
cmp ecx, ebx
je 0x41ca1f
mov eax, ecx
movzx edx, byte [eax + 8]
mov ecx, dword [ecx]
xor edx, 0x811c9dc5
imul esi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor esi, edx
mov edx, dword [edi + 0xc]
imul esi, esi, 0x1000193
and esi, dword [edi + 0x18]
lea ebx, [edx + esi*8]
mov esi, dword [ebx]
mov dword [ebp + 8], ebx
cmp esi, dword [ebp - 8]
jne 0x41c9aa
mov dword [ebx], eax
mov dword [ebx + 4], eax
jmp 0x41ca14
mov edx, dword [ebx + 4]
movzx edi, word [eax + 8]
cmp di, word [edx + 8]
jne 0x41c9e3
mov edx, dword [edx]
mov dword [ebp - 0xc], edx
cmp edx, eax
je 0x41c9de
mov edi, dword [eax + 4]
mov ebx, dword [ebp - 0xc]
mov dword [edi], ecx
mov esi, dword [ecx + 4]
mov dword [esi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [ebx + 4], esi
mov ebx, dword [ebp + 8]
mov dword [ecx + 4], edi
mov dword [eax + 4], edx
mov dword [ebx + 4], eax
jmp 0x41ca11
cmp esi, edx
je 0x41c9f4
mov edx, dword [edx + 4]
cmp di, word [edx + 8]
je 0x41ca28
cmp esi, edx
jne 0x41c9e7
mov ebx, dword [eax + 4]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov esi, dword [edx + 4]
mov dword [esi], eax
mov dword [edx + 4], edi
mov edx, dword [ebp + 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], esi
mov dword [edx], eax
mov edi, dword [ebp - 4]
mov eax, ecx
cmp ecx, dword [ebp - 8]
jne 0x41c972
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [eax + 4]
mov ebx, dword [edx]
mov dword [edi], ecx
mov esi, dword [ecx + 4]
mov dword [esi], ebx
mov edx, dword [ebx + 4]
mov dword [edx], eax
mov dword [ebx + 4], esi
mov dword [ecx + 4], edi
mov dword [eax + 4], edx
jmp 0x41ca11
push str.invalid_hash_bucket_count
call fcn.0041d110
int3
Function at 0x41ca50
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x41caf8
mov eax, dword [ebx + 0x1c]
shr eax, 3
push esi
cmp eax, ecx
jbe 0x41cba0
mov eax, dword [ebx + 4]
mov dword [ebp - 4], eax
mov edx, dword [eax]
mov dword [ebp - 0x14], edx
cmp edx, eax
je 0x41caf7
mov eax, dword [edx + 4]
mov esi, edx
mov dword [ebp - 8], eax
movzx eax, byte [edx + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 9]
push edi
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x1c], edi
xor ecx, eax
mov eax, dword [ebx + 0x18]
imul ecx, ecx, 0x1000193
and eax, ecx
mov ecx, dword [edi + eax*8]
mov dword [ebp - 0x10], ecx
lea eax, [edi + eax*8]
mov dword [ebp - 0xc], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov eax, esi
mov edi, esi
mov esi, dword [esi]
push 0xc
push eax
call fcn.0041f983
dec dword [ebx + 8]
add esp, 8
cmp edi, dword [ebp - 0x18]
je 0x41cafd
cmp esi, dword [ebp - 4]
jne 0x41cac3
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jne 0x41caee
mov ecx, dword [ebp - 0xc]
mov dword [ecx], esi
mov eax, dword [ebp - 8]
pop edi
mov dword [eax], esi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jne 0x41cb11
mov dword [ecx], edx
mov eax, edx
jmp 0x41cb14
mov eax, dword [ebp - 8]
mov dword [ecx + 4], eax
cmp esi, edx
je 0x41caee
nop dword [eax + eax]
movzx eax, byte [esi + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [esi + 9]
xor ecx, eax
mov eax, dword [ebx + 0x18]
imul ecx, ecx, 0x1000193
and eax, ecx
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + eax*8]
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
nop
mov eax, esi
mov edi, esi
mov esi, dword [esi]
push 0xc
push eax
call fcn.0041f983
dec dword [ebx + 8]
add esp, 8
cmp edi, dword [ebp - 0x18]
je 0x41cb82
cmp esi, dword [ebp - 4]
jne 0x41cb50
mov eax, dword [ebp - 0x14]
pop edi
mov dword [eax], esi
mov eax, dword [ebp - 8]
mov dword [eax], esi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov dword [eax], edx
mov dword [eax + 4], edx
cmp esi, edx
jne 0x41cb20
mov eax, dword [ebp - 8]
pop edi
mov dword [eax], esi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 4]
mov dword [eax], 0
mov eax, dword [ecx]
test eax, eax
je 0x41cbc5
mov esi, dword [eax]
push 0xc
push eax
call fcn.0041f983
add esp, 8
mov eax, esi
test esi, esi
jne 0x41cbb2
mov eax, dword [ebx + 4]
mov dword [eax], eax
mov eax, dword [ebx + 4]
mov dword [eax + 4], eax
mov dword [ebx + 8], 0
mov eax, dword [ebx + 4]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebx + 0x10]
push dword [ebx + 0xc]
call fcn.00412830
add esp, 0xc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420853
Capabilities:
Parse pe header

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

Function at 0x4349dd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44bc44
push 0x44bc3c
push str.FlsAlloc
push 0x1e
call fcn.0043480a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x434a11
push dword [ebp + 8]
mov ecx, esi
call dword [0x4461dc]
call esi
jmp 0x434a17
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x434a5b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44bc54
push 0x44bc4c
push str.FlsGetValue
push 0x20
call fcn.0043480a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x434a92
push dword [ebp + 8]
mov ecx, esi
call dword [0x4461dc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x439240
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00438edb

Function at 0x43924b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043906a

Function at 0x4396a1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0041fdf0
mov eax, dword [0x455100]
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.0042e172
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4396e3
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x43983f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00443690
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 + 0x457e28]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00439ac7
mov ecx, dword [esi*4 + 0x457e28]
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 0x439838
cmp eax, dword [edi + ecx + 0x24]
jne 0x439838
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 0x439838
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00439ac7
add esp, 0x14
test edx, edx
jl 0x439838
jg 0x4397ae
test eax, eax
jb 0x439838
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x439838
jl 0x4397c8
cmp dword [ebp - 0x1008], eax
ja 0x439838
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4397e6
test ebx, ebx
je 0x43981f
cmp ecx, edi
jae 0x43981f
mov al, byte [ecx]
cmp al, 0xd
jne 0x439800
lea eax, [edi - 1]
cmp ecx, eax
jae 0x43980c
cmp byte [ecx + 1], 0xa
jne 0x43980c
inc ecx
jmp 0x43980c
movzx eax, al
movsx eax, byte [eax + 0x455a80]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4397e6
cmp edx, ebx
jne 0x4397e6
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x43983d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041fde2
leave
ret
Function at 0x43af19
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 0x43afb6
push ebx
push esi
call fcn.0043aee2
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.00439e40
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x43af63
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43afb5
push edi
push eax
call fcn.00435079
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x43af83
call fcn.00434400
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43afb4
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00439e40
add esp, 0x20
test eax, eax
jne 0x43afa2
push edi
call fcn.00434400
jmp 0x43afaa
push ebx
call fcn.00434400
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 0x43fd25
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 + 0x457e28]
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 0x43fd65
cmp byte [ebx], 0xa
jne 0x43fd65
or byte [eax + edi + 0x28], 4
jmp 0x43fd6a
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x43fe68
mov al, byte [edx]
cmp al, 0x1a
je 0x43fe4a
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x43fd99
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x43fdbe
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x43fdc8
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 0x43fd7b
jmp 0x43fe68
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 0x43fe45
cmp dword [ebp - 0xc], 0
je 0x43fe45
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x457e28]
test byte [eax + edi + 0x28], 0x48
je 0x43fe1f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x43fe0a
mov byte [esi], dl
jmp 0x43fe1b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x457e28]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x43fe68
cmp byte [ebp - 1], 0xa
jne 0x43fe2e
cmp esi, ebx
jne 0x43fe2e
mov byte [esi], 0xa
jmp 0x43fe67
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00439ae5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x43fe68
mov byte [esi], 0xd
jmp 0x43fe67
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x457e28]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x43fe64
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43fe68
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43fe71
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 + 0x457e28]
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 0x43feb4
cmp word [esi], dx
jne 0x43feb4
or byte [edi + eax + 0x28], 4
jmp 0x43feb9
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 0x43fff2
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 0x43ffd2
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x43fefb
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x43ff31
cmp eax, edx
jae 0x43ff3d
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 0x43fed3
jmp 0x43fff2
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 0x43ffce
cmp dword [ebp - 0x14], 0
je 0x43ffce
mov eax, dword [ebx*4 + 0x457e28]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x43ffa6
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x43ffec
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x457e28]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x457e28]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x457e28]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x43ffef
pop ebx
cmp word [ebp - 4], bx
jne 0x43ffb7
cmp esi, dword [ebp + 0xc]
jne 0x43ffb7
mov word [esi], bx
jmp 0x43ffef
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00439ae5
add esp, 0x10
cmp word [ebp - 4], bx
je 0x43fff2
push 0xd
jmp 0x43ffeb
mov ecx, dword [ebx*4 + 0x457e28]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x43ffe9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43fff2
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 0x442215
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.00442191
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x44238d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x44238d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x44233c
jg 0x44226e
test eax, eax
je 0x442332
push 1
push 0x1000
call fcn.0043450c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x442294
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x442329
push 0x8000
push ebx
call fcn.0042e8d1
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 0x4422c0
jg 0x4422bb
cmp ecx, 0x1000
jb 0x4422c0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00436ddc
add esp, 0x10
cmp eax, 0xffffffff
je 0x442305
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 0x4422bb
jl 0x4422ec
test ecx, ecx
jne 0x4422ad
push dword [ebp - 0xc]
push ebx
call fcn.0042e8d1
push esi
call fcn.00434400
add esp, 0xc
xor edi, edi
jmp 0x44239e
cmp byte [edi + 0x24], 0
je 0x44231c
cmp dword [edi + 0x20], 5
jne 0x44231c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x442327
mov edi, dword [edi + 0x18]
jmp 0x442329
xor edi, edi
push esi
call fcn.00434400
pop ecx
jmp 0x44239e
test ecx, ecx
jg 0x4422fe
jl 0x44233c
test eax, eax
jae 0x4422fe
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00439ae5
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x44235f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4422fe
jmp 0x442396
push ebx
call fcn.00437c18
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4422fe
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 0x44239e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x44239b
mov edi, dword [edi + 0x18]
jmp 0x44239e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00439ae5
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x443490
Capabilities:
Parse pe header

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

Disassembly:
pushal
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x424065
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x1b]
mov byte [ebp - 0x1c], bl
push 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1c]
mov dword [ebp - 8], ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call fcn.00413952
lea edi, str.EYHDFKMAKGTYGOIZ
sub edi, 0x400000
mov dword [ebp - 8], edi
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00417848
add esp, 0x10
mov edi, eax
push ebx
push 0x20
push 3
push ebx
push 2
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
mov esi, eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 0x1c]
push 0x10
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0x400000
mov esi, edi
add edi, 0x3c
mov edi, dword [edi]
add edi, esi
add edi, 0x58
sub edi, esi
mov dword [ebp - 0xc], edi
push ebx
push 0x20
push 3
push ebx
push 2
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push ebx
push dword [ebp - 0xc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 0x1c]
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43b63d
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
pop ebx
push ecx
pop edi
inc edi
call fcn.0043b673
sub ecx, ecx
xor dword [edx], ebx
add edi, ecx
and edi, edi
add edx, 1
and edi, edi
cmp edx, esi
jne fcn.0043b63d
add edi, 0x8709a73d
sub edi, 0xf89a54f6
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