joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d1b4e00
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x120
mov eax, dword [0x6d1d54cc]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
mov edx, dword [edi]
or ecx, 0x2001f
push ecx
xor esi, esi
push eax
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call fcn.6d1b2d40
mov ebx, eax
cmp ebx, esi
je 0x6d1b4e65
mov eax, dword [esp + 0xc]
cmp eax, esi
je 0x6d1b4e5e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x6d1b4f01
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x14]
push esi
push esi
push esi
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x40]
push edx
push esi
push eax
mov dword [esp + 0x3c], pe_nt_image_headers32
call ebp
test eax, eax
jne 0x6d1b4ecc
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x14]
call fcn.6d1b4e00
mov ebx, eax
cmp ebx, esi
jne 0x6d1b4f1b
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x14]
push esi
push esi
push esi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x40]
push ecx
push esi
push edx
mov dword [esp + 0x3c], pe_nt_image_headers32
call ebp
test eax, eax
je 0x6d1b4e92
mov eax, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x6d1b4ee1
push eax
call ebx
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x20]
push eax
mov ecx, edi
mov dword [esp + 0x18], esi
call fcn.6d1b3d00
mov edi, eax
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x6d1b4efe
push eax
call ebx
mov eax, edi
pop ebp
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.6d1c932c
add esp, 0x120
ret 4
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x6d1b4f2a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x6d1b4f00
Function at 0x6d1b5460
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x824
mov eax, dword [0x6d1d54cc]
xor eax, esp
mov dword [esp + 0x820], eax
mov ecx, dword [esp + 0x830]
mov eax, dword [esp + 0x828]
push ebx
mov bl, byte [esp + 0x838]
push ebp
xor ebp, ebp
cmp ecx, ebp
je 0x6d1b55b8
mov edx, dword [eax]
push esi
push edi
push ebp
push ecx
push eax
mov eax, dword [edx + 0x294]
call eax
push 0x104
mov edi, eax
call dword [sym.imp.MSVCR100.dll_malloc]
push 0x104
mov esi, eax
push ebp
push esi
call sub.MSVCR100.dll_memset
add esp, 0x10
push ebp
push ebp
push 0x104
push esi
push 0xffffffffffffffff
push edi
push ebp
push ebp
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
xor ecx, ecx
cmp bl, 1
sete cl
push 0x2001f
push 0x6d1cba00
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
add ecx, 0x80000001
push ecx
lea ecx, [esp + 0x20]
call fcn.6d1b2d40
mov ebx, dword [esp + 0x14]
test eax, eax
jne 0x6d1b55ab
push ebp
push ebp
push 0x2001f
push ebp
push ebp
push esi
push ebx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
call fcn.6d1b3d80
mov edi, dword [esp + 0x20]
test eax, eax
jne 0x6d1b5593
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x34]
push eax
push ebp
push ebp
push str.UninstallString
push edi
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x30]
push 0x6d1cbbf4
push ecx
call dword [sym.imp.MSVCR100.dll_strstr]
add esp, 8
test eax, eax
je 0x6d1b5572
mov dword [esp + 0x10], 1
cmp edi, ebp
je 0x6d1b557f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
cmp dword [esp + 0x10], ebp
je 0x6d1b5593
push esi
lea ecx, [esp + 0x18]
call fcn.6d1b4e00
mov ebx, dword [esp + 0x14]
cmp ebx, ebp
je 0x6d1b55a0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
cmp edi, ebp
je 0x6d1b55ab
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
cmp ebx, ebp
je 0x6d1b55b8
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x828]
pop ebp
pop ebx
xor ecx, esp
call fcn.6d1c932c
add esp, 0x824
ret 0x10
Function at 0x6d1b55e0
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
sub esp, 0x150
mov eax, dword [0x6d1d54cc]
xor eax, esp
mov dword [esp + 0x14c], eax
mov eax, dword [esp + 0x154]
push esi
push str.msvcrt.dll
mov dword [esp + 0xc], eax
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x6d1b5629
pop esi
mov ecx, dword [esp + 0x14c]
xor ecx, esp
call fcn.6d1c932c
add esp, 0x150
ret 8
push ebx
push ebp
push edi
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x6d1cbc8c
push esi
call edi
push 0x6d1cbc84
push esi
mov ebx, eax
call edi
push 0x6d1cbc7c
push esi
mov dword [esp + 0x24], eax
call edi
push 0x6d1cbc74
push esi
mov ebp, eax
call edi
push str._fstat
push esi
mov dword [esp + 0x20], eax
call edi
push 0x6d1cbc64
push esi
mov dword [esp + 0x28], eax
call edi
push 0x6d1cbc5c
push esi
mov dword [esp + 0x18], eax
call edi
mov dword [esp + 0x24], eax
test ebx, ebx
je 0x6d1b578e
cmp dword [esp + 0x1c], 0
je 0x6d1b578e
test ebp, ebp
je 0x6d1b578e
cmp dword [esp + 0x18], 0
je 0x6d1b578e
cmp dword [esp + 0x20], 0
je 0x6d1b578e
cmp dword [esp + 0x10], 0
je 0x6d1b578e
test eax, eax
je 0x6d1b578e
lea ecx, [esp + 0x58]
push ecx
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
lea edx, [esp + 0x58]
push 0
push edx
call dword [sym.imp.MSVCR100.dll__tempnam]
push 0x1b6
push 0x102
push eax
call ebx
push 1
mov esi, eax
call dword [esp + 0x34]
push 1
push esi
mov ebx, eax
call ebp
add esp, 0x20
push str.jvm.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
test eax, eax
je 0x6d1b5726
push str._JVM_DumpAllStacks_8
push eax
call edi
test eax, eax
je 0x6d1b5726
mov ecx, dword [esp + 0x14]
push 0
push ecx
call eax
push 1
push ebx
call ebp
push 0
push 0
push esi
call dword [esp + 0x2c]
lea edx, [esp + 0x3c]
push edx
push esi
call dword [esp + 0x3c]
mov ebp, dword [esp + 0x58]
add esp, 0x1c
xor edi, edi
test ebp, ebp
jle 0x6d1b5763
lea eax, [ebp + 1]
push 1
push eax
call dword [sym.imp.MSVCR100.dll_calloc]
mov edi, eax
push ebp
push edi
push esi
call dword [esp + 0x24]
add esp, 0x14
xor ebx, ebx
test edi, edi
je 0x6d1b577b
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x29c]
push edi
push eax
call edx
mov ebx, eax
push edi
call dword [sym.imp.MSVCR100.dll_free]
push esi
call dword [esp + 0x2c]
add esp, 8
mov eax, ebx
jmp 0x6d1b5790
xor eax, eax
mov ecx, dword [esp + 0x15c]
pop edi
pop ebp
pop ebx
pop esi
xor ecx, esp
call fcn.6d1c932c
add esp, 0x150
ret 8
Function at 0x6d1b57b0
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x140
mov eax, dword [0x6d1d54cc]
xor eax, esp
mov dword [esp + 0x13c], eax
mov eax, dword [esp + 0x144]
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x48]
push ecx
xor edi, edi
push 0x104
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edi
call dword [sym.imp.kernel32.dll_GetTempPathA]
lea edx, [esp + 0x48]
push edi
push edx
call dword [sym.imp.MSVCR100.dll__tempnam]
push 0x1b6
push 0x102
push eax
call dword [sym.imp.MSVCR100.dll__open]
push 1
mov esi, eax
call dword [sym.imp.MSVCR100.dll__dup]
mov ebp, dword [sym.imp.MSVCR100.dll__dup2]
push 1
push esi
mov ebx, eax
call ebp
add esp, 0x20
push str.jvm.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
push str._JVM_DumpAllStacks_8
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x6d1b5843
mov ecx, dword [esp + 0x10]
push edi
push ecx
call eax
push 1
push ebx
call ebp
push 0
push 0
push esi
call dword [sym.imp.MSVCR100.dll__lseek]
lea edx, [esp + 0x2c]
push edx
push esi
call dword [sym.imp.MSVCR100.dll__fstat64i32]
mov ebx, dword [esp + 0x48]
add esp, 0x1c
test ebx, ebx
jle 0x6d1b589c
lea eax, [ebx + 1]
push 1
push eax
call dword [sym.imp.MSVCR100.dll_calloc]
mov edi, eax
push ebx
push edi
push esi
call dword [sym.imp.MSVCR100.dll__read]
add esp, 0x14
test edi, edi
je 0x6d1b589c
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x29c]
push edi
push eax
call edx
mov ebx, eax
jmp 0x6d1b58a0
mov ebx, dword [esp + 0x14]
push edi
call dword [sym.imp.MSVCR100.dll_free]
push esi
call dword [sym.imp.MSVCR100.dll__close]
mov ecx, dword [esp + 0x154]
add esp, 8
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.6d1c932c
add esp, 0x140
ret 8

Function at 0x6d1b5f70
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
jne 0x6d1b5f84
pop edi
lea eax, [esi + 0xd]
pop esi
ret 0xc
push esi
call dword [sym.imp.kernel32.dll_lstrlenA]
mov ecx, dword [esp + 0xc]
mov edx, dword [edi]
inc eax
push eax
mov eax, dword [esp + 0x18]
push esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 0xc

Function at 0x6d1b5fb0
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 4], ecx
test ebp, ebp
jne 0x6d1b5fc6
lea eax, [ebp + 0xd]
pop ebp
pop ecx
ret 8
push ebx
mov ebx, dword [sym.imp.kernel32.dll_lstrlenA]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x6d1b5fd3
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8
Function at 0x6d1b91e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x11c
mov eax, dword [0x6d1d54cc]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
mov ebx, dword [esp + 0x130]
push ebp
push esi
mov esi, dword [esp + 0x12c]
mov eax, dword [esi]
mov ecx, dword [eax + 0x2a4]
push edi
mov edi, dword [esp + 0x138]
push 0
push ebx
push esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
call ecx
mov ebp, eax
test ebx, ebx
je 0x6d1b92df
lea edx, [esp + 0x10]
push edx
lea ebx, [esp + 0x28]
mov eax, ebx
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push ebp
push edi
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
cmp edi, 0xea
jne 0x6d1b92a4
mov eax, dword [esp + 0x10]
lea edx, [eax - 1]
cmp edx, 0x3ffff
ja 0x6d1b92df
push eax
call dword [sym.imp.MSVCR100.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x6d1b92df
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x20]
push ecx
push 0
push ebp
push edx
mov dword [esp + 0x2c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi]
mov edx, dword [eax + 0x2a8]
push ebp
push ecx
push esi
call edx
test edi, edi
jne 0x6d1b92df
mov ecx, dword [esp + 0x10]
mov eax, dword [esi]
mov edx, dword [eax + 0x2c0]
push ecx
push esi
call edx
mov edi, eax
test edi, edi
jne 0x6d1b92e3
cmp dword [esp + 0x14], eax
je 0x6d1b92df
push ebx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
xor eax, eax
jmp 0x6d1b9325
mov ecx, dword [esp + 0x10]
mov eax, dword [esi]
mov edx, dword [eax + 0x340]
push ebx
push ecx
push 0
push edi
push esi
call edx
cmp dword [esp + 0x14], 0
je 0x6d1b9308
push ebx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [0x6d1d56a4]
mov edx, dword [0x6d1d56a8]
push edi
push eax
push ecx
push edx
push esi
call fcn.6d1b1b20
add esp, 0x14
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.6d1c932c
add esp, 0x11c
ret 0x10

Function at 0x6d1b9340
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x6d1d54cc]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
push 0x104
lea eax, [esp + 8]
push eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x6d1b939f
cmp eax, 0x104
jae 0x6d1b939f
mov ecx, dword [esi]
mov eax, dword [ecx + 0x29c]
lea edx, [esp + 4]
push edx
push esi
call eax
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.6d1c932c
add esp, 0x108
ret 8
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
xor eax, eax
call fcn.6d1c932c
add esp, 0x108
ret 8
Function at 0x6d1b94f0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi]
mov ecx, dword [eax + 0x2a4]
push edi
push 0
push ebp
push esi
call ecx
mov edi, eax
test edi, edi
jne 0x6d1b9517
pop edi
pop esi
xor al, al
pop ebp
ret 0x10
mov edx, dword [esp + 0x18]
push ebx
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push edi
mov ebx, eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x2a8]
push ebp
push esi
call ecx
xor eax, eax
test ebx, ebx
pop ebx
pop edi
pop esi
sete al
pop ebp
ret 0x10

Function at 0x6d1b9550
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x20
mov eax, dword [0x6d1d54cc]
xor eax, esp
mov dword [esp + 0x1c], eax
lea eax, [esp]
push eax
push 0x20
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x6d1b9593
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x78
je 0x6d1b95e5
xor al, al
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.6d1c932c
add esp, 0x20
ret 8
lea ecx, [esp + 4]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x6d1b9575
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
push 0
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x10]
push 0
push edx
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x6d1b9575
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [esp + 0x1c]
test eax, eax
setns al
xor ecx, esp
call fcn.6d1c932c
add esp, 0x20
ret 8

Function at 0x6d1b9680
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x6d1cfa58
push 0x6d1c943c
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x6d1d54cc]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x1c], esi
mov edi, dword [ebp + 0x10]
push edi
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
add esp, 4
mov ebx, eax
mov dword [ebp + 0x10], ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
push esi
push 1
push esi
push 0x6d1cc108
lea eax, [ebp - 0x1c]
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
call esi
test eax, eax
jne 0x6d1b96f9
push 8
push 1
push eax
push 0x6d1cc108
lea ecx, [ebp - 0x1c]
push ecx
call esi
test eax, eax
je 0x6d1b9727
push ebx
push edi
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x6d1b9727
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push edi
push esi
mov ecx, dword [eax + 0x2c0]
call ecx
mov dword [ebp - 0x20], eax
push ebx
push edi
push 0
push eax
mov ecx, esi
call fcn.6d1b1dd0
mov dword [ebp - 4], 0xfffffffe
call fcn.6d1b974d
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x6d1b9f50
Capabilities:
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x6d1cfad8
push 0x6d1c943c
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x6d1d54cc]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push 0x8008
mov ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x6d1b9fc2
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.6d1b9ed0
add esp, 8
jmp 0x6d1ba0af
mov edi, dword [ebp + 0x14]
push edi
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
add esp, 4
mov esi, eax
mov dword [ebp - 0x24], esi
push esi
push edi
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.6d1b9650
push ebx
push esi
push 2
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
jne 0x6d1ba00b
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push edi
call fcn.6d1b9ed0
add esp, 8
jmp 0x6d1ba0af
mov ebx, 2
mov dword [ebp - 0x2c], 4
push 0
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x30]
push eax
push 7
mov ecx, dword [ebp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetKeyParam]
test eax, eax
je 0x6d1b9ff6
cmp dword [ebp - 0x30], 0xa400
jne 0x6d1ba03f
mov ebx, 1
mov dword [ebp + 0x18], 0
lea edx, [ebp + 0x18]
push edx
push 0
push 0
push 0
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptSignHashA]
test eax, eax
je 0x6d1b9ff6
mov ecx, dword [ebp + 0x18]
push ecx
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
add esp, 4
mov esi, eax
mov dword [ebp - 0x20], esi
lea edx, [ebp + 0x18]
push edx
push esi
push 0
push 0
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptSignHashA]
test eax, eax
je 0x6d1b9ff6
mov ecx, dword [edi]
mov edx, dword [ebp + 0x18]
push edx
push edi
mov eax, dword [ecx + 0x2c0]
call eax
mov ebx, eax
push esi
mov ecx, dword [ebp + 0x18]
push ecx
push 0
push ebx
mov ecx, edi
call fcn.6d1b1dd0
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.6d1ba0d2
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x6d1ba110
Capabilities:
Hash data using sha1
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x6d1cfaf8
push 0x6d1c943c
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x6d1d54cc]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push 0x8004
mov ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x6d1ba182
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.6d1b9ed0
add esp, 8
jmp 0x6d1ba241
mov edi, dword [ebp + 0x14]
push edi
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
add esp, 4
mov esi, eax
mov dword [ebp - 0x24], esi
push esi
push edi
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.6d1b9650
push ebx
push esi
push 2
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
jne 0x6d1ba1c8
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push edi
call fcn.6d1b9ed0
add esp, 8
jmp 0x6d1ba241
mov dword [ebp + 0x18], ebx
lea edx, [ebp + 0x18]
push edx
push ebx
push ebx
push ebx
push 2
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptSignHashA]
call ebx
test eax, eax
jne 0x6d1ba1f6
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push edi
call fcn.6d1b9ed0
add esp, 8
jmp 0x6d1ba23f
mov ecx, dword [ebp + 0x18]
push ecx
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
add esp, 4
mov esi, eax
mov dword [ebp - 0x20], esi
lea edx, [ebp + 0x18]
push edx
push esi
push 0
push 0
push 2
mov eax, dword [ebp - 0x1c]
push eax
call ebx
test eax, eax
je 0x6d1ba1e4
mov ecx, dword [edi]
mov edx, dword [ebp + 0x18]
push edx
push edi
mov eax, dword [ecx + 0x2c0]
call eax
mov ebx, eax
push esi
mov ecx, dword [ebp + 0x18]
push ecx
push 0
push ebx
mov ecx, edi
call fcn.6d1b1dd0
mov dword [ebp - 0x28], ebx
xor ebx, ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.6d1ba266
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x6d1ba540
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x1c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
mov eax, dword [esi]
mov edx, dword [eax + 0x2a4]
push edi
push 0
push ecx
push esi
call edx
mov ecx, dword [esp + 0x30]
push 0
mov edi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x2a4]
push ecx
push esi
call edx
xor bl, bl
mov ebp, eax
mov byte [esp + 0x24], bl
test edi, edi
je 0x6d1ba603
test ebp, ebp
je 0x6d1ba5ee
lea eax, [esp + 0x10]
push eax
push edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x6d1ba5af
lea ecx, [esp + 0x10]
push ecx
push edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x6d1ba5ee
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push ebp
push edx
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x6d1ba5ee
cmp dword [esp + 0x18], ebx
setne byte [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esi]
mov eax, dword [ecx + 0x2a8]
push edi
push edx
push esi
call eax
mov bl, byte [esp + 0x24]
test ebp, ebp
je 0x6d1ba618
mov edx, dword [esp + 0x30]
mov ecx, dword [esi]
mov eax, dword [ecx + 0x2a8]
push ebp
push edx
push esi
call eax
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x10
ret 0x10

Function at 0x6d1ba630
Capabilities:
Set registry value

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi]
mov ecx, dword [eax + 0x2a4]
push edi
push 0
push ebp
push esi
call ecx
mov edx, dword [esi]
mov ecx, dword [edx + 0x2a4]
mov edi, eax
mov eax, dword [esp + 0x20]
push 0
push eax
push esi
call ecx
mov ebx, eax
test edi, edi
je 0x6d1ba6ca
test ebx, ebx
je 0x6d1ba6bd
lea edx, [esp + 0x14]
push edx
push edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x6d1ba692
lea eax, [esp + 0x14]
push eax
push edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x6d1ba6bd
movzx ecx, byte [esp + 0x24]
mov eax, dword [esp + 0x14]
push 4
lea edx, [esp + 0x28]
push edx
push 4
push 0
push ebx
push eax
mov dword [esp + 0x3c], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esi]
mov eax, dword [edx + 0x2a8]
push edi
push ebp
push esi
call eax
test ebx, ebx
je 0x6d1ba6df
mov edx, dword [esp + 0x20]
mov ecx, dword [esi]
mov eax, dword [ecx + 0x2a8]
push ebx
push edx
push esi
call eax
pop edi
pop esi
pop ebp
pop ebx
ret 0x14