joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427c70
Capabilities:
Encode data using xor

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
push esi
push ebx
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x427ca1
xor edx, edx
xor ecx, ecx
lea esi, [esi]
mov al, byte [edx + edi]
xor al, byte [edx + esi]
inc edx
or ecx, eax
cmp edx, ebx
jne 0x427c90
xor eax, eax
mov al, cl
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x427dc0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x11c
mov ebx, dword [ebp + 8]
push 0xfffffffffffffff4
call sub.KERNEL32.dll_GetStdHandle
add esp, 0xc
test eax, eax
je 0x427df0
sub esp, 0xc
push eax
call sub.KERNEL32.dll_GetFileType
add esp, 0xc
test eax, eax
jne 0x427e76
lea eax, [ebp + 0xc]
lea esi, [ebp - 0x110]
mov dword [ebp - 0xc], eax
push eax
push ebx
push 0xff
push esi
call sub.msvcrt.dll__vsnprintf
mov byte [ebp - 0x11], 0
call sub.KERNEL32.dll_GetVersion
add esp, 0x10
test eax, eax
js 0x427e60
call fcn.00427cb0
test eax, eax
jle 0x427e60
push eax
push eax
push str.OPENSSL
push 0
call sub.ADVAPI32.DLL_RegisterEventSourceA
mov dword [ebp - 0x10], esi
mov ebx, eax
push eax
lea eax, [ebp - 0x10]
push 0
push eax
push 0
push 1
push 0
push 0
push 0
push 1
push ebx
call sub.ADVAPI32.DLL_ReportEventA
push ebx
call sub.ADVAPI32.DLL_DeregisterEventSource
add esp, 0xc
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
push 0x10
push str.OpenSSL:_FATAL
push esi
push 0
call sub.USER32.dll_MessageBoxA
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
push edx
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push ebx
push eax
call fcn.004a04e0
add esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x42c4e0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 4
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test eax, eax
jle 0x42c5ed
mov ebx, edx
mov edi, eax
jmp 0x42c574
xor edx, edx
xor eax, eax
mov dl, byte [esi]
mov al, byte [esi + 1]
shl eax, 8
shl edx, 0x10
or edx, eax
xor eax, eax
mov al, byte [esi + 2]
or edx, eax
mov eax, edx
shr eax, 0x12
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + 1], al
mov eax, edx
shr eax, 6
and edx, 0x3f
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + 2], al
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + 3], al
lea eax, [ebx + 4]
mov edx, eax
mov ecx, dword [ebp - 0x10]
sub edi, 3
add ecx, 4
mov ebx, eax
mov dword [ebp - 0x10], ecx
test edi, edi
jle 0x42c5ed
add esi, 3
cmp edi, 2
jg 0x42c507
xor ecx, ecx
mov cl, byte [esi]
shl ecx, 0x10
cmp edi, 2
je 0x42c5b4
mov eax, ecx
mov dl, 0x3d
shr eax, 0x12
shr ecx, 0xc
and ecx, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx], al
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + 1], al
lea eax, [ebx + 2]
mov byte [eax], dl
mov byte [eax + 1], 0x3d
lea edx, [eax + 2]
lea eax, [ebx + 4]
jmp 0x42c55f
xor edx, edx
mov dl, byte [esi + 1]
shl edx, 8
or edx, ecx
mov eax, edx
shr eax, 0x12
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx], al
mov eax, edx
shr eax, 0xc
shr edx, 6
and eax, 0x3f
and edx, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + 1], al
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
lea eax, [ebx + 2]
jmp 0x42c5a6
mov byte [edx], 0
mov eax, dword [ebp - 0x10]
pop edx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x43bea0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov edx, dword [ebp + 8]
test edx, edx
je 0x43bef4
mov al, byte [edx]
test al, al
je 0x43bef4
mov ebx, edx
xor esi, esi
mov edi, 0x100
lea esi, [esi]
movsx eax, al
or eax, edi
mov edx, esi
mov esi, eax
mov ecx, eax
imul esi, eax
shr ecx, 2
add edi, 0x100
xor ecx, eax
mov al, byte [ebx + 1]
and ecx, 0xf
inc ebx
rol edx, cl
xor esi, edx
test al, al
jne 0x43bec0
mov eax, esi
pop ebx
shr eax, 0x10
xor eax, esi
pop esi
pop edi
pop ebp
ret
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x44ff80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0xc]
sub eax, 0x2a
dec esi
mov edi, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x450000
cmp esi, 0x28
jg 0x44ffc2
sub esp, 0xc
push 0x33
push str.external_openssl_crypto_rsa_rsa_oaep.c
push 0x78
push 0x79
push 4
call fcn.004249c0
xor eax, eax
add esp, 0x20
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [edi + 0x15]
mov byte [edi], 0
mov dword [ebp - 0x34], eax
call fcn.00452710
push edx
push edx
push 0
push eax
push 0
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x18]
push eax
call fcn.0045ba10
add esp, 0x20
test eax, eax
jne 0x450010
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 0xc
push 0x2d
push str.external_openssl_crypto_rsa_rsa_oaep.c
push 0x6e
jmp 0x44ffac
lea eax, [edi + 1]
mov ebx, esi
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
sub ebx, eax
lea edx, [edi + 0x29]
push ecx
lea eax, [ebx - 0x29]
push eax
push 0
push edx
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x34]
add esp, 0xc
mov byte [eax + ebx - 0x15], 1
mov eax, dword [ebp - 0x34]
mov ebx, dword [ebp + 0x14]
add eax, esi
mov esi, dword [ebp + 0x14]
sub eax, esi
push ebx
mov ecx, dword [ebp + 0x10]
sub eax, 0x14
push ecx
push eax
call sub.msvcrt.dll_memcpy
pop eax
pop edx
push 0x14
mov eax, dword [ebp - 0x30]
push eax
call fcn.00427a40
add esp, 0x10
test eax, eax
jle 0x44ffef
mov ebx, dword [ebp + 0xc]
push esi
sub ebx, 0x15
push 0x49
push str.external_openssl_crypto_rsa_rsa_oaep.c
push ebx
call fcn.004251f0
add esp, 0x10
mov esi, eax
test eax, eax
je 0x4500fa
sub esp, 0xc
mov edx, ebx
push 0x14
mov ecx, dword [ebp - 0x30]
call fcn.0044fd30
add esp, 0x10
test eax, eax
js 0x44ffef
xor edx, edx
mov al, byte [edx + esi]
xor byte [edx + edi + 0x15], al
inc edx
cmp edx, ebx
jne 0x4500a0
sub esp, 0xc
mov edx, 0x14
lea eax, [ebp - 0x20]
push ebx
mov ecx, dword [ebp - 0x34]
call fcn.0044fd30
add esp, 0x10
test eax, eax
js 0x44ffef
mov al, byte [ebp - 0x20]
mov edx, 1
xor byte [edi + 1], al
mov al, byte [edx + ebp - 0x20]
xor byte [edx + edi + 1], al
inc edx
cmp edx, 0x14
jne 0x4500d6
sub esp, 0xc
push esi
call fcn.00425320
mov eax, 1
add esp, 0x10
jmp 0x44ffba
sub esp, 0xc
push 0x4c
push str.external_openssl_crypto_rsa_rsa_oaep.c
push 0x41
jmp 0x44ffac
Function at 0x450340
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov ecx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x10]
cmp ecx, dword [ebp + 0x14]
jne 0x45035d
mov dl, byte [esi]
lea eax, [edx - 0x6a]
cmp al, 1
jbe 0x450388
sub esp, 0xc
push 0x72
push str.external_openssl_crypto_rsa_rsa_x931.c
push 0x89
push pe_nt_image_headers32
push 4
call fcn.004249c0
or esi, 0xffffffff
mov eax, esi
add esp, 0x20
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebx, [esi + 1]
cmp dl, 0x6b
je 0x4503b2
lea esi, [ecx - 2]
cmp byte [ebx + esi], 0xcc
jne 0x450405
push edx
push esi
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.msvcrt.dll_memcpy
mov eax, esi
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ecx - 3]
test edi, edi
jle 0x45041c
mov dl, byte [esi + 1]
cmp dl, 0xba
je 0x45041c
cmp dl, 0xbb
jne 0x4503ee
lea ebx, [esi + 2]
xor eax, eax
mov ecx, edi
jmp 0x4503df
mov dl, byte [eax + esi + 1]
inc ebx
cmp dl, 0xba
je 0x4503e8
cmp dl, 0xbb
jne 0x4503ee
inc eax
cmp eax, ecx
jne 0x4503d0
test eax, eax
je 0x45041c
mov esi, edi
sub esi, eax
jmp 0x450393
sub esp, 0xc
push 0x81
push str.external_openssl_crypto_rsa_rsa_x931.c
push 0x8a
jmp 0x45036c
sub esp, 0xc
push 0x93
push str.external_openssl_crypto_rsa_rsa_x931.c
push 0x8b
jmp 0x45036c
sub esp, 0xc
push 0x8a
push str.external_openssl_crypto_rsa_rsa_x931.c
push 0x8a
jmp 0x45036c
Function at 0x45a100
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0xc1059ed8
mov dword [eax + 4], 0xcbbb9d5d
mov dword [eax + 8], 0x367cd507
mov dword [eax + 0xc], 0x629a292a
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x14], 0x9159015a
mov dword [eax + 0x18], 0xf70e5939
mov dword [eax + 0x1c], 0x152fecd8
mov dword [eax + 0x20], 0xffc00b31
mov dword [eax + 0x24], 0x67332667
mov dword [eax + 0x28], 0x68581511
mov dword [eax + 0x2c], 0x8eb44a87
mov dword [eax + 0x30], 0x64f98fa7
mov dword [eax + 0x34], 0xdb0c2e0d
mov dword [eax + 0x38], 0xbefa4fa4
mov dword [eax + 0x3c], 0x47b5481d
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov dword [eax + 0x48], 0
mov dword [eax + 0x4c], 0
mov dword [eax + 0xd0], 0
mov dword [eax + 0xd4], 0x30
mov eax, 1
pop ebp
ret

Function at 0x45a1b0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0xf3bcc908
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 8], 0x84caa73b
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0xfe94f82b
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x20], 0xade682d1
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x28], 0x2b3e6c1f
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x38], 0x137e2179
mov dword [eax + 0x3c], 0x5be0cd19
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov dword [eax + 0x48], 0
mov dword [eax + 0x4c], 0
mov dword [eax + 0xd0], 0
mov dword [eax + 0xd4], 0x40
mov eax, 1
pop ebp
ret
Function at 0x46eb80
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 8
mov ebx, dword [ebp + 8]
push 0x70
push 0
push ebx
call sub.msvcrt.dll_memset
mov dword [ebx], 0x6a09e667
mov dword [ebx + 4], 0xbb67ae85
mov dword [ebx + 8], 0x3c6ef372
mov dword [ebx + 0xc], 0xa54ff53a
mov dword [ebx + 0x10], 0x510e527f
mov dword [ebx + 0x14], 0x9b05688c
mov dword [ebx + 0x18], 0x1f83d9ab
mov dword [ebx + 0x1c], 0x5be0cd19
mov dword [ebx + 0x6c], 0x20
mov eax, 1
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x46ebe0
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 8
mov ebx, dword [ebp + 8]
push 0x70
push 0
push ebx
call sub.msvcrt.dll_memset
mov dword [ebx], 0xc1059ed8
mov dword [ebx + 4], 0x367cd507
mov dword [ebx + 8], 0x3070dd17
mov dword [ebx + 0xc], 0xf70e5939
mov dword [ebx + 0x10], 0xffc00b31
mov dword [ebx + 0x14], 0x68581511
mov dword [ebx + 0x18], 0x64f98fa7
mov dword [ebx + 0x1c], 0xbefa4fa4
mov dword [ebx + 0x6c], 0x1c
mov eax, 1
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x480b00
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00496420

Function at 0x480b10
Capabilities:
Encrypt data using aes

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00496010

Function at 0x48ae60
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xc
push str.OPENSSL_CONF
call sub.msvcrt.dll_getenv
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x48ae92
sub esp, 0xc
push eax
call fcn.0042b890
add esp, 0x10
mov ebx, eax
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
call fcn.0049a470
sub esp, 0xc
push eax
call sub.msvcrt.dll_strlen
add esp, 0xc
lea esi, [eax + 0xd]
push 0x231
push str.external_openssl_crypto_conf_conf_mod.c
push esi
call fcn.004251f0
add esp, 0x10
test eax, eax
je 0x48ae89
mov ebx, eax
call fcn.0049a470
push edx
push esi
push eax
push ebx
call fcn.0042b780
add esp, 0xc
push esi
push 0x4d24c0
push ebx
call fcn.0042b7e0
add esp, 0xc
push esi
push str.openssl.cnf
push ebx
call fcn.0042b7e0
add esp, 0x10
jmp 0x48ae89
Function at 0x493d00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [esi + 4]
mov edx, dword [ecx + 4]
cmp eax, edx
jl 0x493dd2
mov edx, dword [ebp + 8]
mov ebx, esi
mov edi, ecx
cmp dword [edx + 8], eax
jl 0x493de4
mov eax, dword [edi + 4]
xor esi, esi
test eax, eax
jle 0x493d5b
mov ecx, dword [ebp + 8]
lea edx, [esi*4]
inc esi
mov ecx, dword [ecx]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebx]
mov ecx, dword [edi]
mov eax, dword [eax + edx]
xor eax, dword [ecx + edx]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + edx], eax
cmp dword [edi + 4], esi
jg 0x493d36
mov edx, dword [ebx + 4]
cmp esi, edx
jge 0x493d88
lea ecx, [esi*4]
lea esi, [esi]
mov edx, dword [ebp + 8]
inc esi
mov eax, dword [edx]
mov edx, dword [ebx]
mov edx, dword [edx + ecx]
mov dword [eax + ecx], edx
add ecx, 4
mov edx, dword [ebx + 4]
cmp edx, esi
jg 0x493d70
mov ecx, dword [ebp + 8]
test edx, edx
mov dword [ecx + 4], edx
mov ecx, 1
jle 0x493dc8
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
sub eax, 4
lea eax, [eax + edx*4]
mov ecx, eax
mov eax, dword [eax]
test eax, eax
je 0x493dba
jmp 0x493dbd
mov eax, dword [ecx - 4]
sub ecx, 4
test eax, eax
jne 0x493dbd
dec edx
jne 0x493db0
mov eax, dword [ebp + 8]
mov ecx, 1
mov dword [eax + 4], edx
lea esp, [ebp - 0xc]
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, edx
mov edx, dword [ebp + 8]
mov ebx, ecx
mov edi, esi
cmp dword [edx + 8], eax
jge 0x493d2d
push ecx
push ecx
push eax
push edx
call fcn.0041cf40
add esp, 0x10
xor ecx, ecx
test eax, eax
jne 0x493d2d
jmp 0x493dc8
Function at 0x49b6f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x49b770
mov eax, dword [ebp + 8]
test eax, eax
je 0x49b77a
test esi, esi
je 0x49b749
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esi
push eax
push eax
lea eax, [ebp - 0x18]
push eax
mov edi, dword [ebp + 8]
mov edi, dword [edi + 8]
push edi
call fcn.0043be60
add esp, 0x10
test eax, eax
je 0x49b738
mov eax, dword [eax + 8]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0x4d5f13
mov ecx, 4
cld
mov edi, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x49b788
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.default
mov dword [ebp - 0x14], ebx
push ecx
push ecx
push eax
mov edi, dword [ebp + 8]
mov edx, dword [edi + 8]
push edx
call fcn.0043be60
add esp, 0x10
test eax, eax
jne 0x49b72d
lea esi, [esi]
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 0xc
push ebx
call sub.msvcrt.dll_getenv
add esp, 0x10
jmp 0x49b730
sub esp, 0xc
push ebx
call sub.msvcrt.dll_getenv
add esp, 0x10
test eax, eax
jne 0x49b730
jmp 0x49b749
Function at 0x4a08d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x11c
mov ebx, dword [esp + 0x130]
call sub.msvcrt.dll__errno
test ebx, ebx
mov dword [eax], 0
je 0x4a0a8e
cmp byte [ebx], 0
je 0x4a0a50
sub esp, 0xc
push ebx
call sub.KERNEL32.dll_GetFileAttributesA
add esp, 0xc
cmp eax, 0xffffffff
je 0x4a0a7c
test al, 0x10
je 0x4a0a50
push eax
push 0x104
push ebx
lea edi, [esp + 0x24]
push edi
call sub.msvcrt.dll__fullpath
pop eax
mov ecx, edi
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
xor eax, 0xffffffff
and edx, eax
and edx, 0x80808080
je 0x4a092e
test edx, 0x8080
je 0x4a0a42
add dl, dl
sbb ecx, 3
sub ecx, edi
lea eax, [ecx + 0x233]
push eax
call sub.msvcrt.dll_malloc
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x4a0a6a
lea esi, [eax + 0x22c]
mov ebp, eax
push eax
push eax
push edi
push esi
call sub.msvcrt.dll_strcpy
add esp, 0x10
cmp byte [ebx + 0x22c], 0
jne 0x4a09f4
sub esp, 0xc
push esi
call sub.msvcrt.dll_strlen
add esp, 0xc
mov word [eax + esi], 0x2a
lea eax, [ebx + 0x120]
mov dword [ebx + 0x224], 0xffffffff
mov dword [ebx + 0x228], 0
mov dword [ebx + 0x118], 0
mov word [ebx + 0x11c], 0
mov word [ebx + 0x11e], 0
push 0x104
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x10
add esp, 0x11c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 0xc
push esi
call sub.msvcrt.dll_strlen
pop edx
pop ecx
push 0x2f
lea edi, [esi + eax - 1]
push esi
call sub.msvcrt.dll_strrchr
add esp, 0x10
cmp eax, edi
je 0x4a098f
push eax
push eax
push 0x5c
push esi
call sub.msvcrt.dll_strrchr
add esp, 0x10
cmp edi, eax
je 0x4a098f
sub esp, 0xc
push esi
call sub.msvcrt.dll_strlen
add esp, 0x10
mov word [eax + esi], 0x5c
jmp 0x4a098f
shr edx, 0x10
add ecx, 2
jmp 0x4a0952
call sub.msvcrt.dll__errno
xor ebp, ebp
mov dword [eax], 0x14
add esp, 0x11c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.msvcrt.dll__errno
xor ebp, ebp
mov dword [eax], 0xc
jmp 0x4a09e7
call sub.msvcrt.dll__errno
xor ebp, ebp
mov dword [eax], 2
jmp 0x4a09e7
call sub.msvcrt.dll__errno
xor ebp, ebp
mov dword [eax], 0xe
jmp 0x4a09e7
Function at 0x1002f0a
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x10
call esi
xor ebx, ebx
test ax, ax
setl bl
cmp dword [0x10179e8], 0
je 0x1002f34
and dword [0x10179e8], 0
mov eax, dword [0x101825c]
movzx ecx, word [eax + 0xc]
push ecx
push eax
call fcn.0100769d
mov edi, eax
mov eax, dword [ebp + 0x10]
cmp eax, 8
ja case.default.0x1002f52
jmp dword [eax*4 + 0x1003090]
test ebx, ebx
je 0x1002f69
mov esi, dword [0x1017988]
dec esi
jmp 0x1003036
push 0x11
call esi
xor ecx, ecx
test ax, ax
setge cl
push 0x3e8
dec ecx
and ecx, 0xffffffa6
add ecx, 0x64
mov eax, ecx
jmp 0x1002f9d
test ebx, ebx
je 0x1002f97
mov esi, dword [0x1017988]
add esi, 0xfffffff6
jmp 0x1003036
mov eax, 0x3e8
push eax
mov ecx, dword [0x101825c]
push dword [ecx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, dword [0x1017988]
sub esi, eax
jmp 0x1003036
test ebx, ebx
je 0x1002fc4
mov esi, dword [0x1017988]
inc esi
jmp 0x1003036
push 0x11
call esi
and ax, 0x8000
neg ax
push 0x3e8
sbb eax, eax
and eax, 0xffffffa6
add eax, 0x64
jmp 0x1002ff3
test ebx, ebx
je 0x1002fed
mov esi, dword [0x1017988]
add esi, 0xa
jmp 0x1003036
mov eax, 0x3e8
push eax
mov ecx, dword [0x101825c]
push dword [ecx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
cmp eax, edi
jge 0x1003009
mov eax, edi
mov ecx, dword [0x1017988]
lea esi, [ecx + eax]
jmp 0x1003036
push 0x2710
push dword [ebp + 0x14]
push dword [0x1017984]
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x1003036
xor esi, esi
jmp 0x1003036
mov esi, dword [0x1017984]
cmp esi, dword [0x1017984]
je 0x1003058
push esi
push dword [0x101825c]
call fcn.010076bd
push eax
push dword [0x101825c]
call fcn.0100769d
mov esi, eax
test esi, esi
jge 0x100305e
xor esi, esi
mov eax, dword [0x1017984]
cmp esi, eax
jle 0x1003069
mov esi, eax
push 1
call fcn.01002b7a
push 0
mov dword [0x1017988], esi
call fcn.01007e97
jmp case.default.0x1002f52
push 0
call fcn.01002b7a
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
pop ebp
ret 0x10

Function at 0x100315f
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x70
push esi
push edi
mov eax, dword [0x101767c]
mov esi, 0x1001598
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 6
movsw word es:[edi], word [esi]
pop ecx
mov esi, 0x100157c
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
push 0x10
pop ecx
movsw word es:[edi], word [esi]
push 1
mov dword [ebp - 4], eax
mov esi, 0x1001538
lea edi, [ebp - 0x70]
rep movsd dword es:[edi], dword [esi]
push 0
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
movsw word es:[edi], word [esi]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0100e270
leave
ret 8
Function at 0x10032e9
Capabilities:
Get file system object information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c0
mov eax, dword [0x101767c]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x800
push 0x2b4
mov dword [ebp - 4], eax
lea eax, [ebp - 0x4c0]
push eax
push 0
xor edi, edi
push esi
inc edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
cmp eax, edi
jne 0x1003353
test byte [ebp - 0x4b6], 1
je 0x1003353
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.010031c6
test eax, eax
je 0x1003351
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x1003353
xor edi, edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
call fcn.0100e270
leave
ret 4
Function at 0x100571a
Capabilities:
Get file system object information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x8bc
mov eax, dword [0x101767c]
push esi
mov dword [ebp - 4], eax
call fcn.010055d5
test eax, eax
mov esi, 0x1018540
jne 0x10057a4
push 0x300
push 0x2b4
lea eax, [ebp - 0x8bc]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x10057a4
push 0x1018400
lea eax, [ebp - 0x8b0]
push eax
lea eax, [ebp - 0x608]
push 0x10015c8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x608]
push eax
push dword [0x101852c]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [ebp - 0x8bc]
push 0xfffffffffffffff2
push dword [0x101852c]
call dword [sym.imp.USER32.dll_SetClassLongW]
jmp 0x10057ec
push dword [0x1018774]
push 0xfffffffffffffff2
push dword [0x101852c]
call dword [sym.imp.USER32.dll_SetClassLongW]
push 0x1018400
push esi
call fcn.010056c0
push eax
lea eax, [ebp - 0x608]
push 0x10015c8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x608]
push eax
push dword [0x101852c]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 4]
pop esi
call fcn.0100e270
leave
ret