joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411052
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x42e070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor ecx, ecx
push esi
mov dword [ebp - 0x208], ecx
lea eax, [ebp - 0x214]
mov dword [ebp - 0x20c], 0x100
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jne 0x41112d
lea eax, [ebp - 0x208]
push eax
push 0x2001f
push esi
lea eax, [ebp - 0x204]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x411142
push dword [ebp - 0x208]
call fcn.00411052
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x411142
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x208], 0
lea eax, [ebp - 0x204]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x411142
jmp 0x411135
cmp esi, 0x80070103
je 0x411140
test esi, esi
jne 0x411142
xor ecx, ecx
jmp 0x411072
xor esi, esi
cmp dword [ebp - 0x208], 0
je 0x411157
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411786
mov esp, ebp
pop ebp
ret 4

Function at 0x41116b
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push 0x2001f
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x411195
xor esi, esi
inc esi
jmp 0x4111dc
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x4111dc
push dword [ebp - 4]
call fcn.00411052
mov esi, eax
test esi, esi
js 0x4111dc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
and dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp dword [ebp - 4], 0
je 0x4111eb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x4022f7
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402336
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402336
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402336
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402336
cmp dword [ecx + 0x74], 0xe
jbe 0x402336
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x401c66
pop dword [ebp - 0x48]
mov eax, 0x401c66
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0xf93821fe
sub dword [ebp - 0x58], 0xaae5dcb3
mov dword [ebp - 0x54], 0x6df554e
sub dword [ebp - 0x54], 0xd4ac0909
mov dword [ebp - 0x50], 0xae726c7b
sub dword [ebp - 0x50], 0x6226284d
mov dword [ebp - 0x4c], 0x283fa27d
sub dword [ebp - 0x4c], 0x283fa27d
lea eax, [ebp - 0x58]
push eax
mov eax, 0x88302c02
sub eax, 0x87effbae
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x9b3c002a
add dword [ebp - 0x58], 0xd936692c
mov dword [ebp - 0x54], 0xde0eb78d
add dword [ebp - 0x54], 0x635da9e8
mov dword [ebp - 0x50], 0x6ebf07f6
sub dword [ebp - 0x50], 0xb4f9b8a
mov dword [ebp - 0x4c], 0x7d5c22b2
add dword [ebp - 0x4c], 0x82a3dd4e
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0x86465908
add eax, 0x79f9d724
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x336d6
push 0
call eax
mov ecx, PeekMessageW
xor edi, edi
add edi, eax
mov ebx, 0xef95d680
sub ebx, 0xef556680
add ebx, dword [ebp - 0x48]
mov edx, 0x7c5771c2
mov dword [ebp - 4], 0xb71c5d05
mov esi, dword [ebx]
sub esi, edx
xor dword [ebp - 0x10], 0x65a6e2d
mov dword [edi], esi
add dword [ebp - 0x3c], 0xb5246bc7
add edi, 4
add ebx, 4
loop 0x401d79
add eax, 0xaba1f5f0
add eax, 0x545eec07
xor ebx, ebx
add ebx, eax
add eax, 0x62d36fff
sub eax, 0x62d36ffa
mov ecx, 0x400000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret

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

Disassembly:
pushal
mov eax, section..3ean
nop
nop
mov ebx, 0x40915c
mov ecx, 0x6426261
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x431024
nop
mov eax, section..7LWLf
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x7e447c50
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x431084
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 0x43106c
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x427e1e
Capabilities:
Encode data using xor

Disassembly:
das
mov dword [0x9f2fa32f], eax
das
imul ebp, dword [edi], 0x2f5e2f5e
xchg edx, eax
das
sahf
das
pushfd
das
lahf
das
sahf
das
popfd
das
xchg esp, eax
das
popfd
das
mov dword [0x5d2fa22f], eax
das
xchg esi, eax
das
mov eax, dword [0x9e2f9e2f]
das
movsd dword es:[edi], dword [esi]
das
xchg esp, eax
das
pop ebp
das
popfd
das
xchg esp, eax
das
mov dword [0x762f5e2f], eax
das
mov eax, dword [0x9e2f9e2f]
das
movsd dword es:[edi], dword [esi]
das
xchg esp, eax
das
pop esi
das
jb 0x427e96
sahf
das
pushfd
das
lahf
das
sahf
das
popfd
das
xchg esp, eax
das
popfd
das
mov dword [0x5e2fa22f], eax
das
sub dword [edi], 0x2f9e2f9e
mov dword [0x9e2f5d2f], eax
das
mov byte [0x6e2f932f], al
das
jg 0x427ebe
nop
das
xchg edx, eax
das
lcall 0x942f, 0x962f902f
das
xchg esi, eax
das
xchg esp, eax
das
insb byte es:[edi], dx
das
popfd
das
xchg esp, eax
das
mov dword [0x962f5d2f], eax
das
mov eax, dword [0x9e2f9e2f]
das
movsd dword es:[edi], dword [esi]
das
xchg esp, eax
das
pop ebp
das
jbe 0x427ee4
mov eax, dword [0x9e2f9e2f]
das
movsd dword es:[edi], dword [esi]
das
xchg esp, eax
das
pop ebp
das
sub dword [edi], 0xffffff9e
das
sahf
das
wait
das
jb 0x427efa
sahf
das
pushfd
das
lahf
das
sahf
das
popfd
das
xchg esp, eax
das
popfd
das
mov dword [0x5d2fa22f], eax
das
jbe 0x427f10
mov eax, dword [0x9e2f9e2f]
das
sahf
das
movsd dword es:[edi], dword [esi]
das
xchg esp, eax
das
jb 0x427f1c
sahf
das
pushfd
das
pushfd
das
sahf
das
popfd
das
jb 0x427f28
sahf
das
pushfd
das
lahf
das
sahf
das
popfd
das
xchg esp, eax
das
popfd
das
mov dword [0x8e2fa22f], eax
das
jae 0x427f3e
jnp 0x427f40
das
jnp 0x427f42
push ebp
das
test dword [edi], ebp
xchg esp, eax
das
mov eax, dword [0x982fa22f]
das
cwde
das
sahf
das
popfd
das
insb byte es:[edi], dx
das
pop edi
das
push ebp
das
jne 0x427f5a
nop
das
xchg edx, eax
das
mov dword [0xa12f9e2f], eax
das
test al, 0x2f
insb byte es:[edi], dx
das
jl 0x427f6a
movsb byte es:[edi], byte [esi]
das
wait
das
mov dword [0x722f982f], eax
das
das
cwde
das
jb 0x427f74
xchg esp, eax
das
wait
das
wait
das
jnp 0x427f7c
nop
das
test al, 0x2f
sahf
das
movsb byte es:[edi], byte [esi]
das
mov dword [0x2f2f2f2f], eax
das
das
das
cmpsd dword [esi], dword es:[edi]
das
das
das
add dword [eax], esi
das
das
dec edx
das
das
scasd eax, dword es:[edi]
movsb byte es:[edi], byte [esi]
mov eax, dword [0xa196699d]
sahf
sahf
movsd dword es:[edi], dword [esi]
xchg esp, eax
pop ebp
popfd
xchg esp, eax
mov dword [0x9ea17f69], eax
lahf
xchg esp, eax
mov eax, dword [0x987ba8a3]
mov byte [0x2f303ea3], al
das
xor dword [edi], ebp
das
das
cmp byte [edi], ch
das
scasd eax, dword es:[edi]
mov cs, word [esi - 0x5d5e6b7b]
cwde
sahf
popfd
cmp eax, 0x632f2f2f
das
pop ebx
das
pushal
das
pop ebx
das
pop edi
das
pop ebx
das
pop edi
das
das
das
cmp byte [edi], ch
das
scasd eax, dword es:[edi]
invalid
Function at 0x1001347b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x1001348a
pop dword [ebp - 0xc]
mov eax, 0x1001348a
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x68e8d39
sub dword [ebp - 0x1c], 0xb83c47ee
mov dword [ebp - 0x18], 0x57a3b27a
add dword [ebp - 0x18], 0xda8f99cb
mov dword [ebp - 0x14], 0x8dc0e8a9
sub dword [ebp - 0x14], 0x4174a47b
mov dword [ebp - 0x10], 0x5fb2c388
sub dword [ebp - 0x10], 0x5fb2c388
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x11f4eaa1
sub eax, 0x1f2ea9d
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x7bf14c0d
sub dword [ebp - 0x1c], 0x77ee2b7
mov dword [ebp - 0x18], 0xb080b670
add dword [ebp - 0x18], 0x90ebab05
mov dword [ebp - 0x14], 0xe772a6fd
add dword [ebp - 0x14], 0x7bfcc56f
mov dword [ebp - 0x10], 0xacc04da9
sub dword [ebp - 0x10], 0xacc04da9
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x3e847
push 0
call eax
mov ecx, 0x4ee8
xor esi, esi
add esi, eax
mov edx, 0x876194ff
add edx, 0x88a12701
add edx, dword [ebp - 0xc]
mov edi, 0xcde79405
add edi, 0x83baaafd
mov dword [ebp - 4], 0x42f520ba
mov ebx, dword [edx]
sub dword [ebp - 4], 0xf1f1f765
sub ebx, edi
xor dword [ebp - 8], 0x74c278b0
mov dword [esi], ebx
xor dword [ebp - 8], edx
add esi, 4
add edx, 0x33753510
sub edx, 0x3375350c
loop 0x1001359e
add eax, 0x4580403e
sub eax, 0x457f11cb
xor ebx, ebx
add ebx, eax
add eax, 0xcae9a75a
add eax, 0x351658ab
mov ecx, 0x4428d4a3
add ecx, 0xcbd72b5d
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x42681c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x10
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x426864
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x426864
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x426864
cmp word [eax + 2], 0
je 0x426864
cmp dword [eax + 0x28], 0xfeef04bd
jne 0x426864
add eax, 0x30
jmp 0x426869
mov eax, 0x42c7f8
pop esi
pop ebp
ret

Function at 0x41cee0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a000]
push edi
or ebp, 0xffffffff
jmp 0x41cf02
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41cf09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41cef8
mov eax, 1
add ebx, ebx
jne 0x41cf1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41cf10
jne 0x41cf2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41cf10
xor ecx, ecx
sub eax, 3
jb 0x41cf40
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41cfb2
mov ebp, eax
add ebx, ebx
jne 0x41cf4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41cf58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41cf7c
inc ecx
add ebx, ebx
jne 0x41cf68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41cf5d
jne 0x41cf79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41cf5d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41cf9c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41cf8d
jmp 0x41cefe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41cf9c
add edi, ecx
jmp 0x41cefe
pop esi
mov edi, esi
mov ecx, 0x157
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41cfba
cmp byte [edi], 0
jne 0x41cfba
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x41cfbf
lea edi, [esi + 0x1a000]
mov eax, dword [edi]
or eax, eax
je 0x41d02e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1d0b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1d100]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41cfec
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1d104]
or eax, eax
je 0x41d028
mov dword [ebx], eax
add ebx, 4
jmp 0x41d009
call dword [esi + 0x1d108]
popal
jmp 0x403ab4
Function at 0x4020a7
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x429040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.006:107_4:_00007:277_0:_004:_04:_008:_08:_08:_8:_7:2_3:_9:193_4:_
lea ecx, [ebp - 0x1c]
call fcn.004021b1
push 0xc
call fcn.004067ce
pop ecx
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.00401e79
mov eax, dword [eax + 4]
shl eax, 2
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 0x40
push 0x4ac
push 0x474c00
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor eax, eax
push eax
push eax
push eax
push 0x402057
push eax
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ecx
push ecx
call fcn.00401c94
pop ecx
pop ecx
mov edx, 0x474c00
add edx, 0x188
mov esi, section..Shine
push esi
call edx
lea ecx, [ebp - 0x1c]
call fcn.0040223e
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004067bb
leave
ret

Function at 0x4058ed
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x40590e
jl 0x405905
test edi, edi
jne 0x40590e
xor eax, eax
xor edx, edx
jmp 0x4059cf
cmp dword [ebx + 0x38], 0
je 0x405923
push eax
push edi
push dword [ebp + 8]
call fcn.004059d5
jmp 0x4059cf
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40596a
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40596a
cmp eax, edi
jb 0x405944
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.004073a0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x405970
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4059c4
mov ecx, ebx
call fcn.004051fe
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4059af
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040db73
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x4059c4
jmp 0x405982
test edx, edx
je 0x4059c4
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040db73
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x406f70
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406faf
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x406faf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406faf
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x406faf
cmp dword [ecx + 0x74], 0xe
jbe 0x406faf
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x45d9e0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x45d9fe
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x45d9f3
pop esi
ret

Function at 0x45da00
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x45da6a
push esi
lea edi, [eax + 0x400]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x45da3a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x45da86
push ecx
push esi
call fcn.0045e910
add esp, 8
mov ebx, eax
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x45daf0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x45db82
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x45db74
mov ebp, dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x45db6c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x45db35
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40c1c8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417428]
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.004079cb
mov dword [ebp - 0x14], eax
cmp dword [0x811da0], esi
jne 0x40c2bb
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c248
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c39b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c39b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c39b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x811da0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x811da4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x811da8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x811db0], eax
test eax, eax
je 0x40c2b8
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x811dac], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c2e0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c2d3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c2f5
push 4
pop eax
jmp 0x40c39d
cmp dword [ebp - 0x14], esi
je 0x40c2f5
push dword [0x811da0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c2da
mov eax, dword [0x811dac]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c353
cmp dword [0x811db0], edi
je 0x40c353
push eax
call ebx
push dword [0x811db0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c353
test eax, eax
je 0x40c353
call ecx
test eax, eax
je 0x40c348
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 0x40c348
test byte [ebp - 8], 1
jne 0x40c353
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c383
mov eax, dword [0x811da4]
cmp eax, edi
je 0x40c380
push eax
call ebx
test eax, eax
je 0x40c380
call eax
mov esi, eax
test esi, esi
je 0x40c380
mov eax, dword [0x811da8]
cmp eax, edi
je 0x40c380
push eax
call ebx
test eax, eax
je 0x40c380
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x811da0]
call ebx
test eax, eax
je 0x40c39b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c39d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403b35
mov esp, ebp
pop ebp
ret