joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478d10
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cc7ae
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x502054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], 0
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebp - 4], 0
sub esp, 8
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x38], 1
call fcn.00479080
push 0
push 0
mov eax, dword [eax + 8]
call eax
mov edi, eax
test edi, edi
je 0x478eea
push 0
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x28]
call fcn.0047ab80
mov dword [ebp - 4], 1
lea esi, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x34]
cmovae esi, dword [ebp - 0x28]
sub esp, 8
call fcn.00479080
push esi
push edi
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x478ede
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
cmp word [esi], 0
je 0x478ede
lea eax, [ebp - 0x30]
mov dword [ebp - 0x3c], eax
call fcn.00456f20
mov ecx, eax
test ecx, ecx
je 0x478f08
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
push esi
call fcn.00460eb0
test al, al
jne 0x478e2f
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x478e16
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x30]
call fcn.00461210
mov byte [ebp - 4], 3
push dword [ebp - 0x30]
mov dword [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 4
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + 8]
je 0x478e80
mov dword [ebp - 0x44], edi
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
mov dword [ebp - 0x48], edi
push eax
call fcn.00461130
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x2c]
mov dword [edi + 4], eax
mov byte [ebp - 4], 4
add dword [ebx + 4], 8
jmp 0x478e8c
lea eax, [ebp - 0x30]
mov ecx, ebx
push eax
push edi
call fcn.0047bf20
mov byte [ebp - 4], 1
lea eax, [ebp - 0x30]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x478eb5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
lea edx, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x478ec0
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2]
add esi, 2
cmp word [esi], cx
jne 0x478de0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00460b90
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a9913
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00456c70
int3
Function at 0x47d4c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ccf18
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x502054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [edi], vtable.CAttrBase.0
mov dword [edi + 4], esi
mov dword [edi + 0x18], edx
mov eax, dword [edx + 8]
mov ax, word [eax + 8]
mov word [edi + 8], ax
mov eax, dword [edx + 8]
mov eax, dword [eax + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [edx + 8]
mov eax, dword [eax + 0x14]
mov dword [edi + 0x10], eax
mov eax, dword [edx + 8]
mov eax, dword [eax + 0x20]
mov dword [edi + 0x14], eax
mov dword [ebp - 4], 0
mov dword [edi], vtable.CAttrNonResident.0
mov dword [edi + 0x20], vtable.CSList_struct_tagDataRun_Entry_.0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x24], 0
mov byte [ebp - 4], 1
push dword [edi + 0xc]
mov dword [edi + 0x1c], esi
call fcn.004a9926
add esp, 4
mov dword [edi + 0x38], eax
mov ecx, edi
call fcn.0047d6b0
mov dword [edi + 0x34], eax
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x47e060
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd067
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x502054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebx], vtable.CAttrBase.0
mov dword [ebx + 4], esi
mov dword [ebx + 0x18], edx
mov eax, dword [edx + 8]
mov ax, word [eax + 8]
mov word [ebx + 8], ax
mov eax, dword [edx + 8]
mov eax, dword [eax + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [edx + 8]
mov eax, dword [eax + 0x14]
mov dword [ebx + 0x10], eax
mov eax, dword [edx + 8]
mov eax, dword [eax + 0x20]
mov dword [ebx + 0x14], eax
mov dword [ebp - 4], 0
mov dword [ebx], vtable.CAttrResident.0
mov dword [ebx + 0x1c], esi
movzx eax, word [esi + 0x14]
add eax, esi
mov dword [ebx + 0x20], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x24], eax
mov dword [ebp - 4], 1
mov dword [ebx + 0x28], vtable.CSList_class_CIndexEntry_.0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x2c], 0
mov byte [ebp - 4], 2
mov ecx, dword [ebx + 0x20]
mov dword [ebx], vtable.CAttr_IndexRoot.1.0
mov dword [ebx + 0x28], vtable.CAttr_IndexRoot.0
mov dword [ebx + 0x3c], ecx
cmp dword [ecx], 0x30
jne 0x47e1f0
mov esi, dword [ecx + 0x10]
add esi, 0x10
add esi, ecx
movzx eax, word [esi + 8]
mov dword [ebp + 8], eax
cmp eax, dword [ecx + 0x14]
ja 0x47e1f0
push 0x1c
call fcn.004a9d6b
mov edi, eax
add esp, 4
mov dword [ebp + 0xc], edi
mov byte [ebp - 4], 3
mov dword [edi], vtable.CFileName.0
mov dword [edi + 0x10], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov byte [ebp - 4], 4
mov dword [edi], vtable.CIndexEntry.0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], esi
cmp word [esi + 0xa], 0
je 0x47e1a1
lea eax, [esi + 0x10]
mov ecx, edi
mov dword [edi + 4], eax
call fcn.0047dd20
mov byte [ebp - 4], 2
push 8
call fcn.004a9d6b
add esp, 4
mov dword [eax + 4], edi
mov dword [eax], 0
mov ecx, dword [ebx + 0x34]
test ecx, ecx
jne 0x47e1c4
mov dword [ebx + 0x30], eax
jmp 0x47e1c6
mov dword [ecx], eax
inc dword [ebx + 0x2c]
mov dword [ebx + 0x34], eax
test byte [esi + 0xc], 2
jne 0x47e1f0
movzx eax, word [esi + 8]
mov ecx, dword [ebp + 8]
add esi, eax
movzx eax, word [esi + 8]
add ecx, eax
mov eax, dword [ebx + 0x3c]
mov dword [ebp + 8], ecx
cmp ecx, dword [eax + 0x14]
jbe 0x47e144
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4808b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd71d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x502054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x11], dl
mov ebx, ecx
mov dword [ebp - 4], 0
mov dword [0x515094], 0x81d0
lea ecx, [ebp - 0x2c]
call fcn.00484490
mov byte [ebp - 4], 1
push 0
call fcn.004b3d28
add esp, 4
mov edi, eax
cmp byte [ebp - 0x11], 0
je 0x4809d5
mov dword [ebp - 0x18], 0
sub esp, 8
lea ecx, [ebp - 0x38]
call fcn.0047a010
mov ecx, eax
mov byte [ebp - 4], 2
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0
mov eax, dword [ebx]
push dword [eax]
mov eax, dword [ecx + 8]
call eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x18]
xor eax, 0x33
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00485890
mov byte [ebp - 4], 3
push dword [eax]
call fcn.004b4741
add esp, 4
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.004608f0
lea eax, [esi + 0x3f480]
cmp edi, eax
jge 0x4809b7
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00484820
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
push 0x4ee540
push 0x64
lea eax, [ebp - 0x1c]
push eax
call fcn.00495520
add esp, 0x10
mov byte [ebp - 4], 4
push eax
push dword [ebp - 0x18]
jmp 0x480a24
push 0xa
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00485890
mov byte [ebp - 4], 5
push dword [eax]
call fcn.004b4741
add esp, 4
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.004608f0
lea eax, [esi + 0x3f480]
cmp edi, eax
jl 0x480999
push edi
push 0x4ee540
push 0x64
lea eax, [ebp - 0x1c]
push eax
call fcn.00495520
add esp, 0x10
mov byte [ebp - 4], 6
push eax
push 0xa
lea ecx, [ebp - 0x2c]
call fcn.004857c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.004608f0
push 0xc
call fcn.004a9d6b
add esp, 4
mov edi, eax
mov dword [ebp - 0x1c], edi
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov byte [ebp - 4], 7
mov byte [ebp - 4], 1
xor esi, esi
mov dword [ebp - 0x20], esi
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
sub eax, ecx
sar eax, 2
cmp esi, eax
jae 0x480a92
lea eax, [ecx + esi*4]
push eax
mov ecx, edi
call fcn.0047aa90
inc esi
jmp 0x480a73
push 0
push 0
push edi
push 0x480130
push 0
push 0
call fcn.004b3b0d
add esp, 0x18
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00484820
mov dword [ebp - 4], 0xffffffff
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 0x484e10
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce295
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x502054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], edi
mov byte [ebp - 0x11], 0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00486210
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 0xd], 0
jne 0x484e6d
mov ebx, dword [ebp + 8]
cmp ebx, dword [eax + 0x10]
jb 0x484e6d
cmp eax, dword [edi]
jne 0x484f4d
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
call fcn.00485bf0
call fcn.00456f20
mov ecx, eax
test ecx, ecx
je 0x485035
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 1
mov ebx, dword [ebp + 8]
push ebx
push str.CREATE_TABLE_scanned2__x_file_id_INTEGER__file_time_INTEGER__detection_name_TEXT__t_on_INTEGER__
lea eax, [ebp - 0x18]
push eax
call fcn.00485bd0
add esp, 0xc
mov byte [ebp - 4], 2
lea esi, [edi + 8]
mov dword [ebp - 0x1c], esi
push dword [ebp - 0x18]
mov ecx, dword [esi]
call fcn.004900e0
mov dword [ebp - 4], 1
jmp 0x484eeb
push ebx
push str.CREATE_INDEX_fileIndex_ON_scanned2__x_file_id__file_time__
lea eax, [ebp - 0x18]
push eax
call fcn.00485bd0
add esp, 0xc
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x18]
push esi
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx]
call fcn.004900e0
mov dword [ebp - 4], 1
jmp 0x484f2e
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x484f4d
mov ecx, dword [esi]
mov eax, dword [ecx]
push esi
call dword [eax + 4]
mov dword [ebp - 4], 7
lea ecx, [ebp + 8]
call fcn.00460a60
mov byte [ebp - 4], 8
push ebx
push str.SELECT_detection_name_FROM_scanned2__x_WHERE_file_id____AND_file_time____AND_t_on_____
lea eax, [ebp + 8]
push eax
call fcn.00485bd0
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [edi + 8]
call fcn.00490070
mov byte [ebp - 4], 9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 1
lea ecx, [ebp - 0x38]
call fcn.00490000
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 2
lea ecx, [ebp - 0x38]
call fcn.00490000
push 0
call fcn.004b3d28
add esp, 4
sub eax, 0x15180
push eax
push 3
lea ecx, [ebp - 0x38]
call fcn.0048ffc0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x38]
call fcn.0048fda0
mov byte [ebp - 4], 0xa
cmp byte [ebp - 0x24], 0
jne 0x484fed
sub esp, 8
lea ecx, [ebp - 0x2c]
call fcn.0048f8c0
push eax
mov ecx, dword [ebp + 0x1c]
call fcn.0046a0b0
mov byte [ebp - 0x11], 1
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2c]
call fcn.0048f7a0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x38]
call fcn.0048fb60
mov byte [ebp - 4], 7
lea ecx, [ebp + 8]
call fcn.004608f0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 0x80004005
call fcn.00456c70
int3
Function at 0x4885b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf035
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x502054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x515018]
test eax, eax
je 0x4885e8
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0
push 0x514fc0
push 0x489890
push 0
push 0
call fcn.004b3b0d
add esp, 0x18
mov dword [0x515018], eax
call fcn.004949b0
mov edx, 0x4eeda4
lea ecx, [ebp - 0x18]
call fcn.004752b0
mov dword [ebp - 4], 0
call fcn.00456f20
mov ecx, eax
test ecx, ecx
je 0x48875d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
push 0x4eedb4
call fcn.0046a6c0
test al, al
jne 0x48865e
push 2
push 0x4eedb4
lea ecx, [ebp - 0x10]
call fcn.0046a930
mov byte [ebp - 4], 2
sub esp, 8
lea ecx, [ebp - 0x14]
call fcn.0048a680
mov byte [ebp - 4], 3
lea eax, [ebp - 0x10]
push 0x514f70
push eax
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.00495a50
add esp, 8
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4886a9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4886c7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4886e6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00487e50
call fcn.00487fb0
call fcn.00488100
lea ecx, [ebp - 0x24]
call fcn.00484490
mov dword [ebp - 4], 7
push ecx
lea ecx, [ebp - 0x24]
call fcn.00484bf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00484820
call fcn.004a8640
mov esi, eax
test esi, esi
je 0x48874b
mov ecx, esi
call fcn.004a8760
test al, al
jne 0x48874b
push 0
mov ecx, esi
call fcn.004a8450
test al, al
je 0x48874b
push 0x487690
mov ecx, esi
call fcn.004a84d0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00456c70
int3
Function at 0x489860
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x58]
test eax, eax
je 0x489873
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0
push esi
push 0x489890
push 0
push 0
call fcn.004b3b0d
add esp, 0x18
mov dword [esi + 0x58], eax
pop esi
ret
Function at 0x48bb10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf89e
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x502054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], 0
call fcn.00456f20
mov ecx, eax
test ecx, ecx
je 0x48bcff
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
push ecx
mov dword [ebp - 0x30], 1
call fcn.0048b600
mov edi, dword [0x514f90]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x4c]
mov ecx, 0x514f90
push eax
call fcn.0048c1f0
mov ecx, dword [ebp - 0x44]
cmp byte [ecx + 0xd], 0
jne 0x48bba8
mov eax, dword [ebp + 0xc]
cmp eax, dword [ecx + 0x10]
jge 0x48bbaa
mov ecx, edi
cmp ecx, edi
je 0x48bcdf
lea eax, [ebp + 0xc]
mov ecx, 0x514f90
push eax
call fcn.0048bd10
push eax
lea ecx, [ebp - 0x28]
call fcn.004603b0
mov dword [ebp - 4], 2
xor ebx, ebx
cmp dword [ebp - 0x18], ebx
jbe 0x48bc14
mov ecx, dword [ebp + 0xc]
shl ecx, 4
add ecx, dword [ebp + 0xc]
movzx eax, cx
mov dword [ebp - 0x34], eax
add eax, ebx
lea esi, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
movzx edi, ax
cmovae esi, dword [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
mov ax, word [esi + ebx*2]
xor ax, di
mov word [edx + ebx*2], ax
inc ebx
mov eax, dword [ebp - 0x34]
cmp ebx, dword [ebp - 0x18]
jb 0x48bbe6
mov esi, dword [ebp - 0x2c]
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
jb 0x48bc28
mov edx, dword [ebp - 0x28]
test edx, edx
jne 0x48bc28
xor ecx, ecx
jmp 0x48bc3f
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48bc30
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00461210
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
lea edi, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x38]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x3c]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
lea eax, [ecx + eax*2]
mov ecx, dword [edx]
cmp ecx, dword [esi]
je 0x48bc96
cmp cl, byte [esi]
jne 0x48bc9a
mov cl, byte [edx + 1]
cmp cl, byte [esi + 1]
jne 0x48bc9a
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
jne 0x48bc9a
mov cl, byte [edx + 3]
cmp cl, byte [esi + 3]
jne 0x48bc9a
xor edx, edx
jmp 0x48bc9f
sbb edx, edx
or edx, 1
mov ecx, eax
sub ecx, edi
test edx, edx
jne 0x48bcb7
and ecx, 0xfffffffe
push ecx
push edx
push edi
call fcn.004abb60
add esp, 0xc
jmp 0x48bcd0
inc ecx
xor edx, edx
shr ecx, 1
cmp edi, eax
cmova ecx, edx
test ecx, ecx
je 0x48bcd0
xor eax, eax
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00460b90
mov esi, dword [ebp - 0x2c]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a9913
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00456c70
int3
Function at 0x48c560
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
mov edi, ecx
xor ecx, ecx
mov dword [ebp - 0xc], edi
test esi, esi
je 0x48c624
cmp esi, 0x40
jb 0x48c60c
lea eax, [esi - 1]
lea edx, [esi - 1]
add eax, edi
add edx, ebx
cmp ebx, eax
ja 0x48c598
cmp edx, edi
jae 0x48c60c
movaps xmm2, xmmword [str.gggggggggggggggg]
lea edx, [edi + 0x30]
mov eax, esi
mov esi, edi
and eax, 0xffffffc0
sub esi, ebx
mov dword [ebp - 4], esi
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 4]
mov dword [ebp - 8], eax
lea eax, [ebx + 0x10]
nop word [eax + eax]
movups xmm0, xmmword [edx - 0x30]
lea edx, [edx + 0x40]
add ecx, 0x40
movaps xmm1, xmm2
lea eax, [eax + 0x40]
pxor xmm0, xmm2
movups xmmword [eax - 0x50], xmm0
movups xmm0, xmmword [edi + eax - 0x40]
pxor xmm0, xmm2
movups xmmword [eax - 0x40], xmm0
movups xmm0, xmmword [edx - 0x50]
pxor xmm0, xmm2
movups xmmword [eax - 0x30], xmm0
movups xmm0, xmmword [edx - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp ecx, dword [ebp - 8]
jb 0x48c5c0
mov edi, dword [ebp - 0xc]
mov dword [ebp + 8], ecx
cmp ecx, esi
jae 0x48c624
sub edi, ebx
lea eax, [ecx + ebx]
sub esi, ecx
mov cl, byte [eax + edi]
lea eax, [eax + 1]
xor cl, 0x67
mov byte [eax - 1], cl
sub esi, 1
jne 0x48c613
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x48c630
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push edi
push 0
push eax
push esi
mov edi, edx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48c65a
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], esi
je 0x48c66a
pop edi
mov eax, 0x1e
pop esi
mov esp, ebp
pop ebp
ret
push esi
mov edx, edi
mov ecx, edi
call fcn.0048c560
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x48cd20
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cfb2e
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x502054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 0x2c], 0
cmp dword [edi + 0x14], 8
jb 0x48cd5e
mov ecx, dword [edi]
mov eax, dword [edi + 0x10]
test eax, eax
je 0x48cd82
mov esi, ecx
nop word [eax + eax]
cmp word [esi], 0x5c
je 0x48cea0
add esi, 2
sub eax, 1
jne 0x48cd70
or esi, 0xffffffff
cmp esi, 0xffffffff
je 0x48ce83
nop
mov dword [ebp - 4], 0
inc esi
cmp dword [edi + 0x10], esi
mov ecx, esi
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
cmovb ecx, dword [edi + 0x10]
mov eax, edi
cmp dword [edi + 0x14], 8
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
jb 0x48cdc0
mov eax, dword [edi]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.004631a0
or dword [ebp - 0x2c], 1
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x48cdf8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x48ce02
mov ecx, dword [edi]
mov eax, dword [edi + 0x10]
cmp esi, eax
jae 0x48ce22
sub eax, esi
lea esi, [ecx + esi*2]
je 0x48ce22
cmp word [esi], 0x5c
je 0x48ceb1
add esi, 2
sub eax, 1
jne 0x48ce10
or esi, 0xffffffff
and dword [ebp - 0x2c], 0xfffffffe
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x48ce66
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x48ce5c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48cec2
push ecx
push edx
call fcn.004aa103
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp esi, 0xffffffff
jne 0x48cd90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a9913
mov esp, ebp
pop ebp
ret 4
test esi, esi
je 0x48cd82
sub esi, ecx
sar esi, 1
jmp 0x48cd85
test esi, esi
je 0x48ce22
sub esi, ecx
sar esi, 1
jmp 0x48ce25
call fcn.004b3474
int3