joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423b4d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x470e58]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x423b8d
cmp byte [ebx], 0xa
jne 0x423b8d
or byte [eax + edi + 0x28], 4
jmp 0x423b92
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x423c90
mov al, byte [edx]
cmp al, 0x1a
je 0x423c72
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x423bc1
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x423be6
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x423bf0
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x423ba3
jmp 0x423c90
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x423c6d
cmp dword [ebp - 0xc], 0
je 0x423c6d
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x470e58]
test byte [eax + edi + 0x28], 0x48
je 0x423c47
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x423c32
mov byte [esi], dl
jmp 0x423c43
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x470e58]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x423c90
cmp byte [ebp - 1], 0xa
jne 0x423c56
cmp esi, ebx
jne 0x423c56
mov byte [esi], 0xa
jmp 0x423c8f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041b728
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x423c90
mov byte [esi], 0xd
jmp 0x423c8f
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x470e58]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x423c8c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x423c90
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x423c99
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x470e58]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x423cdc
cmp word [esi], dx
jne 0x423cdc
or byte [edi + eax + 0x28], 4
jmp 0x423ce1
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x423e34
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x423e14
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x423d23
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x423d59
cmp eax, edx
jae 0x423d65
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x423cfb
jmp 0x423e34
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x423e10
cmp dword [ebp - 0x14], 0
je 0x423e10
mov eax, dword [ebx*4 + 0x470e58]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x423de8
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x423db1
mov word [esi], cx
jmp 0x423de4
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x470e58]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x470e58]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x470e58]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x423e34
pop ebx
cmp word [ebp - 4], bx
jne 0x423df9
cmp esi, dword [ebp + 0xc]
jne 0x423df9
mov word [esi], bx
jmp 0x423e31
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041b728
add esp, 0x10
cmp word [ebp - 4], bx
je 0x423e34
push 0xd
jmp 0x423e2d
mov ecx, dword [ebx*4 + 0x470e58]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x423e2b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x423e34
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4014e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
inc eax
ret 0x10

Function at 0x401910
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004018d0
mov ebp, dword [esp + 0x18]
mov eax, ebp
dec eax
je 0x4019b0
dec eax
je 0x401988
dec eax
jne 0x4019c3
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
mov eax, dword [esp + 0x14]
push 0xa
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
jne 0x401957
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [esi + 0x10], eax
je 0x40197f
mov ecx, dword [esi + 0x14]
test ecx, ecx
jne 0x4019c0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
mov ecx, dword [esp + 0x14]
push 0x100
push 0x8000
push ecx
call fcn.00402120
add esp, 0xc
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
jne 0x4019c3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 4]
mov dword [esi + 0x14], edx
mov eax, dword [eax + 8]
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], eax
mov eax, 1
mov dword [esi + 8], ebp
mov dword [esi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x403ca5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40c268
cmp edx, dword [eax]
je 0x403cc7
add eax, 8
inc ecx
cmp eax, 0x40c2f8
jl 0x403cb8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40c268]
jne 0x403df5
mov eax, dword [0x40f634]
cmp eax, 1
je 0x403dcf
test eax, eax
jne 0x403cf8
cmp dword [0x40c18c], 1
je 0x403dcf
cmp edx, 0xfc
je 0x403df5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403d2f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407590
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404320
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x403d72
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404320
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40a474
push edi
call fcn.00401d60
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407590
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004075a0
lea eax, [ebp - 0xa0]
push 0x40a454
push eax
call fcn.004075a0
push dword [esi + 0x40c26c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004075a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040790f
add esp, 0x2c
pop edi
jmp 0x403df5
lea eax, [ebp + 8]
lea esi, [esi + 0x40c26c]
push 0
push eax
push dword [esi]
call fcn.00404320
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x5906d7
Capabilities:
Encrypt data using aes

Disassembly:
mov di, cx
xor edx, esi
bswap esi
lea esi, [edx + ebp]
setb bl
jmp 0x5906eb
shl edx, 8
and di, 0x309a
lea edi, [ecx + 0xb]
lea edi, [ebx*4]
jmp 0x5906b6
mov esi, 0x9a02b1b4
lea esp, [esp + 4]
movzx esi, byte [eax + 0xe]
setb bl
sub esp, 0x1c
jmp 0x59071d
xchg bp, di
jmp 0x5907b0
xor edx, eax
bswap ebx
mov al, 0x2c
jmp 0x590779
mov bh, 0xc3
jmp 0x590741
xor edx, esi
shl edx, 8
bswap esi
xchg bh, bl
jmp 0x590757
mov dword [ecx + 0xc], edx
mov al, ah
btc ebx, edi
mov al, ah
jmp 0x5907f6
lea esp, [esp + 2]
shl edx, 8
xchg bx, di
mov edi, dword [esp]
xchg edi, ebx
jmp 0x59076e
lea esp, [esp + 0x1c]
movzx eax, byte [eax + 0xf]
sub esp, 0x1a
sub esp, 4
mov bp, bx
jmp 0x59078f
lea esp, [esp + 0x1c]
mov esi, 0xff
rcl bl, 1
mov edi, dword [esp]
jmp 0x590d0a
not bp
jmp 0x5907c3
mov eax, edx
shr eax, 0x10
shl di, cl
rcl bl, 7
jmp 0x5907de
mov bl, bh
ror ebp, 0xd
mov bx, 0x918b
mov ebx, dword [ecx + 4]
jmp 0x590980
mov edi, dword [edi*4 + reloc.WINMM.dll_midiStreamOut]
mov ebp, 0x409d0e24
and edi, 0xff0000
setne bl
jmp 0x590817
btc ebp, ebx
mov bp, word [esp]
setp bl
neg bp
and edi, esi
jmp 0x59083b
xor eax, edi
sub esp, 0x1a
lea esp, [esp + 2]
jmp 0x5908a2
lea ebp, reloc.WINMM.dll_midiStreamOut
movzx edi, byte [edi*4 + 0x56e75c]
mov bp, word [esp]
mov ebp, 0x69ed6936
jmp 0x590872
mov edi, edx
mov bp, 0xbbd1
bsf bp, ax
cmc
jmp 0x590933
lea ebp, [eax*4]
mov bp, 0x6615
shr edi, 0x18
bsr bp, bp
btr ebp, edx
jmp 0x590889
mov dword [esp], edx
sub esp, 0xa
sub esp, 0x16
lea esp, [esp + 0x20]
popal
lea ebp, reloc.WINMM.dll_midiStreamOut
jmp 0x5908be
dec di
xchg edi, ebp
stc
pushal
ror ecx, 0xd
jmp 0x5908e0
mov ebp, 0xff00
and edi, ebp
call 0x590959
xor eax, edi
jmp 0x590942
and edi, esi
mov edi, dword [edi*4 + reloc.WINMM.dll_midiStreamOut]
lea esp, [esp + 0x18]
jmp 0x590911
lea esp, [esp + 4]
xor eax, dword [ecx]
call fcn.00590964
aad 0x52
shl byte [edi - 0x35ac1aae], 0x65
xchg esp, eax
pop es
scasb al, byte es:[edi]
push word [esp + 1]
lea esp, [esp + 2]
jmp 0x59091d
and eax, 0xff000000
rcl ebp, 9
bswap ebp
cmc
xor eax, edi
jmp 0x590906
mov bl, byte [esp]
mov edi, edx
not bh
shr edi, 8
jmp 0x590861
mov eax, dword [eax*4 + reloc.WINMM.dll_midiStreamOut]
xor eax, 0x1000000
lea edi, [ebp*4]
mov edi, 0xf94c4086
mov di, word [esp]
jmp 0x5909d9
and eax, esi
btc edi, edi
inc di
bts ebp, ebx
jmp 0x590ce2

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

Disassembly:
lea esp, [esp + 4]
mov dword [esp + 0x14], edx
jmp 0x597d85
cmp word [ecx + 0x18], ax
call 0x597d6f
Function at 0x597d6f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test al, 0xcf
cmp bh, bh
sahf
pop ds
invalid
call fcn.0059831f
cli
jle 0x597d4d
mov eax, dword [esi - reloc.WINMM.dll_midiStreamOut]
cmpsb byte [esi], byte es:[edi]
push ebp
loope 0x597dc1
rol dword [eax + reloc.WINMM.dll_midiStreamOut], 0x24
add dword [esi - 0x77], esp
adc al, 0x24
lea esp, [esp + 3]
jmp fcn.00597d8e
pop ds
xchg cx, ax
mov byte [esp], ah
mov byte [esp + 2], ch
pop word [esp]
lea esp, [esp + 2]
jmp 0x598236
lea esp, [esp + 4]
movzx ecx, byte [edx + edi + 1]
bswap ebx
setle bl
jmp 0x5983b7
je 0x597d59
mov al, byte [edx + 1]
mov ebx, dword [esp]
call fcn.0059821a
mov bl, byte [esp + 1]
jmp 0x59821f
mov bx, 0x3e8f
mov bx, word [esp]
inc edx
rcl bx, cl
mov bx, 0x5543
jmp fcn.0059834e
Function at 0x67b53d
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea eax, [esi - 0x75]
cld
mov si, word [esp + 2]
cld
mov bl, bh
ror dh, 7
jmp 0x67b565
rcr edi, 0x1f
lea eax, [eax + 0xf9]
lea esi, [edi*4]
clc
jmp 0x67b50c
xchg esi, ebp
mov si, 0x33d5
setge dh
mov esi, dword [esp + 9]
jmp 0x67b524

Function at 0x67b804
Capabilities:
Execute anti-debugging instructions

Disassembly:
push word [esp + 2]
bsr si, cx
push word [esp + 4]
mov edx, ecx
jmp 0x67c988
setp bh
sub esp, 2
cpuid
mov byte [esp + 1], bh
pop eax
mov esi, dword [esp]
jmp 0x67b7d5
xor di, 0x4554
lea ebp, [ebx + edi]
jmp 0x67b7ed
cmc
sub esp, 0x16
mov ah, byte [esp + 0x13]
rdtsc
push word [esp + 0x10]
bsr dx, bp
jmp 0x67b8c7
setae ah
mov cx, word [esp]
xchg dh, al
cld
mov eax, esi
mov bx, word [esp]
jmp 0x67b878
xchg dh, al
mov dx, 0x53c7
stc
mov dword [esp + 0xa], ebp
cpuid
inc cl
jmp 0x67b955
mov bl, bh
mov esi, ecx
pop ax
pop dx
push edx
mov edx, dword [esp + 1]
jmp 0x67b8a8
lea ebp, [ecx - 0x8b]
lea esp, [esp]
setns ch
mov dx, word [esp + 1]
lea eax, [ebx*4]
pop di
jmp 0x67b896
bswap esi
sub esp, 2
mov cx, word [esp + 1]
neg di
xchg ebx, edi
lea esp, [esp + 0x10]
call fcn.0067b92d
bswap ecx
rcl di, cl
mov bl, 0xc0
lea esp, [esp]
neg dh
and cx, 0xb642
jmp 0x67b9be
xchg ecx, ebp
cmc
xchg dx, si
lea ecx, [ecx + ebx]
lea ecx, [esi - 0x55]
lea esp, [esp]
jmp 0x67b9f6
mov ebp, dword [esp + 0xf]
pop dword [esp + 1]
xchg byte [esp + 4], cl
pop cx
jmp 0x67bba5
lea edi, [ebx + ebx]
mov ah, byte [esp]
xchg bx, ax
btc edi, edi
add esp, 0
mov di, 0x34cb
jmp 0x67b995
xchg word [esp + 0x19], ax
rdtsc
cld
push word [esp + 0x1a]
popal
stc
jmp 0x67b8e2
not bh
mov ebp, 0xd6125990
pushal
clc
xchg bh, cl
push word [esp + 0xa]
jmp 0x67b9a6
inc edx
rdtsc
mov al, 0xde
mov bl, bh
mov byte [esp + 0x1f], ch
xchg si, bp
jmp 0x67b9e2
popal
xchg dh, al
mov ecx, dword [esp]
mov ah, byte [esp + 2]
xchg word [esp], bp
xchg ch, dl
jmp 0x67ba7b
pop cx
pushal
inc cl
lea esi, [eax + 0xa1]
mov word [esp + 0x1f], di
xchg ebp, edx
jmp 0x67ba2b
xchg ah, bl
push edx
mov cx, word [esp + 5]
push word [esp + 3]
pop eax
mov bp, 0x8f37
jmp 0x67ba4c
mov edi, eax
mov dx, bx
mov word [esp], bx
bsr di, cx
mov dh, byte [esp]
push edx
jmp 0x67bb0f
pop ebx
bsr si, bp
mov di, 0xc3c9
bswap esi
rdtsc
mov dh, byte [esp]
jmp 0x67ba67
mov esi, ecx
not ax
not eax
inc cx
mov edx, 0x14935c66
cpuid
mov cl, 0xa
jmp 0x67ba9b
cld
bswap esi
clc
sub esp, 0xa
mov edx, 0x3164b8b4
pop ecx
jmp 0x67babc
not edx
bswap edx
not bh
push dword [esp + 4]
push dword [esp + 1]
mov cx, dx
call fcn.0067baec
pop es
mov ds, word [ebx + edi*2]
xchg esi, eax
jns 0x67babf
and esi, dword [ebx - reloc.WINMM.dll_midiStreamOut]
adc dword [eax + reloc.WINMM.dll_midiStreamOut], edx
add esp, 0x12
lea esp, [esp + 4]
cpuid
mov al, 0xae
lea esp, [esp]
lea ebx, reloc.WINMM.dll_midiStreamOut
jmp 0x67badd
lea ebx, [ecx - 0xb3]
sub bl, ah
mov bx, 0x5881
mov bx, word [esp + 0xe]
pop esi
pop word [esp + 3]
jmp 0x67bb35
ror edi, 9
mov word [esp + 1], sp
add esp, 4
xchg di, ax
bswap ebp
pushal
jmp 0x67ba1b
mov di, sp
pop word [esp]
sub bl, ah
xchg bp, bx
xchg word [esp], di
xchg byte [esp], cl
jmp 0x67be88
Function at 0x67c457
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
call fcn.0067b071
mov eax, dword [eax]
mov eax, dword [eax + 8]
push eax
jmp 0x67b06c
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0x67c3e6
lea esp, [esp + 2]
mov dword [esp + 0xbc], edi
lea esp, [esp + 0xbc]
jmp 0x67c419

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

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219

Function at 0x40100b
Capabilities:
Execute shellcode via indirect call
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x4010ad
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x40102e
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011b8
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401048
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011b8
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x401134
mov word [ebx], 0x5c
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011b8
mov dword [ebp - 0x108], eax
push 0x401023
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x4011ad
push 0x3e8
call eax
test eax, eax
je 0x4011ad
push eax
push 0x40
push 0x3000
push 0x10000
push 0
call sub.KERNEL32.dll_VirtualAlloc
test eax, eax
je 0x40119a
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
lea eax, [0x4010a7]
jmp 0x4011be
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
lea eax, [0x40108c]
jmp 0x4011be
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
lea eax, [0x40104d]
push 0x10
push 0x4010a7
push eax
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x4010a0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x118
mov eax, dword [0x40a004]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, dword [esp + 0x128]
mov ecx, 0x4092c8
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4010e9
test dx, dx
je 0x4010e5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4010e9
add eax, 4
add ecx, 4
test dx, dx
jne 0x4010c3
xor eax, eax
jmp 0x4010ee
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401135
push 0x110
push eax
lea eax, [esp + 0x10]
push eax
call fcn.004054a0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x401225
cmp dword [esp + 0x14], 2
jne 0x40112c
call section..text
push 0
push 0x12
jmp 0x40121f
mov ecx, 0x4092d0
mov eax, esi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401166
test dx, dx
je 0x401162
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401166
add eax, 4
add ecx, 4
test dx, dx
jne 0x401140
xor eax, eax
jmp 0x40116b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4011af
push 0x110
push eax
lea edx, [esp + 0x10]
push edx
call fcn.004054a0
add esp, 0xc
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x401225
cmp dword [esp + 0x14], 2
jne 0x4011a9
call section..text
push 0
push 0x11
jmp 0x40121f
mov ecx, 0x4092d8
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4011dc
test dx, dx
je 0x4011d8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4011dc
add eax, 4
add ecx, 4
test dx, dx
jne 0x4011b6
xor eax, eax
jmp 0x4011e1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401225
push 0x110
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.004054a0
add esp, 0xc
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x401225
cmp dword [esp + 0x14], 2
jne 0x40121b
call section..text
push 0
push 0x10
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0040123f
add esp, 0x118
ret 0x10

Function at 0x40123f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a004]
jne 0x401249
repz ret
jmp fcn.004013fe
Function at 0x403393
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402263
and dword [ebp - 4], 0
cmp dword [0x40b668], 0
mov ebx, eax
jne 0x403444
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4034f5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4034f5
push eax
call fcn.004021f1
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b668], eax
call esi
push eax
call fcn.004021f1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b66c], eax
call esi
push eax
call fcn.004021f1
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b670], eax
call esi
push eax
call fcn.004021f1
pop ecx
mov dword [0x40b678], eax
test eax, eax
je 0x403444
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004021f1
pop ecx
mov dword [0x40b674], eax
mov eax, dword [0x40b674]
cmp eax, ebx
je 0x40349c
cmp dword [0x40b678], ebx
je 0x40349c
push eax
call fcn.0040226c
push dword [0x40b678]
mov esi, eax
call fcn.0040226c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40349c
test edi, edi
je 0x40349c
call esi
test eax, eax
je 0x403493
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x403493
test byte [ebp - 0xc], 1
jne 0x40349c
or dword [ebp + 0x10], 0x200000
jmp 0x4034d5
mov eax, dword [0x40b66c]
cmp eax, ebx
je 0x4034d5
push eax
call fcn.0040226c
pop ecx
test eax, eax
je 0x4034d5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4034d5
mov eax, dword [0x40b670]
cmp eax, ebx
je 0x4034d5
push eax
call fcn.0040226c
pop ecx
test eax, eax
je 0x4034d5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b668]
call fcn.0040226c
pop ecx
test eax, eax
je 0x4034f5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4034f7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410c30
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46f87b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00464401
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x410cb2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00462180
mov eax, dword [eax]
push 0x546210
push eax
call fcn.00454dc4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046468c
test bl, bl
je 0x410cb2
push 0x546210
lea ecx, [esp + 0xc]
call fcn.00464a1c
push 0x549d8c
lea ecx, [esp + 0xc]
call fcn.00464a1c
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x410cee
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046468c
jmp 0x410db9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x410d72
lea edx, [esp + 0x7c]
push 0x549d88
push edx
call fcn.00454dc4
add esp, 8
test eax, eax
je 0x410d72
lea eax, [esp + 0x7c]
push 0x549d84
push eax
call fcn.00454dc4
add esp, 8
test eax, eax
je 0x410d72
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x410d02
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0046468c
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x4115b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x411612
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc