joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a9a10
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d12d0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x6d26f8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x4c], eax
mov esi, dword [0x6eac34]
mov dword [ebp - 0x40], esi
mov byte [ebp - 0x31], 0
lea eax, [esi + 0x24]
mov dword [ebp - 0x48], eax
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
lea edi, [esi + 4]
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x3c]
push edx
call fcn.004aa1c0
mov ebx, dword [edi + 0x18]
mov eax, dword [edi]
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x4a9a85
cmp ecx, eax
je 0x4a9a8a
call fcn.0059471a
cmp dword [ebp - 0x38], ebx
jne 0x4a9b87
lea eax, [ebp + 8]
push eax
push edi
lea ebx, [ebp - 0x20]
call fcn.004aa0c0
lea ecx, [ebp - 0x38]
push ecx
call fcn.0040b610
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
push edx
push str.CREATE_TABLE_scanned__x_file_id_INTEGER__file_time_INTEGER__detection_name_TEXT__
lea edi, [ebp - 0x38]
call fcn.00421d40
add esp, 8
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [esi]
call fcn.004a8760
mov dword [ebp - 4], 1
jmp 0x4a9b14
mov edx, dword [ebp + 8]
push edx
push str.CREATE_INDEX_fileIndex_ON_scanned__x_file_id__file_time__
lea edi, [ebp - 0x38]
call fcn.00421d40
add esp, 8
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [esi]
call fcn.004a8760
mov dword [ebp - 4], 1
jmp 0x4a9b7b
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.0040b720
mov byte [ebp - 4], 8
lea edx, [ebp - 0x38]
push edx
call fcn.0040b610
mov byte [ebp - 4], 9
mov eax, dword [ebp + 8]
push eax
push str.SELECT_detection_name_FROM_scanned__x_WHERE_file_id____AND_file_time____
lea edi, [ebp - 0x38]
call fcn.00421d40
add esp, 8
mov ecx, dword [ebp - 0x38]
push ecx
lea edx, [ebp - 0x44]
push edx
mov ecx, dword [esi]
call fcn.004a86e0
mov byte [ebp - 4], 0xa
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
lea eax, [ebp - 0x44]
call fcn.004a8600
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
push 2
lea eax, [ebp - 0x44]
call fcn.004a8600
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x44]
push edx
call fcn.004a8370
mov byte [ebp - 4], 0xb
cmp byte [ebp - 0x20], 0
jne 0x4a9c10
lea esi, [ebp - 0x28]
call fcn.004a7ed0
mov edx, eax
mov ebx, dword [ebp - 0x4c]
call fcn.0040b780
mov byte [ebp - 0x31], 1
mov byte [ebp - 4], 0xa
lea esi, [ebp - 0x28]
call fcn.004a7e00
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x44]
call fcn.004a8140
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x38]
call fcn.0040b720
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebp - 0x31]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0059393a
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4af6e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5d2a69
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x10], 0
mov eax, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
push edx
push ecx
push eax
mov eax, dword [esp + 0x30]
push esi
push eax
call fcn.004af760
mov dword [esp + 0x14], 0
mov dword [esp + 8], 1
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x14

Function at 0x4b2670
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5cdd42
mov eax, dword fs:[0]
push eax
sub esp, 0x814
mov eax, dword [0x6d26f8]
xor eax, esp
mov dword [esp + 0x810], eax
push esi
push edi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0x820]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x828], esi
mov edi, ecx
push edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], esi
call fcn.0040b7e0
mov dword [esp + 0x828], esi
lea eax, [esp + 0xc]
push eax
push 0x20119
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], 1
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4b2741
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x20]
push edx
push esi
push esi
push str.ProgramFilesDir
push eax
mov dword [esp + 0x28], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4b2736
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x4b2736
shr eax, 1
xor ecx, ecx
lea edx, [esp + 0x1c]
mov word [esp + eax*2 + 0x1c], cx
call fcn.0040b9c0
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [esp + 0x820]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x810]
xor ecx, esp
call fcn.0059393a
add esp, 0x820
ret
Function at 0x4b2770
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5d4514
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x6d26f8]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push edi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0x224]
mov dword fs:[0], eax
push esi
mov dword [esp + 0x18], esi
call fcn.0041d3b0
mov dword [esp + 0x22c], 0
lea eax, [esp + 0xc]
push 0x2a
push eax
call fcn.0049a8e0
add esp, 8
mov byte [esp + 0x22c], 1
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x4b2819
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
mov ebx, str.WindowsApps
call fcn.004176f0
add esp, 8
mov byte [esp + 0x22c], 2
mov ebx, eax
mov edi, esi
call fcn.0041ce00
mov byte [esp + 0x22c], 1
lea ecx, [esp + 0x10]
call fcn.0040b950
lea ecx, [esp + 0x10]
call fcn.004b2670
mov byte [esp + 0x22c], 3
lea edi, [esp + 0xc]
call fcn.0040daa0
mov byte [esp + 0x22c], 1
lea ecx, [esp + 0x10]
call fcn.0040b950
mov ecx, dword [esp + 0xc]
cmp dword [ecx - 0xc], 0
je 0x4b2885
mov edx, edi
push edx
lea eax, [esp + 0x14]
push eax
mov ebx, str.WindowsApps
call fcn.004176f0
add esp, 8
mov byte [esp + 0x22c], 4
mov ebx, eax
mov edi, esi
call fcn.0041ce00
mov byte [esp + 0x22c], 1
lea ecx, [esp + 0x10]
call fcn.0040b950
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x22]
push edx
mov word [esp + 0x24], cx
call fcn.005985f0
add esp, 0xc
push 0x104
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [esp + 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b28b6
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x18]
mov ebx, eax
push ecx
lea eax, [esp + 0x10]
call fcn.0040f6d0
mov edx, dword [esp + 0xc]
cmp dword [edx - 0xc], 0
je 0x4b2918
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ebx, str.InfusedApps
call fcn.004176f0
add esp, 8
mov byte [esp + 0x22c], 5
mov ebx, eax
mov edi, esi
call fcn.0041ce00
mov byte [esp + 0x22c], 1
lea ecx, [esp + 0x10]
call fcn.0040b950
mov byte [esp + 0x22c], 0
lea ecx, [esp + 0xc]
call fcn.0040b950
mov dword [esp + 0x22c], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0059393a
add esp, 0x224
ret
Function at 0x4b4e90
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5dda9a
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x10], 0
mov eax, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
push edx
push ecx
mov ecx, dword [esp + 0x34]
push eax
push esi
call fcn.004b4f10
add esp, 0x14
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 1
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x4b7d10
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5cadac
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
push esi
call fcn.0041d3b0
xor edi, edi
mov dword [esp + 0x1c], edi
lea eax, [esi + 0x18]
push eax
call fcn.0041d3b0
mov byte [esp + 0x1c], 1
lea eax, [esi + 0x50]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esp + 0xc], eax
mov dword [eax], 0xffffffff
mov byte [esp + 0x1c], 2
mov dword [eax + 4], edi
mov byte [esp + 0x1c], 3
add eax, 8
mov dword [esp + 0x10], eax
mov dword [eax], edi
mov dword [esp + 0x1c], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 4
Function at 0x4b81c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5df32a
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
push esi
mov dword [esp + 0x24], 0
call fcn.004b3c70
add esp, 0x1c
mov dword [esp + 0x14], 0
mov dword [esp + 8], 1
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x4b8430
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d43f2
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x1b], 0
call fcn.004d0a90
xor edi, edi
mov dword [esp + 0x38], edi
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x4b8558
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp dword [esp + 0x18], edi
ja 0x4b84a9
cmp esi, 0x10
jbe 0x4b8558
mov eax, dword [esp + 0x28]
push 4
push str.MSDB
push eax
call fcn.00598b64
add esp, 0xc
test eax, eax
jne 0x4b8558
mov ecx, dword [esp + 0x28]
add esi, 0xfffffffc
push esi
add ecx, 4
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004a7970
add esp, 0xc
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x14]
cmp dword [eax], edi
je 0x4b852a
cmp dword [eax + 4], edi
je 0x4b852a
lea esi, [ebx + 8]
mov edi, esi
call fcn.004b8100
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov edi, dword [ebx]
push 1
push 0
push ecx
push eax
call fcn.004987f0
add esp, 0x10
test al, al
je 0x4b852a
mov ebx, dword [ebx]
push ebx
mov eax, esi
call fcn.004b7db0
test al, al
je 0x4b852a
mov byte [esp + 0x13], 1
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x14]
dec dword [eax + 8]
mov esi, eax
add eax, 8
cmp dword [eax], 0
jne 0x4b8558
xor edi, edi
call fcn.0043b870
mov eax, dword [esp + 0x14]
push eax
call fcn.0059392f
add esp, 4
mov dword [esp + 0x14], edi
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x20]
push ecx
call fcn.004d0c10
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4ba800
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x4bcce0
Capabilities:
Hash data with md5

Disassembly:
push 0xffffffffffffffff
push 0x5d4351
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x6d26f8]
xor eax, esp
mov dword [esp + 0x64], eax
push ebp
push esi
push edi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x88]
mov dword [esp + 0x14], 0
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x8c]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], 0x67452301
mov dword [esp + 0x24], 0xefcdab89
mov dword [esp + 0x28], 0x98badcfe
mov dword [esp + 0x2c], 0x10325476
call fcn.00441e90
add esp, 4
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.004bcc70
mov esi, 1
mov dword [esp + 0x80], esi
push eax
push ebp
call fcn.0049a030
add esp, 8
mov dword [esp + 0x14], esi
mov byte [esp + 0x80], 0
mov eax, dword [esp + 0x10]
dec dword [eax + 8]
mov esi, eax
add eax, 8
cmp dword [eax], 0
jne 0x4bcdbc
xor edi, edi
call fcn.0043b870
mov edx, dword [esp + 0x10]
push edx
call fcn.0059392f
add esp, 4
mov dword [esp + 0x10], edi
mov eax, ebp
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0059393a
add esp, 0x74
ret

Function at 0x4bcde0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
mov edi, eax
mov ebx, ecx
test edi, edi
jbe 0x4bce25
push ebp
jmp 0x4bcdf0
mov edx, dword [esi + 4]
movzx ebp, byte [ebx]
mov ecx, dword [esi]
mov eax, edx
shr eax, 0x18
shld edx, ecx, 8
xor eax, ebp
and eax, 0xff
xor edx, dword [eax*8 + 0x69371c]
shl ecx, 8
xor ecx, dword [eax*8 + 0x693718]
dec edi
inc ebx
mov dword [esi], ecx
mov dword [esi + 4], edx
test edi, edi
ja 0x4bcdf0
pop ebp
pop edi
pop ebx
ret
Function at 0x4bf150
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5cabf0
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push esi
push edi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi]
xor ebx, ebx
push eax
mov byte [esp + 0x1b], bl
call fcn.004c09b0
add esp, 4
cmp eax, ebx
jne 0x4bf309
push 0x54
lea eax, [esp + 0x34]
push ebx
push eax
call fcn.005985f0
mov eax, dword [esi]
add esp, 0xc
push ebx
push ebx
lea ecx, [esp + 0x34]
push ebx
push ecx
call fcn.004c0170
add esp, 0x10
test eax, eax
jne 0x4bf2e3
mov edx, dword [ebp + 0xc]
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push edx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x90], ebx
cmp esi, 0xffffffff
je 0x4bf293
mov edi, 0x10000
lea ebx, [esp + 0x20]
call fcn.00438410
mov byte [esp + 0x90], 1
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx]
mov edi, dword [ebp + 8]
mov ecx, dword [ebx + 4]
push eax
mov eax, dword [edi]
call fcn.004c0b80
add esp, 4
test eax, eax
jle 0x4bf264
push 0
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], eax
mov ecx, dword [ebx]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4bf264
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4bf264
add dword [esp + 0x18], eax
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
push eax
mov eax, dword [edi]
call fcn.004c0b80
add esp, 4
test eax, eax
jg 0x4bf22a
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov byte [esp + 0x90], 0
add dword [ebx + 8], 0xffffffff
jne 0x4bf293
xor edi, edi
mov esi, ebx
call fcn.0043b870
push ebx
call fcn.0059392f
mov esi, dword [esp + 0x2c]
add esp, 4
mov dword [esp + 0x20], edi
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp ecx, dword [esp + 0x4c]
jne 0x4bf2b2
cmp eax, dword [esp + 0x50]
jne 0x4bf2b2
mov byte [esp + 0x17], 1
jmp 0x4bf2cc
cmp esi, 0xffffffff
je 0x4bf2ba
push esi
call edi
mov edx, dword [ebp + 0xc]
push edx
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x90], 0xffffffff
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x4bf2e3
push eax
call edi
mov eax, dword [ebp + 8]
mov edi, dword [eax]
call fcn.004c0e00
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov al, bl
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4c1000
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5cdbcf
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
push esi
call fcn.0041d3b0
xor ecx, ecx
mov dword [esp + 0x18], ecx
lea eax, [esi + 0x30]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], ecx
mov dword [esp + 8], eax
mov dword [eax], 0xffffffff
mov byte [esp + 0x18], 1
mov dword [eax + 4], ecx
mov byte [esp + 0x18], 2
add eax, 8
mov dword [esp + 0xc], eax
mov dword [eax], ecx
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret 4
Function at 0x4c15f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cdb28
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6d26f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
call fcn.0040b7e0
mov byte [ebp - 4], 1
push str..X:
lea edi, [ebp - 0x14]
call fcn.00421d60
add esp, 4
mov ecx, dword [ebp + 8]
push ecx
mov ebx, 4
call fcn.004380b0
push 0x250
call fcn.005939b5
add esp, 4
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x4c1673
push 0x250
push ebx
push edi
call fcn.005985f0
add esp, 0xc
jmp 0x4c1675
xor edi, edi
push 0x250
push ebx
push edi
call fcn.005985f0
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push closesocket
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x4c1787
mov esi, 0x200
mov dword [ebp - 0x18], esi
push ebx
lea eax, [ebp - 0x18]
push eax
push esi
lea ecx, [edi + 0x20]
push ecx
mov edx, dword [edi]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c1787
cmp dword [ebp - 0x18], esi
jne 0x4c1787
push 4
lea eax, [edi + 0x23]
push eax
push str.NTFS
call fcn.00598b64
add esp, 0xc
test eax, eax
jne 0x4c1787
mov dword [edi + 4], 1
movzx ecx, byte [edi + 0x2d]
movzx edx, word [edi + 0x2b]
imul ecx, edx
mov dword [edi + 0x224], ecx
mov eax, dword [edi + 0x60]
cmp eax, 0x80
jae 0x4c1713
imul eax, ecx
jmp 0x4c1721
mov ecx, 0x100
sub ecx, eax
mov eax, 1
shl eax, cl
mov dword [edi + 0x220], eax
mov dword [edi + 0x228], ebx
mov eax, dword [edi + 0x224]
push ebx
push eax
mov ecx, dword [edi + 0x54]
push ecx
mov edx, dword [edi + 0x50]
push edx
call fcn.00599090
mov dword [edi + 0x238], eax
mov dword [edi + 0x23c], edx
mov dword [edi + 0x240], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0x22c], ebx
mov ax, word [ebp + 8]
mov word [edi + 0x14], ax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.0040b950
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.0059392f
add esp, 4
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.0040b950
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c1870
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
test edi, edi
je 0x4c1961
cmp dword [edi + 4], 1
jne 0x4c1961
mov eax, dword [edi + 0x238]
mov ecx, dword [edi + 0x23c]
push 0
lea edx, [esp + 0x20]
push edx
push eax
mov dword [esp + 0x24], eax
mov eax, dword [edi]
push eax
mov dword [esp + 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [edi + 0x224]
push ecx
call fcn.005928f7
mov ecx, dword [edi]
add esp, 4
push 0
mov esi, eax
mov eax, dword [edi + 0x224]
lea edx, [esp + 0x18]
push edx
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, esi
call fcn.004c1b90
cmp dword [esi], 0x454c4946
jne 0x4c197a
movzx ecx, word [esi + 0x14]
movzx eax, word [esi + 0x28]
mov edx, 8
add ecx, esi
mov ebx, edx
cmp dx, ax
jb 0x4c1902
movzx ebx, ax
mov ax, word [esi + 0x16]
mov ebp, dword [esp + 0x10]
xor edx, edx
mov word [esi + 6], ax
test ebx, ebx
jle 0x4c1956
mov eax, dword [ecx]
test eax, eax
jl 0x4c1956
cmp eax, 0x100
jg 0x4c1956
sub eax, 0x20
je 0x4c196c
sub eax, 0x60
je 0x4c1936
sub eax, 0x30
jne 0x4c1938
mov dword [esp + 0x10], ecx
jmp 0x4c1938
mov ebp, ecx
mov eax, dword [ecx + 4]
test eax, eax
jbe 0x4c1948
cmp eax, dword [esi + 0x18]
jae 0x4c1948
add ecx, eax
jmp 0x4c1951
cmp byte [ecx + 8], 1
jne 0x4c1951
add ecx, 0x48
inc edx
cmp edx, ebx
jl 0x4c1914
test ebp, ebp
je 0x4c1961
cmp dword [esp + 0x10], 0
jne 0x4c197e
xor eax, eax
xor edx, edx
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov eax, 3
xor edx, edx
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov ebp, dword [esp + 0x10]
mov ecx, dword [ebp + 0x30]
xor edx, edx
mov eax, ecx
div dword [edi + 0x220]
mov dword [edi + 0x240], esi
mov dword [edi + 0x22c], ecx
pop esi
mov dword [edi + 0x230], eax
mov eax, dword [ebp + 0x30]
mov edx, dword [ebp + 0x34]
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x4c1ab0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
mov edx, dword [esp + 0x18]
push ebx
push ebp
push edi
mov edi, ecx
mov ecx, dword [esp + 0x28]
push ecx
xor ebp, ebp
push edx
mov ebx, eax
mov eax, dword [edi + 0x224]
push ebp
push eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
call fcn.00599090
push ebp
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], edx
mov edx, dword [edi]
push eax
push edx
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, ebx
shr eax, 0xa
cmp eax, 1
jb 0x4c1b47
mov dword [esp + 0x24], eax
shl eax, 0xa
mov dword [esp + 0x14], eax
jmp 0x4c1b10
mov ecx, dword [edi + 0x224]
mov edx, dword [edi]
push 0
lea eax, [esp + 0x14]
push eax
shl ecx, 0xa
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
push ecx
mov ecx, esi
add ebp, eax
call fcn.004c1d50
add esp, 4
sub dword [esp + 0x24], 1
jne 0x4c1b10
sub ebx, dword [esp + 0x14]
mov eax, dword [edi]
imul ebx, dword [edi + 0x224]
push 0
lea edx, [esp + 0x14]
push edx
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
push ecx
mov ecx, esi
call fcn.004c1d50
mov edx, dword [esp + 0x14]
add esp, 4
pop edi
lea eax, [edx + ebp]
pop ebp
pop ebx
add esp, 0x14
ret