joyce8/EMBER2024-capa huggingface dataset:
Function at 0xda5000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xda5131
push esi
call fcn.00da8145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00d97080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xda5131
push 0
push ebp
call fcn.00d973a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00d97260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xda508b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00d972f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xda5121
push 0xdbd918
push edi
call fcn.00da63f0
push eax
push ebx
push esi
call fcn.00da4f60
push 0xdbd8f8
push edi
call fcn.00da63f0
push eax
push ebx
push esi
call fcn.00da4f60
push 0xdbd8d8
push edi
call fcn.00da63f0
push eax
push ebx
push esi
call fcn.00da4f60
push 0xdbd8c0
push edi
call fcn.00da63f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00da4f60
push 0xdbd8a0
push edi
call fcn.00da63f0
push eax
push ebx
push esi
call fcn.00da4f60
push 0xdbd888
push edi
call fcn.00da63f0
push eax
push ebx
push esi
call fcn.00da4f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xda61b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00da6140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00da6140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00da6140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00da6140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xda6bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xda6c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xdb887c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xda6c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xda6c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x7ffe535f
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword fs:[0x30]
push edx
cdq
pop edx
cld
and bh, 0xff
cld
lea esp, [esp]
nop
lea esp, [esp]
clc
pushal
inc eax
popal
clc
and bh, 0xff
nop
pushal
inc eax
popal
cld
add eax, 0
stc
add eax, 0
cld
and bh, 0xff
stc
push edx
cdq
pop edx
cld
and bh, 0xff
stc
push edx
cdq
pop edx
cld
add eax, 0
clc
lea esp, [esp]
stc
lea esp, [esp]
cld
lea esp, [esp]
stc
lea esp, [esp]
stc
pushal
inc eax
popal
cld
and bh, 0xff
cld
push edx
cdq
pop edx
stc
add eax, 0
cld
and bh, 0xff
stc
pushal
inc eax
popal
cld
push edx
cdq
pop edx
clc
add eax, 0
cld
lea esp, [esp]
cld
add eax, 0
cld
and bh, 0xff
nop
push edx
cdq
pop edx
stc
and bh, 0xff
cld
pushal
inc eax
popal
stc
push edx
cdq
pop edx
cld
add eax, 0
cld
add eax, 0
stc
add eax, 0
stc
pushal
inc eax
popal
stc
pushal
inc eax
popal
nop
add eax, 0
cld
add eax, 0
add eax, 0
call 0x7ffe540c
pop edx
pushal
inc eax
popal
nop
lea esp, [esp]
clc
cld
xor dx, dx
cld
lea esp, [esp]
nop
add eax, 0
add edx, 0xd5e0
stc
nop
clc
xor ecx, ecx
cld
clc
mov cl, 0x1e
cld
xor byte [ecx + edx], 0x5e
loop 0x7ffe5431
cld
lea esp, [esp]
clc
inc esi
dec esi
cld
push dword fs:[0x24]
add eax, 0
nop
and al, 0xff
clc
pop dword [edx + 0xa]
push edx
cdq
pop edx
cld
push edx
cdq
pop edx
lea esp, [esp]
mov cl, 0xff
push edx
cdq
pop edx
nop
cld
push edx
loop 0x7ffe5461
cld
lea esp, [esp]
cld
lea esp, [esp]
mov dword [edx + 0x11], 0xffffacbb
nop
pushal
inc eax
popal
nop
nop
stc
mov ecx, dword [eax + 0x2c]
cld
nop
mov dword [edx + 0x1b], ecx
push edx
cdq
pop edx
stc
nop
mov dword [edx + 0x100], ecx
mov dword [eax + 0x2c], esp
and bh, 0xff
push 0
lea esp, [esp]
cld
cld
nop
push 0
clc
push 0
push 0
cld
and bh, 0xff
nop
pushal
inc eax
popal
push edx
cdq
pop edx
push 0x30
pushal
inc eax
popal
cld
pushal
inc eax
popal
add eax, 0
push 0x20
stc
push 0
clc
and bh, 0xff
push 0
clc
cld
cld
add edx, 0xffff7f31
and bh, 0xff
cld
and bh, 0xff
push es
pop ds
cld
push edx
cld
and bh, 0xff
cld
push edx
push 0
add al, 0
cld
call dword [edx + 0x8212]
nop
nop
add esp, 0x3f8
stc
xor eax, eax
clc
lea esp, [esp]
clc
push es
pop ds
stc
inc eax
and bh, 0xff
cld
add eax, 0
ret 0xc
Function at 0x7fb616
Capabilities:
Execute anti-debugging instructions

Disassembly:
and ah, ah
ficomp word [ebp - 0x33]
xchg esp, eax
mov eax, dword [reloc.WINMM.dll_midiStreamStop]
push es
mov cl, 0xb0
mov bl, 0x8d
and al, 0x24
lea eax, [ebp*4]
call fcn.007fb65e
push es
xchg dword [edi], edx
jb 0x7fb5a8
cmp edi, dword [eax + edi - reloc.WINMM.dll_midiStreamStop]
xchg ebp, eax
add al, 0xb7
sahf
jmp 0x8850ac3f

Function at 0x809371
Capabilities:
Reference the vmware io port

Disassembly:
jmp 0x80a85b
jmp 0x7ec2e6
mov ecx, dword [esp + 0x2c]
lea esp, [esp + 0x30]
jmp 0x7ec317
lea esp, [esp + 1]
xchg word [esp + 2], cx
lea esp, [esp + 1]
jmp 0x80935b
call 0x80a845
call 0x81e389
and al, 0x3b
add dword [eax], eax
jle 0x80a861
push 0x7403080f
sub al, 0x23
jecxz 0x80a8ac
pop edx
movsd dword es:[edi], dword [esi]
mov edi, 0x47e36108
outsb dx, byte [esi]
ret 0xe7df
loop 0x80a8cb
insb byte es:[edi], dx
jg 0x80a8f7
adc al, 0x8a
in eax, dx
sbb al, 0xa8
add eax, eax

Function at 0x8093a5
Capabilities:
Reference the vmware io port

Disassembly:
jmp 0x80a860
jmp 0x7ec33e
jmp 0x7ec36d

Function at 0x8099fc
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp + 4]
call fcn.0080996d

Function at 0x81e4d5
Capabilities:
Reference the vmware io port

Disassembly:
call fcn.0081e4f7
xchg esi, eax
das
xchg byte [ebx - 0x63ea4c82], dl
dec esp
test byte [esi], al
sal dword [ebx], 1
invalid
lea esp, [esp + 0x38]
jbe 0x7ec354
ja 0x81e511
inc esi
invalid
or ecx, reloc.WINMM.dll_midiStreamStop
sub ecx, dword [edx]
jmp fcn.0081e343
Function at 0x8206f4
Capabilities:
Encrypt data using aes

Disassembly:
jmp 0x82073a
pop word [esp]
call fcn.008206f6
push ebx
leave
pop ecx
cmp bl, cl
jp 0x82073d
and al, 0xe8
mov bl, 0xff
invalid
push 0xfffffffffffffff8
lahf
push 0xffffffffffffffaf
or esp, dword [edx - reloc.WINMM.dll_midiStreamStop]

Function at 0x8206f6
Capabilities:
Encrypt data using aes

Disassembly:
mov word [esp + 1], sp
lea esp, [esp + 2]
lea esp, [esp + 4]
popal
sub esp, 7
jmp 0x820724

Function at 0x8208eb
Capabilities:
Encrypt data using aes

Disassembly:
lea esp, [esp + 0x10]
jmp 0x7ec747
neg al
mov dword [ecx + 0x1c], edx
mov ebx, 0x7f91dc
jmp 0x820889
xor edx, eax
mov ax, 0xcb3e
sbb bh, 0x9e
jmp 0x8208a3

Function at 0x820978
Capabilities:
Encrypt data using aes

Disassembly:
and ecx, 0xff0000
push dx
sub esp, 2
jmp 0x820985
mov edi, dword [edi*4 + reloc.WINMM.dll_midiStreamStop]
lea esp, [esp + 0x28]
jmp 0x820962
lea esp, [esp + 4]
and edi, 0xff000000
xor ecx, edi
jmp 0x8209c4
mov edi, edx
and edx, esi
mov edx, dword [edx*4 + reloc.WINMM.dll_midiStreamStop]
jmp 0x8209ae

Function at 0x82660a
Capabilities:
Encode data using xor

Disassembly:
jmp 0x826826
mov eax, dword [0x7f9f74]
jmp 0x826608
push ebp
pushal
mov cx, word [eax]
jmp 0x8266ad
leave
ret 4
mov eax, dword [eax]
push 0
push 0x80
call fcn.008265d7
lea esp, [esp + 0xc]
cmp eax, reloc.WINMM.dll_midiStreamStop
jmp 0x826671
mov eax, dword [0x7f9f74]
jmp 0x826695
je 0x825d67
push eax
mov ax, dx
mov al, ah
jmp 0x82665b
bsf dx, di
mov edx, ecx
lea esp, [esp + 2]
jmp 0x8266a5
call dword [eax + 0xc]
mov eax, ebx
lea edx, reloc.WINMM.dll_midiStreamStop
sub esp, 2
jmp 0x82667f
lea edx, [eax + 2]
jmp 0x825e52
sub esp, 0xf
lea esp, [esp + 3]
jmp 0x826b5e
call fcn.008053f1
and ecx, ebp
imul esi, edi, 0xd8f7ffff
jmp 0x82673e
lea ebx, [ebp + 0x50]
xchg edx, eax
mov al, byte [esp]
cmc
jmp 0x82678e
cmp edi, ebx
ja 0x7fad1f
xchg ebx, edx
jmp 0x826771
lea edx, [esp + ebp]
lea eax, [edi - 0xaf]
jmp 0x8267dc
jge 0x82674d
jl 0x82674d
rcl ebx, cl
mov bh, 0xfb
bsf ebx, edx
xchg dword [esp], eax
cmc
jmp 0x8267c3
setne bl
xchg bh, bl
mov ebx, esi
lea eax, [eax - 0x46]
bsf ebx, edx
call fcn.0082680b
inc ebp
hlt
mov eax, ebp
xchg edx, ebx
lea edx, [edx + ebp]
lea edx, [ecx*4]
mov bx, 0x324
call 0x826792
cdq
clc
xchg dword [esp], ebx
xchg dword [esp + 4], eax
bswap ebx
mov ebx, 0xfe61f00e
jmp 0x826810
lea ebx, [ecx + edx]
setbe bl
bt ebx, ebx
push dword [esp + 4]
ret 8
push 0x104
push ebx
push dword [ebp + 8]
jmp 0x826718
sub eax, edx
push dx
lea esp, [esp + 2]
sar eax, 1
jmp 0x825e8c
mov ecx, edi
mov edx, dword [ecx]
push sp
mov ecx, 0x43cbaa69
jmp 0x826a81
test cx, cx
push si
lea esp, [esp + 1]
lea esp, [esp + 1]
jne 0x825e52
je 0x8268bd
lea ebx, [eax + ecx]
xchg dx, cx
xchg ch, bl
jmp 0x826a20
mov cl, byte [esp]
jmp 0x826ae1
lea esp, [esp + 2]
mov ebx, dword [edi + 4]
neg cx
jbe 0x826a6b
ja 0x826b0f
mov dword [edx], ebx
mov cx, bx
mov ch, dh
neg cl
jnp 0x826ac4
jp fcn.008147f3
and eax, 0x796ec754
sbb cx, bx
jmp 0x826a93
jmp fcn.008147f3
add edi, 8
dec ecx
jo 0x826aa9
sbb cx, bx
jmp 0x826a93
mov cl, byte [esp]
jmp 0x826ae1
lea esp, [esp + 0x30]
inc eax
inc eax
jmp 0x826a36
Function at 0x8ef272
Capabilities:
Packed with generic packer
Parse pe header

Disassembly:
mov word [esp + 1], bx
jmp 0x8ef296
mov dword [esp], edi
pop word [esp]
lea esp, [esp + 2]
mov dword [esp + 4], edx
call fcn.008ef2ea
arpl cx, bp
jns 0x8ef2c6
jmp 0x8ef2ed
add dword [ecx - reloc.WINMM.dll_midiStreamStop], ecx
fmul dword [ebp - reloc.WINMM.dll_midiStreamStop]
adc al, byte [eax]
add byte [eax], al
jmp 0x8ef364
inc ebp

Function at 0x8ef289
Capabilities:
Packed with generic packer
Parse pe header

Disassembly:
lea esp, [esp + 3]
mov dword [esp + 8], ecx
call fcn.008ef272

Function at 0x8ef2ea
Capabilities:
Packed with generic packer
Parse pe header

Disassembly:
call fcn.008ee0da
push bx
mov word [esp], bx
lea esp, [esp + 2]
mov dword [esp], esp
push ebp
call fcn.008ef30a
push edx
jecxz 0x8ef355
push ss
in eax, 1
cmpsb byte [esi], byte es:[edi]
rcl dword [eax - 0x2d]
dec edx
mov byte [esp + 1], bl
mov dword [esp + 4], ebx
jmp 0x8ef2cc
mov eax, dword [eax + 8]
push eax
jmp 0x8ee0d5

Function at 0x8ef30f
Capabilities:
Packed with generic packer
Parse pe header

Disassembly:
lea esp, [esp + 1]
mov dword [esp], esi
push edi
mov eax, dword fs:[0x30]
jmp 0x8ef3c0
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
jmp 0x8ef355

Function at 0x8ef335
Capabilities:
Encode data using xor
Packed with generic packer
Parse pe header

Disassembly:
lea esp, [esp + 3]
mov byte [esp], cl
push eax
call fcn.008ef289
push dword [esp]
pop word [esp + 1]
jmp 0x8ef2bf
Function at 0x4010f0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov edx, ecx
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [edx + 8]
push esi
push 1
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 8

Function at 0x401120
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x208
lea eax, [esp]
push esi
push eax
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
mov edx, dword [esp + 0x218]
push eax
mov eax, dword [ecx + 8]
push 0
push edx
push eax
mov dword [esp + 0x1c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x401169
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x218]
call fcn.0040e316
mov eax, esi
pop esi
add esp, 0x208
ret 8
Function at 0x40d5d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004037e0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x40d69b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x40d69b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x40d64e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x40d659
or bh, 8
and edi, 0x8000000
je 0x40d674
mov eax, dword [0x4223fc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x40d69b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40da70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40da9b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x40dabf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x40dada
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x410792
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4107ca
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.0040e3b4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040e38c
jmp 0x4107d6
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4107da
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x41ed28
mov ecx, edi
call fcn.0040e316
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x41082d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x410840
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.0040e3b4
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0040e38c
jmp 0x410840
mov ecx, esi
call fcn.00412415
test eax, eax
je 0x410840
push edi
mov ecx, eax
call fcn.00410792
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x411d85
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 0x411dc7
call fcn.004147d4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x411dc7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x411dbe
xor eax, eax
jmp 0x411dcf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00411dd5
pop edi
pop esi
pop ebx
ret 4

Function at 0x414feb
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x415019
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x415037
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00414f51
jmp 0x415037
mov eax, dword [esi + 0x14]
test eax, eax
je 0x415037
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00414f51
test edi, edi
mov eax, edi
jne 0x415021
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x1f95b2a
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data_1
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x55f44df5
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x1004cb9
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x101203c]
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x404]
push 0x3ff
push eax
call fcn.01007f62
xor edx, edx
add esp, 0x10
cmp eax, edx
jge 0x1004cf7
mov byte [ebp - 5], dl
mov eax, 0x400
jmp 0x1004cfe
mov byte [ebp + eax - 0x404], dl
mov ecx, dword [0x1012030]
cmp ecx, 0xffffffff
je 0x1004d20
push edx
lea edx, [ebp - 0x408]
push edx
push eax
lea eax, [ebp - 0x404]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
call fcn.01007b7f
leave
ret

Function at 0x1004e39
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x101203c]
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push 0x20
push 2
xor edi, edi
push eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
inc edi
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1004e8e
cmp dword [ebp - 0x10], ebx
jne 0x1004e92
xor eax, eax
jmp 0x1004ead
push esi
push dword [ebp - 0x10]
push ebx
call sub.ADVAPI32.dll_CheckTokenMembership
test eax, eax
jne 0x1004ea2
xor edi, edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01007b7f
leave
ret 8
Function at 0x100526f
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x884
mov eax, dword [0x101203c]
and dword [ebp - 0x878], 0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x884], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x87c], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x880], eax
mov ebx, 0x1012f40
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.01007ff2
lea eax, [ebp - 0x414]
push 0x10012b8
push eax
call fcn.01007fbf
add esp, 0x10
lea eax, [ebp - 0x874]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10052ee
xor eax, eax
jmp 0x10053a8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.01007ff2
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.01007fbf
add esp, 0x10
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x614]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.010051a6
test eax, eax
je 0x100534e
push dword [ebp - 0x884]
lea eax, [ebp - 0x614]
push eax
call fcn.01008113
test eax, eax
pop ecx
pop ecx
je 0x100536d
lea eax, [ebp - 0x874]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1005366
push edi
call esi
or edi, 0xffffffff
cmp edi, 0xffffffff
jne 0x10052f5
jmp 0x10053a1
lea eax, [ebp - 0x848]
push eax
push dword [ebp - 0x87c]
mov dword [ebp - 0x878], 1
call fcn.01007ff2
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x880]
call fcn.01007ff2
add esp, 0x10
push edi
call esi
mov eax, dword [ebp - 0x878]
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.01007b7f
leave
ret 0xc

Function at 0x1005402
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.01004d3c
or eax, 0xf003f
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1005445
push esi
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtDeleteKey]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 8