joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404f07
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.0041045b
mov esi, eax
test esi, esi
js 0x404fb7
mov ecx, dword [ebp - 8]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 4]
call fcn.0041045b
mov esi, eax
test esi, esi
jne 0x404fb0
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 0x404f6e
push 0x2d
pop ecx
cmp cx, ax
jne 0x404fd8
lea esi, [edi + 2]
push esi
push str.standalone
call ebx
test eax, eax
jne 0x404f82
mov eax, dword [ebp + 8]
jmp 0x404f91
push esi
push str.standalone:temp
call ebx
test eax, eax
jne 0x404fd0
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.0041045b
mov esi, eax
test esi, esi
je 0x404f58
xor eax, eax
test esi, esi
cmovns esi, eax
mov edi, dword [ebp - 4]
test edi, edi
je 0x404fc5
mov ecx, edi
call fcn.00411336
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push str.standalone:delete
call ebx
mov esi, 0x80070057
jmp 0x404fba
Function at 0x409fb2
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 0x40a024
mov eax, dword [edi + 0xc]
lea edx, [ebp - 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov esi, eax
test esi, esi
js 0x40a10e
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 0x40a119
cmp esi, 0x80070003
je 0x40a119
test esi, esi
js 0x40a10e
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 0x40a101
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 0x40a101
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 0x40a101
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 0x40a10e
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
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 0x40a10e
Function at 0x40a131
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 0x40a14e
xor esi, esi
inc esi
jmp 0x40a320
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x40a19c
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 0x40a320
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 0x40a320
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 0x40a311
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 0x40a311
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 0x40a311
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 0x40a311
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 0x40a311
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 0x40a311
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 0x40a311
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 0x40a311
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 0x40a320
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 0x40c450
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor ecx, ecx
cmp dword [esi + 0xc], ecx
jne 0x40c468
mov eax, 0x80004001
jmp 0x40c5da
mov eax, dword [ebp + 0xc]
push ebx
push edi
test byte [eax + 4], 2
je 0x40c5bb
push 0xffffffffffffffff
add eax, 0x108
lea ecx, [esi + 0x115c]
push eax
push 0x824
push ecx
call fcn.004144a6
add esp, 0x10
cmp eax, 0x50
jne 0x40c4a2
mov edi, 0x8007007a
jmp 0x40c5d6
push 0x824
lea ebx, [esi + 0x114]
xor edi, edi
push ebx
lea eax, [esi + 0x115c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x40c4dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40c5d6
movzx eax, word [ebx]
push 0x68
pop ecx
push 0x74
pop edx
cmp cx, ax
jne 0x40c556
cmp dx, word [esi + 0x116]
jne 0x40c51b
cmp dx, word [esi + 0x118]
jne 0x40c51b
push 0x70
pop ecx
cmp cx, word [esi + 0x11a]
push 0x68
pop ecx
jne 0x40c51b
push 0x3a
pop edx
cmp dx, word [esi + 0x11c]
push 0x74
pop edx
je 0x40c57f
cmp cx, ax
jne 0x40c556
cmp dx, word [esi + 0x116]
jne 0x40c556
cmp dx, word [esi + 0x118]
jne 0x40c556
push 0x70
pop ecx
cmp cx, word [esi + 0x11a]
jne 0x40c556
push 0x73
pop ecx
cmp cx, word [esi + 0x11c]
jne 0x40c556
push 0x3a
pop ecx
cmp cx, word [esi + 0x11e]
je 0x40c57f
push 0x66
pop ecx
cmp cx, ax
jne 0x40c59f
cmp dx, word [esi + 0x116]
jne 0x40c59f
push 0x70
pop eax
cmp ax, word [esi + 0x118]
jne 0x40c59f
push 0x3a
pop eax
cmp ax, word [esi + 0x11a]
jne 0x40c59f
xor ecx, ecx
jmp 0x40c586
add ebx, 2
cmp word [ebx], cx
jne 0x40c583
push 0x2f
pop eax
cmp ax, word [ebx - 2]
je 0x40c5ae
mov word [ebx], ax
xor eax, eax
mov word [ebx + 2], ax
jmp 0x40c5ae
mov ecx, ebx
call fcn.0040ea5c
mov edi, eax
test edi, edi
js 0x40c5d6
xor ecx, ecx
mov dword [esi + 0x21a4], ecx
test edi, edi
js 0x40c5cd
mov eax, dword [ebp + 0xc]
test byte [eax + 4], 4
je 0x40c5cd
mov eax, dword [eax + 0x1150]
mov dword [esi + 0x21a8], eax
push ecx
push esi
call fcn.0040c5df
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x40c5df
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 eax, dword [ebx + 0xc]
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x60]
mov esi, eax
test esi, esi
js 0x40c6d2
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 0x40c6d2
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebx + 0x115c]
push eax
call edi
push eax
lea ecx, [ebx + 0x115c]
mov dword [ebp + 8], eax
push ecx
lea esi, [ebx + 0x114]
push esi
call edi
push eax
push esi
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov eax, dword [ebp + 8]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebx + 0x115c]
push eax
je 0x40c68d
push 2
jmp 0x40c68f
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 0x40c6d2
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 0x40c6e1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40c7ac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42480d
mov eax, dword fs:[0]
push eax
mov eax, 0x1168
call fcn.00422738
mov eax, dword [0x42e058]
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 0x1154
mov dword [ebp - 0x1174], eax
lea eax, [ebp - 0x1164]
push edi
push eax
mov dword [ebp - 0x116c], edi
mov dword [ebx], edi
call fcn.00412da1
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x115c]
mov dword [ebp - 0x1164], 0x1154
push 0x80
push eax
mov dword [ebp - 0x1160], 7
call fcn.004144a6
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 0x40c8fc
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 0x40c8fc
mov ecx, dword [ebp - 0x1174]
lea eax, [ebp - 0x116c]
push eax
push dword [ebp + 0xc]
lea edx, [ebp - 0x1164]
call fcn.0040c71b
mov esi, eax
test esi, esi
js 0x40c8e1
mov eax, dword [ebp - 0x116c]
mov esi, edi
mov dword [ebx], eax
jmp 0x40c8e7
mov edi, dword [ebp - 0x116c]
test edi, edi
je 0x40c8fc
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.00411647
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40d716
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 0x40d733
inc edi
jmp 0x40d7fe
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebx + 0x250], 0xffffffff
cmp dword [ebp + 8], esi
je 0x40d7fe
cmp dword [ebx + 0x14], esi
jne 0x40d7fe
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 0x40d78d
call esi
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40d7fe
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 0x40d7c1
call esi
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40d7fe
push dword [ebx + 0x250]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x40d7e5
call esi
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40d7fe
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 0x40d817
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 0x40df27
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 0x40df4e
lea ecx, [ebp - 4]
mov edx, eax
push ecx
call fcn.0040e044
mov ebx, eax
jmp 0x40df91
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 0x40df95
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x40dfc7
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push edi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x40dfbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x40dfc7
xor ebx, ebx
cmp dword [ebp - 8], ebx
sete bl
cmp dword [ebp - 4], 0
je 0x40dfd6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e044
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 0x40e080
mov esi, 0x8007000e
jmp 0x40e176
mov edx, dword [ebp - 8]
lea ecx, [ebp - 4]
push ebx
call fcn.0040e44b
mov esi, eax
test esi, esi
js 0x40e15c
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 0x40e151
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x7a
jne 0x40e13f
cmp dword [ebp - 0xc], 0x44
jbe 0x40e100
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 0x40e0fe
call esi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40e15f
mov eax, dword [ebp - 0x14]
mov edi, eax
mov edx, dword [ebp - 8]
cmp edx, 0xff
jbe 0x40e11c
lea ecx, [ebp - 4]
call fcn.0040e44b
mov esi, eax
test esi, esi
js 0x40e15c
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 0x40e151
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40e15f
mov eax, dword [ebp + 8]
mov dword [eax], edi
xor edi, edi
xor esi, esi
jmp 0x40e15f
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40e16a
mov ecx, ebx
call fcn.00411336
pop ebx
test edi, edi
je 0x40e176
mov ecx, edi
call fcn.00411336
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40e241
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov eax, edx
mov edi, ecx
push eax
push edi
mov dword [ebp - 4], eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40e2e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40e2e7
movzx ecx, word [edi]
mov eax, edi
push ebx
xor ebx, ebx
test cx, cx
je 0x40e2e1
push 0x5c
pop edx
cmp cx, dx
cmove ebx, eax
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x40e27d
test ebx, ebx
je 0x40e2e1
mov edx, dword [ebp - 4]
xor eax, eax
mov ecx, edi
mov word [ebx], ax
call fcn.0040e241
mov esi, eax
push 0x5c
pop eax
mov word [ebx], ax
test esi, esi
js 0x40e2e6
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40e2dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40e2cd
xor esi, esi
inc esi
jmp 0x40e2e6
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x40e2e6
xor esi, esi
jmp 0x40e2e6
mov esi, 0x80070003
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40e8c6
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10014
call fcn.00422738
mov eax, dword [0x42e058]
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.0040e84d
mov esi, eax
test esi, esi
js 0x40e9d3
lea eax, [ebp - 0x10008]
push eax
push 0
push 0
push edi
push dword [0x42f2b0]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40e98e
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 0x40e96a
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40e9d3
cmp dword [ebp - 0x1000c], 0
push 0
jbe 0x40e9a8
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 0x40e931
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x40e931
jmp 0x40e9d3
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 0x40e9d3
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp dword [ebp - 0x10008], 0
je 0x40e9e8
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.00411647
mov esp, ebp
pop ebp
ret 8
Function at 0x40eb3c
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 - 4], eax
mov esi, edx
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], eax
test edi, edi
je 0x40eb8f
cmp word [edi], ax
je 0x40eb8f
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
call ebx
push dword [ebp - 8]
mov esi, eax
call ebx
add eax, 3
lea ecx, [ebp - 4]
add eax, esi
mov edx, edi
push eax
call fcn.0040e4da
mov edi, eax
test edi, edi
js 0x40ed13
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 4]
jmp 0x40ebc4
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call ebx
lea ecx, [ebp - 4]
lea edx, [eax + 3]
call fcn.0040e44b
mov edi, eax
test edi, edi
js 0x40ed13
push 0xffffffffffffffff
push esi
mov esi, dword [ebp - 4]
push 4
push esi
call fcn.004144a6
mov eax, dword [ebp - 8]
add esp, 0x10
add eax, 6
push 0x5c
mov dword [ebp - 0xc], eax
movzx eax, word [esi]
pop edx
cmp dx, ax
jne 0x40ebd8
cmp dx, word [esi + 2]
je 0x40ec17
push 0x61
pop ecx
cmp cx, ax
ja 0x40ebe8
push 0x7a
pop ecx
cmp cx, ax
jae 0x40ec00
push 0x41
pop ecx
cmp cx, ax
ja 0x40ed0c
push 0x5a
pop ecx
cmp cx, ax
jb 0x40ed0c
push 0x3a
pop eax
cmp ax, word [esi + 2]
jne 0x40ed0c
cmp dx, word [esi + 4]
jne 0x40ed0c
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40ec32
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 ebx, dword [ebp - 0xc]
lea ecx, [esi + eax*2]
movzx eax, word [ebx]
mov dword [ebp - 4], ecx
test ax, ax
je 0x40ed16
push 0x5c
pop edx
cmp dx, ax
jne 0x40ec5b
cmp ebx, dword [ebp - 8]
je 0x40ecfb
mov word [ecx], ax
cmp dx, ax
jne 0x40ecf5
push dword [ebp - 0x10]
xor eax, eax
push esi
mov word [ecx + 2], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40ecc9
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xb7
jne 0x40ecb7
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40ecb3
push eax
push 7
push esi
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x40ecb3
call edi
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40ed16
xor edi, edi
jmp 0x40ecc9
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40ed16
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x40ecef
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40ed16
mov ecx, dword [ebp - 4]
push 0x5c
pop edx
add ecx, 2
mov dword [ebp - 4], ecx
add ebx, 2
movzx eax, word [ebx]
test ax, ax
jne 0x40ec4d
jmp 0x40ed16
mov edi, 0x80070057
jmp 0x40ed16
mov esi, dword [ebp - 4]
test esi, esi
je 0x40ed21
mov ecx, esi
call fcn.00411336
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc