joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4041ae
Capabilities:
Get common file path

Disassembly:
mov eax, 0x42f426
call fcn.0042f320
mov eax, 0x1c48
call fcn.00410530
push ebx
push esi
xor esi, esi
cmp dword [0x4e2910], 0x5b1
push edi
jne 0x404250
push esi
call dword [sym.imp.KERNEL32.dll_SetLocalTime]
lea eax, [ebp - 0x54]
call fcn.004044ec
push esi
mov dword [ebp - 4], esi
call fcn.00405e35
pop ecx
call fcn.004051f5
push 0x403878
lea ecx, [ebp - 0x1c]
call fcn.00403cc0
lea ecx, [ebp - 0x1c]
call fcn.00403cdc
push esi
push esi
call fcn.00405a3e
push esi
call fcn.00405a0f
add esp, 0xc
call fcn.004051fa
push esi
call fcn.00405eb1
mov dword [esp], esi
call fcn.00403e13
fstp st(0)
push esi
call fcn.004059f8
pop ecx
lea eax, [ebp - 0x38]
push eax
call fcn.0040451f
lea eax, [ebp - 0x38]
push eax
call fcn.00404560
or dword [ebp - 4], 0xffffffff
lea edi, [ebp - 0x54]
call fcn.00404511
add dword [0x4e2910], 0x1134b
push dword [0x4e2910]
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x4e1860], eax
call fcn.004040f9
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, 0x206d47
jg 0x404299
inc edi
cmp edi, 0x4f6a4
jl 0x404279
xor edi, edi
cmp dword [0x4e2910], esi
jbe 0x4042d4
cmp dword [0x4e2910], 0xa8
mov eax, dword [0x4e2914]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x4e1860]
mov byte [ecx + edi], al
jne 0x4042cb
push esi
call dword [sym.imp.KERNEL32.dll_SetComputerNameW]
inc edi
cmp edi, dword [0x4e2910]
jb 0x4042a3
xor edi, edi
mov eax, dword [0x4e2910]
add eax, edi
cmp eax, 0xe
jne 0x40431a
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
push esi
lea eax, [ebp - 0x1454]
push eax
push esi
push 0x403888
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push esi
push esi
lea eax, [ebp - 0xc54]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
inc edi
cmp edi, 0x39621
jl 0x4042d6
call fcn.00403ff2
xor edi, edi
call ebx
cmp edi, 0x26
jne 0x404336
call fcn.004040df
inc edi
cmp edi, 0x6753f
jl 0x40432a
push 0x7b
pop edi
cmp dword [0x4e2910], 0x86
jne 0x404379
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
push esi
push esi
call sub.KERNEL32.dll_Process32FirstW
push esi
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push esi
lea eax, [ebp - 0x1c54]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp dword [0x4e2910], 0xf
jne 0x40438a
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleProcessList]
dec edi
jne 0x404342
push 0x4038a8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4010a0
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4010c3
xor eax, eax
pop esi
ret
mov eax, esi
pop esi
ret

Function at 0x4019e0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x108
push ebx
mov bl, byte [esp + 0x110]
push edi
mov ecx, 0x41
xor eax, eax
mov edi, 0x41eb24
rep stosd dword es:[edi], eax
mov eax, dword [0x41d22c]
lea ecx, [esp + 8]
mov dword [esp + 8], eax
push ecx
mov byte [esp + 0xc], bl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x401a51
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xc]
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
movsx eax, bl
push edx
push eax
push 0x41d21c
push 0x41eb24
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, 0x41eb24
pop edi
pop ebx
add esp, 0x108
ret
pop edi
xor eax, eax
pop ebx
add esp, 0x108
ret

Function at 0x401a60
Capabilities:
Get disk information

Disassembly:
sub esp, 0x108
push ebx
mov bl, byte [esp + 0x110]
push edi
mov ecx, 0x41
xor eax, eax
mov edi, 0x41ea20
rep stosd dword es:[edi], eax
mov eax, dword [0x41d22c]
lea ecx, [esp + 8]
mov dword [esp + 8], eax
push ecx
mov byte [esp + 0xc], bl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x401ad1
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xc]
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
movsx eax, bl
push edx
push eax
push 0x41d230
push 0x41ea20
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, 0x41ea20
pop edi
pop ebx
add esp, 0x108
ret
pop edi
xor eax, eax
pop ebx
add esp, 0x108
ret

Function at 0x4023c0
Capabilities:
Read .ini file

Disassembly:
push ecx
push esi
add ecx, 0x74
push str.UserDataFavorite.ini
lea eax, [esp + 8]
push ecx
push eax
call fcn.0040f699
mov ecx, dword [esp + 4]
push ecx
push 1
push 0x41d318
push str.CDRom
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [esp + 4]
mov esi, eax
call fcn.0040f4b6
mov eax, esi
pop esi
pop ecx
ret
Function at 0x402490
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x114
push ebx
lea eax, [esp + 4]
push esi
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov ebx, ecx
push 0x80000002
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40254e
push edi
mov ecx, 0x41
lea edi, [esp + 0x18]
mov esi, dword [esp + 0xc]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
stosb byte es:[edi], al
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push 0
push str.DFYDAutoPlay
push esi
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
je 0x402543
mov eax, dword [ebx + 0x7c]
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.00405bf0
add esp, 8
test eax, eax
jne 0x402543
test esi, esi
je 0x402535
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, 1
pop ebx
add esp, 0x114
ret
test esi, esi
je 0x40254e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
pop ebx
add esp, 0x114
ret

Function at 0x402560
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 4]
push edi
push eax
push 0x2001f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov esi, ecx
push 0x80000002
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402595
mov edi, dword [esp + 8]
jmp 0x4025cc
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40260a
mov edi, dword [esp + 8]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4025f3
mov esi, dword [esi + 0x7c]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push 1
push 0
push str.DFYDAutoPlay
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x4025ff
push str.DFYDAutoPlay
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test edi, edi
je 0x40260a
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 8
ret 4
Function at 0x40961d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41deb8
cmp edx, dword [eax]
je 0x40963f
add eax, 8
inc ecx
cmp eax, 0x41df48
jl 0x409630
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41deb8]
jne 0x40976d
mov eax, dword [0x420e40]
cmp eax, 1
je 0x409747
test eax, eax
jne 0x409670
cmp dword [0x41d9c8], 1
je 0x409747
cmp edx, 0xfc
je 0x40976d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4096a7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00409770
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00409860
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4096ea
lea eax, [ebp - 0x1a4]
push eax
call fcn.00409860
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x418e04
push edi
call fcn.0040bc90
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00409770
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00409780
lea eax, [ebp - 0xa0]
push 0x418de4
push eax
call fcn.00409780
push dword [esi + 0x41debc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00409780
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040bc05
add esp, 0x2c
pop edi
jmp 0x40976d
lea eax, [ebp + 8]
lea esi, [esi + 0x41debc]
push 0
push eax
push dword [esi]
call fcn.00409860
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x411d14
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x411d56
call fcn.00414fda
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x411d56
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x411d4d
xor eax, eax
jmp 0x411d5e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00411d64
pop edi
pop esi
pop ebx
ret 4

Function at 0x415701
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41572f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41574d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00415667
jmp 0x41574d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41574d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00415667
test edi, edi
mov eax, edi
jne 0x415737
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40c647
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 0x40c65f
mov eax, 0x80004001
jmp 0x40c7d1
mov eax, dword [ebp + 0xc]
push ebx
push edi
test byte [eax + 4], 2
je 0x40c7b2
push 0xffffffffffffffff
add eax, 0x108
lea ecx, [esi + 0x115c]
push eax
push 0x824
push ecx
call fcn.00414d54
add esp, 0x10
cmp eax, 0x50
jne 0x40c699
mov edi, 0x8007007a
jmp 0x40c7cd
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 0x40c6d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40c7cd
movzx eax, word [ebx]
push 0x68
pop ecx
push 0x74
pop edx
cmp cx, ax
jne 0x40c74d
cmp dx, word [esi + 0x116]
jne 0x40c712
cmp dx, word [esi + 0x118]
jne 0x40c712
push 0x70
pop ecx
cmp cx, word [esi + 0x11a]
push 0x68
pop ecx
jne 0x40c712
push 0x3a
pop edx
cmp dx, word [esi + 0x11c]
push 0x74
pop edx
je 0x40c776
cmp cx, ax
jne 0x40c74d
cmp dx, word [esi + 0x116]
jne 0x40c74d
cmp dx, word [esi + 0x118]
jne 0x40c74d
push 0x70
pop ecx
cmp cx, word [esi + 0x11a]
jne 0x40c74d
push 0x73
pop ecx
cmp cx, word [esi + 0x11c]
jne 0x40c74d
push 0x3a
pop ecx
cmp cx, word [esi + 0x11e]
je 0x40c776
push 0x66
pop ecx
cmp cx, ax
jne 0x40c796
cmp dx, word [esi + 0x116]
jne 0x40c796
push 0x70
pop eax
cmp ax, word [esi + 0x118]
jne 0x40c796
push 0x3a
pop eax
cmp ax, word [esi + 0x11a]
jne 0x40c796
xor ecx, ecx
jmp 0x40c77d
add ebx, 2
cmp word [ebx], cx
jne 0x40c77a
push 0x2f
pop eax
cmp ax, word [ebx - 2]
je 0x40c7a5
mov word [ebx], ax
xor eax, eax
mov word [ebx + 2], ax
jmp 0x40c7a5
mov ecx, ebx
call fcn.0040eca8
mov edi, eax
test edi, edi
js 0x40c7cd
xor ecx, ecx
mov dword [esi + 0x21a4], ecx
test edi, edi
js 0x40c7c4
mov eax, dword [ebp + 0xc]
test byte [eax + 4], 4
je 0x40c7c4
mov eax, dword [eax + 0x1150]
mov dword [esi + 0x21a8], eax
push ecx
push esi
call fcn.0040c7d6
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x40d928
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 0x40d945
inc edi
jmp 0x40da10
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebx + 0x250], 0xffffffff
cmp dword [ebp + 8], esi
je 0x40da10
cmp dword [ebx + 0x14], esi
jne 0x40da10
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 0x40d99f
call esi
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40da10
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 0x40d9d3
call esi
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40da10
push dword [ebx + 0x250]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x40d9f7
call esi
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40da10
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 0x40da29
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 0x40e139
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 0x40e160
lea ecx, [ebp - 4]
mov edx, eax
push ecx
call fcn.0040e256
mov ebx, eax
jmp 0x40e1a3
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 0x40e1a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x40e1d9
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push edi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x40e1d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x40e1d9
xor ebx, ebx
cmp dword [ebp - 8], ebx
sete bl
cmp dword [ebp - 4], 0
je 0x40e1e8
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 0x40e256
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 0x40e292
mov esi, 0x8007000e
jmp 0x40e39a
mov edx, dword [ebp - 8]
lea ecx, [ebp - 4]
push ebx
call fcn.0040e658
mov esi, eax
test esi, esi
js 0x40e36e
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 0x40e363
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x7a
jne 0x40e351
cmp dword [ebp - 0xc], 0x44
jbe 0x40e312
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 0x40e310
call esi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40e371
mov eax, dword [ebp - 0x14]
mov edi, eax
mov edx, dword [ebp - 8]
cmp edx, 0xff
jbe 0x40e32e
lea ecx, [ebp - 4]
call fcn.0040e658
mov esi, eax
test esi, esi
js 0x40e36e
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 0x40e363
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40e371
mov eax, dword [ebp + 8]
mov dword [eax], edi
xor edi, edi
xor esi, esi
jmp 0x40e371
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40e385
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
test edi, edi
je 0x40e39a
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40e47a
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 0x40e520
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40e520
movzx ecx, word [edi]
mov eax, edi
push ebx
xor ebx, ebx
test cx, cx
je 0x40e51a
push 0x5c
pop edx
cmp cx, dx
cmove ebx, eax
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x40e4b6
test ebx, ebx
je 0x40e51a
mov edx, dword [ebp - 4]
xor eax, eax
mov ecx, edi
mov word [ebx], ax
call fcn.0040e47a
mov esi, eax
push 0x5c
pop eax
mov word [ebx], ax
test esi, esi
js 0x40e51f
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40e516
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40e506
xor esi, esi
inc esi
jmp 0x40e51f
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x40e51f
xor esi, esi
jmp 0x40e51f
mov esi, 0x80070003
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40eb12
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10014
call fcn.00422fc9
mov eax, dword [0x42f058]
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.0040ea99
mov esi, eax
test esi, esi
js 0x40ec1f
lea eax, [ebp - 0x10008]
push eax
push 0
push 0
push edi
push dword [0x4302b0]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40ebda
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 0x40ebb6
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40ec1f
cmp dword [ebp - 0x1000c], 0
push 0
jbe 0x40ebf4
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 0x40eb7d
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x40eb7d
jmp 0x40ec1f
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 0x40ec1f
call edi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp dword [ebp - 0x10008], 0
je 0x40ec34
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.0041195e
mov esp, ebp
pop ebp
ret 8
Function at 0x40ed88
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 0x40eddb
cmp word [edi], ax
je 0x40eddb
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.0040e6e7
mov edi, eax
test edi, edi
js 0x40ef5f
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 4]
jmp 0x40ee10
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call ebx
lea ecx, [ebp - 4]
lea edx, [eax + 3]
call fcn.0040e658
mov edi, eax
test edi, edi
js 0x40ef5f
push 0xffffffffffffffff
push esi
mov esi, dword [ebp - 4]
push 4
push esi
call fcn.00414d54
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 0x40ee24
cmp dx, word [esi + 2]
je 0x40ee63
push 0x61
pop ecx
cmp cx, ax
ja 0x40ee34
push 0x7a
pop ecx
cmp cx, ax
jae 0x40ee4c
push 0x41
pop ecx
cmp cx, ax
ja 0x40ef58
push 0x5a
pop ecx
cmp cx, ax
jb 0x40ef58
push 0x3a
pop eax
cmp ax, word [esi + 2]
jne 0x40ef58
cmp dx, word [esi + 4]
jne 0x40ef58
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40ee7e
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 0x40ef62
push 0x5c
pop edx
cmp dx, ax
jne 0x40eea7
cmp ebx, dword [ebp - 8]
je 0x40ef47
mov word [ecx], ax
cmp dx, ax
jne 0x40ef41
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 0x40ef15
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xb7
jne 0x40ef03
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40eeff
push eax
push 7
push esi
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x40eeff
call edi
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40ef62
xor edi, edi
jmp 0x40ef15
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40ef62
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x40ef3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40ef62
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 0x40ee99
jmp 0x40ef62
mov edi, 0x80070057
jmp 0x40ef62
mov esi, dword [ebp - 4]
test esi, esi
je 0x40ef76
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc