joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100299a0
Capabilities:
Parse pe header

Disassembly:
push edi
mov edi, dword [esp + 0x10]
cmp edi, 1
jb 0x10029a4c
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
sub esi, edx
lea esp, [esp]
mov al, byte [edx]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x100299cd
jmp dword [ecx*4 + 0x10029a50]
mov al, 0x41
jmp case.default.0x100299cd
mov al, 0x42
jmp case.default.0x100299cd
mov al, 0x43
jmp case.default.0x100299cd
mov al, 0x44
jmp case.default.0x100299cd
mov al, 0x45
jmp case.default.0x100299cd
mov al, 0x46
jmp case.default.0x100299cd
mov al, 0x47
jmp case.default.0x100299cd
mov al, 0x48
jmp case.default.0x100299cd
mov al, 0x49
jmp case.default.0x100299cd
mov al, 0x4a
jmp case.default.0x100299cd
mov al, 0x4b
jmp case.default.0x100299cd
mov al, 0x4c
jmp case.default.0x100299cd
mov al, 0x4d
jmp case.default.0x100299cd
mov al, 0x4e
jmp case.default.0x100299cd
mov al, 0x4f
jmp case.default.0x100299cd
mov al, 0x50
jmp case.default.0x100299cd
mov al, 0x51
jmp case.default.0x100299cd
mov al, 0x52
jmp case.default.0x100299cd
mov al, 0x53
jmp case.default.0x100299cd
mov al, 0x54
jmp case.default.0x100299cd
mov al, 0x55
jmp case.default.0x100299cd
mov al, 0x56
jmp case.default.0x100299cd
mov al, 0x57
jmp case.default.0x100299cd
mov al, 0x58
jmp case.default.0x100299cd
mov al, 0x59
jmp case.default.0x100299cd
mov al, 0x5a
mov byte [esi + edx], al
mov al, byte [edx]
inc edx
test al, al
je 0x10029a4b
dec edi
jne 0x100299c0
pop esi
pop edi
ret

Function at 0x10029ac0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x1006cbfc]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call sub.MSVCR120.dll_getenv
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x10029b25
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x10029b25
lea edx, [esp]
push edx
call dword [0x1006cbec]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1005aa0a
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.1005aa0a
add esp, 0x108
ret
Function at 0x1002e640
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [eax + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x1ec]
test esi, esi
jne 0x1002e659
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.1000c040
push edx
push eax
call fcn.1000c070
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x1e0], 0
je 0x1002e6a6
mov eax, dword [ebx + 0x148]
mov ecx, dword [ebx + 0x144]
push eax
push ecx
call fcn.1000c040
push edx
push eax
call fcn.1000c070
mov ecx, dword [edi + 0x1e0]
sub ecx, eax
add esp, 0x10
mov eax, ecx
cmp esi, ecx
jge 0x1002e6a8
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x10030ad0
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + edi - 1], 0
test eax, eax
jne 0x10030b02
push 0x2e
push esi
call sub.ntdll.dll_strchr
add esp, 8
test eax, eax
je 0x10030b00
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
ret

Function at 0x10030e00
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 0x24
mov eax, dword [0x1006cbfc]
xor eax, esp
mov dword [esp + 0x20], eax
push ebp
mov ebp, dword [esp + 0x30]
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x10030ea7
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea esi, [esp + 0x20]
mov eax, ebp
mov word [esp + 0x14], 0x208
mov dword [esp + 0x18], 0x6601
mov dword [esp + 0x1c], 8
call fcn.10030d70
mov ecx, esi
push 8
push ecx
call fcn.10035030
mov ecx, dword [esp + 0x10]
add esp, 8
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0x14
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
pop esi
test eax, eax
jne 0x10030eb9
mov edx, dword [esp + 4]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1005aa0a
add esp, 0x24
ret
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 0xc]
push ecx
push edi
push 0
push 0
mov dword [edi + 4], edx
mov edx, dword [esp + 0x20]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [esp + 4]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x24]
pop ebp
xor ecx, esp
mov eax, 1
call fcn.1005aa0a
add esp, 0x24
ret
Function at 0x10031060
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov eax, ebp
push edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10031070
sub eax, edx
mov edi, eax
lea ebx, [edi + edi]
push ebx
call dword [0x1006cbe0]
mov esi, eax
add esp, 4
test esi, esi
jne 0x10031099
pop edi
lea eax, [esi + 0x1b]
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor eax, eax
test edi, edi
je 0x100310b0
nop
mov cl, byte [eax + ebp]
mov byte [esi + eax*2], cl
mov byte [esi + eax*2 + 1], 0
inc eax
cmp eax, edi
jb 0x100310a0
push 0xf0000000
push 1
push 0
push 0
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov edi, dword [esp + 0x28]
test eax, eax
je 0x1003112f
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x8002
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x10031122
mov edx, dword [esp + 0x10]
push 0
push ebx
push esi
push edx
mov dword [esp + 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x14]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov dword [edi + 0x10], eax
push esi
mov byte [edi + 0x14], al
call dword [0x1006cbe4]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret

Function at 0x10031580
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x100315b6
mov edx, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0x8003
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push esi
mov esi, dword [esp + 0x18]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100315c0
sub eax, edx
push eax
call fcn.10027400
add esp, 4
push 0
push eax
mov eax, dword [esp + 0x14]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 0
lea ecx, [esp + 8]
push ecx
push 0
push 2
push edx
mov dword [esp + 0x18], 0
call esi
cmp dword [esp + 4], 0x10
jne 0x1003161d
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
push 0
lea eax, [esp + 8]
push eax
push ecx
push 2
push edx
call esi
mov eax, dword [esp + 0xc]
pop esi
test eax, eax
je 0x1003162d
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 4]
test eax, eax
je 0x1003163e
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add esp, 0xc
ret
Function at 0x10033620
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x10033642
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x10033636
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x10033672
cmp dword [esi + 8], 0
jne 0x10033665
mov ecx, dword [eax + 8]
push 0x10065048
push ecx
call sub.MSVCR120.dll_fopen
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x10033665
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call sub.MSVCR120.dll_fread
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10033694
mov eax, dword [esi + 8]
test eax, eax
je 0x1003368e
push eax
call sub.MSVCR120.dll_fclose
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret
Function at 0x10034ed0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x1006cbe0]
mov edi, eax
add esp, 4
test edi, edi
jne 0x10034ef5
pop edi
pop esi
pop ecx
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
push ebx
add edx, eax
push ebp
mov ebp, dword [esp + 0x20]
mov dword [edi + 8], edx
cmp ebp, dword [esi + 0x10]
jbe 0x10034f3c
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebp
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov ebp, dword [esi + 0x14]
add esp, 0x18
jmp 0x10034f40
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
mov ecx, dword [esi]
push eax
call ecx
mov edx, dword [edi + 8]
mov eax, dword [esi]
push edx
call eax
add esp, 8
mov dword [esp + 0x10], 0
test ebp, ebp
je 0x10034f9c
mov dword [esp + 0x10], ebp
mov cl, byte [ebx]
xor cl, 0x36
mov byte [esp + 0x18], cl
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
call ecx
mov dl, byte [ebx]
xor dl, 0x5c
mov byte [esp + 0x24], dl
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
lea eax, [esp + 0x28]
push eax
push ecx
inc ebx
call edx
add esp, 0x18
dec ebp
jne 0x10034f63
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
cmp eax, dword [esi + 0x10]
jae 0x10034fd8
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
push 0x100653ef
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi + 4]
push 1
push 0x100653f0
push eax
call ecx
mov eax, dword [esp + 0x20]
inc eax
add esp, 0x18
mov dword [esp + 8], eax
cmp eax, dword [esi + 0x10]
jb 0x10034fa7
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x100379d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1006d44c]
mov dword [ebp - 4], eax
jmp 0x100379e9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10037a06
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x100379e0
mov esp, ebp
pop ebp
ret

Function at 0x10037a10
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1006d45c], eax
je 0x10037a2e
mov eax, 0x10dd
jmp 0x10037b0f
mov eax, dword [0x1006d46c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10037aac
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x10037a8a
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x10037a8a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10037b80
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x10037a36
mov dword [0x1006d46c], 0
call fcn.10037b20
mov ecx, dword [0x1006d468]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x10037af9
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
jmp 0x10037ac4
mov dword [0x1006d468], 0
mov dword [0x1006d45c], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10038080
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x10038095
xor eax, eax
jmp 0x1003810a
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0x10000
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x100380c2
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x38d
jae 0x10038105
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x48
mov eax, dword [ebp - 0xc]
cmp dword [eax + edx + 0x40], 0
je 0x10038103
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 4]
jb 0x100380ff
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 8]
jb 0x10038103
xor eax, eax
jmp 0x1003810a
jmp 0x100380b9
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x10038a90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10038b60
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10038b4c
cmp dword [ebp - 4], 0x50000000
jb 0x10038acc
cmp dword [ebp - 4], 0x80000000
ja 0x10038acc
mov dword [ebp - 4], 0x80010000
jmp 0x10038aa5
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call sub.ntdll.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10038af2
jmp 0x10038b4c
cmp dword [ebp - 0x10], 0x10000
jne 0x10038b35
cmp dword [ebp - 0x14], 0x10000
jb 0x10038b35
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x10038b28
mov eax, dword [ebp - 0x24]
jmp 0x10038b4e
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10038b47
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
push ecx
call fcn.10038b60
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10038aa5
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10038b90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10038c60
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10038c54
cmp dword [ebp - 4], 0x50000000
jb 0x10038bd1
cmp dword [ebp - 4], 0x80000000
ja 0x10038bd1
mov dword [ebp - 4], 0x4fff0000
jmp 0x10038baa
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call sub.ntdll.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10038bf7
jmp 0x10038c54
cmp dword [ebp - 0x10], 0x10000
jne 0x10038c3a
cmp dword [ebp - 0x14], 0x10000
jb 0x10038c3a
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x10038c2d
mov eax, dword [ebp - 0x24]
jmp 0x10038c56
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10038c4f
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10000
push ecx
call fcn.10038c60
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10038baa
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10038c90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1006d45c], eax
je 0x10038cb5
mov eax, 0x10dd
jmp 0x10038e4d
cmp dword [0x1006d460], 0
je 0x10038cc8
mov eax, dword [0x1006d460]
jmp 0x10038e4d
cmp dword [ebp + 8], 0
jne 0x10038cd8
mov eax, 6
jmp 0x10038e4d
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10038d01
mov dword [ebp - 0xc], 6
mov ecx, dword [ebp - 0xc]
mov dword [0x1006d460], ecx
mov edx, dword [ebp + 8]
mov dword [0x1006d464], edx
mov eax, dword [ebp - 0xc]
jmp 0x10038e4d
push 0x18
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10038d5a
mov dword [ebp - 0xc], 8
mov ecx, dword [ebp - 0xc]
mov dword [0x1006d460], ecx
cmp dword [ebp - 0x18], 0
je 0x10038d49
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp + 8]
mov dword [0x1006d464], ecx
mov eax, dword [ebp - 0xc]
jmp 0x10038e4d
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.100376d0
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.100376d0
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 8]
mov dword [ebp - 4], edx
cmp dword [ebp - 8], 0
je 0x10038d9a
cmp dword [ebp - 8], 0x1e
jbe 0x10038db6
mov dword [ebp - 0xc], 9
cmp dword [0x1006d454], 0
je 0x10038db1
jmp 0x10038d2a
jmp 0x10038d21
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x10038ddd
mov dword [ebp - 0xc], 9
cmp dword [0x1006d454], 0
je 0x10038dd8
jmp 0x10038d2a
jmp 0x10038d21
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
push edx
push 0x40
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10038e0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x10038d21
mov edx, dword [ebp - 0x18]
mov dword [edx + 4], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [0x1006d46c]
mov dword [edx], eax
mov ecx, dword [ebp - 0x18]
mov dword [0x1006d46c], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x10041e40
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], 1
jmp 0x10041e5b
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xfe
jge 0x10041e98
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov word [ebp - 8], ax
movsx edx, word [ebp - 8]
test edx, edx
je 0x10041e84
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x14]
mov byte [eax + 0xc], 1
movsx ecx, word [ebp - 8]
test ecx, ecx
jne 0x10041e96
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x14]
mov byte [edx + 0xc], 0
jmp 0x10041e52
mov dword [ebp - 0x18], 1
jmp 0x10041eaa
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xfe
jge 0x10041f52
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.10041da0
mov byte [ebp - 1], al
movzx edx, byte [ebp - 1]
test edx, edx
je 0x10041f4d
mov dword [ebp - 0x10], 0
jmp 0x10041ee0
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
call fcn.10041d60
cmp dword [ebp - 0x10], eax
jae 0x10041f4d
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.10042350
mov edx, dword [eax]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x18]
jne 0x10041f4b
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.10042350
mov edx, dword [eax]
cmp dword [edx + 4], 0
je 0x10041f2c
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.10042350
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
call edx
jmp 0x10041f4b
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.10042350
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [edx]
call eax
jmp 0x10041ed7
jmp 0x10041ea1
mov esp, ebp
pop ebp
ret

Function at 0x10042a30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
lea eax, [ebp - 4]
push eax
push 0x40
push 1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 1
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 4]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret 8

Function at 0x10042a80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
lea eax, [ebp - 4]
push eax
push 0x40
push 2
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 2
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 4]
push edx
push 2
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret 8