joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4161fb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x416229
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x416230
cmp ebx, dword [eax + 4]
jae 0x416230
xor eax, eax
jmp 0x416420
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x416241
xor eax, eax
inc eax
jmp 0x41641f
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x416257
cmp ecx, edx
jae 0x41639c
cmp dword [eax + 4], 0
je 0x416260
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x416248
cmp dword [ebp + 8], 0
je 0x416282
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41639c
cmp eax, esi
jae 0x41639c
mov eax, dword [0x4253b0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4162a7
cmp dword [esi*4 + 0x4253b8], edi
je 0x4163a0
inc esi
cmp esi, eax
jl 0x416295
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41641c
cmp dword [ebp - 8], 0x1000000
jne 0x41641c
test byte [ebp - 0xc], 0xcc
je 0x416325
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41641c
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41641c
cmp word [eax + 0x18], 0x10b
jne 0x41641c
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41641c
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x416325
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x416325
test byte [ecx + 0x27], 0x80
jne 0x41639c
push 1
push 0x4253f8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x416239
mov ecx, dword [0x4253b0]
test ecx, ecx
mov edx, ecx
jle 0x416359
lea eax, [ecx*4 + 0x4253b4]
cmp dword [eax], edi
je 0x416359
dec edx
sub eax, 4
test edx, edx
jg 0x41634d
test edx, edx
jne 0x41638a
push 0xf
pop ebx
cmp ecx, ebx
jg 0x416366
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41637e
lea eax, [edx*4 + 0x4253b8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41636c
cmp ecx, 0x10
jge 0x41638a
inc ecx
mov dword [0x4253b0], ecx
push 0
push 0x4253f8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x416239
xor eax, eax
jmp 0x41641f
test esi, esi
jle 0x416239
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4253f8
call ebx
test eax, eax
jne 0x416239
cmp dword [esi*4 + 0x4253b8], edi
je 0x4163f6
mov eax, dword [0x4253b0]
lea esi, [eax - 1]
test esi, esi
jl 0x4163e4
cmp dword [esi*4 + 0x4253b8], edi
je 0x4163e0
dec esi
jns 0x4163d4
test esi, esi
jge 0x4163f4
cmp eax, 0x10
jge 0x4163ef
inc eax
mov dword [0x4253b0], eax
lea esi, [eax - 1]
jmp 0x4163f6
je 0x41640e
xor ecx, ecx
test esi, esi
jl 0x41640e
lea eax, [ecx*4 + 0x4253b8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4163fc
push 0
push 0x4253f8
call ebx
jmp 0x416239
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417c1b
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x417c49
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x417c4e
cmp eax, 1
je 0x417c4e
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x417d3d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00416010
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x417dd8
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x424ed8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x417dd8
cmp eax, 1
je 0x417df9
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x417dd8
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x417da5
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x417dd4
xor eax, eax
inc eax
jmp 0x417e18
cmp edi, eax
jae 0x417ddc
xor eax, eax
jmp 0x417e18
cmp eax, esi
jae 0x417de3
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x424ed8]
jmp 0x417dfc
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417e20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4240b8]
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [ebp - 4], eax
je 0x417e9f
push esi
call fcn.00417c1b
test eax, eax
pop ecx
jne 0x417e67
call fcn.00411bb4
mov dword [eax], 0xf
call fcn.00411bab
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
call fcn.00410647
leave
ret
and word [ebp - 6], 0
lea eax, [ebp - 0x218]
push eax
add esi, 0x40
lea eax, [ebp - 0x214]
push eax
mov word [ebp - 0xc], si
mov esi, 0x104
push esi
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xa], 0x3a
mov word [ebp - 8], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
jmp 0x417eb2
lea eax, [ebp - 0x214]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x417e5a
inc eax
cmp eax, esi
ja 0x417e5a
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x417ee9
cmp eax, dword [ebp + 0x10]
jg 0x417eca
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
call fcn.0040ed6c
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x417efe
call fcn.00411bab
mov dword [eax], 0xc
jmp 0x417e5a
cmp eax, dword [ebp + 0x10]
jle 0x417efe
call fcn.00411bab
mov dword [eax], 0x22
jmp 0x417e5a
lea eax, [ebp - 0x214]
push eax
push ecx
call fcn.004103dd
pop ecx
pop ecx
jmp 0x417e5c

Function at 0x418ce8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x42548c], ebx
push esi
push edi
jne 0x418d68
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x418da3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x42548c], eax
je 0x418da3
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x425490], eax
call esi
cmp dword [0x424ed8], 2
mov dword [0x425494], eax
jne 0x418d68
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x42549c], eax
je 0x418d68
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x425498], eax
mov eax, dword [0x425498]
test eax, eax
je 0x418dad
call eax
test eax, eax
je 0x418d94
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x42549c]
test eax, eax
je 0x418d94
test byte [ebp - 8], 1
jne 0x418dad
cmp dword [0x424ee4], 4
jb 0x418da7
or byte [ebp + 0x12], 0x20
jmp 0x418dcc
xor eax, eax
jmp 0x418ddc
or byte [ebp + 0x12], 4
jmp 0x418dcc
mov eax, dword [0x425490]
test eax, eax
je 0x418dcc
call eax
mov ebx, eax
test ebx, ebx
je 0x418dcc
mov eax, dword [0x425494]
test eax, eax
je 0x418dcc
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x42548c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4192a7
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00416010
mov eax, dword [0x4240b8]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00414a5e
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x4193da
push 2
push esi
push dword [ebp + 8]
call fcn.00414a5e
add esp, 0xc
cmp eax, ebx
je 0x4193da
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x41937a
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0040d9f0
push 0x8000
push dword [ebp + 8]
call fcn.004198b1
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x419330
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00414cdf
add esp, 0xc
cmp eax, 0xffffffff
je 0x419350
sub edi, eax
test edi, edi
jg 0x419328
jmp 0x419368
call fcn.00411bb4
cmp dword [eax], 5
jne 0x419365
call fcn.00411bab
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.004198b1
pop ecx
pop ecx
jmp 0x4193c2
jge 0x4193c2
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00414a5e
push dword [ebp + 8]
call fcn.004188a9
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x4193c2
call fcn.00411bab
mov dword [eax], 0xd
call fcn.00411bb4
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.00414a5e
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4193dc
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00410647
leave
ret
Function at 0x4193e8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4195bc
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4265a0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4195bc
test cl, 0x48
je 0x419453
cmp byte [eax + 5], 0xa
je 0x419453
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4194a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x41948d
call fcn.00411bab
mov dword [eax], 9
call fcn.00411bb4
mov dword [eax], esi
jmp 0x41949d
cmp eax, 0x6d
je 0x4195bc
push eax
call fcn.00411bbd
pop ecx
or eax, 0xffffffff
jmp 0x4195be
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x4195b7
test eax, eax
je 0x4194cc
cmp byte [ebx], 0xa
jne 0x4194cc
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4194d5
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x4195b1
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4195a1
cmp al, 0xd
je 0x419507
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x419593
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x419521
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x41951c
add dword [ebp + 0x10], 2
jmp 0x419575
mov dword [ebp + 0x10], eax
jmp 0x41958f
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x419549
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41958f
cmp dword [ebp - 0xc], 0
je 0x41958f
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41956a
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x419575
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x419592
cmp ebx, dword [ebp + 0xc]
jne 0x41957a
cmp byte [ebp - 1], 0xa
jne 0x41957a
mov byte [ebx], 0xa
jmp 0x419592
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00414a5e
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x419593
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4194eb
jmp 0x4195b1
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4195b1
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4195be
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419d6b
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x419d84
or eax, 0xffffffff
jmp 0x419de5
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x419de1
push 0x3d
push esi
call fcn.0040f739
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x419de1
cmp esi, eax
je 0x419de1
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x424ef8]
sete cl
cmp eax, dword [0x424efc]
mov dword [ebp - 8], ecx
jne 0x419dc7
mov edi, eax
call fcn.00419d0a
mov dword [0x424ef8], eax
cmp eax, ebx
jne 0x419e20
cmp dword [ebp + 0xc], ebx
je 0x419de9
cmp dword [0x424f00], ebx
je 0x419de9
call fcn.00419611
test eax, eax
je 0x419e20
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x419df2
xor eax, eax
jmp 0x419de4
push 4
call fcn.0040ed6c
cmp eax, ebx
pop ecx
mov dword [0x424ef8], eax
je 0x419de1
mov dword [eax], ebx
cmp dword [0x424f00], ebx
jne 0x419e20
push 4
call fcn.0040ed6c
cmp eax, ebx
pop ecx
mov dword [0x424f00], eax
je 0x419de1
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x424ef8]
call fcn.00419cbd
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x419e81
cmp dword [esi], ebx
je 0x419e81
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0040dc98
cmp dword [ebp - 8], ebx
pop ecx
jne 0x419e64
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x419ec2
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x419e5b
mov eax, edi
shl eax, 2
push eax
push dword [0x424ef8]
call fcn.004107ad
cmp eax, ebx
pop ecx
pop ecx
je 0x419ec2
jmp 0x419ebd
cmp dword [ebp - 8], ebx
jne 0x419f2d
cmp edi, ebx
jge 0x419e90
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x424ef8]
call fcn.004107ad
cmp eax, ebx
pop ecx
pop ecx
je 0x419de1
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x424ef8], eax
cmp dword [ebp + 0xc], ebx
je 0x419f17
push dword [ebp - 4]
call fcn.0040db10
inc eax
inc eax
push eax
call fcn.0040ed6c
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x419f17
push dword [ebp - 4]
push esi
call fcn.0040dba0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x419f10
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0040dc98
pop ecx
cmp dword [ebp - 8], ebx
je 0x419f25
push dword [ebp - 4]
call fcn.0040dc98
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x419de4
push dword [ebp - 4]
call fcn.0040dc98
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x419dee
Function at 0x44c66c
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.KERNEL32.DLL_GetPriorityClass
mov ebx, eax
call sub.KERNEL32.DLL_GetCurrentThread
push eax
call sub.KERNEL32.DLL_GetThreadPriority
mov esi, eax
push pe_nt_image_headers32
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.KERNEL32.DLL_SetPriorityClass
push 0xf
call sub.KERNEL32.DLL_GetCurrentThread
push eax
call sub.KERNEL32.DLL_SetThreadPriority
push 0xa
call sub.KERNEL32.DLL_Sleep_1
rdtsc
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
push 0x1f4
call sub.KERNEL32.DLL_Sleep_1
rdtsc
sub eax, dword [ebp - 4]
sbb edx, dword [ebp - 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
push esi
call sub.KERNEL32.DLL_GetCurrentThread
push eax
call sub.KERNEL32.DLL_SetThreadPriority
push ebx
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.KERNEL32.DLL_SetPriorityClass
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
fild qword [ebp - 0x18]
fdiv dword [0x44c718]
call fcn.00402e58
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x454098
Capabilities:
Get file size

Disassembly:
push 0
push 4
push 3
push 0
push 0
push 0x80000000
mov eax, dword [0x459208]
mov eax, dword [eax]
call fcn.0040524c
push eax
call sub.KERNEL32.DLL_CreateFileA_1
mov edx, dword [0x45903c]
mov dword [edx], eax
mov eax, dword [0x45903c]
cmp dword [eax], 0xffffffff
je 0x45410e
push 0
mov eax, dword [0x45903c]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetFileSize_1
mov edx, dword [0x458f74]
mov dword [edx], eax
mov eax, dword [0x45904c]
mov eax, dword [eax]
push eax
mov eax, dword [0x458f74]
mov eax, dword [eax]
push eax
push 0
push 0
mov eax, dword [0x45903c]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_LockFile
mov eax, dword [0x4592b4]
mov dword [eax], 1
ret

Function at 0x454110
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040523c
xor eax, eax
push ebp
push 0x454233
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x459208]
mov eax, dword [eax]
call fcn.00409100
test al, al
jne 0x454151
lea edx, [ebp - 8]
mov eax, dword [0x459208]
mov eax, dword [eax]
call fcn.00442f8c
mov eax, dword [0x4592b4]
cmp dword [eax], 1
jne 0x454189
mov eax, dword [0x45904c]
mov eax, dword [eax]
push eax
mov eax, dword [0x458f74]
mov eax, dword [eax]
push eax
push 0
push 0
mov eax, dword [0x45903c]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_UnlockFile
mov eax, dword [0x45903c]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
lea ecx, [ebp - 0xc]
mov eax, dword [0x459208]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
call fcn.00441154
push 0x1e
call sub.KERNEL32.DLL_Sleep_1
push 0
push 4
push 3
push 0
push 0
push 0x80000000
mov eax, dword [0x459208]
mov eax, dword [eax]
call fcn.0040524c
push eax
call sub.KERNEL32.DLL_CreateFileA_1
mov edx, dword [0x45903c]
mov dword [edx], eax
mov eax, dword [0x45903c]
cmp dword [eax], 0xffffffff
je 0x454218
push 0
mov eax, dword [0x45903c]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetFileSize_1
mov edx, dword [0x458f74]
mov dword [edx], eax
mov eax, dword [0x45904c]
mov eax, dword [eax]
push eax
mov eax, dword [0x458f74]
mov eax, dword [eax]
push eax
push 0
push 0
mov eax, dword [0x45903c]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_LockFile
mov eax, dword [0x4592b4]
mov dword [eax], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45423a
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404db0
ret
Function at 0x454240
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040523c
mov ebx, dword [0x458f4c]
xor eax, eax
push ebp
push 0x454395
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
lea eax, [ebp - 8]
call fcn.00405098
mov eax, dword [ebp - 8]
call fcn.00409100
test al, al
jne 0x45429f
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
lea eax, [ebp - 0x10]
call fcn.00405098
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.00442f8c
mov eax, dword [0x4592b4]
cmp dword [eax], 1
jne 0x4542d7
mov eax, dword [0x45904c]
mov eax, dword [eax]
push eax
mov eax, dword [0x458f74]
mov eax, dword [eax]
push eax
push 0
push 0
mov eax, dword [0x459174]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_UnlockFile
mov eax, dword [0x459174]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
lea eax, [ebp - 0x18]
call fcn.00405098
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.00441154
push 0x1e
call sub.KERNEL32.DLL_Sleep_1
push 0
push 4
push 3
push 0
push 0
push 0x80000000
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
lea eax, [ebp - 0x1c]
call fcn.00405098
mov eax, dword [ebp - 0x1c]
call fcn.0040524c
push eax
call sub.KERNEL32.DLL_CreateFileA_1
mov edx, dword [0x459174]
mov dword [edx], eax
mov eax, dword [0x459174]
cmp dword [eax], 0xffffffff
je 0x45437a
push 0
mov eax, dword [0x459174]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetFileSize_1
mov edx, dword [0x458f74]
mov dword [edx], eax
mov eax, dword [0x45904c]
mov eax, dword [eax]
push eax
mov eax, dword [0x458f74]
mov eax, dword [eax]
push eax
push 0
push 0
mov eax, dword [0x459174]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_LockFile
mov eax, dword [0x4592b4]
mov dword [eax], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45439c
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.00404db0
ret
Function at 0xa7eb90
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x20]
push ebx
push ebp
push esi
mov ebx, dword [eax]
push edi
push 0x800
push 0x40
mov dword [esp + 0x1c], ebx
call dword [ebx + 0x2c]
mov edi, eax
test edi, edi
jne 0xa7ebbc
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
push 0
push 0
push ecx
push edx
call dword [ebx + 0x24]
mov eax, dword [esp + 0x2c]
mov ebp, 0x8142fea1
test eax, eax
je 0xa7ec80
jmp 0xa7ebe4
mov eax, dword [esp + 0x2c]
cmp eax, 0x800
jb 0xa7ebf0
mov eax, 0x800
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push 0
push ecx
push eax
push edi
push edx
call dword [ebx + 0x14]
test eax, eax
je 0xa7ec90
mov edx, dword [esp + 0x10]
test edx, edx
je 0xa7ecd2
xor esi, esi
test edx, edx
jle 0xa7ec57
mov ecx, ebp
xor ecx, 0x7f6d09ed
mov eax, ecx
mov ebx, ecx
shr eax, 0x18
shr ebx, 0x10
xor al, bl
mov ebx, ecx
shr ebx, 8
xor al, bl
mov bl, byte [esi + edi]
xor al, bl
xor al, cl
mov byte [esi + edi], al
and eax, 0xff
shl ebp, 8
add ebp, eax
inc esi
cmp esi, edx
jl 0xa7ec1b
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x18]
push 0
push eax
push edx
push edi
push ecx
call dword [ebx + 0x18]
test eax, eax
je 0xa7ecb2
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
sub eax, edx
mov dword [esp + 0x2c], eax
jne 0xa7ebe0
push edi
call dword [ebx + 0x30]
pop edi
pop esi
pop ebp
mov ax, 1
pop ebx
add esp, 0xc
ret
push 0
call dword [ebx + 0x78]
push eax
mov eax, dword [esp + 0x38]
push eax
call fcn.00a7f900
add esp, 0xc
push edi
call dword [ebx + 0x30]
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 0xc
ret
call dword [ebx + 0x78]
mov ecx, dword [esp + 0x30]
push eax
push ecx
call fcn.00a7f970
add esp, 8
push edi
call dword [ebx + 0x30]
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 0xc
ret
push 0
call dword [ebx + 0x78]
mov edx, dword [esp + 0x34]
push eax
push edx
call fcn.00a7f900
add esp, 0xc
push edi
call dword [ebx + 0x30]
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 0xc
ret

Function at 0xa7f770
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
mov al, byte [ecx]
xor edi, edi
mov byte [esi], al
mov al, byte [ecx]
test al, al
je 0xa7f7aa
mov edx, esi
push ebx
sub edx, ecx
mov al, byte [ecx + 1]
mov bl, byte [edx + ecx]
inc edi
inc ecx
dec al
xor al, bl
mov byte [edx + ecx], al
mov al, byte [ecx]
test al, al
jne 0xa7f78b
mov byte [edi + esi], 0
pop ebx
mov eax, esi
pop edi
pop esi
ret
mov byte [edi + esi], 0
mov eax, esi
pop edi
pop esi
ret