joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b5750
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
mov edi, eax
mov ebx, ecx
test edi, edi
jbe 0x4b5795
push ebp
jmp 0x4b5760
mov edx, dword [esi + 4]
movzx ebp, byte [ebx]
mov ecx, dword [esi]
mov eax, edx
shr eax, 0x18
shld edx, ecx, 8
xor eax, ebp
and eax, 0xff
xor edx, dword [eax*8 + 0x681804]
shl ecx, 8
xor ecx, dword [eax*8 + 0x681800]
dec edi
inc ebx
mov dword [esi], ecx
mov dword [esi + 4], edx
test edi, edi
ja 0x4b5760
pop ebp
pop edi
pop ebx
ret
Function at 0x4b5be0
Capabilities:
Hash data with md5

Disassembly:
push 0xffffffffffffffff
push 0x5beb81
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x6c56f8]
xor eax, esp
mov dword [esp + 0x64], eax
push ebp
push esi
push edi
mov eax, dword [0x6c56f8]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x88]
mov dword [esp + 0x14], 0
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x8c]
push ecx
lea esi, [esp + 0x20]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], 0x67452301
mov dword [esp + 0x24], 0xefcdab89
mov dword [esp + 0x28], 0x98badcfe
mov dword [esp + 0x2c], 0x10325476
call fcn.004329ed
add esp, 4
lea eax, [esp + 0x10]
push eax
mov ecx, esi
push ecx
call fcn.004b5860
mov esi, 1
mov dword [esp + 0x80], esi
push eax
push ebp
call fcn.00489680
add esp, 8
mov dword [esp + 0x14], esi
mov byte [esp + 0x80], 0
mov eax, dword [esp + 0x10]
dec dword [eax + 8]
mov esi, eax
add eax, 8
cmp dword [eax], 0
jne 0x4b5cba
xor edi, edi
call fcn.0041ad11
mov edx, dword [esp + 0x10]
push edx
call fcn.0058125d
add esp, 4
mov dword [esp + 0x10], edi
mov eax, ebp
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00581268
add esp, 0x74
ret

Function at 0x4b5d50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
cmp edx, 8
jb 0x4b5e28
mov ecx, dword [edi]
mov esi, edx
shr esi, 3
push ebx
movzx ebx, byte [eax]
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x681400]
movzx ebx, byte [eax + 1]
xor ebx, ecx
and ebx, 0xff
inc eax
shr ecx, 8
xor ecx, dword [ebx*4 + 0x681400]
movzx ebx, byte [eax + 1]
xor ebx, ecx
and ebx, 0xff
inc eax
shr ecx, 8
xor ecx, dword [ebx*4 + 0x681400]
movzx ebx, byte [eax + 1]
xor ebx, ecx
inc eax
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x681400]
movzx ebx, byte [eax + 1]
xor ebx, ecx
inc eax
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x681400]
movzx ebx, byte [eax + 1]
xor ebx, ecx
inc eax
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x681400]
movzx ebx, byte [eax + 1]
inc eax
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x681400]
movzx ebx, byte [eax + 1]
inc eax
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x681400]
inc eax
sub edx, 8
sub esi, 1
jne 0x4b5d62
mov dword [edi], ecx
pop ebx
test edx, edx
je 0x4b5e4d
mov ecx, dword [edi]
mov edi, edi
movzx esi, byte [eax]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x681400]
inc eax
sub edx, 1
jne 0x4b5e30
mov dword [edi], ecx
pop esi
ret
Function at 0x4b80a0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b76e0
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push esi
push edi
mov eax, dword [0x6c56f8]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi]
xor ebx, ebx
push eax
mov byte [esp + 0x1b], bl
call fcn.004b9900
add esp, 4
cmp eax, ebx
jne 0x4b8259
push 0x54
lea eax, [esp + 0x34]
push ebx
push eax
call fcn.00586790
mov eax, dword [esi]
add esp, 0xc
push ebx
push ebx
lea ecx, [esp + 0x34]
push ebx
push ecx
call fcn.004b90c0
add esp, 0x10
test eax, eax
jne 0x4b8233
mov edx, dword [ebp + 0xc]
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push edx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x90], ebx
cmp esi, 0xffffffff
je 0x4b81e3
mov edi, 0x10000
lea ebx, [esp + 0x20]
call fcn.0042c18f
mov byte [esp + 0x90], 1
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx]
mov edi, dword [ebp + 8]
mov ecx, dword [ebx + 4]
push eax
mov eax, dword [edi]
call fcn.004b9ad0
add esp, 4
test eax, eax
jle 0x4b81b4
push 0
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], eax
mov ecx, dword [ebx]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4b81b4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4b81b4
add dword [esp + 0x18], eax
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
push eax
mov eax, dword [edi]
call fcn.004b9ad0
add esp, 4
test eax, eax
jg 0x4b817a
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov byte [esp + 0x90], 0
add dword [ebx + 8], 0xffffffff
jne 0x4b81e3
xor edi, edi
mov esi, ebx
call fcn.0041ad11
push ebx
call fcn.0058125d
mov esi, dword [esp + 0x2c]
add esp, 4
mov dword [esp + 0x20], edi
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp ecx, dword [esp + 0x4c]
jne 0x4b8202
cmp eax, dword [esp + 0x50]
jne 0x4b8202
mov byte [esp + 0x17], 1
jmp 0x4b821c
cmp esi, 0xffffffff
je 0x4b820a
push esi
call edi
mov edx, dword [ebp + 0xc]
push edx
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x90], 0xffffffff
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x4b8233
push eax
call edi
mov eax, dword [ebp + 8]
mov edi, dword [eax]
call fcn.004b9d50
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov al, bl
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4b9f50
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5beb3f
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x6c56f8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
push esi
call fcn.0049d7c0
xor ecx, ecx
mov dword [esp + 0x18], ecx
lea eax, [esi + 0x30]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], ecx
mov dword [esp + 8], eax
mov dword [eax], 0xffffffff
mov byte [esp + 0x18], 1
mov dword [eax + 4], ecx
mov byte [esp + 0x18], 2
add eax, 8
mov dword [esp + 0xc], eax
mov dword [eax], ecx
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret 4
Function at 0x4ba690
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b8f78
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6c56f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
call fcn.0040855f
mov byte [ebp - 4], 1
push str..X:
lea eax, [ebp - 0x14]
call fcn.004310f7
add esp, 4
mov ecx, dword [ebp + 8]
push ecx
mov ebx, 4
lea eax, [ebp - 0x14]
call fcn.0042b982
push 0x250
call fcn.005812e3
add esp, 4
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x4ba716
push 0x250
push ebx
push esi
call fcn.00586790
add esp, 0xc
jmp 0x4ba718
xor esi, esi
push 0x250
push ebx
push esi
call fcn.00586790
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push closesocket
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x4ba82a
mov edi, 0x200
mov dword [ebp - 0x18], edi
push ebx
lea eax, [ebp - 0x18]
push eax
push edi
lea ecx, [esi + 0x20]
push ecx
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ba82a
cmp dword [ebp - 0x18], edi
jne 0x4ba82a
push 4
lea eax, [esi + 0x23]
push eax
push str.NTFS
call fcn.00583302
add esp, 0xc
test eax, eax
jne 0x4ba82a
mov dword [esi + 4], 1
movzx ecx, byte [esi + 0x2d]
movzx edx, word [esi + 0x2b]
imul ecx, edx
mov dword [esi + 0x224], ecx
mov eax, dword [esi + 0x60]
cmp eax, 0x80
jae 0x4ba7b6
imul eax, ecx
jmp 0x4ba7c4
mov ecx, 0x100
sub ecx, eax
mov eax, 1
shl eax, cl
mov dword [esi + 0x220], eax
mov dword [esi + 0x228], ebx
mov eax, dword [esi + 0x224]
push ebx
push eax
mov ecx, dword [esi + 0x54]
push ecx
mov edx, dword [esi + 0x50]
push edx
call fcn.00587090
mov dword [esi + 0x238], eax
mov dword [esi + 0x23c], edx
mov dword [esi + 0x240], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x22c], ebx
mov ax, word [ebp + 8]
mov word [esi + 0x14], ax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.004085f6
mov eax, esi
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 esi
call fcn.0058125d
add esp, 4
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.004085f6
mov dword [ebp - 4], 0xffffffff
xor eax, eax
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 0x4ba910
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
test edi, edi
je 0x4baa01
cmp dword [edi + 4], 1
jne 0x4baa01
mov eax, dword [edi + 0x238]
mov ecx, dword [edi + 0x23c]
push 0
lea edx, [esp + 0x20]
push edx
push eax
mov dword [esp + 0x24], eax
mov eax, dword [edi]
push eax
mov dword [esp + 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [edi + 0x224]
push ecx
call fcn.005807c3
mov ecx, dword [edi]
add esp, 4
push 0
mov esi, eax
mov eax, dword [edi + 0x224]
lea edx, [esp + 0x18]
push edx
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, esi
call fcn.004bac30
cmp dword [esi], 0x454c4946
jne 0x4baa1a
movzx ecx, word [esi + 0x14]
movzx eax, word [esi + 0x28]
mov edx, 8
add ecx, esi
mov ebx, edx
cmp dx, ax
jb 0x4ba9a2
movzx ebx, ax
mov ax, word [esi + 0x16]
mov ebp, dword [esp + 0x10]
xor edx, edx
mov word [esi + 6], ax
test ebx, ebx
jle 0x4ba9f6
mov eax, dword [ecx]
test eax, eax
jl 0x4ba9f6
cmp eax, 0x100
jg 0x4ba9f6
sub eax, 0x20
je 0x4baa0c
sub eax, 0x60
je 0x4ba9d6
sub eax, 0x30
jne 0x4ba9d8
mov dword [esp + 0x10], ecx
jmp 0x4ba9d8
mov ebp, ecx
mov eax, dword [ecx + 4]
test eax, eax
jbe 0x4ba9e8
cmp eax, dword [esi + 0x18]
jae 0x4ba9e8
add ecx, eax
jmp 0x4ba9f1
cmp byte [ecx + 8], 1
jne 0x4ba9f1
add ecx, 0x48
inc edx
cmp edx, ebx
jl 0x4ba9b4
test ebp, ebp
je 0x4baa01
cmp dword [esp + 0x10], 0
jne 0x4baa1e
xor eax, eax
xor edx, edx
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov eax, 3
xor edx, edx
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov ebp, dword [esp + 0x10]
mov ecx, dword [ebp + 0x30]
xor edx, edx
mov eax, ecx
div dword [edi + 0x220]
mov dword [edi + 0x240], esi
mov dword [edi + 0x22c], ecx
pop esi
mov dword [edi + 0x230], eax
mov eax, dword [ebp + 0x30]
mov edx, dword [ebp + 0x34]
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x4bab50
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
mov edx, dword [esp + 0x18]
push ebx
push ebp
push edi
mov edi, ecx
mov ecx, dword [esp + 0x28]
push ecx
xor ebp, ebp
push edx
mov ebx, eax
mov eax, dword [edi + 0x224]
push ebp
push eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
call fcn.00587090
push ebp
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], edx
mov edx, dword [edi]
push eax
push edx
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, ebx
shr eax, 0xa
cmp eax, 1
jb 0x4babe7
mov dword [esp + 0x24], eax
shl eax, 0xa
mov dword [esp + 0x14], eax
jmp 0x4babb0
mov ecx, dword [edi + 0x224]
mov edx, dword [edi]
push 0
lea eax, [esp + 0x14]
push eax
shl ecx, 0xa
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
push ecx
mov ecx, esi
add ebp, eax
call fcn.004badf0
add esp, 4
sub dword [esp + 0x24], 1
jne 0x4babb0
sub ebx, dword [esp + 0x14]
mov eax, dword [edi]
imul ebx, dword [edi + 0x224]
push 0
lea edx, [esp + 0x14]
push edx
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
push ecx
mov ecx, esi
call fcn.004badf0
mov edx, dword [esp + 0x14]
add esp, 4
pop edi
lea eax, [edx + ebp]
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4bc7b0
Capabilities:
Check for peb ntglobalflag flag
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5bacb1
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x6c56f8]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6c56f8]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov eax, dword [esp + 0x9c]
mov esi, dword [esp + 0x94]
mov ebp, dword [esp + 0x98]
mov edi, edx
xor ebx, ebx
mov dword [esp + 0x8c], ebx
push edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x24], ebx
call fcn.0040855f
mov dword [esp + 0x8c], ebx
xor eax, eax
push 0x30
lea edx, [esp + 0x40]
push ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
push edx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], 0x10
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], ebx
call fcn.00586790
mov eax, 1
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x60], eax
mov al, 0xc2
add esp, 0xc
mov ecx, 0xcd44
mov byte [esp + 0x75], al
mov byte [esp + 0x79], al
lea eax, [esp + 0x3c]
mov word [esp + 0x70], cx
push eax
lea ecx, [esp + 0x70]
push ecx
mov edx, 0x11d0
push 0xffffffffffffffff
mov dword [esp + 0x48], 0x30
mov dword [esp + 0x54], 2
mov dword [esp + 0x58], ebx
mov dword [esp + 0x78], 0xaac56b
mov word [esp + 0x7e], dx
mov byte [esp + 0x80], 0x8c
mov byte [esp + 0x82], bl
mov byte [esp + 0x83], 0xc0
mov byte [esp + 0x84], 0x4f
mov byte [esp + 0x86], 0x95
mov byte [esp + 0x87], 0xee
call sub.WINTRUST.dll_WinVerifyTrust
test eax, eax
jne 0x4bc8f3
mov byte [ebp], 1
mov eax, dword [esp + 0x5c]
cmp eax, ebx
je 0x4bc96e
push eax
call sub.WINTRUST.dll_WTHelperProvDataFromStateData
mov esi, eax
cmp esi, ebx
je 0x4bc96e
cmp dword [esi + 0x3c], ebx
je 0x4bc96e
mov eax, dword [esi + 0x30]
cmp eax, ebx
jbe 0x4bc96e
cmp dword [esi + 0x34], ebx
je 0x4bc96e
xor ebp, ebp
cmp eax, ebx
jbe 0x4bc96e
mov edi, edi
mov edx, dword [esp + 0x34]
mov ecx, dword [esi + 0x34]
mov eax, dword [esp + 0x1c]
push edx
mov edx, dword [ecx + ebp*4]
mov ecx, dword [esi + 0x3c]
push eax
push edx
lea eax, [esp + 0x24]
push eax
call fcn.004bc490
add esp, 0x10
mov dword [esp + 0x8c], 1
call fcn.00408619
lea ecx, [esp + 0x18]
mov byte [esp + 0x8c], bl
call fcn.004085f6
mov ecx, dword [edi]
cmp dword [ecx - 0xc], ebx
jne 0x4bc96e
inc ebp
cmp ebp, dword [esi + 0x30]
jb 0x4bc920
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x70]
push eax
push ebx
mov dword [esp + 0x64], 2
call sub.WINTRUST.dll_WinVerifyTrust
mov eax, edi
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00581268
add esp, 0x7c
ret
Function at 0x4be9b0
Capabilities:
Read file via mapping

Disassembly:
push edi
push 0
push 0
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov eax, dword [esi + 4]
cmp edi, eax
je 0x4be9d6
test eax, eax
je 0x4be9d6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov dword [esi + 4], edi
test eax, eax
je 0x4bea0e
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov eax, dword [esi + 8]
cmp edi, eax
je 0x4bea02
test eax, eax
je 0x4bea02
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor eax, eax
cmp edi, eax
mov dword [esi + 8], edi
setne al
pop edi
ret
xor al, al
pop edi
ret

Function at 0x4beae0
Capabilities:
Get file size

Disassembly:
mov eax, dword [eax]
sub esp, 0xc
cmp eax, 0xffffffff
je 0x4beb07
xor ecx, ecx
mov dword [esp], ecx
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esp + 4]
add esp, 0xc
ret
xor eax, eax
xor edx, edx
add esp, 0xc
ret

Function at 0x4bf0f0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x6c56f8]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebx
xor ebx, ebx
push 0xfe
lea ecx, [esi + 0x16]
xor eax, eax
push ebx
push ecx
mov dword [esi], 0x114
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov word [esi + 0x14], ax
call fcn.00586790
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esi + 4], 6
jne 0x4bf225
cmp dword [esi + 8], 2
jne 0x4bf225
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push 3
push 2
push ebx
push ebx
call edi
push 3
push 1
push edx
push eax
call edi
push 1
push 8
push edx
push eax
call edi
mov ecx, dword [esi + 0xc]
mov edi, eax
mov eax, dword [esi + 8]
mov ebp, edx
mov edx, dword [esi + 4]
push 0xfe
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], edx
mov edx, dword [esi + 0x10]
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x26]
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x18], 0x11c
mov dword [esp + 0x28], edx
mov word [esp + 0x2c], ax
call fcn.00586790
add esp, 0xc
push ebp
xor edx, edx
push edi
mov word [esp + 0x128], dx
push 0xb
lea edx, [esp + 0x18]
xor eax, eax
xor ecx, ecx
mov byte [esp + 0x132], bl
mov byte [esp + 0x133], bl
mov ebx, dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
push edx
mov word [esp + 0x132], ax
mov word [esp + 0x134], cx
call ebx
test eax, eax
je 0x4bf20b
nop
mov eax, dword [esp + 0x14]
push ebp
mov dword [esi + 8], eax
inc eax
push edi
mov dword [esp + 0x1c], eax
push 0xb
lea eax, [esp + 0x18]
push eax
call ebx
test eax, eax
jne 0x4bf1f0
pop edi
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00581268
add esp, 0x120
ret
mov ecx, dword [esp + 0x120]
pop ebx
xor ecx, esp
mov eax, esi
call fcn.00581268
add esp, 0x120
ret
Function at 0x4dc020
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 8]
mov dword [esi], 0
jmp 0x4dc030
mov eax, dword [esi]
mov edx, dword [ebx + 4]
mov ecx, edi
sub ecx, eax
push ecx
add eax, ebp
push eax
push edx
call fcn.0058a276
add esp, 0xc
test eax, eax
jle 0x4dc050
add dword [esi], eax
cmp dword [esi], edi
jb 0x4dc030
pop ebp
test eax, eax
jge 0x4dc072
call fcn.00586f71
mov eax, dword [eax]
push eax
call fcn.00586ec3
push eax
push 0xffffffffffffffff
push ebx
call fcn.004dced0
add esp, 0x10
or eax, 0xffffffff
ret
jne 0x4dc07b
mov dword [ebx + 0x28], 1
xor eax, eax
ret
Function at 0x4ee570
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x4ee5c0
Capabilities:
Allocate thread local storage

Disassembly:
push ecx
cmp dword [0x6c3bb4], 0xffffffff
jne 0x4ee644
test byte [0x6caa34], 1
jne 0x4ee5f3
or dword [0x6caa34], 1
push 0
mov ecx, 0x6caa30
call fcn.004ea6d0
push 0x5dc660
call fcn.00581ed6
add esp, 4
push 0x6caa30
lea ecx, [esp + 4]
call fcn.004c05a0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x6c3bb4], eax
mov eax, dword [esp]
test al, 1
je 0x4ee644
and eax, 0xfffffffe
mov ecx, eax
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x4ee628
add esp, 4
jmp fcn.004ea760
push esi
mov esi, eax
xor edx, edx
mov eax, 1
lock cmpxchg dword [esi], edx
pop esi
cmp eax, 1
je 0x4ee644
add esp, 4
jmp fcn.004ea790
pop ecx
ret
Function at 0x4eed30
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 4]
lea eax, [esi + 0x4c]
push eax
lea ecx, [esp + 0x14]
call fcn.004c05a0
cmp byte [esi + 0x53], 0
mov ebx, dword [esp + 0x10]
je 0x4eedca
test bl, 1
je 0x4eed85
and ebx, 0xfffffffe
mov ecx, ebx
and ecx, 0xfffffffe
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x4eed6d
call fcn.004ea760
jmp 0x4eed85
mov ebp, eax
xor edx, edx
mov eax, 1
lock cmpxchg dword [ebp], edx
cmp eax, 1
je 0x4eed85
call fcn.004ea790
push 0xffffffffffffffff
mov ecx, edi
call fcn.004ee8c0
test ebx, ebx
je 0x4eedca
test bl, 1
jne 0x4eedca
mov ecx, ebx
and ecx, 0xfffffffe
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x4eedab
call fcn.004eaa40
jmp 0x4eedc7
mov ebp, eax
mov edx, 1
xor eax, eax
lock cmpxchg dword [ebp], edx
test eax, eax
sete al
test al, al
jne 0x4eedc7
call fcn.004ea7c0
or ebx, 1
cmp byte [esi + 0x50], 0
jne 0x4eeeb2
mov ecx, dword [esi + 0x5c]
lea eax, [esi + 0x68]
push eax
push 4
push edi
push 0x4eec10
push ecx
push 0
mov byte [esi + 0x50], 1
mov byte [esi + 0x51], 0
mov byte [esi + 0x52], 0
mov byte [esi + 0x54], 0
mov dword [esi + 0x58], 0
call fcn.00583186
add esp, 0x18
mov dword [esi + 0x64], eax
test eax, eax
jne 0x4eee2e
call fcn.00586f71
mov edx, dword [eax]
push str.QThread::start:_Failed_to_create_thread
push edx
call fcn.004bf7e0
add esp, 8
mov byte [esi + 0x50], 0
mov byte [esi + 0x51], 1
jmp 0x4eeeb2
mov eax, dword [esp + 0x18]
mov dword [esi + 0x60], eax
cmp eax, 6
ja case.default.0x4eee3a
jmp dword [eax*4 + 0x4eeef0]
mov eax, 0xfffffff1
jmp 0x4eee7a
mov eax, 0xfffffffe
jmp 0x4eee7a
or eax, 0xffffffff
jmp 0x4eee7a
xor eax, eax
jmp 0x4eee7a
mov eax, 1
jmp 0x4eee7a
mov eax, 2
jmp 0x4eee7a
mov eax, 0xf
jmp 0x4eee7a
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push eax
mov eax, dword [esi + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x4eee96
push str.QThread::start:_Failed_to_set_thread_priority
call fcn.004bf700
add esp, 4
mov ecx, dword [esi + 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x4eeeb2
push str.QThread::start:_Failed_to_resume_new_thread
call fcn.004bf700
add esp, 4
test bl, 1
je 0x4eeee8
and ebx, 0xfffffffe
mov ecx, ebx
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x4eeed1
call fcn.004ea760
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
mov esi, eax
xor edx, edx
mov eax, 1
lock cmpxchg dword [esi], edx
cmp eax, 1
je 0x4eeee8
call fcn.004ea790
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4