joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003d610
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10059e99
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10069018]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
cmp dword [0x1249bdc], 0x115c3
mov eax, dword [0x1107530]
movzx eax, byte [eax + 0x11]
sbb ecx, ecx
neg ecx
dec ecx
and ecx, 0xd3
add ecx, 0x1d
je 0x1003d66e
imul eax, eax, 0x64
cdq
idiv ecx
cmp eax, 0x52
mov dword [0x1243cba4], eax
jg 0x1003d865
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], 0xffffffff
call dword [0x1005d430]
mov dword [esp + 0x38], 0
cmp dword [0x1242a970], 1
jne 0x1003d6ff
mov edx, dword [0x1242ab38]
cmp edx, 0xffffffff
je 0x1003d85b
mov eax, edx
call fcn.1003bf20
lea ecx, [esp + 0x18]
cmp eax, 1
jne 0x1003d85f
imul edx, edx, 0xe4
add edx, 0x12429d9c
push edx
call dword [0x1005d43c]
xor esi, esi
cmp dword [0x1242a604], esi
jbe 0x1003d6ff
mov edi, 0x1242a618
jmp 0x1003d6e0
push edi
lea ecx, [esp + 0x1c]
call dword [0x1005d3a8]
test eax, eax
jne 0x1003d6f3
mov dword [esp + 0x1c], esi
inc esi
add edi, 0x5c
cmp esi, dword [0x1242a604]
jb 0x1003d6e0
push 0
lea ecx, [esp + 0x20]
push ecx
push 0x1242ad1c
call fcn.10047e10
mov esi, eax
mov dword [esp + 0x20], esi
test esi, esi
jl 0x1003d85b
mov edi, dword [esp + 0x1c]
test edi, edi
jl 0x1003d85b
push 1
push esi
push 0x1242ad1c
call fcn.10048610
test eax, eax
je 0x1003d85b
call fcn.10048880
imul edi, edi, 0x5c
mov esi, dword [edi + 0x1242a640]
lea edi, [edi + 0x12429d18]
mov ebp, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], esi
call fcn.10036dd0
test eax, eax
je 0x1003d85b
mov edi, esi
lea eax, [esp + 0x28]
call fcn.10036ef0
mov ebx, dword [esp + 0x28]
test ebx, ebx
jle 0x1003d785
mov esi, dword [esp + 0x2c]
test esi, esi
jg 0x1003d795
mov eax, dword [esp + 0x1c]
mov ebx, dword [eax + 0x92c]
mov esi, dword [eax + 0x930]
mov ecx, dword [0x124016dc]
mov edx, dword [0x124016e0]
sub ecx, ebx
mov edi, ecx
mov eax, edx
imul edi, ecx
sub eax, esi
mov ecx, eax
imul ecx, eax
mov eax, ebp
imul eax, ebp
add edi, ecx
cmp edi, eax
jge 0x1003d823
mov ecx, dword [0x124016dc]
push esi
push ebx
push edx
mov edx, dword [0x124015a8]
push ecx
push edx
call fcn.1002ee00
test eax, eax
je 0x1003d823
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x1003d85b
mov ecx, dword [esp + 0x24]
call fcn.10048a00
test eax, eax
je 0x1003d85b
lea ecx, [esp + 0x18]
mov dword [0x12418bbc], 0
mov dword [0x12418bc0], 0x14
call dword [0x1005d440]
mov eax, 0xa
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
cmp dword [0x12405be8], 5
jne 0x1003d85b
push esi
push ebx
push 1
call fcn.10021020
add esp, 0xc
lea ecx, [esp + 0x18]
call dword [0x1005d440]
mov eax, 0xb
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
lea ecx, [esp + 0x18]
call dword [0x1005d440]
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x1003fed0
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x100aa614]
sub eax, dword [0x12418cac]
sub esp, 0x24
push ebx
push esi
push edi
cmp eax, 0x7d0
jb 0x1003ffc4
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 4]
xor esi, esi
push edx
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
call fcn.10053390
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
add eax, ecx
cmp eax, esi
jbe 0x1003ffc4
cmp eax, dword [0x100a96a0]
jbe 0x1003ffc4
push 0x10061920
lea edx, [ebp - 0x14]
mov ecx, 0x12438184
call fcn.10025ca0
test eax, eax
jle 0x1003ffc4
mov edx, dword [0x12429ac4]
mov eax, dword [edx + 0x10]
mov ebx, dword [eax]
mov edi, dword [ebx + 0x2c]
cmp edi, esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], edi
jle 0x1003ffc4
mov ecx, dword [ebx + 0x58]
mov edx, dword [ecx + esi*4]
mov eax, dword [edx + 0xc]
push 0x1006192c
push eax
call dword [0x1005d178]
add esp, 8
test eax, eax
je 0x1003ffbf
mov eax, dword [ebx + 0x58]
mov ecx, dword [eax + esi*4]
add ecx, 4
push ecx
lea edx, [ebp - 0x20]
push edx
mov edi, 0x12429b58
call fcn.1002c5f0
mov ecx, dword [eax]
mov edi, dword [eax + 4]
mov eax, dword [0x12429b70]
mov dword [ebp - 4], eax
test ecx, ecx
je 0x1003ff9f
cmp ecx, dword [0x12429b58]
je 0x1003ffa5
call dword [0x1005d164]
cmp edi, dword [ebp - 4]
jne 0x1003ffbc
mov ecx, dword [ebx + 0x58]
mov eax, dword [ecx + esi*4]
cmp byte [eax + 0xa0], 0
mov dword [ebp - 0x10], eax
je 0x1003ffd0
mov edi, dword [ebp - 0xc]
inc esi
cmp esi, edi
jl 0x1003ff52
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], esi
pushal
push dword [ebp - 0x10]
mov eax, 0x598060
call eax
test al, al
jne 0x1003fff0
push dword [ebp - 0x10]
mov ebx, 0x59da70
call ebx
add esp, 4
popal
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x58]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + ecx*4]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x24]
push edx
mov ebx, 0x12429b58
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 1
call fcn.1002c500
mov eax, dword [0x100aa614]
pop edi
pop esi
mov dword [0x12418cac], eax
mov eax, 0xa
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1004b4f0
Capabilities:
Encode data using xor

Disassembly:
push ecx
fld qword [0x10062b58]
mov eax, 2
fld1
test al, 1
je 0x1004b504
fmul st(1)
shr eax, 1
je 0x1004b50e
fld st(1)
fmulp st(2)
jmp 0x1004b4fe
mov ecx, dword [esp + 8]
fstp st(1)
xor edx, edx
mov dword [esp + 8], edx
fild dword [esp + 8]
add edx, 0xa
fnstcw word [esp + 8]
inc ecx
movzx eax, word [esp + 8]
fadd st(1)
or eax, 0xc00
mov dword [esp], eax
fldcw word [esp]
fistp dword [esp]
mov al, byte [esp]
xor byte [ecx - 1], al
cmp edx, 0x14
fldcw word [esp + 8]
mov dword [esp + 8], edx
jl 0x1004b51a
fstp st(0)
xor eax, eax
pop ecx
ret 4
Function at 0x401ee4
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401f23
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401f23
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401f23
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401f23
cmp dword [ecx + 0x74], 0xe
jbe 0x401f23
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4083b0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x417958
push 0x417950
push str.FlsAlloc
push 0x1f
call fcn.0040826f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4083e4
push dword [ebp + 8]
mov ecx, esi
call dword [0x416124]
call esi
jmp 0x4083ea
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40842e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x417968
push 0x417960
push str.FlsGetValue
push 0x21
call fcn.0040826f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408465
push dword [ebp + 8]
mov ecx, esi
call dword [0x416124]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40846d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x417970
push 0x417968
push str.FlsSetValue
push 0x22
call fcn.0040826f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4084a7
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x416124]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40c6a7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40c744
push ebx
push esi
call fcn.0040c670
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040c604
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40c6f1
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40c743
push edi
push eax
call fcn.00408bcd
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40c711
call fcn.00408102
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40c742
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040c604
add esp, 0x20
test eax, eax
jne 0x40c730
push edi
call fcn.00408102
jmp 0x40c738
push ebx
call fcn.00408102
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x412bf7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4220c0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x412c37
cmp byte [ebx], 0xa
jne 0x412c37
or byte [edi + eax + 0x28], 4
jmp 0x412c3c
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x412d3b
mov dl, byte [eax]
cmp dl, 0x1a
je 0x412d1e
inc eax
cmp dl, 0xd
je 0x412c68
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x412c8e
cmp eax, ecx
jae 0x412c9c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x412c50
jmp 0x412d3b
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x412d19
cmp dword [ebp - 0x10], 0
je 0x412d19
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4220c0]
test byte [eax + edi + 0x28], 0x48
je 0x412cf3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x412cde
mov byte [esi], dl
jmp 0x412cef
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4220c0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x412d3b
cmp byte [ebp - 1], 0xa
jne 0x412d02
cmp esi, ebx
jne 0x412d02
mov byte [esi], 0xa
jmp 0x412d3a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00412b99
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x412d3b
mov byte [esi], 0xd
jmp 0x412d3a
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4220c0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x412d38
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x412d3b
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x412d44
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4220c0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x412d8a
cmp word [ebx], dx
jne 0x412d8a
or byte [eax + edi + 0x28], 4
jmp 0x412d8f
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x412ef2
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x412ed2
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x412dd0
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x412e06
cmp eax, edx
jae 0x412e14
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x412dab
jmp 0x412ef2
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x412ecd
cmp dword [ebp - 0x18], 0
je 0x412ecd
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4220c0]
test byte [eax + edi + 0x28], 0x48
je 0x412ea3
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x412e67
mov word [esi], cx
jmp 0x412e9e
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4220c0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4220c0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4220c0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x412ef2
pop eax
cmp word [ebp - 4], ax
jne 0x412eb3
cmp esi, ebx
jne 0x412eb3
mov word [esi], ax
jmp 0x412eef
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00412b99
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x412ef2
push 0xd
pop eax
jmp 0x412eae
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4220c0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x412eec
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x412ef2
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x415480
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4154ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4154ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10528
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x5f7f8]
sub esp, 0x74
push esi
add eax, 0xffffe250
mov esi, 0x63f
cmp eax, esi
ja 0x105ee
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
xor edi, edi
push 0x20019
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x24], 0x18
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], 0x40
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jl 0x105ed
push 0x4c
lea eax, [ebp - 0x70]
push edi
push eax
mov dword [ebp - 0x74], edi
call sub.ntoskrnl.exe_memset
add esp, 0xc
push 0x18c4a
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 4]
push eax
push 0x50
lea eax, [ebp - 0x74]
push eax
push 2
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
jl 0x105e4
mov eax, dword [ebp - 0x68]
mov dword [0x5f73c], eax
cmp eax, edi
je 0x105e4
mov eax, dword [0x5f7f8]
add eax, 0xffffe250
cmp eax, esi
ja 0x105e4
mov dword [0x5f7f8], 0x23f0
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop edi
pop esi
leave
ret 4
Function at 0x137da
Capabilities:
Attach user process memory

Disassembly:
push 0x2c
push 0x19318
call fcn.000188dc
and dword [ebp - 0x20], 0
mov byte [ebp - 0x19], 0
mov edi, dword [ebp + 8]
test edi, edi
je 0x13813
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x13813
and dword [ebp - 4], 0
push edi
call sub.ntoskrnl.exe_PsGetProcessPeb
mov esi, eax
test esi, esi
jne 0x13820
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xc000000d
call fcn.00018921
ret 8
call dword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
cmp eax, edi
je 0x13839
lea eax, [ebp - 0x3c]
push eax
push edi
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov byte [ebp - 0x19], 1
push 1
push 0x14
push esi
mov edi, dword [sym.imp.ntoskrnl.exe_ProbeForRead]
call edi
mov esi, dword [esi + 0x10]
push 1
push 0x40
push esi
call edi
push 2
movzx eax, word [esi + 0x38]
push eax
push dword [esi + 0x3c]
call edi
movzx eax, word [ebx]
movzx ecx, word [esi + 0x38]
movzx edx, word [ebx + 2]
sub edx, eax
cmp edx, ecx
jge 0x13876
mov dword [ebp - 0x20], 0xc000009a
jmp 0x138ad
push ecx
push dword [esi + 0x3c]
mov ecx, dword [ebx + 4]
add ecx, eax
push ecx
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
movzx eax, word [esi + 0x38]
movzx ecx, word [ebx]
add eax, ecx
mov word [ebx], ax
jmp 0x138ad
mov dword [ebp - 4], 0xfffffffe
cmp byte [ebp - 0x19], 0
je 0x138c4
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov eax, dword [ebp - 0x20]
jmp 0x13818

Function at 0x13936
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
xor edx, edx
sub esp, 0x10
cmp dword [ebp + 8], edx
je 0x1398c
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
cmp eax, ecx
jbe 0x1398c
cmp dword [ebp + 0x14], edx
je 0x1398c
cmp dword [ebp + 0x18], edx
je 0x1398c
sub eax, ecx
push 1
sar eax, 1
add eax, eax
mov word [ebp - 8], ax
mov word [ebp - 6], ax
lea eax, [ebp - 8]
push eax
push 1
push 3
push dword [ebp + 0x18]
lea eax, [ebp - 0x10]
push dword [ebp + 0x14]
mov dword [ebp - 4], ecx
push eax
push edx
push edx
push edx
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwQueryDirectoryFile]
jmp 0x13991
mov eax, 0xc000000d
leave
ret 0x14
Function at 0x14c26
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
push edi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push eax
push 0xb
mov dword [ebp - 8], ebx
call esi
push dword [ebp - 4]
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov edi, eax
cmp edi, ebx
jne 0x14c59
xor eax, eax
jmp 0x14caa
push ebx
push dword [ebp - 4]
push edi
push 0xb
call esi
test eax, eax
jl 0x14c9e
mov eax, dword [edi]
mov dword [ebp - 4], eax
lea esi, [edi + 4]
test eax, eax
jbe 0x14c9e
movzx eax, word [esi + 0x1a]
push dword [ebp + 8]
lea eax, [eax + esi + 0x1c]
push eax
call dword [sym.imp.ntoskrnl.exe__stricmp]
pop ecx
pop ecx
test eax, eax
je 0x14c98
add esi, 0x11c
inc ebx
cmp ebx, dword [ebp - 4]
jb 0x14c72
jmp 0x14c9e
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
push 0
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x5fb3e
Capabilities:
Create device object
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.0005fb05
pop ebp
jmp fcn.0001322e

Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x37922f92
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..text_1
nop
nop
mov ebx, 0x42f314
mov ecx, 0x3a2f4f7b
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x40f220
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x49afab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0048fa4e
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40f2a2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0048d928
mov eax, dword [eax]
push 0x4bccc8
push eax
call fcn.0047f6b4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0048fcd9
test bl, bl
je 0x40f2a2
push 0x4bccc8
lea ecx, [esp + 0xc]
call fcn.00490069
push 0x4bccd4
lea ecx, [esp + 0xc]
call fcn.00490069
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40f2de
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0048fcd9
jmp 0x40f3a9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40f362
lea edx, [esp + 0x7c]
push 0x4bccd0
push edx
call fcn.0047f6b4
add esp, 8
test eax, eax
je 0x40f362
lea eax, [esp + 0x7c]
push 0x4bcccc
push eax
call fcn.0047f6b4
add esp, 8
test eax, eax
je 0x40f362
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40f2f2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0048fcd9
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40fbb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40fc12
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x40fc20
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x49b02b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4cd6b0]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40fd58
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40fc86
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0048fcd9
xor eax, eax
jmp 0x40fdcf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0048fe16
push esi
lea ecx, [esp + 0xc]
call fcn.004900a5
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x4bcd08
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40fdad
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040fbb0
test eax, eax
jne 0x40fdad
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.0040fbb0
test eax, eax
jne 0x40fdad
lea eax, [esp + 0x14]
push str.__1_
push eax
call fcn.00480750
mov esi, eax
add esp, 8
test esi, esi
jne 0x40fd8c
lea ecx, [esp + 0x14]
push 0x4bcce0
push ecx
call fcn.004806d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40fd8c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40fd8f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0048fdc6
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40fc9e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0048fcd9
xor eax, eax
jmp 0x40fdcf
mov byte [esi], 0
push 0x4bccdc
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0048fcd9
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4