joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402da0
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
sub esp, 0x40
push ebx
push esi
push edi
test ecx, ecx
jle 0x402dc8
mov eax, dword [ebp + 0x10]
lea edx, [ebp + 0x18]
dec ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0xc], eax
jmp 0x402dd6
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
test ecx, ecx
jle 0x402def
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x14], eax
jmp 0x402dfd
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test ecx, ecx
jle 0x402e16
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x1c], eax
jmp 0x402e24
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
test ecx, ecx
jle 0x402e3d
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x24], eax
jmp 0x402e4b
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov eax, edx
mov dword [ebp - 0x30], 0
cdq
mov dword [ebp - 0x40], eax
mov eax, ecx
mov dword [ebp - 0x3c], edx
cdq
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov word [ebp - 8], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 4], esp
and esp, 0xfffffff0
push 0x33
call 0x402e92
add dword [esp], 5
retf

Function at 0x4030b0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x7f2ee8]
sub esp, 0x11c
test eax, eax
jne 0x4031ae
push ebx
push esi
push edi
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], ax
lea eax, [esp + 0x30]
push eax
call fcn.00402f20
add esp, 0xc
xor edi, edi
xor eax, eax
lea ebx, [ebx]
mov byte [esp + eax + 0x28], al
inc eax
cmp eax, 0x100
jb 0x403100
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x28]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x41b100]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x28]
mov byte [esp + esi + 0x28], al
inc esi
mov byte [esp + edi + 0x28], dl
cmp esi, 0x100
jb 0x403110
xor edi, edi
xor ebx, ebx
xor esi, esi
lea eax, [edi + 1]
movzx edi, al
mov cl, byte [esp + edi + 0x28]
movzx edx, cl
lea eax, [edx + ebx]
movzx ebx, al
movzx eax, byte [esp + ebx + 0x28]
mov byte [esp + edi + 0x28], al
mov byte [esp + ebx + 0x28], cl
movzx eax, byte [esp + edi + 0x28]
add eax, edx
movzx eax, al
movzx eax, byte [esp + eax + 0x28]
xor al, byte [esi + 0x41b104]
mov byte [esp + esi + 0xc], al
inc esi
cmp esi, 0x1a
jb 0x403145
xor edx, edx
lea ecx, [esp + 0xc]
call fcn.00403820
pop edi
pop esi
pop ebx
test eax, eax
je 0x4031a9
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4031a9
mov dword [0x7f2ee8], eax
add esp, 0x11c
ret
mov eax, dword [0x7f2ee8]
add esp, 0x11c
ret
Function at 0x403560
Capabilities:
Check os version

Disassembly:
mov ecx, 1
mov edx, 0x7f2548
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x403689
cmp dword fs:[0xc0], eax
je 0x40358b
mov dword [0x7f2544], 1
mov eax, dword fs:[0x18]
push ebx
push esi
mov ebx, 1
mov esi, dword [eax + 0x30]
mov eax, dword [esi + 0xa4]
mov dword [0x7f242c], eax
mov eax, dword [esi + 0xa8]
mov dword [0x7f2430], eax
movzx edx, word [esi + 0xac]
mov dword [0x7f2434], edx
mov eax, dword [esi + 0xb0]
mov dword [0x7f2438], eax
mov eax, dword [esi + 0x1f4]
test eax, eax
je 0x4035eb
push 0x7f
push eax
push 0x7f243c
call fcn.00401710
mov edx, dword [0x7f2434]
add esp, 0xc
jmp 0x4035f3
xor eax, eax
mov word [0x7f243c], ax
movzx eax, byte [esi + 0xaf]
mov ecx, 0xff
mov word [0x7f253c], ax
movzx eax, word [esi + 0xae]
and ax, cx
mov word [0x7f253e], ax
movzx eax, word [0x7ffe02d0]
mov word [0x7f2540], ax
mov ecx, eax
mov byte [0x7f2542], 0
cmp byte [0x7ffe0268], 0
je 0x40363a
mov ebx, dword [0x7ffe0264]
pop esi
mov byte [0x7f2542], bl
cmp ebx, 1
pop ebx
jne 0x403654
and ecx, 0xffef
mov word [0x7f2540], cx
test edx, edx
jne 0x403689
call fcn.00403560
cmp dword [0x7f242c], 6
ja 0x403689
jb 0x403671
cmp dword [0x7f2430], 4
jae 0x403689
call fcn.00403560
cmp dword [0x7f242c], 0xa
jae 0x403689
mov dword [0x7f2434], 1
ret

Function at 0x403820
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0x808
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edx
xor ebp, ebp
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x40387b
mov edi, ecx
lea edx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x403840
sub edi, edx
sar edi, 1
cmp edi, 0x200
jb 0x40385c
mov edi, 0x1ff
push edi
push ecx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.00401710
add esp, 0xc
xor eax, eax
mov word [esp + ebp + 0x418], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x40389d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x40390f
mov esi, dword [ebx]
cmp esi, ebx
je 0x40390f
test esi, esi
je 0x40390f
cmp word [esi + 0x24], 2
jbe 0x403909
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x403909
cmp dword [esi + 0x18], 0
je 0x403909
test ebp, ebp
je 0x4038c5
cmp ebp, eax
jne 0x403909
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.00401710
mov edx, dword [esp + 0x1c]
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
test edx, edx
je 0x4038ea
cmp edx, dword [esi + 0x18]
jne 0x403909
cmp dword [esp + 0x14], eax
je 0x40391c
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.00402f90
add esp, 8
test eax, eax
je 0x40391c
mov esi, dword [esi]
cmp esi, ebx
jne 0x4038a3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x808
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret
Function at 0x41abe2
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret
Function at 0x403042
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4590c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, edx
push edi
mov edi, dword [ebp + 0xc]
mov esi, ebx
imul esi, dword [ebp + 8]
cmp byte [edi], 0
mov eax, ecx
mov dword [ebp - 8], eax
je 0x403087
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403082
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x4030ae
mov edx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x14]
jbe 0x403097
mov esi, dword [edi + 0x14]
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp - 8]
call fcn.00432b20
add esp, 0xc
add dword [edi + 0x18], esi
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor edx, edx
div ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.00432b05
leave
ret

Function at 0x404145
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4590c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
test esi, esi
je 0x4041f7
movzx eax, word [esi]
test ax, ax
je 0x4041f7
push edi
mov edi, esi
mov ecx, esi
cmp ax, 0x2f
je 0x404183
cmp ax, 0x5c
jne 0x404185
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x404177
cmp edi, esi
je 0x4041ca
sub edi, esi
sar edi, 1
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004339a8
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x404205
xor eax, eax
lea edx, [ebp - 0x20c]
mov ecx, ebx
mov word [ebp + edi - 0x20c], ax
call fcn.00404145
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00433672
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00433643
add esp, 0x10
lea eax, [ebp - 0x414]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00432b05
leave
ret
call fcn.004338ce
int3
Function at 0x404b7d
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
movzx eax, byte [edx + 1]
movzx ebx, byte [edx + 4]
movzx esi, byte [edx]
shl esi, 8
or esi, eax
movzx eax, byte [edx + 2]
shl esi, 8
or esi, eax
movzx eax, byte [edx + 3]
shl esi, 8
or esi, eax
movzx eax, byte [edx + 5]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 6]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 7]
shl ebx, 8
or ebx, eax
mov eax, esi
shr eax, 4
xor eax, ebx
and eax, 0xf0f0f0f
xor ebx, eax
shl eax, 4
xor esi, eax
mov eax, esi
shr eax, 0x10
xor eax, ebx
and eax, 0xffff
xor ebx, eax
shl eax, 0x10
xor esi, eax
mov eax, ebx
shr eax, 2
xor eax, esi
and eax, 0x33333333
xor esi, eax
shl eax, 2
xor ebx, eax
mov eax, ebx
shr eax, 8
xor eax, esi
and eax, 0xff00ff
xor esi, eax
shl eax, 8
xor ebx, eax
mov eax, esi
shr eax, 1
xor eax, ebx
and eax, 0x55555555
xor ebx, eax
add eax, eax
xor esi, eax
rol esi, 1
mov dword [ebp - 4], 0x10
rol ebx, 1
mov edx, dword [edi]
xor edx, ebx
mov ecx, edx
shr ecx, 0x18
and ecx, 0x3f
mov eax, edx
mov ecx, dword [ecx*4 + 0x44d6b0]
shr eax, 0x10
and eax, 0x3f
lea edi, [edi + 8]
xor ecx, dword [eax*4 + 0x44d4b0]
mov eax, edx
shr eax, 8
and eax, 0x3f
and edx, 0x3f
xor ecx, dword [eax*4 + 0x44d2b0]
xor ecx, dword [edx*4 + 0x44d0b0]
mov edx, ebx
ror edx, 4
xor edx, dword [edi - 4]
xor esi, ecx
mov ecx, edx
shr ecx, 0x18
and ecx, 0x3f
mov eax, edx
mov ecx, dword [ecx*4 + 0x44d7b0]
shr eax, 0x10
and eax, 0x3f
xor ecx, dword [eax*4 + 0x44d5b0]
mov eax, edx
shr eax, 8
and eax, 0x3f
and edx, 0x3f
xor ecx, dword [eax*4 + 0x44d3b0]
xor ecx, dword [edx*4 + 0x44d1b0]
mov edx, ebx
xor esi, ecx
dec dword [ebp - 4]
mov ebx, esi
mov esi, edx
jne 0x404c2b
ror ebx, 1
mov eax, ebx
shr eax, 1
ror edx, 1
xor eax, edx
and eax, 0x55555555
xor edx, eax
add eax, eax
xor ebx, eax
mov eax, edx
shr eax, 8
xor eax, ebx
and eax, 0xff00ff
xor ebx, eax
shl eax, 8
xor edx, eax
mov eax, edx
shr eax, 2
xor eax, ebx
and eax, 0x33333333
xor ebx, eax
shl eax, 2
xor edx, eax
mov ecx, dword [ebp + 8]
mov eax, ebx
shr eax, 0x10
xor eax, edx
and eax, 0xffff
xor edx, eax
shl eax, 0x10
xor ebx, eax
mov eax, ebx
shr eax, 4
xor eax, edx
and eax, 0xf0f0f0f
xor edx, eax
shl eax, 4
xor ebx, eax
mov eax, ebx
shr eax, 0x18
mov byte [ecx], al
mov eax, ebx
shr eax, 0x10
mov byte [ecx + 1], al
mov eax, ebx
shr eax, 8
mov byte [ecx + 2], al
mov eax, edx
shr eax, 0x18
mov byte [ecx + 4], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 5], al
pop edi
mov eax, edx
shr eax, 8
pop esi
mov byte [ecx + 3], bl
mov byte [ecx + 6], al
mov byte [ecx + 7], dl
pop ebx
leave
ret
Function at 0x404d59
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
movzx eax, byte [edx + 1]
movzx ebx, byte [edx + 4]
movzx esi, byte [edx]
shl esi, 8
or esi, eax
movzx eax, byte [edx + 2]
shl esi, 8
or esi, eax
movzx eax, byte [edx + 3]
shl esi, 8
or esi, eax
movzx eax, byte [edx + 5]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 6]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 7]
shl ebx, 8
or ebx, eax
mov eax, esi
shr eax, 4
xor eax, ebx
and eax, 0xf0f0f0f
xor ebx, eax
shl eax, 4
xor esi, eax
mov eax, esi
shr eax, 0x10
xor eax, ebx
and eax, 0xffff
xor ebx, eax
shl eax, 0x10
xor esi, eax
mov eax, ebx
shr eax, 2
xor eax, esi
and eax, 0x33333333
xor esi, eax
shl eax, 2
xor ebx, eax
mov eax, ebx
shr eax, 8
xor eax, esi
and eax, 0xff00ff
xor esi, eax
shl eax, 8
xor ebx, eax
mov eax, esi
shr eax, 1
xor eax, ebx
and eax, 0x55555555
xor ebx, eax
add eax, eax
xor esi, eax
rol esi, 1
lea edi, [ecx + 0x78]
mov dword [ebp - 4], 0x10
rol ebx, 1
mov edx, dword [edi]
xor edx, ebx
mov ecx, edx
shr ecx, 0x18
and ecx, 0x3f
mov eax, edx
mov ecx, dword [ecx*4 + 0x44d6b0]
shr eax, 0x10
and eax, 0x3f
lea edi, [edi - 8]
xor ecx, dword [eax*4 + 0x44d4b0]
mov eax, edx
shr eax, 8
and eax, 0x3f
and edx, 0x3f
xor ecx, dword [eax*4 + 0x44d2b0]
xor ecx, dword [edx*4 + 0x44d0b0]
mov edx, ebx
ror edx, 4
xor edx, dword [edi + 0xc]
xor esi, ecx
mov ecx, edx
shr ecx, 0x18
and ecx, 0x3f
mov eax, edx
mov ecx, dword [ecx*4 + 0x44d7b0]
shr eax, 0x10
and eax, 0x3f
xor ecx, dword [eax*4 + 0x44d5b0]
mov eax, edx
shr eax, 8
and eax, 0x3f
and edx, 0x3f
xor ecx, dword [eax*4 + 0x44d3b0]
xor ecx, dword [edx*4 + 0x44d1b0]
mov edx, ebx
xor esi, ecx
dec dword [ebp - 4]
mov ebx, esi
mov esi, edx
jne 0x404e08
ror ebx, 1
mov eax, ebx
shr eax, 1
ror edx, 1
xor eax, edx
and eax, 0x55555555
xor edx, eax
add eax, eax
xor ebx, eax
mov eax, edx
shr eax, 8
xor eax, ebx
and eax, 0xff00ff
xor ebx, eax
shl eax, 8
xor edx, eax
mov eax, edx
shr eax, 2
xor eax, ebx
and eax, 0x33333333
xor ebx, eax
shl eax, 2
xor edx, eax
mov ecx, dword [ebp + 8]
mov eax, ebx
shr eax, 0x10
xor eax, edx
and eax, 0xffff
xor edx, eax
shl eax, 0x10
xor ebx, eax
mov eax, ebx
shr eax, 4
xor eax, edx
and eax, 0xf0f0f0f
xor edx, eax
shl eax, 4
xor ebx, eax
mov eax, ebx
shr eax, 0x18
mov byte [ecx], al
mov eax, ebx
shr eax, 0x10
mov byte [ecx + 1], al
mov eax, ebx
shr eax, 8
mov byte [ecx + 2], al
mov eax, edx
shr eax, 0x18
mov byte [ecx + 4], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 5], al
pop edi
mov eax, edx
shr eax, 8
pop esi
mov byte [ecx + 3], bl
mov byte [ecx + 6], al
mov byte [ecx + 7], dl
pop ebx
leave
ret
Function at 0x404f36
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov ebx, edx
test esi, esi
je 0x404fd6
test ebx, ebx
je 0x404fd6
push edi
push 0x20
xor edi, edi
push edi
push esi
call fcn.00433270
push 0x20
push ebx
push esi
call fcn.00432b20
add esp, 0x18
mov dword [esi + 0x20], 0xb7e15163
push 0x2b
lea ecx, [esi + 0x24]
pop edx
mov eax, dword [ecx - 4]
sub eax, 0x61c88647
mov dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x404f76
mov ecx, edi
mov edx, edi
mov ebx, edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0x84
mov eax, dword [esi + edi*4 + 0x20]
add eax, ecx
add ebx, eax
rol ebx, 3
mov dword [esi + edi*4 + 0x20], ebx
mov eax, dword [esi + edx*4]
add eax, dword [ebp - 4]
add ecx, ebx
add eax, ebx
and ecx, 0x1f
rol eax, cl
inc edi
cmp edi, 0x2c
mov ecx, eax
mov dword [ebp - 4], eax
sbb eax, eax
and edi, eax
mov dword [esi + edx*4], ecx
inc edx
cmp edx, 8
sbb eax, eax
and edx, eax
dec dword [ebp - 8]
jne 0x404f96
xor eax, eax
pop edi
jmp 0x404fd9
or eax, 0xffffffff
pop esi
pop ebx
leave
ret
Function at 0x404fdd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x18], esi
movzx eax, byte [edx + 6]
movzx ecx, byte [edx + 7]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xe]
movzx ebx, byte [edx + 0xb]
mov dword [ebp - 0x10], ecx
movzx ecx, byte [edx + 0xf]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xc]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xa]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 9]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 8]
mov dword [ebp - 4], ecx
movzx ecx, byte [edx + 3]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 2]
sub ebx, dword [esi + 0xcc]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
sub ecx, dword [esi + 0xc8]
lea eax, [esi + 0xc0]
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0x14
mov dword [ebp - 8], eax
mov esi, dword [ebp - 4]
mov edx, ebx
mov ebx, edi
mov edi, ecx
mov ecx, dword [ebp - 8]
lea eax, [edi*2 + 1]
sub ebx, dword [ecx + 4]
imul eax, edi
mov dword [ebp - 4], edx
rol eax, 5
lea edx, [edx*2 + 1]
imul edx, dword [ebp - 4]
mov ecx, eax
and ecx, 0x1f
rol edx, 5
ror ebx, cl
mov ecx, dword [ebp - 8]
sub dword [ebp - 8], 8
sub esi, dword [ecx]
xor ebx, edx
and edx, 0x1f
mov ecx, edx
ror esi, cl
mov ecx, esi
xor ecx, eax
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x40508b
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
sub eax, dword [ecx + 0x24]
sub edi, dword [ecx + 0x20]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov eax, edx
shr eax, 8
mov byte [ecx + 1], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 2], al
mov byte [ecx], dl
shr edx, 0x18
mov byte [ecx + 3], dl
mov edx, edi
mov eax, edx
shr eax, 8
mov byte [ecx + 5], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 6], al
mov eax, ebx
shr eax, 8
mov byte [ecx + 9], al
mov byte [ecx + 4], dl
shr edx, 0x18
mov eax, ebx
shr eax, 0x10
mov byte [ecx + 7], dl
mov edx, dword [ebp - 4]
mov byte [ecx + 0xa], al
mov eax, edx
shr eax, 8
mov byte [ecx + 0xd], al
mov eax, edx
mov dword [ebp - 0x10], edi
mov byte [ecx + 8], bl
shr ebx, 0x18
pop edi
shr eax, 0x10
mov byte [ecx + 0xc], dl
shr edx, 0x18
pop esi
mov byte [ecx + 0xb], bl
mov byte [ecx + 0xe], al
mov byte [ecx + 0xf], dl
pop ebx
leave
ret
Function at 0x407ef5
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 8]
and edi, 7
je 0x407f17
cmp dword [esi + 8], edi
jge 0x407f0f
call fcn.004078b2
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x407f3d
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
mov byte [ebp + ecx - 4], al
shr edi, 8
sub edx, 8
inc ecx
mov dword [esi + 0xc], edi
test edx, edx
jg 0x407f23
mov dword [esi + 8], edx
jmp 0x407f53
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x407f48
xor edx, edx
jmp 0x407f4e
movzx edx, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx - 4], dl
inc ecx
cmp ecx, 4
jl 0x407f3d
mov eax, dword [ebp - 4]
movzx ecx, byte [ebp - 1]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
movzx eax, byte [ebp - 2]
shl ecx, 8
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x407f82
xor eax, eax
jmp 0x407fb8
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
ja 0x407f7e
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x407fa2
mov edx, edi
mov ecx, esi
call fcn.004078e2
test eax, eax
je 0x407f7e
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.00432b20
add dword [esi], edi
add dword [esi + 0x10], edi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret
Function at 0x41404a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esi + 0x10], eax
mov dword [eax + 0x5b8], ebx
push edi
mov dword [ebp - 4], esi
cmp dword [esi + 4], ebx
jne 0x4140cb
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x30]
push eax
lea ecx, [ebp - 0x14]
call fcn.0042e63a
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ecx
push ebx
movsd dword es:[edi], dword [esi]
push 0x40000000
push ecx
push dword [eax]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 4]
mov ecx, esi
call fcn.0040d4bf
mov ecx, dword [esi + 0x10]
push dword [ecx + 0x4a8]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0041f653
push 1
push dword [eax]
push 0x30
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x10]
lea edx, [ebp - 0x98]
mov eax, dword [ecx]
push edx
call dword [eax + 0x28]
mov eax, dword [eax]
lea ecx, [ebp - 0x98]
cmp word [eax], bx
sete bl
call fcn.0042e8b9
mov edi, 0x5a8
test bl, bl
je 0x414102
mov eax, dword [esi + 0x10]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esi + 0x10]
add eax, edi
push eax
push 0
push 0x1002
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
mov byte [esi + 0x18], 1
pop esi
pop ebx
leave
ret 4

Function at 0x4146b3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [ebp + 8]
push ebx
mov edx, eax
push esi
shr edx, 0x10
push edi
mov esi, ecx
test dx, dx
je 0x4146f0
cmp word [eax], 0x3c
jne 0x4146e7
push eax
call fcn.0041fe73
test al, al
jne 0x414780
xor eax, eax
jmp 0x414790
push ecx
push eax
call fcn.0041ff4f
jmp 0x4146d8
mov ecx, dword [0x45bfac]
mov ebx, dword [ebp + 0xc]
push ebx
test ecx, ecx
cmove ecx, dword [0x45bfb0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4146e0
mov eax, dword [0x45bfac]
test eax, eax
cmove eax, dword [0x45bfb0]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x414738
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x4146e0
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x140], eax
mov eax, dword [0x45bfac]
push ecx
test eax, eax
cmove eax, dword [0x45bfb0]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov ecx, esi
call fcn.0041febe
test al, al
je 0x4146e0
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [esi + 0x144], ebx
push dword [ebp + 0x18]
mov ecx, esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00414799
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4164d2
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4590c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x10], 0
je 0x416539
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.0043a5c0
mov ebx, esp
test ebx, ebx
je 0x416539
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1b8
call fcn.0042e9f1
mov ecx, dword [esi + 0x10]
push ecx
mov eax, dword [ecx]
push 0
push 0
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0041f0db
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00432b05
leave
ret