joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a08c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5ac65f
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x6bd6f8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
push esi
call fcn.00482e10
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 0x4a1000
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac5b8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6bd6f8]
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.004084d7
mov byte [ebp - 4], 1
push str..X:
lea eax, [ebp - 0x14]
call fcn.004175e6
add esp, 4
mov ecx, dword [ebp + 8]
push ecx
mov ebx, 4
lea eax, [ebp - 0x14]
call fcn.00426392
push 0x250
call fcn.00573487
add esp, 4
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x4a1086
push 0x250
push ebx
push esi
call fcn.005780d0
add esp, 0xc
jmp 0x4a1088
xor esi, esi
push 0x250
push ebx
push esi
call fcn.005780d0
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 0x4a119a
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 0x4a119a
cmp dword [ebp - 0x18], edi
jne 0x4a119a
push 4
lea eax, [esi + 0x23]
push eax
push str.NTFS
call fcn.00578644
add esp, 0xc
test eax, eax
jne 0x4a119a
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 0x4a1126
imul eax, ecx
jmp 0x4a1134
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.00578b70
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.0040856e
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.00573401
add esp, 4
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.0040856e
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 0x4a1280
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
test edi, edi
je 0x4a1371
cmp dword [edi + 4], 1
jne 0x4a1371
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.005723d9
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.004a15a0
cmp dword [esi], 0x454c4946
jne 0x4a138a
movzx ecx, word [esi + 0x14]
movzx eax, word [esi + 0x28]
mov edx, 8
add ecx, esi
mov ebx, edx
cmp dx, ax
jb 0x4a1312
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 0x4a1366
mov eax, dword [ecx]
test eax, eax
jl 0x4a1366
cmp eax, 0x100
jg 0x4a1366
sub eax, 0x20
je 0x4a137c
sub eax, 0x60
je 0x4a1346
sub eax, 0x30
jne 0x4a1348
mov dword [esp + 0x10], ecx
jmp 0x4a1348
mov ebp, ecx
mov eax, dword [ecx + 4]
test eax, eax
jbe 0x4a1358
cmp eax, dword [esi + 0x18]
jae 0x4a1358
add ecx, eax
jmp 0x4a1361
cmp byte [ecx + 8], 1
jne 0x4a1361
add ecx, 0x48
inc edx
cmp edx, ebx
jl 0x4a1324
test ebp, ebp
je 0x4a1371
cmp dword [esp + 0x10], 0
jne 0x4a138e
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 0x4a14c0
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.00578b70
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 0x4a1557
mov dword [esp + 0x24], eax
shl eax, 0xa
mov dword [esp + 0x14], eax
jmp 0x4a1520
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.004a1760
add esp, 4
sub dword [esp + 0x24], 1
jne 0x4a1520
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.004a1760
mov edx, dword [esp + 0x14]
add esp, 4
pop edi
lea eax, [edx + ebp]
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4a3120
Capabilities:
Check for peb ntglobalflag flag
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5af2c1
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x6bd6f8]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6bd6f8]
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.004084d7
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.005780d0
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 0x4a3263
mov byte [ebp], 1
mov eax, dword [esp + 0x5c]
cmp eax, ebx
je 0x4a32de
push eax
call sub.WINTRUST.dll_WTHelperProvDataFromStateData
mov esi, eax
cmp esi, ebx
je 0x4a32de
cmp dword [esi + 0x3c], ebx
je 0x4a32de
mov eax, dword [esi + 0x30]
cmp eax, ebx
jbe 0x4a32de
cmp dword [esi + 0x34], ebx
je 0x4a32de
xor ebp, ebp
cmp eax, ebx
jbe 0x4a32de
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.004a2e00
add esp, 0x10
mov dword [esp + 0x8c], 1
call fcn.00408591
lea ecx, [esp + 0x18]
mov byte [esp + 0x8c], bl
call fcn.0040856e
mov ecx, dword [edi]
cmp dword [ecx - 0xc], ebx
jne 0x4a32de
inc ebp
cmp ebp, dword [esi + 0x30]
jb 0x4a3290
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.0057340c
add esp, 0x7c
ret
Function at 0x4b0600
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 0x4b0626
test eax, eax
je 0x4b0626
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov dword [esi + 4], edi
test eax, eax
je 0x4b065e
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 0x4b0652
test eax, eax
je 0x4b0652
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 0x4b0730
Capabilities:
Get file size

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

Disassembly:
sub esp, 0x120
mov eax, dword [0x6bd6f8]
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.005780d0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esi + 4], 6
jne 0x4b0e75
cmp dword [esi + 8], 2
jne 0x4b0e75
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.005780d0
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 0x4b0e5b
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 0x4b0e40
pop edi
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0057340c
add esp, 0x120
ret
mov ecx, dword [esp + 0x120]
pop ebx
xor ecx, esp
mov eax, esi
call fcn.0057340c
add esp, 0x120
ret
Function at 0x4cdb70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 8]
mov dword [esi], 0
jmp 0x4cdb80
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.0057bd56
add esp, 0xc
test eax, eax
jle 0x4cdba0
add dword [esi], eax
cmp dword [esi], edi
jb 0x4cdb80
pop ebp
test eax, eax
jge 0x4cdbc2
call fcn.00578a51
mov eax, dword [eax]
push eax
call fcn.005789a3
push eax
push 0xffffffffffffffff
push ebx
call fcn.004cea20
add esp, 0x10
or eax, 0xffffffff
ret
jne 0x4cdbcb
mov dword [ebx + 0x28], 1
xor eax, eax
ret
Function at 0x4e0130
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 0x4e0180
Capabilities:
Allocate thread local storage

Disassembly:
push ecx
cmp dword [0x6bbbb4], 0xffffffff
jne 0x4e0204
test byte [0x6c33b4], 1
jne 0x4e01b3
or dword [0x6c33b4], 1
push 0
mov ecx, 0x6c33b0
call fcn.004dc2a0
push 0x5cbaf0
call fcn.00574086
add esp, 4
push 0x6c33b0
lea ecx, [esp + 4]
call fcn.004b2190
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x6bbbb4], eax
mov eax, dword [esp]
test al, 1
je 0x4e0204
and eax, 0xfffffffe
mov ecx, eax
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x4e01e8
add esp, 4
jmp fcn.004dc330
push esi
mov esi, eax
xor edx, edx
mov eax, 1
lock cmpxchg dword [esi], edx
pop esi
cmp eax, 1
je 0x4e0204
add esp, 4
jmp fcn.004dc360
pop ecx
ret
Function at 0x4e0880
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.004b2190
cmp byte [esi + 0x53], 0
mov ebx, dword [esp + 0x10]
je 0x4e091a
test bl, 1
je 0x4e08d5
and ebx, 0xfffffffe
mov ecx, ebx
and ecx, 0xfffffffe
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x4e08bd
call fcn.004dc330
jmp 0x4e08d5
mov ebp, eax
xor edx, edx
mov eax, 1
lock cmpxchg dword [ebp], edx
cmp eax, 1
je 0x4e08d5
call fcn.004dc360
push 0xffffffffffffffff
mov ecx, edi
call fcn.004e0480
test ebx, ebx
je 0x4e091a
test bl, 1
jne 0x4e091a
mov ecx, ebx
and ecx, 0xfffffffe
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x4e08fb
call fcn.004dc610
jmp 0x4e0917
mov ebp, eax
mov edx, 1
xor eax, eax
lock cmpxchg dword [ebp], edx
test eax, eax
sete al
test al, al
jne 0x4e0917
call fcn.004dc390
or ebx, 1
cmp byte [esi + 0x50], 0
jne 0x4e0a02
mov ecx, dword [esi + 0x5c]
lea eax, [esi + 0x68]
push eax
push 4
push edi
push 0x4e0760
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.005752ab
add esp, 0x18
mov dword [esi + 0x64], eax
test eax, eax
jne 0x4e097e
call fcn.00578a51
mov edx, dword [eax]
push str.QThread::start:_Failed_to_create_thread
push edx
call fcn.004b1440
add esp, 8
mov byte [esi + 0x50], 0
mov byte [esi + 0x51], 1
jmp 0x4e0a02
mov eax, dword [esp + 0x18]
mov dword [esi + 0x60], eax
cmp eax, 6
ja case.default.0x4e098a
jmp dword [eax*4 + 0x4e0a40]
mov eax, 0xfffffff1
jmp 0x4e09ca
mov eax, 0xfffffffe
jmp 0x4e09ca
or eax, 0xffffffff
jmp 0x4e09ca
xor eax, eax
jmp 0x4e09ca
mov eax, 1
jmp 0x4e09ca
mov eax, 2
jmp 0x4e09ca
mov eax, 0xf
jmp 0x4e09ca
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 0x4e09e6
push str.QThread::start:_Failed_to_set_thread_priority
call fcn.004b1360
add esp, 4
mov ecx, dword [esi + 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x4e0a02
push str.QThread::start:_Failed_to_resume_new_thread
call fcn.004b1360
add esp, 4
test bl, 1
je 0x4e0a38
and ebx, 0xfffffffe
mov ecx, ebx
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x4e0a21
call fcn.004dc330
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 0x4e0a38
call fcn.004dc360
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x4e09b6
Capabilities:
Resume 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.004b2190
cmp byte [esi + 0x53], 0
mov ebx, dword [esp + 0x10]
je 0x4e091a
test bl, 1
je 0x4e08d5
and ebx, 0xfffffffe
mov ecx, ebx
and ecx, 0xfffffffe
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x4e08bd
call fcn.004dc330
jmp 0x4e08d5
mov ebp, eax
xor edx, edx
mov eax, 1
lock cmpxchg dword [ebp], edx
cmp eax, 1
je 0x4e08d5
call fcn.004dc360
push 0xffffffffffffffff
mov ecx, edi
call fcn.004e0480
test ebx, ebx
je 0x4e091a
test bl, 1
jne 0x4e091a
mov ecx, ebx
and ecx, 0xfffffffe
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x4e08fb
call fcn.004dc610
jmp 0x4e0917
mov ebp, eax
mov edx, 1
xor eax, eax
lock cmpxchg dword [ebp], edx
test eax, eax
sete al
test al, al
jne 0x4e0917
call fcn.004dc390
or ebx, 1
cmp byte [esi + 0x50], 0
jne 0x4e0a02
mov ecx, dword [esi + 0x5c]
lea eax, [esi + 0x68]
push eax
push 4
push edi
push 0x4e0760
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.005752ab
add esp, 0x18
mov dword [esi + 0x64], eax
test eax, eax
jne 0x4e097e
call fcn.00578a51
mov edx, dword [eax]
push str.QThread::start:_Failed_to_create_thread
push edx
call fcn.004b1440
add esp, 8
mov byte [esi + 0x50], 0
mov byte [esi + 0x51], 1
jmp 0x4e0a02
mov eax, dword [esp + 0x18]
mov dword [esi + 0x60], eax
cmp eax, 6
ja case.default.0x4e098a
jmp dword [eax*4 + 0x4e0a40]
mov eax, 0xfffffff1
jmp 0x4e09ca
mov eax, 0xfffffffe
jmp 0x4e09ca
or eax, 0xffffffff
jmp 0x4e09ca
xor eax, eax
jmp 0x4e09ca
mov eax, 1
jmp 0x4e09ca
mov eax, 2
jmp 0x4e09ca
mov eax, 0xf
jmp 0x4e09ca
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 0x4e09e6
push str.QThread::start:_Failed_to_set_thread_priority
call fcn.004b1360
add esp, 4
mov ecx, dword [esi + 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x4e0a02
push str.QThread::start:_Failed_to_resume_new_thread
call fcn.004b1360
add esp, 4
test bl, 1
je 0x4e0a38
and ebx, 0xfffffffe
mov ecx, ebx
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x4e0a21
call fcn.004dc330
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 0x4e0a38
call fcn.004dc360
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x4e0dd0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0x6c33ac
lea ecx, [esp + 8]
call fcn.004b2190
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x6c33a0]
jne 0x4e0e3a
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 4]
test al, 1
je 0x4e0ec3
and eax, 0xfffffffe
mov ecx, eax
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x4e0e1b
pop esi
add esp, 4
jmp fcn.004dc330
mov esi, eax
xor edx, edx
mov eax, 1
lock cmpxchg dword [esi], edx
cmp eax, 1
je 0x4e0ec3
pop esi
add esp, 4
jmp fcn.004dc360
lea eax, [esp + 0xc]
push eax
mov ecx, 0x6bbbb8
call fcn.0052c010
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x6bbbbc
call fcn.0052c010
cmp dword [0x6c33a0], 0
jne 0x4e0ead
cmp dword [0x6c33a4], 0
jne 0x4e0e8c
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x6c33a4
mov ecx, 0x6bbbb8
mov dword [0x6c33a4], eax
call fcn.004e0ad0
push 0x6c33a0
push 0
push 0
push 0x4e0b70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [esp + 4]
jmp 0x4e0dfd
mov edx, dword [0x6c33a4]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esp + 4]
jmp 0x4e0dfd
pop esi
pop ecx
ret
Function at 0x4e0ed0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub esp, 8
call fcn.004e0180
mov eax, dword [0x6bbbb4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x4e100c
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
push ecx
push 2
mov dword [esp + 0x14], eax
call fcn.004b1940
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
add esp, 8
test al, al
je 0x4e0f58
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 4]
mov esi, dword [eax + 0x74]
mov ecx, dword [0x6bbbb4]
push ebp
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 4]
mov byte [eax + 0x50], 1
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
mov byte [edx + 0x51], 0
mov edi, dword [esp + 0x10]
mov ebp, dword [edi + 4]
add edi, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov dword [ebp + 0x64], eax
mov edi, dword [edi]
call ebx
mov dword [edi + 0x68], eax
pop ebp
jmp 0x4e0fa6
push 0x48
call fcn.00573487
add esp, 4
test eax, eax
je 0x4e0f73
push 1
mov ecx, eax
call fcn.004da670
mov esi, eax
jmp 0x4e0f75
xor esi, esi
mov eax, dword [0x6bbbb4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 8
call fcn.00573487
add esp, 4
test eax, eax
je 0x4e0f9a
push esi
mov ecx, eax
call fcn.004da900
jmp 0x4e0f9c
xor eax, eax
mov ecx, esi
mov dword [esi + 4], eax
call fcn.004da8d0
mov byte [esi + 0x38], 1
call ebx
mov dword [esi + 8], eax
cmp dword [0x6c3354], 0
jne 0x4e0fca
mov ecx, dword [esi + 4]
pop edi
mov eax, esi
pop esi
mov dword [0x6c3354], ecx
pop ebx
add esp, 8
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
push 0
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], 0xffffffff
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.004e0dd0
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 8
ret
Function at 0x4fdac0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x224
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [esp + 0x1c]
push 0x104
mov ecx, eax
push ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0x104
call edi
mov esi, eax
cmp esi, 0x104
jbe 0x4fdb23
cmp esi, dword [esp + 0xc]
mov dword [esp + 8], esi
lea eax, [esp + 0xc]
jl 0x4fdb0c
lea eax, [esp + 8]
mov edx, dword [eax]
push edx
push esi
lea ecx, [esp + 0x14]
call fcn.004f2d30
mov eax, dword [esp + 0x14]
push esi
push eax
call edi
mov esi, eax
mov ecx, dword [esp + 0x14]
push esi
push ecx
push ebx
call fcn.004babe0
mov eax, dword [esp + 0x20]
add esp, 0xc
lea edx, [esp + 0x1c]
pop edi
pop esi
cmp eax, edx
je 0x4fdb49
push eax
call fcn.004be350
add esp, 4
mov eax, ebx
add esp, 0x224
ret