joyce8/EMBER2024-capa huggingface dataset:
Function at 0x494267
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [0x4ab00c], esi
jne 0x4942be
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x492c6f
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4ab00c], eax
cmp eax, esi
je 0x49e4ec
push 0xffffffffffffffff
push dword [0x4ab014]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x4ab014]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [0x4ab018], esi
jl 0x49e50a
pop esi
leave
ret

Function at 0x494441
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x494498
call fcn.00492712
xor eax, eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x494490
cmp ecx, 0xffffffff
je 0x494490
and dword [ebp - 4], eax
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0x494489
mov edx, dword [ecx + 0x3c]
test edx, edx
jl 0x494489
cmp edx, 0x10000000
jae 0x494489
lea eax, [edx + ecx]
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x49e892
mov dword [ebp - 4], 0xfffffffe
call fcn.00492757
ret 4

Function at 0x49681f
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4ab004]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, ecx
inc eax
cmp dword [esi + 0x2c], 0
jne 0x496933
push edi
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x105
push edi
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x420], eax
cmp eax, edi
ja 0x49ed16
lea eax, [ebp - 0x41c]
push eax
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.004921cb
test eax, eax
jl 0x496932
mov ecx, dword [ebp - 0x420]
cmp word [ebp + ecx*2 - 0x210], 0x5c
je 0x4968c3
push 0x496994
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.00492436
test eax, eax
jl 0x496932
push 0x496980
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.00492436
test eax, eax
jl 0x496932
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x2c], eax
test eax, eax
je 0x49ed20
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x496970
push eax
call edi
push 0x49695c
push dword [esi + 0x2c]
mov dword [esi + 0x30], eax
call edi
push 0x496948
push dword [esi + 0x2c]
mov dword [esi + 0x34], eax
call edi
cmp dword [esi + 0x30], 0
mov dword [esi + 0x38], eax
je 0x496940
cmp dword [esi + 0x34], 0
je 0x496940
test eax, eax
je 0x496940
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004920d4
leave
ret
mov eax, 0x8007007f
jmp 0x496932
Function at 0x4971f8
Capabilities:
Identify system language via api

Disassembly:
push 0x2c
mov eax, 0x4a608c
call fcn.004939dd
lea ecx, [ebp - 0x34]
call fcn.00496c55
and dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
push 0
call fcn.0049758b
test eax, eax
jl 0x49722c
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004972a7
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx esi, ax
mov eax, 0x409
mov edi, 0x497298
cmp ax, si
jne 0x49e4b4
and esi, 0x3ff
push esi
push edi
lea eax, [ebp - 0x30]
push 8
push eax
call fcn.00491451
add esp, 0x10
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0049758b
mov esi, eax
test esi, esi
jl 0x497280
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004972a7
mov esi, eax
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
call fcn.0049760b
mov eax, esi
call fcn.00492b9f
ret

Function at 0x49791d
Capabilities:
Identify system language via api

Disassembly:
lea eax, [ebp - 0x30]
push eax
call esi
push 8
pop eax
push dword [ebp + 0x10]
mov word [ebp - 0x30], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x49dc4f
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 0x82
lea edx, [ebp - 0x30]
push edx
push 0x497900
push eax
call dword [ecx + 0x10]
mov esi, eax
lea eax, [ebp - 0x30]
push eax
call edi
cmp esi, ebx
jl 0x4979a8
push 1
lea ecx, [ebp - 0x20]
call fcn.004979e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x20]
push edx
push 0x4978ec
push eax
call dword [ecx + 0x10]
mov esi, eax
lea eax, [ebp - 0x20]
push eax
call edi
push eax
call fcn.004971e0
cmp esi, ebx
jl 0x4979a8
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
push 3
movzx eax, ax
pop ecx
mov word [ebp - 0x20], cx
mov dword [ebp - 0x18], eax
jmp 0x497992
push 0x24
mov eax, 0x4a5c85
call fcn.004926dd
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x20]
push eax
call esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
mov dword [ebp - 0x10], ebx
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp + 0xc], ebx
je 0x497854
push 1
lea ecx, [ebp - 0x20]
call fcn.004979e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x20]
push edx
push 0x493984
push eax
call dword [ecx + 0x10]
cmp eax, ebx
jl 0x4979a6
push 3
pop eax
mov word [ebp - 0x20], ax
mov dword [ebp - 0x18], 0x409
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x20]
push edx
push 0x4979d0
push eax
call dword [ecx + 0x10]
mov esi, eax
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.00497455
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20]
push eax
call edi
push eax
call fcn.004971e0
mov eax, esi
call fcn.00491390
ret 0xc
Function at 0x497b05
Capabilities:
Identify system language via api

Disassembly:
push 0x50
mov eax, 0x4a5fc0
call fcn.004939dd
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x5c], ecx
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x54], esi
call fcn.00497c2b
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x58]
mov ebx, eax
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, si
jne 0x497b34
sub eax, ecx
sar eax, 1
mov edi, eax
je 0x497b63
movzx eax, word [ebx + esi*2]
push eax
call dword [sym.imp.msvcrt.dll_iswxdigit]
pop ecx
test eax, eax
je 0x497b5b
inc esi
cmp esi, edi
jb 0x497b46
cmp esi, edi
jb 0x497c0e
xor eax, eax
mov edx, ebx
test edi, edi
jbe 0x497c0e
cmp word [edx], 0x30
jne 0x497b7c
inc eax
inc edx
inc edx
cmp eax, edi
jb 0x497b6f
cmp eax, edi
jae 0x497c0e
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x497b89
sub eax, esi
sar eax, 1
cmp eax, 3
ja 0x497c0e
push 0x10
push 0
push edx
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
movzx esi, ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
cmp cx, si
jne 0x497c03
movzx eax, ax
movzx eax, ax
push eax
push 0x497c18
lea eax, [ebp - 0x50]
push 0x20
push eax
call fcn.00491451
mov ecx, dword [ebp - 0x5c]
add esp, 0x10
lea eax, [ebp - 0x50]
push eax
call fcn.00496c60
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x58]
lea ecx, [ebp - 0x58]
call fcn.0049760b
mov eax, dword [ebp - 0x54]
call fcn.00492b9f
ret 8
or esi, 0x400
movzx eax, si
jmp 0x497bc6
mov dword [ebp - 0x54], 0x80041001
jmp 0x497be9
Function at 0x497f3e
Capabilities:
Create directory

Disassembly:
push 0x10
mov eax, 0x4a6a7d
call fcn.00491350
mov dword [ebp - 0x1c], ecx
xor esi, esi
mov ebx, 0x8007000e
mov dword [ebp - 0x14], esi
cmp dword [ebp + 8], esi
je 0x498046
push 1
call fcn.0049227c
mov dword [ebp - 0x18], eax
cmp eax, esi
je 0x49803c
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call esi
push dword [ebp + 8]
mov edi, eax
call esi
lea esi, [eax + edi + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004913e0
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x497fcd
push dword [ebp - 0x18]
inc edi
push edi
push eax
call fcn.004921cb
mov ebx, eax
test ebx, ebx
jl 0x498024
push dword [ebp + 8]
push esi
push dword [ebp - 0x14]
call fcn.00492436
mov ebx, eax
test ebx, ebx
jl 0x498024
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0x498024
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x497ff6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x49f33c
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0x498024
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x44], eax
cmp eax, 0xffffffff
je 0x49f353
cmp dword [ebp - 0x14], 0
je 0x498033
push dword [ebp - 0x14]
call fcn.004913c0
pop ecx
push dword [ebp - 0x18]
call fcn.004913c0
pop ecx
mov eax, ebx
call fcn.00491390
ret 4
mov ebx, 0x80070057
jmp 0x49803c

Function at 0x4985f1
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4ab004]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x44]
test eax, eax
je 0x498684
cmp eax, 0xffffffff
je 0x498684
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x498684
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
and dword [ebp - 0xc], 0
push ebx
call esi
push ebx
mov dword [ebp - 0x10], eax
call esi
lea esi, [eax + eax + 2]
mov eax, esi
call fcn.004985b5
mov eax, esp
push esi
push ebx
push eax
call fcn.00498692
mov esi, dword [ebp - 0x10]
mov edi, dword [edi + 0x44]
push 0
lea ecx, [ebp - 0xc]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x49f2da
cmp esi, dword [ebp - 0xc]
jne 0x49f2f6
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004920d4
leave
ret 4
mov dword [ebp - 8], 0x80070057
jmp 0x49866d
Function at 0x4988ef
Capabilities:
Get geographical location

Disassembly:
push 0x210
mov eax, 0x4a6be9
call fcn.004920e6
xor eax, eax
push 0x1fe
mov word [ebp - 0x214], ax
xor ebx, ebx
lea eax, [ebp - 0x212]
push ebx
push eax
call sub.msvcrt.dll_memset
mov esi, dword [ebp + 8]
add esp, 0xc
push 0x100
lea eax, [ebp - 0x214]
push eax
push 0x1001
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [ebp - 0x214]
and esi, 0x3ff
push eax
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x218], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
add esi, 7
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004913e0
mov edi, eax
pop ecx
cmp edi, ebx
je 0x498999
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x21c]
push 0x4989a4
push esi
push edi
call fcn.00491451
add esp, 0x14
mov eax, edi
call fcn.00492126
ret 4
Function at 0x4a0d7d
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
push edi
lea eax, [ecx + eax + 0x18]
test esi, esi
jbe 0x4a0dba
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x4a0db2
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x4a0dbc
inc edx
add eax, 0x28
cmp edx, esi
jb 0x4a0da2
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x403700
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
test edi, edi
js 0x40377d
mov esi, dword [ebp + 8]
mov ecx, 1
mov edx, dword [esi]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x403737
push edi
mov ecx, esi
call fcn.004036a0
mov edx, dword [esi]
push edi
push edx
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, eax
mov ecx, edi
cmp edi, 0xffffffff
jne 0x40375e
mov ecx, dword [esi]
test ecx, ecx
je 0x403762
push dword [ecx - 8]
push ecx
call fcn.00488d0c
add esp, 8
mov ecx, eax
test ecx, ecx
js 0x40377d
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x40377d
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
push 0x80070057
call fcn.00403bb0
int3
Function at 0x4065b0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x4e506c]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
mov ebx, ecx
mov dword [esp + 8], 0
mov ecx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 4]
or eax, 0x2001f
mov dword [esp + 0xc], ecx
push eax
push ecx
push dword [ebx]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
call fcn.004064c0
mov esi, eax
test esi, esi
je 0x406631
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x406618
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0046d675
mov esp, ebp
pop ebp
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x100
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push dword [esp + 0x2c]
call edi
test eax, eax
jne 0x406699
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.004065b0
mov esi, eax
test esi, esi
jne 0x4066eb
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x2c]
call edi
test eax, eax
je 0x406660
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4066b2
push eax
call esi
mov dword [esp + 0x10], 0
push dword [esp + 0xc]
mov ecx, ebx
mov dword [esp + 0x18], 0
call fcn.00406740
mov ecx, dword [esp + 0x10]
mov edi, eax
test ecx, ecx
je 0x4066d2
push ecx
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0046d675
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x406618
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046d675
mov esp, ebp
pop ebp
ret 4
Function at 0x407380
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ae2b3
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4e506c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x20], 0
push 0x404
lea eax, [ebp - 0x424]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
call fcn.00485ce0
add esp, 0xc
mov dword [ebp - 0x424], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x430], esi
test esi, esi
jne 0x407439
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x430], eax
test esi, esi
jne 0x407439
call fcn.004057e0
mov edi, eax
jmp 0x407555
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40745c
call fcn.004057e0
jmp 0x407548
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x42c], ebx
test ebx, ebx
jne 0x40747a
call fcn.004057e0
jmp 0x407548
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x428], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x40749b
mov edi, 0x8007000e
jmp 0x40754a
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x407590
jb 0x4074b9
cmp eax, 0xffffffff
ja 0x407590
cmp eax, 0x400
jbe 0x4074ce
push eax
lea ecx, [ebp - 0x424]
call fcn.004057b0
jmp 0x4074f4
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
jmp 0x4074f4
mov dword [ebp - 4], 1
cmp dword [ebp - 0x424], 0
jne 0x40750b
mov edi, 0x8007000e
jmp 0x40754a
push edi
push dword [ebp - 0x424]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x40752b
call fcn.004057e0
jmp 0x407548
mov eax, dword [ebp - 0x424]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x424]
call fcn.00407220
mov edi, eax
test esi, esi
je 0x407555
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x407570
lea ecx, [ebp - 0x424]
call fcn.00405790
nop
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046d675
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.00403bb0
int3
Function at 0x4082a0
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ae3f8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x4e506c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x20]
mov dword [ebp - 4], 0
mov eax, esi
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x80], 0
jb 0x4082ed
mov eax, dword [esi]
push 0xf0000000
xor ecx, ecx
mov dword [esi + 0x10], 0
push 1
push ecx
mov word [eax], cx
lea eax, [ebp - 0x7c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x408429
lea eax, [ebp - 0x80]
push eax
push 0
push 0
push 0x8004
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push 0
test eax, eax
jne 0x40833e
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x408429
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
mov eax, dword [ebp + 0x18]
cmovae ecx, dword [ebp + 8]
add eax, eax
push eax
push ecx
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
test eax, eax
je 0x408417
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], 0x14
push eax
lea eax, [ebp - 0x24]
push eax
push 2
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x408415
mov edi, dword [ebp - 0x84]
cmp edi, 0x14
ja 0x408415
push 0x52
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.00485ce0
add esp, 0xc
xor edx, edx
test edi, edi
je 0x4083dc
nop dword [eax]
movzx ecx, byte [ebp + edx - 0x24]
mov eax, ecx
and ecx, 0xf
shr eax, 4
movzx eax, word [eax*2 + str.0123456789abcdef]
mov word [ebp + edx*4 - 0x78], ax
movzx eax, word [ecx*2 + str.0123456789abcdef]
mov word [ebp + edx*4 - 0x76], ax
inc edx
cmp edx, edi
jb 0x4083b0
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea edx, [ebp - 0x78]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4083f6
sub edx, ecx
lea eax, [ebp - 0x78]
sar edx, 1
mov ecx, esi
push edx
push eax
call fcn.00407920
mov bl, 1
jmp 0x40842b
push 0
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor bl, bl
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x408461
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408457
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408481
push edx
push ecx
call fcn.0046db96
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046d675
mov esp, ebp
pop ebp
ret 0x1c
call fcn.00488aec
int3
Function at 0x408490
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4e506c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, esi
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], 0
cmp dword [esi + 0x14], 8
jb 0x4084bc
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
lea eax, [ebp - 0x10]
push eax
push 0x101
push ecx
push str.SoftwareMicrosoftCryptography
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40855a
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push str.MachineGuid
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408551
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x408551
push edi
push eax
call fcn.0046dddd
mov edi, eax
add esp, 4
test edi, edi
je 0x408550
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 8]
push eax
push 0
push str.MachineGuid
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408547
mov eax, dword [ebp - 0xc]
mov ecx, esi
shr eax, 1
dec eax
push eax
push edi
call fcn.00407920
push edi
call fcn.0046dbd4
add esp, 4
pop edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0046d675
mov esp, ebp
pop ebp
ret 4