joyce8/EMBER2024-capa huggingface dataset:
Function at 0x656260
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x806f14]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x408]
push eax
push 0
push 0x400
push 0x778db0
mov dword [ebp - 0x408], 0
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x656327
push 0x400
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.00682620
push 0x400
push dword [ebp - 0x408]
lea eax, [ebp - 0x404]
push eax
call fcn.006984ab
lea eax, [ebp - 0x404]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x6562d6
sub eax, edx
mov ecx, esi
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.0049f560
push 1
push 0x7298ec
mov ecx, esi
call fcn.0049bb50
push 0xb
push str.AdobeGCInfo
mov ecx, eax
call fcn.0049bb50
push dword [ebp - 0x408]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0066c50c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0066c50c
mov esp, ebp
pop ebp
ret

Function at 0x656430
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push eax
push 0x101
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x656508
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
push ebx
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x6564ea
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x656480
cmp eax, dword [ebp - 0x10]
jne 0x6564fb
mov esi, dword [ebx]
push edi
mov edi, dword [ebp + 0x18]
mov byte [ebp - 1], 0
mov eax, dword [edi + 4]
mov ecx, eax
mov edx, dword [edi]
sub ecx, edx
mov dword [ebp - 0xc], eax
cmp esi, ecx
jae 0x65649f
lea eax, [edx + esi]
jmp 0x6564cd
jbe 0x6564d0
mov eax, dword [edi + 8]
sub eax, edx
cmp esi, eax
jbe 0x6564b8
lea eax, [ebp - 1]
mov ecx, edi
push eax
push esi
call fcn.00656090
jmp 0x6564d0
sub esi, ecx
push esi
push 0
push dword [ebp - 0xc]
call fcn.00682620
mov eax, dword [ebp - 0xc]
add esp, 0xc
add eax, esi
mov dword [edi + 4], eax
push ebx
push dword [edi]
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
pop edi
test esi, esi
je 0x6564fb
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x656d20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6f3558
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x806f14]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov esi, dword [ebp + 0x14]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov eax, dword [esi + 4]
mov esi, dword [esi]
mov dword [ebp + 0x14], eax
cmp esi, eax
je 0x656dbe
nop dword [eax]
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x656da9
cmp dword [esi + 0x14], 8
mov edi, esi
jb 0x656d81
mov edi, dword [esi]
mov edx, esi
jb 0x656d87
mov edx, dword [esi]
push dword [ebp + 0x14]
inc ecx
lea eax, [edi + ecx*2]
push eax
push edx
push ebx
lea ecx, [ebp - 0x1c]
call fcn.00655ef0
mov edx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x18]
inc edx
add edx, dword [esi + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], edx
add esi, 0x18
cmp esi, eax
jne 0x656d70
mov esi, dword [ebp - 0x14]
cmp ebx, esi
je 0x656dbe
xor eax, eax
mov word [ebx], ax
jmp 0x656dcf
push 0x773308
push ebx
lea ecx, [ebp - 0x1c]
call fcn.00655e20
mov esi, dword [ebp - 0x14]
push 0
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], 0
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, dword [ebp - 0x1c]
mov ebx, eax
test ebx, ebx
jne 0x656e29
mov eax, dword [ebp - 0x10]
lea eax, [eax*2 + 2]
push eax
push edi
push 7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test ebx, ebx
jne 0x656e29
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x656e56
sub esi, edi
mov eax, edi
and esi, 0xfffffffe
cmp esi, 0x1000
jb 0x656e4c
mov edi, dword [edi - 4]
add esi, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x656e6a
push esi
push edi
call fcn.0066c54d
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0068bce4
int3
Function at 0x662c31
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x662c6a
cmp dword [ebp + 0x10], 0
je 0x662c6a
cmp dword [ebp + 0x14], 0
je 0x662c6a
cmp dword [ebp + 0x18], 0
je 0x662c6a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.SELECT_value_FROM_domain_data_WHERE_domain___d_AND_subdomain___q_AND_key___q
push dword [ebp + 0x18]
push dword [eax]
call fcn.0066942d
add esp, 0x18
pop ebp
ret
push 0xa
pop eax
pop ebp
ret

Function at 0x662c6f
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x662c9f
cmp dword [ebp + 0x10], 0
je 0x662c9f
cmp dword [ebp + 0x14], 0
je 0x662c9f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.SELECT_key_FROM_domain_data_WHERE_domain___d_AND_subdomain___q
push dword [ebp + 0x14]
push dword [eax]
call fcn.0066925d
add esp, 0x14
pop ebp
ret
push 0xa
pop eax
pop ebp
ret

Function at 0x662ca4
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x662ccb
cmp dword [ebp + 0x10], 0
je 0x662ccb
push dword [ebp + 0xc]
push str.SELECT_DISTINCT_subdomain_FROM_domain_data_WHERE_domain___d
push dword [ebp + 0x10]
push dword [eax]
call fcn.0066925d
add esp, 0x10
pop ebp
ret
push 0xa
pop eax
pop ebp
ret

Function at 0x663990
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6f4abe
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x806f14]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0xf
mov byte [edi + 0x18], 0
lea esi, [edi + 0x40]
mov byte [ebp - 4], 1
push 0x2c
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0066c51d
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x48]
mov byte [ebp - 4], 2
push 0x2c
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0066c51d
add esp, 8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x50], eax
mov eax, edi
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x668ee7
Capabilities:
Reference sql statements

Disassembly:
push 0x28
mov eax, 0x6d9ed8
call fcn.0066da85
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push eax
lea eax, [edi + 0x30]
push eax
lea esi, [edi + 0x18]
push esi
call fcn.00669851
add esp, 0xc
test al, al
jne 0x668f27
push 0xa
pop esi
jmp 0x669070
lea eax, [ebp - 0x28]
push eax
call fcn.006697b7
pop ecx
test al, al
jne 0x668f5c
lea eax, [ebp - 0x28]
push eax
call fcn.0066994b
pop ecx
test al, al
je 0x668f4b
xor esi, esi
inc esi
jmp 0x669070
push esi
call fcn.00668d4f
mov esi, eax
pop ecx
test esi, esi
jne 0x669070
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push ebx
push dword [ebp + 8]
cmovae eax, dword [ebp - 0x28]
lea esi, [edi + 4]
push esi
push eax
call fcn.0051d8e0
add esp, 0x10
test eax, eax
je 0x668f8c
push eax
mov dword [esi], ebx
call fcn.00668dc9
pop ecx
mov esi, eax
jmp 0x669070
push 0x7d0
push dword [esi]
call fcn.0051a290
cmp byte [edi + 0x4c], 0
mov esi, ebx
pop ecx
pop ecx
mov dword [edi], ebx
je 0x669070
mov eax, dword [edi + 0x50]
mov ecx, ebx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ebx
sub eax, ebx
je 0x668fd0
sub eax, 1
je 0x668fcb
sub eax, 1
jne 0x668fd0
xor ecx, ecx
inc ecx
mov dword [ebp - 0x30], ecx
push 3
jmp 0x668fd2
xor ebx, ebx
inc ebx
jmp 0x668fd3
push 2
pop ebx
push str.SELECT_value_FROM_pcd_meta_WHERE_key__schema_version
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x34], ecx
push eax
push edi
call fcn.0066942d
mov esi, eax
add esp, 0xc
mov eax, dword [ebp - 0x30]
mov ecx, eax
test esi, esi
jne 0x669029
push dword [ebp - 0x2c]
call fcn.00696bef
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x2c]
mov dword [esp], str.SELECT_value_FROM_pcd_meta_WHERE_key__schema_compatibility_version
push eax
push edi
call fcn.0066942d
mov ecx, dword [ebp - 0x34]
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x669026
push dword [ebp - 0x2c]
call fcn.00696bef
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x30]
cmp ebx, ecx
jge 0x669032
push 0xd
pop esi
jmp 0x669067
inc eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jg 0x669063
push eax
mov ecx, edi
call fcn.00669085
mov esi, eax
test esi, esi
jne 0x669058
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jle 0x66903d
jmp 0x66906e
mov eax, dword [ebp - 0x34]
xor ecx, ecx
cmp eax, dword [ebp - 0x2c]
cmove esi, ecx
test esi, esi
je 0x66906e
mov ecx, edi
call fcn.00668eb9
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00489490
mov eax, esi
call fcn.0066da40
ret 4
Function at 0x66958c
Capabilities:
Create directory

Disassembly:
push 0x1c
mov eax, 0x6cda18
call fcn.0066da85
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x28]
push 4
pop edi
push esi
push eax
call fcn.0066bead
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
call fcn.0066994b
add esp, 0xc
test al, al
jne 0x6695d4
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
neg eax
sbb eax, eax
and edi, eax
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.004891f0
mov eax, edi
call fcn.0066da40
ret

Function at 0x6695e7
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x240
mov eax, 0x6f519b
call fcn.0066da85
mov esi, dword [ebp + 8]
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x21c], 7
mov bl, cl
mov dword [ebp - 0x220], ecx
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x24c]
mov dword [ebp - 4], ecx
push eax
push ecx
push ecx
push 0x2b
push ecx
mov dword [ebp - 0x24c], ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
lea eax, [ebp - 0x218]
push eax
js 0x66968c
push dword [ebp - 0x24c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x66967c
cmp word [ebp - 0x218], 0
jne 0x66965a
xor eax, eax
jmp 0x669667
lea eax, [ebp - 0x218]
push eax
call fcn.00699c05
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00489280
mov bl, 1
push dword [ebp - 0x24c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor edi, edi
jmp 0x6696cc
xor edi, edi
push edi
push edi
push 0x2b
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x6696cc
cmp word [ebp - 0x218], di
jne 0x6696aa
mov eax, edi
jmp 0x6696b7
lea eax, [ebp - 0x218]
push eax
call fcn.00699c05
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00489280
mov bl, 1
mov ecx, dword [ebp - 0x220]
test ecx, ecx
je 0x669742
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x669702
lea eax, [ecx - 1]
push edi
push eax
lea ecx, [ebp - 0x230]
call fcn.00669af6
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0066bf60
pop ecx
pop ecx
push eax
mov ecx, esi
call fcn.004a0520
push edi
push 1
lea ecx, [ebp - 0x248]
call fcn.00489490
mov edi, str.Adobe
push edi
call fcn.0069fbe0
pop ecx
push eax
push edi
mov ecx, esi
call fcn.0048fb10
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.004891f0
mov al, bl
call fcn.0066da40
ret
Function at 0x669759
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x806f14]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0066bead
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
pop ecx
cmovae eax, dword [ebp - 0x1c]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x669798
test al, 0x10
jbe 0x669798
mov bl, 1
jmp 0x66979a
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.004891f0
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0066c50c
mov esp, ebp
pop ebp
ret

Function at 0x66994b
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x806f14]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0066bead
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
pop ecx
cmovae eax, dword [ebp - 0x1c]
pop ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0
push 1
lea ecx, [ebp - 0x1c]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
call fcn.004891f0
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0066c50c
mov esp, ebp
pop ebp
ret
Function at 0x66b650
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
pop ebp
ret

Function at 0x6810e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [eax - 0x78a5b], al
inc dword [eax]
mov byte [ebp - 0x78a], 0xa0
and byte [ebp - 0x789], 0
mov byte [ebp - 0x788], 3
mov byte [ebp - 0x787], 0x3b
mov byte [ebp - 0x786], 0x33
mov byte [ebp - 0x785], 0x3c
mov byte [ebp - 0x784], 0x30
mov byte [ebp - 0x783], 0x3a
mov byte [ebp - 0x782], 0x2d
mov byte [ebp - 0x781], 0x71
mov byte [ebp - 0x780], 0x3b
mov byte [ebp - 0x77f], 0x33
mov byte [ebp - 0x77e], 0x33
mov byte [ebp - 0x77d], 0x5f
push 0xc
lea eax, [ebp - 0x78c]
push eax
call fcn.0067f562
pop ecx
push eax
mov eax, dword [ebp - 0x28]
lea eax, [ebp + eax - 0x12c]
push eax
call fcn.0067f4c3
add esp, 0xc
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x3a0], eax
jmp 0x6814ca
mov eax, dword [ebp - 0x6fc]
inc eax
mov dword [ebp - 0x6fc], eax
and dword [ebp - 0x37c], 0
call fcn.0067f552
insb byte es:[edi], dx
cmpsd dword [esi], dword es:[edi]
test dword [edi + edi*8 - 0x4b], ecx
pushal
cld
invalid
Function at 0x6a683e
Capabilities:
Read file on windows

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

Function at 0x6ad9d4
Capabilities:
Set environment variable

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

Function at 0x6b418b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x6402f6
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x64032b
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x640328
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x640334
add edx, 0x28
cmp edx, esi
jne 0x640316
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x640331

Function at 0x6407a9
Capabilities:
Parse pe header

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

Function at 0x6451a9
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x6451f4
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.006453c6
test al, al
jne 0x6451ee
sub edx, 2
cmp edx, edi
jne 0x6451d4
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x645216
lea eax, [edi + 2]
cmp edx, eax
je 0x645216
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.006450f5
add esp, 0x10
jmp 0x645310
push esi
lea ecx, [ebp - 0x255]
call fcn.006453c6
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x645259
push dword [ebp - 0x25c]
jmp 0x645206
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x645296
cmp word [ebp - 0x226], 0
je 0x6452b7
cmp word [ebp - 0x226], ax
jne 0x645296
cmp word [ebp - 0x224], 0
je 0x6452b7
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.006450f5
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x645303
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x645270
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x6452eb
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x645310
push 0x644f25
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00647f70
add esp, 0x10
jmp 0x6452e0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0063ff7a
leave
ret
Function at 0x646e43
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x64dfac
push 0x64dfa4
push str.FlsAlloc
push 0x1f
call fcn.00646d7e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x646e77
push dword [ebp + 8]
mov ecx, esi
call dword [0x64c110]
call esi
jmp 0x646e7d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x646ec1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x64dfbc
push 0x64dfb4
push str.FlsGetValue
push 0x21
call fcn.00646d7e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x646ef8
push dword [ebp + 8]
mov ecx, esi
call dword [0x64c110]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x646f00
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x64dfc4
push 0x64dfbc
push str.FlsSetValue
push 0x22
call fcn.00646d7e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x646f3a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x64c110]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x64bc90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x64bcbd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x64bcbd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10001210
Capabilities:
Log keystrokes

Disassembly:
mov eax, dword [0x10121dd0]
mov ecx, 0x10121ef0
add eax, 0x40
mov dword [0x10121edc], 0
push eax
call fcn.10007be0
push 0
push 8
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push 0
push 0x13
mov dword [0x10121ee4], eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov dword [0x10121ee8], eax
ret

Function at 0x10001250
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, 0x228
push edi
mov edi, dword [0x10121dd0]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x10121dd0]
mov ecx, 0x10121ef0
add eax, 0x40
mov dword [0x10121edc], 0
push eax
call fcn.10007be0
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push 0
push 8
call esi
push 0
push 0x13
mov dword [0x10121ee4], eax
call esi
mov dword [0x10121ee8], eax
mov eax, dword [0x10121dd0]
pop edi
pop esi
mov dword [eax], 1
pop ebp
ret

Function at 0x10001410
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x10121ee8]
push ebx
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
push esi
push edi
mov edi, dword [ebp + 8]
shl eax, 0x10
sub eax, 0x7fffffff
push eax
push 0x13
push 0x101
push edi
call ebx
mov eax, dword [0x10121dd0]
mov ecx, 0x101
cmp word [eax + 8], cx
jne 0x10001555
push edi
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x10121fe0]
xor ecx, ecx
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov word [eax*2 + 0x10122066], cx
mov eax, dword [0x10121fe0]
mov byte [eax + 0x10121fe8], cl
mov eax, dword [0x10121fe0]
inc eax
mov dword [0x10121fe0], eax
add eax, eax
push eax
push 2
call esi
push dword [0x10121fe0]
mov edi, eax
push 2
mov dword [ebp - 4], edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
push edi
call esi
push ebx
mov edi, eax
call esi
mov ecx, dword [0x10121fe0]
mov esi, eax
add ecx, ecx
push ecx
push 0x10122066
push edi
call fcn.100264e0
push dword [0x10121fe0]
push 0x10121fe8
push esi
call fcn.100264e0
mov edi, dword [ebp - 4]
add esp, 0x18
mov esi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call esi
push ebx
call esi
mov esi, dword [sym.imp.USER32.dll_SetClipboardData]
push edi
push 0xd
call esi
push ebx
push 1
call esi
call dword [sym.imp.USER32.dll_CloseClipboard]
push 0x10121dd8
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov esi, dword [sym.imp.USER32.dll_keybd_event]
push 0
push 0
push 0
push 0x10
call esi
push 0
push 1
push 0
push 0x2d
call esi
push 0
push 3
push 0
push 0x2d
call esi
test byte [0x10121de8], 0x80
je 0x1000153a
test byte [0x10121e79], 0x80
je 0x10001544
push 0
push 2
push 0
push 0x10
call esi
pop edi
pop esi
mov dword [section..data], 0
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
cmp dword [0x10121fe0], esi
jle 0x1000157b
nop
movzx eax, byte [esi + 0x10121fe8]
push 1
push eax
push 0x102
push edi
call ebx
inc esi
cmp esi, dword [0x10121fe0]
jl 0x10001560
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret