joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1305a330
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x130dcf5b
push eax
mov eax, dword [0x13109b00]
mov dword fs:[0], esp
sub esp, 0x910
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
jne 0x1305a576
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x519]
mov byte [esp + 0x518], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x119]
mov byte [esp + 0x118], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.OAgent.ini
mov dword [0x13109b00], 1
mov dword [esp + 0xc], ebx
stosb byte es:[edi], al
call fcn.13051090
push eax
lea eax, [esp + 0x1c]
push 0x130f1124
push eax
call fcn.130821c2
add esp, 0x10
lea ecx, [esp + 0x14]
lea edx, [esp + 0x118]
push ecx
push 0x400
push edx
push 0x13109b04
push 0x130e0848
push str.AgentConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, ebx
jbe 0x1305a426
cmp byte [esp + 0x517], bl
jne 0x1305a426
lea eax, [esp + 0x518]
push 0x400
lea ecx, [esp + 0x11c]
push eax
push ecx
call fcn.130a7500
add esp, 0xc
mov dword [esp + 8], eax
jmp 0x1305a42a
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x1305a534
lea ecx, [esp + 0xc]
call fcn.1306fbc0
push 0x20019
push str.SOFTWAREClassesCLSIDAFFAEF68_CDC5_4aad_9D3F_997C0D55927BProgID
push 0x80000002
lea ecx, [esp + 0x18]
mov dword [esp + 0x92c], ebx
call fcn.1306fd30
test eax, eax
je 0x1305a4a9
lea edx, [esp + 8]
lea ecx, [esp + 0xc]
push edx
push 0x130e0894
call fcn.13070150
cmp eax, ebx
je 0x1305a4a9
mov ecx, dword [esp + 8]
cmp ecx, 0x400
jae 0x1305a49c
mov edx, ecx
push esi
mov esi, eax
lea edi, [esp + 0x51c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1305a4a0
mov dword [esp + 8], ebx
push eax
call fcn.1308242b
add esp, 4
lea ecx, [esp + 0xc]
call fcn.1306fd80
lea ecx, [esp + 0xc]
mov dword [esp + 0x920], 0xffffffff
call fcn.1306fcb0
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x1305a534
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x118]
push 0x400
rep stosd dword es:[edi], eax
lea eax, [esp + 0x11c]
push eax
push 0x13109b04
push 0x130e0894
push str.ED30_8AC4_11D5_8930_A730
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
test eax, eax
jbe 0x1305a52c
cmp byte [esp + 0x517], bl
jne 0x1305a52c
lea ecx, [esp + 0x518]
push 0x400
lea edx, [esp + 0x11c]
push ecx
push edx
call fcn.130a7500
add esp, 0xc
jmp 0x1305a530
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x1305a576
cmp eax, 4
jbe 0x1305a576
lea ecx, [esp + 0x518]
test ecx, ecx
je 0x1305a576
cmp dword [esp + 0x518], 1
je 0x1305a576
mov edx, dword [esp + 0x534]
and edx, 0xffff
lea ecx, [edx + edx + 0x22]
cmp ecx, ebx
je 0x1305a576
add eax, 0xfffffffc
cmp ecx, eax
ja 0x1305a576
mov eax, dword [esp + 0x520]
mov dword [0x13109afc], eax
mov ecx, dword [esp + 0x918]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x91c
ret
Function at 0x1305b7e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x130dd292
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 0x10]
call fcn.1306f330
xor edi, edi
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], edi
call fcn.13068ba0
mov eax, dword [0x130e0968]
mov dword [esi + 0x40], eax
push edi
lea ecx, [esi + 0x44]
mov byte [esp + 0x18], 2
call fcn.1305b140
lea ecx, [esi + 0x70]
call fcn.1305b3d0
lea ecx, [esi + 0x74]
call fcn.1305b420
push edi
lea ecx, [esi + 0x84]
mov byte [esp + 0x18], 5
call fcn.1305b4e0
mov ecx, dword [esp + 0xc]
mov dword [esi + 4], edi
mov dword [esi + 0x8c], edi
mov dword [esi + 0x90], edi
mov dword [esi + 0x94], edi
mov dword [esi], 0x130e095c
mov dword [esi + 8], 2
mov dword [esi + 0xc], 0xffffffff
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x1305ba20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x130dd35b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push ebp
mov ebp, ecx
push esi
push 1
lea eax, [ebp + 0x10]
lea ecx, [esp + 0xc]
push eax
call fcn.1306f860
xor esi, esi
add ebp, 0x30
push 0xffffffffffffffff
push esi
mov ecx, ebp
mov dword [esp + 0x22c], esi
call fcn.13068c10
mov edx, dword [esp + 0x22c]
cmp edx, esi
jne 0x1305ba88
lea ecx, [esp + 8]
mov dword [esp + 0x224], 0xffffffff
call fcn.1306f8c0
jmp 0x1305bb23
push ebx
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1e]
mov word [esp + 0x1c], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x3b
push edx
mov edi, edx
call fcn.130826ce
mov ebx, eax
add esp, 8
cmp ebx, esi
je 0x1305bafb
mov esi, ebx
sub esi, edi
sar esi, 1
je 0x1305bae7
cmp esi, 0x103
jae 0x1305bae7
push esi
lea ecx, [esp + 0x20]
push edi
push ecx
call fcn.130822c0
mov eax, dword [ebp + 4]
add esp, 0xc
lea edx, [esp + 0x1c]
mov ecx, ebp
push edx
push eax
mov word [esp + esi*2 + 0x24], 0
call fcn.130690c0
lea edi, [ebx + 2]
push 0x3b
push edi
call fcn.130826ce
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1305bab1
cmp word [edi], 0
je 0x1305bb0d
mov eax, dword [ebp + 4]
push edi
push eax
mov ecx, ebp
call fcn.130690c0
lea ecx, [esp + 0x10]
mov dword [esp + 0x22c], 0xffffffff
call fcn.1306f8c0
pop edi
pop ebx
mov ecx, dword [esp + 0x21c]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x220
ret 4
Function at 0x130618e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
mov esi, eax
shr eax, 4
and esi, 0xf
inc eax
push edi
mov edi, dword [esp + 0xc]
and eax, 0xffff
push ecx
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x1306192e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1306192e
xor edx, edx
xor ecx, ecx
mov cx, word [eax]
add eax, 2
cmp esi, edx
je 0x13061933
inc edx
lea eax, [eax + ecx*2]
cmp edx, 0x10
jl 0x13061919
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
test edi, edi
jne 0x13061943
test esi, esi
jne 0x13061961
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x1306195f
mov byte [eax + esi - 1], 0
jne 0x13061968
mov byte [esi + edi - 1], 0
mov eax, edi
pop edi
dec eax
pop esi
ret

Function at 0x130670c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x13067110
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x13067110
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x13067115
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x130670fb
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x13067122
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret
Function at 0x1306fe00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x1306fe41
lea edx, [esp + 0x14]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x14]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x1306fe43
mov esi, edi
test esi, esi
je 0x1306feb8
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x1306fead
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x1306fead
cmp dword [esp + 0x1c], eax
jbe 0x1306fe7e
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x1306fead
cmp esi, edi
je 0x1306fe9f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
cmp esi, edi
je 0x1306feb8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x13070010
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
je 0x1307006f
mov edi, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
push 0
push ecx
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x1307006f
cmp dword [esp + 0xc], 3
jne 0x1307006f
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp edx, eax
jb 0x1307006f
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push ecx
push 0
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x1307006f
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc

Function at 0x13070150
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [ecx]
test esi, esi
push edi
je 0x130701c4
mov ebx, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x130701c4
cmp dword [esp + 0x10], 3
jne 0x130701c4
mov edx, dword [esp + 0x18]
push edx
call fcn.13082436
mov edi, eax
add esp, 4
test edi, edi
je 0x130701c4
lea eax, [esp + 0x18]
push eax
push edi
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x130701bb
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword [ecx], edx
pop ebx
pop ecx
ret 8
push edi
call fcn.1308242b
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
Function at 0x130701d0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x130ddb2f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x130e0964]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], 1
test ecx, ecx
mov dword [esp + 0x14], edi
je 0x1307023b
lea edx, [esp + 0x18]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x1307023d
mov esi, edi
test esi, esi
je 0x13070307
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x130702fc
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x1307027f
cmp eax, 2
je 0x1307027f
cmp eax, 6
je 0x1307027f
cmp eax, 7
jne 0x130702fc
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.13082436
mov ebp, eax
mov eax, dword [esp + 0x38]
mov edi, ebp
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
push ebp
push 0
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebp
jne 0x130702e2
lea ecx, [esp + 0x14]
call fcn.1305e100
cmp esi, dword [esp + 0x14]
je 0x130702d7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.1308242b
add esp, 4
jmp 0x13070319
call fcn.1308242b
add esp, 4
lea ecx, [esp + 0x10]
push 0x13109b04
call fcn.1305e100
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x13070307
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x13070319
push eax
lea ecx, [esp + 0x14]
call fcn.1305e100
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.1305d470
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.1305dea0
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x13071080
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x130ddbf8
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x130710d6
lea ecx, [ebp + 0x14]
lea edx, [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 8]
or ecx, 0x20006
push 0
push ecx
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x130710d9
mov esi, dword [ebp + 8]
test esi, esi
je 0x130711c3
call fcn.13072980
test eax, eax
je 0x1307115e
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x13071127
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
inc ebx
lea eax, [ebx + ebx]
add eax, 3
and al, 0xfc
call fcn.130839b0
mov edi, esp
test edi, edi
je 0x13071127
mov eax, dword [ebp + 0x10]
push ebx
push edi
push 0xffffffffffffffff
push eax
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x13071129
xor edi, edi
mov ebx, dword [ebp + 0x18]
push ebx
call fcn.130822a3
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
push ebx
push 1
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x130711b7
cmp esi, dword [ebp + 8]
je 0x13071157
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x130711c5
mov edx, dword [ebp + 0x18]
lea ecx, [ebp + 0x18]
push edx
call fcn.1305d740
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
mov eax, dword [ebp + 0x10]
push 1
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x130711a8
cmp esi, dword [ebp + 8]
je 0x13071192
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.1305dea0
mov eax, 1
jmp 0x130711c5
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.1305dea0
cmp esi, dword [ebp + 8]
je 0x130711c3
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x13072290
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push ebx
test edx, edx
push esi
mov ebx, ecx
je 0x130722c6
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
lea esi, [esp + 0xc]
or eax, 0x20019
push esi
push eax
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x130722c8
mov esi, dword [ebx]
test esi, esi
je 0x13072353
mov edx, dword [esp + 0x10]
push edi
lea eax, [esp + 0x14]
xor edi, edi
push eax
lea ecx, [esp + 0x14]
push edi
push ecx
push edi
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne case.0x130722f8.2
mov eax, dword [esp + 0x18]
cmp eax, 4
ja case.0x130722f8.2
jmp dword [eax*4 + 0x1307235c]
mov edi, 1
jmp case.0x130722f8.2
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, 4
sete al
mov edi, eax
jmp case.0x130722f8.2
mov eax, dword [esp + 0x10]
cmp eax, 1
je case.0x130722f8.0
cmp eax, 2
je case.0x130722f8.0
cmp eax, 6
je case.0x130722f8.0
cmp eax, 7
je case.0x130722f8.0
xor edi, edi
jmp case.0x130722f8.2
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, 3
sete cl
mov edi, ecx
cmp esi, dword [ebx]
je 0x1307234b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x13072380
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, dword [0x13109de4]
test eax, eax
jne 0x1307246c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0x13109c80
mov dword [0x13109de4], 1
mov dword [0x13109c80], 0x94
call esi
mov edx, dword [0x13109c90]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x130f3e88], eax
je 0x1307244e
push edi
push 0x13109d18
mov dword [0x13109d18], 0x9c
call esi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetNativeSystemInfo
push esi
call edi
push str.GetProductInfo
push esi
mov dword [0x13109ddc], eax
call edi
mov dword [0x13109de0], eax
mov eax, dword [0x13109ddc]
pop edi
test eax, eax
push 0x13109db8
je 0x1307241c
call eax
jmp 0x13072422
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x13109d1c]
cmp eax, 6
jae 0x1307243a
cmp eax, 5
jne 0x1307244e
cmp dword [0x13109d20], 2
jb 0x1307244e
cmp word [0x13109db8], 9
jne 0x1307244e
mov dword [0x13109c74], 1
push 0x13109c88
push 0x13109c84
call fcn.130727a0
add esp, 8
call fcn.13072480
mov eax, 1
pop esi
ret
mov eax, 1
ret
Function at 0x13073480
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x130e09e0
push 0x13084458
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x22c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [0x13109de8]
xor ebx, ebx
cmp eax, ebx
jne 0x130735e0
mov byte [ebp - 0x11c], bl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x11b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x130735db
mov byte [ebp - 0x224], bl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x223]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.user32.dll
lea ecx, [ebp - 0x11c]
push ecx
push 0x130f1124
lea edx, [ebp - 0x224]
push edx
call fcn.130821c2
add esp, 0x10
mov dword [ebp - 0x22c], ebx
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x224]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x120], eax
push eax
call fcn.13082436
add esp, 4
mov esi, eax
mov dword [ebp - 0x238], esi
cmp esi, ebx
je 0x130735db
push esi
mov edx, dword [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x224]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x130735d2
mov dword [ebp - 0x230], ebx
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x230]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x130735d2
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x234], eax
mov ecx, dword [eax]
mov dword [0x13109de8], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x130735d2
push esi
call fcn.1308242b
add esp, 4
mov eax, dword [0x13109de8]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x13075cf0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x13075dc3
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.13082780
add esp, 8
test eax, eax
je 0x13075d3c
mov byte [eax], 0
mov ebx, dword [esp + 0x114]
test ebx, ebx
je 0x13075dbc
mov esi, dword [esp + 0x118]
test esi, esi
je 0x13075dbc
lea edx, [esp + 0xc]
test edx, edx
je 0x13075dbc
mov eax, dword [esp + 0x11c]
mov edx, 0x7a
test eax, eax
je 0x13075d85
push eax
lea eax, [esp + 0x10]
push eax
push 0x130f1124
push esi
push ebx
call fcn.13084530
add esp, 0x14
xor edx, edx
mov esi, edx
jmp 0x13075dcb
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jbe 0x13075db8
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
xor edx, edx
rep movsb byte es:[edi], byte [esi]
mov esi, edx
jmp 0x13075dcb
mov esi, 0x57
jmp 0x13075dcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x13109e5c], esi
je 0x13075ddc
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
add esp, 0x104
ret
Function at 0x1307e2c0
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x10c]
test ebx, ebx
jne 0x1307e2dc
xor eax, eax
pop ebx
add esp, 0x104
ret
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.130825d0
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call fcn.13082510
mov esi, eax
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jbe 0x1307e360
cmp byte [esp + 0x10], 0x5c
jne 0x1307e360
cmp byte [esp + 0x11], 0x5c
jne 0x1307e360
lea edx, [esp + 0x12]
push 0x5c
push edx
call fcn.13082510
add esp, 8
test eax, eax
je 0x1307e3de
inc eax
push 0x5c
push eax
call fcn.13082510
add esp, 8
mov esi, eax
test esi, esi
je 0x1307e3de
lea eax, [esp + 0x10]
mov byte [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x1307e3a2
test bl, 1
je 0x1307e391
mov ecx, ebx
lea edx, [esp + 0x10]
and ecx, 0xfffffffe
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x1307e414
cmp ebx, 0xffffffff
je 0x1307e3ab
test edi, edi
jne 0x1307e3ba
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x1307e414
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call fcn.13082510
mov esi, eax
add esp, 8
test esi, esi
jne 0x1307e364
test ebp, ebp
je 0x1307e414
mov ebx, dword [esp + 0x118]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1307e409
test al, 0x10
jne 0x1307e414
test al, 1
je 0x1307e3fc
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x1307e414
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x104
ret