joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b790
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x40b7c1
call fcn.0040d953
mov dword [eax], esi
call fcn.0040d940
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0040ac67
add esp, 0x14
push 0x16
pop eax
jmp 0x40b816
test dword [ebp + 0xc], 0xfffffff9
jne 0x40b79d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40b7ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040d966
pop ecx
call fcn.0040d940
mov eax, dword [eax]
jmp 0x40b816
test al, 0x10
jne 0x40b814
test al, 1
je 0x40b814
test byte [ebp + 0xc], 2
je 0x40b814
call fcn.0040d953
mov dword [eax], 5
call fcn.0040d940
mov dword [eax], 0xd
jmp 0x40b7e5
xor eax, eax
pop esi
pop ebp
ret

Function at 0x413796
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040d3d3
and dword [ebp - 4], 0
cmp dword [0x42309c], 0
mov ebx, eax
jne 0x413847
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4138f8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4138f8
push eax
call fcn.0040d361
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42309c], eax
call esi
push eax
call fcn.0040d361
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4230a0], eax
call esi
push eax
call fcn.0040d361
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4230a4], eax
call esi
push eax
call fcn.0040d361
pop ecx
mov dword [0x4230ac], eax
test eax, eax
je 0x413847
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040d361
pop ecx
mov dword [0x4230a8], eax
mov eax, dword [0x4230a8]
cmp eax, ebx
je 0x41389f
cmp dword [0x4230ac], ebx
je 0x41389f
push eax
call fcn.0040d3dc
push dword [0x4230ac]
mov esi, eax
call fcn.0040d3dc
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41389f
test edi, edi
je 0x41389f
call esi
test eax, eax
je 0x413896
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x413896
test byte [ebp - 0xc], 1
jne 0x41389f
or dword [ebp + 0x10], 0x200000
jmp 0x4138d8
mov eax, dword [0x4230a0]
cmp eax, ebx
je 0x4138d8
push eax
call fcn.0040d3dc
pop ecx
test eax, eax
je 0x4138d8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4138d8
mov eax, dword [0x4230a4]
cmp eax, ebx
je 0x4138d8
push eax
call fcn.0040d3dc
pop ecx
test eax, eax
je 0x4138d8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42309c]
call fcn.0040d3dc
pop ecx
test eax, eax
je 0x4138f8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4138fa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401560
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x49421c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 1
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4015b4
xor eax, eax
jmp 0x4016fc
cmp dword [ebp - 8], 2
je 0x4015d0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4016fc
lea edx, [ebp - 0x28]
push edx
push 0x20019
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4016ef
mov dword [ebp - 0x2c], 9
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4016e5
cmp dword [ebp - 0x2c], 8
jne 0x4016e5
movzx edx, byte [ebp - 0x20]
push edx
call fcn.00405b80
add esp, 4
movzx ebx, al
shl ebx, 4
movzx eax, byte [ebp - 0x1f]
push eax
call fcn.00405b80
add esp, 4
movzx ecx, al
or ebx, ecx
mov edx, dword [ebp + 0x14]
mov byte [edx], bl
movzx eax, byte [ebp - 0x1e]
push eax
call fcn.00405b80
add esp, 4
movzx ebx, al
shl ebx, 4
movzx ecx, byte [ebp - 0x1d]
push ecx
call fcn.00405b80
add esp, 4
movzx edx, al
or ebx, edx
mov eax, dword [ebp + 0x14]
mov byte [eax + 1], bl
movzx ecx, byte [ebp - 0x1c]
push ecx
call fcn.00405b80
add esp, 4
movzx ebx, al
shl ebx, 4
movzx edx, byte [ebp - 0x1b]
push edx
call fcn.00405b80
add esp, 4
movzx eax, al
or ebx, eax
mov ecx, dword [ebp + 0x14]
mov byte [ecx + 2], bl
movzx edx, byte [ebp - 0x1a]
push edx
call fcn.00405b80
add esp, 4
movzx ebx, al
shl ebx, 4
movzx eax, byte [ebp - 0x19]
push eax
call fcn.00405b80
add esp, 4
movzx ecx, al
or ebx, ecx
mov edx, dword [ebp + 0x14]
mov byte [edx + 3], bl
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045b79b
mov esp, ebp
pop ebp
ret
Function at 0x404cd0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x49421c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
push 0x40000
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x404d0f
or eax, 0xffffffff
jmp 0x404e19
mov eax, dword [ebp + 0x10]
push eax
push 4
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
je 0x404d2b
or eax, 0xffffffff
jmp 0x404e19
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 8]
push eax
push 8
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x404d57
or eax, 0xffffffff
jmp 0x404e19
mov dword [ebp - 0x214], 0x200
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x46ed74
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x218], eax
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x210]
push eax
mov ecx, dword [ebp - 0x218]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 0xc], 0x103
jne 0x404de2
mov dword [ebp - 0xc], 0
jmp 0x404e0c
cmp dword [ebp - 0xc], 0
jne 0x404e02
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00404cd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x404d57
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045b79b
mov esp, ebp
pop ebp
ret
Function at 0x4050d0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
mov eax, dword [0x49421c]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x19c], 0xffffffff
push 0x46eda4
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.SAMDomainsAccountUsersNames
lea ecx, [ebp - 0x328]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 8]
push edx
push 8
push 0
lea eax, [ebp - 0x328]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40513e
or eax, 0xffffffff
jmp 0x40525c
mov dword [ebp - 0x330], 0x101
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x334], ecx
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x330]
push edx
lea eax, [ebp - 0x2a8]
push eax
mov ecx, dword [ebp - 0x334]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x1a0], eax
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 0x1a0], 0
jne 0x405231
lea ecx, [ebp - 0x328]
push ecx
lea edx, [ebp - 0x198]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x46edd4
lea eax, [ebp - 0x198]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x2a8]
push ecx
lea edx, [ebp - 0x198]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0
push 0
lea eax, [ebp - 0x32c]
push eax
push 0x46ed76
lea ecx, [ebp - 0x198]
push ecx
push 0x80000002
call fcn.00405d30
add esp, 0x1c
test eax, eax
jne 0x405204
mov dword [ebp - 0x19c], 0xffffffff
jmp 0x40524c
mov edx, dword [ebp - 0x32c]
cmp edx, dword [ebp + 8]
jne 0x40522f
push 0x100
lea eax, [ebp - 0x2a8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov dword [ebp - 0x19c], 0
jmp 0x40523f
cmp dword [ebp - 0x1a0], 0x103
je 0x40523f
jmp 0x40524c
cmp dword [ebp - 0x1a0], 0
je 0x40513e
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x19c]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0045b79b
mov esp, ebp
pop ebp
ret
Function at 0x405580
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
mov eax, dword [0x49421c]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1a8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x46ee34
mov ecx, dword [ebp - 8]
lea edx, [ebp + ecx - 0x1a8]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x1a8]
push eax
call fcn.00404ec0
add esp, 4
lea ecx, [ebp - 0x1a8]
push ecx
push 0x46ee40
call fcn.00404e30
add esp, 8
test eax, eax
jne 0x4055fe
or eax, 0xffffffff
jmp 0x4056bc
lea edx, [ebp - 0x1a8]
push edx
call fcn.00404f30
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x405643
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00405270
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x405643
lea edx, [ebp - 0x1a8]
push edx
call fcn.00404ec0
add esp, 4
mov eax, dword [ebp - 4]
jmp 0x4056bc
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x405654
mov dword [ebp - 4], 0xfffffffc
jmp 0x4056aa
push 0x46ee44
lea ecx, [ebp - 0x90]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.SAMDomainsAccount
lea edx, [ebp - 0x90]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push pe_nt_image_headers32
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0x46ee68
lea ecx, [ebp - 0x90]
push ecx
push 0x80000002
call fcn.00405d30
add esp, 0x1c
neg eax
sbb eax, eax
neg eax
sub eax, 1
mov dword [ebp - 4], eax
lea edx, [ebp - 0x1a8]
push edx
call fcn.00404ec0
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0045b79b
mov esp, ebp
pop ebp
ret
Function at 0x4056d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x764
mov eax, dword [0x49421c]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 4], 0
push 0x46ee6c
lea eax, [ebp - 0x6d8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.Cache
lea ecx, [ebp - 0x6d8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 8]
push edx
push 1
push 0
lea eax, [ebp - 0x6d8]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40573b
or eax, 0xffffffff
jmp 0x4058c0
mov dword [ebp - 0x654], 0x80
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x764], ecx
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x654]
push edx
lea eax, [ebp - 0x760]
push eax
mov ecx, dword [ebp - 0x764]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 0x10], 0
jne 0x40588e
push str.NL_Control
lea ecx, [ebp - 0x760]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x4057a6
jmp 0x4058a9
push 0x638
push 0
lea edx, [ebp - 0x650]
push edx
call fcn.0045bb20
add esp, 0xc
lea eax, [ebp - 0x6dc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x760]
push ecx
lea edx, [ebp - 0x6d8]
push edx
push 0x80000002
call fcn.00405d30
add esp, 0x1c
test eax, eax
jne 0x4057f4
mov dword [ebp - 0xc], 0xffffffff
jmp 0x4058b3
push 4
push 0x3000
mov eax, dword [ebp - 0x6dc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x40581f
mov dword [ebp - 0xc], 0xfffffffd
jmp 0x4058b3
push 0
mov ecx, dword [ebp - 0x6dc]
push ecx
mov edx, dword [ebp - 0x48]
push edx
push 0
lea eax, [ebp - 0x760]
push eax
lea ecx, [ebp - 0x6d8]
push ecx
push 0x80000002
call fcn.00405d30
add esp, 0x1c
test eax, eax
jne 0x405856
mov dword [ebp - 0xc], 0xffffffff
jmp 0x4058b3
mov edx, dword [ebp - 0x6dc]
mov dword [ebp - 0x44], edx
lea eax, [ebp - 0x650]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00405fd0
add esp, 8
test eax, eax
jne 0x40588c
push str.ERROR:_fatal__not_enough_memory
call fcn.0045bb9a
add esp, 4
mov dword [ebp - 0xc], 0xfffffffd
jmp 0x4058b3
jmp 0x4058a9
cmp dword [ebp - 0x10], 0x103
jne 0x4058a2
mov dword [ebp - 0xc], 0
jmp 0x4058b3
mov dword [ebp - 0xc], 0xffffffff
cmp dword [ebp - 0x10], 0
je 0x40573b
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045b79b
mov esp, ebp
pop ebp
ret
Function at 0x405d30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 1
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x405de3
cmp dword [ebp - 8], 2
jne 0x405de3
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x10], ecx
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x20], 0
je 0x405da5
cmp dword [ebp - 0xc], 0
jne 0x405da5
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x1c], 0
jne 0x405dc0
xor eax, eax
cmp dword [ebp - 0xc], 0
sete al
jmp 0x405de5
cmp dword [ebp - 0xc], 0
jne 0x405dd7
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 0x1c]
jne 0x405dd7
mov dword [ebp - 0x14], 1
jmp 0x405dde
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
jmp 0x405de5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x406530
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.0045c2a0
mov eax, dword [0x49421c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x100c], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x100c], 0
jne 0x406567
xor eax, eax
jmp 0x4066bc
cmp dword [ebp + 0x10], 0
jne 0x4065a1
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1010], eax
cmp dword [ebp - 0x1010], 0xffffffff
jne 0x40659f
xor eax, eax
jmp 0x4066bc
jmp 0x4065ae
push 0x46f188
call fcn.0045bb9a
add esp, 4
cmp dword [ebp + 0xc], 0
jne 0x4065d2
lea edx, [ebp - 0x1008]
push edx
mov eax, dword [ebp - 0x100c]
push eax
call fcn.004061c0
add esp, 8
mov dword [ebp - 0x1014], eax
jmp 0x4065f4
cmp dword [ebp + 0xc], 1
jne 0x4065f4
lea ecx, [ebp - 0x1008]
push ecx
mov edx, dword [ebp - 0x100c]
push edx
call fcn.00406390
add esp, 8
mov dword [ebp - 0x1014], eax
cmp dword [ebp + 0x10], 0
je 0x40660b
lea eax, [ebp - 0x1008]
push eax
call fcn.0045b6de
add esp, 4
jmp 0x406636
push 0
lea ecx, [ebp - 0x1018]
push ecx
lea edx, [ebp - 0x1008]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x1008]
push eax
mov ecx, dword [ebp - 0x1010]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x1014], 0
je 0x406648
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x100c]
mov ecx, dword [eax + 0x2a4]
mov dword [ebp - 0x100c], ecx
cmp dword [ebp - 0x100c], 0
jne 0x4065ae
cmp dword [ebp + 0x10], 0
jne 0x40667c
mov edx, dword [ebp - 0x1010]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406689
push 0x46f1f0
call fcn.0045bb9a
add esp, 4
cmp dword [ebp + 0x10], 0
je 0x4066a2
mov eax, dword [ebp - 4]
push eax
push 0x46f258
call fcn.0045b6de
add esp, 8
jmp 0x4066b7
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
push 0x46f270
call fcn.0045b6de
add esp, 0xc
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0045b79b
mov esp, ebp
pop ebp
ret
Function at 0x406a40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.0045c2a0
mov eax, dword [0x49421c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x100c], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x100c], 0
jne 0x406a77
xor eax, eax
jmp 0x406bb7
cmp dword [ebp + 0x10], 0
jne 0x406ab1
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1010], eax
cmp dword [ebp - 0x1010], 0xffffffff
jne 0x406aaf
xor eax, eax
jmp 0x406bb7
jmp 0x406abe
push 0x46f410
call fcn.0045bb9a
add esp, 4
cmp dword [ebp + 0xc], 0
jne 0x406adc
lea edx, [ebp - 0x1008]
push edx
mov eax, dword [ebp - 0x100c]
push eax
call fcn.004066d0
add esp, 8
jmp 0x406af8
cmp dword [ebp + 0xc], 1
jne 0x406af8
lea ecx, [ebp - 0x1008]
push ecx
mov edx, dword [ebp - 0x100c]
push edx
call fcn.004068a0
add esp, 8
cmp dword [ebp + 0x10], 0
je 0x406b0f
lea eax, [ebp - 0x1008]
push eax
call fcn.0045b6de
add esp, 4
jmp 0x406b3a
push 0
lea ecx, [ebp - 0x1014]
push ecx
lea edx, [ebp - 0x1008]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x1008]
push eax
mov ecx, dword [ebp - 0x1010]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x100c]
mov eax, dword [edx + 0x13c]
mov dword [ebp - 0x100c], eax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x100c], 0
jne 0x406abe
cmp dword [ebp + 0x10], 0
jne 0x406b77
mov edx, dword [ebp - 0x1010]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406b84
push 0x46f478
call fcn.0045bb9a
add esp, 4
cmp dword [ebp + 0x10], 0
je 0x406b9d
mov eax, dword [ebp - 4]
push eax
push 0x46f4e0
call fcn.0045b6de
add esp, 8
jmp 0x406bb2
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
push 0x46f4f8
call fcn.0045b6de
add esp, 0xc
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0045b79b
mov esp, ebp
pop ebp
ret
Function at 0x406bd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x494
mov eax, dword [0x49421c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40c], eax
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
jne 0x406c2d
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x410], eax
cmp dword [ebp - 0x410], 0xffffffff
jne 0x406c2b
xor eax, eax
jmp 0x406d6a
jmp 0x406c3a
push 0x46f518
call fcn.0045bb9a
add esp, 4
mov edx, dword [ebp - 0x40c]
cmp dword [edx + 0x610], 0
jne 0x406cf6
lea eax, [ebp - 0x490]
push eax
push 0x10
mov ecx, dword [ebp - 0x40c]
add ecx, 0x628
push ecx
call fcn.00405be0
add esp, 0xc
lea edx, [ebp - 0x490]
push edx
mov eax, dword [ebp - 0x40c]
add eax, 0x202
push eax
mov ecx, dword [ebp - 0x40c]
add ecx, 0x404
push ecx
mov edx, dword [ebp - 0x40c]
push edx
push str.Cached_Entry_r_n_tUsername:__ls_r_n_tDomain:__ls_r_n_tFull_Domain:__ls_r_n_tNT_hash:__s_r_n
push 0x400
lea eax, [ebp - 0x408]
push eax
call fcn.0045c34f
add esp, 0x1c
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp + 0x10], 0
je 0x406ccb
lea edx, [ebp - 0x408]
push edx
call fcn.0045bb9a
add esp, 4
jmp 0x406cf6
push 0
lea eax, [ebp - 0x494]
push eax
lea ecx, [ebp - 0x408]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [ebp - 0x408]
push edx
mov eax, dword [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x40c]
mov edx, dword [ecx + 0x638]
mov dword [ebp - 0x40c], edx
cmp dword [ebp - 0x40c], 0
jne 0x406c3a
cmp dword [ebp + 0x10], 0
jne 0x406d2a
mov eax, dword [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406d37
push 0x46f5d0
call fcn.0045bb9a
add esp, 4
cmp dword [ebp + 0x10], 0
je 0x406d50
mov ecx, dword [ebp - 4]
push ecx
push str._n_d_dumped_accounts_n_n
call fcn.0045b6de
add esp, 8
jmp 0x406d65
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
push str._n_d_dumped_accounts_to__s_n_n
call fcn.0045b6de
add esp, 0xc
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0045b79b
mov esp, ebp
pop ebp
ret

Function at 0x406d80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x406daf
xor eax, eax
jmp 0x406df0
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x198]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x194]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
xor ecx, ecx
cmp eax, dword [edx + 0x198]
sete cl
mov eax, ecx
mov esp, ebp
pop ebp
ret