joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47a6d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
je 0x47a7ee
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0xc], eax
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x24]
mov eax, dword [esi + 8]
cmp eax, dword [ebp - 0xc]
jle 0x47a7e0
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0041c194
mov ebx, eax
test ebx, ebx
jl 0x47a7bf
mov eax, dword [ebp - 4]
cmp ebx, dword [eax + 0x18]
jge 0x47a7bf
mov eax, ebx
add eax, eax
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x28]
cmp dword [edx + eax*8 + 8], 0
jne 0x47a751
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
mov edx, dword [ebp - 0xc]
call fcn.0041c088
jmp 0x47a6fe
mov edi, ebx
add edi, edi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
cmp dword [eax + edi*8 + 8], 0
je 0x47a7bf
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x28]
sub eax, dword [edx + edi*8 + 0xc]
cmp eax, 0x1d4c0
jbe 0x47a7bf
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
mov edx, dword [ebp - 0xc]
call fcn.0041c088
xor eax, eax
push ebp
push 0x47a7b0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
lea eax, [eax + edi*8 + 8]
call fcn.00411d20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47a6fe
inc dword [ebp - 0xc]
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 8]
cmp eax, 0xa
jbe 0x47a6fe
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x10], edx
cmp byte [ebp - 0xd], 0
jne 0x47a7ee
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x10], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48a9ac
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
cmp dword [ebx + 0xc], 0
jle 0x48aa33
cmp dword [ebx + 0x10], 0
jle 0x48aa33
mov ecx, edx
mov eax, dword [0x48a774]
mov dl, 1
call fcn.0048abfc
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48aa2c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebx + 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
call fcn.00403370
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0048ae1c
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 4]
mov eax, dword [ebp - 4]
call fcn.0041eb3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48aa33
mov eax, dword [ebp - 4]
call fcn.00404648
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x48ce8c
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov esi, edx
mov edi, eax
xor ebx, ebx
mov eax, dword [edi + 0x10]
test eax, eax
je 0x48cea4
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [edi + 0xc]
test eax, eax
je 0x48ceb1
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x48cebf
push eax
call sub.kernel32.dll_CloseHandle_1
lea eax, [edi + 4]
call fcn.00405544
xor eax, eax
mov dword [edi + 8], eax
xor eax, eax
mov dword [edi + 0xc], eax
xor eax, eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov byte [edi + 0x28], 0
lea eax, [edi + 4]
mov edx, esi
call fcn.00405598
push 0
push 0x10000080
push 3
push 0
push 3
push 0x80000000
mov eax, dword [edi + 4]
call fcn.004059e4
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
mov dword [edi + 8], esi
cmp esi, 0xffffffff
je 0x48cfb8
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingA
mov ebp, eax
mov dword [edi + 0xc], ebp
test ebp, ebp
jne 0x48cf52
mov eax, dword [edi + 8]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x48cfb8
push 0
push 0
push 0
push 4
mov eax, dword [edi + 0xc]
push eax
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
mov dword [edi + 0x10], esi
test esi, esi
jne 0x48cf80
mov eax, dword [edi + 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [edi + 8]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x48cfb8
push esp
mov eax, dword [edi + 8]
push eax
call sub.kernel32.dll_GetFileSize_1
mov ecx, eax
mov eax, dword [esp]
xor edx, edx
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], edx
mov eax, ecx
xor edx, edx
push edx
push eax
mov edx, dword [edi + 0x18]
xor eax, eax
or eax, dword [esp]
or edx, dword [esp + 4]
add esp, 8
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], edx
mov byte [edi + 0x28], 1
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x48e33c
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov dword [esp], ecx
mov esi, eax
mov ebp, edx
xor ebx, ebx
xor edi, edi
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
test eax, eax
jle 0x48e3d6
movzx edx, byte [esi + ebx]
shr edx, 2
movzx edx, byte [edx + 0x561dbc]
mov byte [ebp + edi], dl
movzx edx, byte [esi + ebx]
and dl, 3
movzx edx, dl
shl edx, 4
movzx ecx, byte [esi + ebx + 1]
shr ecx, 4
add edx, ecx
movzx edx, byte [edx + 0x561dbc]
push edx
pop edx
mov byte [ebp + edi + 1], dl
movzx edx, byte [esi + ebx + 1]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
movzx ecx, byte [esi + ebx + 2]
shr ecx, 6
add edx, ecx
movzx edx, byte [edx + 0x561dbc]
push edx
pop edx
mov byte [ebp + edi + 2], dl
movzx edx, byte [esi + ebx + 2]
and dl, 0x3f
movzx edx, dl
movzx edx, byte [edx + 0x561dbc]
mov byte [ebp + edi + 3], dl
add edi, 4
add ebx, 3
dec eax
jne 0x48e35b
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
dec edx
je 0x48e3ec
dec edx
je 0x48e421
jmp 0x48e472
movzx eax, byte [esi + ebx]
shr eax, 2
movzx eax, byte [eax + 0x561dbc]
mov byte [ebp + edi], al
movzx eax, byte [esi + ebx]
and al, 3
movzx eax, al
shl eax, 4
movzx eax, byte [eax + 0x561dbc]
mov byte [ebp + edi + 1], al
mov byte [ebp + edi + 2], 0x3d
mov byte [ebp + edi + 3], 0x3d
jmp 0x48e472
movzx eax, byte [esi + ebx]
shr eax, 2
movzx eax, byte [eax + 0x561dbc]
mov byte [ebp + edi], al
movzx eax, byte [esi + ebx]
and al, 3
movzx eax, al
shl eax, 4
movzx edx, byte [esi + ebx + 1]
shr edx, 4
add eax, edx
movzx eax, byte [eax + 0x561dbc]
mov byte [ebp + edi + 1], al
movzx eax, byte [esi + ebx + 1]
and al, 0xf
movzx eax, al
add eax, eax
add eax, eax
movzx eax, byte [eax + 0x561dbc]
mov byte [ebp + edi + 2], al
mov byte [ebp + edi + 3], 0x3d
mov eax, dword [esp]
add eax, 2
mov ecx, 3
cdq
idiv ecx
add eax, eax
add eax, eax
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x48e4e4
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp], ecx
mov edi, eax
mov dword [esp + 8], edx
xor esi, esi
xor ebp, ebp
xor eax, eax
mov edx, dword [esp]
test edx, edx
jns 0x48e503
add edx, 3
sar edx, 2
test edx, edx
jle 0x48e611
mov dword [esp + 0xc], edx
mov edx, 4
lea eax, [esp + 4]
movzx ecx, byte [edi + esi]
cmp ecx, 0x3d
jg 0x48e538
je 0x48e57b
sub ecx, 0x2b
je 0x48e571
sub ecx, 4
je 0x48e576
dec ecx
sub ecx, 0xa
jb 0x48e563
jmp 0x48e57e
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x48e54a
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x48e555
jmp 0x48e57e
movzx ecx, byte [edi + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x48e57e
movzx ecx, byte [edi + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x48e57e
movzx ecx, byte [edi + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x48e57e
mov byte [eax], 0x3e
jmp 0x48e57e
mov byte [eax], 0x3f
jmp 0x48e57e
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x48e51b
movzx eax, byte [esp + 4]
add eax, eax
add eax, eax
movzx edx, byte [esp + 5]
shr edx, 4
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp], al
lea eax, [ebp + 1]
movzx edx, byte [esp + 6]
cmp dl, 0xff
je 0x48e5cf
cmp byte [esp + 7], 0xff
jne 0x48e5cf
movzx eax, byte [esp + 5]
shl eax, 4
movzx edx, dl
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
lea eax, [ebp + 2]
inc ebp
jmp 0x48e606
cmp dl, 0xff
je 0x48e606
movzx eax, byte [esp + 5]
shl eax, 4
movzx edx, dl
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
mov eax, dword [esp + 8]
movzx edx, byte [esp + 6]
shl edx, 6
or dl, byte [esp + 7]
mov byte [eax + ebp + 2], dl
lea eax, [ebp + 3]
add ebp, 2
inc ebp
dec dword [esp + 0xc]
jne 0x48e512
add esp, 0x10
pop ebp
pop edi
pop esi
ret

Function at 0x490a2c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
cmp byte [ebx + 4], 0
jne 0x490a56
mov ecx, 0x490ab8
mov dl, 1
mov eax, dword [0x48fc40]
call fcn.00410118
call fcn.00404ebc
mov dword [ebp - 8], edx
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 8]
test eax, eax
jle 0x490aa5
mov dword [ebp - 0xc], eax
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 0x10]
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x38]
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
mov edx, dword [ebx + 0x14]
xor al, byte [edx]
mov byte [esi], al
mov ecx, dword [ebx + 0x18]
dec ecx
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x10]
inc eax
call fcn.00403370
mov eax, dword [ebx + 0x10]
add eax, dword [ebx + 0x18]
dec eax
movzx edx, byte [esi]
mov byte [eax], dl
inc dword [ebp - 8]
inc esi
dec dword [ebp - 0xc]
jne 0x490a66
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x490ad0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
cmp byte [ebx + 4], 0
jne 0x490afa
mov ecx, 0x490b64
mov dl, 1
mov eax, dword [0x48fc40]
call fcn.00410118
call fcn.00404ebc
mov esi, edx
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
test eax, eax
jle 0x490b52
mov dword [ebp - 0x10], eax
movzx eax, byte [esi]
mov byte [ebp - 9], al
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 0x10]
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x38]
mov eax, dword [ebx + 0x14]
movzx eax, byte [eax]
xor al, byte [esi]
mov edx, dword [ebp - 8]
mov byte [edx], al
mov ecx, dword [ebx + 0x18]
dec ecx
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x10]
inc eax
call fcn.00403370
mov eax, dword [ebx + 0x10]
add eax, dword [ebx + 0x18]
dec eax
movzx edx, byte [ebp - 9]
mov byte [eax], dl
inc esi
inc dword [ebp - 8]
dec dword [ebp - 0x10]
jne 0x490b0c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4910f4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
test esi, esi
jle 0x491115
mov ecx, 1
mov ebx, edx
add ebx, ecx
dec ebx
movzx ebx, byte [ebx]
mov edi, eax
add edi, ecx
dec edi
xor byte [edi], bl
inc ecx
dec esi
jne 0x491102
pop edi
pop esi
pop ebx
ret
Function at 0x4957b4
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ebx, 0xe
mov eax, 0x564bfc
movzx edx, byte [eax]
mov ecx, 0x1f
sub ecx, edx
mov edx, 1
shl edx, cl
or esi, edx
inc eax
dec ebx
jne 0x4957c2
xor ebx, ebx
mov ecx, 0x5647fc
mov eax, ebx
mov edx, 8
test al, 1
je 0x4957f1
shr eax, 1
xor eax, esi
jmp 0x4957f3
shr eax, 1
dec edx
jne 0x4957e7
mov dword [ecx], eax
inc ebx
add ecx, 4
cmp ebx, 0x100
jne 0x4957e0
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
mov edi, edx
mov esi, eax
mov ebp, 0x5647fc
mov ebx, 0xedb88200
test esi, esi
jne 0x495825
xor eax, eax
jmp 0x49591f
cmp dword [0x5647f8], 0
je 0x495833
call fcn.004957b4
xor ebx, 0xffffffff
cmp edi, 8
jl 0x4958fb
movzx eax, byte [esi]
xor eax, ebx
and eax, 0xff
mov eax, dword [ebp + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
movzx eax, byte [esi]
xor eax, ebx
and eax, 0xff
mov eax, dword [ebp + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
movzx eax, byte [esi]
xor eax, ebx
and eax, 0xff
mov eax, dword [ebp + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
movzx eax, byte [esi]
xor eax, ebx
and eax, 0xff
mov eax, dword [ebp + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
movzx eax, byte [esi]
xor eax, ebx
and eax, 0xff
mov eax, dword [ebp + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
movzx eax, byte [esi]
xor eax, ebx
and eax, 0xff
mov eax, dword [ebp + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
movzx eax, byte [esi]
xor eax, ebx
and eax, 0xff
mov eax, dword [ebp + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
movzx eax, byte [esi]
xor eax, ebx
and eax, 0xff
mov eax, dword [ebp + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
sub edi, 8
cmp edi, 8
jge 0x49583f
test edi, edi
je 0x49591a
movzx eax, byte [esi]
xor eax, ebx
and eax, 0xff
mov eax, dword [ebp + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
dec edi
test edi, edi
jne 0x4958ff
mov eax, ebx
xor eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4b4d4c
Capabilities:
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb0
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [esp + 4]
xor edx, edx
mov dword [eax], edx
lea eax, [esp + 0x10]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebp, dword [esp + 0x14]
call sub.kernel32.dll_GetCurrentProcessId
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
xor edi, edi
mov ebx, dword [esp + 0xc]
shr ebx, 0x10
mov eax, ebx
shl eax, 0x10
mov ebx, eax
mov eax, edi
shl eax, 0x10
sub ebx, eax
mov eax, ebx
xor edx, edx
div ebp
imul ebp
mov ebx, eax
push 4
push 0x3000
push ebp
push ebx
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
test esi, esi
je 0x4b4dca
cmp esi, ebx
je 0x4b4dca
push 0x8000
push 0
push esi
call sub.kernel32.dll_VirtualFree_1
inc edi
jmp 0x4b4e42
test esi, esi
jne 0x4b4e4b
push 0x1c
lea eax, [esp + 0x38]
push eax
push ebx
call sub.kernel32.dll_VirtualQuery_1
cmp dword [esp + 0x40], 0x118
jb 0x4b4e3f
mov eax, dword [esp + 0x48]
and eax, 4
cmp eax, 4
jne 0x4b4e3f
mov eax, dword [esp + 8]
xor edx, edx
xor eax, 0x23456789
xor edx, 0xabcdef01
cmp edx, dword [ebx + 4]
jne 0x4b4e3f
cmp eax, dword [ebx]
jne 0x4b4e3f
mov eax, dword [esp + 8]
xor edx, edx
xor eax, 0x10fedcba
xor edx, 0x98765432
cmp edx, dword [ebx + 0x114]
jne 0x4b4e3f
cmp eax, dword [ebx + 0x110]
jne 0x4b4e3f
lea eax, [ebx + 8]
mov edx, dword [esp]
movzx ecx, byte [eax]
inc ecx
call fcn.00403c38
je 0x4b4e4b
inc edi
xor ebx, ebx
cmp edi, 0x14
jle 0x4b4d83
xor eax, eax
test esi, esi
je 0x4b4eb1
cmp esi, ebx
jne 0x4b4ecd
mov eax, dword [esp + 8]
xor edx, edx
xor eax, 0x23456789
xor edx, 0xabcdef01
mov dword [ebx], eax
mov dword [ebx + 4], edx
lea eax, [ebx + 8]
mov edx, dword [esp]
call fcn.00403b8c
mov eax, dword [esp + 8]
xor edx, edx
xor eax, 0x10fedcba
xor edx, 0x98765432
mov dword [ebx + 0x110], eax
mov dword [ebx + 0x114], edx
mov dword [ebx + 0x108], 1
lea eax, [ebx + 0x118]
mov edx, dword [esp + 4]
mov dword [edx], 1
jmp 0x4b4ecd
test ebx, ebx
je 0x4b4ecd
inc dword [ebx + 0x108]
lea eax, [ebx + 0x118]
mov edx, dword [esp + 4]
mov ecx, dword [ebx + 0x108]
mov dword [edx], ecx
add esp, 0x50
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4b75ac
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b776c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x24
call fcn.00403ca8
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x14]
mov dword [0x565fc4], eax
mov eax, dword [ebp - 0xc]
mov dword [0x565fc8], eax
mov eax, dword [ebp - 0x24]
mov dword [0x565fcc], eax
mov eax, dword [0x567b24]
cmp dword [eax], 2
sete byte [0x565af4]
push 0x4b7778
call sub.kernel32.dll_GetModuleHandleA_2
lea edx, [ebp - 4]
call fcn.004b894c
cmp byte [0x565af4], 0
jne 0x4b7638
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.004b897c
test al, al
je 0x4b7638
mov eax, dword [ebp - 0x4c]
mov dword [0x695b78], eax
jmp 0x4b763f
xor eax, eax
mov dword [0x695b78], eax
call fcn.004b7324
and eax, 0x7f
cmp eax, 0x10
ja case.0x4b7650.0
jmp dword [eax*4 + 0x4b7657]
mov byte [0x565ae0], 1
jmp case.0x4b7650.0
mov byte [0x565ae4], 1
jmp case.0x4b7650.0
mov byte [0x565ae8], 1
jmp case.0x4b7650.0
mov byte [0x565aec], 1
jmp case.0x4b7650.0
mov byte [0x565af0], 1
jmp case.0x4b7650.0
mov byte [0x565af8], 1
mov byte [0x565afc], 1
jmp case.0x4b7650.0
mov byte [0x565af8], 1
mov byte [0x565b00], 1
jmp case.0x4b7650.0
mov byte [0x565af8], 1
mov byte [0x565b00], 1
mov byte [0x565b04], 1
jmp case.0x4b7650.0
mov byte [0x565b08], 1
jmp case.0x4b7650.0
mov byte [0x565b0c], 1
jmp case.0x4b7650.0
mov byte [0x565b10], 1
jmp case.0x4b7650.0
mov byte [0x565b14], 1
jmp case.0x4b7650.0
mov byte [0x565b18], 1
jmp case.0x4b7650.0
mov byte [0x565b1c], 1
jmp case.0x4b7650.0
mov byte [0x565b20], 1
jmp case.0x4b7650.0
mov byte [0x565b24], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b7773
lea eax, [ebp - 4]
call fcn.00405544
ret
Function at 0x4b7be8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
cmp dword [ebp - 8], 0
jbe 0x4b7c9c
lea eax, [ebp - 0xc]
push eax
push 0x40
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x4b7c9c
xor eax, eax
push ebp
push 0x4b7c95
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, ebx
mov ecx, dword [ebp - 8]
call fcn.00403370
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
sub eax, 0x10
je 0x4b7c5f
sub eax, 0x10
je 0x4b7c5f
sub eax, 0x20
je 0x4b7c5f
sub eax, 0x40
jne 0x4b7c72
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b7c9c
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
ret
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, dword [ebp - 8]
sete al
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4b866c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
test dl, dl
je 0x4b8681
add esp, 0xfffffff0
call fcn.0040496c
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 8]
xor edx, edx
mov eax, ebx
call fcn.00404618
movzx edx, si
mov eax, dword [ebp - 8]
call fcn.0040c9a4
mov edi, eax
mov dword [ebx + 0x10], edi
cmp edi, 0xffffffff
jne 0x4b86af
call fcn.00411790
and si, 0xf
cmp si, 2
jne 0x4b86c5
mov esi, 8
mov edi, 1
jmp 0x4b86cf
mov esi, 2
mov edi, 4
push 0
push 0
push 0
push esi
push 0
mov eax, dword [ebx + 0x10]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebx + 0x14], eax
cmp dword [ebx + 0x14], 0
jne 0x4b8708
mov eax, ebx
call fcn.004b87cc
mov ecx, dword [0x567258]
mov dl, 1
mov eax, dword [0x4b84bc]
call fcn.004b5738
call fcn.00404ebc
push 0
push 0
push 0
push edi
mov eax, dword [ebx + 0x14]
push eax
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
test esi, esi
jne 0x4b873c
mov eax, ebx
call fcn.004b87cc
mov ecx, dword [0x5678b0]
mov dl, 1
mov eax, dword [0x4b8520]
call fcn.004b5738
call fcn.00404ebc
push 0
mov eax, dword [ebx + 0x10]
push eax
call sub.kernel32.dll_GetFileSize_1
cmp eax, 0xffffffff
jne 0x4b8770
push esi
call sub.kernel32.dll_UnmapViewOfFile
mov eax, ebx
call fcn.004b87cc
mov ecx, dword [0x567604]
mov dl, 1
mov eax, dword [0x4b8520]
call fcn.004b5738
call fcn.00404ebc
mov ecx, eax
mov edx, esi
mov eax, ebx
call fcn.0041ef78
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4b8792
call fcn.004049c4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x4b8928
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
test ebx, ebx
je 0x4b8946
push ebx
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4b893e
test al, 0x10
je 0x4b8942
xor eax, eax
jmp 0x4b8948
mov al, 1
pop ebx
ret
xor eax, eax
pop ebx
ret

Function at 0x4b897c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4b8a23
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
mov eax, esi
call fcn.004059e4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jbe 0x4b8a0d
lea eax, [ebp - 4]
mov edx, edi
call fcn.00405c74
mov eax, dword [ebp - 4]
push eax
push edi
mov eax, dword [ebp - 0x10]
push eax
mov eax, esi
call fcn.004059e4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4b8a0d
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4b8a34
mov eax, dword [ebp - 4]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4b8a0d
cmp dword [ebp - 0xc], 0x34
jne 0x4b8a0d
mov bl, 1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b8a2a
lea eax, [ebp - 4]
call fcn.00405544
ret

Function at 0x4ba3ac
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
mov ebx, eax
xor esi, esi
push 0x40
push ebx
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x4ba3eb
mov eax, ebx
cmp word [eax], 0x5a4d
jne 0x4ba3eb
cmp dword [eax + 0x3c], 0
je 0x4ba3eb
mov esi, dword [eax + 0x3c]
add esi, ebx
push 0xf8
push esi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x4ba3e9
cmp dword [esi], 0x4550
je 0x4ba3eb
xor esi, esi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4ba3f0
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
mov ebx, eax
xor esi, esi
push 0x40
push ebx
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x4ba42f
mov eax, ebx
cmp word [eax], 0x5a4d
jne 0x4ba42f
cmp dword [eax + 0x3c], 0
je 0x4ba42f
mov esi, dword [eax + 0x3c]
add esi, ebx
push 0x108
push esi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x4ba42d
cmp dword [esi], 0x4550
je 0x4ba42f
xor esi, esi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4c2d38
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, eax
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
jmp 0x4c2d51
mov eax, dword [0x567538]
mov eax, dword [eax]
call fcn.004681c0
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
cmp esi, eax
ja 0x4c2d45
pop esi
pop ebx
ret