joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e48c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44e637
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44e618
mov dl, 1
mov eax, dword [0x4123d8]
call fcn.004039c0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404804
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44e607
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0044144c
test al, al
je 0x44e5fa
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44e648
lea eax, [ebp - 0x254]
call fcn.00409404
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44e5fa
xor eax, eax
push ebp
push 0x44e5f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44e680
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44e5dc
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a74
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44e5dc
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e5fa
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44e4fd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.004160b8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e63e
lea eax, [ebp - 0x260]
call fcn.00404804
ret

Function at 0x44efb0
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x45957c]
cmp byte [eax + 0xad], 0
jne 0x44f021
cmp dword [0x459594], 0
jne 0x44efe2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44ef6c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x459594], eax
cmp dword [0x459590], 0
jne 0x44effd
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x459590], eax
cmp dword [0x459598], 0
jne 0x44f021
push esp
push 0
push 0
push 0x44ef10
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x459598], eax
pop edx
ret
Function at 0x44f1f4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44f20b
add esp, 0xfffffff0
call fcn.00403cfc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a1b8
mov eax, dword [0x4558ac]
cmp word [eax + 2], 0
jne 0x44f233
mov eax, dword [0x4558ac]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00450c24
mov eax, dword [0x45594c]
cmp word [eax + 2], 0
jne 0x44f24d
mov eax, dword [0x45594c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00450e30
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411fb4]
call fcn.004039c0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411fb4]
call fcn.004039c0
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x411fb4]
call fcn.004039c0
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41e5c8]
call fcn.00424410
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x44f404
mov eax, dword [0x4557dc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004247e4
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4514f0
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4557dc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040cb70
test eax, eax
je 0x44f354
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408dbc
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cba4
test eax, eax
je 0x44f368
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404a74
mov byte [ebx + 0xd4], 0
push ebx
push 0x450804
call fcn.0041b334
mov dword [ebx + 0xc8], eax
mov eax, dword [0x4556e8]
cmp byte [eax], 0
jne 0x44f3b9
mov eax, ebx
call fcn.0044f548
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004516cc
mov eax, ebx
call fcn.0045222c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44f3f9
call fcn.00403d54
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44f7c8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45957c]
cmp dword [eax + 0x30], 0
je 0x44f872
cmp dword [ebx + 0x94], 0
jne 0x44f86c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44f758
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44f86c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44f832
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44f86c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414360
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44f841
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45058c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4505c1
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004048f4
jmp 0x4505ce
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404858
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4518b0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45191e
mov eax, esi
call fcn.0043c308
test al, al
je 0x45191e
mov eax, dword [ebx + 0x84]
call fcn.0043c00c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45191e
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x451912
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043c00c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00434550
jmp 0x45191e
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004516ec
pop esi
pop ebx
ret
Function at 0x4022a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4022bb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4022f2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4022ee
jmp 0x4022e0
cmp esi, eax
jae 0x4022f2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4022e0
cmp esi, eax
jb 0x4022f9
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404ff0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x535051
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x587c1c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], esi
call fcn.004129bd
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40503d
push 0x80004005
call fcn.004029a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
mov eax, 1
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov dword [ebp - 0x1c], eax
mov esi, 0x2710
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00411d3c
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
test edi, edi
jne 0x40509c
mov byte [ebp - 0x11], al
push 0x57e050
lea eax, [ebp - 0x11]
push eax
call fcn.00511cb4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [edi], 0
mov eax, dword [ecx]
mov ecx, dword [edx]
push eax
push esi
push edi
push ecx
call ebx
lea ecx, [esi - 2]
cmp eax, ecx
je 0x40516e
push eax
lea edx, [ebp + 0x10]
push edx
mov ecx, edi
call fcn.004051d0
mov byte [ebp - 4], 2
mov edx, dword [ebp + 8]
mov eax, dword [eax]
mov esi, dword [edx]
lea ecx, [eax - 0x10]
sub esi, 0x10
cmp ecx, esi
je 0x405129
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x40511c
mov edx, dword [ecx]
cmp edx, dword [esi]
jne 0x40511c
push ecx
call fcn.004029c0
mov dword [ebp + 0xc], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x40510f
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
add ecx, 0x10
mov dword [edx], ecx
jmp 0x405129
mov ecx, dword [eax - 0xc]
push ecx
mov ecx, dword [ebp + 8]
push eax
call fcn.004028f0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40514c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
cmp dword [edx - 0xc], 0
sete al
cmp al, 1
jne 0x40519f
push 0x57e050
lea eax, [ebp - 0x12]
push eax
mov byte [ebp - 0x12], 0
call fcn.00511cb4
push edi
call fcn.00411d47
add esp, 4
mov dword [ebp - 0x18], 0
add esi, 0x3e8
jmp 0x405067
test edi, edi
je 0x4051ac
push edi
call fcn.00411d47
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4052c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5355f9
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x587c1c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
call fcn.004129bd
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40530a
push 0x80004005
call fcn.004029a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], edi
mov edi, dword [edx]
mov ecx, 1
mov dword [ebp - 0x10], ecx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x201
or eax, ecx
jge 0x405343
push 0x201
mov ecx, esi
call fcn.00402820
mov eax, dword [esi]
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov edx, dword [0x58fcd4]
push edi
push 0x200
push eax
push 0x564b34
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esi]
cmp dword [eax - 8], 0x201
jl 0x405396
mov dword [eax - 0xc], 0x201
mov eax, dword [esi]
xor ecx, ecx
mov word [eax + 0x402], cx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
push 0x80070057
call fcn.004029a0
int3

Function at 0x405c30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [0x58fcdc]
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
or edi, 0xffffffff
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x405c6a
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x405c6d
mov eax, dword [ebp - 4]
mov esi, eax
test eax, eax
je 0x405ca2
lea edx, [ebp - 8]
push edx
mov edx, dword [0x58fce0]
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push edx
push eax
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405c9b
mov edi, dword [ebp - 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407760
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x535aab
mov eax, dword fs:[0]
push eax
sub esp, 0x748
mov eax, dword [0x587c1c]
xor eax, esp
mov dword [esp + 0x740], eax
push esi
mov eax, dword [0x587c1c]
xor eax, esp
push eax
lea eax, [esp + 0x750]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0041dc71
mov eax, dword [eax + 8]
lea ecx, [esp + 0x14]
push ecx
push 0x564ea0
push eax
call dword [sym.imp.USER32.dll_GetClassInfoW]
mov edx, dword [0x58fd10]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x3c], edx
call fcn.00419975
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.0041d133
push 0
call fcn.0041e539
mov edx, dword [0x58fd60]
add esp, 4
push edx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0xb8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x407827
mov byte [esp + 8], 0
cmp eax, 5
jne 0x40782c
mov byte [esp + 8], 1
mov eax, dword [esp + 8]
push eax
call fcn.004078d0
test al, al
je 0x40789d
call fcn.004058c0
test al, al
je 0x40789d
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
lea ecx, [esp + 0x3c]
push ecx
mov dword [0x58fd18], eax
call fcn.00408050
lea edx, [esp + 0x3c]
mov dword [esp + 0x758], 0
mov ecx, edx
mov dword [esi + 0x20], edx
call fcn.00413556
mov eax, dword [0x58fd18]
test eax, eax
je 0x407889
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x758], 0xffffffff
call fcn.00408300
xor eax, eax
mov ecx, dword [esp + 0x750]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x740]
xor ecx, esp
call fcn.0051033a
mov esp, ebp
pop ebp
ret
Function at 0x407e50
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534922
mov eax, dword fs:[0]
push eax
sub esp, 0x538
mov eax, dword [0x587c1c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor edi, edi
mov dword [ebp - 4], edi
mov ebx, ecx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x12c], edi
call fcn.004129bd
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x407eae
push 0x80004005
call fcn.004029a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
push 0x104
mov eax, 1
lea ecx, [ebp - 0x118]
push edi
push ecx
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x124], edi
mov dword [ebp - 4], eax
call fcn.00511f10
add esp, 0xc
call fcn.0041dc71
mov eax, dword [eax + 8]
push 0x104
lea edx, [ebp - 0x118]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp eax, edi
jne 0x407f1c
push 0x57e050
lea eax, [ebp - 0x11d]
push eax
mov byte [ebp - 0x11d], 0
call fcn.00511cb4
lea ecx, [ebp - 0x134]
push ecx
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
cmp esi, edi
jne 0x407f4e
push 0x57e050
lea eax, [ebp - 0x11c]
push eax
mov byte [ebp - 0x11c], 0
call fcn.00511cb4
push esi
call fcn.00411d3c
mov edi, eax
add esp, 4
mov dword [ebp - 0x124], edi
test edi, edi
jne 0x407f7a
push 0x57e050
lea ecx, [ebp - 0x119]
push ecx
mov byte [ebp - 0x119], al
call fcn.00511cb4
push edi
push esi
push 0
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
jne 0x407fa6
mov byte [ebp - 0x11a], al
push 0x57e050
lea eax, [ebp - 0x11a]
push eax
call fcn.00511cb4
lea ecx, [ebp - 0x130]
push ecx
lea edx, [ebp - 0x544]
push edx
push 0x565054
push edi
mov dword [ebp - 0x130], 0x104
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
jne 0x407fe5
mov byte [ebp - 0x11b], al
push 0x57e050
lea eax, [ebp - 0x11b]
push eax
call fcn.00511cb4
mov eax, dword [ebp - 0x544]
movzx ecx, word [eax + 0xa]
movzx edx, word [eax + 8]
movzx esi, word [eax + 0xe]
movzx eax, word [eax + 0xc]
push eax
push esi
push edx
push ecx
push 0x565058
push ebx
call fcn.00405850
add esp, 0x18
jmp 0x408021
test edi, edi
je 0x40802e
push edi
call fcn.00411d47
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0051033a
mov esp, ebp
pop ebp
ret
Function at 0x409b00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5354e0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x587c1c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [esp + 0x1c]
call fcn.004103d0
lea esi, [esp + 0x10]
mov dword [esp + 0x38], 0
call fcn.0040c100
lea eax, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x40], 1
mov edx, esi
mov dword [esp + 0x14], esp
mov ecx, esp
push edx
call fcn.004020e0
add edi, 0x5bc
push edi
call fcn.00410f10
cmp al, 1
jne 0x409bb2
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.004020e0
mov esi, dword [esp + 0xc]
push 1
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409bb2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409bd7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409bff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409c1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409c3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40b850
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534c58
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x587c1c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov byte [ebp - 0x11], 1
mov dword [ebp - 4], 0
call fcn.004129bd
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b8a3
push 0x80004005
call fcn.004029a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 1
mov ecx, dword [0x58fe34]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x40b912
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x40b902
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40b902
push eax
call fcn.004029c0
mov dword [ebp - 0x1c], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x40b8f7
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x10
mov dword [ebp - 0x18], ecx
jmp 0x40b90f
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.004028f0
mov ebx, dword [ebp - 0x18]
mov eax, dword [edi]
test eax, eax
je 0x40b925
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [edi], 0
mov dword [ebp - 0x1c], 0
test ebx, ebx
je 0x40b9a7
cmp word [ebx], 0
je 0x40b9a7
push 0
lea edx, [ebp - 0x1c]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push ebx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40b95d
xor ecx, ecx
jmp 0x40b960
mov ecx, dword [ebp - 0x1c]
mov dword [edi + 4], eax
test ecx, ecx
je 0x40b9ae
mov esi, dword [ebp + 0xc]
push esi
push edi
mov dword [edi], ecx
mov ebx, dword [0x58fe38]
push edi
call fcn.0040d660
mov ecx, dword [esi + 4]
mov dword [ebp + 0xc], ecx
mov ecx, dword [0x58fe3c]
test ecx, ecx
je 0x40b9c7
mov eax, dword [edi]
test eax, eax
je 0x40b9c0
push 4
lea edx, [ebp + 0xc]
push edx
push 4
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [edi + 4], eax
jmp 0x40b9c7
mov dword [edi + 4], 0x57
push 0x57e050
lea eax, [ebp - 0x12]
push eax
mov byte [ebp - 0x12], 0
call fcn.00511cb4
mov dword [edi + 4], 0x57
mov al, byte [esi + 8]
mov byte [ebp - 0x1c], al
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [0x58fe40]
push edi
push edi
call fcn.0040d840
mov dl, byte [esi + 9]
mov ecx, dword [0x58fe44]
mov byte [ebp - 0x1c], dl
mov eax, dword [ebp - 0x1c]
push eax
push edi
push edi
call fcn.0040d840
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ba27
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40ba27
mov eax, dword [edi]
test eax, eax
je 0x40ba3a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [edi], 0
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8