joyce8/EMBER2024-capa huggingface dataset:
Function at 0x969460
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x9ca230]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [edi + 0xc]
mov eax, dword [esi + 0x14c]
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
push eax
mov dword [ebp - 0x1c], eax
or ebx, 0xffffffff
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x9694b6
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
push edx
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
mov eax, dword [ebp - 0x1c]
push eax
push esi
push edi
call fcn.009527d0
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x9694ec
push str.Error_accept__ing_server_connect
push edi
call fcn.0094bb90
add esp, 8
pop esi
mov eax, 0x1e
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0092f660
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server
push edi
call fcn.0094bb20
push 1
push ebx
mov dword [esi + 0x2c0], 0
mov dword [esi + 0x14c], ebx
call fcn.0097e350
add esp, 0x10
mov dword [esi + 0x30c], 1
cmp dword [edi + 0x1d8], 0
je 0x96956e
push 1
push edi
call fcn.009496c0
mov ecx, dword [edi + 0x1dc]
mov edx, dword [edi + 0x1d8]
push 1
push ebx
push ecx
call edx
push 0
push edi
mov ebx, eax
call fcn.009496c0
add esp, 0x1c
test ebx, ebx
je 0x96956e
push edi
call fcn.009693c0
add esp, 4
pop esi
mov eax, 0x2a
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0092f660
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0092f660
mov esp, ebp
pop ebp
ret
Function at 0x96cd00
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
push esi
add eax, edx
xor esi, esi
push edi
mov edi, dword [ebx + 0xc]
cmp eax, 2
je 0x96cd39
push str.Couldnt_set_desired_mode
push ebx
call fcn.0094bb90
add esp, 8
pop edi
lea eax, [esi + 0x11]
pop esi
pop ebx
pop ebp
ret
cmp ecx, 0xc8
je 0x96cd50
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push ebx
call fcn.0094bb20
add esp, 0xc
mov eax, dword [ebp + 8]
cmp eax, 0x13
jne 0x96cd69
push edi
push ebx
call fcn.0096cc80
add esp, 8
pop edi
mov esi, eax
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x14
jne 0x96cd7a
call fcn.0096a110
pop edi
mov esi, eax
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x15
jne 0x96cd8d
mov eax, ebx
call fcn.0096cce0
pop edi
mov esi, eax
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x16
jne 0x96cd9b
mov eax, ebx
call fcn.0096ccf0
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x974e40
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, eax
test ebx, ebx
je 0x974e52
cmp dword [ebx], 0
jne 0x974e64
test edi, edi
je 0x974e5b
cmp dword [edi], 0
jne 0x974e64
test esi, esi
je 0x974ec7
cmp dword [esi], 0
je 0x974ec7
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 8]
push edx
call fcn.00986830
add esp, 0xc
test esi, esi
je 0x974e81
cmp dword [esi], 0
jne 0x974e83
xor esi, esi
test edi, edi
je 0x974e90
cmp dword [edi], 0
je 0x974e90
mov edx, edi
jmp 0x974e92
xor edx, edx
test ebx, ebx
je 0x974eb1
cmp dword [ebx], 0
je 0x974eb1
push eax
mov eax, dword [ebp + 8]
push esi
push edx
mov ecx, ebx
push ecx
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
pop esi
mov esp, ebp
pop ebp
ret
push eax
mov eax, dword [ebp + 8]
push esi
push edx
xor ecx, ecx
push ecx
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
call fcn.00974df0
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x97ce90
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.00957280
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov edi, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [ebp + 8]
push eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
call fcn.0095c8a0
mov ecx, dword [ebp + 0xc]
push ecx
mov esi, eax
call fcn.0095c8a0
add esp, 0xc
push 1
push eax
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x97cf48
jmp 0x97cee0
lea edx, [ebp - 0x24]
push edx
call fcn.00957280
mov edx, dword [ebp - 0xc]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edi
mov dword [ecx + 4], ebx
mov dword [ecx + 8], edx
mov edx, dword [ebp - 8]
mov dword [ecx + 0xc], edx
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.00957320
add esp, 0x20
test edx, edx
ja 0x97cf6e
jb 0x97cf2f
cmp eax, 0x3e8
ja 0x97cf6e
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
push 1
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x97cee0
test esi, esi
je 0x97cf55
push esi
call fcn.0092a9d5
add esp, 4
mov eax, dword [ebp - 4]
test eax, eax
je 0x97cf65
push eax
call fcn.0092a9d5
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x97cf7b
push esi
call fcn.0092a9d5
add esp, 4
mov eax, dword [ebp - 4]
test eax, eax
je 0x97cf8b
push eax
call fcn.0092a9d5
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x981700
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x9ca230]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, edx
push edi
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x110], edi
mov dword [ebp - 0x108], ecx
xor ebx, ebx
xor esi, esi
call fcn.0095c8a0
add esp, 4
mov dword [ebp - 0x118], eax
test eax, eax
jne 0x98177a
push 0x100
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0097bef0
push eax
mov eax, dword [ebp - 0x108]
push edi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push eax
call fcn.0094bb90
add esp, 0x1c
lea esi, [ebx + 0x4d]
jmp 0x9818e3
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10c], eax
cmp eax, 0xffffffff
jne 0x9817d6
push 0x100
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0097bef0
mov edx, dword [ebp - 0x108]
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
push edx
call fcn.0094bb90
add esp, 0x1c
mov esi, 0x4d
jmp 0x9818e3
lea ecx, [ebp - 0x124]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x981820
push 0x100
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0097bef0
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov eax, dword [ebp - 0x108]
push eax
call fcn.0094bb90
add esp, 0x1c
mov esi, 0x4d
jmp 0x9818d6
mov edi, dword [ebp - 0x124]
cmp dword [ebp - 0x120], ebx
jl 0x981858
jg 0x981838
cmp edi, 0x100000
jbe 0x981858
mov ecx, dword [ebp - 0x108]
push 0x100000
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push ecx
call fcn.0094bb90
mov esi, 0x4d
jmp 0x9818d3
lea edx, [edi + 1]
push edx
call dword [0x9cb33c]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x981870
lea esi, [eax + 0x1b]
jmp 0x9818d6
test edi, edi
je 0x9818b1
push 0
lea eax, [ebp - 0x114]
push eax
mov eax, dword [ebp - 0x10c]
mov ecx, edi
sub ecx, esi
push ecx
lea edx, [esi + ebx]
push edx
push eax
mov dword [ebp - 0x114], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x981917
mov eax, dword [ebp - 0x114]
test eax, eax
je 0x981913
add esi, eax
cmp esi, edi
jb 0x981874
mov ecx, dword [ebp - 0x108]
mov edx, dword [ebp - 0x11c]
push ecx
push ebx
push edx
mov edx, dword [ebp - 0x110]
mov ecx, edi
mov byte [edi + ebx], 0
call fcn.00981490
mov esi, eax
add esp, 0xc
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [0x9cb340]
mov eax, dword [ebp - 0x118]
add esp, 4
test eax, eax
je 0x981900
push eax
call fcn.0092a9d5
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0092f660
mov esp, ebp
pop ebp
ret
mov edi, esi
jmp 0x9818b1
push 0x100
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0097bef0
mov edx, dword [ebp - 0x110]
push eax
push edx
push str.schannel:_failed_to_read_from_CA_file__s:__s
jmp 0x981807
Function at 0x9822d0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x9ca230]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0xf0000040
push 1
push 0
push 0
lea eax, [ebp - 0x1c]
mov esi, 8
push eax
mov dword [ebp - 0x20], esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x982361
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esi
lea esi, [ebp - 0xc]
mov eax, ebx
mov word [ebp - 0x18], 0x208
mov dword [ebp - 0x14], 0x6601
call fcn.00982240
mov ecx, esi
push 8
push ecx
call fcn.00987940
mov ecx, dword [ebp - 0x1c]
add esp, 8
lea edx, [ebp - 0x24]
push edx
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x982372
mov edx, dword [ebp - 0x1c]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0092f660
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x20]
push ecx
push edi
push 0
push 0
mov dword [edi + 4], edx
mov edx, dword [ebp - 0x24]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [ebp - 0x1c]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0092f660
mov esp, ebp
pop ebp
ret

Function at 0x983e20
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
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 0x983e53
push 0x2e
push esi
call fcn.0092f770
add esp, 8
test eax, eax
je 0x983e51
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x987990
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
push esi
mov dword [esi], 0
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x9879c9
mov eax, dword [esi]
push edi
push 0
push 0
push 0x8002
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop edi
ret
Function at 0x988e50
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x9cb33c]
mov edi, eax
add esp, 4
test edi, edi
jne 0x988e7b
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
add edx, eax
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], edx
cmp ebx, dword [esi + 0x10]
jbe 0x988ec2
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebx
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 eax, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], eax
jmp 0x988ec5
mov ebx, dword [ebp + 0xc]
mov ecx, dword [edi + 4]
mov edx, dword [esi]
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi]
push eax
call ecx
mov eax, dword [ebp + 0x10]
add esp, 8
mov dword [ebp - 4], 0
test eax, eax
je 0x988f26
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea esp, [esp]
mov dl, byte [ebx]
xor dl, 0x36
mov byte [ebp + 0xb], dl
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
lea eax, [ebp + 0xb]
push eax
push ecx
call edx
mov al, byte [ebx]
xor al, 0x5c
mov byte [ebp + 0xb], al
mov edx, dword [edi + 8]
mov eax, dword [esi + 4]
push 1
lea ecx, [ebp + 0xb]
push ecx
push edx
inc ebx
call eax
add esp, 0x18
dec dword [ebp - 8]
jne 0x988ef0
mov ecx, dword [ebp - 4]
pop ebx
cmp ecx, dword [esi + 0x10]
jae 0x988f5f
nop
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push 1
push 0x9beeba
push edx
call eax
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
push 0x9beebb
push ecx
call edx
mov eax, dword [ebp - 4]
inc eax
add esp, 0x18
mov dword [ebp - 4], eax
cmp eax, dword [esi + 0x10]
jb 0x988f30
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x989030
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000040
push 0x18
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x989063
mov ecx, dword [esi]
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x800c
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
xor eax, eax
pop esi
pop ebp
ret
Function at 0x98b15c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x98b183
call fcn.0092d6a8
mov dword [eax], esi
call fcn.0092d695
push 0x16
pop esi
mov dword [eax], esi
call fcn.0092e2ea
mov eax, esi
jmp 0x98b1d8
test dword [ebp + 0xc], 0xfffffff9
jne 0x98b169
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x98b1b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0092d6bb
pop ecx
call fcn.0092d695
mov eax, dword [eax]
jmp 0x98b1d8
test al, 0x10
jne 0x98b1d6
test al, 1
je 0x98b1d6
test byte [ebp + 0xc], 2
je 0x98b1d6
call fcn.0092d6a8
mov dword [eax], 5
call fcn.0092d695
mov dword [eax], 0xd
jmp 0x98b1a7
xor eax, eax
pop esi
pop ebp
ret
Function at 0x401721
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x10]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x30]
push 0
push 2
mov ebx, eax
push edx
push ebx
call fcn.0058cdb0
push edx
mov dword [ebp - 0x10], eax
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
mov ecx, esi
call fcn.0054c6a2
push dword [ebp - 0x10]
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 4], ebx
xor ebx, ebx
push ebx
push 1
push ebx
push dword [edi + 8]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x401788
xor bl, bl
push esi
call fcn.0054c5c9
pop ecx
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push ebx
mov ecx, edi
call fcn.0054f0fa
push 0xffffffffffffffff
push dword [ebp - 4]
mov ecx, edi
call fcn.0054f0fa
push dword [ebp - 4]
push esi
push dword [edi + 4]
call fcn.0058ca40
add esp, 0xc
mov bl, 1
jmp 0x401778

Function at 0x4017b4
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
lea esi, [ecx + 0x10]
mov eax, dword [esi]
push ebx
mov dword [ebp - 8], ecx
push ebx
mov ecx, esi
call dword [eax + 0x2c]
mov edi, dword [ebp + 8]
push dword [edi + 8]
mov eax, dword [esi]
push dword [edi + 4]
mov ecx, esi
call dword [eax + 0x38]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x48]
mov ecx, esi
call fcn.0054c6a2
mov ecx, dword [edi + 8]
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
push 1
mov dword [ebp + 8], eax
mov eax, dword [ebp - 8]
push ebx
push dword [eax + 8]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x40181f
push dword [ebp + 8]
call fcn.0054c5c9
pop ecx
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4
mov eax, dword [esi]
push ebx
push dword [ebp - 4]
mov ecx, esi
call dword [eax + 0x2c]
push dword [ebp - 4]
mov eax, dword [esi]
push dword [ebp + 8]
mov ecx, esi
call dword [eax + 0x38]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x48]
mov eax, dword [esi]
push ebx
push ebx
push ebx
mov ecx, esi
call dword [eax + 0x28]
mov bl, 1
jmp 0x40180d
Function at 0x401aab
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 4], ebx
je 0x401b32
lea esi, [edi + 0xc]
mov eax, dword [esi]
cmp eax, ebx
je 0x401b32
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
push ebx
push ebx
push 0x8003
push dword [edi + 4]
mov dword [esi], ebx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x401b32
lea ebx, [edi + 8]
mov eax, dword [ebx]
test eax, eax
je 0x401af4
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
and dword [ebx], 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx - 0xc]
push 0
add eax, eax
push eax
push ecx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x401b32
push ebx
push 1
push dword [esi]
push 0x6602
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
test eax, eax
je 0x401b38
call fcn.00401493
mov al, 1
jmp 0x401b3f
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401493
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x402079
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0x14
mov eax, 0x6257fe
call fcn.0058c0ed
mov esi, ecx
mov dword [ebp - 0x20], esi
xor ebx, ebx
lea edi, [esi + 4]
push 0x400
lea ecx, [esi + 0x10]
mov dword [esi], vtable.CCrypto.0
mov dword [edi], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.0054c5d4
push 0xf0000000
push 1
push ebx
push ebx
push edi
mov dword [ebp - 4], ebx
mov byte [esi + 0x38], bl
mov dword [esi + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x40219a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.0054f69d
push eax
lea ecx, [ebp - 0x18]
call fcn.004018a6
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
push ebx
push 0x1100
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
jne 0x40215c
push str.Unknown_error_code__08x___d_
lea ecx, [ebp - 0x1c]
call fcn.00402035
mov byte [ebp - 4], 2
call fcn.0054f69d
push eax
lea ecx, [ebp - 0x10]
call fcn.004018a6
movzx eax, di
push eax
push edi
push dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 3
call fcn.00401e49
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.00401dd7
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00401493
jmp 0x402185
push 0xd
push dword [ebp - 0x14]
call fcn.0058c1f7
pop ecx
pop ecx
cmp eax, ebx
je 0x402171
xor ecx, ecx
mov word [eax], cx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.00401e24
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [ebp - 0x18]
push ebx
push ebx
push edi
call fcn.0054fe54
lea ecx, [edi - 0x10]
call fcn.00401493
jmp 0x4021e9
lea eax, [esi + 0xc]
push eax
push ebx
push ebx
push 0x8003
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4021e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x3c], eax
call fcn.0054f69d
push eax
lea ecx, [ebp - 0x1c]
call fcn.004018a6
push dword [esi + 0x3c]
lea eax, [ebp - 0x1c]
push str.::CryptCreateHash_m_hCryptProv__CALG_MD5__0__0__m_hHash____error__i
push eax
mov byte [ebp - 4], 4
call fcn.00401e49
mov edi, dword [ebp - 0x1c]
add esp, 0xc
jmp 0x402188
mov byte [esi + 0x38], 1
mov eax, esi
call fcn.0058c1c5
ret

Function at 0x408972
Capabilities:
Create process on windows

Disassembly:
push 1
xor eax, eax
push eax
push eax
push 0x641434
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret
Function at 0x40c843
Capabilities:
Log keystrokes

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.0040b8c5
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 1
call edi
mov ebx, dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
push 0
call ebx
mov ebp, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call ebp
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, dword [esi + 0xbac]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
call edi
push eax
push 0
call ebx
push eax
call ebp
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40d443
Capabilities:
Query environment variable

Disassembly:
push 4
mov eax, 0x626542
call fcn.0058c0ed
and dword [ebp - 0x10], 0
mov edi, dword [ebp + 8]
xor esi, esi
inc esi
mov ecx, edi
mov dword [ebp - 4], esi
call fcn.00401a45
mov dword [ebp - 0x10], esi
mov esi, 0x400
push esi
mov ecx, edi
call fcn.00401a81
push esi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00402e31
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00401493
mov eax, edi
call fcn.0058c1c5
ret 8