joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f854
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00416d00
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00416d00
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x41f8cb
cmp word [ecx], dx
je 0x41f8cb
mov eax, dword [0x42d52c]
push edi
dec eax
push eax
push 0x42d418
call fcn.0041f7f3
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x41f93e
cmp word [eax], dx
je 0x41f93e
mov eax, dword [edi]
test eax, eax
je 0x41f8ef
cmp word [eax], dx
je 0x41f8ef
lea eax, [ebp - 0x10]
push eax
call fcn.0041f1d6
jmp 0x41f8f8
lea eax, [ebp - 0x10]
push eax
call fcn.0041f271
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x41f968
mov eax, dword [0x42d414]
push dword [ebp - 0x14]
dec eax
push eax
push 0x42d108
call fcn.0041f7f3
add esp, 0xc
test al, al
je 0x41f968
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x41f933
cmp word [eax], di
je 0x41f933
lea eax, [ebp - 0x10]
push eax
call fcn.0041f1d6
pop ecx
jmp 0x41f96a
lea eax, [ebp - 0x10]
push eax
call fcn.0041f271
jmp 0x41f930
mov eax, dword [edi]
test eax, eax
je 0x41f955
cmp word [eax], dx
je 0x41f955
lea eax, [ebp - 0x10]
push eax
call fcn.0041f18b
pop ecx
jmp 0x41f968
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x41fa33
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0041f678
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41fa33
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x41fa33
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x41fa33
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41f9c0
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00418c93
test ebx, ebx
je 0x41fa2e
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00418c93
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41fa33
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41fa33
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00424bc2
add esp, 0x10
xor eax, eax
inc eax
jmp 0x41fa35
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408e6f
leave
ret
Function at 0x426ad5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00426a51
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x426c44
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x426c44
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x426bf9
jg 0x426b31
test eax, eax
je 0x426bef
push 1
push 0x1000
call fcn.004185ff
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x426b54
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x426be6
push 0x8000
push ebx
call fcn.004136c6
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x426b7d
jg 0x426b78
cmp ecx, 0x1000
jb 0x426b7d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00417e65
add esp, 0x10
cmp eax, 0xffffffff
je 0x426bc2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x426b78
jl 0x426ba9
test ecx, ecx
jne 0x426b6a
push dword [ebp - 0xc]
push ebx
call fcn.004136c6
push esi
call fcn.00418081
add esp, 0xc
xor ebx, ebx
jmp 0x426c52
cmp byte [edi + 0x24], 0
je 0x426bd9
cmp dword [edi + 0x20], 5
jne 0x426bd9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x426be4
mov ebx, dword [edi + 0x18]
jmp 0x426be6
xor ebx, ebx
push esi
call fcn.00418081
pop ecx
jmp 0x426c52
test ecx, ecx
jg 0x426bbb
jl 0x426bf9
test eax, eax
jae 0x426bbb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041a1d8
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x426c19
cmp byte [edi + 0x1c], 0
je 0x426bbb
jmp 0x426c4a
push ebx
call fcn.0041d64e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x426bbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x426c52
cmp byte [edi + 0x1c], 0
je 0x426c4f
mov ebx, dword [edi + 0x18]
jmp 0x426c52
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041a1d8
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x427e20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x427e4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x427e4d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4013e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x494d4a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4c0760]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.0045ece7
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x401486
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.0045fc7f
push 0x4bde18
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.00466c44
push edi
push esi
call fcn.0045e9d2
add esp, 8
mov eax, esi
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.0045fbcc
mov esp, ebp
pop ebp
ret 4

Function at 0x401a20
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x494dd8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x4c0760]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
push dword [ebp + 0x10]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.00406950
push dword [ebp + 0xc]
lea eax, [esp + 0x28]
push dword [ebp + 8]
push eax
call fcn.00401950
add esp, 0x24
mov dword [esp + 0x30], 0
cmp dword [eax + 0x14], 0x10
jb 0x401a91
mov eax, dword [eax]
mov dword [esp + 8], eax
mov ecx, esi
lea eax, [esp + 8]
push eax
call fcn.0045fc7f
cmp dword [esp + 0x20], 0x10
mov dword [esi], vtable.std::runtime_error.0
jb 0x401aba
push dword [esp + 0xc]
call fcn.0046080a
add esp, 4
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov eax, esi
mov dword [esi], vtable.std::_System_error.0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4036a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4c0760]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], edi
mov edx, dword [edi]
cmp edx, 7
jl 0x40373d
mov eax, edx
mov esi, 0xc
mov ecx, eax
add eax, eax
sar ecx, 0xb
imul ecx, ecx, 0x1f25
xor eax, ecx
dec esi
jne 0x4036c6
shl edx, 0xc
or edx, eax
mov dword [ebp - 0x14], edx
test edx, 0xfffc0000
jne 0x40374e
mov dword [ebp - 8], esi
jmp 0x4036f0
mov eax, edx
mov ecx, esi
sar eax, cl
mov ecx, dword [edi + 4]
and al, 1
mov byte [ebp - 0x10], al
lea edi, [esi - 0xb]
mov eax, 0xaaaaaaab
mul esi
mov esi, dword [ebp - 0x10]
mov ebx, edx
shr ebx, 1
push esi
push ebx
lea eax, [ebx + ebx*2]
sub ecx, eax
add edi, ecx
mov ecx, dword [ebp - 0xc]
push edi
call fcn.004039e0
push esi
push edi
mov edi, dword [ebp - 0xc]
mov ecx, edi
push ebx
call fcn.004039e0
mov esi, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
inc esi
mov dword [ebp - 8], esi
cmp esi, 0x12
jl 0x4036f0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045fbcc
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
mov dword [ebp - 8], str.Assertion_error
push eax
lea ecx, [ebp - 0x20]
call fcn.0045fc7f
push 0x4bdf60
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], vtable.std::logic_error.0
push eax
call fcn.00466c44
int3

Function at 0x404f90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4c0760]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, 7
movzx esi, dl
push edi
xor ebx, ebx
mov dword [ebp - 8], eax
movzx edi, cl
mov cl, al
mov edx, esi
shr edx, cl
mov eax, ebx
and edx, 1
sar eax, 7
imul eax, eax, 0x11d
add ebx, ebx
imul edx, edi
xor edx, eax
mov eax, dword [ebp - 8]
xor ebx, edx
dec eax
mov dword [ebp - 8], eax
jns 0x404fb3
test ebx, 0xffffff00
jne 0x404ff4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045fbcc
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
mov dword [ebp - 8], str.Assertion_error
push eax
lea ecx, [ebp - 0x14]
call fcn.0045fc7f
push 0x4bdf60
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], vtable.std::logic_error.0
push eax
call fcn.00466c44
int3
Function at 0x40ade0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495590
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4c0760]
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
mov edi, ecx
cmp dword [edi + 0x30], 0
je 0x40af15
push dword [edi + 0x38]
xorps xmm0, xmm0
lea ecx, [ebp - 0x3c]
mov edx, 0x4a6b7d
movq qword [ebp - 0x1c], xmm0
movdqu xmmword [ebp - 0x3c], xmm0
movdqu xmmword [ebp - 0x2c], xmm0
call fcn.00402880
add esp, 4
mov dword [ebp - 4], 0
lea edx, [edi + 0x20]
mov byte [ebp - 4], 1
cmp dword [edx + 0x14], 0x10
jb 0x40ae55
mov edx, dword [edx]
push dword [edi + 0x38]
lea ecx, [ebp - 0x6c]
call fcn.00402880
add esp, 4
mov esi, eax
mov byte [ebp - 4], 2
mov ecx, dword [esi]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [esi + 4]
mov dword [ebp - 0x38], ecx
mov ecx, dword [esi + 8]
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x2c]
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x30], eax
lea eax, [esi + 0x10]
push eax
call fcn.0040b610
lea eax, [esi + 0x1c]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040b610
lea ecx, [ebp - 0x6c]
call fcn.00402920
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.0040af40
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x3d], al
call fcn.00402920
mov al, byte [ebp - 0x3d]
jmp 0x40af17
xor al, al
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.0045fbcc
mov esp, ebp
pop ebp
ret
Function at 0x40c550
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4956e8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4c0760]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x4c0760]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x40c6a4
cmp byte [ebx + 0x45], 0
je 0x40c6a4
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x40c5b0
xor al, al
jmp 0x40c6a6
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
mov dword [esp + 0x2c], ecx
cmp ecx, 0x10
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 8
cmovae eax, dword [esp + 0x18]
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x40c5f0
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x18]
cmovae edi, dword [esp + 0x18]
lea esi, [esp + 0x18]
cmovae esi, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40c631
dec eax
je 0x40c635
sub eax, 2
je 0x40c68b
xor bl, bl
jmp 0x40c68d
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x18]
cmp ecx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x40c66c
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.00461445
add esp, 0x10
cmp esi, eax
jne 0x40c62d
cmp byte [ebx + 0x45], 0
je 0x40c68b
test esi, esi
jne 0x40c5f0
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.0040c230
jmp 0x40c5f0
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x40c6a0
push dword [esp + 0x18]
call fcn.0046080a
add esp, 4
mov al, bl
jmp 0x40c6a6
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0045fbcc
mov esp, ebp
pop ebp
ret
Function at 0x40d4a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
xor esi, esi
mov eax, dword [edi + 0x20]
not eax
mov dword [edi + 0x20], eax
cmp dword [ebp + 0xc], esi
jbe 0x40d4ec
push ebx
xor ebx, ebx
lea esp, [esp]
mov ecx, dword [ebp + 8]
movzx edx, byte [esi + ecx]
mov cl, bl
shr edx, cl
inc ebx
xor edx, eax
shr eax, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor eax, edx
mov dword [edi + 0x20], eax
cmp ebx, 8
jl 0x40d4c0
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x40d4b7
pop ebx
not dword [edi + 0x20]
pop edi
pop esi
pop ebp
ret 8

Function at 0x40d6e0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4957de
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x4c0760]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x4c7928]
test al, 1
jne 0x40d763
or eax, 1
mov dword [0x4c7928], eax
mov dword [ebp - 4], 0
xor eax, eax
push 3
push 0x4a9070
mov ecx, 0x4c78dc
mov dword [0x4c78f0], 7
mov dword [0x4c78ec], 0
mov word [0x4c78dc], ax
call fcn.0040e3a0
push 0x49a2b0
call fcn.004607a9
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov eax, dword [0x4c7928]
test al, 2
jne 0x40d797
or eax, 2
mov dword [0x4c790c], 0xf
push 0x49a250
mov dword [0x4c7928], eax
mov dword [0x4c7908], 0
mov byte [0x4c78f8], 0
call fcn.004607a9
add esp, 4
mov ecx, dword [ebp + 0x10]
lea eax, [esi + 0x80]
push eax
lea eax, [esi + 0x68]
push eax
lea eax, [esi + 0x50]
push eax
lea eax, [esi + 0x38]
push eax
lea eax, [ecx + 0x38]
push eax
lea eax, [ecx + 0x34]
push eax
lea eax, [ecx + 0x30]
push eax
lea eax, [ecx + 0x18]
push eax
movzx eax, byte [esi + 0x1c]
lea edx, [esi + 0x20]
push ecx
push 0x4c78f8
push dword [ebp + 0xc]
mov ecx, 0x4c78dc
push eax
push dword [esi + 0x18]
push dword [ebp + 8]
push esi
call fcn.0040d8e0
add esp, 0x3c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40d800
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49580e
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4c0760]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x4c78f4]
test al, 1
jne 0x40d87f
or eax, 1
mov dword [0x4c78f4], eax
mov dword [ebp - 4], 0
xor eax, eax
push 4
push str.POST
mov ecx, 0x4c7910
mov dword [0x4c7924], 7
mov dword [0x4c7920], 0
mov word [0x4c7910], ax
call fcn.0040e3a0
push 0x49a310
call fcn.004607a9
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x14]
lea eax, [esi + 0x80]
push eax
lea eax, [esi + 0x68]
push eax
lea eax, [esi + 0x50]
push eax
lea eax, [esi + 0x38]
push eax
lea eax, [ecx + 0x38]
push eax
lea eax, [ecx + 0x34]
push eax
lea eax, [ecx + 0x30]
push eax
lea eax, [ecx + 0x18]
push eax
movzx eax, byte [esi + 0x1c]
lea edx, [esi + 0x20]
push ecx
push dword [ebp + 0x10]
mov ecx, 0x4c7910
push dword [ebp + 0xc]
push eax
push dword [esi + 0x18]
push dword [ebp + 8]
push esi
call fcn.0040d8e0
add esp, 0x3c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40eb40
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push str.click
push dword [edi]
call fcn.0046352b
add esp, 8
test eax, eax
jne 0x40ec2c
mov ecx, dword [edi + 0x108]
test ecx, ecx
je 0x40ec2c
mov eax, dword [ecx]
lea edx, [ebp - 0x210]
push esi
push edx
call dword [eax + 4]
mov esi, eax
mov ecx, edi
push 0x4a935c
lea eax, [ebp - 0x108]
push eax
call fcn.00420f7a
push esi
lea ecx, [ebp - 0x84]
push ecx
mov ecx, eax
call fcn.00420f5a
push 0x4a9364
lea ecx, [ebp - 0x18c]
push ecx
mov ecx, eax
call fcn.00420f7a
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x18c]
lea ecx, [ebp - 0x188]
pop esi
cmp eax, ecx
je 0x40ebdb
push eax
call fcn.00460424
add esp, 4
mov eax, dword [ebp - 0x84]
lea ecx, [ebp - 0x80]
cmp eax, ecx
je 0x40ebf1
push eax
call fcn.00460424
add esp, 4
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
cmp eax, ecx
je 0x40ec0a
push eax
call fcn.00460424
add esp, 4
mov eax, dword [ebp - 0x210]
lea ecx, [ebp - 0x20c]
cmp eax, ecx
je 0x40ec23
push eax
call fcn.00460424
add esp, 4
push edi
lea ecx, [ebx - 0x20]
call fcn.0040f9c0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x412ac0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495fdb
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x4c0760]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x19
xor eax, eax
mov dword [ebp - 0x1cc], 0
push str.CurrentMajorVersionNumber
lea ecx, [ebp - 0x1c8]
mov dword [ebp - 0x1b4], 7
mov dword [ebp - 0x1b8], 0
mov word [ebp - 0x1c8], ax
call fcn.0040e3a0
lea ecx, [ebp - 0x1a4]
mov dword [ebp - 4], 0
cmp dword [ebp - 0x1b4], 8
lea eax, [ebp - 0x1c8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegGetValueW]
cmovae eax, dword [ebp - 0x1c8]
push ecx
lea ecx, [ebp - 0x1ac]
mov dword [ebp - 0x1a8], 4
push ecx
lea ecx, [ebp - 0x1a8]
mov dword [ebp - 0x1ac], 0
push ecx
push 0x10
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x1a4], 4
call edi
mov ecx, eax
test ecx, ecx
je 0x412bb5
mov eax, dword [0x4c7560]
test eax, eax
je 0x412bb5
push ecx
push str.failed_to_get_the_major_version__error_is__d
push 3
push 0x151
push str.DataManager.cpp
push eax
call fcn.0041fb10
add esp, 0x18
push 0x19
push str.CurrentMinorVersionNumber
lea ecx, [ebp - 0x1c8]
call fcn.0040e3a0
cmp dword [ebp - 0x1b4], 8
lea ecx, [ebp - 0x1a4]
push ecx
lea ecx, [ebp - 0x1b0]
mov dword [ebp - 0x1b0], 0
push ecx
lea ecx, [ebp - 0x1a8]
mov dword [ebp - 0x1a4], 4
push ecx
push 0x10
lea eax, [ebp - 0x1c8]
cmovae eax, dword [ebp - 0x1c8]
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov ecx, eax
test ecx, ecx
je 0x412c3d
mov eax, dword [0x4c7560]
test eax, eax
je 0x412c3d
push ecx
push str.failed_to_get_the_minor_version__error_is__d
push 3
push 0x15b
push str.DataManager.cpp
push eax
call fcn.0041fb10
add esp, 0x18
push 0x12
push str.CurrentBuildNumber
lea ecx, [ebp - 0x1c8]
call fcn.0040e3a0
cmp dword [ebp - 0x1b4], 8
lea ecx, [ebp - 0x1a4]
push ecx
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0x1a4], 0xc8
push ecx
lea ecx, [ebp - 0x1a8]
push ecx
push 2
lea eax, [ebp - 0x1c8]
cmovae eax, dword [ebp - 0x1c8]
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov ecx, eax
test ecx, ecx
je 0x412cd1
mov eax, dword [0x4c7560]
test eax, eax
je 0x412cbb
push ecx
push str.failed_to_get_the_build_version__error_is__d
push 3
push 0x165
push str.DataManager.cpp
push eax
call fcn.0041fb10
add esp, 0x18
push 0x4aa00c
lea eax, [ebp - 0xd8]
push 0x64
push eax
call fcn.004619bf
add esp, 0xc
lea eax, [ebp - 0xd8]
push eax
push dword [ebp - 0x1b0]
lea eax, [ebp - 0x1a0]
push dword [ebp - 0x1ac]
push 0x4aa010
push 0x64
push eax
call fcn.004615c9
add esp, 0x18
lea edx, [ebp - 0x1a0]
mov ecx, esi
call fcn.0041e800
cmp dword [ebp - 0x1b4], 8
jb 0x412d1e
push dword [ebp - 0x1c8]
call fcn.0046080a
add esp, 4
mov eax, esi
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.0045fbcc
mov esp, ebp
pop ebp
ret
Function at 0x418310
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496960
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4c0760]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x48]
call fcn.0041eaf0
push str.DIN_Regular.otf
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00410850
add esp, 4
mov byte [ebp - 4], 2
cmp dword [ebp - 0x34], 8
jb 0x418370
push dword [ebp - 0x48]
call fcn.0046080a
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], 7
cmp dword [ebp - 0x14], 8
mov word [ebp - 0x48], ax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 0x38], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x418444
push 8
push 0x86
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test ebx, ebx
je 0x418411
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push 0x4aaeec
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
push ecx
push eax
mov dword [ebp - 0x2c], 0
call fcn.00461a1b
add esp, 0xc
test eax, eax
jne 0x418411
push dword [ebp - 0x2c]
push 1
push esi
push ebx
call fcn.00461445
push dword [ebp - 0x2c]
call fcn.00461533
add esp, 0x14
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x418444
mov eax, dword [0x4c7560]
test eax, eax
je 0x41847e
push str.failed_to_find_the_font_file
push 3
push 0x3f
jmp 0x418470
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x10
push eax
call dword [sym.imp.GDI32.dll_AddFontResourceExW]
test eax, eax
jne 0x41847e
mov eax, dword [0x4c7560]
test eax, eax
je 0x41847e
push str.failed_to_add_font
push 3
push 0x46
push str.installer.cpp
push eax
call fcn.0041fb10
add esp, 0x14
cmp dword [ebp - 0x14], 8
jb 0x41848f
push dword [ebp - 0x28]
call fcn.0046080a
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045fbcc
mov esp, ebp
pop ebp
ret