joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1506ea0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.01506d3b
mov ebx, eax
test ebx, ebx
je 0x1506ee3
push esi
call fcn.01510554
pop ecx
inc eax
push eax
push esi
push 1
push 0
push dword [ebp - 8]
push ebx
call sub.ADVAPI32.DLL_RegSetValueExA
mov dword [ebp - 0xc], eax
mov eax, ebx
call fcn.01506dfd
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1506f08
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 8]
call fcn.01506d3b
mov ebx, eax
test ebx, ebx
je 0x1506f3d
push dword [ebp + 8]
push dword [ebp + 0xc]
push 3
push 0
push dword [ebp - 4]
push ebx
call sub.ADVAPI32.DLL_RegSetValueExA
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.01506dfd
mov eax, dword [ebp - 8]
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x1506f64
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
call fcn.01506dac
mov ebx, eax
mov esi, 1
test ebx, ebx
je 0x1506fa6
lea eax, [ebp + 8]
lea edx, [ebp - 0xc]
push eax
push edi
push edx
push 0
push dword [ebp - 8]
push ebx
call sub.ADVAPI32.DLL_RegQueryValueExA
mov esi, eax
mov eax, ebx
call fcn.01506dfd
test esi, esi
jne 0x1506fb0
cmp dword [ebp + 8], 0
jne 0x1506fc0
push dword [ebp + 0xc]
push edi
call fcn.01510524
add esp, 8
xor eax, eax
jmp 0x1506fc2
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1506fe8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff54
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [ebp + 0x10]
call fcn.0150293c
test eax, eax
je 0x1507066
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.01506dac
mov ebx, eax
lea edx, [ebp - 0xac]
mov ecx, 0x1000000
mov eax, dword [ebp - 8]
call fcn.01502450
mov esi, 1
test ebx, ebx
je 0x1507051
lea eax, [ebp + 8]
lea edx, [ebp - 0xc]
push eax
push edi
push edx
lea ecx, [ebp - 0xac]
push 0
push ecx
push ebx
call sub.ADVAPI32.DLL_RegQueryValueExW
mov esi, eax
mov eax, ebx
call fcn.01506dfd
test esi, esi
jne 0x150705b
cmp dword [ebp + 8], 0
ja 0x150705f
xor ebx, ebx
jmp 0x150709e
mov ebx, 1
jmp 0x150709e
mov eax, dword [ebp + 8]
inc eax
push eax
call fcn.0150f04c
pop ecx
mov esi, eax
push esi
push 0x151acf4
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.01506f64
mov ebx, eax
mov ecx, dword [ebp + 8]
mov edx, edi
mov eax, esi
call fcn.01502450
push esi
call fcn.0150ee88
pop ecx
test bl, bl
jne 0x15070ac
mov edx, dword [ebp + 0xc]
mov eax, edi
call fcn.015026b8
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1507b48
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov ebx, eax
push edi
mov dword [ebp - 4], edx
xor edx, edx
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0xc18], edx
cmp byte [ebx + 0x16], 0
mov esi, ecx
je 0x1507b6b
mov al, 1
cmp byte [ebp + 8], 0
mov edi, 0x80000000
je 0x1507b7c
or edi, 0x40000000
mov dword [ebp - 8], 1
test al, al
je 0x1507b8b
or dword [ebp - 8], 2
xor eax, eax
cmp byte [ebx + 0x15], 0
jne 0x1507b98
add eax, 0x8000000
mov dword [ebp - 0xc], eax
call fcn.0150293c
test eax, eax
je 0x1507bc5
test esi, esi
je 0x1507bc5
cmp word [esi], 0
je 0x1507bc5
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push esi
call sub.KERNEL32.DLL_CreateFileW
mov edi, eax
jmp 0x1507bdc
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push dword [ebp - 4]
call sub.KERNEL32.DLL_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x1507bf5
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jne 0x1507bf5
mov dword [ebx + 0xc18], 1
xor edx, edx
cmp edi, 0xffffffff
mov byte [ebx + 0x12], 0
setne cl
mov dword [ebx + 0xc], edx
and ecx, 1
mov byte [ebx + 0x10], 0
mov byte [ebp - 0xd], cl
cmp byte [ebp - 0xd], 0
je 0x1507c63
mov dword [ebx + 4], edi
test esi, esi
je 0x1507c2a
lea eax, [ebx + 0x418]
mov edx, esi
call fcn.015026b8
jmp 0x1507c33
mov word [ebx + 0x418], 0
cmp dword [ebp - 4], 0
je 0x1507c4a
push dword [ebp - 4]
lea ecx, [ebx + 0x17]
push ecx
call fcn.01510524
add esp, 8
jmp 0x1507c59
lea edx, [ebx + 0x17]
mov ecx, 0x1000000
mov eax, esi
call fcn.0150242c
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.01507c98
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1507e58
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push esi
push edi
mov edi, edx
cmp dword [ebx + 0xc], 1
mov esi, ecx
jne 0x1507e82
cmp esi, 0x4e20
jle 0x1507e78
mov esi, 0x4e20
push 0xfffffffffffffff6
call sub.KERNEL32.DLL_GetStdHandle
mov dword [ebx + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push esi
push edi
push dword [ebx + 4]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x1507ed2
mov eax, ebx
call fcn.015080c8
test al, al
je 0x1507eb9
cmp esi, 0x4e20
jle 0x1507eb9
mov ecx, 0x4e20
mov edx, edi
mov eax, ebx
call fcn.01507e58
jmp 0x1507ed5
cmp dword [ebx + 0xc], 1
jne 0x1507ecd
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x6d
jne 0x1507ecd
xor eax, eax
jmp 0x1507ed5
or eax, 0xffffffff
jmp 0x1507ed5
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

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

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.0150293c
test eax, eax
je 0x1509dbb
test ebx, ebx
je 0x1509dbb
cmp word [ebx], 0
je 0x1509dbb
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret
Function at 0x1509de4
Capabilities:
Get file attributes

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.0150293c
test eax, eax
je 0x1509e06
test ebx, ebx
je 0x1509e06
cmp word [ebx], 0
je 0x1509e06
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
pop esi
pop ebx
ret

Function at 0x150a4d4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, 0x1520340
mov dword [ebp - 4], edx
mov esi, ecx
cmp dword [edi + 4], 0
mov ebx, eax
jne 0x150a4f4
call fcn.0150a49c
mov eax, dword [ebp - 4]
jmp 0x150a50d
mov edx, ebx
xor ecx, ecx
xor dl, byte [eax]
dec esi
mov cl, dl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
inc eax
mov ebx, edx
test esi, esi
jbe 0x150a515
test al, 7
jne 0x150a4f9
cmp esi, 8
jb 0x150a59e
xor ebx, dword [eax]
xor ecx, ecx
mov cl, bl
sub esi, 8
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
xor ebx, dword [eax + 4]
add eax, 8
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
cmp esi, 8
mov ebx, edx
jae 0x150a51e
xor ecx, ecx
mov dword [ebp - 8], ecx
jmp 0x150a5c0
mov ecx, dword [ebp - 8]
mov edx, ebx
shr ebx, 8
xor dl, byte [eax + ecx]
and edx, 0xff
mov ecx, dword [edi + edx*4]
xor ecx, ebx
mov ebx, ecx
inc dword [ebp - 8]
cmp esi, dword [ebp - 8]
ja 0x150a5a5
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x150b582
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff3c4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov byte [ebp - 0x400], 0
lea eax, [ebp - 0x400]
mov edx, 0x400
call fcn.015078a8
cmp byte [ebp - 0x400], 0
je 0x150b5e2
lea ecx, [ebp - 0x400]
push ecx
call fcn.01510554
pop ecx
movzx eax, byte [ebp + eax - 0x401]
cmp eax, 0x5c
je 0x150b5e2
push 0x151b3aa
lea edx, [ebp - 0x400]
push edx
call fcn.01510448
add esp, 8
push str.rarcxtXXXXXX
lea ecx, [ebp - 0x400]
push ecx
call fcn.01510448
add esp, 8
lea eax, [ebp - 0x400]
push eax
call fcn.01511b68
pop ecx
test eax, eax
je 0x150b702
lea edx, [ebp - 0x400]
lea ecx, [ebp - 0xc00]
push edx
push ebx
push str.cw__y___s____s_
push 0x800
push ecx
call fcn.01512d68
add esp, 0x14
lea eax, [ebp - 0xc3c]
push 0x3c
push 0
push eax
call fcn.015103a4
add esp, 0xc
mov dword [ebp - 0xc3c], 0x3c
mov dword [ebp - 0xc38], 0x40
xor eax, eax
call fcn.0150e3a8
mov dword [ebp - 0xc2c], eax
lea edx, [ebp - 0xc00]
mov dword [ebp - 0xc28], edx
lea ecx, [ebp - 0xc3c]
mov dword [ebp - 0xc20], 1
push ecx
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
je 0x150b702
push 0xffffffffffffffff
push dword [ebp - 0xc04]
call sub.KERNEL32.DLL_WaitForSingleObject
push dword [ebp - 0xc04]
call sub.KERNEL32.DLL_CloseHandle
push 0x151b3a7
lea eax, [ebp - 0x400]
push eax
call fcn.01512028
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x150b702
push 0x8000
call fcn.0150f04c
pop ecx
mov dword [esi], eax
cmp dword [esi], 0
jne 0x150b6d3
push ebx
call fcn.01511cc0
pop ecx
jmp 0x150b702
push ebx
push 0x7fff
push 1
push dword [esi]
call fcn.015122a0
add esp, 0x10
mov dword [edi], eax
mov eax, dword [edi]
mov edx, dword [esi]
mov byte [edx + eax], 0
push ebx
call fcn.01511cc0
pop ecx
lea ecx, [ebp - 0x400]
push ecx
call sub.KERNEL32.DLL_DeleteFileA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x150c0ac
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push 0x64
lea eax, [ebp - 0x64]
push eax
push 0xf
push 0x400
call sub.KERNEL32.DLL_GetLocaleInfoA
xor eax, eax
mov al, byte [ebp - 0x64]
mov esp, ebp
pop ebp
ret
Function at 0x150c1ec
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffff84
push ebx
push esi
push edi
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], edx
mov edi, eax
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, 0x151b6b0
call fcn.015107c4
push 0x3c
push 0
lea edx, [ebp - 0x7c]
push edx
call fcn.015103a4
mov dword [ebp - 0x7c], 0x3c
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], esi
mov ecx, dword [ebp - 0x38]
add esp, 0xc
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], 1
call fcn.0150293c
test eax, eax
je 0x150c275
cmp dword [0x151b324], 0
jne 0x150c275
push str.shell32.dll
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x150c275
push str.ShellExecuteExW
push dword [ebp - 0x3c]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x151b324], eax
cmp dword [0x151b324], 0
je 0x150c34c
lea ecx, [ebp - 0x87c]
mov edx, dword [ebp - 0x34]
mov eax, edi
call fcn.015020fc
lea eax, [ebp - 0x87c]
mov dword [ebp - 0x6c], eax
lea ecx, [ebp - 0x107c]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x38]
call fcn.015020fc
lea edx, [ebp - 0x107c]
mov dword [ebp - 0x64], edx
mov word [ebp - 0x20], 8
mov word [ebp - 0x20], 0x14
lea eax, [ebp - 0xc]
call fcn.01501398
inc dword [ebp - 0x14]
mov word [ebp - 0x20], 0x20
test ebx, ebx
je 0x150c2f0
cmp word [ebx], 0
je 0x150c2f0
mov eax, ebx
call fcn.015026a4
mov edx, eax
lea eax, [ebp - 0xc]
inc edx
call fcn.0150172c
jmp 0x150c302
push esi
call fcn.01510554
pop ecx
mov edx, eax
inc edx
lea eax, [ebp - 0xc]
call fcn.0150172c
mov ecx, dword [ebp - 0xc]
mov edx, ebx
mov eax, esi
call fcn.015020fc
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x68], edx
push ecx
call dword [0x151b324]
mov dword [ebp - 0x40], eax
dec dword [ebp - 0x14]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.01501504
mov word [ebp - 0x20], 8
mov word [ebp - 0x20], 0
jmp 0x150c358
lea ecx, [ebp - 0x7c]
push ecx
call sub.SHELL32.DLL_ShellExecuteExA
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x150c366
push dword [ebp - 0x44]
call sub.KERNEL32.DLL_CloseHandle
cmp dword [ebp - 0x40], 0
setne al
and eax, 1
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x150c67c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbc4
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [0x1521774]
mov eax, 0x1521744
call fcn.01501874
mov edx, ebx
shl edx, 3
sub edx, ebx
add eax, edx
add eax, 0x400
push eax
call fcn.0150f04c
pop ecx
mov ebx, eax
test ebx, ebx
je 0x150c753
mov eax, esi
call fcn.0150c06c
push 1
push 0
mov cl, byte [ebp + 0xc]
mov edx, esi
mov eax, ebx
call fcn.0150e5fc
push esi
lea edx, [ebp - 0x400]
push edx
call fcn.01510524
add esp, 8
lea eax, [ebp - 0x400]
call fcn.01501cf0
push 0x3c
push 0
lea edx, [ebp - 0x43c]
push edx
call fcn.015103a4
add esp, 0xc
mov dword [ebp - 0x43c], 0x3c
xor eax, eax
call fcn.0150e3a8
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x428], ebx
lea edx, [ebp - 0x400]
lea ecx, [ebp - 0x43c]
mov dword [ebp - 0x424], edx
mov dword [ebp - 0x420], 1
push ecx
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
je 0x150c74c
push dword [ebp - 0x404]
call sub.KERNEL32.DLL_CloseHandle
push ebx
call fcn.0150ee78
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x150df98
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [0x1521774]
mov eax, 0x1521744
call fcn.01501864
mov eax, 0x1521744
call fcn.015017dc
cmp dword [ebp - 4], 0
mov esi, eax
je 0x150dfe0
push dword [ebp - 4]
push ebx
call fcn.01510524
add esp, 8
mov eax, ebx
call fcn.01501ca8
jmp 0x150dfe3
mov byte [ebx], 0
mov eax, esi
call fcn.01501ac8
mov dword [ebp - 8], eax
push ebx
call fcn.01510554
pop ecx
push eax
push dword [ebp - 8]
call fcn.01510554
pop ecx
pop edx
add edx, eax
cmp edx, 0x400
jae 0x150e015
push dword [ebp - 8]
push ebx
call fcn.01510448
add esp, 8
mov byte [ebp - 9], 0
cmp edi, 1
jle 0x150e0c3
push 0x400
push esi
lea ecx, [ebp - 0x410]
push ecx
call fcn.015106b8
add esp, 0xc
mov byte [ebp - 0x11], 0
cmp byte [0x151d880], 0
je 0x150e05b
lea edx, [ebp - 0x410]
mov eax, 0x151d780
mov ecx, 0x5c
call fcn.015028d0
jmp 0x150e06c
push 0x5c
lea eax, [ebp - 0x410]
push eax
call fcn.015105f8
add esp, 8
mov dword [ebp - 0x10], eax
test eax, eax
je 0x150e0c3
mov edx, dword [ebp - 0x10]
mov byte [edx], 0
cmp byte [0x151d880], 0
je 0x150e099
lea edx, [ebp - 0x410]
mov eax, 0x151d780
mov ecx, 0x5c
call fcn.015028d0
jmp 0x150e0aa
push 0x5c
lea eax, [ebp - 0x410]
push eax
call fcn.015105f8
add esp, 8
mov dword [ebp - 0x10], eax
test eax, eax
je 0x150e0c3
mov edx, dword [ebp - 0x10]
inc edx
push edx
push ebx
call fcn.01510524
add esp, 8
mov byte [ebp - 9], 1
cmp byte [ebx], 0
jne 0x150e0d6
push str.Archive
push ebx
call fcn.01510524
add esp, 8
dec edi
jne 0x150e0ec
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x150e0ec
test al, 0x10
je 0x150e0ec
mov byte [ebp - 9], 1
xor eax, eax
jmp 0x150e0ff
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x3f
jne 0x150e0fe
mov byte [ebx + eax], 0x5f
inc eax
cmp byte [ebx + eax], 0
jne 0x150e0f0
cmp byte [ebp - 9], 0
jne 0x150e129
push 0x2e
cmp byte [ebx], 0
je 0x150e117
lea ecx, [ebx + 1]
jmp 0x150e119
mov ecx, ebx
push ecx
call fcn.015105fd
add esp, 8
test eax, eax
je 0x150e129
mov byte [eax], 0
mov eax, str.UseRAR
mov edx, 1
call fcn.0150e8e8
test eax, eax
setne al
and eax, 1
test al, al
je 0x150e154
push str..rar
push ebx
call fcn.01510448
add esp, 8
jmp 0x150e162
push str..zip
push ebx
call fcn.01510448
add esp, 8
mov eax, ebx
call fcn.0150c06c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x150e3a8
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
mov ecx, 0x151b388
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsWinRAR.exe
push ebx
push 0x1522d64
mov ebx, eax
push str.winrar.exe
push 0x400
mov eax, 0x80000002
call fcn.01506f64
push 0x400
lea eax, [ebp - 0x400]
push eax
push 0x1522d64
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
push 0x3ff
lea edx, [ebp - 0x400]
push edx
push 0x1522d64
call fcn.015106b8
add esp, 0xc
mov byte [0x1523163], 0
test bl, bl
je 0x150e428
xor ecx, ecx
mov cl, byte [0x1522d64]
cmp ecx, 0x22
je 0x150e428
mov eax, 0x1522d64
call fcn.0150c06c
mov eax, 0x1522d64
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x150fd7c
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.01512488
test byte [ebp + 0xd], 0xc0
jne 0x151164c
mov eax, dword [0x151c460]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x1511659
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x1511686
je 0x1511698
sub ecx, 0x100
je 0x15116a6
sub ecx, 0x100
je 0x15116ad
sub ecx, 0x100
je 0x151169f
jmp 0x15116b4
sub ecx, 0x600
je 0x15116ad
sub ecx, 0x100
je 0x1511698
jmp 0x15116b4
mov edi, 1
jmp 0x15116b9
mov edi, 2
jmp 0x15116b9
mov edi, 4
jmp 0x15116b9
mov edi, 5
jmp 0x15116b9
mov edi, 3
test byte [ebp + 0xd], 1
je 0x15116e0
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x151bed8]
test al, 0x80
je 0x15116d9
mov ebx, 0x80
jmp 0x15116f2
mov ebx, 1
jmp 0x15116f2
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x15116f2
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x1511704
je 0x151170d
dec eax
je 0x1511716
jmp 0x151171f
mov dword [ebp - 4], 0x80000000
jmp 0x151172e
mov dword [ebp - 4], 0x40000000
jmp 0x151172e
mov dword [ebp - 4], 0xc0000000
jmp 0x151172e
push 1
call fcn.01512860
pop ecx
mov ebx, eax
jmp 0x151181a
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x151174a
sub eax, 0x10
je 0x1511751
sub eax, 0x10
je 0x151175a
sub eax, 0x10
je 0x1511763
jmp 0x1511763
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x151176a
mov dword [ebp - 8], 1
jmp 0x151176a
mov dword [ebp - 8], 2
jmp 0x151176a
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x15117d3
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x15117c8
test byte [ebp + 0xd], 1
mov ebx, 0x50
jne 0x15117c8
add ebx, 0xffffffb2
push ebx
call fcn.01512860
pop ecx
mov ebx, eax
jmp 0x151181a
mov edi, esi
push edi
call fcn.0151158c
pop ecx
test eax, eax
je 0x15117e7
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x15117f3
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.01512588
add esp, 8
mov ebx, eax
inc eax
jne 0x151181a
push 4
call fcn.01512860
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.015124bc
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1516448
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x15164aa
call fcn.015163f8
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.01510554
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.01510554
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x1516528
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x151d3b8], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x1516602
cmp dword [0x151d3b4], 0
jne 0x1516602
cmp dword [0x151d4f4], 0
je 0x15165bc
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.015163a0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x15165a2
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.015163a0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x15165a2
lea ebx, [ebp - 0x84]
jmp 0x15165a3
inc ebx
call fcn.015164e4
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x151663d
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x151d3bc
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.01510554
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x151d3bf
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x151663d
cmp dword [0x151d3b4], 0
je 0x151661c
cmp dword [0x151d3b4], 0xffffffff
je 0x151663d
push esi
call dword [0x151d3b4]
pop ecx
mov eax, dword [0x151d3b8]
test eax, eax
je 0x151663d
cmp dword [0x151d3b8], 0xffffffff
je 0x151663d
cmp byte [eax], 0
je 0x151663d
push esi
push eax
call fcn.01516448
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1517410
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov dword [ebp - 8], 1
mov dword [ebp - 4], esi
cmp edi, 1
jne 0x1517496
mov eax, dword [0x152390c]
inc dword [0x152390c]
test eax, eax
jne 0x1517496
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x15238d8], eax
mov edx, dword [ebp + 0x10]
mov dword [0x151a15b], edx
mov ecx, dword [esi + 0x44]
push ecx
call fcn.01511e64
pop ecx
cmp dword [0x151d43c], 0
je 0x1517481
call fcn.01517294
mov ebx, eax
test eax, eax
je 0x1517481
mov edx, dword [ebx]
cmp dword [ebx + edx*4 + 4], 0xffffffff
je 0x1517481
mov ecx, dword [ebx]
inc dword [ebx]
mov dword [ebx + ecx*4 + 4], esi
jmp 0x1517496
xor eax, eax
lea edx, [ebp - 8]
push 0
push edx
mov dword [0x151d43c], eax
call fcn.0151729c
add esp, 8
mov ecx, dword [ebp + 0x18]
push ecx
push edi
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [esi + 0x18]
push edx
call fcn.015175a4
mov ebx, eax
test edi, edi
jne 0x1517505
test edi, edi
jne 0x15174d6
dec dword [0x152390c]
jne 0x15174d6
cmp dword [0x15238d8], 0
je 0x15174d6
mov eax, dword [0x15238d8]
push eax
call sub.KERNEL32.DLL_FreeEnvironmentStringsA
xor edx, edx
mov dword [0x15238d8], edx
cmp dword [0x152390c], 0
jne 0x1517505
cmp dword [0x151d43c], 0
jne 0x1517505
cmp dword [0x151d42c], 0
je 0x15174f7
call dword [0x151d42c]
push 1
lea ecx, [ebp - 8]
push ecx
call fcn.0151729c
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret