joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404ec9
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
lea edx, [ebp - 4]
push ecx
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], eax
push ecx
mov ecx, eax
call fcn.00410131
mov esi, eax
test esi, esi
js 0x404f79
mov ecx, dword [ebp - 8]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 4]
call fcn.00410131
mov esi, eax
test esi, esi
jne 0x404f72
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov edi, dword [ebp - 4]
push 0x2f
pop ecx
movzx eax, word [edi]
cmp cx, ax
je 0x404f30
push 0x2d
pop ecx
cmp cx, ax
jne 0x404f98
lea esi, [edi + 2]
push esi
push str.standalone
call ebx
test eax, eax
jne 0x404f44
mov eax, dword [ebp + 8]
jmp 0x404f53
push esi
push str.standalone:temp
call ebx
test eax, eax
jne 0x404f90
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ebp - 4]
mov dword [eax], 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00410131
mov esi, eax
test esi, esi
je 0x404f1a
xor eax, eax
test esi, esi
cmovns esi, eax
mov edi, dword [ebp - 4]
test edi, edi
je 0x404f87
mov ecx, edi
call fcn.00411025
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
push esi
push str.standalone:delete
call ebx
mov esi, 0x80070057
jmp 0x404f7c
Function at 0x409f7e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor bl, bl
push edi
mov edi, dword [ebp + 8]
test eax, eax
jne 0x409ff0
mov ecx, dword [edi + 0xc]
lea edx, [ebp - 8]
push edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x40]
mov esi, eax
test esi, esi
js 0x40a0da
lea eax, [ebp + 0xc]
xor ebx, ebx
push eax
inc ebx
push ebx
push 0
push dword [edi + 0x14]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp esi, 0x80070002
je 0x40a0e3
cmp esi, 0x80070003
je 0x40a0e3
test esi, esi
js 0x40a0da
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 8]
mov dword [ebp + 8], 4
push ecx
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push str.Size
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40a0cd
mov eax, dword [ebp - 4]
and dword [edi + 0x4c], 0
mov dword [edi + 0x48], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
mov dword [ebp + 8], 4
push eax
push 0
push 0
push str.Progress
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40a0cd
mov eax, dword [ebp - 4]
xor ecx, ecx
mov dword [edi + 0x50], eax
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0x74]
mov dword [edi + 0x54], ecx
push eax
push ecx
push ecx
push str.LastAttemptHigh
push dword [ebp + 0xc]
mov dword [ebp + 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40a0cd
lea eax, [ebp + 8]
mov dword [ebp + 8], 4
push eax
lea eax, [edi + 0x70]
push eax
push 0
push 0
push str.LastAttemptLow
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test bl, bl
je 0x40a0da
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
xor eax, eax
mov esi, ebx
mov dword [edi + 0x48], eax
mov dword [edi + 0x4c], eax
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], eax
mov dword [edi + 0x70], eax
mov dword [edi + 0x74], eax
jmp 0x40a0da
Function at 0x40a0fb
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 byte [ebp - 1], bl
cmp dword [edi + 0x44], ebx
je 0x40a118
xor esi, esi
inc esi
jmp 0x40a2ea
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x40a166
mov ecx, dword [edi + 0xc]
lea edx, [ebp - 0xc]
push edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x40]
mov esi, eax
test esi, esi
js 0x40a2ea
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 0x40a2ea
mov ecx, dword [ebp + 8]
mov byte [ebp - 1], 1
mov eax, dword [edi + 0x48]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
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 0x40a2db
mov eax, dword [edi + 0x50]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
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 0x40a2db
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 0x40a2db
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 0x40a2db
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 0x40a2db
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 0x40a2db
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 0x40a2db
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 0x40a2db
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 byte [ebp - 1], 0
je 0x40a2ea
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x40c0ce
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi + 0xc], ebx
jne 0x40c0e7
mov eax, 0x80004001
jmp 0x40c254
mov eax, dword [ebp + 0xc]
push edi
test byte [eax + 4], 2
je 0x40c236
push 0xffffffffffffffff
add eax, 0x108
lea ecx, [esi + 0x115c]
push eax
push 0x824
push ecx
call fcn.00414840
add esp, 0x10
cmp eax, 0x50
jne 0x40c120
mov edi, 0x8007007a
jmp 0x40c251
push 0x824
mov edi, ebx
lea eax, [esi + 0x115c]
lea ebx, [esi + 0x114]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x40c15b
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40c251
movzx ecx, word [ebx]
push 0x68
pop eax
push 0x74
pop edx
cmp ax, cx
jne 0x40c1ce
movzx eax, word [esi + 0x116]
cmp dx, ax
jne 0x40c1ce
cmp dx, word [esi + 0x118]
jne 0x40c19c
push 0x70
pop edx
cmp dx, word [esi + 0x11a]
push 0x74
pop edx
jne 0x40c19c
push 0x3a
pop edx
cmp dx, word [esi + 0x11c]
push 0x74
pop edx
je 0x40c1f7
cmp dx, ax
jne 0x40c1ce
cmp dx, word [esi + 0x118]
jne 0x40c1ce
push 0x70
pop eax
cmp ax, word [esi + 0x11a]
jne 0x40c1ce
push 0x73
pop eax
cmp ax, word [esi + 0x11c]
jne 0x40c1ce
push 0x3a
pop eax
cmp ax, word [esi + 0x11e]
je 0x40c1f7
push 0x66
pop eax
cmp ax, cx
jne 0x40c21a
cmp dx, word [esi + 0x116]
jne 0x40c21a
push 0x70
pop eax
cmp ax, word [esi + 0x118]
jne 0x40c21a
push 0x3a
pop eax
cmp ax, word [esi + 0x11a]
jne 0x40c21a
test cx, cx
je 0x40c206
xor eax, eax
add ebx, 2
cmp word [ebx], ax
jne 0x40c1fe
push 0x2f
pop eax
cmp ax, word [ebx - 2]
je 0x40c227
mov word [ebx], ax
xor eax, eax
mov word [ebx + 2], ax
jmp 0x40c227
mov ecx, ebx
call fcn.0040e6f5
mov edi, eax
test edi, edi
js 0x40c251
xor ebx, ebx
mov dword [esi + 0x21a4], ebx
test edi, edi
js 0x40c248
mov eax, dword [ebp + 0xc]
test byte [eax + 4], 4
je 0x40c248
mov eax, dword [eax + 0x1150]
mov dword [esi + 0x21a8], eax
push ebx
push esi
call fcn.0040c25a
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40c25a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
lea edx, [ebp - 8]
push esi
push edi
xor edi, edi
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
push edx
mov eax, dword [ecx]
push ecx
call dword [eax + 0x60]
mov esi, eax
test esi, esi
js 0x40c34c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 0x2001f
push edi
push edi
push edi
lea eax, [ebx + 0x14]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40c34c
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebx + 0x115c]
push eax
call edi
push eax
lea esi, [ebx + 0x114]
lea ecx, [eax*2 + 2]
lea eax, [ebx + 0x115c]
mov dword [ebp + 8], ecx
push eax
push esi
call edi
push eax
push esi
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
push dword [ebp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
lea eax, [ebx + 0x115c]
push eax
je 0x40c307
push 2
jmp 0x40c309
push 1
push 0
push str.Path
push dword [ebp - 4]
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40c34c
push 4
lea eax, [ebx + 0x21a8]
push eax
push 4
push 0
push str.Priority
push dword [ebp - 4]
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp dword [ebp - 4], 0
je 0x40c35b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x40c423
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424d4c
mov eax, dword fs:[0]
push eax
mov eax, 0x1168
call fcn.0042399d
mov eax, dword [0x42e05c]
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 dword [ebp - 0x1170], edx
mov esi, ecx
mov eax, dword [ebp + 8]
xor edi, edi
mov ebx, dword [ebp + 0x10]
push 0x114c
mov dword [ebp - 0x1174], eax
lea eax, [ebp - 0x115c]
push edi
push eax
mov dword [ebp - 0x116c], edi
mov dword [ebx], edi
call fcn.00412599
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x115c]
mov dword [ebp - 0x1164], 0x1154
push 0x80
push eax
mov dword [ebp - 0x1160], 7
call fcn.00414840
add esp, 0x1c
mov dword [ebp - 0x1168], 0x1048
lea eax, [ebp - 0x1168]
push eax
lea eax, [ebp - 0x105c]
push eax
push edi
push edi
push str.Path
push dword [ebp - 0x1170]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40c573
lea eax, [ebp - 0x1168]
mov dword [ebp - 0x1168], 4
push eax
lea eax, [ebp - 0x14]
push eax
push edi
push edi
push str.Priority
push dword [ebp - 0x1170]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40c573
mov ecx, dword [ebp - 0x1174]
lea eax, [ebp - 0x116c]
push eax
push dword [ebp + 0xc]
lea edx, [ebp - 0x1164]
call fcn.0040c391
mov esi, eax
test esi, esi
js 0x40c558
mov eax, dword [ebp - 0x116c]
mov esi, edi
mov dword [ebx], eax
jmp 0x40c55e
mov edi, dword [ebp - 0x116c]
test edi, edi
je 0x40c573
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 eax, esi
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.00411433
leave
ret 0xc
Function at 0x40d3a4
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 0x40d3c1
inc edi
jmp 0x40d48c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebx + 0x250], 0xffffffff
cmp dword [ebp + 8], esi
je 0x40d48c
cmp dword [ebx + 0x14], esi
jne 0x40d48c
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 0x40d41b
call esi
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40d48c
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 0x40d44f
call esi
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40d48c
push dword [ebx + 0x250]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x40d473
call esi
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40d48c
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 0x40d4a5
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 0x40dbd3
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
and dword [ebp - 8], 0
mov eax, dword [edx + 8]
push ebx
push edi
mov edi, ecx
test eax, eax
je 0x40dbfa
lea ecx, [ebp - 4]
mov edx, eax
push ecx
call fcn.0040dcec
mov ebx, eax
jmp 0x40dc3d
lea eax, [ebp - 4]
push eax
push dword [edx + 0x30]
movzx eax, byte [edx + 0x12]
push dword [edx + 0x2c]
push dword [edx + 0x28]
push dword [edx + 0x24]
push dword [edx + 0x20]
push dword [edx + 0x1c]
push dword [edx + 0x18]
push dword [edx + 0x14]
push eax
lea eax, [edx + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x40dc41
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x40dc73
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push edi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x40dc6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x40dc73
xor ebx, ebx
cmp dword [ebp - 8], ebx
sete bl
cmp dword [ebp - 4], 0
je 0x40dc82
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop edi
mov eax, ebx
pop ebx
leave
ret
Function at 0x40dcec
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 4], 0
push esi
push edi
push 0x44
pop eax
push eax
push 8
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0xff
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x40dd28
mov esi, 0x8007000e
jmp 0x40de1e
mov edx, dword [ebp - 8]
lea ecx, [ebp - 4]
push ebx
call fcn.0040e0eb
mov esi, eax
test esi, esi
js 0x40de04
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 0x10]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x40ddf9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x7a
jne 0x40dde7
cmp dword [ebp - 0xc], 0x44
jbe 0x40dda8
push dword [ebp - 0xc]
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x40dda6
call esi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40de07
mov eax, dword [ebp - 0x14]
mov edi, eax
mov edx, dword [ebp - 8]
cmp edx, 0xff
jbe 0x40ddc4
lea ecx, [ebp - 4]
call fcn.0040e0eb
mov esi, eax
test esi, esi
js 0x40de04
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 0x10]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x40ddf9
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40de07
mov eax, dword [ebp + 8]
mov dword [eax], edi
xor edi, edi
xor esi, esi
jmp 0x40de07
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40de12
mov ecx, ebx
call fcn.00411025
pop ebx
test edi, edi
je 0x40de1e
mov ecx, edi
call fcn.00411025
pop edi
mov eax, esi
pop esi
leave
ret 4

Function at 0x40dee5
Capabilities:
Create directory

Disassembly:
push esi
push edi
xor esi, esi
mov edi, ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40df8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40df8c
movzx eax, word [edi]
mov ecx, edi
push ebx
xor ebx, ebx
test ax, ax
je 0x40df86
push 0x5c
mov edx, eax
pop esi
cmp dx, si
mov eax, ecx
cmovne eax, ebx
add ecx, 2
mov ebx, eax
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x40df1e
test ebx, ebx
je 0x40df86
xor eax, eax
xor edx, edx
mov ecx, edi
mov word [ebx], ax
call fcn.0040dee5
mov esi, eax
push 0x5c
pop eax
mov word [ebx], ax
test esi, esi
js 0x40df8b
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40df82
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40df72
xor esi, esi
inc esi
jmp 0x40df8b
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x40df8b
xor esi, esi
jmp 0x40df8b
mov esi, 0x80070003
pop ebx
pop edi
mov eax, esi
pop esi
ret
Function at 0x40e550
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10014
call fcn.0042399d
mov eax, dword [0x42e05c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x10008], 0
and dword [ebp - 0x1000c], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
mov dword [ebp - 0x10010], ecx
mov dword [ebp - 0x10014], eax
call fcn.0040e4d7
mov esi, eax
test esi, esi
js 0x40e65d
lea eax, [ebp - 0x10008]
push eax
push 0
push 0
push edi
push dword [0x42f3a0]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40e618
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 0x40e5f4
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40e65d
cmp dword [ebp - 0x1000c], 0
push 0
jbe 0x40e632
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 0x40e5bb
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x40e5bb
jmp 0x40e65d
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 0x40e65d
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp dword [ebp - 0x10008], 0
je 0x40e672
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.00411433
leave
ret 8
Function at 0x40e7ca
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor eax, eax
mov edi, ecx
mov dword [ebp - 8], eax
mov esi, edx
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], eax
test edi, edi
je 0x40e81d
cmp word [edi], ax
je 0x40e81d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
call ebx
push dword [ebp - 0xc]
mov esi, eax
call ebx
add eax, 3
lea ecx, [ebp - 8]
add eax, esi
mov edx, edi
push eax
call fcn.0040e179
mov edi, eax
test edi, edi
js 0x40e99e
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
jmp 0x40e852
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call ebx
lea ecx, [ebp - 8]
lea edx, [eax + 3]
call fcn.0040e0eb
mov edi, eax
test edi, edi
js 0x40e99e
push 0xffffffffffffffff
push esi
mov esi, dword [ebp - 8]
push 4
push esi
call fcn.00414840
mov eax, dword [ebp - 0xc]
add esp, 0x10
add eax, 6
push 0x5c
mov dword [ebp - 4], eax
movzx eax, word [esi]
pop edx
cmp dx, ax
jne 0x40e866
cmp dx, word [esi + 2]
je 0x40e8a5
push 0x61
pop ecx
cmp cx, ax
ja 0x40e876
push 0x7a
pop ecx
cmp cx, ax
jae 0x40e88e
push 0x41
pop ecx
cmp cx, ax
ja 0x40e997
push 0x5a
pop ecx
cmp cx, ax
jb 0x40e997
push 0x3a
pop eax
cmp ax, word [esi + 2]
jne 0x40e997
cmp dx, word [esi + 4]
jne 0x40e997
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40e8c0
and dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0xc
mov dword [ebp - 0x10], eax
push esi
call ebx
mov ecx, dword [ebp - 4]
lea ebx, [esi + eax*2]
movzx eax, word [ecx]
test ax, ax
je 0x40e9a1
push 0x5c
pop edx
cmp dx, ax
jne 0x40e8e6
cmp ecx, dword [ebp - 0xc]
je 0x40e983
mov word [ebx], ax
cmp dx, ax
jne 0x40e980
push dword [ebp - 0x10]
xor eax, eax
push esi
mov word [ebx + 2], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40e954
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xb7
jne 0x40e942
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40e93e
push eax
push 7
push esi
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x40e93e
call edi
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40e9a1
xor edi, edi
jmp 0x40e954
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40e9a1
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x40e97a
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40e9a1
mov ecx, dword [ebp - 4]
push 0x5c
pop edx
add ebx, 2
add ecx, 2
mov dword [ebp - 4], ecx
movzx eax, word [ecx]
test ax, ax
jne 0x40e8d8
jmp 0x40e9a1
mov edi, 0x80070057
jmp 0x40e9a1
mov esi, dword [ebp - 8]
test esi, esi
je 0x40e9ac
mov ecx, esi
call fcn.00411025
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc