joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402940
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x374
mov al, 0x43
push ebx
push esi
mov byte [esp + 8], al
mov byte [esp + 0xe], al
push edi
lea eax, [esp + 0x27c]
push 0x104
lea ecx, [esp + 0x10]
mov ebx, 0x20
push eax
push ecx
mov byte [esp + 0x19], 0x4f
mov byte [esp + 0x1a], 0x4d
mov byte [esp + 0x1b], 0x53
mov byte [esp + 0x1c], 0x50
mov byte [esp + 0x1d], 0x45
mov byte [esp + 0x1f], 0
mov byte [esp + 0x20], bl
mov byte [esp + 0x21], bl
mov byte [esp + 0x22], 0x2f
mov byte [esp + 0x23], 0x63
mov byte [esp + 0x24], bl
mov byte [esp + 0x25], 0x64
mov byte [esp + 0x26], 0x65
mov byte [esp + 0x27], 0x6c
mov byte [esp + 0x28], bl
mov byte [esp + 0x29], 0
call dword [0x405458]
lea edx, [esp + 0x178]
push 0x104
push edx
push 0
mov esi, eax
call dword [0x40545c]
mov edi, eax
lea eax, [esp + 0x178]
push 0x104
lea ecx, [esp + 0x17c]
push eax
push ecx
call dword [0x40547c]
and eax, edi
test esi, eax
je 0x402b08
lea edx, [esp + 0x14]
lea eax, [esp + 0x74]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x178]
lea edx, [esp + 0x74]
push ecx
push edx
call esi
lea eax, [esp + 0x74]
push str.___nul
push eax
call esi
lea ecx, [esp + 0x74]
lea edx, [esp + 0x27c]
push ecx
push edx
call esi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x34]
mov dword [esp + 0x20], eax
rep stosd dword es:[edi], eax
mov dword [esp + 0x24], eax
push 0x100
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], 0x44
mov dword [esp + 0x30], eax
mov dword [esp + 0x60], 1
mov word [esp + 0x64], ax
call dword [0x405460]
push eax
call dword [0x405478]
push 0xf
call dword [0x40543c]
push eax
call dword [0x405474]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x30]
push ecx
push edx
push 0
push 0
push 0xc
push 0
push 0
lea eax, [esp + 0x298]
push 0
push eax
push 0
call dword [0x405440]
test eax, eax
je 0x402aeb
mov ecx, dword [esp + 0x20]
push 0x40
push ecx
call dword [0x405478]
mov edx, dword [esp + 0x24]
push 0xfffffffffffffff1
push edx
call dword [0x405474]
mov eax, dword [esp + 0x24]
push eax
call dword [0x405480]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x374
ret
push ebx
call dword [0x405460]
push eax
call dword [0x405478]
push 0
call dword [0x40543c]
push eax
call dword [0x405474]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x374
ret
Function at 0x401497
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4429b0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40152c
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x4014e9
cmp dword [ebp + 0x10], ebx
jne 0x401520
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.00401497
test eax, eax
jne 0x4014fb
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014d0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405789
cmp eax, ebx
je 0x401533
push ebx
push dword [0x4429b0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x40152c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x4429b0], ebx
jne 0x401529
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x401529
jmp 0x40152c
Function at 0x405374
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x438d38
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x438d38], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4053af
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4054f6
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405513
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405516
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405545
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405589
test edi, edi
jne 0x405550
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405583

Function at 0x40558d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4055fe
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x1400
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4055ed
cmp dword [ebp + 0x14], 1
je 0x4055ef
cmp dword [ebp + 0x14], 2
je 0x4055ef
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x13ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405847
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x438d80
push esi
call fcn.004056a6
push esi
call fcn.0040547f
mov edi, eax
test edi, edi
jne 0x405868
xor eax, eax
jmp 0x4058c0
push edi
call fcn.004056c8
test byte [0x442928], 0x80
je 0x405881
mov al, byte [edi]
test al, al
je 0x405864
cmp al, 0x5c
je 0x405864
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, esi
jmp 0x4058a1
push esi
call fcn.00405762
test eax, eax
je 0x40589b
test byte [eax], 0x10
je 0x4058c5
push esi
call fcn.00405820
push esi
call ebx
cmp eax, edi
jg 0x40588c
push esi
call fcn.004057f3
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x4058bf
Function at 0x405b7c
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405789
mov esi, dword [esp + 0x18]
test eax, eax
je 0x405ba0
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405cd9
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x43a180], 0x4c554e
mov edi, 0x400
mov ebp, 0x43a180
test esi, esi
je 0x405be4
push 1
push 0
push esi
call fcn.00405516
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405cdf
cmp eax, edi
jg 0x405cdf
push edi
mov esi, 0x43aac0
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405cdf
cmp eax, edi
jg 0x405cdf
push esi
push ebp
push str._s_s_r_n
push 0x43a580
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x4428cc]
push dword [eax + 0x128]
push esi
call fcn.0040591f
push 4
push 0xc0000000
push esi
call fcn.00405516
mov ebp, eax
mov dword [esp + 0x14], ebp
cmp ebp, 0xffffffff
je 0x405cd9
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405cd2
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405cd2
cmp edi, dword [esp + 0x18]
jne 0x405cd2
push str._Rename__r_n
push esi
call fcn.004058c9
test eax, eax
jne 0x405ce6
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call fcn.004056a6
add edi, 0xa
mov eax, edi
push ebx
push 0x43a580
add eax, esi
push eax
call fcn.004054d2
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
push eax
add edi, ebx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x442990]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0x407614
add eax, 0xa
push eax
call fcn.004058c9
test eax, eax
je 0x405c9d
inc eax
lea ecx, [esi + edi]
mov ebp, eax
cmp eax, ecx
jae 0x405d0d
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405d02
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405c9f
Function at 0x405d15
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00405847
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x405d4a
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x442988], eax
jmp 0x405edc
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x405d65
test eax, eax
je 0x405e87
test cl, 2
je 0x405e87
push edi
push ebx
mov esi, 0x43aec0
push esi
call fcn.004056a6
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x405d88
push str..
push esi
call edi
jmp 0x405d8e
push ebx
call fcn.00405820
cmp byte [ebx], 0
jne 0x405d9c
cmp byte [0x43aec0], 0x5c
jne 0x405da4
push 0x407290
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x405e7c
lea esi, [ebp - 0x11c]
push 0x3f
mov eax, esi
push eax
call fcn.0040543b
cmp byte [eax], 0
je 0x405de7
cmp byte [ebp - 0x18], 0
je 0x405de7
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405dfd
mov al, byte [esi + 1]
test al, al
je 0x405e5b
cmp al, 0x2e
jne 0x405dfd
cmp byte [esi + 2], 0
je 0x405e5b
push esi
push edi
call fcn.004056a6
test byte [ebp - 0x148], 0x10
je 0x405e22
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405e5b
push dword [ebp + 0xc]
push ebx
call fcn.00405d15
jmp 0x405e5b
push ebx
call fcn.004054f6
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405e53
test byte [ebp + 0xc], 4
je 0x405e4b
push ebx
push 0xfffffffffffffff1
call fcn.00404755
push 0
push ebx
call fcn.00405b7c
jmp 0x405e5b
inc dword [0x442988]
jmp 0x405e5b
push ebx
push 0xfffffffffffffff2
call fcn.00404755
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405dc9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405e86
mov byte [edi - 1], 0
pop edi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405edb
cmp dword [ebp - 8], esi
je 0x405ecb
push ebx
call fcn.00405762
test eax, eax
je 0x405edb
push ebx
call fcn.004057f3
push ebx
call fcn.004054f6
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405ed3
test byte [ebp + 0xc], 4
je 0x405ecb
push ebx
push 0xfffffffffffffff1
call fcn.00404755
push esi
push ebx
call fcn.00405b7c
jmp 0x405edb
inc dword [0x442988]
jmp 0x405edb
push ebx
push 0xffffffffffffffe5
call fcn.00404755
pop esi
pop ebx
leave
ret 8
Function at 0x405ee1
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x43c2c4], 0
jne 0x405f1f
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405ef5
mov dword [ecx*4 + 0x43c2c0], eax
inc ecx
cmp ecx, 0x100
jl 0x405ef0
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x405f4c
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x43c2c0]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x405f2d
not eax
pop ebp
ret 0xc
Function at 0x4030ef
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da688
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x454
mov eax, dword [0x524330]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x450], ecx
and dword [ebp - 4], 0
push dword [0x4ee458]
push 0
push dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
call fcn.004043a3
mov dword [ebp - 0x41c], 0x400
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 8
jb 0x40315f
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x454], eax
jmp 0x40316b
mov eax, dword [ebp + 0xc]
add eax, 4
mov dword [ebp - 0x454], eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x418]
push eax
push 0
push 0
push dword [ebp - 0x454]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4031fa
lea eax, [ebp - 0x418]
mov dword [ebp - 0x458], eax
mov eax, dword [ebp - 0x458]
add eax, 2
mov dword [ebp - 0x45c], eax
mov eax, dword [ebp - 0x458]
mov ax, word [eax]
mov word [ebp - 0x45e], ax
add dword [ebp - 0x458], 2
cmp word [ebp - 0x45e], 0
jne 0x4031b0
mov eax, dword [ebp - 0x458]
sub eax, dword [ebp - 0x45c]
sar eax, 1
mov dword [ebp - 0x464], eax
push dword [ebp - 0x464]
lea eax, [ebp - 0x418]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.004044d4
mov eax, dword [ebp - 0x14]
jmp 0x403225
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004bc439
leave
ret 0x10

Function at 0x403c51
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x403c70
xor eax, eax
jmp 0x403ceb
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403c86
xor eax, eax
jmp 0x403ceb
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x403cce
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jae 0x403cce
mov eax, dword [ebp - 4]
movzx eax, word [eax]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax*2 + 2]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
jmp 0x403ca7
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jb 0x403cda
xor eax, eax
jmp 0x403ceb
mov eax, dword [ebp - 4]
movzx eax, word [eax]
test eax, eax
jne 0x403ce8
xor eax, eax
jmp 0x403ceb
mov eax, dword [ebp - 4]
leave
ret
Function at 0x404c4a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da76d
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x524330]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 2
lea eax, [ebp - 0xe9]
mov dword [ebp - 0xe8], eax
push 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.00406cea
mov byte [ebp - 4], 3
lea eax, [ebp - 0xf5]
mov dword [ebp - 0xf4], eax
push 0
push 0
lea ecx, [ebp - 0xd8]
call fcn.00406cea
mov byte [ebp - 4], 4
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x144]
inc eax
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x144]
mov al, byte [eax]
mov byte [ebp - 0x149], al
inc dword [ebp - 0x144]
cmp byte [ebp - 0x149], 0
jne 0x404cd9
mov eax, dword [ebp - 0x144]
sub eax, dword [ebp - 0x148]
mov dword [ebp - 0x150], eax
push dword [ebp - 0x150]
push dword [ebp - 0xfc]
lea ecx, [ebp - 0x2c]
call fcn.00407430
mov eax, dword [ebp + 8]
mov dword [ebp - 0x100], eax
push dword [ebp - 0x100]
movzx eax, word [ebp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0xe0], eax
push dword [ebp - 0xe0]
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x30], eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x34], eax
push dword [ebp - 0xe0]
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0x14], 0x10
jb 0x404d80
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x154], eax
jmp 0x404d89
lea eax, [ebp - 0x28]
mov dword [ebp - 0x154], eax
push 1
push 0x40
push 0x20
push dword [ebp - 0x154]
lea ecx, [ebp - 0xbc]
call fcn.004053fa
mov byte [ebp - 4], 5
push dword [ebp - 0xdc]
push dword [ebp - 0x34]
lea ecx, [ebp - 0xbc]
call fcn.00404edf
lea ecx, [ebp - 0xbc]
call fcn.00405a51
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xbc]
call fcn.00404e5d
mov byte [ebp - 4], 3
push 0
push 1
lea ecx, [ebp - 0xd8]
call fcn.00406cea
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00406cea
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
sub eax, 0x10
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x138]
call fcn.0040110c
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x10]
sub eax, 0x10
mov dword [ebp - 0x13c], eax
mov ecx, dword [ebp - 0x13c]
call fcn.0040110c
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x14]
sub eax, 0x10
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp - 0x140]
call fcn.0040110c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bc439
leave
ret
Function at 0x414e02
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbf1e
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x524330]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x154], ecx
and dword [ebp - 0x124], 0
push 0x105
push 0
lea eax, [ebp - 0x11c]
push eax
call fcn.004bc450
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x4f3190
lea ecx, [ebp - 0x120]
call fcn.00403241
and dword [ebp - 4], 0
lea eax, [ebp - 0x11c]
push eax
push 0x4f319c
lea ecx, [ebp - 0x120]
call fcn.00448fb1
mov eax, dword [ebp - 0x120]
sub eax, 0x10
mov dword [ebp - 0x148], eax
push dword [ebp - 0x148]
call fcn.004042f4
pop ecx
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x14c]
add eax, 0x10
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp - 0x124]
or eax, 1
mov dword [ebp - 0x124], eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x120]
sub eax, 0x10
mov dword [ebp - 0x150], eax
mov ecx, dword [ebp - 0x150]
call fcn.0040110c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bc439
leave
ret 4
Function at 0x438358
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x524330]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10c], ecx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x438404
mov byte [ebp - 0x108], 0
push 0xff
push 0
lea eax, [ebp - 0x107]
push eax
call fcn.004bc450
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x4383cc
movzx eax, byte [ebp - 0xf6]
and eax, 0x80
jne 0x4383cc
push 0
push 1
push 0
push 0x12
call dword [sym.imp.USER32.dll_keybd_event]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x438402
movzx eax, byte [ebp - 0xf6]
and eax, 0x80
jne 0x438402
push 0
push 3
push 0
push 0x12
call dword [sym.imp.USER32.dll_keybd_event]
jmp 0x43841f
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_BringWindowToTop]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bc439
leave
ret 4
Function at 0x4462b7
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e06d7
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x1c
mov eax, dword [0x524330]
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2c], ecx
and dword [ebp - 0x18], 0
and dword [ebp - 0x1c], 0
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov byte [ebp - 0x28], 0
mov byte [ebp - 0x27], 0
mov byte [ebp - 0x26], 0
mov byte [ebp - 0x25], 0
mov byte [ebp - 0x24], 0
mov byte [ebp - 0x23], 5
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x446343
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
jmp 0x44635f
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x44635f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x14], 0
je 0x446372
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
and dword [ebp - 0x14], 0
jmp 0x44637e
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.004bc439
leave
ret