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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x13abb69b
push eax
mov eax, dword [0x13aec068]
mov dword fs:[0], esp
sub esp, 0x910
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
jne 0x13a2b746
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 [0x13aec068], 1
mov dword [esp + 0xc], ebx
stosb byte es:[edi], al
call fcn.13a21d50
push eax
lea eax, [esp + 0x1c]
push 0x13ad1124
push eax
call fcn.13a57872
add esp, 0x10
lea ecx, [esp + 0x14]
lea edx, [esp + 0x118]
push ecx
push 0x400
push edx
push 0x13aec06c
push 0x13abf9f8
push str.AgentConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, ebx
jbe 0x13a2b5f6
cmp byte [esp + 0x517], bl
jne 0x13a2b5f6
lea eax, [esp + 0x518]
push 0x400
lea ecx, [esp + 0x11c]
push eax
push ecx
call fcn.13a84aa0
add esp, 0xc
mov dword [esp + 8], eax
jmp 0x13a2b5fa
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x13a2b704
lea ecx, [esp + 0xc]
call fcn.13a42d90
push 0x20019
push str.SOFTWAREClassesCLSIDAFFAEF68_CDC5_4aad_9D3F_997C0D55927BProgID
push 0x80000002
lea ecx, [esp + 0x18]
mov dword [esp + 0x92c], ebx
call fcn.13a42f00
test eax, eax
je 0x13a2b679
lea edx, [esp + 8]
lea ecx, [esp + 0xc]
push edx
push 0x13abfa44
call fcn.13a43320
cmp eax, ebx
je 0x13a2b679
mov ecx, dword [esp + 8]
cmp ecx, 0x400
jae 0x13a2b66c
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 0x13a2b670
mov dword [esp + 8], ebx
push eax
call fcn.13a57adb
add esp, 4
lea ecx, [esp + 0xc]
call fcn.13a42f50
lea ecx, [esp + 0xc]
mov dword [esp + 0x920], 0xffffffff
call fcn.13a42e80
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x13a2b704
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 0x13aec06c
push 0x13abfa44
push str.ED30_8AC4_11D5_8930_A730
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
test eax, eax
jbe 0x13a2b6fc
cmp byte [esp + 0x517], bl
jne 0x13a2b6fc
lea ecx, [esp + 0x518]
push 0x400
lea edx, [esp + 0x11c]
push ecx
push edx
call fcn.13a84aa0
add esp, 0xc
jmp 0x13a2b700
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x13a2b746
cmp eax, 4
jbe 0x13a2b746
lea ecx, [esp + 0x518]
test ecx, ecx
je 0x13a2b746
cmp dword [esp + 0x518], 1
je 0x13a2b746
mov edx, dword [esp + 0x534]
and edx, 0xffff
lea ecx, [edx + edx + 0x22]
cmp ecx, ebx
je 0x13a2b746
add eax, 0xfffffffc
cmp ecx, eax
ja 0x13a2b746
mov eax, dword [esp + 0x520]
mov dword [0x13aec064], eax
mov ecx, dword [esp + 0x918]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x91c
ret
Function at 0x13a2d1d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x13abba42
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.13a42500
xor edi, edi
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], edi
call fcn.13a3a5b0
mov eax, dword [0x13abfb40]
mov dword [esi + 0x40], eax
push edi
lea ecx, [esi + 0x44]
mov byte [esp + 0x18], 2
call fcn.13a2cb30
lea ecx, [esi + 0x70]
call fcn.13a2cdc0
lea ecx, [esi + 0x74]
call fcn.13a2ce10
push edi
lea ecx, [esi + 0x84]
mov byte [esp + 0x18], 5
call fcn.13a2ced0
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], 0x13abfb34
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 0x13a2d410
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x13abbb0b
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.13a42a30
xor esi, esi
add ebp, 0x30
push 0xffffffffffffffff
push esi
mov ecx, ebp
mov dword [esp + 0x22c], esi
call fcn.13a3a620
mov edx, dword [esp + 0x22c]
cmp edx, esi
jne 0x13a2d478
lea ecx, [esp + 8]
mov dword [esp + 0x224], 0xffffffff
call fcn.13a42a90
jmp 0x13a2d513
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.13a57d7e
mov ebx, eax
add esp, 8
cmp ebx, esi
je 0x13a2d4eb
mov esi, ebx
sub esi, edi
sar esi, 1
je 0x13a2d4d7
cmp esi, 0x103
jae 0x13a2d4d7
push esi
lea ecx, [esp + 0x20]
push edi
push ecx
call fcn.13a57970
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.13a3aad0
lea edi, [ebx + 2]
push 0x3b
push edi
call fcn.13a57d7e
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x13a2d4a1
cmp word [edi], 0
je 0x13a2d4fd
mov eax, dword [ebp + 4]
push edi
push eax
mov ecx, ebp
call fcn.13a3aad0
lea ecx, [esp + 0x10]
mov dword [esp + 0x22c], 0xffffffff
call fcn.13a42a90
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 0x13a332f0
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 0x13a3333e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x13a3333e
xor edx, edx
xor ecx, ecx
mov cx, word [eax]
add eax, 2
cmp esi, edx
je 0x13a33343
inc edx
lea eax, [eax + ecx*2]
cmp edx, 0x10
jl 0x13a33329
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
test edi, edi
jne 0x13a33353
test esi, esi
jne 0x13a33371
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 0x13a3336f
mov byte [eax + esi - 1], 0
jne 0x13a33378
mov byte [esi + edi - 1], 0
mov eax, edi
pop edi
dec eax
pop esi
ret

Function at 0x13a38ad0
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 0x13a38b20
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x13a38b20
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x13a38b25
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x13a38b0b
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x13a38b32
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 0x13a42fd0
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 0x13a43011
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 0x13a43013
mov esi, edi
test esi, esi
je 0x13a43088
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 0x13a4307d
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x13a4307d
cmp dword [esp + 0x1c], eax
jbe 0x13a4304e
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 0x13a4307d
cmp esi, edi
je 0x13a4306f
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 0x13a43088
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 0x13a431e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
je 0x13a4323f
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 0x13a4323f
cmp dword [esp + 0xc], 3
jne 0x13a4323f
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp edx, eax
jb 0x13a4323f
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 0x13a4323f
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 0x13a43320
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 0x13a43394
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 0x13a43394
cmp dword [esp + 0x10], 3
jne 0x13a43394
mov edx, dword [esp + 0x18]
push edx
call fcn.13a57ae6
mov edi, eax
add esp, 4
test edi, edi
je 0x13a43394
lea eax, [esp + 0x18]
push eax
push edi
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x13a4338b
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.13a57adb
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
Function at 0x13a433a0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x13abc2df
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x13abfb3c]
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 0x13a4340b
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 0x13a4340d
mov esi, edi
test esi, esi
je 0x13a434d7
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 0x13a434cc
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x13a4344f
cmp eax, 2
je 0x13a4344f
cmp eax, 6
je 0x13a4344f
cmp eax, 7
jne 0x13a434cc
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.13a57ae6
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 0x13a434b2
lea ecx, [esp + 0x14]
call fcn.13a2fb10
cmp esi, dword [esp + 0x14]
je 0x13a434a7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.13a57adb
add esp, 4
jmp 0x13a434e9
call fcn.13a57adb
add esp, 4
lea ecx, [esp + 0x10]
push 0x13aec06c
call fcn.13a2fb10
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x13a434d7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x13a434e9
push eax
lea ecx, [esp + 0x14]
call fcn.13a2fb10
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.13a2ee80
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.13a2f8b0
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 0x13a44250
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x13abc3a8
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x13a442a6
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 0x13a442a9
mov esi, dword [ebp + 8]
test esi, esi
je 0x13a44393
call fcn.13a476e0
test eax, eax
je 0x13a4432e
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x13a442f7
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.13a59060
mov edi, esp
test edi, edi
je 0x13a442f7
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 0x13a442f9
xor edi, edi
mov ebx, dword [ebp + 0x18]
push ebx
call fcn.13a57953
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 0x13a44387
cmp esi, dword [ebp + 8]
je 0x13a44327
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x13a44395
mov edx, dword [ebp + 0x18]
lea ecx, [ebp + 0x18]
push edx
call fcn.13a2f150
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 0x13a44378
cmp esi, dword [ebp + 8]
je 0x13a44362
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.13a2f8b0
mov eax, 1
jmp 0x13a44395
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.13a2f8b0
cmp esi, dword [ebp + 8]
je 0x13a44393
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 0x13a45460
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push ebx
test edx, edx
push esi
mov ebx, ecx
je 0x13a45496
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 0x13a45498
mov esi, dword [ebx]
test esi, esi
je 0x13a45523
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.0x13a454c8.2
mov eax, dword [esp + 0x18]
cmp eax, 4
ja case.0x13a454c8.2
jmp dword [eax*4 + 0x13a4552c]
mov edi, 1
jmp case.0x13a454c8.2
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, 4
sete al
mov edi, eax
jmp case.0x13a454c8.2
mov eax, dword [esp + 0x10]
cmp eax, 1
je case.0x13a454c8.0
cmp eax, 2
je case.0x13a454c8.0
cmp eax, 6
je case.0x13a454c8.0
cmp eax, 7
je case.0x13a454c8.0
xor edi, edi
jmp case.0x13a454c8.2
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, 3
sete cl
mov edi, ecx
cmp esi, dword [ebx]
je 0x13a4551b
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 0x13a47010
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, dword [0x13aec358]
sub esp, 0x114
test eax, eax
jne 0x13a4715d
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
push 0x13aec1f0
mov dword [0x13aec358], 1
mov dword [0x13aec1f0], 0x94
call esi
mov edx, dword [0x13aec200]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x13ad56e8], eax
je 0x13a47138
push ebx
push 0x13aec288
mov dword [0x13aec288], 0x9c
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.kernel32.dll
call ebx
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 [0x13aec34c], eax
call edi
mov dword [0x13aec350], eax
mov eax, dword [0x13aec34c]
test eax, eax
push 0x13aec328
je 0x13a470b4
call eax
jmp 0x13a470ba
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x13aec28c]
cmp eax, 6
jae 0x13a470d2
cmp eax, 5
jne 0x13a470e6
cmp dword [0x13aec290], 2
jb 0x13a470e6
cmp word [0x13aec328], 9
jne 0x13a470e6
mov dword [0x13aec1e4], 1
push str.Ntdll.dll
call ebx
test eax, eax
pop ebx
je 0x13a47104
push str.RtlGetVersion
push eax
call edi
mov edx, eax
mov dword [0x13aec354], edx
jmp 0x13a4710a
mov edx, dword [0x13aec354]
test edx, edx
je 0x13a47138
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x114
push eax
call edx
test eax, eax
jne 0x13a47138
mov ecx, dword [esp + 0x14]
mov dword [0x13aec1fc], ecx
push 0x13aec1f8
push 0x13aec1f4
call fcn.13a47500
add esp, 8
call fcn.13a47170
pop edi
mov eax, 1
pop esi
add esp, 0x114
ret
mov eax, 1
add esp, 0x114
ret
Function at 0x13a48390
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x13abfc28
push 0x13a5ae10
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 [0x13aec35c]
xor ebx, ebx
cmp eax, ebx
jne 0x13a484f0
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 0x13a484eb
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 0x13ad1124
lea edx, [ebp - 0x224]
push edx
call fcn.13a57872
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.13a57ae6
add esp, 4
mov esi, eax
mov dword [ebp - 0x238], esi
cmp esi, ebx
je 0x13a484eb
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 0x13a484e2
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 0x13a484e2
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x234], eax
mov ecx, dword [eax]
mov dword [0x13aec35c], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x13a484e2
push esi
call fcn.13a57adb
add esp, 4
mov eax, dword [0x13aec35c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x13a4ac00
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 0x13a4acd3
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.13a57e30
add esp, 8
test eax, eax
je 0x13a4ac4c
mov byte [eax], 0
mov ebx, dword [esp + 0x114]
test ebx, ebx
je 0x13a4accc
mov esi, dword [esp + 0x118]
test esi, esi
je 0x13a4accc
lea edx, [esp + 0xc]
test edx, edx
je 0x13a4accc
mov eax, dword [esp + 0x11c]
mov edx, 0x7a
test eax, eax
je 0x13a4ac95
push eax
lea eax, [esp + 0x10]
push eax
push 0x13ad1124
push esi
push ebx
call fcn.13a5aee8
add esp, 0x14
xor edx, edx
mov esi, edx
jmp 0x13a4acdb
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jbe 0x13a4acc8
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 0x13a4acdb
mov esi, 0x57
jmp 0x13a4acdb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x13aec3d0], esi
je 0x13a4acec
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 0x13a53190
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
test ebx, ebx
jne 0x13a531ac
xor eax, eax
pop ebx
add esp, 0x208
ret
push ebp
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
push 0x207
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.13a57c80
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call fcn.13a57bc0
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 0x13a53230
cmp byte [esp + 0x10], 0x5c
jne 0x13a53230
cmp byte [esp + 0x11], 0x5c
jne 0x13a53230
lea edx, [esp + 0x12]
push 0x5c
push edx
call fcn.13a57bc0
add esp, 8
test eax, eax
je 0x13a532ae
inc eax
push 0x5c
push eax
call fcn.13a57bc0
add esp, 8
mov esi, eax
test esi, esi
je 0x13a532ae
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 0x13a53272
test bl, 1
je 0x13a53261
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 0x13a532e4
cmp ebx, 0xffffffff
je 0x13a5327b
test edi, edi
jne 0x13a5328a
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x13a532e4
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call fcn.13a57bc0
mov esi, eax
add esp, 8
test esi, esi
jne 0x13a53234
test ebp, ebp
je 0x13a532e4
mov ebx, dword [esp + 0x21c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x13a532d9
test al, 0x10
jne 0x13a532e4
test al, 1
je 0x13a532cc
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 0x13a532e4
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, 0x208
ret