joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4098b6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x417004]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 0xc]
lea ecx, [ebp - 0x6c]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push ecx
push 0x20019
push ebx
movzx eax, al
push 0x406e10
sub eax, 0x7fffffff
mov dword [ebp - 0x6c], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x409918
push 0x406dcc
mov ecx, esi
call fcn.00409db3
cmp dword [ebp - 0x6c], ebx
je 0x4099c0
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4099c0
push edi
push 0x64
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], ebx
push ebx
push eax
call fcn.0040cf80
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
push ebx
lea eax, [ebp - 0x70]
push eax
push ebx
push 0x406db8
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4099a5
mov edi, dword [ebp - 0x74]
test edi, edi
je 0x4099a5
cmp dword [ebp - 0x70], 1
jne 0x4099a5
shr edi, 1
cmp edi, 0x32
jae 0x4099a5
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push 0x406db8
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [edi + edi]
mov edx, eax
cmp word [ebp + ecx - 0x6a], bx
je 0x409996
lea eax, [edi + 1]
cmp eax, 0x32
jae 0x409996
cmp ecx, 0x64
jae 0x4099d2
xor eax, eax
mov word [ebp + ecx - 0x68], ax
lea eax, [ebp - 0x68]
test edx, edx
je 0x4099a2
mov eax, 0x406dcc
push eax
jmp 0x4099aa
push 0x406dcc
mov ecx, esi
call fcn.00409db3
cmp dword [ebp - 0x6c], ebx
je 0x4099bf
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b2a3
leave
ret 8
call fcn.0040b3d3
int3

Function at 0x40bd66
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40bda5
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40bda5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40bda5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40bda5
cmp dword [ecx + 0x74], 0xe
jbe 0x40bda5
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4125f1
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x41262c
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x412613
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x412624
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x41262e
inc edi
add eax, 0x28
cmp edi, esi
jb 0x412609
xor eax, eax
pop edi
pop esi
ret
Function at 0x412cb4
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x412c88
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x412ca6
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x412d04
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x412ceb
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x412cf4
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x412cfe
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x412ce0
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x412c6a
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x412d51
dec eax
je 0x412d48
sub eax, 3
je 0x412d3f
mov dword [ebp - 4], 0x40
jmp 0x412d6e
mov dword [ebp - 4], 4
jmp 0x412d54
mov dword [ebp - 4], 0x20
jmp 0x412d54
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x412da0
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x412d20
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.004125b1
lcall 0x1475, 0xff261ab2
push 1
push esi
call edi
mov eax, esi
jmp 0x412dac
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x412e59
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sbb bh, bh
jne 0x412e71
call fcn.00412576
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
add byte [eax - 0x3335b], al
inc dword [eax]

Function at 0x412e80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [eax - 0x3335b], al
inc dword [eax]
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
invalid
test dword [eax + 0x4fffff9], edx
invalid

Function at 0x4134aa
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov ebp, 0xfffff9ad
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.0041258f
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
invalid
movsd dword es:[edi], dword [esi]
xchg esp, eax
Function at 0x416590
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4165bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4165bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401020
Capabilities:
Generate random numbers via winapi
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x68
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
mov esi, dword [sym.imp.USER32.dll_EnumDisplayMonitors]
lea eax, [esp + 0x2c]
push edi
mov edi, dword [ebp + 0xc]
xorps xmm0, xmm0
push eax
push section..text
push 0
push 0
mov dword [esp + 0x24], edi
movaps xmmword [esp + 0x40], xmm0
call esi
lea eax, [esp + 0x20]
xorps xmm0, xmm0
push eax
push section..text
push 0
push 0
movaps xmmword [esp + 0x30], xmm0
call esi
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x24]
push 0
push 0
push 0
push ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x6c], eax
add eax, 0x19
push eax
push dword [esp + 0x48]
lea eax, [esp + 0x6c]
mov dword [esp + 0x30], ecx
push dword [esp + 0x48]
mov dword [esp + 0x70], 0
push edi
push eax
push edi
mov dword [esp + 0x80], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0x19
mov dword [esp + 0x90], ecx
call dword [sym.imp.GDI32.dll_PlgBlt]
mov eax, dword [0x4033c0]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x401111
push 0xf0000040
push 1
push 0
push 0
push 0x4033c0
call edi
test eax, eax
jne 0x40110c
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [0x4033c0]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
lea ecx, [esp + 0x48]
push ecx
push 4
push eax
call esi
mov eax, dword [esp + 0x48]
and eax, 0x7fffffff
mov dword [esp + 0x10], eax
mov eax, dword [0x4033c0]
test eax, eax
jne 0x401158
push 0xf0000040
push 1
push eax
push eax
push 0x4033c0
call edi
test eax, eax
jne 0x401153
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [0x4033c0]
lea ecx, [esp + 0x4c]
push ecx
push 4
push eax
call esi
mov eax, dword [esp + 0x4c]
and eax, 0x7fffffff
mov dword [esp + 0xc], eax
mov eax, dword [0x4033c0]
test eax, eax
jne 0x401199
push 0xf0000040
push 1
push eax
push eax
push 0x4033c0
call edi
test eax, eax
jne 0x401194
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [0x4033c0]
lea ecx, [esp + 0x50]
push ecx
push 4
push eax
call esi
movzx ecx, byte [esp + 0x50]
mov eax, dword [esp + 0xc]
shl ecx, 8
movzx eax, al
or ecx, eax
mov eax, dword [esp + 0x10]
shl ecx, 8
movzx eax, al
or ecx, eax
push ecx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov esi, dword [esp + 0x14]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x5a0049
push dword [esp + 0x1c]
push dword [esp + 0x24]
push dword [esp + 0x40]
push dword [esp + 0x40]
push esi
call dword [sym.imp.GDI32.dll_PatBlt]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
xor ecx, esp
call fcn.00401299
mov esp, ebp
pop ebp
ret
Function at 0x401a9e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401add
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401add
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401add
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401add
cmp dword [ecx + 0x74], 0xe
jbe 0x401add
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4269b9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4269f8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4269f8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4269f8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4269f8
cmp dword [ecx + 0x74], 0xe
jbe 0x4269f8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x438da0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x438dcd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x438dcd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x448b70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 0x78]
mov ebx, dword [edx + 0x8c]
cmp eax, ebx
mov eax, dword [edx + 0x34]
mov ebx, dword [edx + 0x7c]
jl 0x448b95
shr ebx, 2
dec ebx
shl ebx, 0x10
or ebx, eax
mov dword [esp], ebx
mov eax, dword [edx + 0x90]
mov ebx, dword [edx + 0x74]
cmp ebx, eax
jl 0x448bad
mov ebx, eax
mov dword [esp + 0x18], ebx
mov esi, dword [edx + 0x38]
mov dword [esp + 4], esi
mov ebp, dword [edx + 0x6c]
lea edi, [ebp + esi]
mov dword [esp + 0x20], edi
mov eax, edi
neg eax
and eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x2c]
sub eax, 0x106
sub ebp, eax
jg 0x448bdc
xor ebp, ebp
mov eax, dword [edx + 0x78]
mov dword [esp + 0x1c], eax
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [edi]
mov dword [esp + 0x10], ebx
movzx ebx, word [eax + edi - 1]
mov dword [esp + 0xc], ebx
mov edi, dword [edx + 0x40]
mov edx, dword [esp]
jmp 0x448c1e
and ecx, edx
movzx ecx, word [edi + ecx*2]
cmp ecx, ebp
jbe 0x448cf2
sub edx, 0x10000
js 0x448cf2
movzx eax, word [ecx + esi - 1]
cmp eax, ebx
jne 0x448c04
mov eax, dword [esp + 4]
movzx eax, word [ecx + eax]
cmp eax, dword [esp + 0x10]
jne 0x448c04
mov dword [esp], edx
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x20]
add esi, ecx
mov eax, dword [esp + 0x14]
mov edx, 0xfffffef8
lea edi, [eax + edi + 0x108]
lea esi, [eax + esi + 0x108]
mov eax, dword [edx + esi]
xor eax, dword [edx + edi]
jne 0x448c75
mov eax, dword [edx + esi + 4]
xor eax, dword [edx + edi + 4]
jne 0x448c72
add edx, 8
jne 0x448c59
jmp 0x448ce3
add edx, 4
test eax, 0xffff
jne 0x448c82
add edx, 2
shr eax, 0x10
sub al, 1
adc edx, 0
lea eax, [edx + edi]
mov edi, dword [esp + 0x20]
sub eax, edi
cmp eax, 0x102
jge 0x448ce3
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
cmp eax, ebx
jg 0x448cb6
mov esi, dword [esp + 8]
mov edi, dword [edx + 0x40]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp]
jmp 0x448c04
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x70], ecx
cmp eax, ebx
jge 0x448cf2
mov esi, dword [esp + 4]
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [eax + edi - 1]
mov edi, dword [edx + 0x40]
mov dword [esp + 0xc], ebx
mov edx, dword [esp]
jmp 0x448c04
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], 0x102
mov dword [edx + 0x70], ecx
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx + 0x74]
cmp ebx, eax
jg 0x448d03
mov eax, ebx
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x414def
Capabilities:
Encode data using xor

Disassembly:
xor dword [eax], ecx
add ebx, ebx
add eax, 4
cmp eax, edi
jne fcn.00414def
sub esi, edx
ret
Function at 0x4019d9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x469030]
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 0x401a50
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x401a50
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.00411755
leave
ret
Function at 0x404f55
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3100
call fcn.004120b0
mov eax, dword [0x469030]
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.00428d60
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00428d60
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.004047f9
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 0x404feb
mov al, 1
jmp 0x4050f4
push 0x2710
lea eax, [ebp - 0x30ec]
mov dword [ebp - 0x30fc], ebx
push ebx
push eax
call fcn.00428d60
push 0x3e8
lea eax, [ebp - 0x9dc]
push ebx
push eax
call fcn.00428d60
push 0x3e8
lea eax, [ebp - 0x5f4]
push ebx
push eax
call fcn.00428d60
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 0x40506d
mov bl, 2
jmp 0x4050eb
lea eax, [ebp - 0x5f4]
push eax
push ebx
push dword [ebp - 0x30dc]
lea eax, [ebp - 0x30ec]
push eax
call fcn.00405103
lea eax, [ebp - 0x9dc]
push eax
push 1
push dword [ebp - 0x30d4]
lea eax, [ebp - 0x30ec]
push eax
call fcn.00405103
lea ecx, [ebp - 0x5f4]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4050ae
sub ecx, edx
lea eax, [ebp - 0x5f4]
push ecx
push eax
mov ecx, edi
call fcn.00407212
lea edx, [ebp - 0x9dc]
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4050cf
mov ecx, dword [ebp - 0x3100]
lea eax, [ebp - 0x9dc]
sub edx, edi
push edx
push eax
call fcn.00407212
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.00411755
leave
ret
Function at 0x4052b4
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x469030]
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.00428d60
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.00405269
mov eax, dword [ebp - 0x11c]
add esp, 0xc
cmp eax, 5
jne 0x405333
cmp dword [ebp - 0x118], ebx
jbe 0x405379
cmp dword [ebp - 0x118], 1
setne bl
inc ebx
jmp 0x405379
cmp eax, 6
jne 0x40535e
cmp byte [ebp - 6], 1
jne 0x405359
mov eax, dword [ebp - 0x118]
sub eax, ebx
je 0x405355
sub eax, 1
je 0x405351
push 7
jmp 0x40535b
push 5
jmp 0x40535b
push 3
jmp 0x40535b
push 4
pop ebx
jmp 0x405379
push 0xa
pop ecx
cmp eax, ecx
jne 0x405376
cmp dword [ebp - 0x114], 0x55f0
sbb ebx, ebx
add ebx, 9
jmp 0x405379
cmova ebx, ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00411755
leave
ret
Function at 0x405bb0
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 0x405bc5
push dword [ebp + 8]
sub edi, ecx
sar edi, 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405be7
mov al, 1
jmp 0x405c78
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.00412095
push esi
mov ebx, eax
push 0
push ebx
call fcn.004039a6
push dword [ebp + 8]
push esi
push ebx
call fcn.00433d9a
add esp, 0x1c
xor esi, esi
movzx eax, word [ebx + esi*2]
cmp eax, 0x5c
je 0x405c26
cmp eax, 0x2f
jne 0x405c62
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 0x405c5b
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405c69
mov eax, dword [ebp + 0xc]
mov byte [ebp - 1], 1
cmp dword [eax + 0x24], 0
je 0x405c5b
push ebx
mov ecx, eax
call fcn.00405b93
mov eax, dword [ebp - 8]
mov word [ebx + esi*2], ax
inc esi
cmp esi, edi
jbe 0x405c18
jmp 0x405c6d
mov byte [ebp - 1], 0
push ebx
call fcn.0041209e
mov al, byte [ebp - 1]
pop ecx
pop esi
pop edi
pop ebx
leave
ret

Function at 0x405d12
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x469030]
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.00428d60
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 0x405d7d
xor eax, eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x405d8b
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.004020a3
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00411755
leave
ret
Function at 0x405dee
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 0x405eff
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x10], ebx
je 0x405efe
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x405e1d
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 0x405efe
push 0x4540ca
push eax
call fcn.004120dd
mov dword [ebp - 4], eax
pop ecx
pop ecx
test eax, eax
je 0x405efe
cmp dword [esi + 0x14], 0x10
jb 0x405e52
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 0x405eec
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 0x405eec
mov eax, dword [ebp - 0x10]
push 0x4540ca
push 0x80
movzx ecx, word [eax]
movzx eax, word [eax + 2]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 8], ecx
call fcn.004120dd
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x405eec
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x405eb5
mov eax, dword [eax]
push eax
push dword [ebp - 8]
push str.StringFileInfo_08lx_s
push 0x80
push edi
call fcn.004047f9
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 0x405eea
push dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
call fcn.00401cc9
mov bl, 1
push esi
call fcn.0041209e
pop ecx
test edi, edi
je 0x405efe
push edi
call fcn.0041209e
pop ecx
pop esi
pop edi
mov al, bl
pop ebx
leave
ret

Function at 0x406a3f
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
Function at 0x4098c7
Capabilities:
Check if file exists

Disassembly:
push 0x23c
mov eax, 0x44c9ce
call fcn.00411f55
mov edi, ecx
lea eax, [ebp - 0x230]
push eax
call fcn.00409628
and dword [ebp - 4], 0
lea esi, [edi + 4]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4098f9
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x4508d8
call fcn.00404473
push 0x4508dc
mov ecx, esi
call fcn.00404473
push 0x4503a4
mov ecx, esi
call fcn.00404473
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
call fcn.0040449a
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40994e
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4099e6
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00428d60
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004094fc
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4099a5
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00404473
push 0x4503a4
mov ecx, esi
call fcn.00404473
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
call fcn.0040449a
cmp dword [esi + 0x14], 8
jb 0x4099ee
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea esi, [edi + 0x1c]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x409a06
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x4508d8
call fcn.00404473
push 0x4508dc
mov ecx, esi
call fcn.00404473
push 0x4503a4
mov ecx, esi
call fcn.00404473
lea eax, [ebp - 0x248]
mov ecx, edi
push eax
call fcn.00409687
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004043fb
lea ecx, [ebp - 0x248]
call fcn.00401e81
lea ecx, [ebp - 0x230]
call fcn.00401e81
call fcn.00411eff
ret