joyce8/EMBER2024-capa huggingface dataset:
Function at 0x499220
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e9d80
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x50e74c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x499257
mov eax, dword [esi]
jmp 0x499259
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x499278
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x499282
mov eax, dword [esi]
jmp 0x499284
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
je 0x499375
cmp dword [esi + 0x14], 8
jb 0x4992a0
mov eax, dword [esi]
jmp 0x4992a2
mov eax, esi
push eax
lea ecx, [esp + 0x18]
call fcn.004029f0
mov dword [esp + 0x38], 0
lea eax, [esp + 0x14]
cmp dword [esp + 0x28], 8
push 0
cmovae eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
test al, al
sete al
mov byte [esp + 0x13], al
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x4992f8
push dword [esp + 0x14]
call fcn.004c4eaa
mov al, byte [esp + 0x17]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], cx
test al, al
jne 0x499375
cmp dword [esi + 0x14], 8
jb 0x49931d
mov eax, dword [esi]
jmp 0x49931f
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x499264
cmp dword [esi + 0x14], 8
jb 0x499336
mov esi, dword [esi]
push esi
lea ecx, [esp + 0x18]
call fcn.004029f0
mov dword [esp + 0x38], 1
and edi, 0xffffb1af
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
push edi
cmovae eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402a90
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x499390
Capabilities:
Get common file path

Disassembly:
sub esp, 0x624
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 0x620], eax
cmp dword [0x511030], 0
push esi
mov esi, ecx
je 0x4993de
cmp esi, 0x511020
je 0x4993c6
push 0xffffffffffffffff
push 0
push 0x511020
call fcn.00403000
mov al, 1
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.004c4eaf
add esp, 0x624
ret
xor eax, eax
push 0x20a
push eax
mov word [esp + 0xc], ax
lea eax, [esp + 0xe]
push eax
call fcn.004cb700
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x4994bd
xor eax, eax
push 0x410
push eax
mov word [esp + 0x216], ax
mov word [esp + 0x218], ax
lea eax, [esp + 0x21a]
push eax
call fcn.004cb700
add esp, 0xc
lea eax, [esp + 0x210]
push 0x208
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x499499
test eax, eax
je 0x499499
add eax, eax
cmp eax, 0x412
jae 0x4994d5
xor ecx, ecx
mov word [esp + eax + 0x210], cx
lea eax, [esp + 0x210]
push eax
mov ecx, esi
call fcn.00402ac0
mov al, 1
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.004c4eaf
add esp, 0x624
ret
lea eax, [esp + 4]
mov ecx, esi
push eax
call fcn.00402ac0
mov al, 1
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.004c4eaf
add esp, 0x624
ret
mov ecx, dword [esp + 0x624]
xor al, al
pop esi
xor ecx, esp
call fcn.004c4eaf
add esp, 0x624
ret
call fcn.004c58a8
int3

Function at 0x4994e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
xor eax, eax
push esi
push edi
push 0x20a
push eax
mov word [esp + 0x14], ax
mov edi, edx
lea eax, [esp + 0x16]
mov esi, ecx
push eax
call fcn.004cb700
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x499524
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x49952c
mov esi, dword [esi]
lea eax, [esp + 0xc]
push eax
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4995b6
xor eax, eax
mov word [esp + 0x216], ax
cmp word [esp + 0xc], ax
jne 0x499579
xor ecx, ecx
lea eax, [esp + 0xc]
push ecx
push eax
mov ecx, ebx
call fcn.00403120
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004c4eaf
add esp, 0x210
ret
lea ecx, [esp + 0xc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x499580
sub ecx, edx
lea eax, [esp + 0xc]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.00403120
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004c4eaf
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c4eaf
add esp, 0x210
ret
Function at 0x499940
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x50
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x54]
push ebx
push esi
mov esi, dword [esp + 0x60]
mov ebx, edx
push edi
cdq
mov edi, ecx
push edx
push eax
lea ecx, [esp + 0x18]
call fcn.004951c0
add esp, 8
cmp esi, edi
je 0x49997c
push 0xffffffffffffffff
push 0
push edi
mov ecx, esi
call fcn.00403000
push 1
push 0x4fe554
mov ecx, esi
call fcn.004794f0
cmp word [esp + 0x10], 0
jne 0x499996
xor ecx, ecx
jmp 0x4999af
lea ecx, [esp + 0x10]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4999a0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.004794f0
push 1
push 0x4fe550
mov ecx, esi
call fcn.004794f0
push 0xffffffffffffffff
push 0
push ebx
mov ecx, esi
call fcn.004033c0
cmp dword [esi + 0x14], 8
jb 0x4999de
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
pop edi
sete al
mov ecx, dword [esp + 0x50]
pop esi
pop ebx
xor ecx, esp
call fcn.004c4eaf
add esp, 0x50
ret

Function at 0x499af0
Capabilities:
Read file on windows

Disassembly:
mov edx, ecx
mov eax, dword [edx]
test eax, eax
jne 0x499afd
xor al, al
ret 0xc
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x499af8
cmp dword [eax], 0xffffffff
je 0x499af8
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [edx]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne al
ret 0xc
Function at 0x49a550
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e9fc7
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x50e74c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov esi, dword [esp + 0x20]
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push esi
mov word [edi], ax
call fcn.00403000
mov dword [esp + 0x18], 0
lea ecx, [edi + 0x18]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x18]
push eax
call fcn.00403000
mov byte [esp + 0x18], 1
lea ecx, [edi + 0x30]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x30]
push eax
call fcn.00403000
mov byte [esp + 0x18], 2
lea ecx, [edi + 0x48]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x48]
push eax
call fcn.00403000
mov byte [esp + 0x18], 3
lea ecx, [edi + 0x60]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x60]
push eax
call fcn.00403000
mov byte [esp + 0x18], 4
lea ecx, [edi + 0x78]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x78]
push eax
call fcn.00403000
mov byte [esp + 0x18], 5
lea ecx, [edi + 0x90]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x90]
push eax
call fcn.00403000
mov byte [esp + 0x18], 6
lea ecx, [edi + 0xa8]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0xa8]
push eax
call fcn.00403000
mov byte [esp + 0x18], 7
lea ecx, [edi + 0xc0]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0xc0]
push eax
call fcn.00403000
mov byte [esp + 0x18], 8
lea ecx, [edi + 0xd8]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0xd8]
push eax
call fcn.00403000
mov dword [esp + 0x18], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x49bb30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ea258
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
mov eax, dword [0x50e74c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
call fcn.0049ad40
mov dword [esp + 0x30], 0
cmp dword [esp + 0x1c], 0
jne 0x49bb7c
xor bl, bl
jmp 0x49bb87
lea ecx, [esp + 0xc]
call fcn.00495e60
mov bl, al
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x49bba2
push dword [esp + 0xc]
call fcn.004c4eaa
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov word [esp + 0xc], ax
mov al, bl
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004c4eaf
add esp, 0x2c
ret
Function at 0x49f220
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ea8b3
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push edi
mov eax, dword [0x50e74c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
cmp dword [ecx + 0xc0], 0
je 0x49f390
lea edi, [ecx + 0xb0]
mov ecx, edi
call fcn.00499220
push 4
call fcn.004c59cf
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 0x38], 0
test esi, esi
je 0x49f294
mov dword [esi], 0
mov dword [esi], 0xffffffff
jmp 0x49f296
xor esi, esi
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x28], esi
mov dword [esp + 0x38], 1
test esi, esi
je 0x49f363
cmp dword [edi + 0x14], 8
jb 0x49f2ba
mov edi, dword [edi]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x49f363
mov dword [esp + 0xc], 0
call fcn.0049f530
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x10], eax
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x49f30d
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
lea ecx, [esp + 0x1c]
push ecx
push eax
call edi
lea eax, [esp + 0x14]
xorps xmm0, xmm0
push eax
movlpd qword [esp + 0x18], xmm0
call fcn.004c8743
mov eax, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x49f363
push 0
lea ecx, [esp + 0x10]
push ecx
push 8
lea ecx, [esp + 0x28]
push ecx
push eax
call edi
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x49f363
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x49f363
mov dword [esi], 0xffffffff
mov dword [esp + 0x38], 0xffffffff
test esi, esi
je 0x49f390
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x49f387
test eax, eax
je 0x49f387
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push esi
call fcn.004c4eaa
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004c4eaf
add esp, 0x30
ret

Function at 0x49f4b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e5ca9
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x50e74c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 8], 0
xor eax, eax
mov esi, dword [esp + 0x1c]
add ecx, 0x30
push 0xffffffffffffffff
push eax
push ecx
mov dword [esi + 0x14], 7
mov ecx, esi
mov dword [esi + 0x10], 0
mov word [esi], ax
call fcn.00403000
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 4
Function at 0x4a52b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4eb44f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x50e74c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov dword [esp + 0x14], eax
mov dword [esi + 0x2c], 7
mov dword [esi + 0x28], eax
mov word [esi + 0x18], ax
mov byte [esp + 0x14], 1
mov dword [esi + 0x44], 7
mov dword [esi + 0x40], eax
mov word [esi + 0x30], ax
mov byte [esp + 0x14], 2
mov dword [esi + 0x5c], 7
mov dword [esi + 0x58], eax
mov word [esi + 0x48], ax
mov byte [esp + 0x14], 3
mov dword [esi + 0x74], 7
mov dword [esi + 0x70], eax
mov word [esi + 0x60], ax
mov byte [esp + 0x14], 4
mov dword [esi + 0x8c], 7
mov dword [esi + 0x88], eax
mov word [esi + 0x78], ax
mov byte [esp + 0x14], 5
push 0x35c
push eax
lea eax, [esi + 0x98]
push eax
call fcn.004cb700
add esp, 0xc
xor eax, eax
mov dword [esi + 0x90], eax
mov word [esi + 0x94], ax
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x4a7790
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4eb862
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push esi
push edi
mov eax, dword [0x50e74c]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
mov dword [esp + 0x238], 0
xor eax, eax
mov esi, dword [esp + 0x240]
mov ebx, dword [esp + 0x244]
mov edi, dword [esp + 0x248]
mov dword [esp + 0x10], 0
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov dword [esp + 0x14], esi
mov word [esi], ax
mov dword [esp + 0x238], eax
push 0x208
push eax
mov word [esp + 0x28], ax
lea eax, [esp + 0x2a]
push eax
mov dword [esp + 0x1c], 1
call fcn.004cb700
add esp, 0xc
mov dword [esp + 0x18], 0x208
cmp dword [edi + 0x14], 8
mov dword [esp + 0x1c], 1
jb 0x4a7848
mov edi, dword [edi]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a78c0
mov eax, dword [esp + 0x18]
cmp eax, 0x104
ja 0x4a7887
add eax, eax
cmp eax, 0x20a
jae 0x4a7882
xor ecx, ecx
mov word [esp + eax + 0x20], cx
jmp 0x4a7891
call fcn.004c58a8
xor eax, eax
mov word [esp + 0x228], ax
cmp word [esp + 0x20], 0
jne 0x4a789d
xor ecx, ecx
jmp 0x4a78b3
lea ecx, [esp + 0x20]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a78a4
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x24]
mov ecx, esi
push eax
call fcn.00403120
mov eax, esi
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.004c4eaf
add esp, 0x22c
ret 0xc
Function at 0x4a8920
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4eb253
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x50e74c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov esi, dword [esp + 0x20]
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push esi
mov word [edi], ax
call fcn.00403000
mov dword [esp + 0x18], 0
lea ecx, [edi + 0x18]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x18]
push eax
call fcn.00403000
mov byte [esp + 0x18], 1
mov eax, dword [esi + 0x30]
mov dword [edi + 0x30], eax
mov ax, word [esi + 0x34]
mov word [edi + 0x34], ax
mov dword [esp + 0x18], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x4a89d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4eba0e
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x50e74c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov esi, dword [esp + 0x20]
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push esi
mov word [edi], ax
call fcn.00403000
mov dword [esp + 0x18], 0
lea ecx, [edi + 0x18]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x18]
push eax
call fcn.00403000
mov byte [esp + 0x18], 1
lea ecx, [edi + 0x30]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x30]
push eax
call fcn.00403000
mov dword [esp + 0x18], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x4c2da0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov eax, ecx
xorps xmm0, xmm0
push edi
lea edi, [eax + 8]
mov dword [esp + 0x10], eax
push 1
lea eax, [esp + 0x28]
movlpd qword [esp + 0x24], xmm0
push eax
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp + 0x20], esi
cmp esi, 0xffffffff
jne 0x4c2e0e
call ebx
test eax, eax
je 0x4c2e0a
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004c4eaf
mov esp, ebp
pop ebp
ret 8
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
jne 0x4c2e32
call ebx
test eax, eax
jne 0x4c2df1
mov eax, dword [esp + 0x1c]
xor ecx, ecx
add ecx, dword [esp + 0xc]
push 0
adc eax, 0
add ecx, dword [ebp + 8]
adc eax, dword [ebp + 0xc]
push eax
push ecx
mov ecx, edi
call fcn.004987a0
test eax, eax
sete bl
test bl, bl
je 0x4c2e61
mov eax, dword [esp + 0x10]
mov byte [eax + 0x34], 1
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push dword [esp + 0x28]
mov ecx, edi
movlpd qword [esp + 0x18], xmm0
push esi
call fcn.00498190
test al, al
je 0x4c2e87
test bl, bl
je 0x4c2e87
mov cl, 1
jmp 0x4c2e89
xor cl, cl
xor edx, edx
mov eax, 0x80004005
test cl, cl
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
cmovne eax, edx
pop ebx
xor ecx, esp
call fcn.004c4eaf
mov esp, ebp
pop ebp
ret 8

Function at 0x4c35d0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x4c35fc
lea eax, [esi + 1]
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004c4eaf
add esp, 8
ret 4
push edi
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push dword [ecx + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4c3628
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4c3628
xor cl, cl
jmp 0x4c363a
mov ecx, dword [esp + 8]
xor eax, eax
add eax, edi
mov dword [esi], eax
adc ecx, 0
mov dword [esi + 4], ecx
mov cl, 1
xor eax, eax
test cl, cl
mov ecx, dword [esp + 0xc]
pop edi
sete al
pop esi
xor ecx, esp
call fcn.004c4eaf
add esp, 8
ret 4
Function at 0x4c3660
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ebeeb
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
push edi
mov eax, dword [0x50e74c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
push 0x34
call fcn.004c59cf
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 0x30], 0
test esi, esi
je 0x4c36cc
push 0x34
push 0
push esi
call fcn.004cb700
add esp, 0xc
mov ecx, esi
call fcn.004c3330
mov esi, eax
jmp 0x4c36ce
xor esi, esi
mov dword [esp + 0x30], 0xffffffff
lea eax, [edi + 0xc]
push ecx
push 3
push 3
push SysReAllocString
push eax
lea ecx, [esi + 0x18]
call fcn.00498000
test al, al
jne 0x4c3700
test esi, esi
je 0x4c36fc
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
xor eax, eax
jmp 0x4c3742
lea eax, [esp + 0xc]
xorps xmm0, xmm0
push eax
lea ecx, [edi + 8]
movlpd qword [esp + 0x10], xmm0
call fcn.00498090
test al, al
je 0x4c36f0
lea ecx, [esp + 0x14]
xorps xmm0, xmm0
push ecx
push 0
push dword [esp + 0x18]
movlpd qword [esp + 0x20], xmm0
lea ecx, [esi + 8]
mov eax, dword [esi + 8]
push dword [esp + 0x18]
call dword [eax + 0x14]
test eax, eax
jne 0x4c36f4
lea eax, [esi + 8]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004c4eaf
mov esp, ebp
pop ebp
ret

Function at 0x4c3c40
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 4], eax
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ebp, ecx
push edi
mov edi, dword [esp + 0x1c]
mov ecx, 0x100000
mov dword [ebx], 0
jmp 0x4c3c70
cmp esi, 0x100000
mov dword [esp + 0x10], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x14]
push ecx
push eax
push edi
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10]
test eax, eax
setne al
add dword [ebx], ecx
test al, al
je 0x4c3cca
test ecx, ecx
je 0x4c3cb3
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x4c3c70
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004c4eaf
add esp, 8
ret 0xc
mov ecx, dword [esp + 0x14]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c4eaf
add esp, 8
ret 0xc