joyce8/EMBER2024-capa huggingface dataset:
Function at 0x881f60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x381000]
push edi
jmp 0x881f7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x881f81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x881f70
mov eax, 1
add ebx, ebx
jne 0x881f93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x881fa4
jne 0x881fc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x881fc3
dec eax
add ebx, ebx
jne 0x881fb0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x881f88
add ebx, ebx
jne 0x881fbf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x882015
xor ecx, ecx
sub eax, 3
jb 0x881fdb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x88204a
sar eax, 1
mov ebp, eax
jmp 0x881fe6
add ebx, ebx
jne 0x881fe6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x881fb4
inc ecx
add ebx, ebx
jne 0x881ff4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x881fb4
add ebx, ebx
jne 0x882001
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x881ff6
jne 0x882012
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x881ff6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x882034
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x882026
jmp 0x881f76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x882034
add edi, ecx
jmp 0x881f76
pop esi
mov edi, esi
mov ecx, 0x201f5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x882052
cmp byte [edi], 0xb4
jne 0x882052
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x882057
lea edi, [esi + 0x47e000]
mov eax, dword [edi]
or eax, eax
je 0x8820cf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x488abc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x488bec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x882084
mov ecx, edi
jns 0x8820b3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x488bf4]
or eax, eax
je 0x8820c9
mov dword [ebx], eax
add ebx, 4
jmp 0x8820a1
call dword [esi + 0x488bf0]
mov ebp, dword [esi + 0x488bf8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x882103
sub esp, 0xffffff80
jmp 0x6259ea
Function at 0x56e61f
Capabilities:
Check for vm using instruction vpcext

Disassembly:
pop esp
popal
and eax, ecx
sbb al, 0xf3
mov esi, 0xccd9658c
jbe 0x56e5fa
pushfd
movsb byte es:[edi], byte [esi]
sbb dh, 0x6a
dec esi
test dword [esi], esp
jns 0x56e65c
and al, 0x1d
jae 0x56e61c
and dword [edi], esp
daa
in eax, 0x5a
push ss
jb 0x56e676
adc al, 0x72
out dx, eax
jb 0x56e60d
mov ch, bh
sbb ah, dh
cwde
mov dword [0xdec194bd], eax
insd dword es:[edi], dx
das
dec dword [ebp + 0x7fd2de32]
xor bl, dh
sar byte [edi + 2], cl
fucomp st(1)
mov ecx, esp
cmpsb byte [esi], byte es:[edi]
in al, dx
adc al, 0xed
dec ebp
cmp esp, dword [eax - 0x36d4df95]
leave
lea eax, [ecx + eax]
inc edx
jnp 0x56e5df
inc ebp

Function at 0x56e64f
Capabilities:
Check for vm using instruction vpcext

Disassembly:
pop esp
popal
and eax, ecx
sbb al, 0xf3
mov esi, 0xccd9658c
jbe 0x56e5fa
pushfd
movsb byte es:[edi], byte [esi]
sbb dh, 0x6a
dec esi
test dword [esi], esp
jns 0x56e65c
and al, 0x1d
jae 0x56e61c
and dword [edi], esp
daa
in eax, 0x5a
push ss
jb 0x56e676
adc al, 0x72
out dx, eax
jb 0x56e60d
mov ch, bh
sbb ah, dh
cwde
mov dword [0xdec194bd], eax
insd dword es:[edi], dx
das
dec dword [ebp + 0x7fd2de32]
xor bl, dh
sar byte [edi + 2], cl
fucomp st(1)
mov ecx, esp
cmpsb byte [esi], byte es:[edi]
in al, dx
adc al, 0xed
dec ebp
cmp esp, dword [eax - 0x36d4df95]
leave
lea eax, [ecx + eax]
inc edx
jnp 0x56e5df
inc ebp

Function at 0x56e67f
Capabilities:
Check for vm using instruction vpcext

Disassembly:
xchg esp, eax
rcr esi, 0x6d
dec edx
std
rcl byte [esi + 0xda24f12], 0xbe
or eax, 0x8dff2f5c
jb 0x56e60d
aam 0
pop esp
salc
popfd
scasb al, byte es:[edi]

Function at 0x56e70f
Capabilities:
Check for software breakpoints

Disassembly:
arpl word [edi + 0x342bdc8d], di
sub dword [edx + 0xc2b7058], eax
sbb byte [eax + 0x70], 0x2b
or al, 0x13
invalid
invalid

Function at 0x56e717
Capabilities:
Check for software breakpoints

Disassembly:
sbb byte [eax + 0x70], 0x2b
or al, 0x13
call 0x7773bbb7
call 0x7773bbb7

Function at 0x56e72f
Capabilities:
Check for software breakpoints

Disassembly:
call 0x7773bbb7
mov cl, 0x84
xor dword [edx - 0x77], edi
pop ebp
leave
pop ebp
popfd
invalid
Function at 0x40557c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
and dword [ebp - 4], 0
lea ecx, [ebp - 8]
and dword [ebp - 0xc], 0
push ecx
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], eax
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.004103f9
mov esi, eax
test esi, esi
js 0x405638
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call fcn.004103f9
mov esi, eax
test esi, esi
jne 0x405631
mov ebx, dword [ebp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov eax, dword [ebp - 4]
push 0x2f
pop edx
movzx ecx, word [eax]
cmp dx, cx
je 0x4055eb
push 0x2d
pop edx
cmp dx, cx
jne 0x405650
lea esi, [eax + 2]
push esi
push str.standalone
call edi
test eax, eax
jne 0x405605
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
jmp 0x405617
push esi
push str.standalone:temp
call edi
test eax, eax
jne 0x405657
mov dword [ebx], 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call fcn.004103f9
mov esi, eax
test esi, esi
je 0x4055d5
xor eax, eax
test esi, esi
cmovns esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x405645
push eax
call fcn.0040e6a6
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, 0x80070057
jmp 0x40563b
push esi
push str.standalone:delete
call edi
mov esi, 0x80070057
jmp 0x405638
Function at 0x409a75
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 8], ebx
cmp dword [edi + 0x44], ebx
je 0x409a92
xor esi, esi
inc esi
jmp 0x409c67
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x409ae3
mov eax, dword [edi + 0xc]
lea edx, [ebp - 0xc]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov esi, eax
test esi, esi
js 0x409c67
lea eax, [ebp + 8]
push eax
push 2
push ebx
push dword [edi + 0x14]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x409c67
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], 1
mov eax, dword [edi + 0x48]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 4
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str.Size
push ecx
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x409c58
mov eax, dword [edi + 0x50]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 4
push 0
push str.Progress
push dword [ebp + 8]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x409c58
push 4
lea eax, [edi + 0x74]
push eax
push 4
push 0
push str.LastAttemptHigh
push dword [ebp + 8]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x409c58
push 4
lea eax, [edi + 0x70]
push eax
push 4
push 0
push str.LastAttemptLow
push dword [ebp + 8]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x409c58
push 4
lea eax, [edi + 0x6c]
push eax
push 4
push 0
push str.LastError
push dword [ebp + 8]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x409c58
push 4
lea eax, [edi + 0x5c]
push eax
push 4
push 0
push str.StateCache
push dword [ebp + 8]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x409c58
push 4
lea eax, [edi + 0x60]
push eax
push 4
push 0
push str.StateExtract
push dword [ebp + 8]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x409c58
push 4
lea eax, [edi + 0x64]
push eax
push 4
push 0
push str.StateVerify
push dword [ebp + 8]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x409c58
push 4
lea eax, [edi + 0x68]
push eax
push 4
push 0
push str.StateAvailable
push dword [ebp + 8]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp dword [ebp - 8], 0
je 0x409c67
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40c698
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x116c
call fcn.0041183e
mov eax, dword [0x42e068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1164], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x1168], eax
xor edi, edi
mov eax, dword [ebp + 0x14]
push 0x1154
mov dword [ebp - 0x116c], eax
lea eax, [ebp - 0x1158]
push edi
push eax
mov dword [ebp - 0x115c], edi
mov dword [ebx], edi
call fcn.004122e7
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x1150]
mov dword [ebp - 0x1158], 0x1154
push 0x80
push eax
mov dword [ebp - 0x1154], 7
call fcn.0041657c
add esp, 0x1c
mov dword [ebp - 0x1160], 0x1048
lea eax, [ebp - 0x1160]
push eax
lea eax, [ebp - 0x1050]
push eax
push edi
push edi
push str.Path
push dword [ebp - 0x1164]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40c7c8
lea eax, [ebp - 0x1160]
mov dword [ebp - 0x1160], 4
push eax
lea eax, [ebp - 8]
push eax
push edi
push edi
push str.Priority
push dword [ebp - 0x1164]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40c7c8
lea eax, [ebp - 0x115c]
push eax
push dword [ebp - 0x116c]
lea eax, [ebp - 0x1158]
push eax
push dword [ebp - 0x1168]
call fcn.0040c621
mov esi, eax
test esi, esi
js 0x40c7c8
mov eax, dword [ebp - 0x115c]
mov esi, edi
mov dword [ebx], eax
mov dword [ebp - 0x115c], edi
jmp 0x40c7ce
mov edi, dword [ebp - 0x115c]
test edi, edi
je 0x40c7e3
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
add eax, 4
add eax, edi
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411738
mov esp, ebp
pop ebp
ret 0x14
Function at 0x40cb55
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
xor esi, esi
push edi
mov eax, dword [ebx + 0x250]
mov edi, esi
cmp eax, 0xffffffff
jne 0x40cb72
inc edi
jmp 0x40cc3d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebx + 0x250], 0xffffffff
cmp dword [ebp + 8], esi
je 0x40cc3d
cmp dword [ebx + 0x14], esi
jne 0x40cc3d
push esi
push esi
push 3
push esi
push esi
push 0xc0000000
lea eax, [ebx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x250], eax
cmp eax, 0xffffffff
jne 0x40cbcc
call esi
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40cc3d
push 0
push 0
push dword [ebx + 0x244]
push dword [ebx + 0x240]
push dword [ebx + 0x250]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x40cc00
call esi
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40cc3d
push dword [ebx + 0x250]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x40cc24
call esi
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40cc3d
mov eax, dword [ebx + 0x244]
mov esi, dword [ebx + 0x20]
mov edx, dword [ebx + 0x240]
push eax
push edx
mov ecx, dword [esi]
push eax
push edx
push esi
call dword [ecx + 0x50]
mov eax, dword [ebx + 0x250]
cmp eax, 0xffffffff
je 0x40cc56
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebx + 0x250], 0xffffffff
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x40ddf3
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0xc]
xor edx, edx
push ebx
push edi
mov dword [ebp - 4], edx
mov edi, 0x80070000
mov eax, dword [ecx + 8]
mov dword [ebp - 8], edx
test eax, eax
je 0x40de20
lea ecx, [ebp - 4]
push ecx
push eax
push edx
call fcn.0040dfdd
mov ebx, eax
jmp 0x40de5f
lea eax, [ebp - 4]
push eax
push dword [ecx + 0x30]
movzx eax, byte [ecx + 0x12]
push dword [ecx + 0x2c]
push dword [ecx + 0x28]
push dword [ecx + 0x24]
push dword [ecx + 0x20]
push dword [ecx + 0x1c]
push dword [ecx + 0x18]
push dword [ecx + 0x14]
push eax
lea eax, [ecx + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x40de63
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, edi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x40de93
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x40de8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, edi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x40de93
xor ebx, ebx
cmp dword [ebp - 8], ebx
sete bl
cmp dword [ebp - 4], 0
je 0x40dea2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40dfdd
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
push edi
push 0x44
pop ebx
push 1
push ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], 0xff
call fcn.0041147c
mov edi, eax
test edi, edi
jne 0x40e00f
mov esi, 0x8007000e
jmp 0x40e0e0
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
call fcn.0040e2e8
mov esi, eax
test esi, esi
js 0x40e0e0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x40e0d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40e0c5
cmp dword [ebp - 0xc], ebx
jbe 0x40e084
push 1
push dword [ebp - 0xc]
push edi
call fcn.004114c5
mov ebx, eax
test ebx, ebx
jne 0x40e082
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40e0e0
mov edi, ebx
cmp dword [ebp - 8], 0xff
jbe 0x40e09f
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
call fcn.0040e2e8
mov esi, eax
test esi, esi
js 0x40e0e0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x40e0d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40e0e0
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
xor edi, edi
xor esi, esi
cmp dword [ebp - 4], 0
je 0x40e0ee
push dword [ebp - 4]
call fcn.0040e6a6
test edi, edi
je 0x40e0f8
push edi
call fcn.0041149e
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40e103
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40e1a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40e1a5
movzx eax, word [edi]
mov ecx, edi
push ebx
xor ebx, ebx
test ax, ax
je 0x40e19f
push 0x5c
pop edx
cmp ax, dx
cmove ebx, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x40e13c
test ebx, ebx
je 0x40e19f
push dword [ebp + 0xc]
xor eax, eax
push edi
mov word [ebx], ax
call fcn.0040e103
mov esi, eax
push 0x5c
pop eax
mov word [ebx], ax
test esi, esi
js 0x40e1a4
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40e19b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40e18b
xor esi, esi
inc esi
jmp 0x40e1a4
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x40e1a4
xor esi, esi
jmp 0x40e1a4
mov esi, 0x80070003
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x40e85a
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10014
call fcn.0041183e
mov eax, dword [0x42e068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0x10010], eax
xor edi, edi
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10014], eax
mov dword [ebp - 0x10008], edi
mov dword [ebp - 0x1000c], edi
call fcn.0040e7ba
mov esi, eax
test esi, esi
js 0x40e968
lea eax, [ebp - 0x10008]
push eax
push edi
push edi
push dword [ebp + 0xc]
push dword [0x42e8f0]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40e923
push 0
lea eax, [ebp - 0x1000c]
push eax
push 0x10000
lea eax, [ebp - 0x10004]
push eax
push dword [ebp - 0x10010]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40e8ff
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40e968
cmp dword [ebp - 0x1000c], 0
push 0
jbe 0x40e93d
push dword [ebp - 0x1000c]
lea eax, [ebp - 0x10004]
push eax
push dword [ebp - 0x10008]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x40e8c6
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x40e8c6
jmp 0x40e968
push dword [ebp - 0x10014]
xor esi, esi
push ebx
push 2
push dword [ebp - 0x10008]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x40e968
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp dword [ebp - 0x10008], 0
je 0x40e97d
push dword [ebp - 0x10008]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411738
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40edce
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor eax, eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
test edi, edi
je 0x40ee23
cmp word [edi], ax
je 0x40ee23
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, dword [ebp + 0xc]
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add esi, 3
add eax, esi
push eax
push edi
lea eax, [ebp - 4]
push eax
call fcn.0040e3c8
mov esi, eax
test esi, esi
js 0x40efc4
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 8], ebx
jmp 0x40ee5c
mov ebx, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
call edi
add eax, 3
push eax
lea eax, [ebp - 4]
push eax
call fcn.0040e2e8
mov esi, eax
test esi, esi
js 0x40efc4
push 0xffffffffffffffff
push ebx
push 4
push dword [ebp - 4]
call fcn.0041657c
lea eax, [ebx + 6]
add esp, 0x10
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push 0x5c
pop edx
mov dword [ebp - 0x10], edx
movzx eax, word [ecx]
cmp dx, ax
jne 0x40ee73
cmp dx, word [ecx + 2]
je 0x40eeb5
push 0x61
pop edx
cmp dx, ax
ja 0x40ee83
push 0x7a
pop edx
cmp dx, ax
jae 0x40ee9b
push 0x41
pop edx
cmp dx, ax
ja 0x40efbd
push 0x5a
pop edx
cmp dx, ax
jb 0x40efbd
push 0x3a
pop eax
cmp ax, word [ecx + 2]
jne 0x40efbd
push 0x5c
pop eax
cmp ax, word [ecx + 4]
jne 0x40efbd
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40eed0
and dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0xc
mov dword [ebp - 0xc], eax
push ecx
call edi
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 8]
lea edx, [ecx + eax*2]
movzx eax, word [edi]
mov dword [ebp + 8], edx
test ax, ax
je 0x40efc7
mov ebx, dword [ebp + 0xc]
cmp word [ebp - 0x10], ax
jne 0x40eefc
cmp edi, ebx
je 0x40efac
push 0x5c
pop ecx
mov word [edx], ax
cmp cx, ax
jne 0x40efa3
push dword [ebp - 0xc]
xor eax, eax
mov word [edx + 2], ax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40ef72
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x40ef60
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40ef5c
push eax
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x40ef5c
call esi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40efc4
xor esi, esi
jmp 0x40ef72
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40efc4
cmp dword [ebp + 0x18], 0
je 0x40efa0
push dword [ebp + 0x18]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x40efa0
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40efc4
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 4]
add edx, 2
mov dword [ebp + 8], edx
add edi, 2
movzx eax, word [edi]
test ax, ax
jne 0x40eeee
jmp 0x40efc7
mov esi, 0x80070057
jmp 0x40efc7
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x40efd1
push ecx
call fcn.0040e6a6
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x40f0a6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
lea eax, [ebp - 8]
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov ebx, 0x104
or edi, 0xffffffff
push ebx
push eax
call fcn.0040e520
mov esi, eax
test esi, esi
js 0x40f18e
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
xor ebx, ebx
cmp edi, 0xffffffff
jne 0x40f157
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
push str._s_S_05d._S
push eax
call fcn.0040e56a
mov esi, eax
add esp, 0x18
test esi, esi
js 0x40f18e
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40f14e
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp esi, 0x80070050
jne 0x40f14a
xor esi, esi
jmp 0x40f14e
test esi, esi
js 0x40f18e
inc ebx
cmp ebx, 0x3e8
jl 0x40f0de
cmp dword [ebp + 0x10], 0
je 0x40f171
push 0xfde9
push 0
push dword [ebp - 4]
push dword [ebp + 0x10]
call fcn.0040e43c
mov esi, eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40f17a
mov dword [eax], edi
test esi, esi
js 0x40f182
test eax, eax
jne 0x40f18e
cmp edi, 0xffffffff
je 0x40f18e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x40f19c
push dword [ebp - 4]
call fcn.0040e6a6
cmp dword [ebp - 8], 0
je 0x40f1aa
push dword [ebp - 8]
call fcn.0040e6a6
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10