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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567656
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x5c5678]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 8], 0
jne 0x4c3e3c
or eax, 0xffffffff
jmp 0x4c3eee
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.00545940
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x30]
push edx
push eax
push 0xffffffffffffffff
push str.activity
lea ecx, [ebp - 0x218]
push str.SELECT_COUNT_ROWID__FROM__s_WHERE_lang_IN__d__d__AND_type___d_
push ecx
mov ecx, 0x104
call fcn.00421fd0
mov edx, dword [esi + 4]
add esp, 0x24
mov dword [ebp - 0x224], edx
mov dword [ebp - 0x220], 0
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], 0
call fcn.00425130
or eax, 0xffffffff
push eax
lea ecx, [ebp - 0x21c]
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 1
call fcn.004cd2e0
mov esi, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c3eec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053d78d
mov esp, ebp
pop ebp
ret 4

Function at 0x4c3f10
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567656
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x5c5678]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 8], 0
jne 0x4c3f4c
or eax, 0xffffffff
jmp 0x4c3ffa
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.00545940
mov edx, dword [esi + 0x30]
push edx
push 0xffffffffffffffff
push str.activity
lea eax, [ebp - 0x218]
push str.SELECT_COUNT_ROWID__FROM__s_WHERE_lang_IN__d__d__
push eax
mov ecx, 0x104
call fcn.00421fd0
mov ecx, dword [esi + 4]
add esp, 0x20
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x220], 0
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], 0
call fcn.00425130
or eax, 0xffffffff
push eax
lea ecx, [ebp - 0x21c]
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 1
call fcn.004cd2e0
mov esi, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c3ff8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053d78d
mov esp, ebp
pop ebp
ret
Function at 0x4c4700
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56e54c
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x5c5678]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
mov eax, dword [0x5c5678]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
push 0x206
xor ebx, ebx
lea ecx, [esp + 0x2a]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x30], ax
call fcn.00545940
mov edx, dword [esi + 4]
add esp, 0xc
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ebx
push str.misc
lea eax, [esp + 0x28]
push str.SELECT__FROM__s_WHERE_prop__seq_
push eax
mov ecx, 0x104
mov dword [esp + 0x24c], ebx
call fcn.00421fd0
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
mov ecx, str.value
call fcn.00422af0
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x28]
mov byte [esp + 0x244], 1
call fcn.00425130
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x2c], esp
lea ecx, [esp + 0x20]
push ecx
push eax
mov byte [esp + 0x254], 2
call fcn.004b9830
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x20]
lea ecx, [esp + 0x1c]
call fcn.004cd340
mov byte [esp + 0x240], 4
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c4803
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x240], 5
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c482b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0xc]
cmp dword [edx - 0xc], ebx
jne 0x4c485b
lea eax, [edx - 0x10]
mov byte [esp + 0x240], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c4857
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x4c48a3
call fcn.004cd430
mov ecx, eax
and ecx, edx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
mov byte [esp + 0xb], 1
cmp ecx, 0xffffffff
jne 0x4c4878
mov byte [esp + 0xb], bl
mov byte [esp + 0x240], bl
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4c489f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [esp + 0xb]
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0053d78d
mov esp, ebp
pop ebp
ret
Function at 0x4c4b20
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56e4ec
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x5c5678]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push esi
mov eax, dword [0x5c5678]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
push 0x206
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 0x32]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x38], ax
call fcn.00545940
mov edx, dword [esi + 4]
add esp, 0xc
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ebx
push str.misc
lea eax, [esp + 0x30]
push str.SELECT__FROM__s_WHERE_prop__ver_
push eax
mov ecx, 0x104
mov dword [esp + 0x254], ebx
call fcn.00421fd0
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
mov ecx, str.value
call fcn.00422af0
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x30]
mov byte [esp + 0x24c], 1
call fcn.00425130
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x34], esp
lea ecx, [esp + 0x28]
push ecx
push eax
mov byte [esp + 0x25c], 2
call fcn.004b9830
lea edx, [esp + 0x2c]
push edx
lea edx, [esp + 0x28]
lea ecx, [esp + 0x24]
call fcn.004cd340
mov byte [esp + 0x248], 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c4c26
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x248], 5
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c4c4e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x14]
cmp dword [edx - 0xc], ebx
jne 0x4c4c7e
lea eax, [edx - 0x10]
mov byte [esp + 0x248], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c4c7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x4c4cb9
call fcn.004cd530
cmp eax, 0xffffffff
mov dword [esi + 0x20], eax
mov byte [esp + 0x248], bl
mov eax, dword [esp + 0x14]
setne byte [esp + 0x13]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c4cb5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0053d78d
mov esp, ebp
pop ebp
ret
Function at 0x4c5ac0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x5c5678]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x103
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call fcn.00545940
add esp, 0xc
lea ecx, [ebp - 0x110]
push ecx
call fcn.004c66d0
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c5b05
sub eax, edx
je 0x4c5b86
xor eax, eax
lea edx, [ebp - 0x134]
push edx
push eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x110]
push eax
mov dword [ebp - 0x134], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
je 0x4c5b86
mov eax, dword [ebp - 0x134]
test al, 1
je 0x4c5b86
and eax, 0xfffffffe
push eax
lea ecx, [ebp - 0x110]
push ecx
mov dword [ebp - 0x134], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d78d
mov esp, ebp
pop ebp
ret
Function at 0x4c67f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov edx, dword [esi + 4]
test edx, edx
je 0x4c68f4
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4c68f4
mov eax, dword [esi + 0x1008]
push ebx
push edi
mov edi, dword [ebp + 0xc]
cmp edi, eax
ja 0x4c6852
push edi
lea ebx, [esi + 8]
push ebx
push ecx
call fcn.005475b0
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
sub dword [esi + 0x1008], edi
mov eax, dword [esi + 0x1008]
push eax
lea ecx, [edi + esi + 8]
push ecx
push ebx
call fcn.00544e80
add esp, 0x18
pop edi
pop ebx
mov eax, 1
pop esi
pop ebp
ret 0xc
mov ebx, dword [esi + 0x100c]
cmp ebx, dword [esi + 0x1010]
jb 0x4c6893
test eax, eax
jbe 0x4c6872
push eax
lea edx, [esi + 8]
push edx
push ecx
call fcn.005475b0
add esp, 0xc
mov eax, dword [esi + 0x1008]
mov ecx, dword [ebp + 0x10]
pop edi
mov dword [ecx], eax
pop ebx
mov dword [esi + 0x1008], 0
mov eax, 1
pop esi
pop ebp
ret 0xc
push 0
lea ecx, [ebp + 0xc]
push ecx
mov ecx, 0x1000
sub ecx, eax
push ecx
lea eax, [eax + esi + 8]
push eax
push edx
mov dword [ebp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c68e2
mov eax, dword [ebp + 0xc]
test eax, eax
jbe 0x4c68e2
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
add dword [esi + 0x1008], eax
add dword [esi + 0x100c], eax
push ecx
push edi
push edx
mov ecx, esi
call fcn.004c67f0
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
pop edi
pop ebx
mov dword [eax], 0
xor eax, eax
pop esi
pop ebp
ret 0xc
xor eax, eax
pop esi
pop ebp
ret 0xc
Function at 0x4c7590
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 4]
push edi
xor edi, edi
cmp eax, edi
je 0x4c75d3
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 8
jb 0x4c75d3
call fcn.004c6900
lea eax, [ebp - 8]
push eax
push 4
lea ecx, [ebp - 4]
push ecx
mov ecx, esi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call fcn.004c67f0
cmp dword [ebp - 4], 0xffffffff
je 0x4c762f
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4c75ea
push edi
push edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0x100c], edi
mov eax, dword [esi + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
cmp eax, edi
je 0x4c760b
push edi
lea edx, [ebp - 4]
push edx
push 4
lea ecx, [ebp - 8]
push ecx
push eax
call ebx
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4c7621
push edi
lea edx, [ebp - 4]
push edx
push 4
push 0x585678
push eax
call ebx
mov esi, dword [esi + 4]
cmp esi, edi
je 0x4c762f
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c76b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5674cb
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5c5678]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x10]
mov esi, ecx
xor edi, edi
push 0x30
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
call fcn.0053e934
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
cmp eax, edi
je 0x4c77b4
push eax
call fcn.004c7800
mov edi, eax
test edi, edi
je 0x4c77b4
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 2
lea edx, [edi + 0xc]
test esi, esi
jne 0x4c7720
xor eax, eax
jmp 0x4c7740
mov eax, esi
lea ecx, [eax + 2]
mov dword [ebp - 0x10], ecx
jmp 0x4c7730
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c7730
sub eax, dword [ebp - 0x10]
sar eax, 1
push eax
push esi
push edx
call fcn.004253c0
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
push edx
lea esi, [edi + 0x10]
push eax
call fcn.004ca8a0
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
push ecx
add esi, 8
push edx
call fcn.004ca8a0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
lea esi, [edi + 0x20]
push ecx
call fcn.004ca8a0
push edi
push 0
mov esi, 1
push 0x4c7680
mov dword [edi + 8], esi
call fcn.005452e6
add esp, 0xc
cmp eax, 0xffffffff
je 0x4c779b
xor ecx, ecx
mov dword [ebp - 0x10], esi
jmp 0x4c77a5
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 0
test ecx, ecx
je 0x4c77b4
mov edx, dword [ecx]
mov eax, dword [edx]
push esi
call eax
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4c77eb
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4c77eb
mov eax, dword [edi]
mov edx, dword [eax]
mov ecx, edi
call edx
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4c77eb
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov eax, dword [ebp - 0x10]
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 0x4c7a40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5c5678]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call fcn.00423410
mov esi, eax
mov dword [ebp - 0x210], esi
test esi, esi
jne 0x4c7a74
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d78d
mov esp, ebp
pop ebp
ret
push ebx
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00545940
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.360NetBase.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4c7b46
push edi
lea edi, [ebp - 0x214]
call fcn.004c51a0
mov edx, dword [eax]
mov esi, 0x104
lea eax, [ebp - 0x20c]
pop edi
lea esp, [esp]
lea ecx, [esi + 0x7ffffefa]
test ecx, ecx
je 0x4c7b12
movzx ecx, word [edx]
test cx, cx
je 0x4c7b12
mov word [eax], cx
add eax, 2
add edx, 2
sub esi, 1
jne 0x4c7af0
jmp 0x4c7b16
test esi, esi
jne 0x4c7b19
sub eax, 2
xor edx, edx
mov word [eax], dx
mov eax, dword [ebp - 0x214]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c7b40
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x210]
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, esi
call fcn.004231c0
test eax, eax
je 0x4c7b63
cmp dword [esi + 0x18], 1
jne 0x4c7b63
mov ebx, 1
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
xor ecx, ebp
pop esi
call fcn.0053d78d
mov esp, ebp
pop ebp
ret

Function at 0x4c8060
Capabilities:
Get file size

Disassembly:
mov eax, dword [esi + 0xc]
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4c8078
xor eax, eax
pop edi
ret
mov ecx, dword [esi + 0xc]
push 1
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4c8074
xor edx, edx
cmp edi, eax
sete dl
pop edi
mov eax, edx
ret

Function at 0x4c80a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 4]
push edi
mov edi, dword [esi + 8]
sub edi, eax
je 0x4c80bc
push edi
push eax
mov eax, dword [esi]
push eax
call fcn.005475b0
add esp, 0xc
mov eax, dword [esi]
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, 0x1000
mov dword [esi + 4], eax
add eax, edi
sub edx, edi
push edx
push eax
mov dword [esi + 8], eax
mov eax, dword [esi + 0xc]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov eax, dword [ebp - 4]
pop edi
je 0x4c8101
test eax, eax
je 0x4c8101
add dword [esi + 8], eax
cmp eax, dword [ebp + 8]
sbb eax, eax
inc eax
mov esp, ebp
pop ebp
ret 4
add dword [esi + 8], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x4c81c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 4]
mov ecx, dword [esi]
cmp eax, ecx
je 0x4c81f4
push 0
lea edx, [ebp - 4]
push edx
sub eax, ecx
push eax
mov eax, dword [esi + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4c81fd
mov eax, dword [esi]
mov ecx, dword [esi + 4]
sub ecx, eax
cmp dword [ebp - 4], ecx
jne 0x4c81fd
mov dword [esi + 4], eax
mov eax, 1
mov esp, ebp
pop ebp
ret
mov edx, dword [esi]
mov dword [esi + 4], edx
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4ccdc0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x571670
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5c5678]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x5ce94c]
mov edx, dword [eax + 0xc]
xor edi, edi
mov ecx, 0x5ce94c
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
lea ebx, [ebx]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + edi*4]
lea eax, [esp + 0x1c]
push eax
call fcn.00425130
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 1
call fcn.004c0b30
test al, al
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x1c]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cce6d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x4cce99
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 0xc], 0
je 0x4cced8
inc dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x28]
call fcn.004b53b0
add esp, 8
test al, al
jne 0x4ccedc
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ccec1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
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
inc dword [esp + 0x14]
inc edi
cmp edi, 3
jl 0x4cce20
cmp dword [esp + 0x14], 0
je 0x4ccef4
cmp dword [esp + 0x18], 0
jne 0x4cce99
mov ecx, esi
call fcn.004c0df0
mov bl, al
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ccf25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
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 0x4ccf40
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x571670
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5c5678]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x5ce94c]
mov edx, dword [eax + 0xc]
xor edi, edi
mov ecx, 0x5ce94c
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
lea ebx, [ebx]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + edi*4]
lea eax, [esp + 0x1c]
push eax
call fcn.00425130
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 1
call fcn.004c0b30
test al, al
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x1c]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ccfed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x4cd019
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 0xc], 0
je 0x4cd058
inc dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x28]
call fcn.004b53b0
add esp, 8
test al, al
jne 0x4cd05c
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cd041
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
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
inc dword [esp + 0x14]
inc edi
cmp edi, 4
jl 0x4ccfa0
cmp dword [esp + 0x14], 0
je 0x4cd074
cmp dword [esp + 0x18], 0
jne 0x4cd019
mov ecx, esi
call fcn.004c0df0
mov bl, al
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cd0a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
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 0x4d28c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x5c5678]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x236]
push ecx
mov dword [ebp - 0x23c], 0
mov word [ebp - 0x238], ax
call fcn.00545940
mov ecx, 0xa
mov esi, 0x593df0
lea edi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
add esp, 0xc
lea edx, [ebp - 0x30]
push edx
push 0x5d1440
lea eax, [ebp - 0x238]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x238]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ebx
lea ecx, [ebp - 0x238]
test eax, eax
jne 0x4d2945
mov ecx, 0x582044
call fcn.00425130
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0053d78d
mov esp, ebp
pop ebp
ret