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

Disassembly:
push 0x14
mov eax, 0x1055dc5
call fcn.01034b63
lea ecx, [ebp - 0x14]
call fcn.0101274d
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x1c]
call fcn.0101274d
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 2
push 0x10033e0
lea ecx, [ebp - 0x14]
call fcn.010161f7
push 0x10033d0
lea ecx, [ebp - 0x1c]
call fcn.010161f7
mov edi, 0x2001f
push edi
push dword [ebp - 0x14]
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
lea ecx, [ebp - 0x10]
call fcn.0100d2cb
test eax, eax
push edi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
push esi
jg 0x1020b72
call fcn.0100d2cb
jmp 0x1020b81
call fcn.0100d2cb
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jl 0x1020c16
mov esi, 0x104
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x20], esi
call fcn.0101274d
mov byte [ebp - 4], 3
push esi
lea ecx, [ebp - 0x18]
call fcn.01012865
lea ecx, [ebp - 0x20]
push ecx
push eax
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
call fcn.0101e8a3
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.01011a69
cmp esi, ebx
jl 0x1020c0a
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], ebx
je 0x1020c0a
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.0102e513
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.0100d262
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.0102e513
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0102e513
mov eax, esi
jmp 0x1020c3b
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.0102e513
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.0100d262
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.0102e513
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0102e513
xor eax, eax
call fcn.01034c3b
ret
Function at 0x1020c41
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push 0x274
mov eax, 0x1055e17
call fcn.01034bcc
mov edi, ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x280]
call fcn.010206b6
mov dword [ebp - 4], ebx
push ebx
lea eax, [ebp - 0x280]
push eax
call fcn.0102e6e6
mov dword [ebp - 0x21c], ebx
mov byte [ebp - 4], 1
push esi
lea ecx, [ebp - 0x224]
call fcn.0101193a
mov byte [ebp - 4], 2
mov eax, dword [eax]
cmp eax, ebx
je 0x1020c97
mov eax, dword [eax]
jmp 0x1020c99
xor eax, eax
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x21c]
push ecx
push ebx
push ebx
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.0102f85c
mov esi, eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x224]
cmp ecx, ebx
je 0x1020cd1
call fcn.010125bf
mov dword [ebp - 0x224], ebx
cmp esi, ebx
jl 0x1020dbb
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x224]
call fcn.01017b7f
mov byte [ebp - 4], 3
push 0x1003450
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.01016762
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x224]
call fcn.0102e513
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1020d68
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1020d56
call esi
mov esi, eax
jmp 0x1020dac
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1020dac
push ebx
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 0x228]
push dword [ebp - 0x21c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x220]
mov ecx, edi
call fcn.01020604
push dword [ebp - 0x220]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x220]
call fcn.0102e513
mov byte [ebp - 4], bl
push dword [ebp - 0x21c]
call fcn.01034743
pop ecx
mov dword [ebp - 0x21c], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x280]
call fcn.0102074c
mov eax, esi
call fcn.01034c4f
ret 4
Function at 0x1021e5f
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
mov esi, ecx
push 1
push ebx
mov byte [esi + 0x28], bl
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push 0x1021db6
push ebx
push ebx
call fcn.01036d57
add esp, 0x18
cmp eax, ebx
mov dword [esi + 8], eax
je 0x1021ec3
mov eax, dword [ebp - 4]
push 0x1388
push dword [ebp - 8]
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1021ebc
mov bl, 1
jmp 0x1021ec3
mov ecx, esi
call fcn.01021d59
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x102b665
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1066c80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x102b6d2
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x102b6c9
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
pop ebx
call fcn.01034b54
leave
ret

Function at 0x102bda4
Capabilities:
Create directory

Disassembly:
push 0x10
mov eax, 0x1056f74
call fcn.01034b63
and dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x14]
call fcn.0101274d
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
push dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
call fcn.01017b7f
mov byte [ebp - 4], 2
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
sete byte [ebp - 0xd]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.0102e513
cmp byte [ebp - 0xd], 0
je 0x102be12
push dword [ebp + 0x14]
lea eax, [ebp + 0x10]
push eax
call fcn.0102bd43
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x14]
call fcn.01014310
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x10]
call fcn.0102e513
jmp 0x102be1d
push dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
call fcn.010161f7
push 0
push dword [ebp - 0x14]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0x1002e24
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.01016762
mov byte [ebp - 4], 4
push dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.01016762
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x10]
call fcn.0102e513
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0102e513
mov eax, dword [ebp + 8]
call fcn.01034c3b
ret 0x10
Function at 0x102be71
Capabilities:
Create directory
Get common file path

Disassembly:
push 0x230
mov eax, 0x1057000
call fcn.01034bcc
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
and dword [ebp - 0x21c], 0
mov dword [ebp - 0x228], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x230], eax
mov eax, dword [ebp + 0x18]
push edi
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x22c], eax
call fcn.01017b7f
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
test eax, eax
mov dword [ebp - 0x21c], ebx
jne 0x102bf00
push dword [ebp - 0x22c]
lea ecx, [ebp - 0x238]
call fcn.01017b7f
mov dword [ebp - 4], 2
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
mov dword [ebp - 0x21c], 3
mov byte [ebp - 0x21d], 0
jne 0x102bf06
mov byte [ebp - 0x21d], bl
mov dword [ebp - 4], ebx
test byte [ebp - 0x21c], 2
je 0x102bf24
and dword [ebp - 0x21c], 0xfffffffd
lea ecx, [ebp - 0x238]
call fcn.0102e513
and dword [ebp - 4], 0
test byte [ebp - 0x21c], bl
je 0x102bf42
and dword [ebp - 0x21c], 0xfffffffe
lea ecx, [ebp - 0x234]
call fcn.0102e513
cmp byte [ebp - 0x21d], 0
je 0x102bf6e
push dword [ebp - 0x230]
push edi
push dword [ebp - 0x228]
push esi
call fcn.0102bda4
and dword [ebp - 4], 0
or dword [ebp - 0x21c], 4
jmp 0x102c021
push 0x1001bcc
lea ecx, [ebp - 0x224]
call fcn.01017b7f
mov dword [ebp - 4], 3
lea eax, [ebp - 0x218]
push eax
xor ebx, ebx
push ebx
push ebx
push 0x801c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x102bff9
push dword [ebp - 0x22c]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x224]
push 0x10037d4
push eax
call fcn.01015cb2
add esp, 0x10
push ebx
push dword [ebp - 0x224]
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push dword [ebp - 0x228]
lea eax, [ebp - 0x224]
push 0x1003740
push eax
call fcn.0102b94a
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
mov ecx, esi
call fcn.01013833
jmp 0x102c00c
push dword [ebp - 0x230]
push edi
push dword [ebp - 0x228]
push esi
call fcn.0102bda4
or dword [ebp - 0x21c], 4
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x224]
call fcn.0102e513
mov eax, esi
call fcn.01034c4f
ret 0x14
Function at 0x102c227
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0x54
mov eax, 0x10570a7
call fcn.01034b63
push dword [ebp + 0xc]
xor ebx, ebx
push ebx
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
xor esi, esi
call fcn.0102bda4
mov dword [ebp - 4], ebx
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x102c26d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0102e513
mov eax, ebx
call fcn.01034c3b
ret 0xc
lea ecx, [ebp + 0x10]
call fcn.0101274d
mov byte [ebp - 4], 1
cmp byte [ebp + 8], bl
je 0x102c2da
push dword [ebp + 0xc]
lea eax, [ebp + 0x10]
push 0x1003838
push eax
call fcn.01015cb2
xor eax, eax
mov dword [ebp - 0x1c], ebx
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.01035620
add esp, 0x18
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 0x60], 0x44
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x18]
call edi
jmp 0x102c34e
push ebx
push 2
push ebx
push dword [ebp + 0xc]
xor esi, esi
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x102c33c
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupInitDefaultQueueCallbackEx]
cmp eax, ebx
je 0x102c330
push ebx
push ebx
push eax
push dword [sym.imp.SETUPAPI.dll_SetupDefaultQueueCallbackW]
push 0x2000
push ebx
push ebx
push 0x1ff
push 0x1003814
push edi
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupInstallFromInfSectionW]
test eax, eax
jne 0x102c333
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x102c333
push 8
pop esi
push edi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
jmp 0x102c344
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x80004005
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x10]
call fcn.0102e513
mov ebx, esi
jmp 0x102c257
Function at 0x102cd02
Capabilities:
Create directory
Get common file path

Disassembly:
push 0x214
mov eax, 0x1057313
call fcn.01034bcc
lea eax, [ebp - 0x218]
push eax
xor ebx, ebx
push ebx
push ebx
push 0x801c
push ebx
mov esi, ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x21c]
call fcn.0101274d
mov dword [ebp - 4], ebx
lea edi, [esi + 8]
push dword [edi]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x21c]
push 0x1002844
push eax
call fcn.01015cb2
add esp, 0x10
push ebx
push dword [ebp - 0x21c]
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea eax, [ebp - 0x21c]
push eax
mov ecx, edi
call fcn.01014310
lea ecx, [ebp - 0x220]
call fcn.0101274d
mov byte [ebp - 4], 1
push 0x1003ab0
push dword [edi]
lea eax, [ebp - 0x220]
push 0x1003ac0
push eax
call fcn.01015cb2
add esp, 0x10
push 2
push 0x19
push dword [ebp - 0x220]
push dword [esi + 0x24]
call sub.custsat.dll_Ordinal_4
cmp dword [esi + 4], ebx
jne 0x102cdfb
mov eax, dword [esi + 0x18]
mov ecx, 0x1003abc
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x102cde3
cmp dx, bx
je 0x102cddf
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x102cde3
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x102cdbd
xor eax, eax
jmp 0x102cde8
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x102cdfb
mov eax, dword [esi + 0x10]
cmp dword [eax - 0xc], ebx
je 0x102cdfb
mov ecx, esi
call fcn.0102cbb8
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x220]
call fcn.0102e513
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.0102e513
call fcn.01034c4f
ret
Function at 0x102f136
Capabilities:
Get file version info

Disassembly:
push 0x10
mov eax, 0x1057686
call fcn.01034b63
lea ecx, [ebp - 0x10]
call fcn.0101274d
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.0102f040
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x18], edi
jge 0x102f1a3
push 0x10034e4
push dword [ebp + 8]
call fcn.0103598b
test eax, eax
pop ecx
pop ecx
je 0x102f18d
push 0x1003e5c
push dword [ebp + 8]
call fcn.0103598b
test eax, eax
pop ecx
pop ecx
je 0x102f18d
xor edi, edi
inc edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0102e513
mov eax, edi
call fcn.01034c3b
ret 8
push ebx
push dword [ebp - 0x10]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebx
jne 0x102f1d2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x102f1c2
call esi
jmp 0x102f1ce
call esi
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x102f18d
push edi
call fcn.0103560f
mov esi, eax
pop ecx
mov dword [ebp + 8], esi
mov byte [ebp - 4], 1
push esi
push edi
push ebx
push dword [ebp - 0x10]
call sub.VERSION.dll_GetFileVersionInfoW
cmp eax, ebx
jne 0x102f225
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jg 0x102f203
call edi
mov edi, eax
jmp 0x102f213
call edi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
mov byte [ebp - 4], bl
push esi
call fcn.01034743
pop ecx
mov dword [ebp + 8], ebx
jmp 0x102f18d
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x1002e24
push esi
call sub.VERSION.dll_VerQueryValueW
cmp eax, ebx
je 0x102f1f1
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push 0x1003e44
push dword [ebp + 0xc]
call fcn.01015cb2
mov byte [ebp - 4], bl
push esi
call fcn.01034743
mov edi, dword [ebp - 0x18]
add esp, 0x1c
mov dword [ebp + 8], ebx
jmp 0x102f18d
Function at 0x1033078
Capabilities:
Delete file

Disassembly:
push 0x34
mov eax, 0x10581ea
call fcn.01034b63
mov esi, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
mov dword [esi + 0x24], eax
call fcn.0101274d
and dword [ebp - 4], 0
lea edi, [esi + 0x20]
push edi
mov ecx, esi
call fcn.01032c98
mov ebx, eax
test ebx, ebx
jge 0x10330bc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0102e513
mov eax, ebx
jmp 0x10331ad
push dword [ebp + 8]
mov ecx, esi
call fcn.01033051
mov ebx, eax
test ebx, ebx
jl 0x10330a9
push dword [ebp + 8]
mov eax, dword [edi]
push eax
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.01032f1c
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp + 0xc]
call fcn.01014310
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0102e513
cmp dword [esi + 0x24], 0
mov ebx, 0x1001bcc
je 0x1033120
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push ebx
call fcn.01017b7f
mov byte [ebp - 4], 2
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx]
push 0
push 0
mov byte [ebp - 4], 0
call dword [eax]
mov eax, dword [edi]
push ebx
push eax
push dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
push dword [ebp + 0x10]
call fcn.01032e69
mov byte [ebp - 4], 3
lea eax, [esi + 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.0103377e
push edi
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.01013833
mov byte [ebp - 4], 4
push 0
lea ecx, [ebp - 0x10]
call fcn.01032c48
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x40]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x3c], 3
mov word [ebp - 0x30], 0x14
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
call fcn.0102e513
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.01032c0a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0102e513
mov eax, esi
call fcn.01034c3b
ret 0xc
Function at 0x10338ee
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push 0x1c
mov eax, 0x10582eb
call fcn.01034b96
xor esi, esi
mov dword [ebp - 0x14], esi
or dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov ebx, dword [ebp + 0xc]
cmp ebx, esi
jne 0x1033922
mov dword [ebp - 0x14], 0x80004003
jmp 0x1033a76
mov eax, dword [ebp + 0x10]
cmp eax, esi
jne 0x1033935
mov dword [ebp - 0x14], 0x80004003
jmp 0x1033a67
mov dword [ebx], esi
mov dword [eax], esi
push esi
push 0x8000000
push 3
push esi
push 1
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x1033963
mov dword [ebp - 0x14], 0x80004005
jmp 0x1033a67
push 0xf0000040
push 3
push esi
push esi
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1033957
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push 0x8004
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1033957
mov dword [ebp - 4], esi
mov edi, 0x2000
push edi
call fcn.0103560f
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 0x28], eax
cmp eax, esi
jne 0x10339bb
mov dword [ebp - 0x14], 0x8007000e
or dword [ebp - 4], 0xffffffff
jmp 0x1033a67
or dword [ebp - 4], 0xffffffff
push esi
lea eax, [ebp - 0x24]
push eax
push edi
push dword [ebp + 8]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1033957
push esi
push dword [ebp - 0x24]
push dword [ebp + 8]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1033957
cmp dword [ebp - 0x24], esi
jne 0x10339bb
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
push esi
push eax
push esi
push 2
push dword [ebp - 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
call edi
test eax, eax
je 0x1033957
mov dword [ebp - 4], 2
mov eax, dword [ebp + 0x10]
push dword [eax]
call fcn.0103560f
pop ecx
mov dword [ebx], eax
cmp eax, esi
je 0x10339ab
or dword [ebp - 4], 0xffffffff
push esi
push dword [ebp + 0x10]
push eax
push 2
push dword [ebp - 0x18]
call edi
test eax, eax
jne 0x1033a7f
jmp 0x1033957
mov eax, dword [ebx]
cmp eax, esi
je 0x1033a76
push eax
call fcn.01034c6d
pop ecx
mov dword [ebx], esi
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x1033a7f
mov dword [eax], esi
cmp dword [ebp - 0x28], esi
je 0x1033a8d
push dword [ebp - 0x28]
call fcn.01034c6d
pop ecx
cmp dword [ebp - 0x18], esi
je 0x1033a9b
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x1c], esi
je 0x1033aaa
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [ebp - 0x20], 0xffffffff
je 0x1033ab9
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
call fcn.01034c3b
ret 0xc
Function at 0x1033ac4
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push 0x18
mov eax, 0x1058306
call fcn.01034b96
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
mov ebx, dword [ebp + 0x10]
cmp ebx, edi
jne 0x1033af1
mov dword [ebp - 0x14], 0x80004003
jmp 0x1033c62
mov eax, dword [ebp + 0x14]
cmp eax, edi
jne 0x1033b04
mov dword [ebp - 0x14], 0x80004003
jmp 0x1033c4f
mov dword [ebx], edi
mov dword [eax], edi
push 0xf0000040
push 3
push edi
push edi
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1033b2b
mov dword [ebp - 0x14], 0x80004005
jmp 0x1033c4f
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push 0x8004
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1033b1f
mov dword [ebp - 4], edi
mov esi, 0x2000
push esi
call fcn.0103560f
pop ecx
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x1033b6e
mov dword [ebp - 0x24], 0x8007000e
push 0x105fa58
lea eax, [ebp - 0x24]
push eax
call fcn.01034f4e
or dword [ebp - 4], 0xffffffff
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp + 0xc], eax
jmp 0x1033b82
mov esi, 0x2000
xor ecx, ecx
cmp edi, ecx
jne 0x1033bfd
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
push ecx
push eax
push ecx
push 2
pop edi
push edi
push dword [ebp - 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
call esi
test eax, eax
jne 0x1033baf
mov dword [ebp - 0x14], 0x80004005
jmp 0x1033c4d
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0x14]
push dword [eax]
call fcn.0103560f
pop ecx
mov dword [ebx], eax
test eax, eax
jne 0x1033bd0
mov dword [ebp - 0x14], 0x8007000e
or dword [ebp - 4], 0xffffffff
jmp 0x1033c4d
or dword [ebp - 4], 0xffffffff
push 0
push dword [ebp + 0x14]
push dword [ebx]
push edi
push dword [ebp - 0x18]
call esi
test eax, eax
jne 0x1033c47
jmp 0x1033ba3
cmp edi, esi
jae 0x1033c03
mov esi, edi
push esi
push dword [ebp + 0xc]
push dword [ebp - 0x1c]
call fcn.010375e0
add esp, 0xc
add dword [ebp + 0xc], esi
sub edi, esi
push 0
push esi
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x1033b7d
jmp 0x1033ba3
cmp dword [ebp - 0x14], 0
jge 0x1033c6d
xor edi, edi
cmp ebx, edi
je 0x1033c62
mov eax, dword [ebx]
cmp eax, edi
je 0x1033c62
push eax
call fcn.01034c6d
pop ecx
mov dword [ebx], edi
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x1033c6f
mov dword [eax], edi
jmp 0x1033c6f
xor edi, edi
cmp dword [ebp - 0x1c], edi
je 0x1033c7d
push dword [ebp - 0x1c]
call fcn.01034c6d
pop ecx
cmp dword [ebp - 0x18], edi
je 0x1033c8b
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x20], edi
je 0x1033c9a
push edi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 0x14]
call fcn.01034c3b
ret 0x10