joyce8/EMBER2024-capa huggingface dataset:
Function at 0x480970
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov eax, ebp
call fcn.00480700
lea esi, [eax*4]
xor edi, edi
mov dword [esp + 0x10], eax
test esi, esi
jle 0x4809e0
lea edx, [ebp + esi*4 + 8]
lea ecx, [ebp + 8]
jmp 0x4809a0
mov eax, dword [edx - 8]
mov ebx, dword [ecx - 8]
mov dword [ecx - 8], eax
mov eax, dword [edx - 4]
mov dword [edx - 8], ebx
mov ebx, dword [ecx - 4]
mov dword [ecx - 4], eax
mov eax, dword [edx]
mov dword [edx - 4], ebx
mov ebx, dword [ecx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [edx], ebx
mov ebx, dword [ecx + 4]
mov dword [ecx + 4], eax
mov dword [edx + 4], ebx
add edi, 4
sub esi, 4
add ecx, 0x10
sub edx, 0x10
cmp edi, esi
jl 0x4809a0
mov eax, dword [esp + 0x10]
cmp eax, 1
jle 0x480b9d
lea ecx, [ebp + 2]
lea esi, [eax - 1]
nop
mov edx, dword [ecx + 0xe]
movzx ebx, byte [ecx + 0xf]
mov ebx, dword [ebx*4 + str.ccccwwww]
add ecx, 0x10
mov edi, edx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x4b0f90]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x4b1790]
movzx ebx, byte [ecx]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x4b1390]
movzx ebx, byte [ecx + 3]
and edx, 0xff
mov edx, dword [edx*4 + str.ccccwwww]
and edx, 0xff
xor edi, dword [edx*4 + 0x4b1b90]
mov edx, dword [ecx + 2]
mov dword [ecx - 2], edi
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edi, edx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x4b0f90]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x4b1790]
movzx ebx, byte [ecx + 4]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x4b1390]
movzx ebx, byte [ecx + 7]
and edx, 0xff
mov edx, dword [edx*4 + str.ccccwwww]
and edx, 0xff
xor edi, dword [edx*4 + 0x4b1b90]
mov edx, dword [ecx + 6]
mov dword [ecx + 2], edi
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edi, edx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x4b0f90]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x4b1790]
movzx ebx, byte [ecx + 8]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x4b1390]
movzx ebx, byte [ecx + 0xb]
and edx, 0xff
mov edx, dword [edx*4 + str.ccccwwww]
and edx, 0xff
xor edi, dword [edx*4 + 0x4b1b90]
mov edx, dword [ecx + 0xa]
mov dword [ecx + 6], edi
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edi, edx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x4b0f90]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x4b1790]
movzx ebx, byte [ecx + 0xc]
mov ebx, dword [ebx*4 + str.ccccwwww]
and edx, 0xff
mov edx, dword [edx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x4b1390]
and edx, 0xff
xor edi, dword [edx*4 + 0x4b1b90]
dec esi
mov dword [ecx + 0xa], edi
jne 0x4809f0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x481860
Capabilities:
Create thread

Disassembly:
push edi
lea eax, [esi + 4]
push eax
mov dword [esi], vtable.CritSection.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor edi, edi
push edi
push edi
mov dword [esi], vtable.SoundController.0
push edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
push edi
mov dword [esi + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push edi
push edi
push esi
push 0x481710
push edi
push edi
mov dword [esi + 0x30], eax
call fcn.004a586a
add esp, 0x18
push 2
push eax
mov dword [esi + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x4818b1
mov eax, esi
ret

Function at 0x484750
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esi + 0x14]
test ecx, ecx
jne 0x48475b
or eax, 0xffffffff
ret
test ebx, ebx
jne 0x484762
xor eax, eax
ret
test edx, edx
je 0x484794
mov eax, dword [esi + 0x1c]
add eax, dword [esi + 0x18]
push ecx
sub eax, dword [esi + 0x20]
cmp eax, ebx
jl 0x484784
push ebx
push 1
push edx
call fcn.0048d33a
add esp, 0x10
add dword [esi + 0x20], eax
ret
push eax
push 1
push edx
call fcn.0048d33a
add esp, 0x10
add dword [esi + 0x20], eax
ret
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
push ebp
push edi
mov edi, dword [esi + 0x20]
sub edi, eax
mov ebp, edx
sub ebp, edi
cmp ebp, ebx
jae 0x4847c7
push 0
add eax, edx
push eax
push ecx
call fcn.0048d5da
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
add esp, 0xc
add ecx, eax
sub eax, edi
pop edi
mov dword [esi + 0x20], ecx
pop ebp
ret
push 1
push ebx
push ecx
call fcn.0048d5da
add dword [esi + 0x20], ebx
add esp, 0xc
pop edi
mov eax, ebx
pop ebp
ret

Function at 0x484890
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x48489b
or eax, 0xffffffff
ret
test edi, edi
jne 0x4848a2
xor eax, eax
ret
test ecx, ecx
je 0x4848b7
push eax
push edi
push 1
push ecx
call fcn.0048d33a
add esp, 0x10
add dword [esi + 0x18], eax
ret
mov ecx, dword [esi + 0x14]
mov edx, ecx
sub edx, dword [esi + 0x18]
cmp edx, edi
jae 0x4848db
push 0
push ecx
push eax
call fcn.0048d5da
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x18]
add esp, 0xc
mov dword [esi + 0x18], eax
sub eax, ecx
ret
push 1
push edi
push eax
call fcn.0048d5da
add dword [esi + 0x18], edi
add esp, 0xc
mov eax, edi
ret
Function at 0x484a50
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
xor edx, edx
mov ecx, edx
shl ecx, 0x18
cmp ecx, 0x80000000
sbb eax, eax
and eax, 0xfb3ee249
add ecx, ecx
add eax, 0x4c11db7
xor eax, ecx
cmp eax, 0x80000000
sbb ecx, ecx
and ecx, 0xfb3ee249
add ecx, 0x4c11db7
add eax, eax
xor ecx, eax
cmp ecx, 0x80000000
sbb eax, eax
and eax, 0xfb3ee249
add ecx, ecx
add eax, 0x4c11db7
xor eax, ecx
cmp eax, 0x80000000
sbb ecx, ecx
and ecx, 0xfb3ee249
add ecx, 0x4c11db7
add eax, eax
xor ecx, eax
cmp ecx, 0x80000000
sbb eax, eax
and eax, 0xfb3ee249
add ecx, ecx
add eax, 0x4c11db7
xor eax, ecx
cmp eax, 0x80000000
sbb ecx, ecx
and ecx, 0xfb3ee249
add ecx, 0x4c11db7
add eax, eax
xor ecx, eax
cmp ecx, 0x80000000
sbb eax, eax
and eax, 0xfb3ee249
add ecx, ecx
add eax, 0x4c11db7
xor eax, ecx
cmp eax, 0x80000000
sbb ecx, ecx
and ecx, 0xfb3ee249
add ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov dword [edx*4 + 0x4da538], ecx
inc edx
cmp edx, 0x100
jl 0x484a52
ret
Function at 0x4854d0
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, eax
call fcn.00484b80
sar edi, 3
dec eax
xor esi, esi
test edi, edi
jle 0x48555e
mov ecx, 0x23
sub ecx, eax
push ebp
jmp 0x4854f0
mov edx, esi
shr edx, 1
lea eax, [esi + esi]
xor edx, eax
and edx, 0x55555555
lea eax, [esi + esi]
xor edx, eax
mov eax, edx
shr eax, 2
lea ebp, [edx*4]
xor eax, ebp
and eax, 0x33333333
add edx, edx
add edx, edx
xor eax, edx
mov edx, eax
mov ebp, eax
shl eax, 4
shr edx, 4
shl ebp, 4
xor edx, ebp
and edx, 0xf0f0f0f
xor edx, eax
mov eax, edx
shr eax, 8
mov ebp, edx
shl ebp, 8
xor eax, ebp
and eax, 0xff00ff
shl edx, 8
xor eax, edx
rol eax, 0x10
shr eax, cl
inc esi
add eax, eax
add eax, eax
mov word [ebx + esi*2 - 2], ax
cmp esi, edi
jl 0x4854f0
pop ebp
pop edi
pop esi
ret

Function at 0x485820
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esi + 0x30]
test eax, eax
je 0x485843
lea edx, [eax + edi]
cmp edx, dword [esi + 0x38]
ja 0x48588c
push edi
push eax
push ecx
call fcn.004915e0
add esp, 0xc
add dword [esi + 0x30], edi
mov eax, 1
ret
mov eax, dword [esi + 0x20]
test eax, eax
je 0x485877
mov edx, dword [esi + 0x28]
push edx
push ecx
push edi
call eax
add esp, 0xc
cmp eax, 1
jge 0x48586a
test edi, edi
jle 0x48586a
mov dword [esi + 0x80], 1
jmp 0x48586d
add dword [esi + 0x2c], eax
cmp eax, edi
jl 0x48588c
mov eax, 1
ret
mov eax, dword [esi + 0x14]
push eax
push 1
push edi
push ecx
call fcn.0048d33a
add esp, 0x10
cmp eax, 1
je 0x48583d
mov dword [esi + 0x80], 1
xor eax, eax
ret
Function at 0x48c97b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4d1698]
jne 0x48c985
repz ret
jmp fcn.00492f81

Function at 0x4a0780
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4d1698]
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.00497991
and dword [ebp - 0x14], 0
cmp dword [0x4d7034], 0
mov dword [ebp - 0x18], eax
jne 0x4a0833
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4a08db
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4a08db
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4d7034], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4d7038], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4d703c], eax
call edi
push eax
call esi
mov dword [0x4d7044], eax
test eax, eax
je 0x4a0833
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4d7040], eax
mov eax, dword [0x4d7040]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4a088c
cmp dword [0x4d7044], ecx
je 0x4a088c
push eax
call esi
push dword [0x4d7044]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4a088c
test ebx, ebx
je 0x4a088c
call edi
test eax, eax
je 0x4a0883
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4a0883
test byte [ebp - 8], 1
jne 0x4a088c
or dword [ebp + 0x10], 0x200000
jmp 0x4a08bf
mov eax, dword [0x4d7038]
cmp eax, dword [ebp - 0x18]
je 0x4a08bf
push eax
call esi
test eax, eax
je 0x4a08bf
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4a08bf
mov eax, dword [0x4d703c]
cmp eax, dword [ebp - 0x18]
je 0x4a08bf
push eax
call esi
test eax, eax
je 0x4a08bf
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4d7034]
call esi
test eax, eax
je 0x4a08db
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4a08dd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048c97b
leave
ret
Function at 0x10f46058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x10f461a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x10f4607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10f4606a
add dl, dl
jne 0x10f46089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10f460dc
xor eax, eax
add dl, dl
jne 0x10f46096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10f4617d
add dl, dl
jne 0x10f460a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10f460b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10f460bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10f460c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10f460d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10f46075
mov eax, 1
add dl, dl
jne 0x10f460ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10f460f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10f460e1
sub eax, ebx
mov ebx, 1
jne 0x10f46128
mov ecx, 1
add dl, dl
jne 0x10f4610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10f46119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10f46105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10f46075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10f4613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10f4614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10f46136
cmp eax, 0x7d00
jae 0x10f4616d
cmp eax, 0x500
jb 0x10f46168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10f46075
cmp eax, 0x7f
ja 0x10f46170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10f46075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x10f4619e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10f46075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40d8ee
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4
Function at 0x41c500
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x427850], 0
jne 0x41c581
cmp dword [0x427870], 0
jne 0x41c530
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x427870], eax
test eax, eax
jne 0x41c530
push str.GetEnvironmentStrings_failed
call fcn.0041bd1c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x427870]
jmp 0x41c544
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c53c
lea edi, [ebp + 1]
push edi
call fcn.004161a8
pop ecx
mov ebx, eax
mov dword [0x427854], ebx
test ebx, ebx
jne 0x41c56e
xor eax, eax
jmp 0x41c644
push edi
mov edx, dword [0x427870]
push edx
push ebx
call fcn.00416754
add esp, 0xc
jmp 0x41c5a1
xor esi, esi
mov ebx, dword [0x427850]
jmp 0x41c59b
push eax
call fcn.004168a4
pop ecx
test eax, eax
jne 0x41c597
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c58b
lea ebx, [esi + 4]
push 4
mov dword [0x427858], ebx
inc ebx
push ebx
call fcn.00415c80
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x41c5c4
xor eax, eax
jmp 0x41c644
cmp dword [0x427850], 0
jne 0x41c5f5
xor esi, esi
mov ebx, dword [0x427854]
mov eax, dword [esp]
mov ebp, eax
jmp 0x41c5e6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c5dc
jmp 0x41c626
xor esi, esi
mov ebx, dword [0x427850]
mov eax, dword [esp]
mov edi, eax
jmp 0x41c620
push eax
call fcn.004168a4
pop ecx
test eax, eax
je 0x41c615
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x41c619
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c604
mov eax, dword [0x427850]
test eax, eax
je 0x41c636
push eax
call fcn.004161b8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x427850], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
mov ecx, 0x73f35be7
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f314
nop
nop
mov ecx, 0x69fd5e3f
nop
nop
nop
nop
test eax, eax
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4019ce
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10218
call fcn.00417420
mov eax, dword [0x42e298]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push ebx
push eax
mov esi, ecx
lea eax, [ebp - 0x108]
push eax
push dword [esi]
mov edi, dword [esi + 8]
call fcn.004092b4
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004083f0
lea eax, [ebp - 0x108]
push str.Include
push eax
call fcn.004083f0
add esp, 0x24
lea eax, [ebp - 0x108]
mov ecx, esi
push eax
call fcn.00401aee
lea eax, [ebp - 0x10218]
push eax
push 0x20019
push ebx
push str.SOFTWAREAutoIt_v3AutoIt
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401ad2
lea eax, [ebp - 0x10214]
mov dword [ebp - 0x10214], 0xffff
push eax
lea eax, [ebp - 0x10210]
push eax
push ebx
push ebx
push str.Include
push dword [ebp - 0x10218]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401ac6
mov eax, dword [ebp - 0x10214]
cmp eax, 0x10001
jae 0x401ae8
mov byte [ebp + eax - 0x10210], bl
lea eax, [ebp - 0x10210]
push 0x420aa8
push eax
jmp 0x401abb
push eax
mov ecx, esi
call fcn.00401aee
push 0x420aa8
push ebx
call fcn.00408fd4
pop ecx
pop ecx
test eax, eax
jne 0x401aad
push dword [ebp - 0x10218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 8]
mov ecx, dword [ebp - 4]
sub eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004081bf
mov esp, ebp
pop ebp
ret
call fcn.004091d8
int3
Function at 0x4045d4
Capabilities:
Terminate process

Disassembly:
push ecx
push 0x420c88
call fcn.004082f5
add eax, 0x40
push eax
call fcn.00408686
add esp, 0xc
push 2
call fcn.0040ac47
int3
Function at 0x4166d4
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42e298]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040e49c
mov dword [ebp - 0x14], eax
cmp dword [0x43020c], esi
jne 0x4167c7
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x416754
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4168a7
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4168a7
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4168a7
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43020c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x430210], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x430214], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43021c], eax
test eax, eax
je 0x4167c4
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x430218], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4167ec
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4167df
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x416801
push 4
pop eax
jmp 0x4168a9
cmp dword [ebp - 0x14], esi
je 0x416801
push dword [0x43020c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4167e6
mov eax, dword [0x430218]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41685f
cmp dword [0x43021c], edi
je 0x41685f
push eax
call ebx
push dword [0x43021c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41685f
test eax, eax
je 0x41685f
call ecx
test eax, eax
je 0x416854
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x416854
test byte [ebp - 8], 1
jne 0x41685f
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41688f
mov eax, dword [0x430210]
cmp eax, edi
je 0x41688c
push eax
call ebx
test eax, eax
je 0x41688c
call eax
mov esi, eax
test esi, esi
je 0x41688c
mov eax, dword [0x430214]
cmp eax, edi
je 0x41688c
push eax
call ebx
test eax, eax
je 0x41688c
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43020c]
call ebx
test eax, eax
je 0x4168a7
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4168a9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004081bf
mov esp, ebp
pop ebp
ret
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x60fe1bd7
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x1fe25154
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401270
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
movzx edx, word [eax + 0x14]
lea eax, [ecx + edx + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x4012a6
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
add edx, 0x28
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
movzx edx, word [ecx + 6]
cmp dword [ebp - 8], edx
jge 0x40131e
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x3c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
push eax
call fcn.00401010
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp - 4]
add edx, dword [eax + 0x10]
cmp dword [ebp + 0xc], edx
jb 0x4012e6
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
cmp edx, dword [ebp - 0xc]
jbe 0x4012ed
mov eax, 0xc1
jmp 0x401320
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 0xc]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0045d360
add esp, 0xc
jmp 0x401294
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc