joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1051f50
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor edi, edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.0106d478
mov esi, dword [ebp + 8]
xor eax, eax
cmp dword [ebp + 0x20], edi
setne al
cmp byte [esi + 0x19], 0
mov dword [ebp + 0x20], eax
je 0x1051f7f
or dword [ebp + 0x20], 2
push ebx
push 0x7f02
push edi
mov edi, dword [sym.imp.USER32.dll_LoadCursorW]
call edi
mov ebx, dword [sym.imp.USER32.dll_SetCursor]
push eax
call ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 1
push dword [ebp + 0x20]
xor eax, eax
push eax
push eax
push eax
push dword [ebp + 0x10]
call sub.certcli.dll_Ordinal_210
push 0x7f00
push 0
mov dword [ebp + 0x20], eax
call edi
push eax
call ebx
cmp dword [ebp + 0x20], 0
je 0x1051fd7
push dword [ebp + 0x20]
and dword [ebp - 8], 0
push 0x1ef00ce
call fcn.01053610
mov ecx, dword [ebp + 0x24]
xor eax, eax
cmp eax, dword [ebp - 8]
sbb eax, eax
neg eax
push eax
push dword [ebp + 0x14]
mov dword [ecx], eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ebx, dword [ebp + 0x18]
mov edi, dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x1051efc
push 0xfffffffffffffffc
push ebx
call edi
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x1c]
push 0xffffffffffffffeb
push ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], eax
call edi
push esi
push 0xffffffffffffffeb
push dword [ebp + 0x1c]
call edi
push 0x3ce
lea ecx, [ebp - 0x10]
call fcn.0106d487
mov eax, dword [ebp - 0x10]
test eax, eax
pop ebx
jne 0x1052041
mov eax, 0x1001fe8
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov edi, 0x3cf
push edi
push dword [ebp + 0x10]
call esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0
push edi
push dword [ebp + 0x10]
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp - 4], 0
pop edi
pop esi
je 0x1052079
push dword [ebp - 4]
call sub.CRYPTUI.dll_CryptUIDlgFreeCAContext
lea ecx, [ebp - 0x10]
call fcn.0106d3cc
xor eax, eax
leave
ret 0x20
Function at 0x105208c
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
xor edi, edi
push edi
push edi
push 0xe
push dword [ebp + 8]
mov dword [eax], edi
call esi
mov ebx, eax
test ebx, ebx
jle 0x1052164
lea eax, [ebx + ebx + 2]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x10520dd
mov eax, 0x8007000e
push eax
push 0x5f00ce
mov esi, eax
call fcn.01053610
jmp 0x1052166
push edi
lea eax, [ebx + 1]
push eax
push 0xd
push dword [ebp + 8]
call esi
cmp ebx, eax
je 0x10520fa
mov eax, 0x80070018
push eax
push 0x6500ce
jmp 0x10520d1
push edi
mov ebx, edi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea esi, [edi + eax*2 - 2]
jmp 0x1052121
xor eax, eax
mov ax, word [esi]
push eax
call dword [sym.imp.ntdll.dll_iswspace]
test eax, eax
pop ecx
je 0x1052125
and word [esi], 0
dec esi
dec esi
cmp esi, edi
ja 0x105210a
cmp edi, esi
ja 0x1052164
xor eax, eax
mov ax, word [ebx]
test ax, ax
je 0x1052145
push eax
call dword [sym.imp.ntdll.dll_iswspace]
test eax, eax
pop ecx
je 0x1052145
inc ebx
inc ebx
cmp ebx, esi
jbe 0x1052129
cmp esi, ebx
jb 0x1052164
sub esi, ebx
shr esi, 1
lea eax, [esi + esi + 4]
push eax
push ebx
push edi
call dword [sym.imp.msvcrt.dll_memmove]
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [eax], edi
xor edi, edi
xor esi, esi
test edi, edi
je 0x1052171
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x105217f
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x1079e94]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x418], ebx
mov dword [ebp - 0x420], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov ecx, eax
xor eax, eax
inc eax
cmp ecx, ebx
mov dword [ebp - 0x41c], ecx
je 0x10521cf
cmp ecx, eax
je 0x10521cf
push ecx
push 0xf000ce
call fcn.01053610
jmp 0x105229b
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push ebx
push 0x147
push dword [esi + 0xc]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x41c], ebx
mov dword [esi + 0x14], 5
mov word [ebp - 0x20c], bx
mov word [ebp - 0x414], bx
call edi
lea ecx, [ebp - 0x20c]
push ecx
push eax
push 0x148
push dword [esi + 0xc]
call edi
push 0x104
lea eax, [ebp - 0x414]
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp - 0x20c], bx
pop edi
je 0x1052285
cmp word [ebp - 0x414], bx
je 0x1052285
push ebx
push ebx
lea eax, [ebp - 0x418]
push eax
push ebx
push ebx
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0106174a
cmp eax, ebx
mov dword [ebp - 0x41c], eax
jne 0x105229b
mov eax, dword [ebp - 0x418]
cmp eax, ebx
je 0x10522b7
mov ecx, dword [eax + 4]
mov dword [esi + 0x14], ecx
push dword [eax + 4]
call fcn.0103fdc7
test eax, eax
je 0x1052285
push 5
jmp 0x1052286
push ebx
push 0x3cf
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp - 0x418], ebx
je 0x10522af
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x420], ebx
je 0x10522bd
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x41c]
pop esi
pop ebx
call fcn.0104b509
leave
ret 4
Function at 0x10540bd
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x1079e94]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x94], edi
jne 0x1054102
mov eax, 0x80070057
push eax
push 0x67c019a
mov esi, eax
call fcn.01053610
jmp 0x1054254
push 0xf0000000
push 1
push 0x100caa0
push edi
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x105412f
call fcn.0106d6ff
mov esi, eax
push esi
push 0x68b019a
jmp 0x10540f8
lea eax, [ebp - 0x94]
push eax
push edi
push edi
push 0x8004
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x105415c
call fcn.0106d6ff
mov esi, eax
push esi
push 0x693019a
jmp 0x10540f8
push edi
push dword [esi]
push dword [esi + 4]
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x1054184
call fcn.0106d6ff
mov esi, eax
push esi
push 0x69b019a
jmp 0x10540f8
push edi
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x18]
push eax
push 2
push dword [ebp - 0x94]
mov dword [ebp - 0x9c], 0x14
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x10541be
call fcn.0106d6ff
mov esi, eax
push esi
push 0x6a2019a
jmp 0x10540f8
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x9c]
mov dword [ebp - 0xa0], 0x78
push 1
call fcn.0106d9aa
mov esi, eax
cmp esi, edi
je 0x10541f8
push esi
push 0x6ac019a
jmp 0x10540f8
cmp word [ebp - 0x90], di
lea eax, [ebp - 0x90]
mov ecx, eax
je 0x105421e
mov dx, word [ecx]
cmp dx, 0x20
je 0x1054217
mov word [eax], dx
inc eax
inc eax
inc ecx
inc ecx
cmp word [ecx], di
jne 0x1054209
push dword [ebp - 0xa0]
mov word [eax], di
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, edi
mov dword [ebx], eax
jne 0x1054244
mov eax, 0x8007000e
push eax
push 0x6c3019a
jmp 0x10540f6
lea ecx, [ebp - 0x90]
push ecx
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
cmp dword [ebp - 0x94], edi
je 0x1054268
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x98], edi
je 0x105427d
push edi
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.0104b509
leave
ret 8
Function at 0x1054594
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
xor esi, esi
push eax
push esi
push dword [ebp + 8]
mov dword [edi], esi
mov dword [ebp + 0xc], esi
call sub.Secur32.dll_GetComputerObjectNameW
test al, al
jne 0x10545d3
call fcn.0106d6ff
mov ebx, eax
cmp ebx, 0x8007007a
je 0x10545d3
push ebx
push 0x8d3019a
call fcn.01053610
jmp 0x105462b
mov eax, dword [ebp + 0xc]
add eax, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x10545fa
mov eax, 0x8007000e
push eax
mov ebx, eax
push 0x8db019a
call fcn.01053610
jmp 0x1054620
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call sub.Secur32.dll_GetComputerObjectNameW
test al, al
jne 0x105461a
call fcn.0106d6ff
mov ebx, eax
push ebx
push 0x8e1019a
jmp 0x10545f3
mov dword [edi], esi
xor esi, esi
xor ebx, ebx
test esi, esi
je 0x105462b
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8

Function at 0x1055478
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [0x107c69c], 0
mov eax, dword [0x1079e94]
mov dword [ebp - 4], eax
jne 0x10554fb
push esi
xor esi, esi
lea eax, [ebp - 0x118]
inc esi
push eax
mov dword [0x107c69c], esi
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x10554cb
call fcn.0106d6ff
push eax
push 0x1163019a
call fcn.01053610
jmp 0x10554fa
cmp dword [ebp - 0x108], 2
je 0x10554e0
push 0x4c7
push 0x1168019a
jmp 0x10554c4
cmp dword [ebp - 0x114], 5
ja 0x10554f4
jb 0x10554fa
cmp dword [ebp - 0x110], 0
jbe 0x10554fa
mov dword [0x107c698], esi
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [0x107c698]
call fcn.0104b509
leave
ret
Function at 0x105611d
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x24]
xor eax, eax
cmp dword [ebp + 0x14], eax
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov dword [ebx], eax
je 0x105613b
or edi, 0x20
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push edi
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
test eax, eax
je 0x105618e
mov eax, dword [ebx]
test eax, eax
je 0x1056164
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
and dword [ebx], 0
mov eax, edi
or eax, 0x10
push eax
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
test eax, eax
jne 0x105618e
call fcn.0106d6ff
mov esi, eax
push esi
push 0x4a01a3
call fcn.01053610
jmp 0x10561dc
or edi, 8
push edi
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
test eax, eax
jne 0x10561b1
call fcn.0106d6ff
mov esi, eax
push esi
push 0x5801a3
jmp 0x1056187
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x20]
shl eax, 0x10
push eax
push dword [ebp + 0x18]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
jne 0x10561da
call fcn.0106d6ff
mov esi, eax
push esi
push 0x6001a3
jmp 0x1056187
xor esi, esi
cmp dword [ebp - 4], 0
je 0x10561eb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x20
Function at 0x1056bfa
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0x10], 0
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
lea ebx, [esi + 0x40]
push ebx
push 0
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 4], eax
je 0x1056ca0
jmp 0x1056c27
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp - 4]
mov ecx, esi
mov esi, dword [ebp + 0xc]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push ebx
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push esi
xor edi, edi
push edi
push 1
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x1056cbd
call fcn.0106d6ff
cmp dword [ebp - 0x10], edi
mov dword [ebp - 0xc], eax
jne 0x1056cb5
cmp eax, 0x800700ea
jne 0x1056cb5
cmp ebx, edi
mov eax, esi
je 0x1056c7a
mov byte [eax], 0
inc eax
dec ebx
jne 0x1056c73
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [ebp - 8]
mov eax, dword [ebp + 0x10]
push ebx
push edi
mov dword [ebp - 0x10], 1
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x1056c24
mov eax, 0x8007000e
push eax
mov dword [ebp - 0xc], eax
push 0x4df01a3
call fcn.01053610
jmp 0x1056cd0
push eax
push 0x4fb01a3
jmp 0x1056cae
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov dword [eax], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
cmp dword [ebp - 4], 0
pop edi
pop esi
pop ebx
je 0x1056ce2
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0xc]
leave
ret 0x14

Function at 0x1056cee
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
mov dword [eax], edi
mov eax, dword [ebp + 0x18]
push esi
push edi
mov dword [eax], edi
mov dword [ebp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
cmp ebx, edi
jne 0x1056d2a
mov eax, 0x8007000e
push eax
push 0x52201a3
mov esi, eax
call fcn.01053610
jmp 0x1056d87
mov ecx, esi
mov esi, dword [ebp + 0xc]
mov eax, ecx
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp + 0x10]
push eax
push ebx
push 0
push 1
push 0
push dword [ebp + 8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x1056d6b
call fcn.0106d6ff
mov esi, eax
push esi
push 0x52f01a3
call fcn.01053610
jmp 0x1056d7c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ecx], eax
xor esi, esi
test ebx, ebx
je 0x1056d87
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x10574b3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x1079e94]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x130]
push eax
push 0x100ffe4
mov dword [ebp - 0x13c], edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x10574f2
cmp eax, esi
jb 0x10574fb
mov word [ebp - 0x130], 0x5c
lea eax, [ebp - 0x130]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1057504
sub eax, edx
je 0x1057519
cmp byte [ebp + eax - 0x131], 0x5c
je 0x1057522
mov byte [ebp + eax - 0x130], 0x5c
inc eax
push dword [ebp + 0x10]
lea eax, [ebp + eax - 0x130]
push dword [ebp + 0xc]
push 0x100ffd4
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
lea eax, [ebp - 0x130]
push 0x1007fdc
push eax
call dword [sym.imp.msvcrt.dll_fopen]
mov ebx, eax
xor eax, eax
add esp, 0x18
cmp ebx, eax
jne 0x105756f
call dword [sym.imp.msvcrt.dll__errno]
push dword [eax]
push 0x96001a3
call fcn.01053610
jmp 0x105768e
cmp dword [edi + 0xc], eax
mov dword [ebp - 0x134], eax
jbe 0x1057686
mov edi, dword [sym.imp.msvcrt.dll_fprintf]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp - 0x138]
test eax, eax
mov esi, dword [eax + ecx]
jbe 0x10575ae
push ebx
push 0x1007fa0
call dword [sym.imp.msvcrt.dll_fputs]
pop ecx
pop ecx
push dword [ebp - 0x134]
push 0x100ffc0
push ebx
call edi
mov eax, dword [esi + 4]
add esp, 0xc
push 0
push dword [eax + 8]
push dword [eax + 4]
push ebx
call fcn.010573bc
test eax, eax
jne 0x105766b
mov esi, dword [esi + 0x10]
test esi, esi
je 0x1057647
cmp dword [esi], 0x1c
jb 0x1057647
mov esi, dword [esi + 0x18]
test esi, esi
je 0x1057647
mov eax, dword [esi + 4]
test eax, eax
je 0x1057619
push eax
call fcn.0105743b
push eax
push 0x100ffb4
push ebx
call edi
mov eax, dword [esi + 4]
add esp, 0xc
push 9
push dword [eax + 8]
push dword [eax + 4]
push ebx
call fcn.010573bc
test eax, eax
jne 0x1057673
mov eax, dword [esi + 8]
test eax, eax
je 0x1057647
push eax
call fcn.0105743b
push eax
push 0x100ffa4
push ebx
call edi
mov esi, dword [esi + 8]
add esp, 0xc
push 9
push dword [esi + 8]
push dword [esi + 4]
push ebx
call fcn.010573bc
test eax, eax
jne 0x105767b
inc dword [ebp - 0x134]
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x134]
add dword [ebp - 0x138], 4
cmp ecx, dword [eax + 0xc]
jb 0x105758a
jmp 0x1057686
push eax
push 0x97201a3
jmp 0x1057681
push eax
push 0x98b01a3
jmp 0x1057681
push eax
push 0x99801a3
call fcn.01053610
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0104b509
leave
ret 0xc
Function at 0x10576a2
Capabilities:
Hash data using sha1
Initialize hashing via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000000
push 1
xor edi, edi
push 0x100caa0
push edi
mov dword [esi], edi
push esi
mov dword [ebx], edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x10576e4
mov dword [esi], edi
call fcn.0106d6ff
mov ebx, eax
push ebx
push 0x9b801a3
call fcn.01053610
jmp 0x105770b
push ebx
push edi
push edi
push 0x8004
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1057709
mov dword [ebx], edi
call fcn.0106d6ff
mov ebx, eax
push ebx
push 0x9bf01a3
jmp 0x10576dd
xor ebx, ebx
cmp ebx, edi
je 0x1057733
mov eax, dword [esi]
cmp eax, edi
je 0x1057733
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x1057731
call fcn.0106d6ff
push ebx
push 0x9ca01a3
call fcn.01053610
mov dword [esi], edi
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
Function at 0x105949a
Capabilities:
Generate random numbers via winapi
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x1079e94]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 4], eax
xor edi, edi
lea eax, [ebp - 0x48]
push eax
push edi
push edi
push dword [ebp + 0x10]
mov dword [ebp - 0x4c], edi
push dword [ebp + 8]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x50], edi
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x10594e8
call fcn.0106d6ff
mov esi, eax
push esi
push 0x19601a4
call fcn.01053610
jmp 0x1059612
lea eax, [ebp - 0x44]
push eax
push 0x40
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x105950a
call fcn.0106d6ff
mov esi, eax
push esi
push 0x19c01a4
jmp 0x10594de
push edi
push 0x40
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x105952d
call fcn.0106d6ff
mov esi, eax
push esi
push 0x1a101a4
jmp 0x10594de
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSignHashW]
lea eax, [ebp - 0x54]
push eax
push edi
push edi
push edi
push 2
push dword [ebp - 0x48]
call esi
test eax, eax
jne 0x1059554
call fcn.0106d6ff
mov esi, eax
push esi
push 0x1a701a4
jmp 0x10594de
push dword [ebp - 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, edi
mov dword [ebp - 0x50], eax
jne 0x1059577
mov eax, 0x8007000e
push eax
mov esi, eax
push 0x1ad01a4
jmp 0x10594de
lea ecx, [ebp - 0x54]
push ecx
push eax
push edi
push edi
push 2
push dword [ebp - 0x48]
call esi
test eax, eax
jne 0x105959b
call fcn.0106d6ff
mov esi, eax
push esi
push 0x1b201a4
jmp 0x10594de
cmp ebx, edi
lea eax, [ebp - 0x4c]
push eax
je 0x10595c5
push ebx
push 1
push dword [ebp + 8]
call dword [sym.imp.CRYPT32.dll_CryptImportPublicKeyInfo]
test eax, eax
jne 0x10595e6
call fcn.0106d6ff
mov esi, eax
push esi
push 0x1c001a4
jmp 0x10594de
push 2
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetUserKey]
test eax, eax
jne 0x10595e6
call fcn.0106d6ff
mov esi, eax
push esi
push 0x1ca01a4
jmp 0x10594de
push edi
push edi
push dword [ebp - 0x4c]
push dword [ebp - 0x54]
push dword [ebp - 0x50]
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureW]
test eax, eax
jne 0x1059610
call fcn.0106d6ff
mov esi, eax
push esi
push 0x1d101a4
jmp 0x10594de
xor esi, esi
cmp dword [ebp - 0x48], edi
je 0x1059620
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x4c], edi
je 0x105962e
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 0x50], edi
je 0x105963c
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.0104b509
leave
ret 0xc
Function at 0x1059a43
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
push 0x10
pop eax
je 0x1059a54
push 0x30
pop eax
push eax
push 1
push 0
push dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
pop ebp
ret 8
Function at 0x105ddca
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
xor esi, esi
push eax
mov dword [ebp - 8], esi
call fcn.0105dd16
cmp eax, esi
mov dword [ebp - 4], eax
je 0x105ddf7
push eax
push 0x19a0197
jmp 0x105df11
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0xc]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.certadm.dll_Ordinal_9]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x105de1c
push eax
push 0x19f0197
jmp 0x105df11
push esi
push esi
push 1
push esi
push esi
push 0x40000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x105de53
call fcn.0106d6ff
push eax
push 0x1ae0197
push dword [ebp + 0x10]
mov dword [ebp - 4], eax
call fcn.0105364b
jmp 0x105defe
mov ecx, dword [ebp - 0xc]
push ebx
xor eax, eax
add ecx, dword [ebp - 0x20]
push edi
mov edx, eax
adc edx, dword [ebp - 0x1c]
push eax
push dword [ebp - 0xc]
sub ecx, 1
sbb edx, esi
push edx
push ecx
call sub.ntdll.dll__alldiv
cmp dword [ebp - 0x20], esi
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x18], eax
jne 0x105de82
cmp dword [ebp - 0x1c], esi
je 0x105dee9
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.certadm.dll_Ordinal_11]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x105df32
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x105df3f
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x14], eax
jne 0x105df57
sub dword [ebp - 0x20], eax
sbb dword [ebp - 0x1c], esi
add ebx, dword [ebp + 0x18]
xor edx, edx
mov eax, ebx
div dword [ebp - 0x18]
add eax, dword [ebp + 0x14]
cmp dword [ebp - 0x20], esi
mov dword [edi], eax
jne 0x105de84
cmp dword [ebp - 0x1c], esi
jne 0x105de84
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
add eax, ecx
mov dword [edi], eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
push dword [ebp + 8]
call dword [sym.imp.certadm.dll_Ordinal_5]
cmp eax, esi
je 0x105df16
push eax
push 0x1e20197
call fcn.01053610
cmp dword [ebp - 8], esi
je 0x105df2a
push 0x8000
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 4]
pop esi
leave
ret 0x18
push eax
push 0x1bc0197
call fcn.01053610
jmp 0x105def3
call fcn.0106d6ff
push eax
push 0x1c30197
push dword [ebp + 0x10]
mov dword [ebp - 4], eax
call fcn.0105364b
jmp 0x105def3
mov eax, 0x80070026
push eax
push 0x1c80197
jmp 0x105df4a