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

Disassembly:
push 0x58
mov eax, 0x100e54dd
call fcn.100c74ca
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, ebx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
lea edx, [ebp - 0x20]
push edx
push ebx
lea edx, [ebp - 0x18]
push edx
push ebx
lea edx, [ebp - 0x1c]
push edx
push ebx
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x100b8445
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100299ab
pop ecx
push dword [ebp - 0x20]
mov esi, eax
call fcn.100299ab
pop ecx
mov edi, eax
lea eax, [ebp - 0x20]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
push ebx
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x2c]
push esi
push dword [ebp - 0x24]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x100b8422
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], edi
mov word [esi + eax*2], cx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x64]
call fcn.10026c47
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 1
call fcn.100299ab
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.100227b7
lea ecx, [ebp - 0x64]
call fcn.100227b7
push esi
call fcn.100c7651
push edi
call fcn.100c7651
mov eax, dword [ebp - 0x24]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x24], eax
jmp 0x100b8360
xor ebx, ebx
push esi
inc ebx
call fcn.100c7651
push edi
call fcn.100c7651
pop ecx
pop ecx
jmp 0x100b8445
mov eax, ebx
call fcn.100c7417
ret

Function at 0x100b84f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x100e5527
call fcn.100c74ca
mov esi, dword [ebp + 0xc]
xor edi, edi
mov eax, dword [ebp + 0x10]
inc edi
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, esi
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x20], ecx
jb 0x100b8518
mov eax, dword [esi]
lea edx, [ebp - 0x18]
xor ebx, ebx
push edx
push ebx
push ebx
push ebx
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100b8591
mov eax, dword [ebp - 0x18]
xor ecx, ecx
push 2
inc eax
mov dword [ebp - 4], ebx
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100299ab
cmp dword [esi + 0x14], 8
mov ebx, eax
pop ecx
jb 0x100b8554
mov esi, dword [esi]
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x20]
push ebx
push 0
push 0
push esi
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100b8578
mov ecx, dword [ebp - 0x1c]
push ebx
call fcn.100299ab
xor edi, edi
push ebx
call fcn.100c7651
pop ecx
jmp 0x100b8591
mov eax, edi
call fcn.100c7417
ret
Function at 0x100bcb79
Capabilities:
Check if file exists

Disassembly:
push 0x38
mov eax, 0x100e5f38
call fcn.100c745c
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x40]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
and dword [ebp - 0x30], 0
and dword [ebp - 0x2c], 0
push eax
mov dword [ebp - 0x44], esi
call fcn.100299ab
and dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
push 1
push 0x100f25f4
call fcn.100299ab
push 2
push 0x1013edec
lea ecx, [ebp - 0x40]
call fcn.100299ab
push 1
push 0x100f25f4
lea ecx, [ebp - 0x40]
call fcn.100299ab
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x100bcbe0
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x40]
push eax
call fcn.100299ab
push 1
push 0x100eef5c
lea ecx, [ebp - 0x40]
call fcn.100299ab
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x100bcc05
mov eax, dword [ebx]
push dword [ebx + 0x10]
lea ecx, [ebp - 0x40]
push eax
call fcn.100299ab
push 7
xor ebx, ebx
xor eax, eax
pop edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.100299ab
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
pop ecx
cmovae eax, dword [ebp - 0x28]
pop ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, esi
test eax, eax
jne 0x100bcc89
push 0x100eadb0
call fcn.100299ab
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x100bcc71
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x28]
call fcn.100299ab
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], edi
cmp eax, 0x10
jb 0x100bcccc
inc eax
push eax
jmp 0x100bccc2
lea eax, [ebp - 0x40]
push eax
call fcn.100299ab
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x100bccac
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x28]
call fcn.100299ab
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
mov word [ebp - 0x28], ax
cmp ecx, 0x10
jb 0x100bcccc
inc ecx
push ecx
push dword [ebp - 0x40]
call fcn.100299ab
pop ecx
pop ecx
mov eax, esi
call fcn.100c7406
ret
Function at 0x100c687e
Capabilities:
Get file size

Disassembly:
push 0x74
mov eax, 0x100e79db
call fcn.100c745c
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x80]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0x50
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x80]
call fcn.100419f1
push esi
lea eax, [ebp - 0x30]
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp - 0x80]
call fcn.100299ab
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push ebx
cmovae eax, dword [ebp - 0x30]
push 0x80
push 3
push ebx
push 3
push SysReAllocString
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100c6909
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.kernel32.dll_GetFileSizeEx]
test eax, eax
je 0x100c6902
mov eax, dword [ebp - 0x18]
mov bl, 1
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 4], eax
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
lea ecx, [ebp - 0x30]
call fcn.100227b7
lea ecx, [ebp - 0x80]
call fcn.10041ada
mov al, bl
call fcn.100c7406
ret

Function at 0x100c6921
Capabilities:
Check if file exists

Disassembly:
push 0x6c
mov eax, 0x100e7a13
call fcn.100c745c
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x78]
push 0x50
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x78]
call fcn.100419f1
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push esi
push eax
lea ecx, [ebp - 0x78]
call fcn.100299ab
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea ecx, [ebp - 0x28]
setne bl
call fcn.100227b7
lea ecx, [ebp - 0x78]
call fcn.10041ada
mov al, bl
call fcn.100c7406
ret
Function at 0x401a40
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x40c70f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x40c71e
pop dword [ebp - 0x4c]
mov eax, 0x35035ce7
sub eax, 0x34c295c9
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0xa5b4b212
sub dword [ebp - 0x5c], 0x57626cc7
mov dword [ebp - 0x58], 0x8a8c5a5a
add dword [ebp - 0x58], 0xa7a6f1eb
mov dword [ebp - 0x54], 0xddc3b75f
sub dword [ebp - 0x54], 0x91777331
mov dword [ebp - 0x50], 0xb44242e
add dword [ebp - 0x50], 0xf4bbdbd2
lea eax, [ebp - 0x5c]
push eax
mov eax, 0x6d1fe065
add eax, 0x9322500f
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xa9657808
add dword [ebp - 0x5c], 0xcb0cf14e
mov dword [ebp - 0x58], 0x69d4f4d3
sub dword [ebp - 0x58], 0x2868935e
mov dword [ebp - 0x54], 0x16f7434e
add dword [ebp - 0x54], 0x4c78291e
mov dword [ebp - 0x50], 0xe3af95a6
add dword [ebp - 0x50], 0x1c506a5a
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x948f1ff
add eax, 0xf6f93f25
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3e56c
push 0
call eax
mov ecx, 0x79c190ae
add ecx, 0x863eb9c3
xor ebx, ebx
add ebx, eax
mov edi, 0x1fc94afc
add edi, 0xe079f904
add edi, dword [ebp - 0x4c]
mov edx, 0xd3a3fffd
add edx, 0x971bc101
xor dword [ebp - 0x3c], 0x2b5b9ae9
mov esi, dword [edi]
sub esi, edx
xor dword [ebp - 0x10], 0x20fc4ff5
mov dword [ebx], esi
sub dword [ebp - 0x48], 0x9ef5960e
add ebx, 4
add edi, 0x9a85fb8e
sub edi, 0x9a85fb8a
loop 0x40c842
add eax, 0x490055e0
sub eax, 0x48ff3949
xor ebx, ebx
add ebx, eax
add eax, 0x93a416b4
add eax, 0x6c5be951
mov ecx, 0x6262487e
add ecx, 0x9dddb782
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4044f0
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, edx
push ebx
push esi
mov dword [ebp - 0xc], eax
mov ebx, ecx
mov dword [eax], 0
lea eax, [ebp - 1]
push 0
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, eax
test esi, esi
je 0x410f36
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404525
sub eax, edx
lea ebx, [esi + 2]
add ebx, eax
push edi
push ebx
call fcn.0040b7e3
mov edi, eax
add esp, 4
test edi, edi
je 0x4045ab
lea eax, [esi + 1]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x410f51
sub ebx, eax
lea esi, [eax + edi]
push 0x401d70
push ebx
push esi
call dword [sym.imp.msvcrt.dll_strcpy_s]
push dword [ebp - 8]
lea eax, [ebx - 1]
push eax
lea eax, [esi + 1]
push eax
call dword [sym.imp.msvcrt.dll_strcpy_s]
add esp, 0x18
push 0x800
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
test eax, eax
je 0x410f51
mov ecx, dword [ebp - 0xc]
xor esi, esi
mov dword [ecx], eax
push edi
call fcn.0040b812
mov eax, esi
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x8007000e
jmp 0x4045a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4045a5
movzx eax, ax
or eax, 0x80070000
jmp 0x4045a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x404599
movzx esi, si
or esi, 0x80070000
jmp 0x404599

Function at 0x4047f0
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
call fcn.0040b836
call fcn.00404805
jmp fcn.00404960

Function at 0x404929
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 2
push eax
push 0x20000070
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x404952
cmp dword [ebp - 4], 1
sete al
leave
ret
xor al, al
leave
ret

Function at 0x404b67
Capabilities:
Check os version

Disassembly:
push 0xa0
push 0x41a338
call fcn.0040ff74
mov dword [0x41b510], 0x7d0
mov dword [0x41b518], ecx
and dword [ebp - 4], 0
push 0x41b624
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 0xb0], 0x94
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x404c25
cmp dword [ebp - 0xac], 6
sbb al, al
inc al
mov byte [0x41b51c], al
call fcn.00404c2f
mov dword [0x41b520], eax
cmp dword [ebp - 0xa0], 2
jne 0x404bff
mov byte [0x41b514], 1
cmp dword [ebp - 0xac], 5
je 0x404c1a
cmp dword [ebp - 0xac], 6
jb 0x404bff
call fcn.00405d70
mov byte [0x41b51d], 1
xor eax, eax
cmp dword [0x41b518], eax
setne al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 0xa8], 1
jae 0x404bf3
jmp 0x404bea
xor eax, eax
jmp 0x404c0a
Function at 0x4053b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x41b140]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x41b514], 0
push ebx
push esi
push edi
mov edi, ecx
push 0
je 0x41194c
lea eax, [ebp - 8]
push eax
push 0
push 0x20019
push 0
push 0
push 0
push 0x401d88
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x411941
cmp byte [0x41b514], 0
mov esi, dword [ebp - 8]
mov dword [ebp - 0xc], 4
je 0x4119df
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x401de8
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x411a55
jle 0x405445
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x411a61
cmp esi, 0x80070002
jne 0x405482
mov byte [edi + 4], 0
mov dword [edi], 0
mov ecx, dword [ebp - 8]
lea eax, [edi + 6]
push eax
mov edx, 0x401e28
call fcn.004057a0
mov esi, eax
test esi, esi
jns 0x4054a3
cmp esi, 0x80070002
jne 0x405482
mov byte [edi + 7], 0
xor esi, esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b820
mov esp, ebp
pop ebp
ret 4
mov byte [edi + 7], 1
jmp 0x405482
jg 0x4119ca
jmp 0x4119d4
push 0
push 0
push 0
push 0xffffffffffffffff
push 0x401d88
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
test esi, esi
jne 0x411975
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x4119ca
jmp 0x4119d4
call fcn.00410060
mov ebx, esp
push 0
push 0
push esi
push ebx
push 0xffffffffffffffff
push 0x401d88
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4119a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x4119ca
jmp 0x4119d4
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x20019
push 0
push 0
push 0
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4053fd
jle 0x4119d4
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x40548d
jmp 0x4053fd
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 0x401de8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
test ebx, ebx
je 0x411a40
call fcn.00410060
mov eax, esp
push 0
push 0
push ebx
push eax
push 0xffffffffffffffff
push 0x401de8
push 0
push 0
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x411a40
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp - 0x18]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x40542e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x405445
jmp 0x40543a
cmp dword [ebp - 0x10], 4
jne 0x411a7b
cmp dword [ebp - 0xc], 4
jne 0x411a7b
mov ecx, dword [ebp - 0x14]
test ecx, ecx
setne al
mov byte [edi + 4], al
mov eax, ecx
neg eax
sbb eax, eax
and eax, ecx
mov dword [edi], eax
jmp 0x40545d
mov esi, 0x80040153
jmp 0x405482
Function at 0x4057a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc18
mov eax, dword [0x41b140]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov eax, ecx
mov esi, edx
mov dword [ebp - 0xc18], eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc14], edi
cmp byte [0x41b514], bl
je 0x40580c
lea ecx, [ebp - 0xc08]
mov dword [ebp - 0xc08], 0x400
push ecx
lea ecx, [ebp - 0xc04]
push ecx
lea ecx, [ebp - 0xc0c]
push ecx
push ebx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405857
lea ebx, [ebp - 0xc04]
jmp 0x405921
test esi, esi
je 0x40587a
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x40584f
call fcn.00410060
mov eax, esp
push 0
push 0
push edi
push eax
push 0xffffffffffffffff
push esi
push 0
push 0
mov dword [ebp - 0xc10], eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x40587e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x405861
movzx eax, ax
or eax, 0x80070000
lea esp, [ebp - 0xc24]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b820
mov esp, ebp
pop ebp
ret 4
xor eax, eax
jmp 0x40588a
mov eax, dword [ebp - 0xc10]
mov edi, dword [ebp - 0xc14]
lea ecx, [ebp - 0xc08]
mov dword [ebp - 0xc08], 0x400
push ecx
lea ecx, [ebp - 0x404]
push ecx
lea ecx, [ebp - 0xc0c]
push ecx
push 0
push eax
push dword [ebp - 0xc18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405857
mov ecx, dword [ebp - 0xc08]
test ecx, ecx
jne 0x4058cd
mov eax, 0x80004005
jmp 0x405861
lea eax, [ecx - 1]
cmp eax, 0x400
jae 0x4059b4
mov byte [ebp + eax - 0x404], bl
mov eax, dword [ebp - 0xc0c]
cmp eax, 1
je 0x4058fa
cmp eax, 2
je 0x4058fa
lea ebx, [ebp - 0x404]
jmp 0x40592d
push 0x400
lea eax, [ebp - 0xc04]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x40584f
mov eax, dword [ebp - 0xc0c]
mov ecx, dword [ebp - 0xc08]
sub eax, 1
je 0x405959
sub eax, 1
je 0x405959
sub eax, 2
jne 0x40594f
cmp ecx, 4
jne 0x40594f
cmp dword [ebx], eax
setne al
mov byte [edi], al
xor eax, eax
jmp 0x405861
mov eax, 0x80040153
jmp 0x405861
push 0xffffffffffffffff
mov edx, 0x402548
mov byte [edi], 1
lea ecx, [ebp - 0xc04]
call fcn.004059c0
test eax, eax
je 0x4059a9
push 0xffffffffffffffff
mov edx, 0x40254c
lea ecx, [ebp - 0xc04]
call fcn.004059c0
test eax, eax
je 0x4059a9
push 0xffffffffffffffff
mov edx, 0x402554
lea ecx, [ebp - 0xc04]
call fcn.004059c0
test eax, eax
je 0x4059a9
mov al, 1
mov byte [edi], al
xor eax, eax
jmp 0x405861
xor al, al
mov byte [edi], al
xor eax, eax
jmp 0x405861
call fcn.0040ba18
int3
Function at 0x405bd0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x41b140]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x41b514], 0
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 8], 4
mov edi, ecx
je 0x411ecd
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x411f3b
jle 0x405c24
movzx eax, ax
or eax, 0x80070000
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b820
mov esp, ebp
pop ebp
ret 4
test esi, esi
je 0x411f1f
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
test ebx, ebx
je 0x411f12
call fcn.00410060
mov eax, esp
push 0
push 0
push ebx
push eax
push 0xffffffffffffffff
push esi
push 0
push 0
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x411f12
mov eax, dword [ebp - 0x10]
jmp 0x411f21
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jmp 0x405c1a
xor eax, eax
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
push ecx
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x405c12
cmp dword [ebp - 0xc], 4
jne 0x411f55
mov eax, dword [ebp - 8]
sub eax, 4
neg eax
sbb eax, eax
and eax, 0x80040153
jmp 0x405c24
mov eax, 0x80040153
jmp 0x405c24
Function at 0x405dd0
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x41b140]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x41b514], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
mov esi, ecx
mov dword [ebp - 8], esi
mov dword [edi], 0
mov dword [ebx], 0
je 0x411f7a
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x411f5f
call fcn.00410060
mov eax, esp
push eax
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
push dword [ebp - 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x411f5f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x401ee8
push dword [ebp - 0xc]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x411f5f
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x10]
mov dword [edi], eax
mov eax, dword [ecx + 0x14]
mov dword [ebx], eax
xor eax, eax
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b820
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x405e6a
movzx eax, ax
or eax, 0x80070000
jmp 0x405e6a
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x411f5f
call fcn.00410060
mov eax, esp
mov dword [ebp - 8], eax
test eax, eax
jne 0x411fae
mov eax, 0x8007000e
jmp 0x405e6a
push 0
push 0
push dword [ebp - 0xc]
push eax
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x411f5f
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x411f5f
call fcn.00410060
mov eax, esp
push eax
push dword [ebp - 0xc]
mov dword [ebp - 8], eax
push dword [ebp - 0x10]
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x411f5f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x401d70
push dword [ebp - 8]
call dword [sym.imp.VERSION.dll_VerQueryValueA]
jmp 0x405e53