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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x461070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push ebx
push SysReAllocStringLen
push eax
mov dword [ebp - 0x34], ebx
call dword [0x46509c]
mov esi, eax
mov dword [ebp - 0x30], esi
cmp esi, 0xffffffff
jne 0x431aeb
xor eax, eax
jmp 0x431b8b
push edi
push esi
call fcn.004312fa
mov edi, eax
cmp edi, ebx
jne 0x431b01
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x431b2e
lea eax, [ebp - 0x2c]
push eax
push edi
call fcn.0043150a
lea eax, [ebp - 0x2c]
push eax
call fcn.004318a9
movzx eax, ax
add eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x2c]
jb 0x431b27
add eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x18]
jae 0x431b32
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x431b8a
push 0x42
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
mov esi, eax
cmp esi, ebx
jne 0x431b4d
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
jmp 0x431b7f
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
push ebx
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x18]
push edx
call fcn.004318a9
movzx ecx, word [edx]
movzx eax, ax
add eax, edx
add ecx, eax
push ecx
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004224f9
leave
ret 4

Function at 0x433891
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor esi, esi
mov edi, eax
cmp dword [ebp - 4], ebx
jle 0x4338d9
push 6
push 0x4054f8
push dword [edi + esi*4]
call fcn.004474b0
add esp, 0xc
test eax, eax
je 0x4338d7
inc esi
cmp esi, dword [ebp - 4]
jl 0x4338b9
jmp 0x4338d9
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x434ac1
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x461070]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
push 8
mov eax, ecx
mov ecx, dword [ebp + 8]
pop edi
mov dword [ebp - 0x808], edx
cmp dword [eax + 0x14], edi
jb 0x434af3
mov ebx, dword [eax]
jmp 0x434af5
mov ebx, eax
lea esi, [eax + 0x38]
cmp dword [esi + 0x14], edi
jb 0x434b01
mov edx, dword [esi]
jmp 0x434b03
mov edx, esi
cmp dword [ecx + 0x14], edi
jb 0x434b0a
mov ecx, dword [ecx]
add eax, 0x1c
cmp dword [eax + 0x14], edi
jb 0x434b14
mov eax, dword [eax]
push ebx
push 0x400
lea edi, [ebp - 0x804]
push edi
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, eax
lea eax, [ebp - 0x804]
push eax
mov ecx, esi
call fcn.0041097e
test eax, eax
jne 0x434b42
xor eax, eax
jmp 0x434b5f
cmp edi, 0x3ff
je 0x434b3e
mov ecx, dword [ebp - 0x808]
lea eax, [ebp - 0x804]
push eax
call fcn.00410cec
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004224f9
leave
ret 8
Function at 0x43b377
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa64
mov eax, dword [0x461070]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0xa60], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x403908
mov edi, 0x104
push edi
push ebx
mov dword [ebp - 0xa64], ebx
call fcn.00422675
lea eax, [ebp - 0xa5c]
push eax
mov esi, 0x4660c8
push esi
call fcn.00448174
add esp, 0x14
test eax, eax
je 0x43b3df
push 0x405d68
push edi
push ebx
call fcn.00422675
add esp, 0xc
xor eax, eax
jmp 0x43b588
xor eax, eax
mov edi, 0x206
push edi
push eax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push eax
call fcn.00427b40
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0xc
push esi
push 0x103
lea eax, [ebp - 0x824]
push eax
push 0x40df5c
push 0x405d48
push 0x40ec50
call ebx
test eax, eax
jne 0x43b430
mov dword [ebp - 0xa60], 1
xor eax, eax
push edi
push eax
mov word [ebp - 0xa2c], ax
lea eax, [ebp - 0xa2a]
push eax
call fcn.00427b40
add esp, 0xc
push esi
push 0x103
lea eax, [ebp - 0xa2c]
push eax
push 0x40df5c
push 0x405d30
push 0x40ec50
call ebx
test eax, eax
jne 0x43b476
mov dword [ebp - 0xa60], 1
xor eax, eax
push edi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00427b40
add esp, 0xc
push esi
push 0x103
lea eax, [ebp - 0x414]
push eax
push 0x40df5c
push 0x405d14
push 0x40ec50
call ebx
test eax, eax
jne 0x43b4bc
mov dword [ebp - 0xa60], 1
xor eax, eax
push edi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00427b40
add esp, 0xc
push esi
push 0x103
lea eax, [ebp - 0x20c]
push eax
push 0x40df5c
push 0x405cf8
push 0x40ec50
call ebx
test eax, eax
jne 0x43b502
mov dword [ebp - 0xa60], 1
cmp dword [ebp - 0xa60], 0
je 0x43b525
push 0x405d68
push 0x104
push dword [ebp - 0xa64]
call fcn.00422675
add esp, 0xc
jmp 0x43b585
xor eax, eax
push edi
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.00427b40
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x824]
push eax
push 0x405cc0
mov esi, 0x104
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.00422e05
lea eax, [ebp - 0x61c]
push eax
push esi
push dword [ebp - 0xa64]
call fcn.00422675
add esp, 0x34
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004224f9
leave
ret 4
Function at 0x43b7a3
Capabilities:
Read .ini file

Disassembly:
push 0x228
mov eax, 0x45437a
call fcn.0044730c
mov edi, dword [ebp + 0x40]
xor esi, esi
inc esi
mov dword [ebp - 4], esi
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
xor ebx, ebx
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.00427b40
mov ecx, dword [ebp + 8]
add esp, 0xc
cmp dword [ebp + 0x1c], 8
jae 0x43b7e7
lea ecx, [ebp + 8]
cmp dword [ebp + 0x38], 8
mov eax, dword [ebp + 0x24]
jae 0x43b7f3
lea eax, [ebp + 0x24]
push ecx
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0x40df5c
push eax
push 0x405e14
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, ebx
je 0x43b861
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x43b81e
sub eax, edx
sar eax, 1
cmp eax, ebx
je 0x43b861
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.00410cec
mov byte [ebp - 4], bl
push ebx
push esi
lea ecx, [ebp + 8]
call fcn.0041103b
or dword [ebp - 4], 0xffffffff
push ebx
push esi
lea ecx, [ebp + 0x24]
call fcn.0041103b
mov eax, esi
jmp 0x43b917
xor eax, eax
push 0x405e70
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], ax
call fcn.00410cec
mov byte [ebp - 4], 2
cmp dword [ebp + 0x38], 8
mov eax, dword [ebp + 0x24]
jae 0x43b89a
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp - 0x234]
call fcn.004111a3
push 0x405e44
lea ecx, [ebp - 0x234]
call fcn.004111a3
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x43b8c2
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x234]
call fcn.004111a3
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x43b8e3
lea eax, [ebp - 0x234]
push eax
call fcn.0043b59e
mov byte [ebp - 4], 1
push ebx
push esi
lea ecx, [ebp - 0x234]
call fcn.0041103b
mov byte [ebp - 4], bl
push ebx
push esi
lea ecx, [ebp + 8]
call fcn.0041103b
or dword [ebp - 4], 0xffffffff
push ebx
push esi
lea ecx, [ebp + 0x24]
call fcn.0041103b
xor eax, eax
call fcn.0044739e
ret 0x3c

Function at 0x43b924
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
jne 0x43b93a
xor al, al
jmp 0x43b9d2
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43b946
sub eax, edx
sar eax, 1
inc eax
push eax
push edi
call fcn.00447b0d
cmp dword [esi + 0x14], 8
pop ecx
pop ecx
jb 0x43b969
mov eax, dword [esi]
jmp 0x43b96b
mov eax, esi
push eax
push edi
call fcn.004235e0
pop ecx
pop ecx
test eax, eax
je 0x43b9cf
mov ecx, dword [esi + 0x10]
push ebx
push 0x20
lea esi, [eax + ecx*2]
pop ebx
jmp 0x43b992
cmp ax, bx
je 0x43b98f
cmp ax, 0x3d
jne 0x43b99a
add esi, 2
movzx eax, word [esi]
test ax, ax
jne 0x43b984
cmp word [esi], 0x22
jne 0x43b9a6
push 0x22
pop ebx
add esi, 2
push ebx
push esi
call fcn.004238ab
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x43b9ba
xor eax, eax
mov word [edi], ax
mov ecx, dword [ebp + 0xc]
push esi
call fcn.00410cec
test edi, edi
je 0x43b9ca
mov word [edi], bx
mov al, 1
pop ebx
jmp 0x43b9d1
xor al, al
pop edi
pop esi
pop ebp
ret 8
Function at 0x43bb91
Capabilities:
Get common file path

Disassembly:
push 0x258
mov eax, 0x454431
call fcn.0044730c
mov dword [ebp - 0x264], ecx
mov eax, dword [ebp + 8]
and dword [ebp - 0x260], 0
and dword [ebp - 0x228], 0
push 7
pop edi
mov dword [ebp - 0x258], eax
xor eax, eax
mov esi, 0x40df5c
push esi
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x224], edi
mov word [ebp - 0x238], ax
call fcn.00410cec
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x240], edi
xor eax, eax
xor edi, edi
push 0x405de0
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x244], edi
mov word [ebp - 0x254], ax
call fcn.00410cec
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x264]
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.0043b924
mov byte [ebp - 0x259], al
mov byte [ebp - 4], bl
push edi
push ebx
lea ecx, [ebp - 0x254]
call fcn.0041103b
cmp byte [ebp - 0x259], 0
je 0x43bcb6
cmp dword [ebp - 0x228], edi
jne 0x43bc6c
push 0x405f20
call fcn.0043b59e
mov ecx, dword [ebp - 0x258]
push esi
call fcn.00410d1a
jmp 0x43bd41
cmp dword [ebp - 0x224], 8
mov eax, dword [ebp - 0x238]
jae 0x43bc81
lea eax, [ebp - 0x238]
push 4
push eax
call fcn.00422ca6
pop ecx
pop ecx
test eax, eax
je 0x43bc9f
push 0x405eb8
call fcn.0043b59e
push esi
jmp 0x43bd36
mov ecx, dword [ebp - 0x258]
lea eax, [ebp - 0x238]
push eax
call fcn.0042eb2a
jmp 0x43bd41
xor eax, eax
push 0x208
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push edi
push eax
call fcn.00427b40
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x43bcef
sub eax, edx
sar eax, 1
mov ecx, 0x104
sub ecx, eax
push ecx
push 0x405df4
lea eax, [ebp - 0x21c]
push eax
call fcn.0041128f
lea eax, [ebp - 0x21c]
push 4
push eax
call fcn.00422ca6
pop ecx
pop ecx
test eax, eax
jne 0x43bc8f
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0x258]
call fcn.00410d1a
mov dword [ebp - 0x260], ebx
mov byte [ebp - 4], 0
push edi
push ebx
lea ecx, [ebp - 0x238]
call fcn.0041103b
mov eax, dword [ebp - 0x258]
call fcn.0044739e
ret 4

Function at 0x43be72
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
xor ecx, ecx
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 4
jb 0x43be94
mov eax, dword [eax]
lea edx, [ebp - 0xc]
push edx
lea edx, [ebp - 8]
push edx
lea edx, [ebp - 4]
push edx
push ecx
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43bebc
cmp dword [ebp - 4], 4
jne 0x43bebc
mov eax, dword [ebp - 8]
jmp 0x43bebe
xor eax, eax
leave
ret 8
Function at 0x43c22a
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x34
mov eax, 0x4545a1
call fcn.0044730c
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 1
cmp dword [esi + 0x14], 8
jb 0x43c271
mov eax, dword [esi]
jmp 0x43c273
mov eax, esi
lea ecx, [ebp - 0x38]
push ecx
push ebx
lea ecx, [ebp - 0x40]
push ecx
push ebx
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x43c2fd
mov eax, dword [ebp - 0x38]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00422e4e
pop ecx
mov dword [ebp - 0x34], eax
cmp eax, ebx
jne 0x43c2b9
mov ecx, dword [ebp - 0x30]
push 0x40df5c
call fcn.00410d1a
jmp 0x43c312
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx + ecx + 2]
push ecx
push ebx
push eax
call fcn.00427b40
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x43c2d3
mov esi, dword [esi]
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x34]
lea eax, [ebp - 0x40]
push eax
push ebx
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x43c330
cmp dword [ebp - 0x40], 1
jne 0x43c330
push dword [ebp - 0x34]
lea ecx, [ebp - 0x2c]
call fcn.00410cec
push dword [ebp - 0x34]
call fcn.00422e5e
pop ecx
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
call fcn.0042eb2a
xor eax, eax
inc eax
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], bl
push ebx
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041103b
mov eax, dword [ebp - 0x30]
call fcn.0044739e
ret 0xc
push dword [ebp - 0x34]
call fcn.00422e5e
mov ecx, dword [ebp - 0x30]
mov dword [esp], 0x40df5c
call fcn.00410d1a
jmp 0x43c312

Function at 0x43d51f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 8]
xor edi, edi
mov ebx, ecx
mov dword [ebp - 4], edi
call fcn.0043b9dc
cmp eax, edi
jne 0x43d5b8
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
mov dword [ebp - 8], 4
mov dword [ebp + 8], edi
jb 0x43d558
mov eax, dword [eax]
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp + 8]
push ecx
push edi
push eax
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
lea eax, [ebp + 0x10]
push eax
mov ecx, ebx
call fcn.0043b75e
test eax, eax
je 0x43d59a
xor eax, eax
lea edi, [ebp + 0x17]
stosb byte es:[edi], al
mov al, byte [ebp + 0x17]
mov byte [ebp + 0x17], al
push 0x45aa00
lea eax, [ebp + 0x17]
push eax
call fcn.0042570e
cmp esi, 2
jne 0x43d5ac
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
xor eax, eax
jmp 0x43d5c9
cmp esi, edi
jne 0x43d580
cmp dword [ebp + 8], 4
je 0x43d5c6
jmp 0x43d580
cmp eax, 2
jne 0x43d580
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4417ec
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x461070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, 0xfe
push esi
mov word [ebp - 0x31c], ax
xor ebx, ebx
lea eax, [ebp - 0x31a]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x440], edi
call fcn.00427b40
xor eax, eax
push esi
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push ebx
push eax
call fcn.00427b40
xor eax, eax
push esi
mov word [ebp - 0x11c], ax
lea eax, [ebp - 0x11a]
push ebx
push eax
call fcn.00427b40
add esp, 0x24
push 0x7f
push 0x7f
push 0x7f
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x31c]
push eax
mov dword [ebp - 0x448], ebx
call fcn.0042fffb
mov dword [ebp - 0x43c], eax
cmp eax, 5
je 0x4419bc
cmp eax, 8
je 0x4419bc
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edx, edx
xor esi, esi
stosd dword es:[edi], eax
cmp word [ebp - 0x11c], bx
je 0x4418e6
lea ecx, [ebp - 0x11c]
push ecx
call fcn.0044179f
test eax, eax
je 0x4418d9
mov ax, word [ecx]
mov word [ebp + esi*2 - 0x1c], ax
inc esi
cmp esi, 0xa
je 0x4418e6
inc edx
lea ecx, [ebp + edx*2 - 0x11c]
cmp word [ecx], bx
jne 0x4418c1
cmp dword [ebp - 0x43c], 0x10
je 0x4419b1
lea eax, [ebp - 0x1c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4418f9
sub eax, edx
sar eax, 1
cmp eax, ebx
jbe 0x441918
lea eax, [ebp - 0x1c]
push eax
call fcn.00422e89
pop ecx
jmp 0x44191a
xor eax, eax
mov edi, dword [ebp - 0x440]
push 4
pop ecx
mov dword [edi + 0xc], eax
cmp dword [ebp - 0x43c], ecx
jne 0x4419f5
cmp eax, 6
jne 0x4419f5
lea eax, [ebp - 0x43c]
push eax
push 0x20019
push ebx
push 0x408b58
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x43c], ebx
mov dword [ebp - 0x444], ecx
mov dword [ebp - 0x440], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4419f5
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x440]
push eax
push ebx
push ebx
push 0x408bd0
push dword [ebp - 0x43c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4419a3
inc eax
cmp dword [ebp - 0x440], eax
jne 0x4419a3
mov dword [edi + 0x14], eax
push dword [ebp - 0x43c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4419f5
mov eax, dword [ebp - 0x440]
mov dword [eax + 0xc], ebx
jmp 0x4419f5
mov esi, 0x11c
push esi
lea eax, [ebp - 0x438]
push ebx
push eax
call fcn.00427b40
add esp, 0xc
lea eax, [ebp - 0x438]
push eax
mov dword [ebp - 0x438], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
movzx ecx, word [ebp - 0x324]
neg eax
sbb eax, eax
and eax, ecx
mov dword [edi + 0xc], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004224f9
leave
ret
Function at 0x4429ea
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
lea esi, [ecx + 0x4c]
cmp dword [esi + 0x14], 8
push edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], 1
mov dword [ebp - 0x10], 0x34
jb 0x442a13
mov edx, dword [esi]
jmp 0x442a15
mov edx, esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ecx + 8]
lea edi, [ecx + 0xa0]
lea ecx, [ebp - 0x10]
push ecx
push eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [edi]
call ebx
mov dword [ebp - 0x18], eax
cmp eax, 2
jne 0x442a61
push 0x34
push 0
push dword [ebp - 0xc]
call fcn.00427b40
push 0x19
push 0x40553c
push 0x1a
push dword [ebp - 0xc]
call fcn.00423bd1
add esp, 0x1c
jmp 0x442ab2
test eax, eax
jne 0x442a6b
cmp dword [ebp - 8], 1
je 0x442ab2
and dword [ebp - 0x14], 0
cmp dword [ebp - 8], 4
jne 0x442a90
cmp dword [esi + 0x14], 8
jb 0x442a7d
mov esi, dword [esi]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push 0
push esi
push dword [edi]
call ebx
cmp dword [ebp - 0x18], 0
jne 0x442aba
push 0xa
push dword [ebp - 0xc]
push dword [ebp - 0x14]
call fcn.004429c2
add esp, 0xc
cmp dword [ebp - 8], 1
je 0x442ab2
cmp dword [ebp - 8], 4
jne 0x442ada
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
push 0x34
push 0
push dword [ebp - 0xc]
call fcn.00427b40
push 0x19
push 0x40553c
push 0x1a
push dword [ebp - 0xc]
call fcn.00423bd1
add esp, 0x1c
mov ecx, dword [ebp - 0x1c]
push edi
call fcn.0043b75e
xor eax, eax
lea edi, [ebp - 1]
stosb byte es:[edi], al
mov al, byte [ebp - 1]
mov byte [ebp - 1], al
push 0x45aa00
lea eax, [ebp - 1]
push eax
call fcn.0042570e
int3
Function at 0x44342f
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x461070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
xor edi, edi
push 0x208
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push edi
push eax
mov esi, ecx
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x214], 1
call fcn.00427b40
lea eax, [esi + 0x10]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x443484
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.0042250d
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x210]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
cmp ebx, edi
je 0x443548
push ebx
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x220], edi
call fcn.00422e4e
pop ecx
mov dword [ebp - 0x218], eax
cmp eax, edi
jne 0x4434da
xor eax, eax
jmp 0x44355a
push eax
push ebx
push edi
lea eax, [ebp - 0x210]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x443534
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x40df60
push dword [ebp - 0x218]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x443534
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax + 8]
mov dword [esi + 0x80], ecx
mov eax, dword [eax + 0xc]
mov dword [esi + 0x84], eax
lea eax, [esi + 0x48]
push eax
mov ecx, esi
call fcn.00443397
jmp 0x44353a
mov dword [ebp - 0x214], edi
push dword [ebp - 0x218]
call fcn.00422e5e
pop ecx
jmp 0x443554
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004224f9
leave
ret
Function at 0x4437de
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
lea eax, [ebp - 0x10]
push eax
push 0x20019
xor esi, esi
push esi
push 0x403b10
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44396b
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push esi
mov edi, 0x403ad4
push edi
push dword [ebp - 0x10]
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call esi
test eax, eax
jne 0x443961
cmp dword [ebp - 0x1c], 7
jne 0x443961
push ebx
mov ebx, dword [ebp - 4]
shr ebx, 1
xor ecx, ecx
push 2
pop edx
mov eax, ebx
mul edx
seto cl
mov dword [ebp - 0x14], ebx
neg ecx
or ecx, eax
push ecx
call fcn.00422e4e
pop ecx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x443960
lea ecx, [ebp - 4]
push ecx
push eax
push 0
push 0
push edi
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x443957
lea eax, [ebx + ebx]
cmp dword [ebp - 4], eax
jne 0x443957
xor esi, esi
test ebx, ebx
je 0x443957
mov ebx, 0x409570
mov eax, dword [ebp - 0xc]
lea eax, [eax + esi*2]
mov dword [ebp - 8], eax
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4438a8
sub eax, ecx
sar eax, 1
lea ecx, [esi + eax + 1]
cmp ecx, dword [ebp - 0x14]
jae 0x443957
mov eax, dword [ebp - 0xc]
lea edi, [eax + ecx*2]
mov eax, edi
lea edx, [eax + 2]
mov si, word [eax]
add eax, 2
test si, si
jne 0x4438cf
push 4
sub eax, edx
push ebx
push dword [ebp - 8]
sar eax, 1
lea esi, [ecx + eax + 1]
call fcn.00447553
add esp, 0xc
test eax, eax
jne 0x4438f8
add dword [ebp - 8], 8
push 1
push 0x40956c
push edi
call fcn.00447553
add esp, 0xc
test eax, eax
jne 0x44390f
add edi, 2
push 4
push ebx
push edi
call fcn.00447553
add esp, 0xc
test eax, eax
jne 0x443922
add edi, 8
push dword [ebp + 8]
push edi
call fcn.004231bc
pop ecx
pop ecx
test eax, eax
jne 0x44394e
mov dword [ebp - 0x18], 1
cmp dword [ebp + 0xc], eax
je 0x44394e
push dword [ebp - 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0042250d
add esp, 0xc
cmp esi, dword [ebp - 0x14]
jb 0x44389c
push dword [ebp - 0xc]
call fcn.00422e5e
pop ecx
pop ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, dword [ebp - 0x18]
pop esi
leave
ret 0xc