joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10043770
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.10048dc0
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 0x10043848
push 0xf0
push 0x1f4
push esi
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100437c3
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 0x10043825
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x10043825
push edi
call fcn.10043540
add esp, 4
push 0
mov ebx, eax
mov eax, dword [ebp + 8]
push 0x100419e0
push eax
push ebx
push esi
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
mov esi, eax
test esi, esi
je 0x10043808
cmp esi, 0xffffffff
jne 0x10043811
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp ebx, edi
je 0x10043831
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x10043831
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 0x1004383f
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 0x1004a340
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x1012c620]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [0x10133890]
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 0x1004a516
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1004a516
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1004a516
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
jmp 0x1004a3b8
mov edi, dword [ebp - 0x10c]
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x1004a501
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 0x1004a44c
lea edx, [ebp - 0x104]
mov dword [ebp - 0x108], edx
call fcn.1001d120
push eax
push esi
lea ecx, [ebp - 0x108]
call fcn.1004a6f0
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 0x1004a42a
mov dword [ebp - 0x10c], 0
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
cmp eax, ecx
je 0x1004a4d5
push eax
call fcn.1007e5e1
add esp, 4
jmp 0x1004a4d5
mov edx, 0x1234
cmp dx, ax
jne 0x1004a4d5
lea eax, [ebp - 0x104]
mov dword [ebp - 0x138], 1
mov dword [ebp - 0x134], 0xffffffff
mov dword [ebp - 0x108], eax
call fcn.1001d120
push eax
push esi
lea ecx, [ebp - 0x108]
call fcn.1004a6f0
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x130], eax
cmp eax, ecx
je 0x1004a4ab
push eax
call fcn.1007e5e1
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 0x1004a4d5
mov dword [ebp - 0x10c], 0
add esi, dword [ebp - 0x114]
cmp dword [ebp - 0x10c], 0
jne 0x1004a3b2
mov eax, dword [ebp - 0x10c]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007dd64
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.1007dd64
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.1007dd64
mov esp, ebp
pop ebp
ret 4
Function at 0x1004c9d0
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 0x1004c9e3
xor al, al
jmp 0x1004ca5d
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 0x1004ca13
cmp dword [ebp - 8], 4
je 0x1004ca17
xor al, al
jmp 0x1004ca5d
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0
je 0x1004ca5b
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.1004c780
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 0x1004ca57
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0xc]
je 0x1004ca5b
xor al, al
jmp 0x1004ca5d
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x1004ca70
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 0x1004ca9e
xor al, al
jmp 0x1004cacf
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 0x1004cac9
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 8]
je 0x1004cacd
xor al, al
jmp 0x1004cacf
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x100558d0
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 [0x101335c0]
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 [0x101335c0]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f8730
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x1012c620]
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.100574a0
mov dword [ebp - 4], 0
push 0x16
push str.SmdmFService2
lea ecx, [ebp - 0x14]
call fcn.100574f0
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push eax
lea ecx, [ebp - 0x10]
call fcn.100574a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.10057510
cmp eax, 0xffffffff
jne 0x10055c76
push 0x16
push str.SmdmFService
lea ecx, [ebp - 0x14]
call fcn.100574f0
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push eax
lea ecx, [ebp - 0x10]
call fcn.100574d0
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.100574f0
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x10055cc5
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.100567c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.100567c0
jmp 0x10055d37
cmp dword [ebp - 0x30], 4
je 0x10055d0c
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.100574f0
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push 0
push 0
lea ecx, [ebp - 0x10]
call fcn.100574f0
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.1004acd0
mov ecx, dword [ebp - 0x38]
call fcn.10055950
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.100567c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.100567c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.1007dd64
mov esp, ebp
pop ebp
ret
Function at 0x10055de0
Capabilities:
Modify service
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f8730
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x1012c620]
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.100574a0
mov dword [ebp - 4], 0
push 0x16
push str.SmdmFService2
lea ecx, [ebp - 0x14]
call fcn.100574f0
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push eax
lea ecx, [ebp - 0x10]
call fcn.100574a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.10057510
cmp eax, 0xffffffff
jne 0x10055e76
push 0x16
push str.SmdmFService
lea ecx, [ebp - 0x14]
call fcn.100574f0
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push eax
lea ecx, [ebp - 0x10]
call fcn.100574d0
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.100574f0
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x10055ec5
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.100567c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.100567c0
jmp 0x10055f37
cmp dword [ebp - 0x30], 4
je 0x10055f0c
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.100574f0
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push 0
push 0
lea ecx, [ebp - 0x10]
call fcn.100574f0
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.1004acd0
mov ecx, dword [ebp - 0x38]
call fcn.10074af0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.100567c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.100567c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.1007dd64
mov esp, ebp
pop ebp
ret
Function at 0x1007a5f0
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [0x10133878]
test eax, eax
je 0x1007a678
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call esi
test eax, eax
je 0x1007a677
mov ecx, dword [0x10133878]
test ecx, ecx
jne 0x1007a616
xor eax, eax
jmp 0x1007a61f
push ecx
call esi
mov ecx, dword [0x10133878]
cmp byte [eax + 0x18], 0
je 0x1007a677
test ecx, ecx
je 0x1007a677
push ecx
call esi
test eax, eax
je 0x1007a677
mov eax, dword [0x10133878]
test eax, eax
je 0x1007a63c
push eax
call esi
mov eax, dword [eax + 0xc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1007a677
mov eax, dword [0x10133878]
test eax, eax
je 0x1007a658
push eax
call esi
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x1011fc14
lea ecx, [esp + 0xb]
xor al, al
push ecx
mov byte [esp + 0xf], al
call fcn.1007f503
pop esi
pop ecx
ret
Function at 0x1007ab30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x100fac50
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1012c620]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x10133878]
test eax, eax
jne 0x1007ab64
xor esi, esi
jmp 0x1007ab6d
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 0x1007abb7
cmp dword [esi + 0x14], 0
jne 0x1007abf9
cmp dword [esi + 0x10], 0
jne 0x1007ac00
push 0x1007a3f0
push 0x10133870
call fcn.1007a680
mov eax, dword [0x10133878]
add esp, 8
test eax, eax
je 0x1007acad
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x30], 0xffffffff
test esi, esi
je 0x1007abe5
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1007abe5
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 0x1007ac40
nop
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x1007ac2e
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 0x1007ac00
cmp dword [esi + 0x14], 0
je 0x1007ab89
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x1007ac65
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 0x1007ac96
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1007ac96
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 0x1007ac96
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 0x1007ac4a
jmp 0x1007ab83
lea ecx, [esp + 0x18]
call fcn.1007ddc6
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.1000d410
int3
Function at 0x1007ada0
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x100faca8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1012c620]
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 0x1007ace0
push 0
push 0
call fcn.10082aa7
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x1007ae0b
lea ecx, [esp + 0x10]
call fcn.1007ddc6
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.1000d410
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 0x1007ae2e
cmp eax, 0xffffffff
je 0x1007ae2e
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 0x1007ba5e
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x101338c0], 0
push esi
push edi
jne 0x1007b9d4
call fcn.1007b940
test eax, eax
je 0x1007ba19
mov eax, dword [0x101338c0]
cmp eax, 1
jne 0x1007b9f5
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1007ba19
jmp 0x1007ba5b
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x1007ba5b
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 0x1007ba1d
xor eax, eax
jmp 0x1007ba5b
mov eax, dword [esi]
push dword [0x101338c0]
call edi
mov edi, eax
test edi, edi
je 0x1007ba3f
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x1007ba5b
lea edi, [esi + 0xff0]
push esi
push dword [0x101338c0]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x1007ba45
mov eax, esi
pop edi
pop esi
ret
jmp 0x1007b9c0

Function at 0x1007dd64
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1012c620]
jne 0x1007dd6e
repz ret
jmp fcn.10082b47
Function at 0x10091007
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1012c620]
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.10083892
and dword [ebp - 0x14], 0
cmp dword [0x10134640], 0
mov dword [ebp - 0x18], eax
jne 0x100910ba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10091162
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10091162
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x1010a0cc
push ebx
mov dword [0x10134640], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10134644], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10134648], eax
call edi
push eax
call esi
mov dword [0x10134650], eax
test eax, eax
je 0x100910ba
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1013464c], eax
mov eax, dword [0x1013464c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10091113
cmp dword [0x10134650], ecx
je 0x10091113
push eax
call esi
push dword [0x10134650]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10091113
test ebx, ebx
je 0x10091113
call edi
test eax, eax
je 0x1009110a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1009110a
test byte [ebp - 8], 1
jne 0x10091113
or dword [ebp + 0x10], 0x200000
jmp 0x10091146
mov eax, dword [0x10134644]
cmp eax, dword [ebp - 0x18]
je 0x10091146
push eax
call esi
test eax, eax
je 0x10091146
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10091146
mov eax, dword [0x10134648]
cmp eax, dword [ebp - 0x18]
je 0x10091146
push eax
call esi
test eax, eax
je 0x10091146
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10134640]
call esi
test eax, eax
je 0x10091162
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10091164
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007dd64
leave
ret

Function at 0x10098440
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
test ecx, ecx
jle 0x1009846d
push esi
push edi
jmp 0x10098450
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 0x10098450
pop edi
pop esi
ret
Function at 0x10098fd0
Capabilities:
Check if file exists
Check os version
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x1012c620]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10134a7c]
push ebx
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push edi
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x234], ecx
mov edi, 0x114
cmp eax, ecx
jne 0x1009902c
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], edi
call esi
xor eax, eax
cmp dword [ebp - 0x108], 2
sete al
inc eax
mov dword [0x10134a7c], eax
cmp eax, 2
jne 0x10099038
call fcn.10098650
jmp 0x1009903d
call fcn.100987f0
mov ebx, eax
test ebx, ebx
jne 0x10099057
pop edi
pop esi
lea eax, [ebx + 7]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007dd64
mov esp, ebp
pop ebp
ret
mov eax, dword [0x10134a7c]
test eax, eax
jne 0x10099081
lea ecx, [ebp - 0x22c]
push ecx
mov dword [ebp - 0x22c], edi
call esi
xor eax, eax
cmp dword [ebp - 0x21c], 2
sete al
inc eax
mov dword [0x10134a7c], eax
cmp eax, 2
jne 0x100990ce
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esp, [esp]
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100990b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x234], eax
cmp eax, 5
jne 0x10099112
mov eax, dword [ebp - 0x230]
inc eax
mov dword [ebp - 0x230], eax
cmp eax, 5
jge 0x10099112
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10099090
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100990f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x234], eax
cmp eax, 5
jne 0x10099112
mov eax, dword [ebp - 0x230]
inc eax
mov dword [ebp - 0x230], eax
cmp eax, 5
jge 0x10099112
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100990d4
push ebx
call fcn.1007e5e1
add esp, 4
cmp esi, 0xffffffff
jne 0x1009913c
cmp dword [ebp - 0x234], 2
jne 0x1009913c
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007dd64
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 0xa0a
pop ebx
call fcn.1007dd64
mov esp, ebp
pop ebp
ret
Function at 0x1009f0c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 4], eax
mov ecx, edi
test edi, edi
jne 0x1009f0de
xor ebx, ebx
mov dword [ebp - 8], ebx
jmp 0x1009f0f4
cmp byte [edi], al
je 0x1009f0e7
inc ecx
cmp byte [ecx], al
jne 0x1009f0e2
sub ecx, edi
and ecx, 0x3fffffff
mov ebx, ecx
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 4]
xor esi, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ecx
test ecx, ecx
jle 0x1009f1f5
jmp 0x1009f113
mov edi, dword [ebp + 0xc]
cmp esi, 2
jge 0x1009f11b
xor esi, 1
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1009f17b
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov edx, esi
shl edx, 4
mov edi, dword [edx + eax]
mov dl, byte [ecx]
test dl, dl
je 0x1009f15d
jmp 0x1009f140
movzx eax, byte [edi]
movzx edx, dl
mov dl, byte [edx + 0x1010aea0]
cmp dl, byte [eax + 0x1010aea0]
jne 0x1009f15d
mov dl, byte [ecx + 1]
inc ecx
inc edi
test dl, dl
jne 0x1009f140
movzx ecx, byte [ecx]
movzx edx, byte [edi]
movzx edx, byte [edx + 0x1010aea0]
movzx ecx, byte [ecx + 0x1010aea0]
sub ecx, edx
mov eax, dword [ebp - 4]
jne 0x1009f1e5
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
add esi, esi
mov esi, dword [eax + esi*8 + 0xc]
cmp dword [esi + 0x10], 0
je 0x1009f1c8
xor eax, eax
mov edx, ebx
mov ecx, edi
test ebx, ebx
jle 0x1009f1be
jmp 0x1009f1a0
movzx edi, byte [ecx]
movzx edi, byte [edi + 0x1010aea0]
lea ebx, [eax*8]
xor edi, ebx
dec edx
xor eax, edi
inc ecx
test edx, edx
jg 0x1009f1a0
mov ebx, dword [ebp - 8]
mov edi, dword [ebp + 0xc]
xor edx, edx
div dword [esi + 4]
jmp 0x1009f1ca
xor edx, edx
push ebx
push edi
lea eax, [esi + 4]
call fcn.100984d0
add esp, 8
test eax, eax
je 0x1009f1fc
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
test eax, eax
jne 0x1009f1f5
mov esi, dword [ebp - 0xc]
inc esi
mov dword [ebp - 0xc], esi
cmp esi, dword [ebp - 0x10]
jl 0x1009f110
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x1009f1e5