joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0x1300
push 0
push 0
lea eax, [ebp - 4]
push eax
push 0x400
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x407063
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0xc], 0
je 0x407073
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esp, ebp
pop ebp
ret

Function at 0x407120
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetControlProductOptions
mov ecx, dword [reloc.OLEAUT32.dll_SysReAllocString]
push ecx
call fcn.004047c0
add esp, 0x14
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40717b
jmp 0x40723d
lea edx, [ebp - 8]
push edx
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x454630
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4071a5
cmp dword [ebp - 8], 0
jne 0x4071af
jmp 0x40723d
mov edx, dword [ebp - 8]
push edx
call fcn.00437999
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4071c8
jmp 0x40723d
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push str.ProductSuite
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4071f4
cmp dword [ebp - 4], 7
je 0x4071f8
jmp 0x40723d
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
movzx eax, word [edx]
test eax, eax
je 0x40723d
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00438feb
add esp, 8
test eax, eax
jne 0x407225
mov dword [ebp - 0x14], 1
jmp 0x40723d
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00438225
add esp, 4
mov ecx, dword [ebp - 0x1c]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 0x1c], edx
jmp 0x4071fe
cmp dword [ebp - 0x18], 0
je 0x40724f
mov eax, dword [ebp - 0x18]
push eax
call fcn.00437abb
add esp, 4
cmp dword [ebp - 0xc], 0
je 0x40725f
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x409d90
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ca11
mov eax, dword fs:[0]
push eax
sub esp, 0x2ec
mov eax, dword [0x46d45c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x10]
call fcn.00402160
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, 0x46f874
call fcn.004173f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00416b30
mov dword [ebp + 8], eax
push 0x454c4c
mov ecx, dword [ebp + 0xc]
call fcn.004021e0
push 0x454c50
mov ecx, dword [ebp + 0x10]
call fcn.004021e0
lea edx, [ebp - 0x2dc]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x409f35
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00437999
add esp, 4
mov dword [ebp - 0x2d8], eax
mov edx, dword [ebp - 0x2d8]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x409f26
push 0x454c54
mov edx, dword [ebp - 0x2d8]
push edx
lea eax, [ebp - 0x2e0]
push eax
call fcn.00409170
add esp, 0xc
mov dword [ebp - 0x2ec], eax
mov ecx, dword [ebp - 0x2ec]
mov dword [ebp - 0x2f0], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x2f0]
push edx
lea ecx, [ebp - 0x10]
call fcn.00402240
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2e0]
call fcn.004021c0
lea ecx, [ebp - 0x10]
call fcn.00402270
movzx eax, word [eax]
test eax, eax
je 0x409ebc
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.00402240
push 0x454c74
mov edx, dword [ebp - 0x2d8]
push edx
lea eax, [ebp - 0x2e4]
push eax
call fcn.00409170
add esp, 0xc
mov dword [ebp - 0x2f4], eax
mov ecx, dword [ebp - 0x2f4]
mov dword [ebp - 0x2f8], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x2f8]
push edx
lea ecx, [ebp - 0x10]
call fcn.00402240
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2e4]
call fcn.004021c0
lea ecx, [ebp - 0x10]
call fcn.00402270
movzx eax, word [eax]
test eax, eax
je 0x409f26
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00402240
mov edx, dword [ebp - 0x2d8]
push edx
call fcn.00437abb
add esp, 4
mov dword [ebp - 0x2d4], 0
push 0x101
push 0x2b4
lea eax, [ebp - 0x2d4]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041da10
add esp, 0x14
mov edx, dword [ebp - 0x2d4]
mov dword [ebp - 0x2e8], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004168d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004021c0
mov eax, dword [ebp - 0x2e8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004376f1
mov esp, ebp
pop ebp
ret
Function at 0x40f400
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d504
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x46d45c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x10]
call fcn.00402160
mov dword [ebp - 4], 0
push 0x4559a8
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x14]
call fcn.00402190
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x30]
push edx
push str.SoftwareClassesCLSID_
lea eax, [ebp - 0x18]
push eax
call fcn.004109f0
add esp, 0xc
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x38], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x38]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.00410960
add esp, 0xc
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x40]
push edx
lea ecx, [ebp - 0x10]
call fcn.00402240
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.004021c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.004021c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004021c0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0040f320
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x40f5c5
cmp dword [0x46f6b8], 0
je 0x40f501
push 1
call dword [0x46f6b8]
push 0x200
mov eax, dword [0x46f464]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push str.Instance
mov ecx, dword [ebp + 0x14]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00402190
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x48], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x48]
push eax
push str.SoftwareWow6432NodeClassesCLSID_
lea ecx, [ebp - 0x24]
push ecx
call fcn.004109f0
add esp, 0xc
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x50]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00410960
add esp, 0xc
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x58], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x58]
push eax
lea ecx, [ebp - 0x10]
call fcn.00402240
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.004021c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x24]
call fcn.004021c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.004021c0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040f320
add esp, 0xc
cmp dword [0x46f6b8], 0
je 0x40f5c5
push 0
call dword [0x46f6b8]
push 0x100
mov ecx, dword [0x46f464]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004021c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x41d480
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41d4b5
mov eax, dword [ebp - 4]
jmp 0x41d4f1
push 1
mov ecx, dword [ebp - 8]
add ecx, 1
shr ecx, 1
push ecx
mov ecx, dword [ebp + 0x18]
call fcn.004023f0
lea edx, [ebp - 8]
push edx
mov ecx, dword [ebp + 0x18]
call fcn.00402270
push eax
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x41d500
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41d52f
mov eax, dword [ebp - 4]
jmp 0x41d563
push 1
mov eax, dword [ebp - 8]
add eax, 1
shr eax, 1
push eax
mov ecx, dword [ebp + 0x10]
call fcn.004023f0
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.00402270
push eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x41d570
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41d5ad
mov eax, dword [ebp - 8]
jmp 0x41d5e5
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
push 1
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.004023f0
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.00402270
push eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x41d5f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41d636
mov eax, dword [ebp - 8]
jmp 0x41d696
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
push 1
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.004023f0
push 1
mov edx, dword [ebp - 0xc]
add edx, 1
shr edx, 1
push edx
mov ecx, dword [ebp + 0x1c]
call fcn.004023f0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x1c]
call fcn.00402270
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.00402270
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x41d990
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 8]
push ecx
mov ecx, 0x46f874
call fcn.004173f0
lea ecx, [ebp - 8]
call fcn.00416b30
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
lea ecx, [ebp - 8]
call fcn.004168d0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x41da10
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 4]
push ecx
mov ecx, 0x46f874
call fcn.004173f0
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 4]
call fcn.00416b30
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov dword [ebp - 8], eax
lea ecx, [ebp - 4]
call fcn.004168d0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x41f340
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp + 0xc], 0
je 0x41f361
cmp dword [ebp + 0x10], 0
jne 0x41f3a2
push str.CommandLineToArgvW
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x41f39b
mov dword [ebp + 0xc], 0x46f8ac
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [ebp - 0x10]
mov dword [ebp + 0x10], eax
jmp 0x41f3a2
mov dword [ebp + 0xc], 0
cmp dword [ebp + 0xc], 0
je 0x41f45f
mov dword [ebp - 4], 0
jmp 0x41f3be
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
cmp eax, dword [edx]
jge 0x41f45f
push 0x46bf98
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + ecx*4]
push eax
call fcn.00438d0f
add esp, 8
test eax, eax
je 0x41f40b
push 0x46bfb0
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + ecx*4]
push eax
call fcn.00438d0f
add esp, 8
test eax, eax
je 0x41f40b
mov dword [ebp - 0x14], 0
jmp 0x41f412
mov dword [ebp - 0x14], 1
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
je 0x41f45a
jmp 0x41f429
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
sub ecx, 1
cmp dword [ebp - 4], ecx
jge 0x41f44b
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 0x10]
mov ecx, dword [esi + ecx*4 + 4]
mov dword [eax + edx*4], ecx
jmp 0x41f420
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
sub eax, 1
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x41f45f
jmp 0x41f3b5
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0041e7f0
add esp, 8
test eax, eax
je 0x41f47a
mov dword [ebp - 0xc], 1
xor eax, eax
cmp dword [ebp - 0xc], 0
setne al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4209f0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x46d45c]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x420a4b
push 0xf0000000
push 1
push 0
push 0
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x420b46
lea edx, [ebp - 8]
push edx
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x420b3a
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x420b30
mov byte [ebp - 0x34], 0
xor edx, edx
mov dword [ebp - 0x33], edx
mov dword [ebp - 0x2f], edx
mov dword [ebp - 0x2b], edx
mov dword [ebp - 0x27], edx
mov dword [ebp - 0x23], edx
mov dword [ebp - 0x1f], edx
mov dword [ebp - 0x1b], edx
mov word [ebp - 0x17], dx
mov byte [ebp - 0x15], dl
mov dword [ebp - 0x10], 0x20
push 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x34]
push ecx
push 2
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x420b30
push 1
mov eax, dword [ebp - 0x10]
lea ecx, [eax + eax + 1]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.004023f0
mov dword [ebp - 0x38], 0
jmp 0x420af6
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x10]
jae 0x420b29
mov ecx, dword [ebp - 0x38]
movzx edx, byte [ebp + ecx - 0x34]
push edx
push 0x45d02c
push 4
mov ecx, dword [ebp + 0x14]
call fcn.00402270
mov ecx, dword [ebp - 0x38]
shl ecx, 1
lea edx, [eax + ecx*2]
push edx
call fcn.00438b59
add esp, 0x10
jmp 0x420aed
mov dword [ebp - 4], 1
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
cmp dword [ebp - 4], 0
setne al
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004376f1
mov esp, ebp
pop ebp
ret
Function at 0x42a4a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and eax, 0xffff
movzx ecx, ax
and ecx, 0xff
movzx edx, cl
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
and eax, 0xffff
movzx ecx, ax
shr ecx, 8
and ecx, 0xff
movzx edx, cl
mov dword [ebp - 8], edx
cmp dword [ebp - 0xc], 6
jne 0x42a4f5
cmp dword [ebp - 8], 1
jb 0x42a4f5
mov dword [ebp - 0x10], 1
jmp 0x42a4fc
mov dword [ebp - 0x10], 0
mov al, byte [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x42ee40
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0xa5
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x42ee66
xor al, al
jmp 0x42eebc
lea edx, [ebp - 0x20]
push edx
push 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x42ee88
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x42eebc
mov edx, 1
test edx, edx
je 0x42eeba
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x42eea5
jmp 0x42eeba
cmp dword [ebp - 0x1c], 1
jne 0x42eead
jmp 0x42eeba
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42ee88
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x430ae0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4510b2
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x46d45c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x14]
call fcn.00402160
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [0x46f464]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004047c0
add esp, 0x14
test eax, eax
je 0x430b5e
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004021c0
mov eax, dword [ebp - 0x18]
jmp 0x430be8
lea edx, [ebp - 0x14]
push edx
push 0
push 0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0041d480
add esp, 0x14
test eax, eax
jne 0x430bc6
movzx edx, byte [ebp + 0x1c]
test edx, edx
jne 0x430b9c
push 0x45e67c
lea ecx, [ebp - 0x14]
call fcn.004022b0
push 0x45e680
lea ecx, [ebp - 0x14]
call fcn.004022b0
movzx eax, byte [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00402270
push eax
lea ecx, [ebp - 0x14]
call fcn.00402270
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.004309b0
add esp, 0x14
mov dword [ebp + 0x18], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004021c0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4376f1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46d45c]
jne 0x4376fb
repz ret
jmp fcn.0043da4c

Function at 0x4468e6
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0043d434
and dword [ebp - 4], 0
cmp dword [0x4703f0], 0
mov ebx, eax
jne 0x446997
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x446a48
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x446a48
push eax
call fcn.0043d3c2
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4703f0], eax
call esi
push eax
call fcn.0043d3c2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4703f4], eax
call esi
push eax
call fcn.0043d3c2
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4703f8], eax
call esi
push eax
call fcn.0043d3c2
pop ecx
mov dword [0x470400], eax
test eax, eax
je 0x446997
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043d3c2
pop ecx
mov dword [0x4703fc], eax
mov eax, dword [0x4703fc]
cmp eax, ebx
je 0x4469ef
cmp dword [0x470400], ebx
je 0x4469ef
push eax
call fcn.0043d43d
push dword [0x470400]
mov esi, eax
call fcn.0043d43d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4469ef
test edi, edi
je 0x4469ef
call esi
test eax, eax
je 0x4469e6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4469e6
test byte [ebp - 0xc], 1
jne 0x4469ef
or dword [ebp + 0x10], 0x200000
jmp 0x446a28
mov eax, dword [0x4703f4]
cmp eax, ebx
je 0x446a28
push eax
call fcn.0043d43d
pop ecx
test eax, eax
je 0x446a28
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x446a28
mov eax, dword [0x4703f8]
cmp eax, ebx
je 0x446a28
push eax
call fcn.0043d43d
pop ecx
test eax, eax
je 0x446a28
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4703f0]
call fcn.0043d43d
pop ecx
test eax, eax
je 0x446a48
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x446a4a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0xdc9370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xdc938e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xdf2074
push ecx
mov edi, eax
call fcn.00ddd198
mov esi, eax
add esp, 8
test esi, esi
jne 0xdc93cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00ddd02e
push esi
call fcn.00ddcfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret