joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1020c41
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push 0x274
mov eax, 0x1055e17
call fcn.01034bcc
xor ebx, ebx
mov esi, dword [ebp + 8]
mov edi, ecx
lea ecx, [ebp - 0x280]
push ebx
call fcn.010206b6
mov dword [ebp - 4], ebx
push ebx
lea eax, [ebp - 0x280]
push eax
call fcn.0102e6e6
mov dword [ebp - 0x21c], ebx
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 1
push esi
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 byte [ebp - 4], 1
mov esi, eax
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 ecx, [ebp - 0x224]
lea eax, [ebp - 0x218]
push eax
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
mov esi, eax
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call fcn.0102e513
mov byte [ebp - 4], bl
push dword [ebp - 0x21c]
call fcn.01034743
pop ecx
mov dword [ebp - 0x21c], ebx
lea ecx, [ebp - 0x280]
or dword [ebp - 4], 0xffffffff
call fcn.0102074c
mov eax, esi
call fcn.01034c4f
ret 4
Function at 0x1028ae2
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [ecx + 0xc]
xor edx, edx
sub eax, edx
je 0x1028b01
dec eax
jne 0x1028b12
push dword [ecx + 0x24]
push dword [ecx + 0x20]
push dword [ecx + 0x1c]
push dword [ecx + 0x18]
call dword [sym.imp.USER32.dll_PostMessageW]
ret
push 0xa
push dword [ecx + 0x14]
push edx
push dword [ecx + 0x10]
push edx
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret
Function at 0x102b665
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
mov edi, edi
mov eax, dword [0x1066c80]
add esp, 0xffffffec
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0xc]
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
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]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x102b6d2
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
or eax, eax
jne 0x102b6c9
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
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:
mov eax, 0x1057000
push 0x230
call fcn.01034bcc
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
lea ecx, [ebp - 0x234]
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
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]
mov dword [ebp - 0x21c], ebx
test eax, eax
jne 0x102bf00
lea ecx, [ebp - 0x238]
push dword [ebp - 0x22c]
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
lea ecx, [ebp - 0x238]
and dword [ebp - 0x21c], 0xfffffffd
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
xor ebx, ebx
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push 0x801c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x102bff9
lea eax, [ebp - 0x218]
push dword [ebp - 0x22c]
push eax
push 0x10037d4
lea eax, [ebp - 0x224]
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
lea ecx, [ebp - 0x224]
or dword [ebp - 0x21c], 4
mov byte [ebp - 4], bl
call fcn.0102e513
mov eax, esi
call fcn.01034c4f
ret 0x14
Function at 0x102c227
Capabilities:
Check if file exists
Create process on windows

Disassembly:
mov eax, 0x10570a7
push 0x54
call fcn.01034b63
lea eax, [ebp + 0xc]
push dword [ebp + 0xc]
xor ebx, ebx
xor esi, esi
push ebx
push dword [ebp + 0x10]
push eax
call fcn.0102bda4
mov dword [ebp - 4], ebx
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or 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]
push 0x1003838
lea eax, [ebp + 0x10]
push eax
call fcn.01015cb2
lea edi, [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x1c], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
push ebx
lea eax, [ebp - 0x5c]
push eax
call fcn.01035620
lea eax, [ebp - 0x1c]
add esp, 0x18
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
xor esi, esi
push 2
push ebx
push dword [ebp + 0xc]
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
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], bl
call fcn.0102e513
mov ebx, esi
jmp 0x102c257

Function at 0x102c442
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
mov dword [ebp - 4], 4
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102c478
mov eax, dword [ebp + 0xc]
add eax, 0xfffffffc
neg eax
sbb eax, eax
and eax, 0xd
leave
ret 8
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
sub eax, 0xfffffffc
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:
mov eax, 0x1057686
push 0x10
call fcn.01034b63
lea ecx, [ebp - 0x10]
call fcn.0101274d
xor ebx, ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
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
pop ecx
pop ecx
test eax, eax
je 0x102f18d
push 0x1003e5c
push dword [ebp + 8]
call fcn.0103598b
pop ecx
test eax, eax
pop ecx
je 0x102f18d
xor edi, edi
inc edi
lea ecx, [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
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
add esp, 0x1c
mov edi, dword [ebp - 0x18]
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
or 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:
mov eax, 0x10582eb
push 0x1c
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
lea eax, [ebp - 0x1c]
push 3
push esi
push esi
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 edi, 0x2000
mov dword [ebp - 4], esi
push edi
call fcn.0103560f
pop ecx
cmp eax, esi
mov dword [ebp + 8], eax
mov dword [ebp - 0x28], eax
jne 0x10339bb
mov dword [ebp - 0x14], 0x8007000e
or dword [ebp - 4], 0xffffffff
jmp 0x1033a67
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x24]
push esi
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
cmp eax, esi
pop ecx
mov dword [ebx], eax
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:
mov eax, 0x1058306
push 0x18
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
lea eax, [ebp - 0x20]
push 3
push edi
push edi
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 esi, 0x2000
mov dword [ebp - 4], edi
push esi
call fcn.0103560f
pop ecx
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x1033b6e
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x8007000e
push 0x105fa58
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
test eax, eax
pop ecx
mov dword [ebx], 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
Function at 0x10340ab
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x1066c80]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.01033fea
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.01035620
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x10340fa
cmp dword [ebp - 0x1c], 5
jb 0x1034112
jmp 0x103410e
cmp dword [ebp - 0x10], 1
jne 0x1034112
cmp dword [ebp - 0x1c], 4
ja 0x103410e
jne 0x1034112
cmp dword [ebp - 0x18], 0
jbe 0x1034112
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x10047d8
call fcn.0100cfd7
test eax, eax
jge 0x1034133
mov byte [0x1068dc4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01034b54
add ebp, 0x78
leave
ret

Function at 0x10342e5
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10690e4], 0
push esi
jne 0x1034258
call fcn.01034183
test eax, eax
je 0x103429b
mov eax, dword [0x10690e4]
cmp eax, 1
jne 0x1034279
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x103429b
pop esi
ret
push eax
call dword [0x10690ec]
test eax, eax
jne 0x10342e3
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x103429f
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x10690e4]
call dword [0x10690ec]
mov edi, eax
test edi, edi
je 0x10342c6
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x10342e2
lea edi, [esi + 0xff0]
push esi
push dword [0x10690e4]
call dword [0x10690e8]
add esi, 0x10
cmp esi, edi
jb 0x10342cc
mov eax, esi
pop edi
pop esi
ret
jmp 0x1034245