joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a0ec0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6533b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.005a0a70
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.005a0af0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.005a0af0
lea ecx, [esi + 0xc]
call fcn.0063ff0a
lea ecx, [esi + 0x10]
call fcn.0063ff0a
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.005a3320
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.005a3320
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.005a3320
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0063ff7f
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0063ff7f
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x5a1b68
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6535d8
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x5a1b78
call fcn.005a2090
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x5a1c5b
cmp byte [edi], 0
je 0x5a1c5b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x5a1b9d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.005a0890
test eax, eax
jne 0x5a1bbd
push 0xfac038
lea ecx, [esi + 0x38]
call fcn.00640108
jmp 0x5a1c5b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.005a08e0
test eax, eax
jne 0x5a1bec
mov ecx, esi
call fcn.005a09e0
push edi
add esi, 0x38
push 0xfac014
push esi
call fcn.0063d34e
add esp, 0xc
jmp 0x5a1c5b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.005a2910
test eax, eax
je 0x5a1c54
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.005a1d30
test eax, eax
jne 0x5a1c70
push edi
lea eax, [esi + 0x38]
push 0xfabff0
push eax
call fcn.0063d34e
add esp, 0xc
mov ecx, esi
call fcn.005a2090
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x5a1d18
mov ecx, dword [0xfad534]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.0063d34e
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.005a0990
test eax, eax
jne 0x5a1cda
push 0xfabfd4
lea ecx, [esi + 0x38]
call fcn.00640108
jmp 0x5a1cea
push 0xfa
mov ecx, esi
call fcn.005a2910
test eax, eax
jne 0x5a1d07
mov ecx, esi
call fcn.005a2090
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0063ff7f
jmp 0x5a1c5b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0063ff7f
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x5a8860
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x653c28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [esp + 0x40]
push ebx
push esi
lea ecx, [esp + 8]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.005a8c60
mov esi, eax
lea edx, [esp + 0x48]
xor ebx, ebx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], 0x1008034
call fcn.005bf7b5
mov ecx, dword [0xea3f48]
mov al, byte [esi]
push ecx
push ebx
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 1
mov byte [esp + 0x30], al
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.005a5e80
mov esi, 0xea3fa0
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0xc]
mov byte [esp + 0x3c], 3
cmp eax, ebx
je 0x5a8907
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x5a88fe
cmp al, 0xff
je 0x5a88fe
dec al
mov byte [ecx], al
jmp 0x5a8907
push ecx
call fcn.0063fce9
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.0063b1a0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], 0xffffffff
cmp eax, ebx
mov dword [esp + 0x18], esi
je 0x5a894d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x5a8944
cmp al, 0xff
je 0x5a8944
dec al
mov byte [ecx], al
jmp 0x5a894d
push ecx
call fcn.0063fce9
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.005bf83c
mov ecx, dword [esp + 0x34]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x5b25f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x654130
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.005b29c0
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0
call fcn.005b29c0
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x3c], 1
call fcn.005b2a30
lea ecx, [esp + 0x10]
call fcn.0054dbf0
cmp eax, 1
jae 0x5b2698
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0
push 0
call ebx
mov edi, eax
test edi, edi
je 0x5b2703
lea ecx, [edi + 1]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x5b2703
push esi
push edi
call ebx
push esi
lea ecx, [esp + 0x14]
call fcn.005b2a30
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x10]
call fcn.0054dbf0
cmp eax, 1
jb 0x5b2703
lea edx, [esp + 0x10]
mov ecx, ebp
push edx
call fcn.005b2490
test eax, eax
je 0x5b2703
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
call fcn.005b2770
mov edi, dword [esp + 0x44]
xor esi, esi
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
call fcn.005b2a90
push edi
lea ecx, [esp + 0x24]
call fcn.005b2ab0
push esi
lea ecx, [esp + 0x24]
call fcn.005b2b50
push str..tmp
lea ecx, [esp + 0x24]
call fcn.005b2ab0
lea edx, [esp + 0x20]
mov ecx, ebp
push edx
call fcn.005b2470
test eax, eax
je 0x5b2739
inc esi
cmp esi, 0x7a0a1f00
jb 0x5b26ba
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 0
call fcn.005b29e0
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
call fcn.005b29e0
xor eax, eax
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0xc
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x20]
push eax
call fcn.005b2a90
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 0
call fcn.005b29e0
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
call fcn.005b29e0
mov eax, 1
jmp 0x5b2724
Function at 0x5b2ec0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6541e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call fcn.005b29c0
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0xc]
push eax
mov dword [esp + 0x28], 0
call fcn.005b2a30
push 0
mov ecx, esi
call fcn.005b2e40
mov ebx, dword [esp + 0x2c]
cmp ebx, 1
jb 0x5b2ff8
lea ecx, [esp + 0xc]
call fcn.0054dbf0
cmp eax, 1
jae 0x5b2f47
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.005b29e0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
mov eax, dword [esp + 0x34]
lea edi, [esi + 0xc]
test eax, eax
jne 0x5b2f94
push 0
lea ecx, [esp + 0x10]
call fcn.0054f800
push eax
push edi
mov ecx, 0x100e08c
call fcn.005b25f0
test eax, eax
jne 0x5b2f9c
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.005b29e0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
push eax
mov ecx, edi
call fcn.005b2a30
push edi
mov ecx, 0x100e08c
call fcn.005b2550
push 0
push 2
push 2
push 0
push 3
push 0xc0000000
mov ecx, edi
call fcn.0054f7f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x5b2ff8
push 0
push ebx
push 0
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 4], eax
je 0x5b2ff8
push 0
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 8], eax
jne 0x5b3028
push 1
mov ecx, esi
call fcn.005b2e40
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.005b29e0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
lea ecx, [esp + 0xc]
mov dword [esi + 0x1c], ebx
mov dword [esp + 0x24], 0xffffffff
call fcn.005b29e0
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc

Function at 0x5b3910
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
mov ecx, 0x41
xor eax, eax
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x110]
call fcn.005b2a30
pop edi
add esp, 0x104
ret 4
Function at 0x5d7b50
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x5d7b83
push esi
call fcn.005dcb80
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x5d7b7c
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x5d7c09
mov eax, dword [esi + 0x1b8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x5d7bf2
mov eax, dword [esi + 8]
test eax, eax
je 0x5d7ba7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b8]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x5d7bee
cmp eax, 2
je 0x5d7bf2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x5d7b9a
cmp eax, 3
je 0x5d7bcd
cmp eax, 1
jne 0x5d7b9a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x5d7b9a
mov edx, dword [esi + 0x144]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x5d7b9a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.005d7c40
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x5d7c29
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.005d7c40
add esp, 4
pop esi
ret

Function at 0x605cf0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
cmp eax, 3
jne 0x605d56
mov eax, dword [esp + 0xc]
mov cl, byte [eax + 0x22c]
test cl, cl
mov ecx, dword [esp + 0x10]
je 0x605d18
cmp word [eax + 0x124], 0
je 0x605d37
movzx dx, byte [ecx]
cmp dx, word [eax + 0x124]
jbe 0x605d37
push str.Invalid_background_palette_index
push eax
call fcn.006049e0
add esp, 8
add esp, 8
ret
mov cl, byte [ecx]
lea edx, [esp]
push 1
push edx
push str.bKGD
push eax
mov byte [esp + 0x10], cl
call fcn.00604bf0
add esp, 0x10
add esp, 8
ret
test al, 2
je 0x605db0
push esi
mov esi, dword [esp + 0x14]
xor eax, eax
lea ecx, [esp + 4]
mov ax, word [esi + 2]
push eax
push ecx
call fcn.00604bd0
xor edx, edx
lea eax, [esp + 0xe]
mov dx, word [esi + 4]
push edx
push eax
call fcn.00604bd0
xor ecx, ecx
lea edx, [esp + 0x18]
mov cx, word [esi + 6]
push ecx
push edx
call fcn.00604bd0
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x1c]
push 6
push eax
push str.bKGD
push ecx
call fcn.00604bf0
add esp, 0x28
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x10]
xor edx, edx
lea ecx, [esp]
mov dx, word [eax + 8]
push edx
push ecx
call fcn.00604bd0
mov eax, dword [esp + 0x14]
lea edx, [esp + 8]
push 2
push edx
push str.bKGD
push eax
call fcn.00604bf0
add esp, 0x18
add esp, 8
ret
Function at 0x60ce10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x60ce1b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x60cf1e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0xf70948]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0xf70948]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0xf70948]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0xf70948]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0xf70948]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0xf70948]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0xf70948]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0xf70948]
xor eax, edx
inc ecx
dec edi
jne 0x60ce36
pop edi
test esi, esi
je 0x60cf40
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0xf70948]
xor eax, edx
inc ecx
dec esi
jne 0x60cf22
pop esi
pop ebx
not eax
ret
Function at 0x635650
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x6558b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.0062a3f0
mov eax, dword [0xf85b78]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.0062a322
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.00636140
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x6356f7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x6356ee
cmp al, 0xff
je 0x6356ee
dec al
mov byte [ecx], al
jmp 0x6356f7
push ecx
call fcn.0063fce9
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x635728
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x63571f
cmp al, 0xff
je 0x63571f
dec al
mov byte [ecx], al
jmp 0x635728
push ecx
call fcn.0063fce9
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x64243c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x642474
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00640426
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.006403fe
jmp 0x642480
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x643b2f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x643b71
call fcn.0064a167
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x643b71
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x643b68
xor eax, eax
jmp 0x643b79
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00643b7f
pop edi
pop esi
pop ebx
ret 4

Function at 0x64a697
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x64a6c5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x64a6e3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0064a5fd
jmp 0x64a6e3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x64a6e3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0064a5fd
test edi, edi
mov eax, edi
jne 0x64a6cd
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x408738
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x414054
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x40875a
shr eax, 1
xor eax, 0xedb88320
jmp 0x40875c
shr eax, 1
dec edx
jne 0x408748
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x408741
mov byte [0x414454], 1
pop esi
pop ebx
ret

Function at 0x408778
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x414454], 0
jne 0x40878f
call fcn.00408738
mov eax, edi
dec eax
test eax, eax
jl 0x4087b8
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x414054]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x408799
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x40ad44
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov al, byte [eax]
dec al
je 0x40ad75
dec al
je 0x40adb6
dec al
je 0x40adfa
dec al
je 0x40ae65
jmp 0x40aeef
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x40aeef
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
mov dl, byte [ecx + edx]
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x40ad85
jmp 0x40aeef
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x40aeef
mov esi, 1
mov al, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov dl, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x40adc6
jmp 0x40aeef
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x40aeef
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x40ae28
xor ebp, ebp
jmp 0x40ae39
mov ecx, esi
sub ecx, edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x40ae42
adc eax, 0
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x40ae0a
jmp 0x40aeef
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x40aeef
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x40aebd
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
mov dl, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
mov cl, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.004087c0
add al, byte [esp]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x40ae79
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40e824
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov esi, eax
push esi
call sub.user32.dll_IsIconic
test eax, eax
je 0x40e83d
push 9
push esi
call sub.user32.dll_ShowWindow
push esi
call sub.user32.dll_IsWindowEnabled
test eax, eax
jne 0x40e84e
xor ebx, ebx
jmp 0x40e94b
call sub.user32.dll_GetForegroundWindow
cmp esi, eax
jne 0x40e85e
mov bl, 1
jmp 0x40e94b
mov eax, dword [sym.imp.rtl60.bpl__Sysutils_Win32Platform]
cmp dword [eax], 2
jne 0x40e872
mov eax, dword [sym.imp.rtl60.bpl__Sysutils_Win32MajorVersion]
cmp dword [eax], 4
jg 0x40e8a6
mov eax, dword [sym.imp.rtl60.bpl__Sysutils_Win32Platform]
cmp dword [eax], 1
jne 0x40e935
mov eax, dword [sym.imp.rtl60.bpl__Sysutils_Win32MajorVersion]
cmp dword [eax], 4
jg 0x40e8a6
mov eax, dword [sym.imp.rtl60.bpl__Sysutils_Win32MajorVersion]
cmp dword [eax], 4
jne 0x40e935
mov eax, dword [sym.imp.rtl60.bpl__Sysutils_Win32MinorVersion]
cmp dword [eax], 0
jle 0x40e935
xor ebx, ebx
push 0
call sub.user32.dll_GetForegroundWindow
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov edi, eax
push 0
push esi
call sub.user32.dll_GetWindowThreadProcessId
mov ebp, eax
push 0xffffffffffffffff
push edi
push ebp
call sub.user32.dll_AttachThreadInput
test eax, eax
je 0x40e8ed
push esi
call sub.user32.dll_BringWindowToTop
push esi
call sub.user32.dll_SetForegroundWindow
push 0
push edi
push ebp
call sub.user32.dll_AttachThreadInput
call sub.user32.dll_GetForegroundWindow
cmp esi, eax
sete bl
test bl, bl
jne 0x40e941
push 0
lea eax, [esp + 4]
push eax
push 0
push 0x2000
call sub.user32.dll_SystemParametersInfoA
push 2
push 0
push 0
push 0x2001
call sub.user32.dll_SystemParametersInfoA
push esi
call sub.user32.dll_BringWindowToTop
push esi
call sub.user32.dll_SetForegroundWindow
push 2
mov eax, dword [esp + 4]
push eax
push 0
push 0x2001
call sub.user32.dll_SystemParametersInfoA
jmp 0x40e941
push esi
call sub.user32.dll_BringWindowToTop
push esi
call sub.user32.dll_SetForegroundWindow
call sub.user32.dll_GetForegroundWindow
cmp esi, eax
sete bl
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40f8f4
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40f99f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [sym.imp.rtl60.bpl__Registry_TRegistry_]
call sub.rtl60.bpl__Registry_TRegistry__bctr_qqrv
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40f982
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000001
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__Registry_TRegistry_SetRootKey_qqrui
xor ecx, ecx
mov edx, 0x40f9b4
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__Registry_TRegistry_OpenKey_qqrx17System_AnsiStringo
test al, al
je 0x40f96c
lea ecx, [ebp - 8]
mov edx, ebx
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__Registry_TRegistry_ReadString_qqrx17System_AnsiString
mov edx, dword [ebp - 8]
mov eax, esi
mov ecx, 0x40fa00
call sub.rtl60.bpl__System__LStrCat3_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f989
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System_TObject_Free_qqrv
ret