joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10025c70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0xffffffff
je 0x10025cb5
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10025caf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10025cb5
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x10037e10
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], 0x811c9dc5
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 8]
call fcn.10033ac0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
xor edx, edx
mov ecx, 0xa
div ecx
add eax, 1
mov dword [ebp - 4], eax
jmp 0x10037e50
mov edx, dword [ebp - 8]
add edx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jae 0x10037e77
mov esi, dword [ebp - 0x10]
imul esi, esi, 0x1000193
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp + 8]
call fcn.100056d0
movzx edx, word [eax]
xor esi, edx
mov dword [ebp - 0x10], esi
jmp 0x10037e47
mov eax, dword [ebp - 0x10]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x10037eb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x10037eb9
xor ecx, ecx
jne 0x10037eb9
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shl eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10037f00
mov eax, dword [ebp - 0xc]
jmp 0x10037f5d
cmp dword [ebp - 4], 1
je 0x10037f13
cmp dword [ebp - 4], 2
je 0x10037f13
mov eax, 0xd
jmp 0x10037f5d
cmp dword [ebp + 0xc], 0
je 0x10037f51
cmp dword [ebp - 8], 0
je 0x10037f49
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x10037f40
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x10037f47
mov eax, 0xd
jmp 0x10037f5d
jmp 0x10037f51
xor edx, edx
mov eax, dword [ebp + 0xc]
mov word [eax], dx
mov ecx, dword [ebp - 8]
shr ecx, 1
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10043c10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, eax
call fcn.10049270
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 5
push 0x1f4
push esi
mov dword [ebp - 8], 0xffffffff
call ebx
mov edi, eax
test edi, edi
je 0x10043ce8
push 0xf0
push 0x1f4
push esi
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10043c63
push eax
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov dword [ebp - 4], 0
call ebx
test eax, eax
je 0x10043cc5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x10043cc5
push edi
call fcn.100439e0
add esp, 4
push 0
mov ebx, eax
mov eax, dword [ebp + 8]
push 0x10041e70
push eax
push ebx
push esi
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
mov esi, eax
test esi, esi
je 0x10043ca8
cmp esi, 0xffffffff
jne 0x10043cb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp ebx, edi
je 0x10043cd1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x10043cd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x10043cdf
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1004a890
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x1012c610]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [0x10133870]
push edi
push 0xf0
push 0x1f4
mov edi, 1
push esi
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1004aa66
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1004aa66
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1004aa66
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
jmp 0x1004a908
mov edi, dword [ebp - 0x10c]
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x1004aa51
mov edx, dword [esi + 4]
mov edi, eax
movzx eax, word [esi + 2]
mov ecx, 0x403
add esi, 8
mov dword [ebp - 0x114], edx
cmp cx, ax
jne 0x1004a99c
lea edx, [ebp - 0x104]
mov dword [ebp - 0x108], edx
call fcn.1001cf60
push eax
push esi
lea ecx, [ebp - 0x108]
call fcn.1004ac40
mov eax, dword [ebp - 0x108]
mov edx, dword [ebp - 0x110]
push eax
mov eax, dword [edx + 4]
push 0
push 0x143
push edi
push eax
call ebx
cmp eax, 0xffffffff
jne 0x1004a97a
mov dword [ebp - 0x10c], 0
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
cmp eax, ecx
je 0x1004aa25
push eax
call fcn.1007e601
add esp, 4
jmp 0x1004aa25
mov edx, 0x1234
cmp dx, ax
jne 0x1004aa25
lea eax, [ebp - 0x104]
mov dword [ebp - 0x138], 1
mov dword [ebp - 0x134], 0xffffffff
mov dword [ebp - 0x108], eax
call fcn.1001cf60
push eax
push esi
lea ecx, [ebp - 0x108]
call fcn.1004ac40
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x130], eax
cmp eax, ecx
je 0x1004a9fb
push eax
call fcn.1007e601
add esp, 4
mov ecx, dword [ebp - 0x110]
lea edx, [ebp - 0x138]
push edx
mov edx, dword [ecx + 4]
push 0
push 0x40b
push edi
push edx
call ebx
cmp eax, 0xffffffff
jne 0x1004aa25
mov dword [ebp - 0x10c], 0
add esi, dword [ebp - 0x114]
cmp dword [ebp - 0x10c], 0
jne 0x1004a902
mov eax, dword [ebp - 0x10c]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007dd84
mov esp, ebp
pop ebp
ret 4
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007dd84
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.1007dd84
mov esp, ebp
pop ebp
ret 4
Function at 0x1004cf10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 8], 0xffffffff
jne 0x1004cf23
xor al, al
jmp 0x1004cf9d
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [eax + 4], edx
push 0
lea eax, [ebp - 8]
push eax
push 4
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1004cf53
cmp dword [ebp - 8], 4
je 0x1004cf57
xor al, al
jmp 0x1004cf9d
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0
je 0x1004cf9b
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.1004ccc0
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1004cf97
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0xc]
je 0x1004cf9b
xor al, al
jmp 0x1004cf9d
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x1004cfb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + 4]
sub edx, dword [ecx]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
sub eax, 4
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [edx], eax
cmp dword [ebp + 8], 0xffffffff
jne 0x1004cfde
xor al, al
jmp 0x1004d00f
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1004d009
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 8]
je 0x1004d00d
xor al, al
jmp 0x1004d00f
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x10055e20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [0x101335a0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add eax, 1
push eax
mov ecx, dword [0x101335a0]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x10056120
Capabilities:
Modify service
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f8750
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x1012c610]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push eax
lea ecx, [ebp - 0x14]
call fcn.10025b60
mov dword [ebp - 4], 0
push 0x16
push str.SmdmFService2
lea ecx, [ebp - 0x14]
call fcn.100579e0
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push eax
lea ecx, [ebp - 0x10]
call fcn.10025b60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.10057a00
cmp eax, 0xffffffff
jne 0x100561b6
push 0x16
push str.SmdmFService
lea ecx, [ebp - 0x14]
call fcn.100579e0
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push eax
lea ecx, [ebp - 0x10]
call fcn.100579c0
mov dword [ebp - 0x34], 0
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x10]
call fcn.100579e0
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x10056205
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.10056d00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10056d00
jmp 0x10056277
cmp dword [ebp - 0x30], 4
je 0x1005624c
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.100579e0
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push 0
push 0
lea ecx, [ebp - 0x10]
call fcn.100579e0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x38]
call fcn.1004b200
mov ecx, dword [ebp - 0x38]
call fcn.10011b70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.10056d00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10056d00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.1007dd84
mov esp, ebp
pop ebp
ret
Function at 0x10056320
Capabilities:
Modify service
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f8750
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x1012c610]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push eax
lea ecx, [ebp - 0x14]
call fcn.10025b60
mov dword [ebp - 4], 0
push 0x16
push str.SmdmFService2
lea ecx, [ebp - 0x14]
call fcn.100579e0
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push eax
lea ecx, [ebp - 0x10]
call fcn.10025b60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.10057a00
cmp eax, 0xffffffff
jne 0x100563b6
push 0x16
push str.SmdmFService
lea ecx, [ebp - 0x14]
call fcn.100579e0
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push eax
lea ecx, [ebp - 0x10]
call fcn.100579c0
mov dword [ebp - 0x34], 0
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x10]
call fcn.100579e0
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x10056405
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.10056d00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10056d00
jmp 0x10056477
cmp dword [ebp - 0x30], 4
je 0x1005644c
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.100579e0
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push 0
push 0
lea ecx, [ebp - 0x10]
call fcn.100579e0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x38]
call fcn.1004b200
mov ecx, dword [ebp - 0x38]
call fcn.10074ad0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.10056d00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10056d00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.1007dd84
mov esp, ebp
pop ebp
ret
Function at 0x1007a630
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [0x10133858]
test eax, eax
je 0x1007a6b8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call esi
test eax, eax
je 0x1007a6b7
mov ecx, dword [0x10133858]
test ecx, ecx
jne 0x1007a656
xor eax, eax
jmp 0x1007a65f
push ecx
call esi
mov ecx, dword [0x10133858]
cmp byte [eax + 0x18], 0
je 0x1007a6b7
test ecx, ecx
je 0x1007a6b7
push ecx
call esi
test eax, eax
je 0x1007a6b7
mov eax, dword [0x10133858]
test eax, eax
je 0x1007a67c
push eax
call esi
mov eax, dword [eax + 0xc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1007a6b7
mov eax, dword [0x10133858]
test eax, eax
je 0x1007a698
push eax
call esi
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x1011fccc
lea ecx, [esp + 0xb]
xor al, al
push ecx
mov byte [esp + 0xf], al
call fcn.1007f523
pop esi
pop ecx
ret
Function at 0x1007ab70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x100facc0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1012c610]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x10133858]
test eax, eax
jne 0x1007aba4
xor esi, esi
jmp 0x1007abad
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x30], 0
test esi, esi
je 0x1007abf7
cmp dword [esi + 0x14], 0
jne 0x1007ac39
cmp dword [esi + 0x10], 0
jne 0x1007ac40
push 0x1007a430
push 0x10133850
call fcn.1007a6c0
mov eax, dword [0x10133858]
add esp, 8
test eax, eax
je 0x1007aced
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x30], 0xffffffff
test esi, esi
je 0x1007ac25
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1007ac25
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
cmp dword [esi + 0x10], 0
je 0x1007ac80
nop
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x1007ac6e
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x1007ac40
cmp dword [esi + 0x14], 0
je 0x1007abc9
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x1007aca5
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x1007acd6
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1007acd6
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1007acd6
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x1007ac8a
jmp 0x1007abc3
lea ecx, [esp + 0x18]
call fcn.1007dde6
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], vtable.boost::thread_resource_error.0
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x34], 1
call fcn.1000d3b0
int3
Function at 0x1007ade0
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x100fad18
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1012c610]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
lea ecx, [eax + 0x1c]
push ecx
push 4
push eax
push 0x1007ad20
push 0
push 0
call fcn.10082ac7
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x1007ae4b
lea ecx, [esp + 0x10]
call fcn.1007dde6
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], vtable.boost::thread_resource_error.0
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x2c], ebx
call fcn.1000d3b0
mov eax, dword [edi]
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov esi, dword [edi]
mov eax, dword [esi + 8]
test eax, eax
je 0x1007ae6e
cmp eax, 0xffffffff
je 0x1007ae6e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
mov edx, dword [edi]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x1007babd
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x101338a0], 0
push esi
push edi
jne 0x1007ba33
call fcn.1007b99f
test eax, eax
je 0x1007ba78
mov eax, dword [0x101338a0]
cmp eax, 1
jne 0x1007ba54
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1007ba78
jmp 0x1007baba
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x1007baba
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1007ba7c
xor eax, eax
jmp 0x1007baba
mov eax, dword [esi]
push dword [0x101338a0]
call edi
mov edi, eax
test edi, edi
je 0x1007ba9e
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x1007baba
lea edi, [esi + 0xff0]
push esi
push dword [0x101338a0]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x1007baa4
mov eax, esi
pop edi
pop esi
ret
jmp 0x1007ba1f

Function at 0x1007dd84
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1012c610]
jne 0x1007dd8e
repz ret
jmp fcn.10082b67
Function at 0x10091027
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1012c610]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.100838b2
and dword [ebp - 0x14], 0
cmp dword [0x10134620], 0
mov dword [ebp - 0x18], eax
jne 0x100910da
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10091182
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10091182
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x1010a0cc
push ebx
mov dword [0x10134620], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10134624], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10134628], eax
call edi
push eax
call esi
mov dword [0x10134630], eax
test eax, eax
je 0x100910da
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1013462c], eax
mov eax, dword [0x1013462c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10091133
cmp dword [0x10134630], ecx
je 0x10091133
push eax
call esi
push dword [0x10134630]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10091133
test ebx, ebx
je 0x10091133
call edi
test eax, eax
je 0x1009112a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1009112a
test byte [ebp - 8], 1
jne 0x10091133
or dword [ebp + 0x10], 0x200000
jmp 0x10091166
mov eax, dword [0x10134624]
cmp eax, dword [ebp - 0x18]
je 0x10091166
push eax
call esi
test eax, eax
je 0x10091166
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10091166
mov eax, dword [0x10134628]
cmp eax, dword [ebp - 0x18]
je 0x10091166
push eax
call esi
test eax, eax
je 0x10091166
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10134620]
call esi
test eax, eax
je 0x10091182
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10091184
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007dd84
leave
ret

Function at 0x10098470
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
test ecx, ecx
jle 0x1009849d
push esi
push edi
jmp 0x10098480
movzx esi, byte [edx]
movzx esi, byte [esi + 0x1010aea0]
lea edi, [eax*8]
xor esi, edi
dec ecx
xor eax, esi
inc edx
test ecx, ecx
jg 0x10098480
pop edi
pop esi
ret