joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001700
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10014280
push 0x100073b0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [section..data]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor bl, bl
mov byte [ebp - 0x2d], bl
cmp dword [0x100ab54c], 0
je 0x100017db
mov dword [ebp - 4], 0
call fcn.100032e0
mov dword [ebp - 0x2c], 0x98e461ea
mov dword [ebp - 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov dword [ebp - 0x24], edx
push 0
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x2c]
push eax
push 0x222544
push dword [0x100ab54c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov bl, al
mov byte [ebp - 0x2d], bl
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0x10001650
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x100017bf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
jmp 0x100017db
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10003b02
mov esp, ebp
pop ebp
ret
Function at 0x10002070
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
push 0x208
mov dword [ebp - 0x41c], eax
mov edi, edx
lea eax, [ebp - 0x414]
mov dword [ebp - 0x420], ebx
push 0
push eax
mov dword [ebp - 0x424], esi
call fcn.10008730
add esp, 0xc
lea eax, [ebp - 0x414]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10008730
push esi
push ebx
lea eax, [ebp - 0x414]
push eax
push str._s_syswow64_s_s
lea eax, [ebp - 0x20c]
push 0x208
push eax
call section..text
add esp, 0x24
lea eax, [ebp - 0x20c]
xor bl, bl
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10002156
push 0
lea eax, [ebp - 0x418]
push eax
push 0x93b40
push dword [ebp - 0x41c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
movzx ebx, bl
mov eax, 1
push esi
cmovne ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20c]
test bl, bl
jne 0x100021fc
push 0x208
push 0
push eax
call fcn.10008730
push dword [ebp - 0x424]
lea eax, [ebp - 0x414]
push dword [ebp - 0x420]
push eax
push str._s_s_s
lea eax, [ebp - 0x20c]
push 0x208
push eax
call section..text
add esp, 0x24
lea eax, [ebp - 0x20c]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100021f2
push 0
lea eax, [ebp - 0x418]
push eax
push 0x93b40
push dword [ebp - 0x41c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
movzx ebx, bl
mov eax, 1
push esi
cmovne ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x1000220b
lea eax, [ebp - 0x20c]
push eax
push 0x208
push edi
call section..text
add esp, 0xc
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10003b02
mov esp, ebp
pop ebp
ret

Function at 0x10002390
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
test edi, edi
je 0x10002415
test esi, esi
je 0x10002415
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x10002415
sub esp, 0xc
mov ecx, esi
push edi
call fcn.10003a80
add esp, 0x10
test eax, eax
jne 0x10002400
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100023c0
sub eax, edx
mov edx, esi
sar eax, 1
add eax, eax
push eax
push ebx
sub esp, 8
call fcn.10002340
mov ecx, esi
mov ebx, eax
call fcn.10003910
test eax, eax
mov ecx, 0xc0000001
push edi
cmovne ebx, ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
push edi
mov ebx, 0xc000000d
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
pop edi
pop esi
mov eax, 0xc000000d
pop ebx
pop ebp
ret 4
Function at 0x100032e0
Capabilities:
Modify service
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 2
xor esi, esi
xor bl, bl
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x100033c8
push edi
push 0x37
push 0x10013f38
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x100033b1
push 0x2000
call fcn.1000419c
mov esi, eax
add esp, 4
test esi, esi
je 0x100033aa
lea eax, [ebp - 8]
push eax
push 0x2000
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test al, al
je 0x100033aa
cmp dword [esi + 4], 4
jne 0x10003371
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 3
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test al, al
je 0x100033aa
lea eax, [ebp - 0xc]
push eax
push 0x24
lea eax, [ebp - 0x30]
push eax
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test al, al
je 0x100033aa
cmp dword [ebp - 0x2c], 4
je 0x100033a8
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push 0xbb8
mov bl, al
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100033aa
mov bl, 1
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
test esi, esi
je 0x100033c8
push esi
call fcn.10004164
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.10003b02
mov esp, ebp
pop ebp
ret
Function at 0x100034e0
Capabilities:
Delete network filter via wfp api
Enumerate network filters via wfp api

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0
push 0
push 0xa
push 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.fwpuclnt.dll_FwpmEngineOpen0]
mov ebx, eax
test ebx, ebx
jne 0x100036bd
mov dword [esp + 0x10], eax
jmp 0x10003540
mov esi, dword [eax + 0x10014170]
lea eax, [esp + 0x24]
push 0x2c
push 0
push eax
call fcn.10008730
movdqu xmm0, xmmword [esi]
add esp, 0xc
mov dword [esp + 0x20], 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x34], 1
movdqu xmmword [esp + 0x24], xmm0
mov dword [esp + 0x38], 2
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x4c], 0xffffffff
push eax
push dword [esp + 0x1c]
call dword [sym.imp.fwpuclnt.dll_FwpmFilterCreateEnumHandle0]
mov ebx, eax
test ebx, ebx
jne 0x100036bd
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x1c]
push eax
push 0xffffffffffffffff
push dword [esp + 0x28]
push dword [esp + 0x24]
call dword [sym.imp.fwpuclnt.dll_FwpmFilterEnum0]
mov ebx, eax
test ebx, ebx
jne 0x1000369b
cmp dword [esp + 0x18], eax
je 0x1000369b
mov eax, dword [esp + 0x50]
test eax, eax
je 0x1000369b
xor edi, edi
test eax, eax
je 0x10003690
mov esi, dword [esp + 0x18]
mov esi, dword [esi + edi*4]
cmp dword [esi + 0x1c], 0
jne 0x10003685
push str.Stream_Edit
push dword [esi + 0x10]
call fcn.10004487
add esp, 8
test eax, eax
jne 0x1000366f
push str.Flow_Established_Callout
push dword [esi + 0x10]
call fcn.10004487
add esp, 8
test eax, eax
je 0x10003633
mov edx, dword [esi + 0x1c]
lea eax, [esi + 0x5c]
mov ecx, dword [esp + 0x14]
push eax
call fcn.100033e0
add esp, 4
test al, al
je 0x1000366f
push str.Filter
push dword [esi + 0x10]
call fcn.10004487
add esp, 8
test eax, eax
jne 0x1000366f
push 0x1001412c
push dword [esi + 0x10]
call fcn.10004487
add esp, 8
test eax, eax
jne 0x1000366f
push str.wb_fire_stream_callout
push dword [esi + 0x10]
call fcn.10004487
add esp, 8
test eax, eax
je 0x10003685
push dword [esi + 0x8c]
push dword [esi + 0x88]
push dword [esp + 0x1c]
call dword [sym.imp.fwpuclnt.dll_FwpmFilterDeleteById0]
inc edi
cmp edi, dword [esp + 0x50]
jb 0x100035e3
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.fwpuclnt.dll_FwpmFreeMemory0]
push dword [esp + 0x1c]
push dword [esp + 0x18]
call dword [sym.imp.fwpuclnt.dll_FwpmFilterDestroyEnumHandle0]
mov eax, dword [esp + 0x10]
add eax, 4
mov dword [esp + 0x10], eax
cmp eax, 0x20
jb 0x10003540
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100036cc
push eax
call dword [sym.imp.fwpuclnt.dll_FwpmEngineClose0]
mov ecx, dword [esp + 0x54]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10003b02
mov esp, ebp
pop ebp
ret
Function at 0x10003840
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], 1
mov esi, ecx
call fcn.10003770
add esp, 4
test eax, eax
jne 0x10003900
cmp dword [ebp - 0x24], 4
je 0x10003900
push ebx
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x20], eax
push str.ServicesActive
push eax
movdqu xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x100038b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003b02
mov esp, ebp
pop ebp
ret
push edi
push 0x30
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x100038d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
jmp 0x100038f9
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x100038ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100038f0
xor esi, esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push ebx
call edi
pop edi
mov eax, esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10003b02
mov esp, ebp
pop ebp
ret
Function at 0x10003910
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
mov eax, ecx
push edi
mov dword [esp + 0x1c], eax
call fcn.10003840
test eax, eax
jne 0x10003a62
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount64]
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x18], ecx
mov dword [esp + 0xc], edx
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, edx
or eax, ecx
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 0
jne 0x1000397f
call ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], edx
push 1
xor edi, edi
xorps xmm0, xmm0
push str.ServicesActive
push edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], edi
movdqu xmmword [esp + 0x38], xmm0
movdqu xmmword [esp + 0x48], xmm0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x100039d8
push 4
push dword [esp + 0x20]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x100039d8
lea eax, [esp + 0x20]
push eax
push 0x24
lea eax, [esp + 0x30]
push eax
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x100039f2
call esi
mov esi, eax
test esi, esi
je 0x10003a04
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
jmp 0x10003a04
mov eax, dword [esp + 0x2c]
xor esi, esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x14], eax
test edi, edi
je 0x10003a13
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
jmp 0x10003a19
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
je 0x10003a20
push ebx
call edi
test esi, esi
jne 0x10003a60
cmp dword [esp + 0x10], 4
je 0x10003a60
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount64]
call ebx
sub eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
sbb edx, ecx
test edx, edx
mov edx, dword [esp + 0xc]
jb 0x10003959
ja 0x10003a60
cmp eax, 0x1388
jb 0x10003959
mov eax, esi
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10003b02
mov esp, ebp
pop ebp
ret
Function at 0x4014ea
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x50ae60
call fcn.004015d8
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x526f44
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_InterlockedCompareExchange]
cmp eax, ebx
je 0x4012af
cmp eax, esi
jne 0x4012a2
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4012b2
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x401289
xor esi, esi
inc esi
mov eax, dword [0x526f40]
cmp eax, esi
jne 0x4012c5
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x4012f4
mov eax, dword [0x526f40]
test eax, eax
jne 0x4012ee
mov dword [0x526f40], esi
push 0x4d3b5c
push 0x4d3b50
call fcn.004011f5
pop ecx
pop ecx
test eax, eax
je 0x4012f4
jmp 0x401418
mov dword [0x515c5c], esi
mov eax, dword [0x526f40]
cmp eax, esi
jne 0x401318
push 0x4d3b4c
push 0x4d3b10
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x526f40], 2
cmp dword [ebp - 0x20], ebx
jne 0x401325
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
cmp dword [0x526f48], ebx
je 0x401346
push 0x526f48
call fcn.00401734
pop ecx
test eax, eax
je 0x401346
push ebx
push 2
push ebx
call dword [0x526f48]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x401418
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x4013b0
cmp cx, bx
je 0x40136b
cmp dword [ebp - 0x1c], ebx
jne 0x4013b0
movzx ecx, word [eax]
cmp cx, bx
je 0x401380
cmp cx, 0x20
ja 0x401380
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x40136b
test byte [ebp - 0x40], 1
je 0x40138c
movzx ecx, word [ebp - 0x3c]
jmp 0x40138f
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call main
mov dword [0x515c58], eax
cmp dword [0x515c4c], ebx
jne 0x4013f5
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x4013c1
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x401355
cmp dword [0x515c5c], ebx
jne 0x401403
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x515c58]
jmp 0x401424
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.0040161d
ret
call fcn.0040184e
jmp 0x40124c
Function at 0x4063ec
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, ecx
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test eax, eax
jne 0x406400
xor al, al
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
pop esi
setne al
ret

Function at 0x40640e
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov byte [ebp - 0x25], dl
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov esi, eax
shl esi, 2
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edi, eax
xor edi, esi
shl edi, 0xc
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov esi, dword [ebp - 0x34]
xor eax, edi
xor edi, edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], edi
push dword [ebp - 0x3c]
mov ecx, ebx
call fcn.004ba70a
cmp byte [ebp - 0x25], 0
je 0x4064d6
mov edi, dword [ebp - 0x2c]
xor esi, esi
mov ebx, edi
shr edi, 4
and ebx, 0xf
mov al, bl
add al, 0x37
cmp ebx, 0xa
movzx ecx, al
lea edx, [ebx + 0x30]
movzx eax, dl
cmovb ecx, eax
movsx ax, cl
mov word [ebp + esi*2 - 0x24], ax
inc esi
cmp esi, 8
jb 0x406473
mov ebx, dword [ebp - 0x30]
xor eax, eax
mov word [ebp + esi*2 - 0x24], ax
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x4064b7
push 0x2e
mov ecx, ebx
call fcn.004ba866
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
call fcn.004ba7f0
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edi, dword [ebp - 0x38]
inc eax
inc eax
push 1
pop ecx
cmove eax, ecx
add dword [ebp - 0x2c], eax
xor eax, eax
inc eax
mov byte [ebp - 0x25], al
test esi, esi
je 0x4064ec
push 0x4d44e0
mov ecx, ebx
call fcn.004ba7f0
cmp dword [ebx + 4], 0
mov eax, 0x4ef644
cmovne eax, dword [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406512
push 0xb7
call dword [sym.imp.KERNEL32.DLL_SetLastError]
jmp 0x40655f
test esi, esi
je 0x406533
cmp dword [ebx + 4], 0
mov ecx, 0x4ef644
mov eax, dword [esi]
cmovne ecx, dword [ebx + 4]
push 0x1000
push ecx
mov ecx, esi
call dword [eax]
test al, al
jmp 0x40654b
cmp dword [ebx + 4], 0
mov eax, 0x4ef644
push 0
cmovne eax, dword [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x406577
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x50
je 0x40655f
cmp eax, 0xb7
jne 0x40656c
inc edi
mov dword [ebp - 0x38], edi
cmp edi, 0x64
jb 0x40645e
mov ecx, ebx
call fcn.004b9ea3
xor al, al
jmp 0x40657a
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
mov esp, ebp
pop ebp
ret
Function at 0x4072fc
Capabilities:
Read file on windows

Disassembly:
push 0x20
mov eax, 0x4c8404
call fcn.0040193b
mov esi, ecx
or dword [ebp - 0x1c], 0xffffffff
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], vtable.micro::qsec::QCRC32.0
and dword [ebp - 4], edi
cmp dword [esi + 0x1c], edi
jbe 0x407351
push dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
mov ecx, dword [ebp + 8]
call fcn.00409a46
mov edi, eax
pop ecx
test edi, edi
jne 0x407432
push dword [esi + 0x1c]
lea ecx, [ebp - 0x20]
push dword [esi + 0x18]
call fcn.004bb730
mov ebx, dword [esi + 0x1c]
mov dword [ebp - 0x18], edi
cmp byte [esi + 0x20], 0
je 0x407411
and dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], vtable.micro::files::QFile.0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
cmp dword [esi + 8], 0
mov eax, 0x4ef644
push 0
cmovne eax, dword [esi + 8]
push eax
call fcn.004bac83
test al, al
jne 0x40739f
mov edi, 0x80004005
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], vtable.micro::files::QFile.0
call fcn.004baeaf
jmp 0x407432
cmp edi, dword [esi + 0x2c]
ja 0x407402
jae 0x4073fd
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push 0
push eax
push 0x100000
push dword [esi + 0x18]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp dword [ebp - 0x14], 0
je 0x407402
push dword [ebp - 0x14]
mov edx, dword [esi + 0x18]
mov ecx, dword [ebp + 8]
call fcn.00409a46
mov edi, eax
pop ecx
test edi, edi
jne 0x40738b
push dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
push dword [esi + 0x18]
call fcn.004bb730
add ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
adc edi, 0
mov dword [ebp - 0x18], edi
cmp edi, dword [esi + 0x2c]
jb 0x4073a6
ja 0x407402
cmp ebx, dword [esi + 0x28]
jb 0x4073a6
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], vtable.micro::files::QFile.0
call fcn.004baeaf
mov ecx, dword [esi + 0x34]
mov eax, dword [ebp - 0x1c]
not ecx
not eax
cmp ecx, eax
jne 0x40742d
cmp ebx, dword [esi + 0x28]
jne 0x40742d
cmp edi, dword [esi + 0x2c]
jne 0x40742d
xor edi, edi
jmp 0x407432
mov edi, 0x80004005
mov eax, edi
call fcn.00401a13
ret 4
Function at 0x40a90b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 8], ecx
or esi, 0xffffffff
mov eax, dword [ecx + eax*4]
shr eax, 8
xor ebx, ebx
push edi
mov dword [ebp - 4], edx
mov eax, dword [ecx + eax*4]
movzx ecx, al
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 8]
movzx edi, al
shr eax, 8
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc], eax
cmp ebx, 4
jne 0x40a973
test edi, edi
je 0x40a96f
mov eax, esi
shl esi, 8
shr eax, 0x18
xor eax, ecx
push ecx
mov ecx, dword [ebp + 0xc]
xor esi, dword [eax*4 + 0x515f90]
call fcn.0040a299
mov ecx, dword [ebp + 8]
dec edi
jne 0x40a94c
mov edx, dword [ebp - 4]
xor ebx, ebx
jmp 0x40a99b
xor eax, eax
mov dword [ebp + 8], edi
cmp edi, ecx
mov ecx, dword [ebp + 0xc]
push edi
cmovne ebx, eax
mov eax, esi
shr eax, 0x18
inc ebx
xor eax, edi
shl esi, 8
xor esi, dword [eax*4 + 0x515f90]
call fcn.0040a299
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
dec edx
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], edx
jne 0x40a931
not esi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40a9b2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
or esi, 0xffffffff
mov dword [ebp - 8], ecx
mov eax, dword [ecx + eax*4]
xor ebx, ebx
shr eax, 8
push edi
mov dword [ebp - 4], edx
mov eax, dword [ecx + eax*4]
movzx ecx, al
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 8]
movzx edi, al
shr eax, 8
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc], eax
cmp ebx, 4
jne 0x40aa1a
test edi, edi
je 0x40aa16
mov eax, esi
shl esi, 8
shr eax, 0x18
xor eax, ecx
push ecx
mov ecx, dword [ebp + 0xc]
xor esi, dword [eax*4 + 0x515f90]
call fcn.0040a299
mov ecx, dword [ebp + 8]
dec edi
jne 0x40a9f3
mov edx, dword [ebp - 4]
xor ebx, ebx
jmp 0x40aa42
xor eax, eax
mov dword [ebp + 8], edi
cmp edi, ecx
mov ecx, dword [ebp + 0xc]
push edi
cmovne ebx, eax
mov eax, esi
shr eax, 0x18
inc ebx
xor eax, edi
shl esi, 8
xor esi, dword [eax*4 + 0x515f90]
call fcn.0040a299
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
dec edx
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], edx
jne 0x40a9d8
not esi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ca36
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 8
mov ebx, ecx
pop esi
push esi
push 0x31
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 8], ebx
call fcn.0040b95c
mov ecx, dword [ebx + 0x10]
push esi
push 0x41
call fcn.0040b95c
mov ecx, dword [ebx + 0x10]
push esi
push 0x59
call fcn.0040b95c
mov ecx, dword [ebx + 0x10]
push esi
push 0x26
call fcn.0040b95c
mov ecx, dword [ebx + 0x10]
push esi
push 0x53
call fcn.0040b95c
mov ecx, dword [ebx + 0x10]
push esi
push 0x59
call fcn.0040b95c
mov ecx, dword [ebp + 8]
or esi, 0xffffffff
xor ebx, ebx
mov eax, ebx
mov edi, ebx
mov dword [ebp - 4], eax
mov dh, byte [ecx]
mov dl, byte [eax + ecx]
cmp edi, 4
jne 0x40cac5
test dl, dl
je 0x40cac1
movzx ecx, dh
mov eax, esi
shl esi, 8
shr eax, 0x18
xor eax, ecx
xor esi, dword [eax*4 + 0x515f90]
dec dl
jne 0x40caa9
mov eax, dword [ebp - 4]
mov edi, ebx
jmp 0x40cae8
cmp dh, dl
jne 0x40cacc
inc edi
jmp 0x40cad1
xor edi, edi
mov dh, dl
inc edi
mov ecx, esi
movzx eax, dl
shr ecx, 0x18
xor ecx, eax
shl esi, 8
mov eax, dword [ebp - 4]
xor esi, dword [ecx*4 + 0x515f90]
mov ecx, dword [ebp + 8]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [ebp + 0xc]
jb 0x40ca9a
mov edi, dword [ebp - 8]
not esi
push 3
pop ecx
sub ecx, ebx
mov eax, esi
shl ecx, 3
shr eax, cl
mov ecx, edi
push eax
call fcn.0040c15b
inc ebx
cmp ebx, 4
jl 0x40caf9
push dword [ebp + 0xc]
mov ecx, edi
push dword [ebp + 8]
call fcn.0040c1a8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8