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

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
push edi
push esi
push edx
push ecx
call fcn.00a07a58
and dword [esp + 0x30], 0
lea edi, [esi + 4]
mov dword [esp + 0x28], 0x525ab5
mov dword [esp + 0x2c], 0xd70aa9
mov dword [esp + 0x1c], 0xfb894f
add dword [esp + 0x1c], 0x33d6
imul eax, dword [esp + 0x1c], 0xe
mov dword [esp + 0x1c], eax
xor dword [esp + 0x1c], 0xdca1b0b
mov dword [esp + 0x38], 0xe04f47
add dword [esp + 0x38], 0xffff3073
xor dword [esp + 0x38], 0x6a651524
or dword [esp + 0x38], 0x8b5212d1
xor dword [esp + 0x38], 0xebf40f32
mov eax, dword [esi]
mov ebp, dword [edi]
add edi, 4
xor ebp, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebp
lea esi, [ebp + 1]
mov eax, esi
mov ecx, esi
and eax, 0xfffffffc
add eax, 4
and cl, 3
cmovne esi, eax
mov eax, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
add esp, 8
lea edx, [esi + esi]
call fcn.00a1e376
mov ebx, eax
mov dword [esp + 0x30], ebx
pop ecx
test ebx, ebx
je 0xa115fe
shr esi, 2
xor eax, eax
mov edx, ebx
lea ecx, [edi + esi*4]
mov esi, ecx
sub esi, edi
add esi, 3
shr esi, 2
cmp edi, ecx
cmova esi, eax
test esi, esi
je 0xa115f8
mov ebx, dword [esp + 0x14]
xor ebp, ebp
mov ecx, dword [edi]
lea edi, [edi + 4]
xor ecx, ebx
movzx eax, cl
mov word [edx], ax
mov eax, ecx
shr eax, 8
lea edx, [edx + 8]
movzx eax, al
mov word [edx - 6], ax
shr ecx, 0x10
movzx eax, cl
shr ecx, 8
inc ebp
mov word [edx - 4], ax
movzx eax, cl
mov word [edx - 2], ax
cmp ebp, esi
jb 0xa115bb
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x18]
xor eax, eax
mov word [ebx + ebp*2], ax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x18
ret

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

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
mov ebx, edx
push ebp
push dword [esp + 0x2c]
push ebx
push ecx
call fcn.00a07a58
and dword [esp + 0x30], 0
add esp, 0x10
mov dword [esp + 0x14], 0x1eef0
xor edx, edx
mov dword [esp + 0x18], 0x76458b
mov dword [esp + 0x1c], 0xefaf8
mov dword [esp + 0x2c], 0xb31c62
mov eax, dword [esp + 0x2c]
push 0x7b
pop ecx
div ecx
mov dword [esp + 0x2c], eax
xor dword [esp + 0x2c], 0x174cd
mov ecx, dword [ebx + 0x3c]
mov eax, dword [esp + 0x2c]
add ecx, ebx
sub ebp, dword [ecx + 0x34]
mov edx, dword [ecx + eax*8 + 0x78]
mov dword [esp + 0x2c], ebp
add edx, ebx
mov ebp, dword [ecx + eax*8 + 0x7c]
add ebp, edx
mov dword [esp + 0x10], ebp
cmp edx, ebp
jae 0xa12263
push esi
push edi
mov edi, dword [edx + 4]
lea esi, [edx + 8]
add edi, edx
cmp esi, edi
jae 0xa1225a
mov ebp, dword [esp + 0x34]
movzx eax, word [esi]
mov ecx, eax
mov dword [esp + 0x14], 0x3000
and ecx, 0xfff
and eax, 0xf000
add ecx, ebx
add ecx, dword [edx]
cmp ax, word [esp + 0x14]
jne 0xa1224f
add dword [ecx], ebp
add esi, 2
cmp esi, edi
jb 0xa1222a
mov ebp, dword [esp + 0x18]
add edx, dword [edx + 4]
cmp edx, ebp
jb 0xa1221a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0xa131ac
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x28
push ebx
push ebp
mov ebp, dword [esp + 0x34]
push esi
push edi
push dword [esp + 0x40]
push ebp
push edx
push ecx
call fcn.00a07a58
mov dword [esp + 0x38], 0x92666b
xor esi, esi
mov dword [esp + 0x3c], 0x2bc712
add esp, 0x10
mov dword [esp + 0x30], 0x8325b6
xor edx, edx
mov dword [esp + 0x34], esi
mov dword [esp + 0x3c], 0xdc1f8a
shl dword [esp + 0x3c], 0xa
shl dword [esp + 0x3c], 6
add dword [esp + 0x3c], 0xffff9f41
xor dword [esp + 0x3c], 0x1f899f41
mov dword [esp + 0x10], 0x93d3c2
mov eax, dword [esp + 0x10]
push 0xb
pop ecx
div ecx
push 0x74
mov dword [esp + 0x14], eax
xor edx, edx
add dword [esp + 0x14], 0x1677
xor dword [esp + 0x14], 0x407db
mov dword [esp + 0x18], 0x3c0da2
mov eax, dword [esp + 0x18]
pop ecx
div ecx
mov dword [esp + 0x14], eax
xor dword [esp + 0x14], 0x557de
mov eax, dword [ebp + 0x3c]
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x24], eax
mov ebx, dword [eax + ebp + 0x78]
add ebx, ebp
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x20]
add eax, ebp
mov dword [esp + 0x20], eax
add ecx, ebp
mov eax, dword [ebx + 0x24]
add eax, ebp
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
jmp 0xa1329e
mov eax, dword [ecx + edi*4]
mov edx, dword [esp + 0x14]
add eax, ebp
mov ecx, dword [esp + 0x10]
push eax
call fcn.00a04701
xor eax, 0x3faf38e2
pop ecx
cmp eax, dword [esp + 0x40]
je 0xa132a5
mov ecx, dword [esp + 0x18]
inc edi
cmp edi, dword [ebx + 0x18]
jb 0xa1327a
jmp 0xa132d1
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
movzx eax, word [eax + edi*2]
mov esi, dword [esi + eax*4]
add esi, ebp
cmp esi, ebx
jb 0xa132d1
mov eax, dword [esp + 0x24]
mov eax, dword [eax + ebp + 0x7c]
add eax, ebx
cmp esi, eax
jae 0xa132d1
mov ecx, esi
call fcn.00a14c1c
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0xa1dd14
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
push eax
push edx
push ecx
call fcn.00a07a58
mov dword [ebp + 8], 0x7fdc55
add esp, 0x14
add dword [ebp + 8], 0xe829
or dword [ebp + 8], 0xe3b3bcfb
xor dword [ebp + 8], 0xe3b3fdf4
cmp dword [eax + 4], 0x40
jae 0xa1dd51
xor eax, eax
pop ebp
ret
mov ecx, dword [eax]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0xa1dd4d
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0xa1dd4d
movzx edx, word [eax + 0x18]
mov ecx, dword [ebp + 8]
push esi
xor esi, esi
cmp edx, ecx
cmovne eax, esi
pop esi
pop ebp
ret
Function at 0x40689a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068be
xor eax, eax
test eax, eax
je 0x4068d1
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4068d1
xor ecx, ecx
jmp 0x4068d4
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4069f7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43190c], 0
push esi
jne 0x406a2e
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a08
mov dword [ecx*4 + 0x431908], eax
inc ecx
cmp ecx, 0x100
jl 0x406a03
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a5f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431908]
xor eax, esi
inc ecx
dec edx
jne 0x406a41
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp int.00401219
Function at 0x100010f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0x20019
push eax
xor esi, esi
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenClassRegKey]
mov edi, eax
test edi, edi
je 0x1000112a
push esi
push esi
push esi
push esi
push str.NoDisplayClass
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
neg esi
sbb esi, esi
push edi
add esi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
ret
Function at 0x1000f47d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1002ca30]
jne 0x1000f487
repz ret
jmp fcn.100163a5

Function at 0x10018f31
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x1002d638]
je 0x10018f4c
inc edi
cmp edi, 0x17
jb 0x10018f3d
cmp edi, 0x17
jae 0x100190cc
push ebp
push 3
call fcn.1001eaa6
cmp eax, 1
pop ecx
je 0x10019098
push 3
call fcn.1001eaa6
test eax, eax
pop ecx
jne 0x10018f80
cmp dword [0x1006666c], 1
je 0x10019098
cmp ebx, 0xfc
je 0x100190cb
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x10066bb0
push ebp
call fcn.10010d4e
add esp, 0xc
test eax, eax
je 0x10018fb6
push esi
push esi
push esi
push esi
push esi
call fcn.10012d89
add esp, 0x14
push 0x104
mov esi, 0x10066bc9
push esi
push 0
mov byte [0x10066ccd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10018ffa
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.10010d4e
add esp, 0xc
test eax, eax
je 0x10018ffa
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10012d89
add esp, 0x14
push esi
call fcn.100108f0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1001903f
push esi
call fcn.100108f0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x10066ec4
push 0x10026514
sub ecx, eax
push ecx
push eax
call fcn.10012bd2
add esp, 0x14
test eax, eax
je 0x1001903f
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10012d89
add esp, 0x14
jmp 0x10019041
xor esi, esi
push 0x10026510
push ebx
push ebp
call fcn.10010e75
add esp, 0xc
test eax, eax
je 0x10019061
push esi
push esi
push esi
push esi
push esi
call fcn.10012d89
add esp, 0x14
push dword [edi*8 + 0x1002d63c]
push ebx
push ebp
call fcn.10010e75
add esp, 0xc
test eax, eax
je 0x10019083
push esi
push esi
push esi
push esi
push esi
call fcn.10012d89
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.1001e8e9
add esp, 0xc
jmp 0x100190cb
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x100190cb
cmp ebp, 0xffffffff
je 0x100190cb
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1002d63c]
push dword [esi]
call fcn.100108f0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x401310
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41928e
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4210a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
lea edx, [eax + 8]
mov dword [eax + 4], ecx
mov dword [ebp - 0x10], edx
mov dword [edx + 0xc], ecx
mov dword [ebp - 4], 1
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [ebp - 4], 2
mov edx, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [eax + 0x20], edx
mov dword [ebp - 4], 4
mov dword [eax + 0x24], 9
mov dword [eax + 0x28], ecx
mov dword [eax + 0x3c], ecx
and dword [eax + 0x44], 0xfffffff8
or edx, 0xffffffff
mov dword [eax + 0x40], ecx
mov dword [eax + 0x2c], edx
mov dword [eax + 0x30], edx
mov dword [eax + 0x34], edx
mov dword [eax + 0x38], edx
mov dword [ebp - 4], 5
mov dword [eax], vtable.CBitmapButtonEx.0
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], 4
mov dword [eax + 0x50], 0xffffff
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], 2
mov dword [eax + 0x34], 1
mov dword [eax + 0x38], 3
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x401990
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4191ce
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4210a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
lea edx, [eax + 8]
mov dword [eax + 4], ecx
mov dword [ebp - 0x10], edx
mov dword [edx + 0xc], ecx
mov dword [ebp - 4], 1
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [ebp - 4], 2
mov edx, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [eax + 0x20], edx
mov esi, 4
mov dword [ebp - 4], esi
mov dword [eax + 0x24], 1
mov dword [eax + 0x28], ecx
mov dword [eax + 0x3c], ecx
and dword [eax + 0x44], 0xfffffff8
or edx, 0xffffffff
mov dword [eax + 0x40], ecx
mov dword [eax + 0x2c], edx
mov dword [eax + 0x30], edx
mov dword [eax + 0x34], edx
mov dword [eax + 0x38], edx
mov dword [ebp - 4], 5
mov dword [eax + 0x54], esi
mov esi, 0xffffff
mov dword [eax], vtable.CSkinButton.0
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x50], ecx
mov dword [eax + 0x58], esi
mov dword [eax + 0x5c], esi
mov dword [eax + 0x60], esi
mov dword [eax + 0x64], 0x323232
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], 2
mov dword [eax + 0x34], 1
mov dword [eax + 0x38], 3
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4055d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x423948], eax
test eax, eax
jne 0x4055ef
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 4]
push eax
push 0
push 0x423918
push 0x4058e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x40561d
mov ecx, dword [0x423948]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x406770
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
mov ecx, 0x422a40
call fcn.0040b584
mov ebx, eax
mov dword [ebp - 4], 1
test ebx, ebx
je 0x406824
test esi, esi
jne 0x406824
mov eax, dword [ebp + 8]
shr eax, 4
inc eax
push esi
movzx ecx, ax
push ecx
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
je 0x406808
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x406802
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406802
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
add eax, esi
and ecx, 0xf
jbe 0x4067f1
cmp esi, eax
jae 0x4067f5
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4067e3
cmp esi, eax
jb 0x4067f9
xor eax, eax
jmp 0x406802
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
mov esi, eax
test eax, eax
jne 0x40682d
mov edi, dword [ebp - 4]
push edi
mov ecx, 0x422a40
call fcn.0040b584
mov ebx, eax
inc edi
mov dword [ebp - 4], edi
test ebx, ebx
jne 0x406795
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406910
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x406928
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40695a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x406956
cmp esi, eax
jae 0x40695a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x406948
cmp esi, eax
jb 0x406960
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x4078a0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41962a
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4210a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x407900
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x14]
push eax
call fcn.004041b0
mov byte [ebp - 4], 1
lea edi, [ebp - 0x14]
call fcn.00408790
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x18], ax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 3
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ebx
mov edx, 0x614
mov word [ebp - 0x24], dx
mov dword [ebp - 0x22], ebx
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb esi, esi
mov byte [ebp - 4], bl
mov ecx, edi
push ecx
call fcn.00402e10
lea eax, [esi + 1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408f90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418ec6
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4210a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, edx
push esi
push edi
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x4090f8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4090f8
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4090f8
mov ecx, dword [ebp - 0x24]
mov eax, dword [sym.imp.KERNEL32.dll_GlobalFree]
push ecx
push eax
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], esi
call fcn.004062a0
mov dword [ebp - 4], 0
push esi
lea edx, [ebp - 0x20]
push esi
push edx
call fcn.00401140
add esp, 0xc
mov dword [ebp - 4], 1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x4090d1
mov ecx, dword [ebp - 0x24]
mov eax, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ecx
push eax
lea edx, [ebp - 0x28]
push edx
call fcn.00405d30
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
push ebx
push eax
push edi
call fcn.0040ca70
xor edi, edi
add esp, 0xc
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
push ecx
push edi
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4090ac
mov edx, dword [ebp - 0x14]
push edx
call fcn.004011f0
mov esi, eax
add esp, 4
cmp esi, edi
je 0x4090af
mov eax, dword [esi + 8]
mov dword [esi + 8], edi
cmp eax, edi
je 0x4090af
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp - 0x10]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
cmp eax, edi
je 0x4090c2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
push eax
call fcn.004021e0
jmp 0x4090d4
mov esi, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
push ecx
call fcn.004021e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b76b
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x422a78], 0
push esi
push edi
jne 0x40b6e1
call fcn.0040b64d
test eax, eax
je 0x40b726
mov eax, dword [0x422a78]
cmp eax, 1
jne 0x40b702
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40b726
jmp 0x40b768
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x40b768
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x40b72a
xor eax, eax
jmp 0x40b768
mov eax, dword [esi]
push dword [0x422a78]
call edi
mov edi, eax
test edi, edi
je 0x40b74c
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x40b768
lea edi, [esi + 0xff0]
push esi
push dword [0x422a78]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x40b752
mov eax, esi
pop edi
pop esi
ret
jmp 0x40b6cd
Function at 0x410f8f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4210a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00410194
and dword [ebp - 0x14], 0
cmp dword [0x423864], 0
mov dword [ebp - 0x18], eax
jne 0x411042
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4110ea
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4110ea
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x41b81c
push ebx
mov dword [0x423864], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x423868], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42386c], eax
call edi
push eax
call esi
mov dword [0x423874], eax
test eax, eax
je 0x411042
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x423870], eax
mov eax, dword [0x423870]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41109b
cmp dword [0x423874], ecx
je 0x41109b
push eax
call esi
push dword [0x423874]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41109b
test ebx, ebx
je 0x41109b
call edi
test eax, eax
je 0x411092
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x411092
test byte [ebp - 8], 1
jne 0x41109b
or dword [ebp + 0x10], 0x200000
jmp 0x4110ce
mov eax, dword [0x423868]
cmp eax, dword [ebp - 0x18]
je 0x4110ce
push eax
call esi
test eax, eax
je 0x4110ce
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4110ce
mov eax, dword [0x42386c]
cmp eax, dword [ebp - 0x18]
je 0x4110ce
push eax
call esi
test eax, eax
je 0x4110ce
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x423864]
call esi
test eax, eax
je 0x4110ea
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4110ec
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bbb3
leave
ret
Function at 0x5c79a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov esi, edx
mov ebp, eax
push 0
push 0
push 0
push 0
push esi
push ebp
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
sete bl
test bl, bl
je 0x5c7a1c
test esi, esi
je 0x5c79cd
cmp word [esi], 0
jne 0x5c7a1c
call fcn.00429d30
cmp eax, 2
je 0x5c7a1c
xor ebx, ebx
xor esi, esi
mov dword [esp + 4], 2
push 0
push 0
push 0
push 0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push esi
push ebp
call sub.advapi32.dll_RegEnumValueW
mov edi, eax
test edi, edi
je 0x5c7a0a
cmp edi, 0xea
jne 0x5c7a1c
test edi, edi
jne 0x5c7a19
cmp word [esp], 0
jne 0x5c7a19
mov bl, 1
jmp 0x5c7a1c
inc esi
jmp 0x5c79db
mov eax, ebx
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x5c7a88
Capabilities:
Delete registry key

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
cmp al, 2
je 0x5c7a9c
push esi
push ebx
call sub.advapi32.dll_RegDeleteKeyW
pop esi
pop ebx
ret
cmp dword [0x6d67e4], 0
jne 0x5c7abf
push 0x5c7ae4
push 0x5c7b04
call sub.kernel32.dll_GetModuleHandleW
push eax
call fcn.00414030
mov dword [0x6d67e4], eax
cmp dword [0x6d67e4], 0
je 0x5c7ad9
push 0
push pe_nt_image_headers32
push esi
push ebx
call dword [0x6d67e4]
jmp 0x5c7ade
mov eax, 0x7f
pop esi
pop ebx
ret