joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ded50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x61458a
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
push esi
mov dword [esp + 0x24], 0
call fcn.004d14c0
add esp, 0x1c
mov dword [esp + 0x14], 0
mov dword [esp + 8], 1
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x4defc0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60d492
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x1b], 0
call fcn.004f7970
xor edi, edi
mov dword [esp + 0x38], edi
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x4df0e8
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp dword [esp + 0x18], edi
ja 0x4df039
cmp esi, 0x10
jbe 0x4df0e8
mov eax, dword [esp + 0x28]
push 4
push str.MSDB
push eax
call fcn.005c5ac3
add esp, 0xc
test eax, eax
jne 0x4df0e8
mov ecx, dword [esp + 0x28]
add esi, 0xfffffffc
push esi
add ecx, 4
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004ce6d0
add esp, 0xc
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x14]
cmp dword [eax], edi
je 0x4df0ba
cmp dword [eax + 4], edi
je 0x4df0ba
lea esi, [ebx + 8]
mov edi, esi
call fcn.004dec90
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov edi, dword [ebx]
push 1
push 0
push ecx
push eax
call fcn.004c0920
add esp, 0x10
test al, al
je 0x4df0ba
mov ebx, dword [ebx]
push ebx
mov eax, esi
call fcn.004de940
test al, al
je 0x4df0ba
mov byte [esp + 0x13], 1
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x14]
dec dword [eax + 8]
mov esi, eax
add eax, 8
cmp dword [eax], 0
jne 0x4df0e8
xor edi, edi
call fcn.004c24f0
mov eax, dword [esp + 0x14]
push eax
call fcn.005c396f
add esp, 4
mov dword [esp + 0x14], edi
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x20]
push ecx
call fcn.004f7af0
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4e1340
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x4e37b0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
mov edi, eax
mov ebx, ecx
test edi, edi
jbe 0x4e37f5
push ebp
jmp 0x4e37c0
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 + 0x6ca81c]
shl ecx, 8
xor ecx, dword [eax*8 + 0x6ca818]
dec edi
inc ebx
mov dword [esi], ecx
mov dword [esi + 4], edx
test edi, edi
ja 0x4e37c0
pop ebp
pop edi
pop ebx
ret
Function at 0x4e3b80
Capabilities:
Hash data with md5

Disassembly:
push 0xffffffffffffffff
push 0x605f51
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x711ab8]
xor eax, esp
mov dword [esp + 0x64], eax
push ebp
push esi
push edi
mov eax, dword [0x711ab8]
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 ecx, [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.004519f0
add esp, 4
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.004e38a0
mov esi, 1
mov dword [esp + 0x80], esi
push eax
push ebp
call fcn.004c1d90
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 0x4e3c5c
xor edi, edi
call fcn.004c24f0
mov edx, dword [esp + 0x10]
push edx
call fcn.005c396f
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.005c397a
add esp, 0x74
ret

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

Disassembly:
push esi
cmp edx, 8
jb 0x4e3dc8
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 + 0x6ca418]
movzx ebx, byte [eax + 1]
xor ebx, ecx
and ebx, 0xff
inc eax
shr ecx, 8
xor ecx, dword [ebx*4 + 0x6ca418]
movzx ebx, byte [eax + 1]
xor ebx, ecx
and ebx, 0xff
inc eax
shr ecx, 8
xor ecx, dword [ebx*4 + 0x6ca418]
movzx ebx, byte [eax + 1]
xor ebx, ecx
inc eax
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x6ca418]
movzx ebx, byte [eax + 1]
xor ebx, ecx
inc eax
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x6ca418]
movzx ebx, byte [eax + 1]
xor ebx, ecx
inc eax
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x6ca418]
movzx ebx, byte [eax + 1]
inc eax
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x6ca418]
movzx ebx, byte [eax + 1]
inc eax
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x6ca418]
inc eax
sub edx, 8
sub esi, 1
jne 0x4e3d02
mov dword [edi], ecx
pop ebx
test edx, edx
je 0x4e3ded
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 + 0x6ca418]
inc eax
sub edx, 1
jne 0x4e3dd0
mov dword [edi], ecx
pop esi
ret
Function at 0x4e5eb0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x605f0f
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
push esi
call fcn.00443eb0
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 0x4e64a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fe748
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x711ab8]
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.0040b8d0
mov byte [ebp - 4], 1
push str..X:
lea edi, [ebp - 0x14]
call fcn.0042a2d0
add esp, 4
mov ecx, dword [ebp + 8]
push ecx
mov ebx, 4
call fcn.004301e0
push 0x250
call fcn.005c39f5
add esp, 4
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x4e6523
push 0x250
push ebx
push edi
call fcn.005c8fb0
add esp, 0xc
jmp 0x4e6525
xor edi, edi
push 0x250
push ebx
push edi
call fcn.005c8fb0
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 [edi], eax
cmp eax, 0xffffffff
je 0x4e6637
mov esi, 0x200
mov dword [ebp - 0x18], esi
push ebx
lea eax, [ebp - 0x18]
push eax
push esi
lea ecx, [edi + 0x20]
push ecx
mov edx, dword [edi]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4e6637
cmp dword [ebp - 0x18], esi
jne 0x4e6637
push 4
lea eax, [edi + 0x23]
push eax
push str.NTFS
call fcn.005c5ac3
add esp, 0xc
test eax, eax
jne 0x4e6637
mov dword [edi + 4], 1
movzx ecx, byte [edi + 0x2d]
movzx edx, word [edi + 0x2b]
imul ecx, edx
mov dword [edi + 0x224], ecx
mov eax, dword [edi + 0x60]
cmp eax, 0x80
jae 0x4e65c3
imul eax, ecx
jmp 0x4e65d1
mov ecx, 0x100
sub ecx, eax
mov eax, 1
shl eax, cl
mov dword [edi + 0x220], eax
mov dword [edi + 0x228], ebx
mov eax, dword [edi + 0x224]
push ebx
push eax
mov ecx, dword [edi + 0x54]
push ecx
mov edx, dword [edi + 0x50]
push edx
call fcn.005c98b0
mov dword [edi + 0x238], eax
mov dword [edi + 0x23c], edx
mov dword [edi + 0x240], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0x22c], ebx
mov ax, word [ebp + 8]
mov word [edi + 0x14], ax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.0040ba40
mov eax, edi
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
call fcn.005c396f
add esp, 4
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.0040ba40
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 0x4e6720
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
test edi, edi
je 0x4e6811
cmp dword [edi + 4], 1
jne 0x4e6811
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.005c2957
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.004e6a40
cmp dword [esi], 0x454c4946
jne 0x4e682a
movzx ecx, word [esi + 0x14]
movzx eax, word [esi + 0x28]
mov edx, 8
add ecx, esi
mov ebx, edx
cmp dx, ax
jb 0x4e67b2
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 0x4e6806
mov eax, dword [ecx]
test eax, eax
jl 0x4e6806
cmp eax, 0x100
jg 0x4e6806
sub eax, 0x20
je 0x4e681c
sub eax, 0x60
je 0x4e67e6
sub eax, 0x30
jne 0x4e67e8
mov dword [esp + 0x10], ecx
jmp 0x4e67e8
mov ebp, ecx
mov eax, dword [ecx + 4]
test eax, eax
jbe 0x4e67f8
cmp eax, dword [esi + 0x18]
jae 0x4e67f8
add ecx, eax
jmp 0x4e6801
cmp byte [ecx + 8], 1
jne 0x4e6801
add ecx, 0x48
inc edx
cmp edx, ebx
jl 0x4e67c4
test ebp, ebp
je 0x4e6811
cmp dword [esp + 0x10], 0
jne 0x4e682e
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 0x4e6960
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.005c98b0
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 0x4e69f7
mov dword [esp + 0x24], eax
shl eax, 0xa
mov dword [esp + 0x14], eax
jmp 0x4e69c0
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.004e6c00
add esp, 4
sub dword [esp + 0x24], 1
jne 0x4e69c0
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.004e6c00
mov edx, dword [esp + 0x14]
add esp, 4
pop edi
lea eax, [edx + ebp]
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4e8520
Capabilities:
Check for peb ntglobalflag flag
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x600b61
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x711ab8]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x711ab8]
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.0040b8d0
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.005c8fb0
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 0x4e8663
mov byte [ebp], 1
mov eax, dword [esp + 0x5c]
cmp eax, ebx
je 0x4e86de
push eax
call sub.WINTRUST.dll_WTHelperProvDataFromStateData
mov esi, eax
cmp esi, ebx
je 0x4e86de
cmp dword [esi + 0x3c], ebx
je 0x4e86de
mov eax, dword [esi + 0x30]
cmp eax, ebx
jbe 0x4e86de
cmp dword [esi + 0x34], ebx
je 0x4e86de
xor ebp, ebp
cmp eax, ebx
jbe 0x4e86de
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.004e8200
add esp, 0x10
mov dword [esp + 0x8c], 1
call fcn.0040ddb0
lea ecx, [esp + 0x18]
mov byte [esp + 0x8c], bl
call fcn.0040ba40
mov ecx, dword [edi]
cmp dword [ecx - 0xc], ebx
jne 0x4e86de
inc ebp
cmp ebp, dword [esi + 0x30]
jb 0x4e8690
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.005c397a
add esp, 0x7c
ret
Function at 0x4f7a40
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 0x4f7a66
test eax, eax
je 0x4f7a66
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov dword [esi + 4], edi
test eax, eax
je 0x4f7a9e
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 0x4f7a92
test eax, eax
je 0x4f7a92
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 0x4f7b70
Capabilities:
Get file size

Disassembly:
mov eax, dword [eax]
sub esp, 0xc
cmp eax, 0xffffffff
je 0x4f7b97
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 0x4f81a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x711ab8]
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.005c8fb0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esi + 4], 6
jne 0x4f82d5
cmp dword [esi + 8], 2
jne 0x4f82d5
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.005c8fb0
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 0x4f82bb
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 0x4f82a0
pop edi
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.005c397a
add esp, 0x120
ret
mov ecx, dword [esp + 0x120]
pop ebx
xor ecx, esp
mov eax, esi
call fcn.005c397a
add esp, 0x120
ret
Function at 0x514fd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 8]
mov dword [esi], 0
jmp 0x514fe0
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.005cca96
add esp, 0xc
test eax, eax
jle 0x515000
add dword [esi], eax
cmp dword [esi], edi
jb 0x514fe0
pop ebp
test eax, eax
jge 0x515022
call fcn.005c9791
mov eax, dword [eax]
push eax
call fcn.005c96e3
push eax
push 0xffffffffffffffff
push ebx
call fcn.00515e80
add esp, 0x10
or eax, 0xffffffff
ret
jne 0x51502b
mov dword [ebx + 0x28], 1
xor eax, eax
ret
Function at 0x527530
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 0x5276a0
Capabilities:
Allocate thread local storage

Disassembly:
push ecx
cmp dword [0x70fbb4], 0xffffffff
jne 0x527724
test byte [0x7171b4], 1
jne 0x5276d3
or dword [0x7171b4], 1
push 0
mov ecx, 0x7171b0
call fcn.00523680
push 0x625080
call fcn.005c45e6
add esp, 4
push 0x7171b0
lea ecx, [esp + 4]
call fcn.004f95e0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x70fbb4], eax
mov eax, dword [esp]
test al, 1
je 0x527724
and eax, 0xfffffffe
mov ecx, eax
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x527708
add esp, 4
jmp fcn.00523710
push esi
mov esi, eax
xor edx, edx
mov eax, 1
lock cmpxchg dword [esi], edx
pop esi
cmp eax, 1
je 0x527724
add esp, 4
jmp fcn.00523740
pop ecx
ret
Function at 0x527e10
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.004f95e0
cmp byte [esi + 0x53], 0
mov ebx, dword [esp + 0x10]
je 0x527eaa
test bl, 1
je 0x527e65
and ebx, 0xfffffffe
mov ecx, ebx
and ecx, 0xfffffffe
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x527e4d
call fcn.00523710
jmp 0x527e65
mov ebp, eax
xor edx, edx
mov eax, 1
lock cmpxchg dword [ebp], edx
cmp eax, 1
je 0x527e65
call fcn.00523740
push 0xffffffffffffffff
mov ecx, edi
call fcn.005279a0
test ebx, ebx
je 0x527eaa
test bl, 1
jne 0x527eaa
mov ecx, ebx
and ecx, 0xfffffffe
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x527e8b
call fcn.005239f0
jmp 0x527ea7
mov ebp, eax
mov edx, 1
xor eax, eax
lock cmpxchg dword [ebp], edx
test eax, eax
sete al
test al, al
jne 0x527ea7
call fcn.00523770
or ebx, 1
cmp byte [esi + 0x50], 0
jne 0x527f92
mov ecx, dword [esi + 0x5c]
lea eax, [esi + 0x68]
push eax
push 4
push edi
push 0x527cf0
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.005c4af6
add esp, 0x18
mov dword [esi + 0x64], eax
test eax, eax
jne 0x527f0e
call fcn.005c9791
mov edx, dword [eax]
push str.QThread::start:_Failed_to_create_thread
push edx
call fcn.004f8890
add esp, 8
mov byte [esi + 0x50], 0
mov byte [esi + 0x51], 1
jmp 0x527f92
mov eax, dword [esp + 0x18]
mov dword [esi + 0x60], eax
cmp eax, 6
ja case.default.0x527f1a
jmp dword [eax*4 + 0x527fd0]
mov eax, 0xfffffff1
jmp 0x527f5a
mov eax, 0xfffffffe
jmp 0x527f5a
or eax, 0xffffffff
jmp 0x527f5a
xor eax, eax
jmp 0x527f5a
mov eax, 1
jmp 0x527f5a
mov eax, 2
jmp 0x527f5a
mov eax, 0xf
jmp 0x527f5a
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 0x527f76
push str.QThread::start:_Failed_to_set_thread_priority
call fcn.004f87b0
add esp, 4
mov ecx, dword [esi + 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x527f92
push str.QThread::start:_Failed_to_resume_new_thread
call fcn.004f87b0
add esp, 4
test bl, 1
je 0x527fc8
and ebx, 0xfffffffe
mov ecx, ebx
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x527fb1
call fcn.00523710
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 0x527fc8
call fcn.00523740
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4