joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405bec
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42bca0
push esi
call fcn.00406166
push esi
call fcn.00405b97
mov edi, eax
test edi, edi
jne 0x405c0d
xor eax, eax
jmp 0x405c5f
push edi
call fcn.004063d0
test byte [0x42f43c], 0x80
je 0x405c26
mov al, byte [edi]
test al, al
je 0x405c09
cmp al, 0x5c
je 0x405c09
sub edi, esi
jmp 0x405c3e
call fcn.00406469
test eax, eax
je 0x405c38
test byte [eax], 0x10
je 0x405c09
push esi
call fcn.00405b45
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405c2a
call fcn.00405afe
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405cda
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405cf9
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x405cff
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405d2e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a3cc]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405d73
test edi, edi
jne 0x405d39
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405d6d
Function at 0x405dd5
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x42c628], 0x4c554e
mov edi, 0x400
mov ebp, 0x42c628
je 0x405e21
push 1
push 0
push esi
call fcn.00405cff
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405f40
cmp eax, edi
jg 0x405f40
mov esi, 0x42ca28
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405f40
cmp eax, edi
jg 0x405f40
push esi
push ebp
push str._s_s_r_n
push 0x42c228
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42f434]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406188
push 4
push 0xc0000000
push esi
call fcn.00405cff
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x405f40
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405f39
push edi
push esi
push ebp
call fcn.00405d77
test eax, eax
je 0x405f39
push str._Rename__r_n
push esi
call fcn.00405c64
test eax, eax
jne 0x405ed7
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405f0c
add eax, 0xa
push 0x40a3d0
push eax
call fcn.00405c64
mov ebp, eax
test ebp, ebp
je 0x405f08
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405ef9
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405ef3
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405f0e
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x42c228
push eax
call fcn.00405cba
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405da6
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405f45
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x405f68
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405dd5
pop ecx
pop ecx
inc dword [0x42f4d0]
ret 8

Function at 0x40604d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x400
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405fec
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x4060bc
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and byte [esi + 0x3ff], 0
test edi, edi
pop edi
jne 0x4060bc
cmp dword [ebp + 0xc], 1
je 0x4060bf
cmp dword [ebp + 0xc], 2
je 0x4060bf
and byte [esi], 0
pop esi
leave
ret 0x14
Function at 0x406490
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x4064b4
xor eax, eax
test eax, eax
je 0x4064c6
cmp byte [ebp + eax - 0x121], 0x5c
je 0x4064c6
xor ecx, ecx
jmp 0x4064c9
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x4065b5
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42ce2c], 0
push esi
jne 0x4065ec
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4065c6
mov dword [ecx*4 + 0x42ce28], eax
inc ecx
cmp ecx, 0x100
jl 0x4065c1
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40661d
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42ce28]
xor eax, esi
inc ecx
dec edx
jne 0x4065ff
pop edi
not eax
pop esi
ret 0xc
Function at 0x61173330
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
push 0
lea eax, [ebp - 0x10c]
mov si, dx
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.ntdll.dll_RtlGetNtVersionNumbers]
cmp dword [ebp - 0x110], 6
jne 0x6117336b
movzx eax, si
cmp dword [ebp - 0x10c], eax
sbb al, al
inc al
jmp 0x6117336e
seta al
pop esi
leave
ret

Function at 0x61173b05
Capabilities:
Inspect section memory permissions

Disassembly:
add byte [eax], al
cmp eax, ebx
je 0x61173b64
add eax, esi
cmp dword [eax], ebx
je 0x61173b64
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x61173b5f
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x61173b49
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x61173b51
cmp edx, ebx
jne 0x61173c9f
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x61173b20
add eax, dword [eax + 4]
jmp 0x61173b0d
mov dword [ebp + 0xc], ebx
jmp 0x61173b6f
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x61173b87
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x61173ba5
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x61173c03
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x61173bea
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x61173bf3
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x61173bfd
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x61173bdf
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x61173b69
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x61173c50
dec eax
je 0x61173c47
sub eax, 3
je 0x61173c3e
mov dword [ebp - 4], 0x40
jmp 0x61173c6d
mov dword [ebp - 4], 4
jmp 0x61173c53
mov dword [ebp - 4], 0x20
jmp 0x61173c53
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x61173c9f
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x61173c1f
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.611734b0
movsd dword es:[edi], dword [esi]
sub ecx, edx
das
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x61173cab
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6117619d
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x18], ecx
push 7
pop ecx
push eax
lea edi, [ebp - 0x34]
mov dword [ebp - 8], eax
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
mov ebx, eax
mov dword [ebp - 4], eax
mov esi, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 7
push edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], 0x661e
call edi
test eax, eax
jne 0x611761eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x611762d0
push 0xf0000000
push 0x50
push 0
push 0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x611761de
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, dword [ebp - 0x18]
push eax
push dword [ebp - 0x14]
call fcn.6117bc5a
pop ecx
pop ecx
test eax, eax
je 0x611761de
push 0
push dword [ebp + 8]
push 1
push dword [ebp - 4]
call edi
test eax, eax
je 0x611761de
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x34]
push eax
push 0x2c
push 0x10001
call dword [sym.imp.CRYPT32.dll_CryptEncodeObject]
test eax, eax
je 0x611761de
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
add edi, 0xc
push eax
push 0x40
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x10], eax
test eax, eax
jne 0x6117627e
mov esi, 0x8007000e
jmp 0x611762d0
cmp dword [ebp + 0x1c], ebx
jne 0x61176292
push dword [edi]
push 0x69
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
jmp 0x611762cd
push edi
push eax
lea eax, [ebp - 0x34]
push eax
push 0x2c
push 0x10001
call dword [sym.imp.CRYPT32.dll_CryptEncodeObject]
test eax, eax
je 0x611761de
push dword [edi]
mov eax, dword [ebp + 0xc]
push edi
push dword [eax + 0x10]
push 0
push 1
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x611761de
xor ebx, ebx
inc ebx
cmp dword [ebp - 4], 0
je 0x611762df
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 8], 0
je 0x611762f0
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test ebx, ebx
jne 0x611762ff
test esi, esi
je 0x611762ff
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x61176b5e
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], edx
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [esi + 0xc]
push eax
push 0x40
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x61176b99
push 0x8009000e
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x61176c86
push dword [ebp - 8]
push dword [esi + 0x10]
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [ebp - 8]
push eax
push ebx
push edi
push 1
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x61176c86
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 0x8000
push dword [ebp - 8]
push ebx
push 0x2c
push 0x10001
call dword [sym.imp.CRYPT32.dll_CryptDecodeObjectEx]
test eax, eax
je 0x61176c86
mov eax, dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push str.1.2.643.2.2.19
push dword [eax + 4]
call esi
test eax, eax
jne 0x61176c07
mov eax, 0x661f
jmp 0x61176c38
mov eax, dword [ebp - 4]
push str.1.2.643.7.1.1.1.1
push dword [eax + 4]
call esi
test eax, eax
je 0x61176c33
mov eax, dword [ebp - 4]
push str.1.2.643.7.1.1.1.2
push dword [eax + 4]
call esi
test eax, eax
je 0x61176c33
push 0x80090008
jmp 0x61176b8e
mov eax, 0x6621
push edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 7
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x61176c86
mov eax, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
mov eax, dword [eax + 0x10]
push eax
push 0x40
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
test ecx, ecx
je 0x61176b89
mov eax, dword [ebp - 4]
push dword [esi]
push dword [eax + 0x14]
push ecx
call sub.msvcrt.dll_memcpy
xor edi, edi
add esp, 0xc
inc edi
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push ebx
call esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6117703e
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 8], 0
push ebx
push esi
mov dword [ebp - 0x14], edx
lea edx, [ebp - 8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x14]
push edi
call fcn.611767c6
mov ebx, dword [ebp - 8]
test eax, eax
je 0x61177081
mov edx, dword [ebp - 0x10]
lea esi, [ebp + 8]
sub esp, 0x18
push 6
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.61176d6f
add esp, 0x18
test eax, eax
jne 0x611770a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test ebx, ebx
je 0x61177096
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test esi, esi
je 0x611770a1
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x6117719f
and dword [ebp - 0xc], 0
lea eax, [ebp - 4]
push eax
push 2
push ebx
mov dword [ebp - 0x10], 4
call dword [sym.imp.ADVAPI32.dll_CryptGetUserKey]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetKeyParam]
test eax, eax
je 0x611770f0
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 7
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov esi, dword [ebp + 0x14]
mov dword [esi + 8], 2
jmp 0x611770f3
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptGetUserKey]
test eax, eax
je 0x61177125
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 7
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov dword [esi + 8], 1
mov edx, dword [esi + 4]
cmp dword [edx], 0
je 0x6117718f
mov ecx, dword [ebp - 0xc]
call fcn.6117bb4f
mov edi, eax
cmp dword [edx + 8], edi
je 0x61177157
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.6117678c
mov ecx, dword [esi + 4]
mov edx, edi
push eax
call fcn.61176f6f
mov ebx, dword [ebp - 8]
pop ecx
pop ecx
mov eax, dword [0x61185a08]
cmp eax, 0xffffffff
je 0x6117718f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x6117718f
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptContextAddRef]
test eax, eax
je 0x6117718f
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [ecx + edx*4], ebx
inc dword [esi + 0xc]
mov ecx, dword [ebp - 0x14]
push 0
mov dword [ecx], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6117b35a
Capabilities:
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], edx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push ebx
push ebx
push dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0xc], ebx
push ecx
movlpd qword [ebp - 0x18], xmm0
mov edi, ebx
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x6117b3a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x6117b4c1
mov eax, dword [ebp - 0x10]
mov esi, 0x6117f4b4
push ebx
push ebx
push ebx
push ebx
test eax, eax
push 0xffffffffffffffff
cmovne esi, eax
push esi
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x6117b394
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x6117b3e2
mov edi, 0x8009000e
jmp 0x6117b4c1
push ebx
push ebx
push dword [ebp - 0x18]
push eax
push 0xffffffffffffffff
push esi
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x6117b394
cmp eax, 1
je 0x6117b407
dec eax
mov dword [ebp - 0x18], eax
cmp dword [ebp + 8], 0x803f
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
jne 0x6117b431
push ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x800c
push eax
push 0x22
push dword [ebp - 4]
call esi
test eax, eax
je 0x6117b394
push ebx
lea eax, [ebp - 0x18]
push eax
push 0x18
push dword [ebp - 4]
call esi
test eax, eax
je 0x6117b394
push ebx
lea eax, [ebp + 0xc]
push eax
push 0x19
push dword [ebp - 4]
call esi
test eax, eax
je 0x6117b394
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
push 0x17
push dword [ebp - 4]
call esi
test eax, eax
je 0x6117b394
mov esi, dword [ebp + 0x1c]
mov eax, dword [esi]
push eax
push 0x40
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 8], eax
test eax, eax
je 0x6117b3d8
push ebx
lea ecx, [ebp - 0xc]
push ecx
push eax
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x6117b394
push dword [esi]
push dword [ebp - 8]
push dword [esi + 4]
call sub.msvcrt.dll_memcpy
xor ebx, ebx
add esp, 0xc
inc ebx
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push dword [ebp - 0x14]
call esi
cmp dword [ebp - 4], 0
je 0x6117b4e0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test ebx, ebx
jne 0x6117b4ef
test edi, edi
je 0x6117b4ef
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x6117b8d5
Capabilities:
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], edx
push esi
push edi
mov edi, ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
je 0x6117ba49
cmp dword [ebp + 0x20], ebx
je 0x6117ba49
push 0x1c
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x6117b91d
push 0x8009000e
jmp 0x6117ba4b
mov ecx, dword [ebp + 8]
mov edx, esi
call fcn.6117b27c
test eax, eax
je 0x6117ba09
mov edx, dword [ebp - 0x10]
lea eax, [esi + 0x14]
push eax
push ecx
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0xc]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi]
call fcn.6117b35a
add esp, 0x18
test eax, eax
jne 0x6117b95e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x6117ba09
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push dword [esi + 4]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x6117b951
push ebx
push dword [esi + 0x18]
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
je 0x6117b951
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp - 8]
push dword [esi + 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x6117b951
push ebx
lea eax, [esi + 0xc]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x6117b951
push ebx
push dword [ebp + 0x18]
push 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x6117b951
cmp dword [esi + 8], 0x661e
jne 0x6117b9fe
push ebx
lea eax, [esi + 0x10]
push eax
push 0x65
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x6117b951
push ebx
push dword [ebp + 0x1c]
push 0x68
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x6117b951
mov ecx, dword [ebp + 0x20]
xor ebx, ebx
mov eax, dword [ebp - 4]
inc ebx
mov dword [ecx], eax
push dword [esi + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push dword [ebp - 0x14]
call esi
cmp dword [ebp - 8], 0
je 0x6117ba28
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test ebx, ebx
jne 0x6117ba45
cmp dword [ebp - 4], ebx
je 0x6117ba3a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test edi, edi
je 0x6117ba45
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
jmp 0x6117ba53
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6117c69f
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x611839c8
call fcn.611732d4
mov edi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x6117c703
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x6117c703
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x6117c703
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x6117c703
or dword [ebp - 4], 0xffffffff
mov al, 1
jmp 0x6117c709
or dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret