joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46eb20
Capabilities:
Compare security identifiers

Disassembly:
push 0xffffffffffffffff
push 0x577b18
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6531f0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, dword [0x66adec]
xor esi, esi
cmp dword [edi], esi
je 0x46ebf0
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esp + 0x14], esi
cmp eax, esi
je 0x46eb77
push eax
call ebx
mov dword [esp + 0x10], esi
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push eax
push esi
push esi
push esi
lea ecx, [esp + 0x24]
push ecx
push 1
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_GetSecurityInfo]
test eax, eax
jne 0x46ebdd
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x46ebdd
cmp dword [esp + 0x10], esi
je 0x46ebdd
mov ecx, dword [edi]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x46ebdd
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x46ebc6
push eax
call ebx
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 4
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x46ebf0
push eax
call ebx
xor al, al
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 4

Function at 0x46ef60
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x57a8c1
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6531f0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x2c]
push eax
call fcn.0040cb50
mov dword [esp + 0x24], esi
mov ebp, 1
mov edi, 0x400
lea ebx, [esp + 0x14]
mov dword [esp + 0x18], ebp
call fcn.0046e3d0
mov dword [esp + 0x24], ebp
mov esi, dword [esp + 0x14]
mov eax, dword [esi]
push ebp
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x46f00f
mov edx, dword [esi]
test edx, edx
jne 0x46efe8
mov ebp, dword [esp + 0x2c]
xor eax, eax
mov ebx, eax
push edx
mov eax, ebp
call fcn.004028e0
jmp 0x46f013
mov eax, edx
lea edi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46eff0
mov ebp, dword [esp + 0x2c]
sub eax, edi
sar eax, 1
mov ebx, eax
push edx
mov eax, ebp
call fcn.004028e0
jmp 0x46f013
mov ebp, dword [esp + 0x2c]
xor ebx, ebx
mov byte [esp + 0x24], bl
add dword [esi + 8], 0xffffffff
jne 0x46f033
xor edi, edi
call fcn.0046e840
push esi
call fcn.004fdb3f
add esp, 4
mov dword [esp + 0x14], ebx
mov eax, ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x46f050
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x57d27c
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x6531f0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
push esi
call fcn.00472440
xor edi, edi
mov dword [esp + 0x1c], edi
lea eax, [esi + 0x18]
push eax
call fcn.00472440
mov byte [esp + 0x1c], 1
lea eax, [esi + 0x50]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esp + 0xc], eax
mov dword [eax], 0xffffffff
mov byte [esp + 0x1c], 2
mov dword [eax + 4], edi
mov byte [esp + 0x1c], 3
add eax, 8
mov dword [esp + 0x10], eax
mov dword [eax], edi
mov dword [esp + 0x1c], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 4
Function at 0x46f4d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x585a0a
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6531f0]
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.00471530
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 0x46f550
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x585a0a
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6531f0]
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.00471620
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 0x46f750
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x583c72
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x6531f0]
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.00478210
xor edi, edi
mov dword [esp + 0x38], edi
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x46f876
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 0x46f7c9
cmp esi, 0x10
jbe 0x46f876
mov eax, dword [esp + 0x28]
push 4
push str.MSDB
push eax
call fcn.004ff37b
add esp, 0xc
test eax, eax
jne 0x46f876
mov ecx, dword [esp + 0x28]
add esi, 0xfffffffc
push esi
add ecx, 4
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004789c0
add esp, 0xc
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x14]
cmp dword [eax], edi
je 0x46f848
cmp dword [eax + 4], edi
je 0x46f848
lea esi, [ebx + 8]
mov edi, esi
call fcn.0046f410
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov edi, dword [ebx]
push 0
push ecx
push eax
call fcn.0046d3f0
add esp, 0xc
test al, al
je 0x46f848
mov ebx, dword [ebx]
push ebx
mov eax, esi
call fcn.0046f0f0
test al, al
je 0x46f848
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 0x46f876
xor edi, edi
call fcn.00431b10
mov eax, dword [esp + 0x14]
push eax
call fcn.004fdb3f
add esp, 4
mov dword [esp + 0x14], edi
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x20]
push ecx
call fcn.00478370
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 0x474420
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
mov edi, eax
mov ebx, ecx
test edi, edi
jbe 0x474465
push ebp
jmp 0x474430
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 + 0x630994]
shl ecx, 8
xor ecx, dword [eax*8 + 0x630990]
dec edi
inc ebx
mov dword [esi], ecx
mov dword [esi + 4], edx
test edi, edi
ja 0x474430
pop ebp
pop edi
pop ebx
ret

Function at 0x474e70
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x57fd24
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6531f0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
xor esi, esi
mov dword [esp + 0x18], esi
cmp dword [ebp], esi
jne 0x474eaf
call fcn.004746b0
mov eax, dword [ebp + 4]
cmp eax, esi
jne 0x474ebb
call fcn.004746b0
push eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x34], esi
call fcn.005756c1
add esp, 4
cmp eax, 6
jne 0x474fa8
jmp 0x474ee0
cmp dword [esp + 0x14], 0x3e8
jg 0x474fa8
cmp dword [esp + 0x30], 3
jg 0x474fa8
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 8
mov edi, eax
call fcn.004fdddd
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], 1
test esi, esi
je 0x474f36
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esi], edi
mov dword [esi + 4], eax
jmp 0x474f38
xor esi, esi
mov byte [esp + 0x28], 0
mov eax, dword [ebp]
push esi
push 0x4744f0
push eax
call fcn.00550dea
add esp, 0xc
nop
push 1
push 0x1388
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
cmp eax, 0xc0
je 0x474f50
test eax, eax
je 0x474f6d
inc dword [esp + 0x30]
mov ecx, dword [ebp]
push 0
push 0
push ecx
call fcn.00550dea
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 4]
inc dword [esp + 0x14]
push edx
call fcn.005692a0
mov eax, dword [ebp + 4]
push eax
call fcn.005756c1
add esp, 8
xor esi, esi
cmp eax, 6
je 0x474ee0
cmp eax, 0x65
jne 0x474ff0
mov eax, dword [ebp + 4]
mov ecx, dword [ebp]
push eax
mov dword [ebx], ecx
mov dword [ebx + 4], eax
mov byte [ebx + 8], 1
call fcn.00533bce
add esp, 4
mov dword [ebx + 0xc], eax
mov byte [ebx + 0x10], 0
mov dword [esp + 0x28], esi
mov dword [esp + 0x18], 1
mov eax, ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
cmp eax, 0x64
mov eax, dword [ebp + 4]
push eax
jne 0x475016
mov edx, dword [ebp]
mov dword [ebx], edx
mov dword [ebx + 4], eax
mov byte [ebx + 8], 0
call fcn.00533bce
add esp, 4
mov dword [ebx + 0xc], eax
mov byte [ebx + 0x10], 0
jmp 0x474fcc
call fcn.005692a0
mov ecx, dword [ebp]
push ecx
mov esi, eax
call fcn.0054758f
add esp, 8
push 0x63d6cc
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x38], esi
call fcn.0050a72e
int3
Function at 0x4753d0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x57fd24
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6531f0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
xor eax, eax
mov dword [esp + 0x18], eax
cmp dword [ebp], eax
jne 0x47540b
call fcn.004746b0
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
push eax
mov ebx, ebp
call fcn.00475730
mov ebx, eax
push ebx
call fcn.005756c1
add esp, 4
cmp eax, 6
jne 0x475506
cmp dword [esp + 0x14], 0x3e8
jg 0x475506
cmp dword [esp + 0x30], 3
jg 0x475506
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 8
mov edi, eax
call fcn.004fdddd
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], 1
test esi, esi
je 0x47548c
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esi], edi
mov dword [esi + 4], eax
jmp 0x47548e
xor esi, esi
mov byte [esp + 0x28], 0
mov ecx, dword [ebp]
push esi
push 0x4744f0
push ecx
call fcn.00550dea
add esp, 0xc
push 1
push 0x1388
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
cmp eax, 0xc0
je 0x4754a5
test eax, eax
je 0x4754c2
inc dword [esp + 0x30]
mov edx, dword [ebp]
push 0
push 0
push edx
call fcn.00550dea
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [esp + 0x14]
push ebx
call fcn.00569252
mov eax, dword [esp + 0x3c]
add esp, 4
push eax
mov ebx, ebp
call fcn.00475730
mov ebx, eax
push ebx
call fcn.005756c1
add esp, 4
cmp eax, 6
je 0x475433
push ebx
cmp eax, 0x65
jne 0x475553
mov ecx, dword [ebp]
mov esi, dword [esp + 0x38]
mov dword [esi], ecx
mov dword [esi + 4], ebx
mov byte [esi + 8], 1
call fcn.00533bce
add esp, 4
mov dword [esi + 0xc], eax
mov byte [esi + 0x10], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 1
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc
cmp eax, 0x64
jne 0x475589
mov edx, dword [ebp]
mov esi, dword [esp + 0x38]
mov dword [esi], edx
mov dword [esi + 4], ebx
mov byte [esi + 8], 0
call fcn.00533bce
mov dword [esi + 0xc], eax
mov eax, 1
add esp, 4
mov byte [esi + 0x10], al
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], eax
jmp 0x47553b
call fcn.00569252
mov esi, eax
mov eax, dword [ebp]
push eax
call fcn.0054758f
add esp, 8
push 0x63d6cc
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x40], esi
call fcn.0050a72e
int3
Function at 0x478290
Capabilities:
Read file via mapping

Disassembly:
push ebx
push edi
push 0
push 0
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
mov eax, dword [esi]
cmp edi, eax
je 0x4782be
cmp eax, 0xffffffff
je 0x4782be
push eax
call ebx
mov dword [esi], edi
cmp edi, 0xffffffff
je 0x47831f
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov eax, dword [esi + 4]
cmp edi, eax
je 0x4782e6
test eax, eax
je 0x4782e6
push eax
call ebx
mov eax, edi
mov dword [esi + 4], edi
test eax, eax
je 0x47831f
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 0x478312
test eax, eax
je 0x478312
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor eax, eax
cmp edi, eax
mov dword [esi + 8], edi
pop edi
setne al
pop ebx
ret
pop edi
xor al, al
pop ebx
ret

Function at 0x4787f0
Capabilities:
Enumerate pe sections
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [ecx + 0x10]
push ebx
push ebp
mov ebp, dword [ecx + 0x14]
xor ebx, ebx
test ebp, ebp
ja 0x478807
cmp eax, 0x40
jbe 0x4788e7
push edi
mov edi, dword [ecx + 0xc]
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x4788ef
push esi
mov byte [ecx + 0x18], 1
mov edx, dword [edi + 0x3c]
xor esi, esi
lea eax, [edx + 0xf8]
cmp ebp, esi
jb 0x4788dd
ja 0x47883c
cmp dword [ecx + 0x10], eax
jbe 0x4788dd
add edx, edi
mov dword [ecx + 8], edx
cmp dword [edx], 0x4550
jne 0x4788f5
mov eax, 0x2000
test word [edx + 0x16], ax
jne 0x47885c
mov byte [ecx + 0x24], 1
movzx eax, word [edx + 0x18]
mov edx, 0x10b
cmp ax, dx
jne 0x478879
mov eax, dword [ecx + 8]
mov dword [ecx + 0x20], 1
add eax, 0x78
jmp 0x478892
mov edx, 0x20b
cmp ax, dx
jne 0x478895
mov eax, dword [ecx + 8]
mov dword [ecx + 0x20], 2
add eax, 0x88
mov dword [ecx + 4], eax
cmp dword [ecx + 4], ebx
je 0x4788f5
mov edx, dword [ecx + 8]
movzx edx, word [edx + 6]
mov dword [ecx + 0x1c], edx
test edx, edx
je 0x4788f5
mov eax, dword [ecx + 8]
movzx esi, word [eax + 0x14]
lea edx, [edx + edx*4]
add edx, edx
add edx, edx
add edx, edx
sub edx, edi
add edx, esi
lea edi, [edx + eax + 0x18]
xor edx, edx
cmp ebp, edx
jb 0x4788dd
ja 0x4788cd
cmp dword [ecx + 0x10], edi
jbe 0x4788dd
lea eax, [esi + eax + 0x18]
pop esi
pop edi
pop ebp
mov dword [ecx], eax
mov eax, 1
pop ebx
ret
pop esi
pop edi
pop ebp
mov eax, 2
pop ebx
ret
pop ebp
mov eax, 2
pop ebx
ret
pop edi
pop ebp
mov eax, ebx
pop ebx
ret
pop esi
pop edi
pop ebp
mov eax, ebx
pop ebx
ret
Function at 0x478ab0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x6531f0]
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.00501e30
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esi + 4], 6
jne 0x478be5
cmp dword [esi + 8], 2
jne 0x478be5
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.00501e30
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 0x478bcb
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 0x478bb0
pop edi
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004fdb4a
add esp, 0x120
ret
mov ecx, dword [esp + 0x120]
pop ebx
xor ecx, esp
mov eax, esi
call fcn.004fdb4a
add esp, 0x120
ret
Function at 0x4959a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 8]
mov dword [esi], 0
jmp 0x4959b0
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.00505c76
add esp, 0xc
test eax, eax
jle 0x4959d0
add dword [esi], eax
cmp dword [esi], edi
jb 0x4959b0
pop ebp
test eax, eax
jge 0x4959f2
call fcn.00502971
mov eax, dword [eax]
push eax
call fcn.005028c3
push eax
push 0xffffffffffffffff
push ebx
call fcn.00496850
add esp, 0x10
or eax, 0xffffffff
ret
jne 0x4959fb
mov dword [ebx + 0x28], 1
xor eax, eax
ret
Function at 0x4a7e80
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 0x4a7ed0
Capabilities:
Allocate thread local storage

Disassembly:
push ecx
cmp dword [0x651b94], 0xffffffff
jne 0x4a7f54
test byte [0x6577f4], 1
jne 0x4a7f03
or dword [0x6577f4], 1
push 0
mov ecx, 0x6577f0
call fcn.004a3fa0
push 0x58a360
call fcn.004fdcdd
add esp, 4
push 0x6577f0
lea ecx, [esp + 4]
call fcn.00479f60
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x651b94], eax
mov eax, dword [esp]
test al, 1
je 0x4a7f54
and eax, 0xfffffffe
mov ecx, eax
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x4a7f38
add esp, 4
jmp fcn.004a4030
push esi
mov esi, eax
xor edx, edx
mov eax, 1
lock cmpxchg dword [esi], edx
pop esi
cmp eax, 1
je 0x4a7f54
add esp, 4
jmp fcn.004a4060
pop ecx
ret
Function at 0x4a85d0
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.00479f60
cmp byte [esi + 0x53], 0
mov ebx, dword [esp + 0x10]
je 0x4a866a
test bl, 1
je 0x4a8625
and ebx, 0xfffffffe
mov ecx, ebx
and ecx, 0xfffffffe
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x4a860d
call fcn.004a4030
jmp 0x4a8625
mov ebp, eax
xor edx, edx
mov eax, 1
lock cmpxchg dword [ebp], edx
cmp eax, 1
je 0x4a8625
call fcn.004a4060
push 0xffffffffffffffff
mov ecx, edi
call fcn.004a81d0
test ebx, ebx
je 0x4a866a
test bl, 1
jne 0x4a866a
mov ecx, ebx
and ecx, 0xfffffffe
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x4a864b
call fcn.004a4310
jmp 0x4a8667
mov ebp, eax
mov edx, 1
xor eax, eax
lock cmpxchg dword [ebp], edx
test eax, eax
sete al
test al, al
jne 0x4a8667
call fcn.004a4090
or ebx, 1
cmp byte [esi + 0x50], 0
jne 0x4a8752
mov ecx, dword [esi + 0x5c]
lea eax, [esi + 0x68]
push eax
push 4
push edi
push 0x4a84b0
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.004ff05b
add esp, 0x18
mov dword [esi + 0x64], eax
test eax, eax
jne 0x4a86ce
call fcn.00502971
mov edx, dword [eax]
push str.QThread::start:_Failed_to_create_thread
push edx
call fcn.004791a0
add esp, 8
mov byte [esi + 0x50], 0
mov byte [esi + 0x51], 1
jmp 0x4a8752
mov eax, dword [esp + 0x18]
mov dword [esi + 0x60], eax
cmp eax, 6
ja case.default.0x4a86da
jmp dword [eax*4 + 0x4a8790]
mov eax, 0xfffffff1
jmp 0x4a871a
mov eax, 0xfffffffe
jmp 0x4a871a
or eax, 0xffffffff
jmp 0x4a871a
xor eax, eax
jmp 0x4a871a
mov eax, 1
jmp 0x4a871a
mov eax, 2
jmp 0x4a871a
mov eax, 0xf
jmp 0x4a871a
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 0x4a8736
push str.QThread::start:_Failed_to_set_thread_priority
call fcn.004790c0
add esp, 4
mov ecx, dword [esi + 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x4a8752
push str.QThread::start:_Failed_to_resume_new_thread
call fcn.004790c0
add esp, 4
test bl, 1
je 0x4a8788
and ebx, 0xfffffffe
mov ecx, ebx
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x4a8771
call fcn.004a4030
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 0x4a8788
call fcn.004a4060
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x4a8b20
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0x6577ec
lea ecx, [esp + 8]
call fcn.00479f60
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x6577e0]
jne 0x4a8b8a
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 4]
test al, 1
je 0x4a8c13
and eax, 0xfffffffe
mov ecx, eax
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x4a8b6b
pop esi
add esp, 4
jmp fcn.004a4030
mov esi, eax
xor edx, edx
mov eax, 1
lock cmpxchg dword [esi], edx
cmp eax, 1
je 0x4a8c13
pop esi
add esp, 4
jmp fcn.004a4060
lea eax, [esp + 0xc]
push eax
mov ecx, 0x651b98
call fcn.004f3d20
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x651b9c
call fcn.004f3d20
cmp dword [0x6577e0], 0
jne 0x4a8bfd
cmp dword [0x6577e4], 0
jne 0x4a8bdc
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x6577e4
mov ecx, 0x651b98
mov dword [0x6577e4], eax
call fcn.004a8820
push 0x6577e0
push 0
push 0
push 0x4a88c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [esp + 4]
jmp 0x4a8b4d
mov edx, dword [0x6577e4]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esp + 4]
jmp 0x4a8b4d
pop esi
pop ecx
ret