joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a08e0
Capabilities:
Hash data with md5

Disassembly:
push 0xffffffffffffffff
push 0x5b9101
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.0042d610
add esp, 4
lea eax, [esp + 0x10]
push eax
mov ecx, esi
push ecx
call fcn.004a0560
mov esi, 1
mov dword [esp + 0x80], esi
push eax
push ebp
call fcn.004759d0
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 0x4a09ba
xor edi, edi
call fcn.00428d6c
mov edx, dword [esp + 0x10]
push edx
call fcn.005796d1
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.005796dc
add esp, 0x74
ret

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

Disassembly:
push esi
cmp edx, 8
jb 0x4a0b28
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 + 0x677b48]
movzx ebx, byte [eax + 1]
xor ebx, ecx
and ebx, 0xff
inc eax
shr ecx, 8
xor ecx, dword [ebx*4 + 0x677b48]
movzx ebx, byte [eax + 1]
xor ebx, ecx
and ebx, 0xff
inc eax
shr ecx, 8
xor ecx, dword [ebx*4 + 0x677b48]
movzx ebx, byte [eax + 1]
xor ebx, ecx
inc eax
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x677b48]
movzx ebx, byte [eax + 1]
xor ebx, ecx
inc eax
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x677b48]
movzx ebx, byte [eax + 1]
xor ebx, ecx
inc eax
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x677b48]
movzx ebx, byte [eax + 1]
inc eax
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x677b48]
movzx ebx, byte [eax + 1]
inc eax
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x677b48]
inc eax
sub edx, 8
sub esi, 1
jne 0x4a0a62
mov dword [edi], ecx
pop ebx
test edx, edx
je 0x4a0b4d
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 + 0x677b48]
inc eax
sub edx, 1
jne 0x4a0b30
mov dword [edi], ecx
pop esi
ret
Function at 0x4a2e00
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b0830
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.004a4660
add esp, 4
cmp eax, ebx
jne 0x4a2fb9
push 0x54
lea eax, [esp + 0x34]
push ebx
push eax
call fcn.0057e5e0
mov eax, dword [esi]
add esp, 0xc
push ebx
push ebx
lea ecx, [esp + 0x34]
push ebx
push ecx
call fcn.004a3e20
add esp, 0x10
test eax, eax
jne 0x4a2f93
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 0x4a2f43
mov edi, 0x10000
lea ebx, [esp + 0x20]
call fcn.004265ee
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.004a4830
add esp, 4
test eax, eax
jle 0x4a2f14
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 0x4a2f14
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4a2f14
add dword [esp + 0x18], eax
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
push eax
mov eax, dword [edi]
call fcn.004a4830
add esp, 4
test eax, eax
jg 0x4a2eda
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov byte [esp + 0x90], 0
add dword [ebx + 8], 0xffffffff
jne 0x4a2f43
xor edi, edi
mov esi, ebx
call fcn.00428d6c
push ebx
call fcn.005796d1
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 0x4a2f62
cmp eax, dword [esp + 0x50]
jne 0x4a2f62
mov byte [esp + 0x17], 1
jmp 0x4a2f7c
cmp esi, 0xffffffff
je 0x4a2f6a
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 0x4a2f93
push eax
call edi
mov eax, dword [ebp + 8]
mov edi, dword [eax]
call fcn.004a4ab0
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 0x4a4cb0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5b300f
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.0048d550
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 0x4a53f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b2fa8
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.004084c2
mov byte [ebp - 4], 1
push str..X:
lea eax, [ebp - 0x14]
call fcn.00417a4d
add esp, 4
mov ecx, dword [ebp + 8]
push ecx
mov ebx, 4
lea eax, [ebp - 0x14]
call fcn.004263a9
push 0x250
call fcn.00579757
add esp, 4
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x4a5476
push 0x250
push ebx
push esi
call fcn.0057e5e0
add esp, 0xc
jmp 0x4a5478
xor esi, esi
push 0x250
push ebx
push esi
call fcn.0057e5e0
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push connect
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x4a558a
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 0x4a558a
cmp dword [ebp - 0x18], edi
jne 0x4a558a
push 4
lea eax, [esi + 0x23]
push eax
push str.NTFS
call fcn.0057eb54
add esp, 0xc
test eax, eax
jne 0x4a558a
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 0x4a5516
imul eax, ecx
jmp 0x4a5524
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.0057f080
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.00408559
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.005796d1
add esp, 4
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00408559
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 0x4a5670
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
test edi, edi
je 0x4a5761
cmp dword [edi + 4], 1
jne 0x4a5761
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.005786a9
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.004a5990
cmp dword [esi], 0x454c4946
jne 0x4a577a
movzx ecx, word [esi + 0x14]
movzx eax, word [esi + 0x28]
mov edx, 8
add ecx, esi
mov ebx, edx
cmp dx, ax
jb 0x4a5702
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 0x4a5756
mov eax, dword [ecx]
test eax, eax
jl 0x4a5756
cmp eax, 0x100
jg 0x4a5756
sub eax, 0x20
je 0x4a576c
sub eax, 0x60
je 0x4a5736
sub eax, 0x30
jne 0x4a5738
mov dword [esp + 0x10], ecx
jmp 0x4a5738
mov ebp, ecx
mov eax, dword [ecx + 4]
test eax, eax
jbe 0x4a5748
cmp eax, dword [esi + 0x18]
jae 0x4a5748
add ecx, eax
jmp 0x4a5751
cmp byte [ecx + 8], 1
jne 0x4a5751
add ecx, 0x48
inc edx
cmp edx, ebx
jl 0x4a5714
test ebp, ebp
je 0x4a5761
cmp dword [esp + 0x10], 0
jne 0x4a577e
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 0x4a58b0
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.0057f080
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 0x4a5947
mov dword [esp + 0x24], eax
shl eax, 0xa
mov dword [esp + 0x14], eax
jmp 0x4a5910
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.004a5b50
add esp, 4
sub dword [esp + 0x24], 1
jne 0x4a5910
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.004a5b50
mov edx, dword [esp + 0x14]
add esp, 4
pop edi
lea eax, [edx + ebp]
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4a7510
Capabilities:
Check for peb ntglobalflag flag
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5b5c71
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.004084c2
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.0057e5e0
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 0x4a7653
mov byte [ebp], 1
mov eax, dword [esp + 0x5c]
cmp eax, ebx
je 0x4a76ce
push eax
call sub.WINTRUST.dll_WTHelperProvDataFromStateData
mov esi, eax
cmp esi, ebx
je 0x4a76ce
cmp dword [esi + 0x3c], ebx
je 0x4a76ce
mov eax, dword [esi + 0x30]
cmp eax, ebx
jbe 0x4a76ce
cmp dword [esi + 0x34], ebx
je 0x4a76ce
xor ebp, ebp
cmp eax, ebx
jbe 0x4a76ce
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.004a71f0
add esp, 0x10
mov dword [esp + 0x8c], 1
call fcn.0040857c
lea ecx, [esp + 0x18]
mov byte [esp + 0x8c], bl
call fcn.00408559
mov ecx, dword [edi]
cmp dword [ecx - 0xc], ebx
jne 0x4a76ce
inc ebp
cmp ebp, dword [esi + 0x30]
jb 0x4a7680
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.005796dc
add esp, 0x7c
ret
Function at 0x4b6860
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 0x4b6886
test eax, eax
je 0x4b6886
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov dword [esi + 4], edi
test eax, eax
je 0x4b68be
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 0x4b68b2
test eax, eax
je 0x4b68b2
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 0x4b6990
Capabilities:
Get file size

Disassembly:
mov eax, dword [eax]
sub esp, 0xc
cmp eax, 0xffffffff
je 0x4b69b7
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 0x4b6fc0
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.0057e5e0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esi + 4], 6
jne 0x4b70f5
cmp dword [esi + 8], 2
jne 0x4b70f5
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.0057e5e0
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 0x4b70db
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 0x4b70c0
pop edi
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.005796dc
add esp, 0x120
ret
mov ecx, dword [esp + 0x120]
pop ebx
xor ecx, esp
mov eax, esi
call fcn.005796dc
add esp, 0x120
ret
Function at 0x4d3e40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 8]
mov dword [esi], 0
jmp 0x4d3e50
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.00582266
add esp, 0xc
test eax, eax
jle 0x4d3e70
add dword [esi], eax
cmp dword [esi], edi
jb 0x4d3e50
pop ebp
test eax, eax
jge 0x4d3e92
call fcn.0057ef61
mov eax, dword [eax]
push eax
call fcn.0057eeb3
push eax
push 0xffffffffffffffff
push ebx
call fcn.004d4cf0
add esp, 0x10
or eax, 0xffffffff
ret
jne 0x4d3e9b
mov dword [ebx + 0x28], 1
xor eax, eax
ret
Function at 0x4e6430
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 0x4e6480
Capabilities:
Allocate thread local storage

Disassembly:
push ecx
cmp dword [0x6c3bb4], 0xffffffff
jne 0x4e6504
test byte [0x6cb3d4], 1
jne 0x4e64b3
or dword [0x6cb3d4], 1
push 0
mov ecx, 0x6cb3d0
call fcn.004e2580
push 0x5d3640
call fcn.0057a356
add esp, 4
push 0x6cb3d0
lea ecx, [esp + 4]
call fcn.004b8400
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x6c3bb4], eax
mov eax, dword [esp]
test al, 1
je 0x4e6504
and eax, 0xfffffffe
mov ecx, eax
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x4e64e8
add esp, 4
jmp fcn.004e2610
push esi
mov esi, eax
xor edx, edx
mov eax, 1
lock cmpxchg dword [esi], edx
pop esi
cmp eax, 1
je 0x4e6504
add esp, 4
jmp fcn.004e2640
pop ecx
ret
Function at 0x4e6b80
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.004b8400
cmp byte [esi + 0x53], 0
mov ebx, dword [esp + 0x10]
je 0x4e6c1a
test bl, 1
je 0x4e6bd5
and ebx, 0xfffffffe
mov ecx, ebx
and ecx, 0xfffffffe
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x4e6bbd
call fcn.004e2610
jmp 0x4e6bd5
mov ebp, eax
xor edx, edx
mov eax, 1
lock cmpxchg dword [ebp], edx
cmp eax, 1
je 0x4e6bd5
call fcn.004e2640
push 0xffffffffffffffff
mov ecx, edi
call fcn.004e6780
test ebx, ebx
je 0x4e6c1a
test bl, 1
jne 0x4e6c1a
mov ecx, ebx
and ecx, 0xfffffffe
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x4e6bfb
call fcn.004e28f0
jmp 0x4e6c17
mov ebp, eax
mov edx, 1
xor eax, eax
lock cmpxchg dword [ebp], edx
test eax, eax
sete al
test al, al
jne 0x4e6c17
call fcn.004e2670
or ebx, 1
cmp byte [esi + 0x50], 0
jne 0x4e6d02
mov ecx, dword [esi + 0x5c]
lea eax, [esi + 0x68]
push eax
push 4
push edi
push 0x4e6a60
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.0057b57b
add esp, 0x18
mov dword [esi + 0x64], eax
test eax, eax
jne 0x4e6c7e
call fcn.0057ef61
mov edx, dword [eax]
push str.QThread::start:_Failed_to_create_thread
push edx
call fcn.004b76b0
add esp, 8
mov byte [esi + 0x50], 0
mov byte [esi + 0x51], 1
jmp 0x4e6d02
mov eax, dword [esp + 0x18]
mov dword [esi + 0x60], eax
cmp eax, 6
ja case.default.0x4e6c8a
jmp dword [eax*4 + 0x4e6d40]
mov eax, 0xfffffff1
jmp 0x4e6cca
mov eax, 0xfffffffe
jmp 0x4e6cca
or eax, 0xffffffff
jmp 0x4e6cca
xor eax, eax
jmp 0x4e6cca
mov eax, 1
jmp 0x4e6cca
mov eax, 2
jmp 0x4e6cca
mov eax, 0xf
jmp 0x4e6cca
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 0x4e6ce6
push str.QThread::start:_Failed_to_set_thread_priority
call fcn.004b75d0
add esp, 4
mov ecx, dword [esi + 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x4e6d02
push str.QThread::start:_Failed_to_resume_new_thread
call fcn.004b75d0
add esp, 4
test bl, 1
je 0x4e6d38
and ebx, 0xfffffffe
mov ecx, ebx
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x4e6d21
call fcn.004e2610
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 0x4e6d38
call fcn.004e2640
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4