joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10012ee8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x10026850]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10012f2b
cmp word [esi], dx
jne 0x10012f2b
or byte [edi + eax + 0x28], 4
jmp 0x10012f30
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x10013083
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x10013063
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x10012f72
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10012fa8
cmp eax, edx
jae 0x10012fb4
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x10012f4a
jmp 0x10013083
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001305f
cmp dword [ebp - 0x14], 0
je 0x1001305f
mov eax, dword [ebx*4 + 0x10026850]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x10013037
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x10013000
mov word [esi], cx
jmp 0x10013033
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x10026850]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x10026850]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x10026850]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x10013083
pop ebx
cmp word [ebp - 4], bx
jne 0x10013048
cmp esi, dword [ebp + 0xc]
jne 0x10013048
mov word [esi], bx
jmp 0x10013080
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1001391c
add esp, 0x10
cmp word [ebp - 4], bx
je 0x10013083
push 0xd
jmp 0x1001307c
mov ecx, dword [ebx*4 + 0x10026850]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1001307a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10013083
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100150d7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10015174
push ebx
push esi
call fcn.100150a0
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10013e37
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10015121
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10015173
push edi
push eax
call fcn.1000dce0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10015141
call fcn.1000dca6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10015172
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10013e37
add esp, 0x20
test eax, eax
jne 0x10015160
push edi
call fcn.1000dca6
jmp 0x10015168
push ebx
call fcn.1000dca6
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1001a140
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001a16d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001a16d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x8251b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00825140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00825140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00825140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00825140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x825bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x825c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x83787c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x825c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x825c52
xor eax, eax
pop esi
leave
ret 4

Function at 0x402ef0
Capabilities:
Packed with generic packer

Disassembly:
rol dword [eax], 0x8b
sbb eax, sym.imp.MSVCRT.dll_fprintf
add esp, 8
sal esi, 0x59
pop ecx
pop es
jne 0x402ee4
mov eax, dword [0x410bc8]
fild qword [eax + 0x18]
jmp 0x402f2a
cmp dword [edi - 0x74ea8a9c], 0xd
lodsb al, byte [esi]
jmp 0x402f2f
adc eax, 0xa20b15
mov bl, 0xe1
in eax, dx
mov byte [0xebf8116c], al
sub al, 0xa1
lodsb al, byte [esi]
add al, byte [esi - 0x4dbf100]
mov dword [ebp - 0x1e], eax
fistp dword [ebx + 0x80ddcf4]
jge 0x402f72
add ah, bl
add eax, 0xe83fe3
call 0xd01080
mov edx, dword [ecx - 0x38]
or eax, dword [ecx + 0x11]
shl eax, 5
fild qword [edx]
or byte [esp + ebx*8], cl
or eax, 0x40c210
fmul qword [0x40c210]
add byte [esi + 0x55ee6a5d], cl
mov ds, word [ebp + 0x6a]
out dx, al
push ebp
fmul qword [ebx + 0x509af90a]
push esi
push 0xf6d5fb
and edi, edi
jo 0x402ec8
les edx, [esi + eax*2]
cmp esi, 0x64
jl 0x402ed6
push edi
call dword [0xa9401050]
sahf
and byte [ebp + 0x41c4b8a1], dh
add bh, ah
ror byte [edi], 0x84
popal
add dword [eax], eax
add byte [ecx], dh
test al, 0x12
and eax, 0x71ff5000
push esi
rol dword [eax], 0x83
les ecx, [eax]
mov dword [ebp + 0x24], eax
test eax, eax
or byte [ecx - 0x3f7adbbb], cl
pushal
push ss
push 0xeec2d540
call dword [0xfdc14c]
xor dword [eax + 4], ebx
push 1
call dword [0x4140c1cf]
push 0x39409f14
push eax
call dword [0x400a80]
mov eax, dword [0xe002ac]
cmpsd dword [esi], dword es:[edi]
les ecx, [eax]
test eax, eax
invalid
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..idata
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x34ff1cd3
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x5f2e6ee4
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401100
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
xor edi, edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x40111e
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop edi
pop ebp
ret
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [ebp + 0x10]
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x401167
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x401167
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.005297a0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x401179
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov eax, edi
pop edi
pop ebp
ret
mov edi, 1
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov eax, edi
pop edi
pop ebp
ret
Function at 0x401b50
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push 0
push 0
push 0
push 0
push 0x555d80
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ebx, eax
test ebx, ebx
jne 0x401b89
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0x50
push 0x555db0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x401bb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push pe_nt_image_headers32
push 0
push 0
push 0
push str._product_versions.xml
push 0x555e0c
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
test edi, edi
jne 0x401bee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0xc]
call esi
pop edi
push ebx
call esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x401c12
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x401c2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call esi
push dword [ebp - 0xc]
call esi
pop edi
push ebx
call esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
xor esi, esi
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x401c7f
mov edi, edi
mov ecx, dword [ebp - 4]
cmp ecx, 1
jb 0x401c85
lea eax, [esi + ecx]
cmp eax, dword [ebp + 0xc]
ja 0x401c85
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push ecx
add eax, esi
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x401c7f
add esi, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x401c40
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp + 8]
push edi
mov byte [esi + eax], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0xc]
call esi
pop edi
push ebx
call esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401cb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret
Function at 0x401cd0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push 0x44
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.00529df0
add esp, 0xc
mov eax, 3
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push dword [ebp + 8]
mov dword [ebp - 0x54], 0x44
push 0
mov dword [ebp - 0x28], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401d2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov esp, ebp
pop ebp
ret
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x401d50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 3
push 0
push 0
push dword [ebp + 8]
push 0x555d70
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop ebp
ret
Function at 0x401d70
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5ae5e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push 0x555d78
lea eax, [ebp - 0x1c]
push ebx
push eax
mov dword [ebp - 0x1c], 0
call fcn.005294fa
add esp, 0xc
test eax, eax
jne 0x401dc5
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x401db1
push eax
call fcn.005293bf
add esp, 4
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052978f
mov esp, ebp
pop ebp
ret
call fcn.00408f45
mov eax, dword [eax + 0xc]
push 2
push 0x81
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x401df6
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052978f
mov esp, ebp
pop ebp
ret
push esi
push edi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test esi, esi
je 0x401ef9
test edi, edi
je 0x401ef9
movzx edx, word [edi + 0xe]
mov ecx, edx
xor esi, esi
dec ecx
je 0x401e46
sub ecx, 3
je 0x401e3f
sub ecx, 4
jne 0x401e4b
mov esi, 0x400
jmp 0x401e4b
mov esi, 0x40
jmp 0x401e4b
mov esi, 8
mov eax, dword [edi + 4]
imul eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
mov ecx, eax
and ecx, 0x80000003
jns 0x401e69
dec ecx
or ecx, 0xfffffffc
inc ecx
mov edx, 4
sub edx, ecx
xor ecx, ecx
cmp edx, 4
cmove edx, ecx
add eax, edx
imul eax, dword [edi + 8]
add esi, eax
push 0x555d7c
lea eax, [esi + 0x36]
mov dword [ebp - 0x12], eax
xor eax, eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov ecx, 0x4d42
push ebx
push eax
mov word [ebp - 0x14], cx
mov dword [ebp - 0xa], 0x36
call fcn.005294fa
add esp, 0xc
test eax, eax
jne 0x401eff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x401eff
push eax
push 1
lea eax, [ebp - 0x14]
push 0xe
push eax
call fcn.00529696
push dword [ebp - 0x18]
lea eax, [esi + 0x28]
push 1
push eax
push edi
call fcn.00529696
push dword [ebp - 0x18]
call fcn.005293bf
add esp, 0x24
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052978f
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0052978f
mov esp, ebp
pop ebp
ret

Function at 0x4034f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00414192
Function at 0x403960
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push 0x40
push 0x555d78
push dword [ebp + 8]
xorps xmm0, xmm0
movlpd qword [0x5d7228], xmm0
call fcn.00529436
mov ebx, eax
add esp, 0xc
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x403ae8
push esi
push ebx
push dword [0x5a970c]
mov dword [ebp - 4], 0
push 1
push 0x5caa20
call fcn.0052b24a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x403ade
push edi
lea ebx, [ebx]
xor edx, edx
cmp esi, dword [0x5a970c]
setl dl
xor eax, eax
mov dword [ebp - 8], edx
test esi, esi
jle 0x4039f0
mov cl, byte [eax + 0x5caa20]
cmp cl, 0xd
je 0x4039e4
cmp cl, 0xa
jne 0x4039f0
inc eax
cmp eax, esi
jl 0x4039d4
lea esp, [esp]
xor edi, edi
mov byte [0x5ca920], 0
mov ecx, eax
cmp eax, esi
jge 0x403a38
mov ebx, 0x5ca920
sub ebx, eax
jmp 0x403a10
mov dl, byte [ecx + 0x5caa20]
cmp dl, 0xd
je 0x403a29
cmp dl, 0xa
je 0x403a29
mov byte [ebx + ecx], dl
inc ecx
inc edi
cmp ecx, esi
jl 0x403a10
cmp edi, 0x100
jae 0x403aed
mov edx, dword [ebp - 8]
mov byte [edi + 0x5ca920], 0
cmp ecx, esi
jl 0x403a50
test edx, edx
je 0x403a9b
cmp byte [0x5ca920], 0
je 0x403a9b
mov edx, 0x5ca920
lea edi, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x403a58
sub edx, edi
add eax, edx
cmp eax, esi
jge 0x403a85
jmp 0x403a70
mov cl, byte [eax + 0x5caa20]
cmp cl, 0xd
je 0x403a80
cmp cl, 0xa
jne 0x403a85
inc eax
cmp eax, esi
jl 0x403a70
add dword [0x5d7228], 1
mov edx, dword [ebp - 8]
adc dword [0x5d722c], 0
jmp 0x4039f0
cmp byte [ecx + 0x5caa20], 0xd
mov ebx, dword [ebp - 0xc]
je 0x403aba
add dword [ebp - 4], eax
push 1
sub eax, esi
push eax
push ebx
call fcn.0052b385
add esp, 0xc
jmp 0x403abd
add dword [ebp - 4], esi
push ebx
push dword [0x5a970c]
push 1
push 0x5caa20
call fcn.0052b24a
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4039c0
pop edi
push ebx
call fcn.005293bf
add esp, 4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0052aa11
int3
Function at 0x404710
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x5ae5e0]
xor eax, ebp
mov dword [ebp - 4], eax
movq xmm0, qword [str.0123456789abcdef]
mov al, byte [0x556f24]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
movq qword [ebp - 0x18], xmm0
movq xmm0, qword [0x556f1c]
mov esi, ebx
mov dword [ebp - 0x404], 0
mov dword [ebp - 0x408], 0
mov dword [ebp - 0x40c], 0x3e8
movq qword [ebp - 0x10], xmm0
mov byte [ebp - 8], al
mov byte [edi], 0
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x404774
push 0xf0000000
push dword [ecx + 0x2d4]
lea eax, [ebp - 0x404]
push 0
push 0
push eax
sub esi, edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4047a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4047d7
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push dword [ebp + 8]
push dword [ebp - 0x404]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4047ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push dword [ebp - 0x404]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052978f
mov esp, ebp
pop ebp
ret 0x10
push 0
push esi
push ebx
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x404814
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x4047c9
push 0
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x400]
push eax
push 2
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x404800
mov esi, dword [ebp - 0x40c]
cmp esi, 0x3e8
jae 0x4048bc
xor edx, edx
mov byte [ebp + esi - 0x400], 0
mov byte [edi], 0
test esi, esi
je 0x404886
jmp 0x404860
movzx ecx, byte [ebp + edx - 0x400]
mov eax, ecx
shr eax, 4
and ecx, 0xf
movzx eax, byte [ebp + eax - 0x18]
mov byte [edi + edx*2], al
movzx eax, byte [ebp + ecx - 0x18]
mov byte [edi + edx*2 + 1], al
inc edx
cmp edx, esi
jb 0x404860
push dword [ebp - 0x408]
mov byte [edi + edx*2], 0
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x404]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0052978f
mov esp, ebp
pop ebp
ret 0x10
call fcn.0052aa11
int3
Function at 0x406120
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5ae5e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x40c]
push eax
push 0x20019
push 0
push str.SoftwareSecurityXplodedHashKracker
push SysReAllocStringLen
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40616d
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052978f
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x410]
push eax
push 0
push str.Hash
push dword [ebp - 0x40c]
mov dword [ebp - 0x408], 0x400
call edi
test eax, eax
jne 0x4061b8
lea eax, [ebp - 0x404]
push eax
lea ecx, [esi + 0x1750]
call fcn.00413f04
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x410]
push eax
push 0
push str.File
push dword [ebp - 0x40c]
mov dword [ebp - 0x408], 0x400
call edi
test eax, eax
jne 0x4061fc
lea eax, [ebp - 0x404]
push eax
lea ecx, [esi + 0x16dc]
call fcn.00413f04
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x410]
push eax
push 0
push str.Type
push dword [ebp - 0x40c]
mov dword [ebp - 0x414], 0
mov dword [ebp - 0x408], 4
call edi
pop edi
test eax, eax
jne 0x406251
push eax
push dword [ebp - 0x414]
push 0x14e
push dword [esi + 0x1b2c]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0052978f
mov esp, ebp
pop ebp
ret
Function at 0x406410
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x544a6b
mov eax, dword fs:[0]
push eax
sub esp, 0x414
mov eax, dword [0x5ae5e0]
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 edi, ecx
call fcn.0040b35e
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x40645c
push 0x80004005
call fcn.00401ff0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x41c], esi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x414]
push eax
push 0
push 0xf003f
push 0
push 0x555e38
push 0
push str.SoftwareSecurityXplodedHashKracker
push SysReAllocStringLen
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4064ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40657b
push 0x400
lea eax, [ebp - 0x410]
push eax
lea ecx, [edi + 0x1750]
call fcn.00413a43
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4064d0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub ecx, edx
push ecx
lea eax, [ebp - 0x410]
push eax
push 1
push 0
push str.Hash
push dword [ebp - 0x414]
call ebx
push 0x400
lea eax, [ebp - 0x410]
push eax
lea ecx, [edi + 0x16dc]
call fcn.00413a43
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406518
sub ecx, edx
push ecx
lea eax, [ebp - 0x410]
push eax
push 1
push 0
push str.File
push dword [ebp - 0x414]
call ebx
push 0
push 0
push 0x147
push dword [edi + 0x1b2c]
call dword [sym.imp.USER32.dll_SendMessageA]
push 4
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x418]
push eax
push 4
push 0
push str.Type
push dword [ebp - 0x414]
call ebx
push dword [ebp - 0x414]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40659c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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.0052978f
mov esp, ebp
pop ebp
ret

Function at 0x4065c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4065d5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406614
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x406610
lea ebx, [ebx]
cmp esi, edx
jae 0x406614
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x406600
cmp esi, edx
jb 0x406619
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret