joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c51c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43c571
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43c571
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43c571
mov edx, 2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
call sub.vcl60.bpl__Controls_TControl_SetLeft_qqri
mov dl, 5
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x2f8]
call sub.vcl60.bpl__Controls_TControl_SetAlign_qqr15Controls_TAlign
jmp 0x43c579
mov eax, dword [ebp - 4]
call sub.vcl60.bpl__Forms_TCustomForm_Close_qqrv
pop ecx
pop ecx
pop ebp
ret

Function at 0x43cc08
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
mov dl, byte [ebp + 0xc]
mov byte [ebp - 4], dl
test dl, dl
jle 0x43cc23
mov eax, dword [ebp + 8]
call fcn.00499fdc
mov dword [ebp + 8], eax
mov eax, 0x4c7040
call fcn.00497a7c
mov dword [ebp - 8], 2
lea edx, [ebp + 0x14]
lea eax, [ebp + 0x14]
call fcn.00497c08
inc dword [ebp - 8]
mov word [ebp - 0x14], 8
lea edx, [ebp + 0x10]
lea eax, [ebp + 0x10]
call fcn.00497c08
inc dword [ebp - 8]
mov word [ebp - 0x14], 0x14
mov cl, 1
xor edx, edx
mov eax, dword [ebp + 8]
call sub.rtl60.bpl__Classes_TThread__bctr_qqro
add dword [ebp - 8], 2
mov eax, dword [ebp + 8]
add eax, 0x30
call fcn.00402a14
inc dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, 0x34
call fcn.00402a14
inc dword [ebp - 8]
lea edx, [ebp + 0x10]
mov eax, dword [ebp + 8]
add eax, 0x30
call fcn.00497e50
lea edx, [ebp + 0x14]
mov eax, dword [ebp + 8]
add eax, 0x34
call fcn.00497e50
mov dl, 2
mov eax, dword [ebp + 8]
call sub.rtl60.bpl__Classes_TThread_SetPriority_qqr23Classes_TThreadPriority
mov edx, dword [ebp + 8]
mov byte [edx + 0xf], 1
dec dword [ebp - 8]
lea eax, [ebp + 0x10]
mov edx, 2
call fcn.00497e20
dec dword [ebp - 8]
lea eax, [ebp + 0x14]
mov edx, 2
call fcn.00497e20
mov ecx, dword [ebp - 0x24]
mov dword fs:[0], ecx
mov eax, dword [ebp + 8]
cmp byte [ebp + 0xc], 0
je 0x43cced
call fcn.00499fe9
mov esp, ebp
pop ebp
ret
Function at 0x452654
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffddc
push esi
push edi
mov eax, 0x4cf2a8
call fcn.00497a7c
mov word [ebp - 0x14], 8
mov edx, 0x4cf304
mov ecx, dword [ebp + 8]
mov dword [ecx], edx
mov esi, 0x4cf088
lea edi, [ebp - 0x124]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
mov esi, 0x4cf188
lea edi, [ebp - 0x224]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
push 0x100
lea eax, [ebp - 0x124]
push eax
mov edx, dword [ebp + 8]
add edx, 4
push edx
call sub.CC3260MT.DLL__memcpy
add esp, 0xc
push 0x100
lea ecx, [ebp - 0x224]
push ecx
mov eax, dword [ebp + 8]
add eax, 0x104
push eax
call sub.CC3260MT.DLL__memcpy
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, 0x204
push edx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0045298c
add esp, 0xc
mov ecx, dword [ebp - 0x24]
mov dword fs:[0], ecx
mov eax, dword [ebp + 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x45298c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
mov eax, dword [0x4cf288]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x4cf28c]
mov dword [ebp - 0x18], eax
mov ax, word [0x4cf290]
mov word [ebp - 0x14], ax
xor edx, edx
mov dword [ebp - 0xc], edx
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
lea ecx, [eax + edx]
mov eax, dword [ebp - 0x10]
mov dl, byte [ecx + eax*4]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
lea ecx, [ecx + eax*4]
mov eax, dword [ebp - 0x10]
mov byte [ecx + eax], dl
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 4
jl 0x4529b9
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 4
jl 0x4529b4
mov dword [ebp - 4], 1
xor edx, edx
mov dword [ebp - 8], edx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 8], 0
je 0x452a1b
mov eax, dword [ebp - 4]
shl eax, 4
mov edx, dword [ebp + 0x10]
lea ecx, [edx + eax]
mov eax, dword [ebp - 0xc]
lea edx, [ecx + eax*4]
mov ecx, dword [ebp - 8]
mov al, byte [edx + ecx - 1]
jmp 0x452a2f
mov edx, dword [ebp - 4]
dec edx
shl edx, 4
mov ecx, dword [ebp + 0x10]
lea eax, [ecx + edx]
mov edx, dword [ebp - 0xc]
mov al, byte [eax + edx*4 + 3]
mov edx, dword [ebp - 0xc]
mov byte [ebp + edx - 0x20], al
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 4
jl 0x4529fa
cmp dword [ebp - 8], 0
jne 0x452a97
mov cl, byte [ebp - 0x20]
mov byte [ebp - 0x21], cl
xor eax, eax
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
inc edx
and edx, 0x80000003
jns 0x452a61
dec edx
or edx, 0xfffffffc
inc edx
xor ecx, ecx
mov cl, byte [ebp + edx - 0x20]
mov eax, dword [ebp + 8]
mov dl, byte [eax + ecx + 4]
mov ecx, dword [ebp - 0xc]
mov byte [ebp + ecx - 0x20], dl
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 3
jl 0x452a50
xor eax, eax
mov al, byte [ebp - 0x21]
mov edx, dword [ebp + 8]
mov cl, byte [edx + eax + 4]
mov byte [ebp - 0x1d], cl
mov eax, dword [ebp - 4]
mov dl, byte [ebp + eax - 0x1d]
xor byte [ebp - 0x20], dl
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 4]
dec eax
shl eax, 4
mov edx, dword [ebp + 0x10]
lea ecx, [edx + eax]
mov eax, dword [ebp - 0xc]
lea edx, [ecx + eax*4]
mov ecx, dword [ebp - 8]
mov al, byte [edx + ecx]
mov edx, dword [ebp - 0xc]
xor al, byte [ebp + edx - 0x20]
mov ecx, dword [ebp - 4]
shl ecx, 4
mov edx, dword [ebp + 0x10]
lea ecx, [edx + ecx]
mov edx, dword [ebp - 0xc]
lea ecx, [ecx + edx*4]
mov edx, dword [ebp - 8]
mov byte [ecx + edx], al
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 4
jl 0x452a9c
inc dword [ebp - 8]
cmp dword [ebp - 8], 4
jl 0x4529f5
inc dword [ebp - 4]
cmp dword [ebp - 4], 0xa
jle 0x4529f0
mov esp, ebp
pop ebp
ret
Function at 0x452b6c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor edx, edx
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
lea edx, [ecx + eax*4]
mov ecx, dword [ebp - 8]
mov al, byte [edx + ecx]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
lea edx, [edx + ecx*4]
mov ecx, dword [ebp - 8]
xor byte [edx + ecx], al
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
jl 0x452b7c
inc dword [ebp - 8]
cmp dword [ebp - 8], 4
jl 0x452b77
pop ecx
pop ecx
pop ebp
ret
Function at 0x462844
Capabilities:
Set global application hook

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [0x4d8a68], 0
jne 0x46287b
mov eax, dword [ebp - 4]
mov dword [sym.servercontrol.exe__Csinpedt_frmCalculator], eax
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, 0x462808
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4d8a68], eax
pop ecx
pop ecx
pop ebp
ret

Function at 0x4637cc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.vcl60.bpl__Controls_TWinControl_HandleAllocated_qqrv
test al, al
je 0x463836
cmp byte [ebp - 5], 7
jne 0x46380c
push 2
lea eax, [ebp - 0xe]
push eax
push 0x100c
push 0x400
call sub.kernel32.dll_GetLocaleInfoA
xor eax, eax
mov al, byte [ebp - 0xe]
sub eax, 0x30
mov dword [ebp - 0xc], eax
jmp 0x463814
xor eax, eax
mov al, byte [ebp - 5]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xcc]
test eax, eax
je 0x463836
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xcc]
mov edx, dword [ebp - 0xc]
call fcn.00402040
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov byte [edx + 0x220], al
mov esp, ebp
pop ebp
ret
Function at 0x492adc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x492d39
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
shl eax, 8
mov edx, dword [ebp - 8]
movzx edx, byte [edx + 1]
add eax, edx
cmp eax, 0xc2e8
jge 0x492bcf
cmp eax, 0xb7a2
jge 0x492b72
cmp eax, 0xb2c1
jge 0x492b47
add eax, 0xffff4f5f
sub eax, 0x24
jb 0x492c8f
sub eax, 0x1fc
jb 0x492c98
jmp 0x492d1f
add eax, 0xffff4d3f
sub eax, 0x22d
jb 0x492ca1
sub eax, 0x1fc
jb 0x492ca7
sub eax, 0xb8
jb 0x492cad
jmp 0x492d1f
cmp eax, 0xbbf7
jge 0x492ba4
add eax, 0xffff485e
sub eax, 0x11f
jb 0x492cb3
sub eax, 0x13d
jb 0x492cb9
sub eax, 0x1f9
jb 0x492cbf
jmp 0x492d1f
add eax, 0xffff4409
sub eax, 0x3af
jb 0x492cc5
sub eax, 0x106
jb 0x492ccb
sub eax, 0x23c
jb 0x492cd1
jmp 0x492d1f
cmp eax, 0xc8f6
jge 0x492c2f
cmp eax, 0xc5be
jge 0x492c06
add eax, 0xffff3d18
sub eax, 0x1db
jb 0x492cd7
sub eax, 0xf3
jb 0x492cdd
sub eax, 8
jb 0x492ce3
jmp 0x492d1f
add eax, 0xffff3a42
sub eax, 0x11c
jb 0x492ce9
sub eax, 0x1e1
jb 0x492cef
sub eax, 0x3b
jb 0x492cf5
jmp 0x492d1f
cmp eax, 0xcef4
jge 0x492c61
add eax, 0xffff370a
sub eax, 0x304
jb 0x492cfb
sub eax, 0x1e0
jb 0x492d01
sub eax, 0x11a
jb 0x492d07
jmp 0x492d1f
add eax, 0xffff310c
sub eax, 0x295
jb 0x492d0d
add eax, 0xffffffd0
sub eax, 0x318
jb 0x492d13
sub eax, 0x329
jb 0x492d19
jmp 0x492d1f
mov byte [ebp - 9], 0x41
jmp 0x492d23
mov byte [ebp - 9], 0x42
jmp 0x492d23
mov byte [ebp - 9], 0x43
jmp 0x492d23
mov byte [ebp - 9], 0x44
jmp 0x492d23
mov byte [ebp - 9], 0x45
jmp 0x492d23
mov byte [ebp - 9], 0x46
jmp 0x492d23
mov byte [ebp - 9], 0x47
jmp 0x492d23
mov byte [ebp - 9], 0x48
jmp 0x492d23
mov byte [ebp - 9], 0x4a
jmp 0x492d23
mov byte [ebp - 9], 0x4b
jmp 0x492d23
mov byte [ebp - 9], 0x4c
jmp 0x492d23
mov byte [ebp - 9], 0x4d
jmp 0x492d23
mov byte [ebp - 9], 0x4e
jmp 0x492d23
mov byte [ebp - 9], 0x4f
jmp 0x492d23
mov byte [ebp - 9], 0x50
jmp 0x492d23
mov byte [ebp - 9], 0x51
jmp 0x492d23
mov byte [ebp - 9], 0x52
jmp 0x492d23
mov byte [ebp - 9], 0x53
jmp 0x492d23
mov byte [ebp - 9], 0x54
jmp 0x492d23
mov byte [ebp - 9], 0x57
jmp 0x492d23
mov byte [ebp - 9], 0x58
jmp 0x492d23
mov byte [ebp - 9], 0x59
jmp 0x492d23
mov byte [ebp - 9], 0x5a
jmp 0x492d23
mov byte [ebp - 9], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x492d40
lea eax, [ebp - 8]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret

Function at 0x499918
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea edx, [ebp - 0x208]
push edx
call sub.user32.dll_wvsprintfA
cmp eax, 0x208
jl 0x49995c
push 0x10e
push 0x4d76d1
push 0x4d76b6
call fcn.004989a0
add esp, 0xc
cmp eax, 2
jne 0x49995c
call sub.kernel32.dll_DebugBreak
lea ecx, [ebp - 0x208]
push ecx
call sub.kernel32.dll_OutputDebugStringA
mov esp, ebp
pop ebp
ret
Function at 0x49b8a4
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x49b8d2
mov eax, ebx
call fcn.0049c35c
cmp dword [ebx + 0x3c], 0
je 0x49b8cb
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x49b943
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x49b935
cmp dword [ebx + 8], 0
je 0x49b8f4
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x49b906
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x49b935
cmp dword [ebx + 8], 0
je 0x49b8e7
cmp eax, 3
je 0x49b919
dec eax
jne 0x49b8e7
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x49b8e7
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x49b8e7
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x49b961
cmp dword [ebx + 0x10], 0xcc
je 0x49b961
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0049b96c
pop ebx
ret
Function at 0x6276dc
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x6276f5
mov esi, edi
mov edi, eax
jmp 0x6276f7
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x627707
mov eax, ebx
jmp 0x627711
push eax
push ebx
call fcn.0060e4ac
add esp, 8
test eax, eax
jne 0x627719
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x627737
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [edi + 4]
jl 0x627720
cmp eax, dword [esi + 4]
jge 0x62774e
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [esi + 4]
jl 0x62773c
mov eax, dword [esi + 4]
test eax, eax
mov dword [ebx + 4], eax
jle 0x627771
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x62776e
sub eax, 1
test eax, eax
jg 0x62775e
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x68b7fc
Capabilities:
Decrypt data using tea
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
mov edx, dword [ecx]
mov ebx, 0x20
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 8], edx
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
push edi
mov edi, 0xc6ef3720
mov dword [ebp + 0xc], edx
mov dword [ebp - 0xc], ecx
mov edx, esi
dec ebx
shr edx, 5
add edx, ecx
mov ecx, esi
shl ecx, 4
add ecx, dword [ebp + 0xc]
xor edx, ecx
lea ecx, [edi + esi]
xor edx, ecx
sub eax, edx
mov edx, eax
mov ecx, eax
shr edx, 5
add edx, dword [ebp - 4]
shl ecx, 4
add ecx, dword [ebp - 8]
xor edx, ecx
lea ecx, [edi + eax]
xor edx, ecx
lea edi, [edi + 0x61c88647]
mov ecx, dword [ebp - 0xc]
sub esi, edx
test ebx, ebx
jg 0x68b831
mov ecx, dword [ebp + 8]
pop edi
mov dword [ecx], esi
pop esi
mov dword [ecx + 4], eax
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x68bc6c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
mov edx, dword [ecx]
mov ebx, 0x20
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 4], edx
mov edx, dword [ecx + 4]
mov dword [ebp + 0xc], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
push edi
xor edi, edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
mov edx, eax
lea edi, [edi - 0x61c88647]
shr edx, 5
mov ecx, eax
add edx, dword [ebp + 0xc]
dec ebx
shl ecx, 4
add ecx, dword [ebp - 4]
xor edx, ecx
lea ecx, [edi + eax]
xor edx, ecx
add esi, edx
mov edx, esi
mov ecx, esi
shr edx, 5
add edx, dword [ebp - 8]
shl ecx, 4
add ecx, dword [ebp - 0xc]
xor edx, ecx
lea ecx, [edi + esi]
xor edx, ecx
add eax, edx
test ebx, ebx
jg 0x68bc9e
mov ecx, dword [ebp + 8]
pop edi
mov dword [ecx], esi
pop esi
mov dword [ecx + 4], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x69545c
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10125210]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x28], esi
push edi
mov edi, dword [ebp + 0xc]
cmp ebx, 0x40
jle 0x695496
lea eax, [ebp - 0x24]
push eax
push ebx
push edi
call fcn.0069509c
add esp, 0xc
lea edi, [ebp - 0x24]
mov ebx, 0x20
push 0x40
lea eax, [esi + 0x68]
push 0x36
push eax
call fcn.006a229c
push 0x40
add esi, 0xa8
push 0x5c
push esi
call fcn.006a229c
add esp, 0x18
test ebx, ebx
jle 0x6954d4
nop
movzx eax, byte [edi]
lea edi, [edi + 1]
xor byte [esi - 0x40], al
lea esi, [esi + 1]
movzx eax, byte [edi - 1]
xor byte [esi - 1], al
sub ebx, 1
jne 0x6954bc
mov esi, dword [ebp - 0x28]
push 0
push esi
call fcn.0069551c
push 0x40
lea eax, [esi + 0x68]
push eax
push esi
call fcn.0069555c
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0069efd1
mov esp, ebp
pop ebp
ret

Function at 0x69e29c
Capabilities:
Decrypt data using tea
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
mov edx, dword [ecx]
mov ebx, 0x20
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 8], edx
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
push edi
mov edi, 0xc6ef3720
mov dword [ebp + 0xc], edx
mov dword [ebp - 0xc], ecx
mov edx, esi
dec ebx
shr edx, 5
add edx, ecx
mov ecx, esi
shl ecx, 4
add ecx, dword [ebp + 0xc]
xor edx, ecx
lea ecx, [edi + esi]
xor edx, ecx
sub eax, edx
mov edx, eax
mov ecx, eax
shr edx, 5
add edx, dword [ebp - 4]
shl ecx, 4
add ecx, dword [ebp - 8]
xor edx, ecx
lea ecx, [edi + eax]
xor edx, ecx
lea edi, [edi + 0x61c88647]
mov ecx, dword [ebp - 0xc]
sub esi, edx
test ebx, ebx
jg 0x69e2d1
mov ecx, dword [ebp + 8]
pop edi
mov dword [ecx], esi
pop esi
mov dword [ecx + 4], eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x69e46c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
mov edx, dword [ecx]
mov ebx, 0x20
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 4], edx
mov edx, dword [ecx + 4]
mov dword [ebp + 0xc], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
push edi
xor edi, edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
mov edx, eax
lea edi, [edi - 0x61c88647]
shr edx, 5
mov ecx, eax
add edx, dword [ebp + 0xc]
dec ebx
shl ecx, 4
add ecx, dword [ebp - 4]
xor edx, ecx
lea ecx, [edi + eax]
xor edx, ecx
add esi, edx
mov edx, esi
mov ecx, esi
shr edx, 5
add edx, dword [ebp - 8]
shl ecx, 4
add ecx, dword [ebp - 0xc]
xor edx, ecx
lea ecx, [edi + esi]
xor edx, ecx
add eax, edx
test ebx, ebx
jg 0x69e49e
mov ecx, dword [ebp + 8]
pop edi
mov dword [ecx], esi
pop esi
mov dword [ecx + 4], eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x6e6e6c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.006e6a53
Function at 0x6e6e77
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.006e6be2

Function at 0x6fe9dc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x6fea09
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x6fea09
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10001870
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10014e50
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x1001c048]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x1001c048]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, edx
mov eax, dword [esi + 0xc]
push str..dwg
push eax
mov edi, ecx
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x1000190a
xor ecx, ecx
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], eax
mov word [esp + 0x24], cx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x54], eax
mov eax, dword [edi + 0x10]
push eax
push edi
add esi, 0x10
push esi
call sym.AcShellExtension.DLL_bool___cdecl_acshGetColumnPropertyStringFromFile_wchar_t_const___struct__GUID_const___unsigned_long_int__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____
add esp, 0x10
test al, al
jne 0x10001911
cmp dword [esp + 0x38], 8
jb 0x1000190a
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, 1
jmp 0x10001959
cmp dword [esp + 0x38], 8
mov edi, dword [esp + 0x24]
jae 0x10001920
lea edi, [esp + 0x24]
lea esi, [esp + 0x14]
call fcn.100041f0
mov esi, ebx
lea edi, [esp + 0x14]
mov byte [esp + 0x50], 1
call fcn.10004110
mov edx, edi
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [esp + 0x38], 8
jb 0x10001957
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.100134d2
mov esp, ebp
pop ebp
ret 4
Function at 0x10004f60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x10004f70
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea esi, [esi + eax*2]
lea edi, [edi + eax*2]
cmp eax, 1
jne 0x10004f80
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x10005680
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x1001c048]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov esi, dword [ebp + 4]
mov ecx, dword [esp + 0x23c]
mov eax, dword [ebp]
lea edx, [esp + 0x20]
push edx
xor ebx, ebx
or esi, 0x2001f
push esi
push ebx
push ecx
push eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x10]
mov edi, eax
cmp edi, ebx
jne 0x10005701
xor eax, eax
cmp ecx, ebx
je 0x100056e9
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
and esi, 0x300
mov edi, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
cmp eax, ebx
je 0x10005713
cmp ecx, ebx
je 0x1000570c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x100057b0
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x28]
push eax
push ebx
push ebx
push ebx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebx
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
jne 0x1000577a
jmp 0x10005740
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x14]
call fcn.10005680
mov edi, eax
cmp edi, ebx
jne 0x100057cb
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x44]
push ecx
push ebx
push edx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
je 0x10005740
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x1000578d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x24]
push eax
mov eax, ebp
mov dword [esp + 0x18], ebx
call fcn.10005870
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x100057ae
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100134d2
add esp, 0x228
ret 4
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x100057da
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x100057b0
Function at 0x10006bb0
Capabilities:
Inspect section memory permissions

Disassembly:
popfd
jg 0x10006b7a
invalid
invalid
jb 0x10006b78
inc ebp
lea edi, [edx - 0x3a]
inc ebp
invalid

Function at 0x10009160
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x1000917d
pop edi
pop ebp
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100091b2
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x100091ae
lea ebx, [ebx]
cmp esi, eax
jae 0x100091b2
dec edi
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x100091a0
cmp esi, eax
jb 0x100091b9
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
pop ebx
ret