joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10029150
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100d9f50]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea edi, [ebp - 0x108]
mov esi, ecx
call fcn.10014ac0
mov eax, edi
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10029175
mov ecx, dword [0x100ca8c8]
mov edx, dword [0x100ca8cc]
mov dword [eax], ecx
mov ecx, dword [0x100ca8d0]
mov dword [eax + 4], edx
mov dl, byte [0x100ca8d4]
mov dword [eax + 8], ecx
mov byte [eax + 0xc], dl
lea eax, [ebp - 0x108]
push eax
push 0
push 0x100ca8d8
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [ebp - 0x108]
push ecx
push 0
push 0x100ca8e0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test edi, edi
jne 0x100291d8
test eax, eax
je 0x10029276
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x10]
push edi
mov ecx, ebx
call eax
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call esi
push 1
call dword [0x100dfb88]
push 0x64
call esi
xor edi, edi
cmp dword [ebp + 8], edi
jle 0x1002921b
cmp dword [ebx + 0x58c], 0
je 0x10029276
push 1
call dword [0x100dfb88]
push 0x14
call esi
inc edi
cmp edi, dword [ebp + 8]
jl 0x10029200
cmp dword [ebx + 0x58c], 0
je 0x10029276
mov edx, dword [ebx]
mov eax, dword [edx + 0x10]
push 0x228
push 0x10d
mov ecx, ebx
call eax
push 0x64
call esi
push 1
call dword [0x100dfb88]
push 0x64
call esi
push 1
call dword [0x100dfb88]
push 0x64
call esi
push 1
call dword [0x100dfb88]
push 0x64
call esi
push 1
call dword [0x100dfb88]
push 0x12c
call esi
push 1
call dword [0x100dfb88]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10047d85
mov esp, ebp
pop ebp
ret 4
Function at 0x10029680
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100d71c8
push 0x10052210
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x100d9f50]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, ecx
mov esi, edx
mov dword [ebp - 0x130], esi
xor eax, eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
mov edi, ebx
call fcn.1002a8b0
push 1
call dword [0x100dfb88]
lea eax, [ebp - 0x12c]
push eax
push esi
lea ecx, [ebp - 0x128]
mov edx, ebx
call fcn.10028170
test al, al
jne 0x100298d7
cmp dword [ebx + 0x58c], 0
je 0x100298d7
lea edi, [ebp - 0x120]
call fcn.10014ac0
mov eax, edi
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10029718
mov ecx, dword [0x100ca8c8]
mov dword [eax], ecx
mov edx, dword [0x100ca8cc]
mov dword [eax + 4], edx
mov ecx, dword [0x100ca8d0]
mov dword [eax + 8], ecx
mov dl, byte [0x100ca8d4]
mov byte [eax + 0xc], dl
lea eax, [ebp - 0x120]
push eax
push 0
push 0x100ca8d8
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, eax
mov dword [ebp - 0x134], edi
lea ecx, [ebp - 0x120]
push ecx
push 0
push 0x100ca8e0
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x124], eax
test edi, edi
je 0x100298d7
push 0x3e8
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
call esi
mov edx, dword [ebx + 0x7b4]
mov byte [edx + 0x31], 0x80
push 0x3c
call esi
mov eax, dword [ebx + 0x7b4]
mov byte [eax + 0x31], 0
push 0x1e
call esi
push 0x1f4
call esi
cmp dword [ebx + 0x58c], 0
je 0x100298d7
mov edx, dword [ebx]
mov eax, dword [ebp - 0x124]
push eax
push edi
mov ecx, ebx
mov edx, dword [edx + 0x14]
call edx
push 0x1f4
call esi
push 1
call dword [0x100dfb8c]
push 0x9c4
call esi
cmp dword [ebx + 0x58c], 0
je 0x100298d7
mov dword [ebp - 4], 0
jmp 0x10029800
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x130]
push ecx
lea ecx, [ebp - 0x128]
mov edx, ebx
call fcn.10028170
test al, al
je 0x1002983f
mov eax, 1
lea edi, [eax + 0x30]
call fcn.10022260
push 0x3e8
call esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x100298d0
cmp dword [ebx + 0x7ac], 4
jne 0x1002989d
mov edi, ebx
call fcn.1002a8b0
push 0x3e8
call esi
mov eax, 1
lea edi, [eax + 0x30]
call fcn.10022260
push 0x1f4
call esi
cmp dword [ebx + 0x58c], 0
je 0x100298b1
mov edx, dword [ebx]
mov eax, dword [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x134]
push ecx
mov ecx, ebx
mov edx, dword [edx + 0x14]
call edx
push 0x1f4
call esi
call fcn.100037b0
push 0x9c4
jmp 0x100298a2
push 0x3e8
call esi
cmp dword [ebx + 0x58c], 0
jne 0x10029800
mov dword [ebp - 4], 0xfffffffe
jmp 0x100298d7
push 0x3e8
call esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10047d85
mov esp, ebp
pop ebp
ret
Function at 0x10029a80
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebx + 0x2d0]
lea esi, [ebx + 0x2c0]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov eax, dword [esi + 0x10]
cmp eax, edx
jae 0x10029abd
mov dword [ebp - 4], eax
mov edx, eax
cmp edx, 3
jb 0x10029ac7
mov edx, 3
cmp dword [esi + 0x14], 0x10
jb 0x10029acf
mov esi, dword [esi]
mov ecx, 0x100ca7fc
cmp edx, 4
jb 0x10029af4
lea esp, [esp]
mov eax, dword [esi]
cmp eax, dword [ecx]
jne 0x10029af8
sub edx, 4
add ecx, 4
add esi, 4
cmp edx, 4
jae 0x10029ae0
test edx, edx
je 0x10029b41
movzx eax, byte [esi]
movzx ebx, byte [ecx]
sub eax, ebx
jne 0x10029b33
cmp edx, 1
jbe 0x10029b3e
movzx eax, byte [esi + 1]
movzx ebx, byte [ecx + 1]
sub eax, ebx
jne 0x10029b33
cmp edx, 2
jbe 0x10029b3e
movzx eax, byte [esi + 2]
movzx ebx, byte [ecx + 2]
sub eax, ebx
jne 0x10029b33
cmp edx, 3
jbe 0x10029b3e
movzx eax, byte [esi + 3]
movzx ecx, byte [ecx + 3]
sub eax, ecx
mov ebx, dword [ebp + 8]
sar eax, 0x1f
or eax, 1
jmp 0x10029b43
mov ebx, dword [ebp + 8]
xor eax, eax
test eax, eax
jne 0x10029b5d
mov eax, dword [ebp - 4]
cmp eax, 3
jb 0x10029b5d
xor edx, edx
cmp eax, 3
setne dl
mov eax, edx
test eax, eax
je 0x10029bd2
cmp dword [ebx + 0x58c], 0
je 0x10029bd2
mov eax, dword [ebx + 0x7b4]
push 0x3c
mov byte [eax + 0x58], 0x80
call edi
mov ecx, dword [ebx + 0x7b4]
push 0x1e
mov byte [ecx + 0x58], 0
call edi
push 0x12c
call edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 8]
cmp eax, 0x1388
jbe 0x10029bbc
mov edx, dword [ebx + 0x7b4]
push 0x3c
mov byte [edx + 1], 0x80
call edi
mov eax, dword [ebx + 0x7b4]
push 0x1e
mov byte [eax + 1], 0
call edi
push 0x12c
call edi
mov ecx, dword [ebx + 0x2d0]
lea esi, [ebx + 0x2c0]
mov dword [ebp - 4], ecx
mov edx, ecx
jmp 0x10029ab1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1002a6b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100d9f50]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, esi
mov ebx, ecx
call fcn.1002a8b0
lea edi, [ebp - 0x108]
call fcn.10014ac0
mov eax, edi
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1002a6e0
mov ecx, dword [0x100ca8c8]
mov edx, dword [0x100ca8cc]
mov dword [eax], ecx
mov ecx, dword [0x100ca8d0]
mov dword [eax + 4], edx
mov dl, byte [0x100ca8d4]
mov dword [eax + 8], ecx
mov byte [eax + 0xc], dl
lea eax, [ebp - 0x108]
push eax
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 0x100c5f5e
push 0x100ca90c
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x20c]
push str._d__d
push ecx
call fcn.1004977d
mov edx, dword [esi + 0x7b4]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x10
push 0x3c
mov byte [edx + 0x31], 0x80
call ebx
mov eax, dword [esi + 0x7b4]
push 0x1e
mov byte [eax + 0x31], 0
call ebx
push 0x1f4
call ebx
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x210]
mov edx, dword [esi]
mov edx, dword [edx + 0x10]
push eax
push ecx
mov ecx, esi
call edx
push 0x1f4
call ebx
push 1
call dword [0x100dfb8c]
push 0x1f4
call ebx
cmp dword [esi + 0x58c], 0
je 0x1002a897
mov eax, dword [esi + 0x2ac]
sub eax, dword [ebp + 8]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x32
jge 0x1002a7de
mov eax, dword [esi + 0x2b0]
sub eax, dword [ebp + 0xc]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x32
jl 0x1002a874
cmp dword [esi + 0x7ac], 4
jne 0x1002a84e
mov edi, esi
call fcn.1002a8b0
push 0x3e8
call ebx
mov eax, dword [esi + 0x7b4]
push 0x3c
mov byte [eax + 0x31], 0x80
call ebx
mov ecx, dword [esi + 0x7b4]
push 0x1e
mov byte [ecx + 0x31], 0
call ebx
push 0x1f4
call ebx
cmp dword [esi + 0x58c], 0
je 0x1002a897
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x210]
mov edx, dword [esi]
mov edx, dword [edx + 0x14]
push eax
push ecx
mov ecx, esi
call edx
push 0x1f4
call ebx
push 1
call dword [0x100dfb8c]
push 0x9c4
jmp 0x1002a853
push 0x3e8
call ebx
cmp dword [esi + 0x58c], 0
jne 0x1002a7b4
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10047d85
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x7b4]
push 0x3c
mov byte [eax + 0x31], 0x80
call ebx
mov ecx, dword [esi + 0x7b4]
push 0x1e
mov byte [ecx + 0x31], 0
call ebx
push 0x3e8
call ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10047d85
mov esp, ebp
pop ebp
ret 8
Function at 0x1002b650
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call edi
mov ebx, 0xa
mov eax, dword [esi + 0x7b4]
push 0x3c
mov byte [eax + 0x2d], 0x80
call edi
mov ecx, dword [esi + 0x7b4]
push 0x1e
mov byte [ecx + 0x2d], 0
call edi
dec ebx
jne 0x1002b670
push 0x3e8
call edi
cmp dword [esi + 0x58c], ebx
je 0x1002b832
mov edx, dword [esi]
mov eax, dword [edx + 0xa0]
mov ecx, esi
call eax
lea ecx, [esi + 0x318]
call fcn.10010ef0
mov ecx, dword [esi + 0x2d0]
mov dword [ebp - 0xc], eax
lea eax, [esi + 0x2c0]
mov edx, ecx
mov dword [ebp - 8], ecx
cmp edx, ecx
jae 0x1002b6d4
mov dword [ebp - 8], edx
mov edx, ecx
cmp ecx, 3
jb 0x1002b6e0
mov edx, 3
cmp dword [eax + 0x14], 0x10
jb 0x1002b6e8
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov ecx, 0x100ca7fc
cmp edx, 4
jb 0x1002b710
mov ebx, dword [eax]
cmp ebx, dword [ecx]
jne 0x1002b7a8
sub edx, 4
add ecx, 4
add eax, 4
cmp edx, 4
jae 0x1002b6f5
mov dword [ebp - 4], eax
test edx, edx
jne 0x1002b7ab
xor eax, eax
test eax, eax
jne 0x1002b738
mov eax, dword [ebp - 8]
cmp eax, 3
jb 0x1002b738
xor edx, edx
cmp eax, 3
setne dl
mov eax, edx
test eax, eax
je 0x1002b832
mov ebx, dword [ebp - 0xc]
test ebx, ebx
jne 0x1002b806
mov eax, dword [esi + 0x7b4]
push 0x3c
mov byte [eax + 0x2d], 0x80
call edi
mov ecx, dword [esi + 0x7b4]
push 0x1e
mov byte [ecx + 0x2d], bl
call edi
push 0x12c
call edi
mov edx, dword [esi + 0x7b4]
push 0x3c
mov byte [edx + 0x58], 0x80
call edi
mov eax, dword [esi + 0x7b4]
push 0x1e
mov byte [eax + 0x58], bl
call edi
mov edx, dword [esi]
mov eax, dword [edx + 0xe8]
push 0x3e8
mov ecx, esi
call eax
cmp eax, 1
jne 0x1002b825
mov edx, dword [esi]
mov eax, dword [edx + 0xa0]
mov ecx, esi
call eax
jmp 0x1002b825
mov dword [ebp - 4], eax
movzx eax, byte [eax]
movzx ebx, byte [ecx]
sub eax, ebx
jne 0x1002b7fb
cmp edx, 1
jbe 0x1002b718
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 1]
movzx ebx, byte [ecx + 1]
sub eax, ebx
jne 0x1002b7fb
cmp edx, 2
jbe 0x1002b718
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 2]
movzx ebx, byte [ecx + 2]
sub eax, ebx
jne 0x1002b7fb
cmp edx, 3
jbe 0x1002b718
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 3]
movzx ecx, byte [ecx + 3]
sub eax, ecx
sar eax, 0x1f
or eax, 1
jmp 0x1002b71a
push 0x12c
call edi
cmp dword [ebx + 0x54], 0
je 0x1002b825
cmp dword [ebx + 0x58], 0
je 0x1002b825
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
call fcn.10024e80
cmp dword [esi + 0x58c], 0
jne 0x1002b6a2
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002cf60
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b7b76
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x100d9f50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x100dfd54]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x198], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x100c90e8
push str.c:dati.gif
mov dword [0x100e2314], eax
call fcn.1004860b
mov ebx, eax
xor edi, edi
add esp, 8
cmp ebx, edi
je 0x1002d137
push str.GIF89a
push esi
call fcn.10048790
add esp, 8
test eax, eax
jne 0x1002cfe7
push 6
push str.GIF89a
push esi
call fcn.10049190
add esp, 0xc
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x190]
mov dword [ebp - 0x194], 0x100c9b10
call fcn.10064df0
mov ecx, 0x100dc684
mov dword [ebp - 0x180], edi
mov dword [ebp - 0x18c], ecx
mov dword [ebp - 0x184], edi
xor eax, eax
or eax, 1
or eax, 2
mov dword [ebp - 4], 1
mov dword [ebp - 0x188], 0xc
mov dword [ebp - 0x17c], eax
cmp ecx, ecx
jne 0x1002d060
push 0x1c
call fcn.10047d9f
add esp, 4
cmp eax, edi
je 0x1002d056
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], edi
mov byte [eax], 0
jmp 0x1002d058
xor eax, eax
mov ecx, eax
mov dword [ebp - 0x18c], ecx
mov edi, dword [ebp + 0xc]
push edi
push esi
call fcn.100048f0
mov edx, dword [ebp - 0x198]
mov edx, dword [edx + 8]
lea ecx, [ebp - 0x194]
call fcn.10011d40
push ebx
push 1
push edi
push esi
call fcn.10048fc2
push ebx
call fcn.10048883
mov eax, dword [0x100e1e30]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 0x14
lea ecx, [ebp - 0x19c]
push ecx
push 4
push 5
push eax
mov esi, eax
call edi
test eax, eax
je 0x1002d0d3
mov edx, dword [0x100dfd0c]
mov dword [esi], edx
mov edx, dword [ebp - 0x19c]
mov al, byte [0x100dfd10]
lea ecx, [ebp - 0x19c]
push ecx
push edx
push 5
push esi
mov byte [esi + 4], al
call edi
lea edi, [ebp - 0x178]
call fcn.10014ac0
push str.answer
push 0x100c90c4
lea edx, [ebp - 0x74]
call fcn.1002d9a0
add esp, 8
push 0
mov eax, edi
push eax
lea ecx, [ebp - 0x74]
push ecx
push str.ClientCmd.exe
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edx, dword [ebp - 0x198]
add edx, 0x2c0
push 0x100ca7fc
push edx
call fcn.10004000
add esp, 8
lea ecx, [ebp - 0x194]
mov dword [ebp - 4], 0xffffffff
call fcn.10008a20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10047d85
mov esp, ebp
pop ebp
ret 8
Function at 0x1002d490
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100d5b38
push 0x10052210
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x100d9f50]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x30], 0x1002d2f0
xor esi, esi
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov ecx, dword [ebp + 0x14]
mov dword [ecx], esi
mov dword [ebp - 0x38], 0xe9
mov byte [ebp - 0x34], 0
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
push 0x100c9f18
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, esi
je 0x1002d5d1
mov edx, dword [ebp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
cmp ebx, esi
je 0x1002d5d1
push 0x40
push 0x3000
push 0x937
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x1002d5d1
mov ecx, 0x24d
mov esi, 0x100dd3f0
mov edi, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor esi, esi
mov dword [ebp - 0x28], esi
lea ecx, [ebp - 0x24]
push ecx
lea edx, [esi + ebx]
push edx
call eax
add esi, dword [ebp - 0x24]
mov dword [ebp - 0x28], esi
mov eax, dword [ebp - 0x1c]
cmp esi, 5
jb 0x1002d543
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
lea ecx, [ebp - 0x2c]
push ecx
push 0x40
push esi
mov edx, dword [ebp + 0xc]
push edx
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call edi
test eax, eax
je 0x1002d5d1
lea eax, [ebp - 0x2c]
push eax
push 0x40
push esi
push ebx
call edi
test eax, eax
je 0x1002d5d1
mov eax, dword [ebp - 0x30]
sub eax, ebx
sub eax, 5
mov dword [ebp - 0x37], eax
push esi
push ebx
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1004af40
push esi
push 0x90
push ebx
call fcn.1004c8a0
add esp, 0x18
mov edx, dword [ebp - 0x38]
mov dword [ebx], edx
mov al, byte [ebp - 0x34]
mov byte [ebx + 4], al
mov ecx, dword [ebp + 0x10]
mov dword [ecx], esi
add esi, ebx
mov edx, dword [ebp + 0x14]
mov dword [edx], esi
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.1002d5df
jmp fcn.1002d5df
Function at 0x1002d600
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x100d9f50]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.100150b0
push str.DNF.exe
push eax
call fcn.10048790
push 0x100e1e48
push 0x100e1e4c
push 0x1002d290
push str.ZwOpenProcess
call fcn.1002d490
push 0x100e1e50
push 0x100e1e54
push 0x1002d3b0
push str.NtOpenProcess
call fcn.1002d490
lea ecx, [ebp - 0x68]
call fcn.10015200
push 0
push 0x1002d240
push 0
push 9
push str.ZwWriteFile
push 0x100c9f18
call fcn.100616c0
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
add esp, 0x40
push str.tbbmalloc.dll
call ebx
mov esi, eax
push str.scalable_free
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
jne 0x1002d6d2
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.tbbmalloc.dll
call ebx
mov esi, eax
push str.scalable_free
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x1002d6a5
push 0x1002d470
mov ecx, 8
mov edx, edi
call fcn.10013f50
add esp, 4
mov dword [0x100dfd04], eax
lea eax, [ebp - 0x16c]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10047d85
mov esp, ebp
pop ebp
ret

Function at 0x1002d720
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
xor ecx, ecx
push esi
mov esi, dword [0x100e2318]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x18], ecx
call edi
sub eax, esi
cmp eax, 0x3e8
jbe 0x1002d75a
call edi
mov dword [0x100e2318], eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x10047d85
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100d9f50]
jne 0x10047d8f
repz ret
jmp fcn.1005141d

Function at 0x1005d0ec
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100d9f50]
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.10052a63
and dword [ebp - 0x14], 0
cmp dword [0x100df75c], 0
mov dword [ebp - 0x18], eax
jne 0x1005d19f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1005d247
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1005d247
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x100df75c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x100df760], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x100df764], eax
call edi
push eax
call esi
mov dword [0x100df76c], eax
test eax, eax
je 0x1005d19f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x100df768], eax
mov eax, dword [0x100df768]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1005d1f8
cmp dword [0x100df76c], ecx
je 0x1005d1f8
push eax
call esi
push dword [0x100df76c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1005d1f8
test ebx, ebx
je 0x1005d1f8
call edi
test eax, eax
je 0x1005d1ef
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1005d1ef
test byte [ebp - 8], 1
jne 0x1005d1f8
or dword [ebp + 0x10], 0x200000
jmp 0x1005d22b
mov eax, dword [0x100df760]
cmp eax, dword [ebp - 0x18]
je 0x1005d22b
push eax
call esi
test eax, eax
je 0x1005d22b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1005d22b
mov eax, dword [0x100df764]
cmp eax, dword [ebp - 0x18]
je 0x1005d22b
push eax
call esi
test eax, eax
je 0x1005d22b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x100df75c]
call esi
test eax, eax
je 0x1005d247
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1005d249
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10047d85
leave
ret
Function at 0x10061270
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x94
push ebx
push ebp
push esi
push edi
push 0x40
push 0x1000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, dword [esp + 0xa8]
mov ecx, dword [esp + 0xac]
mov ebp, eax
mov eax, dword [esp + 0xb0]
push ebp
mov dword [ebp + 0x900], esi
mov dword [ebp + 0x904], eax
mov dword [ebp + 0x908], ecx
call fcn.10061190
push 0xddccbbaa
push eax
push ebp
mov dword [esp + 0x28], eax
call fcn.10061240
mov edx, esi
mov ecx, 0x1f
sub edx, eax
lea edi, [esp + 0x35]
sub edx, ebp
sub edx, 4
mov dword [eax + ebp], edx
xor eax, eax
mov byte [esp + 0x34], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
push esi
call fcn.100610b0
mov ebx, eax
mov al, byte [esp + 0x3c]
add esp, 0x18
cmp ebx, 5
jne 0x1006130f
cmp al, 0xe9
je 0x100613c8
cmp al, 0xe8
je 0x100613c8
cmp al, 0xea
je 0x100613c8
cmp al, 0xeb
je 0x100613c8
cmp ebx, 5
jl 0x100613c8
lea ecx, [esp + 0x14]
lea edx, [ebp + 0x90c]
push ecx
push ebx
push edx
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [esp + 0x18]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x24]
lea edi, [eax + ebp]
mov dword [ebp + 0x92c], ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add eax, ebx
and ecx, 3
sub ebx, eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xa8]
sub ebx, ebp
mov byte [eax + ebp], 0xe9
lea edx, [ebx + ecx - 5]
mov dword [eax + ebp + 1], edx
lea eax, [esp + 0x10]
sub ebp, ecx
push eax
lea edx, [esp + 0x20]
push 5
sub ebp, 5
push edx
push ecx
mov dword [esp + 0x20], 0
mov byte [esp + 0x2c], 0xe9
mov dword [esp + 0x2d], ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x94
ret