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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565fd6
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x5c3678]
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 0x4c243c
or eax, 0xffffffff
jmp 0x4c24ee
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.00544310
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.00420800
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.00423950
or eax, 0xffffffff
push eax
lea ecx, [ebp - 0x21c]
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 1
call fcn.004cb890
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 0x4c24ec
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.0053c15d
mov esp, ebp
pop ebp
ret 4

Function at 0x4c2510
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565fd6
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x5c3678]
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 0x4c254c
or eax, 0xffffffff
jmp 0x4c25fa
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.00544310
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.00420800
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.00423950
or eax, 0xffffffff
push eax
lea ecx, [ebp - 0x21c]
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 1
call fcn.004cb890
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 0x4c25f8
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.0053c15d
mov esp, ebp
pop ebp
ret
Function at 0x4c2d00
Capabilities:
Access peb ldr_data
Get ntdll base address
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56cdec
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x5c3678]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
mov eax, dword [0x5c3678]
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.00544310
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.00420800
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
mov ecx, str.value
call fcn.00421320
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x28]
mov byte [esp + 0x244], 1
call fcn.00423950
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.004b7e50
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x20]
lea ecx, [esp + 0x1c]
call fcn.004cb8f0
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 0x4c2e03
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 0x4c2e2b
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 0x4c2e5b
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 0x4c2e57
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x4c2ea3
call fcn.004cb9e0
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 0x4c2e78
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 0x4c2e9f
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.0053c15d
mov esp, ebp
pop ebp
ret
Function at 0x4c2f70
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56881c
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x5c3678]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x206
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x216]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x218], ax
call fcn.00544310
mov edx, dword [edi + 4]
mov dword [ebp - 0x230], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 4], ebx
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x218]
push str.SELECT_name_FROM_sqlite_master_WHERE_typetable_AND_name_s_
push eax
mov ecx, 0x104
call fcn.00420800
add esp, 0x18
lea ecx, [ebp - 0x228]
push ecx
mov ecx, str.name
call fcn.00421320
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 1
call fcn.00423950
sub esp, 0xc
mov eax, esp
mov dword [ebp - 0x234], esp
lea ecx, [ebp - 0x228]
push ecx
push eax
mov byte [ebp - 4], 2
call fcn.004b7e50
lea edx, [ebp - 0x230]
push edx
lea edx, [ebp - 0x224]
lea ecx, [ebp - 0x220]
call fcn.004cb8f0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c306b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c3091
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x220]
cmp dword [eax - 0xc], ebx
jne 0x4c30bf
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c30bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x4c30ff
mov esi, dword [esi]
push esi
push eax
call fcn.0053cead
add esp, 8
test eax, eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x220]
sete byte [ebp - 0x219]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c30f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp - 0x219]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053c15d
mov esp, ebp
pop ebp
ret
Function at 0x4c3120
Capabilities:
Access peb ldr_data
Get ntdll base address
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56cd8c
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x5c3678]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push esi
mov eax, dword [0x5c3678]
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.00544310
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.00420800
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
mov ecx, str.value
call fcn.00421320
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x30]
mov byte [esp + 0x24c], 1
call fcn.00423950
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.004b7e50
lea edx, [esp + 0x2c]
push edx
lea edx, [esp + 0x28]
lea ecx, [esp + 0x24]
call fcn.004cb8f0
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 0x4c3226
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 0x4c324e
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 0x4c327e
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 0x4c327a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x4c32b9
call fcn.004cbae0
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 0x4c32b5
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.0053c15d
mov esp, ebp
pop ebp
ret
Function at 0x4c33c0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5687c1
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x5c3678]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
push 0x206
mov edi, ecx
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.00544310
mov edx, dword [esi + 4]
xor eax, eax
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x224], eax
mov dword [ebp - 4], eax
mov edi, dword [edi]
push edi
push str.misc
lea eax, [ebp - 0x218]
push str.SELECT__FROM__s_WHERE_prop___s_
push eax
mov ecx, 0x104
call fcn.00420800
add esp, 0x1c
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, str.value
call fcn.00421320
lea edx, [ebp - 0x220]
push edx
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 1
call fcn.00423950
sub esp, 0xc
mov eax, esp
mov dword [ebp - 0x22c], esp
lea ecx, [ebp - 0x21c]
push ecx
push eax
mov byte [ebp - 4], 2
call fcn.004b7e50
lea edx, [ebp - 0x228]
push edx
mov edi, ebx
lea edx, [ebp - 0x220]
call fcn.004cb230
test al, al
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x220]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c34c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call 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 0x4c34ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053c15d
mov esp, ebp
pop ebp
ret 4

Function at 0x4c40c0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x5c3678]
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.00544310
add esp, 0xc
lea ecx, [ebp - 0x110]
push ecx
call fcn.004c4cd0
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c4105
sub eax, edx
je 0x4c4186
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 0x4c4186
mov eax, dword [ebp - 0x134]
test al, 1
je 0x4c4186
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.0053c15d
mov esp, ebp
pop ebp
ret
Function at 0x4c4df0
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 0x4c4ef4
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4c4ef4
mov eax, dword [esi + 0x1008]
push ebx
push edi
mov edi, dword [ebp + 0xc]
cmp edi, eax
ja 0x4c4e52
push edi
lea ebx, [esi + 8]
push ebx
push ecx
call fcn.00545f90
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.00543850
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 0x4c4e93
test eax, eax
jbe 0x4c4e72
push eax
lea edx, [esi + 8]
push edx
push ecx
call fcn.00545f90
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 0x4c4ee2
mov eax, dword [ebp + 0xc]
test eax, eax
jbe 0x4c4ee2
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.004c4df0
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 0x4c5a30
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x561c56
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x5c3678]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [edi]
mov dword [esi], eax
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
mov edx, dword [edi + 8]
mov dword [esi + 8], edx
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
sub eax, 0x10
call fcn.00423cf0
add eax, 0x10
mov dword [esi + 0x10], eax
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x14]
sub eax, 0x10
call fcn.00423cf0
add eax, 0x10
mov dword [esi + 0x14], eax
mov byte [ebp - 4], 1
mov eax, dword [edi + 0x18]
sub eax, 0x10
call fcn.00423cf0
add eax, 0x10
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 0x1c]
mov dword [esi + 0x1c], ecx
mov edx, dword [edi + 0x20]
mov dword [esi + 0x20], edx
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov ecx, dword [edi + 0x28]
mov dword [esi + 0x28], ecx
mov edx, dword [edi + 0x2c]
mov dword [esi + 0x2c], edx
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4c5b90
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 0x4c5bd3
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 8
jb 0x4c5bd3
call fcn.004c4f00
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.004c4df0
cmp dword [ebp - 4], 0xffffffff
je 0x4c5c2f
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4c5bea
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 0x4c5c0b
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 0x4c5c21
push edi
lea edx, [ebp - 4]
push edx
push 4
push 0x583358
push eax
call ebx
mov esi, dword [esi + 4]
cmp esi, edi
je 0x4c5c2f
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 0x4c5cb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565e4b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5c3678]
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.0053d304
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
cmp eax, edi
je 0x4c5db4
push eax
call fcn.004c5e00
mov edi, eax
test edi, edi
je 0x4c5db4
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 2
lea edx, [edi + 0xc]
test esi, esi
jne 0x4c5d20
xor eax, eax
jmp 0x4c5d40
mov eax, esi
lea ecx, [eax + 2]
mov dword [ebp - 0x10], ecx
jmp 0x4c5d30
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c5d30
sub eax, dword [ebp - 0x10]
sar eax, 1
push eax
push esi
push edx
call fcn.00423be0
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
push edx
lea esi, [edi + 0x10]
push eax
call fcn.004c8ea0
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
push ecx
add esi, 8
push edx
call fcn.004c8ea0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
lea esi, [edi + 0x20]
push ecx
call fcn.004c8ea0
push edi
push 0
mov esi, 1
push 0x4c5c80
mov dword [edi + 8], esi
call fcn.00543cb6
add esp, 0xc
cmp eax, 0xffffffff
je 0x4c5d9b
xor ecx, ecx
mov dword [ebp - 0x10], esi
jmp 0x4c5da5
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 0
test ecx, ecx
je 0x4c5db4
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 0x4c5deb
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4c5deb
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 0x4c5deb
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 0x4c6040
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5c3678]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call fcn.00421d00
mov esi, eax
mov dword [ebp - 0x210], esi
test esi, esi
jne 0x4c6074
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053c15d
mov esp, ebp
pop ebp
ret
push ebx
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00544310
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 0x4c6146
push edi
lea edi, [ebp - 0x214]
call fcn.004c37a0
mov edx, dword [eax]
mov esi, 0x104
lea eax, [ebp - 0x20c]
pop edi
lea esp, [esp]
lea ecx, [esi + 0x7ffffefa]
test ecx, ecx
je 0x4c6112
movzx ecx, word [edx]
test cx, cx
je 0x4c6112
mov word [eax], cx
add eax, 2
add edx, 2
sub esi, 1
jne 0x4c60f0
jmp 0x4c6116
test esi, esi
jne 0x4c6119
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 0x4c6140
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.00421a20
test eax, eax
je 0x4c6163
cmp dword [esi + 0x18], 1
jne 0x4c6163
mov ebx, 1
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
xor ecx, ebp
pop esi
call fcn.0053c15d
mov esp, ebp
pop ebp
ret

Function at 0x4c6660
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 0x4c6678
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 0x4c6674
xor edx, edx
cmp edi, eax
sete dl
pop edi
mov eax, edx
ret

Function at 0x4c66a0
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 0x4c66bc
push edi
push eax
mov eax, dword [esi]
push eax
call fcn.00545f90
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 0x4c6701
test eax, eax
je 0x4c6701
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