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

Disassembly:
mov ecx, dword [0x484428]
push esi
test ecx, ecx
jne 0x4430b9
cmp byte [0x484424], cl
jne 0x4430b9
push str.Crypt32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x484420], eax
test eax, eax
je 0x4430ac
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptProtectMemory
push eax
call esi
mov dword [0x484428], eax
mov eax, dword [0x484420]
push str.CryptUnprotectMemory
push eax
call esi
mov dword [0x48442c], eax
mov ecx, dword [0x484428]
mov byte [0x484424], 1
mov esi, dword [esp + 0xc]
mov edx, esi
and edx, 0xf
mov eax, esi
sub eax, edx
cmp byte [esp + 0x10], 0
je 0x44310b
test ecx, ecx
je 0x44312a
push 0
push eax
mov eax, dword [esp + 0x10]
push eax
call ecx
test eax, eax
jne 0x44314d
push str.CryptProtectMemory_failed
push 0x47e198
call fcn.0041cf50
add esp, 8
mov ecx, 0x47e198
call fcn.0041cc80
push 2
mov ecx, 0x47e198
call fcn.0041cc60
pop esi
ret 0xc
mov ecx, dword [0x48442c]
test ecx, ecx
je 0x44312a
mov edx, dword [esp + 8]
push 0
push eax
push edx
call ecx
test eax, eax
jne 0x44314d
push str.CryptUnprotectMemory_failed
jmp 0x4430e4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor ecx, ecx
test esi, esi
jbe 0x44314d
mov dl, al
mov eax, dword [esp + 8]
add dl, 0x4b
push ebx
mov bl, dl
add bl, cl
xor byte [ecx + eax], bl
inc ecx
cmp ecx, esi
jb 0x443140
pop ebx
pop esi
ret 0xc

Function at 0x444d70
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
ret 4

Function at 0x444fa0
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
ret 4
Function at 0x445500
Capabilities:
Hash data using sha256

Disassembly:
sub esp, 0x12c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x13c]
mov ecx, dword [esi + 0x20]
push edi
lea eax, [esi + 0x2c]
push 0
mov dword [esp + 0x14], eax
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x24]
push 8
push eax
push ecx
call fcn.00453600
mov edi, dword [esi + 0x20]
and edi, 0x3f
mov byte [edi + esi + 0x2c], 0x80
inc edi
mov ebp, eax
mov ebx, edx
cmp edi, 0x38
je 0x44555a
and edi, 0x3f
jne 0x44554c
push esi
call fcn.00444ff0
mov edx, dword [esp + 0x10]
mov byte [edx + edi], 0
inc edi
cmp edi, 0x38
jne 0x445541
mov eax, ebx
shr eax, 0x18
mov byte [edi + esi + 0x2c], al
shld ebx, ebp, 8
shl ebp, 8
mov ecx, ebx
mov edx, ecx
shr edx, 0x18
mov byte [edi + esi + 0x2d], dl
mov eax, ebp
shld ecx, eax, 8
shl eax, 8
mov edx, ecx
shld ecx, eax, 8
shr edx, 0x18
mov byte [edi + esi + 0x2e], dl
shl eax, 8
mov edx, ecx
shld ecx, eax, 8
shr edx, 0x18
shl eax, 8
mov byte [edi + esi + 0x2f], dl
mov edx, ecx
shld ecx, eax, 8
shr edx, 0x18
shl eax, 8
mov byte [edi + esi + 0x30], dl
mov edx, ecx
shld ecx, eax, 8
shl eax, 8
mov dword [esp + 0x14], eax
mov eax, ecx
shr edx, 0x18
shr eax, 0x18
shr ecx, 0x10
push esi
mov byte [edi + esi + 0x31], dl
mov byte [edi + esi + 0x32], al
mov byte [edi + esi + 0x33], cl
call fcn.00444ff0
mov edi, dword [esp + 0x144]
xor ebp, ebp
xor eax, eax
mov edx, eax
and edx, 3
mov ecx, 3
sub ecx, edx
add ecx, ecx
mov edx, eax
shr edx, 2
mov edx, dword [esi + edx*4]
add ecx, ecx
add ecx, ecx
shr edx, cl
inc eax
mov byte [eax + edi - 1], dl
cmp eax, 0x20
jb 0x4455e3
push 0x20
lea eax, [esp + 0x20]
push eax
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x20], ebp
mov dword [esi + 0x24], ebp
call fcn.00443160
push 0x100
lea ecx, [esp + 0x40]
push ecx
call fcn.00443160
mov edx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x12c
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
jmp fcn.00443160

Function at 0x446150
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4461a3
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp]
push 0
push 0
push 0
lea edx, [esp + 0x10]
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0x80000000
push 0xd
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x14
ret
Function at 0x446af0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, ecx
mov dword [esi], eax
cmp eax, 0x20
jbe 0x446b07
mov dword [esi], 0x20
jmp 0x446b11
test eax, eax
jne 0x446b11
mov dword [esi], 1
push 0
push 0x20
push 0
push 0
mov byte [esi + 0x190], 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push 0
push 1
push 1
push 0
mov dword [esi + 0x194], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x198], eax
lea eax, [esi + 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
cmp dword [esi + 0x194], 0
je 0x446b5f
cmp dword [esi + 0x198], 0
jne 0x446b7d
push str._nThread_pool_initialization_failed.
push 0x47e198
call fcn.0041cf50
add esp, 8
push 2
mov ecx, 0x47e198
call fcn.0041cc60
xor ebx, ebx
cmp dword [esi], ebx
jbe 0x446bee
push ebp
push edi
lea ebp, [esi + 4]
lea ecx, [esp + 0x14]
push ecx
push 0
push esi
push 0x446aa0
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x446bd0
push str.CreateThread_failed
push 0x47e198
call fcn.0041cf50
add esp, 8
mov ecx, 0x47e198
call fcn.0041cc80
push 2
mov ecx, 0x47e198
call fcn.0041cc60
mov dword [ebp], edi
mov eax, dword [0x488444]
test eax, eax
je 0x446be4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc ebx
add ebp, 4
cmp ebx, dword [esi]
jb 0x446b88
pop edi
pop ebp
xor eax, eax
mov dword [esi + 0x188], eax
mov dword [esi + 0x18c], eax
mov dword [esi + 0x84], eax
mov eax, esi
pop esi
pop ebx
ret 4
Function at 0x44a160
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x408
push ebx
push ebp
push esi
mov esi, dword [esp + 0x418]
push edi
mov ebx, ecx
movzx edi, word [ebx]
sub edi, dword [esi + 0x654]
mov dword [esp + 0x14], ebx
push edi
push esi
call fcn.00449f50
mov dl, byte [esi + 0xa6c]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 4]
sub eax, 6
lea ebp, [esp + 0x18]
xor ecx, ecx
lea ecx, [ecx]
movzx ebx, byte [eax + 6]
add eax, 6
cmp byte [ebx + esi + 0x66c], dl
je 0x44a1a0
movzx ebx, byte [eax + 1]
mov dword [ebp], eax
add ecx, ebx
add ebp, 4
sub edi, 1
jne 0x44a1a0
add dword [esi + 0x4a84], ecx
mov eax, dword [esi + 0x4a78]
xor edx, edx
div dword [esi + 0x4a84]
xor edx, edx
mov edi, eax
mov eax, dword [esi + 0x4a74]
sub eax, dword [esi + 0x4a70]
mov dword [esi + 0x4a78], edi
div edi
mov ebx, dword [esi + 0x4a84]
cmp eax, ebx
jl 0x44a206
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x408
ret 4
cmp eax, ecx
mov edx, dword [esp + 0x18]
lea edi, [esp + 0x18]
jge 0x44a283
movzx ecx, byte [edx + 1]
cmp ecx, eax
jg 0x44a230
lea ebx, [ebx]
mov edx, dword [edi + 4]
movzx ebx, byte [edx + 1]
add edi, 4
add ecx, ebx
cmp ecx, eax
jle 0x44a220
mov edi, dword [esp + 0x10]
mov dword [esi + 0x4a80], ecx
movzx eax, byte [edx + 1]
sub ecx, eax
mov dword [esi + 0x4a7c], ecx
mov cl, byte [edi + 2]
cmp cl, 7
jae 0x44a269
add byte [edi + 3], 0xff
jne 0x44a269
mov ax, word [edi]
add ax, ax
mov word [edi], ax
mov al, 3
shl al, cl
inc cl
mov byte [edi + 2], cl
mov byte [edi + 3], al
mov ecx, dword [esp + 0x14]
push edx
push esi
call fcn.00449f10
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x408
ret 4
mov edi, dword [esp + 0x14]
mov dword [esi + 0x4a7c], ecx
mov dword [esi + 0x4a80], ebx
movzx ecx, word [edi]
sub ecx, dword [esi + 0x654]
lea eax, [esp + 0x18]
sub eax, 4
mov edx, dword [eax + 4]
movzx edx, byte [edx]
mov bl, byte [esi + 0xa6c]
add eax, 4
sub ecx, 1
mov byte [edx + esi + 0x66c], bl
jne 0x44a2a3
mov cx, word [esi + 0x4a84]
mov eax, dword [esp + 0x10]
add word [eax], cx
movzx edx, word [edi]
pop edi
mov dword [esi + 0x654], edx
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x408
ret 4

Function at 0x45334a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46aee0]
jne 0x453354
repz ret
jmp fcn.00456a95
Function at 0x45e853
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004599c3
and dword [ebp - 4], 0
cmp dword [0x48906c], 0
mov ebx, eax
jne 0x45e904
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x45e9b5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x45e9b5
push eax
call fcn.00459951
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x48906c], eax
call esi
push eax
call fcn.00459951
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x489070], eax
call esi
push eax
call fcn.00459951
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x489074], eax
call esi
push eax
call fcn.00459951
pop ecx
mov dword [0x48907c], eax
test eax, eax
je 0x45e904
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00459951
pop ecx
mov dword [0x489078], eax
mov eax, dword [0x489078]
cmp eax, ebx
je 0x45e95c
cmp dword [0x48907c], ebx
je 0x45e95c
push eax
call fcn.004599cc
push dword [0x48907c]
mov esi, eax
call fcn.004599cc
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x45e95c
test edi, edi
je 0x45e95c
call esi
test eax, eax
je 0x45e953
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x45e953
test byte [ebp - 0xc], 1
jne 0x45e95c
or dword [ebp + 0x10], 0x200000
jmp 0x45e995
mov eax, dword [0x489070]
cmp eax, ebx
je 0x45e995
push eax
call fcn.004599cc
pop ecx
test eax, eax
je 0x45e995
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x45e995
mov eax, dword [0x489074]
cmp eax, ebx
je 0x45e995
push eax
call fcn.004599cc
pop ecx
test eax, eax
je 0x45e995
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x48906c]
call fcn.004599cc
pop ecx
test eax, eax
je 0x45e9b5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x45e9b7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x431000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x405fe0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0
push 2
push 0x40000000
push dword [ebp - 0x3a0]
call dword [ebp - 0x3c8]
mov dword [ebp - 0x380], eax
cmp dword [ebp - 0x380], 0xffffffff
je 0x406033
push 0
lea eax, [ebp - 0x6c4]
push eax
push dword [ebp - 0x38c]
push dword [ebp - 0x748]
push dword [ebp - 0x380]
call dword [ebp - 0x730]
push dword [ebp - 0x380]
call dword [ebp - 0x680]
jmp 0x406038
invalid

Function at 0x40618c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
call dword [eax - 1]
jne 0x40616f
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call dword [ebp - 0x37c]
pop edi
pop esi
pop ebx
leave
lds esp, [esp + edx*2]
call fcn.00403fe9
jecxz 0x40616e
adc al, 0x6e

Function at 0x406199
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
fcom dword [esi + ebp*2]
mov eax, dword fs:[0x30]
mov eax, dword [0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x4061ad
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.00403fe9
jg 0x406195
jno 0x4061ee
mov edi, eax
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.00403fe9
adc ebp, 0xffffffc9
jmp 0x406220
out 0xe8, eax
cmc
invalid
in eax, 0xff
call dword [ebp - 1]
adc eax, sym.imp.USER32.dll_CharPrevW
mov edi, eax
movzx eax, word [edi]
cmp eax, 0x20
je 0x406239
cmp eax, 0x5c
jne 0x406242
xor eax, eax
mov word [edi], ax
cmp ebp, edi
jb 0x406222
pop edi
pop esi
pop ebp
ret 4

Function at 0x406248
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406271
mov eax, dword [0x40b058]
cmp eax, 0xffffffff
je 0x406265
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40b058], 0xffffffff
jmp 0x40631c
cmp dword [0x461530], ebx
je 0x40631c
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp word [0x46a560], bx
je 0x4062e8
cmp dword [0x40b058], 0xffffffff
jne 0x4062f1
mov esi, 0x46a560
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 4
push 0x40000000
push esi
mov dword [ebp + 8], eax
call fcn.00405fb0
mov dword [0x40b058], eax
cmp eax, 0xffffffff
je 0x40631a
cmp dword [ebp + 8], 0xffffffff
jne 0x4062dd
push ebx
lea ecx, [ebp - 4]
push ecx
push 2
lea ecx, [ebp + 8]
push ecx
push eax
mov dword [ebp + 8], 0xfeff
call edi
mov eax, dword [0x40b058]
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40b058], 0xffffffff
je 0x40631a
push 0x4096a8
mov esi, 0x461540
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp + 8]
push ecx
add eax, eax
push eax
push esi
push dword [0x40b058]
call edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x3ad7258d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3ad7a064]
jne 0x3ad72597
repz ret
jmp fcn.3ad73d0c

Function at 0x3ad76f7d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x3ad76f8c
pop dword [ebp - 0x24]
mov eax, 0x3ad76f8c
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x363c5
push 0
mov eax, 0x9fae255f
add eax, 0x9b28eb55
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0x4281
mov edx, eax
mov ebx, 0x586b28bf
add ebx, 0xe26d2541
add ebx, dword [ebp - 0x24]
mov edi, 0x820a85a3
mov esi, dword [ebx]
xor esi, edi
mov dword [ebp - 0x18], 0x37ff1c98
mov dword [edx], esi
sub dword [ebp - 0x1c], 0xa1e976cb
add edx, 0xee262a4
add edx, 0xf11d9d60
add ebx, 0xa8541cad
sub ebx, 0xa8541ca9
loop 0x3ad76fda
add eax, 0xfcd7
xor ebx, ebx
add ebx, eax
add eax, 0x4cb04f59
add eax, 0xb34fb0ac
mov ecx, 0x3ad70000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x1002e8ad
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x1002e88e
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
leave
leave
mov edi, 0x60000000
jmp 0x1002e8ac
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x1002e90a
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x1002e8f1
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x1002e8fa
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x1002e904
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x1002e8e6
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
dec eax
push es
jbe 0x1002e870
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x1002e957
dec eax
je 0x1002e94e
sub eax, 3
je 0x1002e945
mov dword [ebp - 4], 0x40
jmp 0x1002e974
mov dword [ebp - 4], 4
jmp 0x1002e95a
mov dword [ebp - 4], 0x20
jmp 0x1002e95a
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x1002e9a6
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x1002e926
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.1002e1b7
in al, dx
ljmp 0x6a14
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10030e7d
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 4]
lea eax, [esi + 0x50]
push eax
lea ecx, [ebp - 4]
call fcn.100085f8
cmp byte [esi + 0x54], 0
je 0x10030ebf
cmp byte [esi + 0x70], 0
jne 0x10030ea6
mov byte [esi + 0x71], 1
jmp 0x10030ebf
push 0
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
push edi
mov byte [esi + 0x56], 1
call fcn.10030de6
pop ecx
pop ecx
lea ecx, [ebp - 4]
call fcn.10008aec
pop edi
pop esi
leave
ret
Function at 0x1003106a
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 4]
lea eax, [esi + 0x50]
push eax
lea ecx, [ebp - 4]
call fcn.100085f8
xor ebx, ebx
cmp byte [esi + 0x54], bl
jne 0x10031151
lea eax, [esi + 0x68]
push eax
push 4
push edi
push 0x10031012
push dword [esi + 0x5c]
mov byte [esi + 0x54], 1
push ebx
mov byte [esi + 0x55], bl
mov byte [esi + 0x56], bl
mov byte [esi + 0x57], bl
mov dword [esi + 0x58], ebx
call fcn.1004dfb5
add esp, 0x18
mov dword [esi + 0x64], eax
cmp eax, ebx
jne 0x100310d7
call fcn.1004bbaf
push str.QThread::start:_Failed_to_create_thread
push dword [eax]
call fcn.10001c74
pop ecx
mov byte [esi + 0x54], bl
mov byte [esi + 0x55], 1
jmp 0x10031150
mov eax, dword [ebp + 8]
mov dword [esi + 0x60], eax
sub eax, ebx
je 0x1003111c
dec eax
je 0x10031118
dec eax
je 0x10031113
dec eax
je 0x1003110f
dec eax
je 0x1003110a
dec eax
je 0x10031106
dec eax
je 0x10031102
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
jmp 0x1003111f
push 0xf
jmp 0x1003111e
push 2
jmp 0x1003111e
xor eax, eax
inc eax
jmp 0x1003111f
xor eax, eax
jmp 0x1003111f
or eax, 0xffffffff
jmp 0x1003111f
push 0xfffffffffffffffe
jmp 0x1003111e
push 0xfffffffffffffff1
pop eax
push eax
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x10031138
push str.QThread::start:_Failed_to_set_thread_priority
call fcn.10001bb8
pop ecx
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x10031151
push str.QThread::start:_Failed_to_resume_new_thread
call fcn.10001bb8
pop ecx
lea ecx, [ebp - 4]
call fcn.10008aec
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10031481
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x100d4c80
lea ecx, [ebp - 4]
call fcn.100085f8
lea eax, [ebp + 8]
mov esi, 0x100d2f88
push eax
mov ecx, esi
call fcn.1003116e
lea eax, [ebp + 0xc]
push eax
mov ecx, 0x100d2f8c
call fcn.1003116e
xor edi, edi
cmp dword [0x100d4c74], edi
jne 0x100314ff
cmp dword [0x100d4c78], edi
jne 0x100314e9
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x100d4c78
push 1
mov ecx, esi
mov dword [0x100d4c78], eax
call fcn.100312de
push eax
mov ecx, esi
call fcn.100311cf
push edi
push edi
push 0x10031321
call fcn.1004e166
add esp, 0xc
mov dword [0x100d4c74], eax
jmp 0x1003150b
push dword [0x100d4c78]
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [ebp - 4]
call fcn.10008aec
pop edi
pop esi
leave
ret
Function at 0x10031517
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
call fcn.10030d71
push dword [0x100d2f84]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x10031612
lea eax, [ebp - 4]
push eax
push 2
mov dword [ebp - 4], ebx
call fcn.1000211a
pop ecx
pop ecx
test al, al
je 0x10031582
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov esi, dword [eax + 0x74]
push esi
push dword [0x100d2f84]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov byte [eax + 0x54], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov byte [eax + 0x55], bl
mov ecx, dword [ebp - 4]
call fcn.10030dc7
jmp 0x100315cc
push 0x38
call fcn.100465d6
pop ecx
cmp eax, ebx
je 0x1003159b
push 1
mov ecx, eax
call fcn.1000ec48
mov esi, eax
jmp 0x1003159d
xor esi, esi
push esi
push dword [0x100d2f84]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 8
call fcn.100465d6
pop ecx
cmp eax, ebx
je 0x100315c0
push esi
mov ecx, eax
call fcn.1000edce
jmp 0x100315c2
xor eax, eax
mov ecx, esi
mov dword [esi + 4], eax
call fcn.1000edac
cmp dword [0x100d4ae8], ebx
jne 0x100315de
mov eax, dword [esi + 4]
mov dword [0x100d4ae8], eax
jmp 0x10031612
or dword [ebp - 8], 0xffffffff
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push ebx
push ebx
lea eax, [ebp - 8]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push dword [esi + 4]
push dword [ebp - 8]
call fcn.10031481
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x10033960
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [ecx], vtable.QAbstractEventDispatcher.0
jmp fcn.1002e606

Function at 0x10039766
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
and dword [ebp - 0x21c], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, 0x104
lea eax, [ebp - 0x210]
push esi
push eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x220], esi
call edi
mov ebx, eax
cmp ebx, esi
jbe 0x100397b7
push ebx
lea ecx, [ebp - 0x220]
call fcn.100219d8
push ebx
push dword [ebp - 0x218]
call edi
mov ebx, eax
push ebx
push dword [ebp - 0x218]
push dword [ebp + 8]
call fcn.10003c54
add esp, 0xc
pop edi
lea eax, [ebp - 0x210]
pop esi
pop ebx
cmp dword [ebp - 0x218], eax
je 0x100397e6
push dword [ebp - 0x218]
call fcn.10001746
pop ecx
mov eax, dword [ebp + 8]
leave
ret
Function at 0x4051f8
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x405237
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x405237
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x405237
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x405237
cmp dword [ecx + 0x74], 0xe
jbe 0x405237
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret