joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100da714
Capabilities:
Resume thread

Disassembly:
push 0x9c
mov eax, 0x10116224
call fcn.10062c32
mov edi, ecx
mov dword [ebp - 0x98], edi
xor ebx, ebx
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
mov dword [ebp - 4], ebx
mov eax, dword [edi]
push ebx
mov esi, dword [eax + 4]
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call dword [0x1013f49c]
mov ecx, edi
call esi
mov dword [ebp - 0xa0], eax
test eax, eax
je 0x100da8ed
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1013f49c]
mov ecx, edi
call esi
mov edi, dword [eax]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x1013f49c]
mov ecx, dword [ebp - 0x98]
call esi
mov edx, edi
mov ecx, eax
call fcn.1007c0cb
mov edi, dword [ebp - 0x98]
cmp eax, 3
sete byte [ebp - 0x9c]
push dword [ebp - 0x9c]
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1013f49c]
mov ecx, edi
call esi
lea ecx, [ebp - 0x28]
mov edx, dword [eax + 8]
call fcn.10075c46
mov dword [ebp - 0xa8], eax
mov eax, ebx
mov dword [ebp - 0xa4], edx
and edx, 0x80
or eax, edx
jne 0x100da8b8
push 0x1003b41c
lea ecx, [ebp - 0x74]
call fcn.1007c0cb
mov dword [ebp - 0x5c], 0x2e6
mov byte [ebp - 4], 1
call fcn.1006c4b2
xor eax, eax
mov dword [ebp - 0x48], ebx
push 0x1003b390
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.1007c0cb
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.1007c0cb
mov esi, eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
mov ecx, esi
call fcn.1008145d
lea eax, [ebp - 0xa8]
mov ecx, esi
push eax
call fcn.100cf555
mov esi, eax
mov dword [ebp - 0x30], ebx
xor eax, eax
mov dword [ebp - 0x2c], 7
push 0x1001df4c
lea ecx, [ebp - 0x40]
mov word [ebp - 0x40], ax
call fcn.1007c0cb
push esi
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
push 1
lea ecx, [ebp - 0x74]
call fcn.10081090
lea ecx, [ebp - 0x40]
call fcn.1006af06
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x94], 0x10002e5c
call fcn.1006af06
lea ecx, [ebp - 0x58]
call fcn.1006af06
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], bl
call fcn.1006b804
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x1013f49c]
mov ecx, edi
call esi
test al, al
jne 0x100da8e7
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1013f49c]
mov ecx, edi
call esi
push dword [eax + 4]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov ebx, dword [ebp - 0xa0]
lea ecx, [ebp - 0x28]
call fcn.1006af06
mov eax, ebx
call fcn.10062bca
ret
Function at 0x100dae72
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x1c
mov eax, 0x1010bc06
call fcn.10062c32
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.100daef5
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100daedd
cmp eax, dword [esi + 0x10]
jne 0x100daea9
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.10080ada
test al, al
jne 0x100daedd
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x100daeb5
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100daedd
cmp eax, 0x10
je 0x100daedd
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.1007c0cb
lea ecx, [ebp - 0x28]
call fcn.1006af06
mov al, 1
jmp 0x100daee7
lea ecx, [ebp - 0x28]
call fcn.1006af06
xor al, al
call fcn.10062bca
ret 4
Function at 0x100e0a90
Capabilities:
Listen for remote procedure calls

Disassembly:
push 0x38
mov eax, 0x10116e08
call fcn.10062c32
mov edi, ecx
mov dword [ebp - 0x44], edi
mov ecx, dword [ebp + 0x10]
xor ebx, ebx
mov eax, dword [ebp + 0x18]
mov esi, ebx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x2c], 1
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], 0x10005b80
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], ebx
call fcn.1007f497
test al, al
jne 0x100e0b01
call fcn.1007c0cb
lea ecx, [ebp - 0x34]
cmp eax, 0x602
jb 0x100e0ae8
mov byte [ebp - 0x2c], 1
call fcn.1007c0cb
jmp 0x100e0af0
mov byte [ebp - 0x2c], bl
call fcn.100df9ee
test al, al
jne 0x100e0afb
mov edi, ebx
jmp 0x100e0c71
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x38], esi
push ecx
push ecx
push esi
push dword [ebp - 0x2c]
mov ecx, edi
sub esp, 0xc
call fcn.1007c0cb
mov edi, edx
mov ecx, ebx
mov esi, edi
and esi, 0x80
or ecx, esi
jne 0x100e0b28
mov ebx, eax
jmp 0x100e0c71
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 0x14], 8
jb 0x100e0b33
mov eax, dword [eax]
mov ecx, dword [ebp - 0x40]
cmp dword [ecx + 0x14], 8
jb 0x100e0b3e
mov ecx, dword [ecx]
push dword [ebp - 0x38]
push ecx
push ecx
push eax
call fcn.1007c0cb
mov esi, eax
test esi, esi
je 0x100e0b67
call fcn.100dfd33
mov edi, edx
or eax, esi
or edi, ebx
or ebx, eax
or edi, 0xf25
jmp 0x100e0c71
xor eax, eax
mov dword [ebp - 0x18], ebx
push 0x1002e188
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.1007c0cb
push 0x10
lea eax, [ebp - 0x28]
push eax
call fcn.1007c0cb
lea ecx, [ebp - 0x28]
mov esi, eax
mov edi, edx
call fcn.1006af06
mov edx, edi
mov ecx, ebx
and edx, 0x80
or ecx, edx
jne 0x100e0bb0
mov ebx, esi
jmp 0x100e0c71
xor eax, eax
mov dword [ebp - 0x18], ebx
push 0x1002e188
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.1007c0cb
push 9
lea eax, [ebp - 0x28]
push eax
call fcn.1007c0cb
lea ecx, [ebp - 0x28]
mov esi, eax
mov edi, edx
call fcn.1006af06
mov edx, edi
mov ecx, ebx
and edx, 0x80
or ecx, edx
je 0x100e0ba9
xor eax, eax
mov dword [ebp - 0x18], ebx
push 0x1002e188
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.1007c0cb
push 0xa
lea eax, [ebp - 0x28]
push eax
call fcn.1007c0cb
lea ecx, [ebp - 0x28]
mov esi, eax
mov edi, edx
call fcn.1006af06
mov edx, edi
mov ecx, ebx
and edx, 0x80
or ecx, edx
je 0x100e0ba9
mov eax, dword [ebp - 0x44]
push 1
push dword [eax + 8]
push dword [eax + 4]
call dword [sym.imp.RPCRT4.dll_RpcServerListen]
mov esi, eax
cmp esi, 0x6b1
je 0x100e0c6c
test esi, esi
je 0x100e0c6c
call fcn.100dfd33
mov edi, edx
or eax, esi
or edi, ebx
or ebx, eax
or edi, 0x2225
jmp 0x100e0c71
mov edi, 0x80
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 0x10005b80
call fcn.1007c0cb
mov eax, ebx
mov edx, edi
call fcn.10062bca
ret 0x24
Function at 0x100e2dea
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
push edi
cmp esi, 0x7ff80000
jbe 0x100e2e0e
lea edi, [esi - 0x7ff80000]
cmp esi, 0x80000000
jb 0x100e2e13
mov ebx, 0xfff80000
jmp 0x100e2e19
mov edi, 0x10000
lea ebx, [esi + 0x7ff80000]
mov edx, dword [0x1013dde4]
mov eax, dword [0x1013ddd0]
test edx, edx
jne 0x100e2e34
test eax, eax
je 0x100e2e47
mov edx, eax
mov dword [0x1013dde4], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x100e2e47
cmp ecx, edi
jb 0x100e2e47
cmp ecx, ebx
jbe 0x100e2ecb
mov edx, eax
test eax, eax
jmp 0x100e2e65
test edx, edx
je 0x100e2e60
mov eax, dword [edx + 8]
test eax, eax
je 0x100e2e60
cmp eax, edi
jb 0x100e2e60
cmp eax, ebx
jbe 0x100e2ecb
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x1013dde4], edx
jne 0x100e2e4d
and esi, 0xffff0000
mov ecx, edi
mov edx, esi
call fcn.1007c0cb
mov edx, eax
test edx, edx
jne 0x100e2e91
mov edx, ebx
mov ecx, esi
call fcn.1007c0cb
mov edx, eax
test edx, edx
je 0x100e2ef0
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x2a7
mov eax, dword [0x1013ddd0]
mov dword [edx + 4], eax
lea eax, [edx + 0xff60]
mov dword [0x1013dde4], edx
mov dword [0x1013ddd0], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x60
sub esi, 1
jne 0x100e2ebb
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, edi
jb 0x100e2ef0
cmp esi, ebx
ja 0x100e2ef0
mov ecx, dword [esi + 0x40]
push 0x60
push 0xcc
push esi
mov dword [edx + 8], ecx
call fcn.100638f0
add esp, 0xc
mov eax, esi
jmp 0x100e2ef2
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x100e2ded
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
push edi
cmp esi, 0x7ff80000
jbe 0x100e2e0e
lea edi, [esi - 0x7ff80000]
cmp esi, 0x80000000
jb 0x100e2e13
mov ebx, 0xfff80000
jmp 0x100e2e19
mov edi, 0x10000
lea ebx, [esi + 0x7ff80000]
mov edx, dword [0x1013dde4]
mov eax, dword [0x1013ddd0]
test edx, edx
jne 0x100e2e34
test eax, eax
je 0x100e2e47
mov edx, eax
mov dword [0x1013dde4], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x100e2e47
cmp ecx, edi
jb 0x100e2e47
cmp ecx, ebx
jbe 0x100e2ecb
mov edx, eax
test eax, eax
jmp 0x100e2e65
test edx, edx
je 0x100e2e60
mov eax, dword [edx + 8]
test eax, eax
je 0x100e2e60
cmp eax, edi
jb 0x100e2e60
cmp eax, ebx
jbe 0x100e2ecb
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x1013dde4], edx
jne 0x100e2e4d
and esi, 0xffff0000
mov ecx, edi
mov edx, esi
call fcn.1007c0cb
mov edx, eax
test edx, edx
jne 0x100e2e91
mov edx, ebx
mov ecx, esi
call fcn.1007c0cb
mov edx, eax
test edx, edx
je 0x100e2ef0
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x2a7
mov eax, dword [0x1013ddd0]
mov dword [edx + 4], eax
lea eax, [edx + 0xff60]
mov dword [0x1013dde4], edx
mov dword [0x1013ddd0], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x60
sub esi, 1
jne 0x100e2ebb
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, edi
jb 0x100e2ef0
cmp esi, ebx
ja 0x100e2ef0
mov ecx, dword [esi + 0x40]
push 0x60
push 0xcc
push esi
mov dword [edx + 8], ecx
call fcn.100638f0
add esp, 0xc
mov eax, esi
jmp 0x100e2ef2
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x100e3184
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x10129490
call fcn.100622e0
mov edi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.kernel32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x100e31fa
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x100e31fa
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x100e31fa
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x100e31fa
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x100e3203
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100e3a5a
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x1013dde0]
push esi
mov esi, ecx
test eax, eax
jne 0x100e3abc
call dword [sym.imp.kernel32.dll_GetCurrentThread]
cmp esi, eax
jne 0x100e3a6f
xor eax, eax
pop esi
ret
push edi
push 8
call fcn.1007c0cb
pop ecx
push esi
mov edi, eax
call dword [sym.imp.kernel32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x100e3aa9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
push 8
push edi
call fcn.1007c0cb
and dword [0x1013ddd4], 0
mov eax, esi
pop ecx
pop ecx
mov dword [0x1013dde0], esi
jmp 0x100e3abb
mov eax, dword [0x1013ddd8]
mov dword [edi], eax
xor eax, eax
mov dword [edi + 4], esi
mov dword [0x1013ddd8], edi
pop edi
pop esi
ret
Function at 0x40bdc4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, dword [ebp + 0xc]
and eax, 3
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
sub ecx, eax
je 0x40be0e
rol edx, 5
xor edx, dword [esi + ebx]
add esi, 4
imul eax, edx, 0x9e3779b9
rol eax, 5
xor eax, 4
imul edx, eax, 0x9e3779b9
cmp esi, ecx
jb 0x40bddd
jmp 0x40be0e
movsx ecx, byte [esi + ebx]
rol edx, 5
xor edx, ecx
imul edx, edx, 0x9e3779b9
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x40bdfe
pop esi
mov eax, edx
pop ebx
pop ebp
ret

Function at 0x40cea4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x40ced9
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x18]
jb 0x40cf03
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x40cf03
test edi, edi
je 0x40ced0
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40ced0
test edi, edi
je 0x40cf0b
mov eax, edi
jmp 0x40ced2
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40ced2
mov esi, 0xc3
push esi
push str.c:_builds_moz2_slave_fx_team_w32_d_0000000000000000_build_src_mfbt_Poison.cpp
push str.no_usable_poison_region_identified
call fcn.00410c17
add esp, 0xc
int3
Function at 0x410c4b
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestLinkedList.exe_gMozillaPoisonSize], eax
call fcn.0040cea4
pop ecx
mov ecx, dword [sym.TestLinkedList.exe_gMozillaPoisonSize]
mov dword [sym.TestLinkedList.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x410c83
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestLinkedList.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x401443
pop dword [ebp - 0x28]
mov eax, 0x30a7d142
sub eax, 0x3067bcff
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0xc5702ee7
sub dword [ebp - 0x38], 0x771de99c
mov dword [ebp - 0x34], 0x49555b5f
sub dword [ebp - 0x34], 0x17220f1a
mov dword [ebp - 0x30], 0x761ad39a
add dword [ebp - 0x30], 0xd6317094
mov dword [ebp - 0x2c], 0x122736ad
sub dword [ebp - 0x2c], 0x122736ad
lea eax, [ebp - 0x38]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x386e3c48
add dword [ebp - 0x38], 0x3c042d0e
mov dword [ebp - 0x34], 0x4dc51c41
sub dword [ebp - 0x34], 0xc58bacc
mov dword [ebp - 0x30], 0xa1b10f9e
sub dword [ebp - 0x30], 0x3e41a332
mov dword [ebp - 0x2c], 0xc31525ed
sub dword [ebp - 0x2c], 0xc31525ed
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x47130c6d
add eax, 0xb92d740f
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x376dd
push 0
call eax
mov ecx, 0x4436
mov edx, eax
mov esi, 0x451400
add esi, dword [ebp - 0x28]
mov ebx, 0xc4573690
add ebx, 0x70e1f219
add dword [ebp - 0x10], eax
mov edi, dword [esi]
xor dword [ebp - 0x18], edi
add edi, ebx
sub dword [ebp - 0x18], 0x5e96be1c
mov dword [edx], edi
xor dword [ebp - 0x10], ecx
add edx, 0xecfedb45
sub edx, 0xecfedb41
add esi, 0xb57d28a0
sub esi, 0xb57d289c
loop 0x401554
add eax, 0x11e51502
sub eax, 0x11e41157
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x4019c8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x468030]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x214]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401a3f
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x401a3f
push 4
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 1
push eax
push 4
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411745
leave
ret
Function at 0x404f5b
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3100
call fcn.004120a0
mov eax, dword [0x468030]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
xor ebx, ebx
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x3100], edi
call fcn.00428d50
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00428d50
add esp, 0x18
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsx eax, byte [ebp - 0x108]
push eax
push str.._c:
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004047ff
add esp, 0x10
lea eax, [ebp - 0x20c]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404ff1
mov al, 1
jmp 0x4050fa
push 0x2710
lea eax, [ebp - 0x30ec]
mov dword [ebp - 0x30fc], ebx
push ebx
push eax
call fcn.00428d50
push 0x3e8
lea eax, [ebp - 0x9dc]
push ebx
push eax
call fcn.00428d50
push 0x3e8
lea eax, [ebp - 0x5f4]
push ebx
push eax
call fcn.00428d50
add esp, 0x24
mov dword [ebp - 0x30f0], ebx
lea eax, [ebp - 0x30fc]
mov dword [ebp - 0x30f8], ebx
mov dword [ebp - 0x30f4], ebx
push ebx
push eax
push 0x2710
lea eax, [ebp - 0x30ec]
push eax
push 0xc
lea eax, [ebp - 0x30f8]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x405073
mov bl, 2
jmp 0x4050f1
lea eax, [ebp - 0x5f4]
push eax
push ebx
push dword [ebp - 0x30dc]
lea eax, [ebp - 0x30ec]
push eax
call fcn.00405109
lea eax, [ebp - 0x9dc]
push eax
push 1
push dword [ebp - 0x30d4]
lea eax, [ebp - 0x30ec]
push eax
call fcn.00405109
lea ecx, [ebp - 0x5f4]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4050b4
sub ecx, edx
lea eax, [ebp - 0x5f4]
push ecx
push eax
mov ecx, edi
call fcn.00407207
lea edx, [ebp - 0x9dc]
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4050d5
mov ecx, dword [ebp - 0x3100]
lea eax, [ebp - 0x9dc]
sub edx, edi
push edx
push eax
call fcn.00407207
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411745
leave
ret
Function at 0x4052ba
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x468030]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x118
xor ebx, ebx
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.00428d50
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.0040526f
mov eax, dword [ebp - 0x11c]
add esp, 0xc
cmp eax, 5
jne 0x405339
cmp dword [ebp - 0x118], ebx
jbe 0x40537f
cmp dword [ebp - 0x118], 1
setne bl
inc ebx
jmp 0x40537f
cmp eax, 6
jne 0x405364
cmp byte [ebp - 6], 1
jne 0x40535f
mov eax, dword [ebp - 0x118]
sub eax, ebx
je 0x40535b
sub eax, 1
je 0x405357
push 7
jmp 0x405361
push 5
jmp 0x405361
push 3
jmp 0x405361
push 4
pop ebx
jmp 0x40537f
push 0xa
pop ecx
cmp eax, ecx
jne 0x40537c
cmp dword [ebp - 0x114], 0x55f0
sbb ebx, ebx
add ebx, 9
jmp 0x40537f
cmova ebx, ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00411745
leave
ret
Function at 0x405ba5
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
xor edx, edx
push 2
mov byte [ebp - 1], dl
pop ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, ebx
cmp ax, dx
jne 0x405bba
push dword [ebp + 8]
sub edi, ecx
sar edi, 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405bdc
mov al, 1
jmp 0x405c6d
push esi
xor ecx, ecx
lea esi, [edi + 1]
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00412085
push esi
mov ebx, eax
push 0
push ebx
call fcn.00403ae8
push dword [ebp + 8]
push esi
push ebx
call fcn.00433d8a
add esp, 0x1c
xor esi, esi
movzx eax, word [ebx + esi*2]
cmp eax, 0x5c
je 0x405c1b
cmp eax, 0x2f
jne 0x405c57
mov dword [ebp - 8], eax
xor eax, eax
push ebx
mov word [ebx + esi*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405c50
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405c5e
mov eax, dword [ebp + 0xc]
mov byte [ebp - 1], 1
cmp dword [eax + 0x24], 0
je 0x405c50
push ebx
mov ecx, eax
call fcn.00405b88
mov eax, dword [ebp - 8]
mov word [ebx + esi*2], ax
inc esi
cmp esi, edi
jbe 0x405c0d
jmp 0x405c62
mov byte [ebp - 1], 0
push ebx
call fcn.0041208e
mov al, byte [ebp - 1]
pop ecx
pop esi
pop edi
pop ebx
leave
ret

Function at 0x405d07
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x468030]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], esi
push edi
push eax
call fcn.00428d50
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp + 0xc]
or eax, 0x8000
cmp byte [ebp + 0x10], 0
push edi
cmove eax, dword [ebp + 0xc]
push edi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x405d72
xor eax, eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x405d80
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.004021e6
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00411745
leave
ret
Function at 0x405de3
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
push ebx
xor ebx, ebx
push edi
mov edi, ebx
cmp dword [eax + 0x10], ebx
je 0x405ef4
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x10], ebx
je 0x405ef3
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x405e12
mov eax, dword [esi]
lea ecx, [ebp - 0xc]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
test eax, eax
je 0x405ef3
push 0x4530ca
push eax
call fcn.004120cd
mov dword [ebp - 4], eax
pop ecx
pop ecx
test eax, eax
je 0x405ef3
cmp dword [esi + 0x14], 0x10
jb 0x405e47
mov esi, dword [esi]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push esi
call sub.VERSION.dll_GetFileVersionInfoA
mov esi, dword [ebp - 4]
test eax, eax
je 0x405ee1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x405ee1
mov eax, dword [ebp - 0x10]
push 0x4530ca
push 0x80
movzx ecx, word [eax]
movzx eax, word [eax + 2]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 8], ecx
call fcn.004120cd
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x405ee1
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x405eaa
mov eax, dword [eax]
push eax
push dword [ebp - 8]
push str.StringFileInfo_08lx_s
push 0x80
push edi
call fcn.004047ff
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x405edf
push dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
call fcn.00401cb8
mov bl, 1
push esi
call fcn.0041208e
pop ecx
test edi, edi
je 0x405ef3
push edi
call fcn.0041208e
pop ecx
pop esi
pop edi
mov al, bl
pop ebx
leave
ret

Function at 0x406a34
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret