joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10045201
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1004525c
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x1004523d
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x1004525a
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x10]
call fcn.10011e0e
mov dword [eax], 0xfffffff6
jmp 0x10045232
jmp 0x10045267
push 0x1c4e
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret

Function at 0x10045f42
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x10045fb2
mov eax, dword [ebp + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
push 0
mov eax, dword [ebp - 0x18]
push dword [eax]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx]
add ecx, dword [eax + 0xc]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
add eax, ecx
push eax
mov ecx, dword [ebp - 0x28]
call fcn.1004ab74
jmp 0x10045fd7
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax]
test eax, eax
je 0x10045fd7
push 0
push 0x11ac
push 0
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov esp, ebp
pop ebp
ret
Function at 0x1007c9a5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1008738c]
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.1006d7b4
mov dword [ebp - 0x14], eax
cmp dword [0x10cbf594], esi
jne 0x1007ca98
push 0x800
push esi
push 0x10007e6c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1007ca25
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1007cb78
push esi
push esi
push 0x10007e6c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1007cb78
push 0x10007e84
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007cb78
push eax
call ebx
push 0x10007e90
push edi
mov dword [0x10cbf594], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007ea0
push edi
mov dword [0x10cbf598], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007eb4
push edi
mov dword [0x10cbf59c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10cbf5a4], eax
test eax, eax
je 0x1007ca95
push 0x10007ed0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10cbf5a0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1007cabd
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1007cab0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1007cad2
push 4
pop eax
jmp 0x1007cb7a
cmp dword [ebp - 0x14], esi
je 0x1007cad2
push dword [0x10cbf594]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1007cab7
mov eax, dword [0x10cbf5a0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1007cb30
cmp dword [0x10cbf5a4], edi
je 0x1007cb30
push eax
call ebx
push dword [0x10cbf5a4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1007cb30
test eax, eax
je 0x1007cb30
call ecx
test eax, eax
je 0x1007cb25
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 0x1007cb25
test byte [ebp - 8], 1
jne 0x1007cb30
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1007cb60
mov eax, dword [0x10cbf598]
cmp eax, edi
je 0x1007cb5d
push eax
call ebx
test eax, eax
je 0x1007cb5d
call eax
mov esi, eax
test esi, esi
je 0x1007cb5d
mov eax, dword [0x10cbf59c]
cmp eax, edi
je 0x1007cb5d
push eax
call ebx
test eax, eax
je 0x1007cb5d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10cbf594]
call ebx
test eax, eax
je 0x1007cb78
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1007cb7a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call main
mov esp, ebp
pop ebp
ret
Function at 0x1001b283
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001dfdc
push ebx
push esi
call fcn.1001df08
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001de9c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001df89
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001dfdb
push edi
push eax
call fcn.1001eefa
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001dfa9
call fcn.1001c9e4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001dfda
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001de9c
add esp, 0x20
test eax, eax
jne 0x1001dfc8
push edi
call fcn.1001c9e4
jmp 0x1001dfd0
push ebx
call fcn.1001c9e4
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1001e249
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025cc8
push 0x10025cc0
push str.FlsAlloc
push 0x1f
call fcn.1001e165
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001e27d
push dword [ebp + 8]
mov ecx, esi
call dword [0x10024150]
call esi
jmp 0x1001e283
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001e2c7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025cd8
push 0x10025cd0
push str.FlsGetValue
push 0x21
call fcn.1001e165
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001e2fe
push dword [ebp + 8]
mov ecx, esi
call dword [0x10024150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001e306
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025ce0
push 0x10025cd8
push str.FlsSetValue
push 0x22
call fcn.1001e165
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001e340
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10024150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100239c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100239ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100239ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x4c5d2545
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x50061840
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x40bc20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x70
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
call fcn.0040ba60
xor ecx, ecx
mov dword [0x421bbc], 0x15f6
mov edx, ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
lea edx, section..data
imul esi, eax, 0x68
mov edi, edx
add edi, esi
add edi, 8
mov esi, dword [edi]
imul edi, eax, 0x68
add edx, edi
add edx, 4
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x309
mov ecx, edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], eax
jne 0x40bc4b
mov eax, dword [0x421bc0]
mov dword [ebp - 0x44], eax
lea eax, [0x40d191]
mov ecx, 0xe
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x44]
add esi, 0xe99
mov dword [0x421bc0], esi
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x4c], ecx
call fcn.0040c750
mov dword [0x421bbc], 0x16d2
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
call fcn.0040b8d0
mov ecx, eax
mov dword [0x421bc4], eax
mov eax, esp
mov edx, dword [ebp - 0x40]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
lea edx, section..data
imul esi, eax, 0x68
mov edi, edx
add edi, esi
mov esi, dword [ebp - 0x50]
add esi, ecx
imul ebx, eax, 0x68
mov dword [ebp - 0x5c], eax
mov eax, edx
add eax, ebx
add eax, 8
mov ebx, dword [ebp - 0x5c]
add ebx, 1
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x5c]
imul eax, eax, 0x68
add edx, eax
add edx, 4
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
mov edi, dword [edi]
movzx edx, word [edx]
xor edx, eax
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x6c], ebx
call fcn.0040be10
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x68]
add eax, ecx
mov edx, dword [ebp - 0x6c]
cmp edx, 0x309
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x54], eax
jne 0x40bd1e
mov dword [0x421bc0], 0x1599
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x40]
mov dword [esp + 8], ecx
call fcn.0040c630
xor eax, eax
mov ecx, dword [ebp - 0x50]
add ecx, 0x8a1f6
mov edx, dword [ebp - 0x30]
mov dword [edx], ecx
mov dword [edx + 4], 0x119a00
mov ecx, dword [ebp - 0x50]
add ecx, 0x5b8cb
mov dword [edx + 8], ecx
mov dword [0x421bbc], 0x17fe
mov dword [edx + 0xc], 0x2000
mov dword [0x421bc0], 0x10f2
add esp, 0x70
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40be90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [fcn.0040be90]
mov ecx, dword [0x421bc0]
add ecx, 0x25e8
mov dword [0x421bbc], ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
mov dword [ebp - 8], eax
jne 0x40beda
mov eax, dword [ebp - 8]
add eax, dword [eax + 0x3c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0x4550
jne 0x40beda
mov eax, dword [ebp - 8]
add esp, 0xc
pop ebp
ret
mov eax, dword [ebp - 8]
add eax, 0xfffff000
and eax, 0xfffff000
mov ecx, dword [0x421bc0]
add ecx, 0xffffe83c
mov dword [0x421bc0], ecx
mov dword [ebp - 4], eax
jmp 0x40beb1

Function at 0x40bfb0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov edi, dword [0x421bbc]
add edi, 0xfffffb52
mov dword [0x421bbc], edi
mov edi, dword [0x421bc0]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
add ecx, 0x1557
mov dword [0x421bc0], ecx
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
add eax, 1
mov esi, dword [0x421bc0]
cmp eax, 0x100
mov edi, esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], eax
jne 0x40bfeb
xor eax, eax
mov ecx, dword [ebp - 0x24]
add ecx, 0xffffe0fe
mov dword [0x421bc0], ecx
mov ecx, eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov edx, 0x100
mov dword [0x421bc0], 0x160f
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, ecx
mov dword [ebp - 0x30], eax
xor ecx, ecx
mov dword [ebp - 0x34], edx
mov edx, ecx
mov ecx, dword [ebp - 0x10]
div ecx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add edi, edx
mov eax, edi
cdq
mov edi, dword [ebp - 0x34]
idiv edi
mov ecx, dword [0x421bbc]
mov esi, ecx
add esi, 0xffffdf42
mov dword [0x421bc0], esi
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x30]
mov bl, byte [esi + edi]
add ecx, 0xffffdb90
mov dword [0x421bbc], ecx
mov bh, byte [esi + edx]
mov byte [esi + edi], bh
mov byte [esi + edx], bl
mov ecx, dword [0x421bc0]
add ecx, 0x1035
mov dword [0x421bc0], ecx
add edi, 1
cmp edi, 0x100
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], edi
jne 0x40c03d
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40c4f0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x421bbc], 0xdac
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x40c60f
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add edx, 1
mov edi, eax
add edi, 1
mov dword [0x421bc0], 0x2e8
mov dword [ebp - 0x2c], eax
mov eax, edx
cdq
idiv esi
mov dword [0x421bbc], 0x1d94
mov ebx, dword [ebp - 0x20]
mov bl, byte [ebx + edx]
mov dword [ebp - 0x30], ecx
movzx ecx, bl
mov dword [ebp - 0x34], edx
mov edx, dword [ebp - 0x30]
add ecx, edx
mov eax, ecx
cdq
idiv esi
mov dword [0x421bbc], 0x1b84
mov ecx, dword [ebp - 0x20]
mov bh, byte [ecx + edx]
mov esi, dword [ebp - 0x34]
mov byte [ecx + esi], bh
mov byte [ecx + edx], bl
mov dword [0x421bbc], 0x1912
movzx ecx, byte [ecx + esi]
mov esi, dword [ebp - 0x20]
movzx esi, byte [esi + edx]
add esi, ecx
and esi, 0xff
mov ecx, dword [0x421bc0]
add ecx, 0xfffff5f6
mov dword [0x421bbc], ecx
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x2c]
mov cl, byte [ecx + ebx]
mov ebx, dword [ebp - 0x20]
xor cl, byte [ebx + esi]
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x2c]
mov byte [esi + ebx], cl
mov ecx, dword [0x421bbc]
add ecx, 0xffffdaf7
mov dword [0x421bc0], ecx
mov ecx, dword [ebp - 0x10]
cmp edi, ecx
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edi
jne 0x40c535
mov dword [0x421bbc], 0x185d
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0xc61bc3
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
xor ebx, ebx
push edi
mov edi, ecx
push 5
pop eax
push ebx
mov dword [edi], eax
mov dword [edi + 4], eax
mov word [edi + 8], 1
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
push 0x5b
mov dword [edi + 0xc], 4
call esi
push ebx
push 0x10
mov byte [edi + 0x29], al
call esi
push ebx
push 0xa0
mov byte [edi + 0x26], al
call esi
push ebx
push 0xa1
mov byte [edi + 0x27], al
call esi
push ebx
push 0x11
mov byte [edi + 0x28], al
call esi
push ebx
push 0x12
mov byte [edi + 0x24], al
call esi
mov byte [edi + 0x25], al
pop edi
pop esi
pop ebx
ret
Function at 0xc62a32
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2002c
call fcn.00ca1f50
push ebx
push esi
push edi
lea ecx, [esp + 0x28]
call fcn.00c6a961
lea eax, [esp + 0x38]
xor ebx, ebx
push eax
push 0x7fff
mov byte [esp + 0x19], bl
mov byte [esp + 0x1a], bl
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [esp + 0x13]
push eax
push dword [ebp + 8]
call fcn.00c62e37
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0xca2b2d
mov eax, dword [0xd31400]
test eax, eax
je 0xca2b45
xor edi, edi
mov esi, 0xd32390
inc edi
cmp eax, edi
je 0xca2b51
lea eax, [esp + 0x11]
push eax
push ecx
push 0xd31400
push 0xd31418
mov ecx, esi
call fcn.00c62de3
test al, al
je 0xca2b70
mov al, byte [0xd32390]
mov byte [0xd31404], al
mov al, byte [0xd32391]
mov byte [esp + 0x12], al
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1003c]
push eax
push 0x7fff
push dword [0xd31418]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push dword [esp + 0x14]
mov ecx, 0xd313f0
call fcn.00c66b57
mov bl, byte [esp + 0x11]
push dword [0xd31400]
push 0xd31418
call fcn.00c61cd0
test eax, eax
jne 0xca2b7b
cmp byte [esp + 0x12], 1
je 0xca2b98
call fcn.00c62b83
call fcn.00c62c63
cmp byte [0xd31404], 0
mov ebx, 0xd31990
jne 0xc62b44
mov ecx, ebx
call fcn.00c63837
push edi
mov ecx, 0xd31430
call fcn.00c6d760
cmp byte [0xd31404], 0
jne 0xc62b5f
mov ecx, ebx
call fcn.00c630f2
mov ecx, esi
call fcn.00c63d1b
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [esp + 0x28]
call fcn.00c6988f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x10
push 0xd25998
push str.This_is_a_third_party_compiled_AutoIt_script.
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0xc62b71
or dword [0xd3135c], 0xffffffff
jmp 0xc62b66
push 0xffffffffffffffff
push dword [0xd31408]
mov ecx, esi
push edi
call fcn.00c675ac
mov al, byte [0xd31364]
mov byte [0xd32392], al
jmp 0xc62b02
mov dword [0xd3135c], edi
jmp 0xc62b66
mov ecx, esi
call fcn.00c63d1b
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [0xd3135c], edi
jmp 0xc62b71
call fcn.00cc1663
test al, al
jne 0xc62b25
cmp byte [esp + 0x13], al
jne 0xc62b25
lea ecx, [esp + 0x28]
call fcn.00c63a5a
push 0xd22224
lea ecx, [esp + 0x1c]
call fcn.00c69cb3
lea ecx, [esp + 0x18]
test bl, bl
je 0xca2bf5
mov edi, 0xd259cc
push edi
call fcn.00c633c6
push 0xd31418
lea ecx, [esp + 0x1c]
call fcn.00c66350
push edi
lea ecx, [esp + 0x1c]
call fcn.00c633c6
push 1
jmp 0xca2bfe
push dword [ebp + 8]
call fcn.00c633c6
push edi
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x20]
push dword [esp + 0x34]
push 0xd259d0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esp + 0x18]
call fcn.00c6988f
jmp 0xc62b5f
Function at 0xc63b1c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push ebx
push esi
je 0xc63b99
mov esi, dword [ebp + 0x10]
test esi, esi
je 0xc63b99
xor eax, eax
xor ebx, ebx
mov word [esi], ax
lea eax, [ebp - 8]
push eax
push 1
push ebx
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xc63b99
mov eax, dword [ebp + 0xc]
push edi
lea edi, [eax + eax]
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push esi
push ebx
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0xc63b80
mov eax, dword [ebp - 4]
shr eax, 1
mov dword [ebp - 4], eax
cmp eax, dword [ebp + 0xc]
jae 0xc63b90
xor ecx, ecx
mov word [esi + eax*2], cx
mov bl, 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
mov word [edi + esi - 2], ax
jmp 0xc63b7e
xor al, al
jmp 0xc63b8c

Function at 0xc642a2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x10]
push ebx
push 1
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0xc642da
push edi
push 0
push 0xcfcbb8
push 0xa
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
jne 0xca35ba
pop edi
pop esi
pop ebx
leave
ret
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0xc642d9
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0xc642d9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0xc642d9
mov ecx, dword [ebx]
push 0
push edi
push eax
mov edx, dword [ecx]
push ecx
call dword [edx + 0x10]
mov eax, dword [ebx]
xor edx, edx
push edx
push edx
push edx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov byte [esi + 0x14], 1
jmp 0xc642d9
Function at 0xc650f5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp byte [ecx + 0x14], 0
jne 0xca3d70
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00c8e8c4
add esp, 0x10
leave
ret 0x10
mov ecx, dword [ecx + 0x10]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov edx, dword [ecx]
push eax
push dword [ebp + 8]
push ecx
call dword [edx + 0xc]
mov eax, dword [ebp - 4]
jmp 0xc6511b

Function at 0xc6693c
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov edx, dword [eax + 4]
mov edi, dword [eax]
add edx, edx
mov eax, 0x1505
test edx, edx
jle 0xc66964
movzx ecx, byte [esi + edi]
imul eax, eax, 0x21
add eax, ecx
inc esi
cmp esi, edx
jl 0xc66956
pop edi
pop esi
pop ebp
ret 4
Function at 0xc69a40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0
je 0xc69abb
mov ebx, dword [ebp + 0xc]
xor edi, edi
test ebx, ebx
je 0xc69a7c
mov ecx, dword [esi + 0xc]
lea ebx, [ebx]
cmp ecx, dword [esi + 8]
je 0xc69a8c
mov eax, dword [esi + 4]
mov al, byte [ecx + eax]
mov ecx, dword [ebp + 8]
mov byte [edi + ecx], al
inc edi
inc dword [esi + 0xc]
mov ecx, dword [esi + 0xc]
cmp edi, ebx
jb 0xc69a60
add dword [esi + 0x10], edi
mov eax, edi
pop edi
adc dword [esi + 0x14], 0
pop esi
pop ebx
pop ebp
ret 8
push 0
lea eax, [ebp + 0xc]
push eax
push 0x10000
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0xc69a7c
mov eax, dword [ebp + 0xc]
test eax, eax
je 0xc69a7c
mov dword [esi + 8], eax
xor ecx, ecx
mov dword [esi + 0xc], 0
jmp 0xc69a65
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.00c7e40f
jmp 0xc69a4e