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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10018af3

Function at 0x100190c1
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002af90
push 0x1002af88
push str.FlsAlloc
push 0x1e
call fcn.10018f8b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100190f5
push dword [ebp + 8]
mov ecx, esi
call dword [0x100271a4]
call esi
jmp 0x100190fb
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001913f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002afa0
push 0x1002af98
push str.FlsGetValue
push 0x20
call fcn.10018f8b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10019176
push dword [ebp + 8]
mov ecx, esi
call dword [0x100271a4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x100198b1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10009940
mov eax, dword [0x1003604c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.100154ad
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100198f3
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10019a4f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10026350
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x100379d0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.1001a6ac
mov ecx, dword [esi*4 + 0x100379d0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x10019a48
cmp eax, dword [edi + ecx + 0x24]
jne 0x10019a48
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10019a48
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001a6ac
add esp, 0x14
test edx, edx
jl 0x10019a48
jg 0x100199be
test eax, eax
jb 0x10019a48
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10019a48
jl 0x100199d8
cmp dword [ebp - 0x1008], eax
ja 0x10019a48
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100199f6
test ebx, ebx
je 0x10019a2f
cmp ecx, edi
jae 0x10019a2f
mov al, byte [ecx]
cmp al, 0xd
jne 0x10019a10
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10019a1c
cmp byte [ecx + 1], 0xa
jne 0x10019a1c
inc ecx
jmp 0x10019a1c
movzx eax, al
movsx eax, byte [eax + 0x100362c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100199f6
cmp edx, ebx
jne 0x100199f6
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10019a4d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100088b8
leave
ret
Function at 0x10019b4a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100379d0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10019b8a
cmp byte [ebx], 0xa
jne 0x10019b8a
or byte [eax + edi + 0x28], 4
jmp 0x10019b8f
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x10019c8d
mov al, byte [edx]
cmp al, 0x1a
je 0x10019c6f
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x10019bbe
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x10019be3
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x10019bed
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x10019ba0
jmp 0x10019c8d
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10019c6a
cmp dword [ebp - 0xc], 0
je 0x10019c6a
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x100379d0]
test byte [eax + edi + 0x28], 0x48
je 0x10019c44
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10019c2f
mov byte [esi], dl
jmp 0x10019c40
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100379d0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10019c8d
cmp byte [ebp - 1], 0xa
jne 0x10019c53
cmp esi, ebx
jne 0x10019c53
mov byte [esi], 0xa
jmp 0x10019c8c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001a6ca
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10019c8d
mov byte [esi], 0xd
jmp 0x10019c8c
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x100379d0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10019c89
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10019c8d
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10019c96
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x100379d0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10019cd9
cmp word [esi], dx
jne 0x10019cd9
or byte [edi + eax + 0x28], 4
jmp 0x10019cde
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x10019e31
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x10019e11
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x10019d20
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10019d56
cmp eax, edx
jae 0x10019d62
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x10019cf8
jmp 0x10019e31
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10019e0d
cmp dword [ebp - 0x14], 0
je 0x10019e0d
mov eax, dword [ebx*4 + 0x100379d0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x10019de5
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x10019dae
mov word [esi], cx
jmp 0x10019de1
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x100379d0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x100379d0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x100379d0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x10019e31
pop ebx
cmp word [ebp - 4], bx
jne 0x10019df6
cmp esi, dword [ebp + 0xc]
jne 0x10019df6
mov word [esi], bx
jmp 0x10019e2e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1001a6ca
add esp, 0x10
cmp word [ebp - 4], bx
je 0x10019e31
push 0xd
jmp 0x10019e2a
mov ecx, dword [ebx*4 + 0x100379d0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10019e28
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10019e31
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001e981
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001ea1e
push ebx
push esi
call fcn.1001e94a
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001d6e1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001e9cb
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001ea1d
push edi
push eax
call fcn.100145bc
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001e9eb
call fcn.10014582
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001ea1c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001d6e1
add esp, 0x20
test eax, eax
jne 0x1001ea0a
push edi
call fcn.10014582
jmp 0x1001ea12
push ebx
call fcn.10014582
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x10025481
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]
push dword [ebp + 0xc]
push ebx
call fcn.100253fd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100255f9
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100255f9
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100255a8
jg 0x100254da
test eax, eax
je 0x1002559e
push 1
push 0x1000
call fcn.10018c8d
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10025500
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x10025595
push 0x8000
push ebx
call fcn.1002532e
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1002552c
jg 0x10025527
cmp ecx, 0x1000
jb 0x1002552c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100186af
add esp, 0x10
cmp eax, 0xffffffff
je 0x10025571
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 0x10025527
jl 0x10025558
test ecx, ecx
jne 0x10025519
push dword [ebp - 0xc]
push ebx
call fcn.1002532e
push esi
call fcn.10014582
add esp, 0xc
xor edi, edi
jmp 0x1002560a
cmp byte [edi + 0x24], 0
je 0x10025588
cmp dword [edi + 0x20], 5
jne 0x10025588
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10025593
mov edi, dword [edi + 0x18]
jmp 0x10025595
xor edi, edi
push esi
call fcn.10014582
pop ecx
jmp 0x1002560a
test ecx, ecx
jg 0x1002556a
jl 0x100255a8
test eax, eax
jae 0x1002556a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001a6ca
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100255cb
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1002556a
jmp 0x10025602
push ebx
call fcn.10022cb2
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1002556a
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x1002560a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x10025607
mov edi, dword [edi + 0x18]
jmp 0x1002560a
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1001a6ca
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10026150
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002617d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002617d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403ffd
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push edi
mov ebx, ecx
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x4040b4
push esi
push 1
push edi
call fcn.005f0fa8
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4040b1
push esi
push edi
push dword [ebp - 8]
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4040aa
and dword [ebp - 4], 0
lea eax, [ebp - 0xc]
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueW]
push eax
lea eax, [ebp - 4]
push eax
push 0x694b5c
push esi
call ebx
test eax, eax
je 0x4040aa
cmp dword [ebp - 4], 0
je 0x4040aa
push 0x14
call fcn.00431ddf
mov edi, eax
mov dword [ebp - 0x10], edi
pop ecx
test edi, edi
je 0x4040a4
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
mov dword [edi + 0xc], ecx
lea ecx, [ebp - 0x10]
push ecx
mov dword [edi + 8], eax
lea eax, [edi + 0x10]
and dword [eax], 0
push eax
push 0x694b58
push esi
mov dword [edi], vtable.cf::FileVersionInfo.0
mov dword [edi + 4], esi
call ebx
jmp 0x4040a6
xor edi, edi
mov eax, edi
jmp 0x4040b3
push esi
call fcn.005f0fb3
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4042b4
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push edi
mov edi, ecx
mov ax, word [edi + 8]
mov word [ebp - 0x18], ax
mov ax, word [edi + 0xc]
mov word [ebp - 0x16], ax
call esi
mov word [ebp - 0x14], ax
mov ebx, 0x4e4
mov ax, word [edi + 0xc]
mov word [ebp - 0x12], ax
mov ax, word [edi + 8]
mov word [ebp - 0x10], ax
mov word [ebp - 0xe], bx
call esi
mov word [ebp - 0xa], bx
xor esi, esi
mov word [ebp - 0xc], ax
mov ebx, 0x104
push dword [ebp + 8]
movzx eax, word [ebp + esi*2 - 0x16]
movzx ecx, word [ebp + esi*2 - 0x18]
add esi, 2
push eax
push ecx
push 0x694d68
push ebx
lea eax, [ebp - 0x224]
push ebx
push eax
call fcn.00403e80
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
add esp, 0x1c
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x224]
push eax
push dword [edi + 4]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x404356
cmp dword [ebp - 4], 0
jne 0x404366
cmp esi, 8
jb 0x404308
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
call fcn.00404417
mov al, 1
jmp 0x40435d
Function at 0x4051a1
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
mov esi, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40523c
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp + 8], eax
cmp dword [ebp - 8], ebx
jne 0x40522a
cmp eax, 0x200000
ja 0x40522a
add eax, 2
push eax
call fcn.0049a823
pop ecx
push ebx
mov esi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40522a
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
cmp eax, ecx
jne 0x40522a
mov byte [eax + esi], bl
mov eax, dword [ebp - 4]
mov byte [eax + esi + 1], bl
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov esi, ebx
mov eax, dword [ebp + 0x10]
inc ebx
mov dword [eax], ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x40523c
push esi
call fcn.0049a81e
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40a9d9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [edi], esi
je 0x40aa5f
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push esi
push str.ProgramPath
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], 1
je 0x40aa0f
cmp dword [ebp - 8], 2
jne 0x40aa5f
mov ecx, dword [ebp + 0xc]
call fcn.00406271
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
shr eax, 1
inc eax
push eax
call fcn.0040682a
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
push ecx
push eax
lea eax, [ebp - 8]
push eax
push esi
push str.ProgramPath
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40aa55
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, dword [ebp - 0xc]
xor esi, esi
shr eax, 1
inc esi
mov word [ecx + eax*2], dx
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
call fcn.00408f1c
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40aa7d
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, ecx
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp + 8]
push ebx
push edi
xor edi, edi
mov dword [ebp - 0x10], eax
mov dword [ecx], edi
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [edx], edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x40ab09
push esi
push ebx
call fcn.0049a823
pop ecx
mov esi, eax
push esi
push ebx
push dword [ebp - 4]
push dword [ebp - 0x10]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40aafd
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x694b58
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40aafd
cmp dword [ebp - 8], edi
je 0x40aafd
mov ecx, dword [ebp - 0xc]
inc edi
mov edx, dword [ebp - 0x14]
mov eax, dword [ecx + 8]
mov dword [edx], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
test esi, esi
je 0x40ab08
push esi
call fcn.0049a81e
pop ecx
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40abe3
Capabilities:
Get common file path

Disassembly:
mov eax, 0x60dbcd
call fcn.0060cc48
sub esp, 0x210
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
call fcn.00404f47
push eax
mov ecx, esi
call fcn.004065d8
push 0x208
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x10], 1
call fcn.005e26d0
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x21c]
mov ecx, esi
push eax
call fcn.004060f8
mov ecx, esi
call fcn.0040ab52
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40ad3b
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
mov esi, 0x11c
lea eax, [ebp - 0x11c]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.005e26d0
add esp, 0xc
mov dword [ebp - 0x11c], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x11c]
push eax
call esi
test eax, eax
jne 0x40ad92
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], 0x114
push eax
call esi
test eax, eax
je 0x40ae42
mov eax, dword [ebp - 0x10c]
sub eax, 1
je 0x40ae2d
sub eax, 1
jne 0x40ae42
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x114]
push 6
pop edx
cmp eax, edx
jne 0x40ade2
cmp ecx, 1
jne 0x40adcf
xor ebx, ebx
cmp byte [ebp - 2], cl
setne bl
add ebx, 8
jmp 0x40ae42
test ecx, ecx
jne 0x40ae15
cmp byte [ebp - 2], 1
push 9
pop ebx
push 7
pop eax
cmove ebx, eax
jmp 0x40ae42
cmp eax, 5
jne 0x40ae07
mov eax, dword [ebp - 0x114]
cmp eax, 2
jne 0x40adf6
push 5
jmp 0x40ae0e
cmp eax, 1
jne 0x40adff
mov ebx, edx
jmp 0x40ae42
test eax, eax
jne 0x40ae42
push 3
jmp 0x40ae0e
cmp eax, 4
ja 0x40ae11
push 4
pop ebx
jmp 0x40ae42
cmp eax, edx
jb 0x40ae42
cmp ecx, 2
jae 0x40ae1e
cmp eax, edx
jbe 0x40ae42
cmp byte [ebp - 2], 1
jne 0x40ae42
call fcn.0040ac67
mov ebx, eax
jmp 0x40ae42
mov eax, dword [ebp - 0x110]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb ebx, ebx
add ebx, 2
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40b52e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b542
test al, 0x10
jne 0x40b542
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x41298e
Capabilities:
Hash data with md5

Disassembly:
push esi
xor eax, eax
mov dword [ecx], 0x67452301
push 0x40
lea esi, [ecx + 0x58]
mov dword [ecx + 0x14], eax
push eax
push esi
mov dword [ecx + 0x10], eax
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
call fcn.005e26d0
add esp, 0xc
mov byte [esi], 0x80
pop esi
ret

Function at 0x413262
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x58], 0
jne 0x41329a
push 0x98
call fcn.00431ddf
mov esi, eax
mov dword [ebp - 4], esi
pop ecx
test esi, esi
je 0x41328d
mov ecx, esi
call fcn.0041298e
jmp 0x41328f
xor esi, esi
mov dword [edi + 0x58], esi
test esi, esi
jne 0x41329a
xor eax, eax
jmp 0x4132fd
push 0x696a84
push dword [ebp + 8]
call fcn.005e972e
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x413296
cmp dword [edi + 0x5c], 0
jne 0x4132d1
push 0xff
call fcn.0049a823
pop ecx
mov dword [edi + 0x5c], eax
jmp 0x4132d1
mov ecx, dword [edi + 0x58]
push eax
push dword [edi + 0x5c]
call fcn.004129c6
push esi
push 0xff
push 1
push dword [edi + 0x5c]
call fcn.005eed27
add esp, 0x10
test eax, eax
jne 0x4132c5
push esi
call fcn.005e5e1d
pop ecx
mov ecx, dword [edi + 0x58]
lea esi, [edi + 4]
push esi
call fcn.00412a63
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc