joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40716c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511a05
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], ebx
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x30], ebx
jb 0x4071be
mov eax, dword [eax]
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x34], eax
cmp eax, ebx
je 0x407252
xor ecx, ecx
mov dword [ebp - 0x38], ecx
cmp dword [ebp - 0x30], ebx
jle 0x40724b
mov ecx, dword [eax + ecx*4]
cmp ecx, ebx
je 0x40723c
xor edx, edx
mov eax, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
lea edi, [eax + 2]
mov edi, edi
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x4071fc
sub eax, edi
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040392d
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.0040728a
cmp dword [ebp - 0x18], 8
mov byte [ebp - 4], bl
jb 0x40723c
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00404f7d
add esp, 4
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
inc ecx
mov dword [ebp - 0x38], ecx
cmp ecx, dword [ebp - 0x30]
jl 0x4071de
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret
Function at 0x4081c2
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x513341
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x30], ebx
xor esi, esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
lea ecx, [ebp - 0x34]
push ecx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x34], ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x30], eax
cmp eax, ebx
jne 0x40823b
lea edx, [ebp - 0x48]
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
cmp edi, edx
je 0x4082f7
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
jmp 0x4082f7
xor ecx, ecx
mov dword [ebp - 0x38], ecx
cmp dword [ebp - 0x34], ebx
jle 0x4082b2
mov edx, dword [eax + ecx*4]
cmp edx, ebx
je 0x4082a0
xor eax, eax
mov word [ebp - 0x2c], ax
mov eax, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x408262
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x2c]
call fcn.0040392d
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.0040728a
cmp dword [ebp - 0x18], 8
mov byte [ebp - 4], bl
jb 0x4082a0
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00404f7d
add esp, 4
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
inc ecx
mov dword [ebp - 0x38], ecx
cmp ecx, dword [ebp - 0x34]
jl 0x408245
mov esi, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x48]
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
cmp edi, eax
je 0x4082d8
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
jmp 0x4082f7
cmp esi, ebx
je 0x4082f7
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x44]
push eax
lea ecx, [ebp - 0x3c]
push ecx
push edx
push esi
call fcn.00407612
push esi
call fcn.00404f7d
add esp, 0x14
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret
Function at 0x40965a
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x409741
cmp word [ebx], 0
je 0x409741
test edi, edi
je 0x409741
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x4096b5
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret 8
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
mov dword [ebp - 0x230], 0x22c
call fcn.00402e70
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40971d
lea esp, [esp]
lea edx, [ebp - 0x20c]
push ebx
push edx
call fcn.0040786d
add esp, 8
test eax, eax
jne 0x40970c
lea eax, [ebp - 0x228]
push eax
mov ecx, edi
call fcn.00409767
lea ecx, [ebp - 0x230]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4096ea
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [edi]
xor eax, eax
cmp edx, dword [edi + 4]
pop esi
pop edi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor al, al
pop ebx
call fcn.0040330b
mov esp, ebp
pop ebp
ret 8
Function at 0x409906
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x409a48
cmp dword [ebp + 0xc], 0
je 0x409a48
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp + 8]
push eax
push 0
push 0
push 1
push esi
mov dword [ebp + 8], 0
call ebx
test eax, eax
jne 0x409954
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x409954
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push edi
push ecx
call fcn.00405b75
add esp, 4
mov edi, eax
mov eax, dword [ebp + 8]
lea edx, [ebp + 8]
push edx
push eax
push edi
push 1
push esi
call ebx
test eax, eax
je 0x409a34
mov eax, dword [edi]
mov dword [ebp - 4], eax
test eax, eax
je 0x409a34
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x409a34
mov edx, dword [ebp + 0xc]
lea ecx, [ebp + 8]
push ecx
push 0
push 0
push 1
push edx
mov dword [ebp + 8], 0
call ebx
test eax, eax
jne 0x4099bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x409a29
mov eax, dword [ebp + 8]
push eax
call fcn.00405b75
mov edx, dword [ebp + 8]
add esp, 4
lea ecx, [ebp + 8]
push ecx
push edx
mov esi, eax
mov eax, dword [ebp + 0xc]
push esi
push 1
push eax
call ebx
test eax, eax
je 0x409a1a
mov ebx, dword [esi]
test ebx, ebx
je 0x409a1a
push ebx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x409a1a
mov ecx, dword [ebp - 4]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
cmp eax, 1
push edi
sete bl
call fcn.00409a6f
push esi
call fcn.00409a6f
add esp, 8
pop edi
mov al, bl
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
push edi
call fcn.00409a6f
push esi
call fcn.00409a6f
add esp, 8
pop edi
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
push edi
call fcn.00409a6f
add esp, 4
pop edi
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x409a84
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebx
mov ebx, dword [ebp + 0x10]
mov word [ebp - 0x20], ax
mov eax, edx
push esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409ac4
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x20]
call fcn.0040392d
mov eax, dword [ebp - 0x20]
mov esi, 8
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0xc], esi
jae 0x409af4
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
push ecx
push 0x20219
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x409b13
cmp dword [ebp - 0xc], esi
jmp 0x409b81
mov ecx, dword [ebp + 0x18]
lea edx, [ecx + ecx]
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x24]
push ecx
mov dword [ebp - 0x34], edx
lea edx, [ebp - 0x28]
push edx
push 0
push ebx
push eax
mov dword [ebp - 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x24]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x409b7d
mov eax, dword [ebp - 0x28]
cmp eax, 1
je 0x409b59
cmp eax, 2
jne 0x409b7d
cmp dword [ebp - 0xc], 8
jb 0x409b6b
mov edx, dword [ebp - 0x20]
push edx
call fcn.00404f7d
add esp, 4
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0xc], 8
jb 0x409b8f
mov eax, dword [ebp - 0x20]
push eax
call fcn.00404f7d
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 0x80004005
pop ebx
call fcn.0040330b
mov esp, ebp
pop ebp
ret
Function at 0x40ac67
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, ecx
push ebx
mov ebx, dword [eax]
cmp ebx, 0x10
je 0x40ac80
cmp ebx, 0x20
jne 0x40ae71
shr ebx, 2
mov dword [ebp - 8], ebx
mov edx, 4
cmp ebx, 4
jl 0x40ac92
mov edx, ebx
push edi
mov edi, dword [ebp + 8]
lea edx, [edx*4 + 0x1c]
mov dword [ebp - 4], edx
test edi, edi
je 0x40ae70
mov dword [edi], 0x10
mov dword [edi + 4], edx
add edi, 8
xor edx, edx
push esi
test ebx, ebx
jle 0x40acf0
add eax, 5
jmp 0x40acc7
movzx ecx, byte [eax - 1]
movzx esi, byte [eax]
shl ecx, 8
or ecx, esi
movzx esi, byte [eax + 1]
shl ecx, 8
or ecx, esi
movzx esi, byte [eax + 2]
shl ecx, 8
or ecx, esi
mov dword [edi + edx*4], ecx
inc edx
add eax, 4
cmp edx, ebx
jl 0x40acc7
mov ecx, dword [edi + edx*4 - 4]
mov esi, ebx
cmp ebx, dword [ebp - 4]
jge 0x40ade4
mov dword [ebp + 8], 0
mov dword [ebp - 0xc], edi
mov eax, esi
cdq
idiv ebx
test edx, edx
jne 0x40ad73
mov eax, dword [ebp + 8]
mov edx, ecx
shr edx, 0x10
and edx, 0xff
movzx ebx, byte [edx + 0x524470]
cdq
idiv dword [ebp - 8]
mov edx, ecx
shr edx, 8
and edx, 0xff
movzx eax, byte [eax + 0x524450]
xor ebx, eax
movzx eax, byte [edx + 0x524470]
shl ebx, 8
mov edx, ecx
xor ebx, eax
and edx, 0xff
movzx eax, byte [edx + 0x524470]
shl ebx, 8
shr ecx, 0x18
movzx ecx, byte [ecx + 0x524470]
xor ebx, eax
shl ebx, 8
xor ecx, ebx
mov ebx, dword [ebp - 8]
jmp 0x40adc9
cmp ebx, 6
jle 0x40adc9
cmp edx, 4
jne 0x40adc9
mov edx, ecx
shr edx, 0x10
and edx, 0xff
movzx eax, byte [edx + 0x524470]
mov edx, ecx
shr edx, 0x18
movzx edx, byte [edx + 0x524470]
shl edx, 8
xor eax, edx
mov edx, ecx
shr edx, 8
and edx, 0xff
movzx edx, byte [edx + 0x524470]
shl eax, 8
and ecx, 0xff
movzx ecx, byte [ecx + 0x524470]
xor eax, edx
shl eax, 8
xor ecx, eax
mov eax, dword [ebp - 0xc]
xor ecx, dword [eax]
inc dword [ebp + 8]
mov dword [edi + esi*4], ecx
inc esi
add eax, 4
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 4]
jl 0x40ad09
xor edx, edx
dec esi
js 0x40ae6f
mov eax, dword [ebp - 4]
lea ecx, [edi + eax*4]
mov dword [ebp + 8], ecx
nop
mov ecx, dword [edi + esi*4]
cmp edx, 4
jl 0x40ae5e
cmp esi, 4
jl 0x40ae5e
mov eax, ecx
shr eax, 0x10
and eax, 0xff
movzx eax, byte [eax + 0x524470]
mov eax, dword [eax*4 + 0x525a70]
mov ebx, ecx
shr ebx, 8
and ebx, 0xff
movzx ebx, byte [ebx + 0x524470]
xor eax, dword [ebx*4 + 0x525e70]
mov ebx, ecx
shr ebx, 0x18
movzx ebx, byte [ebx + 0x524470]
xor eax, dword [ebx*4 + 0x525670]
and ecx, 0xff
movzx ecx, byte [ecx + 0x524470]
xor eax, dword [ecx*4 + 0x526270]
jmp 0x40ae60
mov eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
add ecx, 4
inc edx
dec esi
mov dword [ebp + 8], ecx
jns 0x40adf7
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40b540
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x40b6a9
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x40b6a9
mov eax, 0xaaaaaaab
mul ebx
shr edx, 1
lea ecx, [edx + edx*2]
mov eax, ebx
sub eax, ecx
mov ecx, 0
setne cl
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], eax
add ecx, edx
add ecx, ecx
add ecx, ecx
mov dword [ebp - 0xc], ecx
test esi, esi
jne 0x40b593
pop esi
pop edi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
test edx, edx
je 0x40b60e
add edi, 2
mov dword [ebp - 4], edx
nop
movzx edx, byte [edi - 2]
shr edx, 2
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], al
movzx edx, byte [edi - 2]
movzx eax, byte [edi - 1]
and edx, 3
shr eax, 4
shl edx, 4
or edx, eax
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 1], dl
movzx eax, byte [edi - 1]
movzx edx, byte [edi]
and eax, 0xf
add eax, eax
add eax, eax
shr edx, 6
or eax, edx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 2], al
movzx edx, byte [edi]
and edx, 0x3f
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 3], al
add ecx, 4
add edi, 3
dec dword [ebp - 4]
jne 0x40b5a0
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 8]
dec eax
je 0x40b670
dec eax
jne 0x40b69f
movzx eax, byte [edi + ebx - 2]
lea edx, [edi + ebx - 2]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], al
movzx edx, byte [edx]
movzx eax, byte [edi + ebx - 1]
lea ebx, [edi + ebx - 1]
and edx, 3
shl edx, 4
shr eax, 4
or edx, eax
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 1], dl
movzx eax, byte [ebx]
and eax, 0xf
movzx edx, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov eax, dword [ebp - 0xc]
mov byte [ecx + esi + 2], dl
mov byte [ecx + esi + 3], 0x3d
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, byte [edi + ebx - 1]
shr eax, 2
movzx edx, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], dl
movzx eax, byte [edi + ebx - 1]
and eax, 3
shl eax, 4
movzx edx, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 1], dl
mov word [ecx + esi + 2], 0x3d3d
mov eax, dword [ebp - 0xc]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4111c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
lea edx, [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push esi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0xc]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x411232
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x411201
cmp eax, 2
jne 0x41121c
mov eax, dword [ebp + 0x10]
test esi, esi
je 0x41122c
test eax, eax
je 0x411227
test al, 1
jne 0x41121c
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x41122c
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x41280d
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x515e1c
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x48]
push eax
call fcn.0040fd1b
push str.wps.exe
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov dword [ebp - 4], 0
call fcn.00405b23
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x412860
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
sete bl
cmp dword [ebp - 0x18], 8
jb 0x41287e
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00404f7d
add esp, 4
xor eax, eax
cmp dword [ebp - 0x34], 8
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
jb 0x4128a4
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00404f7d
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret
Function at 0x41639d
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5152f7
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor ebx, ebx
test byte [edi + 8], 0x20
mov dword [edi + 0xcc], ebx
je 0x4165ca
cmp byte [edi + 0x90], bl
jne 0x4165ca
cmp byte [edi], bl
je 0x4165ca
mov eax, dword [0x55bac4]
push eax
push esi
call fcn.00407844
add esp, 8
test eax, eax
je 0x416445
mov ecx, dword [0x55bac8]
push ecx
push esi
call fcn.00407844
add esp, 8
test eax, eax
je 0x416445
mov edx, dword [0x55bacc]
push edx
push esi
call fcn.00407844
add esp, 8
test eax, eax
je 0x416445
mov eax, dword [0x55bad0]
push eax
push esi
call fcn.00407844
add esp, 8
test eax, eax
jne 0x416452
call fcn.00409178
test al, al
jne 0x4165ca
lea ecx, [ebp - 0x80]
push ecx
call fcn.0043feb4
add esp, 4
mov eax, 7
xor edx, edx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
push 1
push 0x5240d8
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00405221
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41649d
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.00405221
mov eax, dword [ebp - 0x48]
mov esi, 8
cmp dword [ebp - 0x34], esi
jae 0x4164c6
lea eax, [ebp - 0x48]
push eax
sub esp, 0x1c
lea edx, [ebp - 0x80]
mov ecx, esp
mov dword [ebp - 0x94], esp
push edx
call fcn.00441a9c
lea eax, [ebp - 0x64]
push eax
call fcn.004339c8
add esp, 0x24
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00403fa0
lea ecx, [ebp - 0x64]
call fcn.0040dcc2
xor eax, eax
push 0x40
lea ecx, [ebp - 0xd4]
push ebx
push ecx
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0xd8], 0x44
call fcn.00402e70
mov edx, 1
add esp, 0xc
mov dword [ebp - 0xac], 1
mov word [ebp - 0xa8], dx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov eax, dword [ebp - 0x1c]
inc eax
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.00431419
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x41656d
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x58]
push eax
push 0x5279c0
inc ecx
push ecx
push esi
call fcn.0040c420
add esp, 0x10
lea edx, [ebp - 0x90]
push edx
lea eax, [ebp - 0xd8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea ecx, [ebp - 0x58]
mov dword [edi + 0xcc], 2
call fcn.00429553
lea ecx, [ebp - 0x48]
call fcn.0040dcc2
lea ecx, [ebp - 0x2c]
call fcn.0040dcc2
lea ecx, [ebp - 0x80]
call fcn.0040dcc2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret
Function at 0x4167f1
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x515343
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
fldz
mov edi, ecx
fcomp qword [edi + 0x28]
fnstsw ax
test ah, 5
jnp 0x416a68
test byte [0x55f868], 1
jne 0x416862
or dword [0x55f868], 1
push 0x527a10
push str.KHostSplashShow_updateDPISetting
mov ecx, 0x55f86c
mov dword [ebp - 4], 0
call fcn.00416a83
mov dword [ebp - 4], 0xffffffff
mov al, byte [0x55f474]
test al, al
je 0x4168a3
mov eax, dword [0x55f86c]
mov ecx, 1
mov word [ebp - 0x23c], cx
mov cx, word [0x55f86e]
movzx edx, cx
mov word [ebp - 0x23a], ax
movzx eax, ax
push edx
push eax
push 1
mov word [ebp - 0x238], cx
call fcn.0043d253
add esp, 0xc
fld1
lea ecx, [ebp - 0x234]
fstp qword [edi + 0x28]
push ecx
mov dword [ebp - 4], 1
call fcn.004049de
add esp, 4
mov esi, 8
push esi
push str.qt.conf
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 2
call fcn.00405221
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x216]
push eax
mov word [ebp - 0x218], dx
call fcn.00402e70
mov eax, dword [ebp - 0x234]
add esp, 0xc
cmp dword [ebp - 0x220], esi
jae 0x41690a
lea eax, [ebp - 0x234]
push eax
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0x527b80
push str.DPIAware
push str.Support
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [ebp - 0x218]
push 0x5267c0
push edx
call fcn.00407844
add esp, 8
test eax, eax
je 0x4169a7
cmp dword [ebp - 0x220], esi
jb 0x41695b
mov eax, dword [ebp - 0x234]
push eax
call fcn.00404f7d
add esp, 4
mov dl, byte [0x55f474]
xor ecx, ecx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], cx
mov dword [ebp - 4], 0xffffffff
test dl, dl
je 0x416a68
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x23a]
mov edx, dword [ebp - 0x23c]
push eax
push ecx
push edx
jmp 0x416a60
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x416944
push str.SetProcessDPIAware
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4169fc
lea ecx, [ebp - 0x234]
call fcn.0040dcc2
mov al, byte [0x55f474]
mov dword [ebp - 4], 0xffffffff
test al, al
je 0x416a68
mov ecx, dword [ebp - 0x238]
mov edx, dword [ebp - 0x23a]
mov eax, dword [ebp - 0x23c]
push ecx
push edx
push eax
jmp 0x416a60
call eax
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push 0x58
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push esi
push 0
mov dword [ebp - 0x240], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
fild dword [ebp - 0x240]
lea ecx, [ebp - 0x234]
fdiv qword [0x527be8]
fstp qword [edi + 0x28]
call fcn.0040dcc2
mov cl, byte [0x55f474]
mov dword [ebp - 4], 0xffffffff
test cl, cl
je 0x416a68
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x23a]
mov ecx, dword [ebp - 0x23c]
push edx
push eax
push ecx
call fcn.0043d264
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret