joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52f6c0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x627c5c]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x52f6d3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x52f714
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x627d04]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x52f746
mov bl, byte [esp + ecx + 0x4c]
jmp 0x52f74a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x52f73b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x52f768
mov bl, byte [esp + ecx + 0x4c]
jmp 0x52f76c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x52f75d
xor ecx, ecx
mov eax, 0x627c6c
xor ebx, ebx
mov bl, byte [ecx + 0x627d14]
cmp byte [esp + ebx + 0x14], 0
je 0x52f797
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x627d2c]
cmp byte [esp + ebx + 0x14], 0
je 0x52f7ae
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x52f77e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x52f707
lea edx, [esp + 0x84]
push edx
call fcn.0052f7f0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x55123c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x551274
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0054f216
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0054f1ee
jmp 0x551280
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x552a33
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 0x552a75
call fcn.005594b4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x552a75
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x552a6c
xor eax, eax
jmp 0x552a7d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00552a83
pop edi
pop esi
pop ebx
ret 4

Function at 0x5599e4
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 0x559a12
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x559a30
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0055994a
jmp 0x559a30
mov eax, dword [esi + 0x14]
test eax, eax
je 0x559a30
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0055994a
test edi, edi
mov eax, edi
jne 0x559a1a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401560
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x493afc]
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.00405a70
add esp, 4
movzx ebx, al
shl ebx, 4
movzx eax, byte [ebp - 0x1f]
push eax
call fcn.00405a70
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.00405a70
add esp, 4
movzx ebx, al
shl ebx, 4
movzx ecx, byte [ebp - 0x1d]
push ecx
call fcn.00405a70
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.00405a70
add esp, 4
movzx ebx, al
shl ebx, 4
movzx edx, byte [ebp - 0x1b]
push edx
call fcn.00405a70
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.00405a70
add esp, 4
movzx ebx, al
shl ebx, 4
movzx eax, byte [ebp - 0x19]
push eax
call fcn.00405a70
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.0045b6bb
mov esp, ebp
pop ebp
ret
Function at 0x404bc0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x493afc]
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 0x404bff
or eax, 0xffffffff
jmp 0x404d09
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 0x404c1b
or eax, 0xffffffff
jmp 0x404d09
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 0x404c47
or eax, 0xffffffff
jmp 0x404d09
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 0x46ed58
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 0x404cd2
mov dword [ebp - 0xc], 0
jmp 0x404cfc
cmp dword [ebp - 0xc], 0
jne 0x404cf2
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00404bc0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x404c47
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.0045b6bb
mov esp, ebp
pop ebp
ret
Function at 0x404fc0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
mov eax, dword [0x493afc]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x19c], 0xffffffff
push 0x46ed88
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 0x40502e
or eax, 0xffffffff
jmp 0x40514c
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 0x405121
lea ecx, [ebp - 0x328]
push ecx
lea edx, [ebp - 0x198]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x46edb8
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 0x46ed5a
lea ecx, [ebp - 0x198]
push ecx
push 0x80000002
call fcn.00405c20
add esp, 0x1c
test eax, eax
jne 0x4050f4
mov dword [ebp - 0x19c], 0xffffffff
jmp 0x40513c
mov edx, dword [ebp - 0x32c]
cmp edx, dword [ebp + 8]
jne 0x40511f
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 0x40512f
cmp dword [ebp - 0x1a0], 0x103
je 0x40512f
jmp 0x40513c
cmp dword [ebp - 0x1a0], 0
je 0x40502e
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.0045b6bb
mov esp, ebp
pop ebp
ret
Function at 0x405470
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
mov eax, dword [0x493afc]
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 0x46ee18
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.00404db0
add esp, 4
lea ecx, [ebp - 0x1a8]
push ecx
push 0x46ee24
call fcn.00404d20
add esp, 8
test eax, eax
jne 0x4054ee
or eax, 0xffffffff
jmp 0x4055ac
lea edx, [ebp - 0x1a8]
push edx
call fcn.00404e20
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x405533
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00405160
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x405533
lea edx, [ebp - 0x1a8]
push edx
call fcn.00404db0
add esp, 4
mov eax, dword [ebp - 4]
jmp 0x4055ac
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x405544
mov dword [ebp - 4], 0xfffffffc
jmp 0x40559a
push 0x46ee28
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 0xf0
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0x46ee4c
lea ecx, [ebp - 0x90]
push ecx
push 0x80000002
call fcn.00405c20
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.00404db0
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0045b6bb
mov esp, ebp
pop ebp
ret
Function at 0x4055c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x764
mov eax, dword [0x493afc]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 4], 0
push 0x46ee50
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 0x40562b
or eax, 0xffffffff
jmp 0x4057b0
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 0x40577e
push str.NL_Control
lea ecx, [ebp - 0x760]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x405696
jmp 0x405799
push 0x638
push 0
lea edx, [ebp - 0x650]
push edx
call fcn.0045ba40
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.00405c20
add esp, 0x1c
test eax, eax
jne 0x4056e4
mov dword [ebp - 0xc], 0xffffffff
jmp 0x4057a3
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 0x40570f
mov dword [ebp - 0xc], 0xfffffffd
jmp 0x4057a3
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.00405c20
add esp, 0x1c
test eax, eax
jne 0x405746
mov dword [ebp - 0xc], 0xffffffff
jmp 0x4057a3
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.00405ec0
add esp, 8
test eax, eax
jne 0x40577c
push str.ERROR:_fatal__not_enough_memory
call fcn.0045baba
add esp, 4
mov dword [ebp - 0xc], 0xfffffffd
jmp 0x4057a3
jmp 0x405799
cmp dword [ebp - 0x10], 0x103
jne 0x405792
mov dword [ebp - 0xc], 0
jmp 0x4057a3
mov dword [ebp - 0xc], 0xffffffff
cmp dword [ebp - 0x10], 0
je 0x40562b
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.0045b6bb
mov esp, ebp
pop ebp
ret
Function at 0x405c20
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 0x405cd3
cmp dword [ebp - 8], 2
jne 0x405cd3
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 0x405c95
cmp dword [ebp - 0xc], 0
jne 0x405c95
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 0x405cb0
xor eax, eax
cmp dword [ebp - 0xc], 0
sete al
jmp 0x405cd5
cmp dword [ebp - 0xc], 0
jne 0x405cc7
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 0x1c]
jne 0x405cc7
mov dword [ebp - 0x14], 1
jmp 0x405cce
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
jmp 0x405cd5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x406420
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.0045c1c0
mov eax, dword [0x493afc]
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 0x406457
xor eax, eax
jmp 0x4065ac
cmp dword [ebp + 0x10], 0
jne 0x406491
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 0x40648f
xor eax, eax
jmp 0x4065ac
jmp 0x40649e
push 0x46f170
call fcn.0045baba
add esp, 4
cmp dword [ebp + 0xc], 0
jne 0x4064c2
lea edx, [ebp - 0x1008]
push edx
mov eax, dword [ebp - 0x100c]
push eax
call fcn.004060b0
add esp, 8
mov dword [ebp - 0x1014], eax
jmp 0x4064e4
cmp dword [ebp + 0xc], 1
jne 0x4064e4
lea ecx, [ebp - 0x1008]
push ecx
mov edx, dword [ebp - 0x100c]
push edx
call fcn.00406280
add esp, 8
mov dword [ebp - 0x1014], eax
cmp dword [ebp + 0x10], 0
je 0x4064fb
lea eax, [ebp - 0x1008]
push eax
call fcn.0045b5fe
add esp, 4
jmp 0x406526
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 0x406538
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 0x40649e
cmp dword [ebp + 0x10], 0
jne 0x40656c
mov edx, dword [ebp - 0x1010]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406579
push 0x46f1d8
call fcn.0045baba
add esp, 4
cmp dword [ebp + 0x10], 0
je 0x406592
mov eax, dword [ebp - 4]
push eax
push 0x46f240
call fcn.0045b5fe
add esp, 8
jmp 0x4065a7
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
push 0x46f258
call fcn.0045b5fe
add esp, 0xc
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0045b6bb
mov esp, ebp
pop ebp
ret
Function at 0x406930
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.0045c1c0
mov eax, dword [0x493afc]
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 0x406967
xor eax, eax
jmp 0x406aa7
cmp dword [ebp + 0x10], 0
jne 0x4069a1
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 0x40699f
xor eax, eax
jmp 0x406aa7
jmp 0x4069ae
push 0x46f3f8
call fcn.0045baba
add esp, 4
cmp dword [ebp + 0xc], 0
jne 0x4069cc
lea edx, [ebp - 0x1008]
push edx
mov eax, dword [ebp - 0x100c]
push eax
call fcn.004065c0
add esp, 8
jmp 0x4069e8
cmp dword [ebp + 0xc], 1
jne 0x4069e8
lea ecx, [ebp - 0x1008]
push ecx
mov edx, dword [ebp - 0x100c]
push edx
call fcn.00406790
add esp, 8
cmp dword [ebp + 0x10], 0
je 0x4069ff
lea eax, [ebp - 0x1008]
push eax
call fcn.0045b5fe
add esp, 4
jmp 0x406a2a
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 0x4069ae
cmp dword [ebp + 0x10], 0
jne 0x406a67
mov edx, dword [ebp - 0x1010]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406a74
push 0x46f460
call fcn.0045baba
add esp, 4
cmp dword [ebp + 0x10], 0
je 0x406a8d
mov eax, dword [ebp - 4]
push eax
push 0x46f4c8
call fcn.0045b5fe
add esp, 8
jmp 0x406aa2
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
push 0x46f4e0
call fcn.0045b5fe
add esp, 0xc
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0045b6bb
mov esp, ebp
pop ebp
ret
Function at 0x406ac0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x494
mov eax, dword [0x493afc]
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 0x406b1d
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 0x406b1b
xor eax, eax
jmp 0x406c5a
jmp 0x406b2a
push 0x46f500
call fcn.0045baba
add esp, 4
mov edx, dword [ebp - 0x40c]
cmp dword [edx + 0x610], 0
jne 0x406be6
lea eax, [ebp - 0x490]
push eax
push 0x10
mov ecx, dword [ebp - 0x40c]
add ecx, 0x628
push ecx
call fcn.00405ad0
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.0045c26f
add esp, 0x1c
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp + 0x10], 0
je 0x406bbb
lea edx, [ebp - 0x408]
push edx
call fcn.0045baba
add esp, 4
jmp 0x406be6
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 0x406b2a
cmp dword [ebp + 0x10], 0
jne 0x406c1a
mov eax, dword [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406c27
push 0x46f5b8
call fcn.0045baba
add esp, 4
cmp dword [ebp + 0x10], 0
je 0x406c40
mov ecx, dword [ebp - 4]
push ecx
push str._n_d_dumped_accounts_n_n
call fcn.0045b5fe
add esp, 8
jmp 0x406c55
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.0045b5fe
add esp, 0xc
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0045b6bb
mov esp, ebp
pop ebp
ret

Function at 0x406c70
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 0x406c9f
xor eax, eax
jmp 0x406ce0
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