joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b4e5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004041e5
sub ebx, ebx
cmp dword [0x434898], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40b5ba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
pop edi
cmp edi, ebx
jne 0x40b525
sub eax, eax
jmp 0x40b67e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40b51e
push eax
call fcn.00404182
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434898], eax
call esi
push eax
call fcn.00404182
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43489c], eax
call esi
push eax
call fcn.00404182
mov dword [0x4348a0], eax
lea eax, [ebp - 8]
push eax
call fcn.004067af
or eax, eax
pop ecx
pop ecx
je 0x40b588
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40b5ba
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404182
cmp eax, ebx
pop ecx
mov dword [0x4348a8], eax
je 0x40b5ba
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404182
pop ecx
mov dword [0x4348a4], eax
mov eax, dword [0x4348a4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40b633
cmp dword [0x4348a8], esi
je 0x40b633
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
je 0x40b600
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4348a8]
call fcn.004041ee
pop ecx
call eax
test eax, eax
je 0x40b600
test byte [ebp - 0x18], 1
jne 0x40b633
lea eax, [ebp - 0xc]
push eax
call fcn.004067e6
test eax, eax
pop ecx
je 0x40b61b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40b62a
or dword [ebp + 0x10], 0x200000
jmp 0x40b664
or dword [ebp + 0x10], 0x40000
jmp 0x40b664
mov eax, dword [0x43489c]
cmp eax, esi
je 0x40b664
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40b664
mov eax, dword [0x4348a0]
cmp eax, esi
je 0x40b664
push dword [ebp - 4]
push eax
call fcn.004041ee
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x434898]
call fcn.004041ee
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x150265c
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff7c
mov ebx, eax
mov edi, esp
mov ebp, str.Formats.fmt
lea eax, [ebx + 4]
push eax
call sub.KERNEL32.DLL_LoadLibraryA
mov esi, eax
mov dword [ebx + 0x404], esi
test esi, esi
jne 0x150268b
xor eax, eax
jmp 0x1502808
lea edx, [ebp + 0x29]
push edx
push esi
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 0x48c], eax
lea ecx, [ebp + 0x31]
push ecx
push dword [ebx + 0x404]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 0x490], eax
lea eax, [ebp + 0x36]
push eax
push dword [ebx + 0x404]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 0x494], eax
lea edx, [ebp + 0x3c]
push edx
push dword [ebx + 0x404]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 0x498], eax
lea ecx, [ebp + 0x48]
push ecx
push dword [ebx + 0x404]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 0x49c], eax
lea eax, [ebp + 0x54]
push eax
push dword [ebx + 0x404]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 0x4a0], eax
lea edx, [ebp + 0x5c]
push edx
push dword [ebx + 0x404]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 0x4a4], eax
cmp dword [ebx + 0x48c], 0
je 0x150272b
cmp dword [ebx + 0x490], 0
jne 0x1502732
xor eax, eax
jmp 0x1502808
push 0x84
push 0
push edi
call fcn.0150c930
add esp, 0xc
mov dword [edi], 0x84
mov dword [edi + 4], 0x1501eb8
mov dword [edi + 8], 0x1501ec1
mov dword [edi + 0xc], 0x1501ec8
mov dword [edi + 0x10], 0x1501edd
mov dword [edi + 0x14], 0x1501ee9
mov dword [edi + 0x18], 0x1501f0c
mov dword [edi + 0x1c], 0x1501f0f
mov dword [edi + 0x20], 0x1501f10
mov dword [edi + 0x24], 0x1501f17
mov dword [edi + 0x28], 0x1501f1e
mov dword [edi + 0x2c], 0x1501f25
mov dword [edi + 0x30], 0x1501f2c
mov dword [edi + 0x34], 0x1501f36
mov dword [edi + 0x38], 0x1501f3f
mov dword [edi + 0x3c], fcn.01501f00
mov dword [edi + 0x40], 0x1501fd1
push 0x84
push 0
lea edx, [ebx + 0x408]
push edx
call fcn.0150c930
add esp, 0xc
lea ecx, [ebx + 0x408]
mov dword [ebx + 0x408], 0x84
push ecx
push edi
call dword [ebx + 0x48c]
cmp dword [ebx + 0x488], 0
je 0x1502806
push dword [ebx + 0x404]
call sub.KERNEL32.DLL_FreeLibrary
xor eax, eax
mov dword [ebx + 0x404], eax
xor eax, eax
jmp 0x1502808
mov al, 1
add esp, 0x84
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x15053e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
mov edi, dword [ebp + 0x10]
mov esi, ecx
call fcn.0150529e
mov ebx, eax
lea eax, [ebp + 8]
push eax
push edi
lea edx, [ebp - 8]
push edx
push 0
push esi
push ebx
call sub.ADVAPI32.DLL_RegQueryValueExA
mov esi, eax
mov eax, ebx
call fcn.015052d5
test ebx, ebx
je 0x150541e
test esi, esi
je 0x150542e
push dword [ebp + 0xc]
push edi
call fcn.0150ca98
add esp, 8
xor eax, eax
jmp 0x1505430
mov al, 1
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x150543c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
mov esi, ecx
call fcn.0150529e
mov ebx, eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
push edi
lea edx, [ebp - 8]
push edx
push 0
push esi
push ebx
call sub.ADVAPI32.DLL_RegQueryValueExA
mov esi, eax
mov eax, ebx
call fcn.015052d5
test ebx, ebx
je 0x1505481
test esi, esi
je 0x150548a
mov edx, dword [ebp + 8]
xor eax, eax
mov dword [edi], edx
jmp 0x150548c
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x15054e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
call fcn.0150529e
mov ebx, eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
push eax
push esi
lea edx, [ebp - 0xc]
push edx
push 0
push dword [ebp - 8]
push ebx
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0x14], eax
mov eax, ebx
call fcn.015052d5
test ebx, ebx
je 0x150552a
cmp dword [ebp - 0x14], 0
je 0x150554f
cmp dword [ebp + 0xc], 0
je 0x150553f
push edi
push dword [ebp + 0xc]
push esi
call fcn.0150c8c0
add esp, 0xc
jmp 0x150554b
push edi
push 0
push esi
call fcn.0150c930
add esp, 0xc
xor eax, eax
jmp 0x1505552
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1505a34
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
push 0x1514b37
push esi
mov edx, str.TempFolder
mov eax, str.Paths
mov ecx, ebx
call fcn.015053c4
cmp byte [ebx], 0
je 0x1505a61
push ebx
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x1505a7f
push ebx
push esi
call sub.KERNEL32.DLL_GetTempPathA
test eax, eax
je 0x1505a71
cmp byte [ebx], 0
jne 0x1505a7f
push str._rartemp
push ebx
call fcn.0150ca98
add esp, 8
pop esi
pop ebx
ret
Function at 0x1505bec
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
cmp byte [ebp + 8], 0
mov edi, 0x80000000
mov esi, ecx
mov ebx, eax
je 0x1505c0d
or edi, 0x40000000
mov dword [ebp - 8], 1
cmp dword [0x1518bc8], 0
jne 0x1505c23
cmp byte [ebp + 0xc], 0
je 0x1505c27
or dword [ebp - 8], 2
call fcn.01501cdc
test eax, eax
je 0x1505c54
test esi, esi
je 0x1505c54
cmp word [esi], 0
je 0x1505c54
push 0
push 0x8000000
push 3
push 0
push dword [ebp - 8]
push edi
push esi
call sub.KERNEL32.DLL_CreateFileW
mov dword [ebx + 4], eax
jmp 0x1505c6e
push 0
push 0x8000000
push 3
push 0
push dword [ebp - 8]
push edi
push dword [ebp - 4]
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebx + 4], eax
cmp dword [ebx + 4], 0xffffffff
jne 0x1505c8e
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jne 0x1505c85
mov edi, 2
jmp 0x1505c87
xor edi, edi
call fcn.01510874
mov dword [eax], edi
mov byte [ebx + 8], 0
mov byte [ebx + 0xa], 0
mov byte [ebx + 0xb], 0
test esi, esi
je 0x1505cab
lea eax, [ebx + 0x40e]
mov edx, esi
call fcn.01501bc0
push dword [ebp - 4]
lea ecx, [ebx + 0xd]
push ecx
call fcn.0150ca98
add esp, 8
cmp dword [ebx + 4], 0xffffffff
setne al
and eax, 1
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x1505d5c
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, eax
cmp byte [ebx + 0xa], 0
je 0x1505d69
xor eax, eax
pop ebx
ret
cmp dword [ebx + 4], 0xffffffff
je 0x1505d76
mov eax, ebx
call fcn.01505cf8
call fcn.01501cdc
test eax, eax
je 0x1505d9f
cmp word [ebx + 0x40e], 0
je 0x1505d9f
add ebx, 0x40e
push ebx
call sub.KERNEL32.DLL_DeleteFileW
test eax, eax
setne al
and eax, 1
jmp 0x1505db0
add ebx, 0xd
push ebx
call sub.KERNEL32.DLL_DeleteFileA
test eax, eax
setne al
and eax, 1
pop ebx
ret

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

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.01501cdc
test eax, eax
je 0x1507373
test ebx, ebx
je 0x1507373
cmp word [ebx], 0
je 0x1507373
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 0x150739c
Capabilities:
Get file attributes

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.01501cdc
test eax, eax
je 0x15073be
test ebx, ebx
je 0x15073be
cmp word [ebx], 0
je 0x15073be
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 0x1507924
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, 0x1519edc
push edi
push ebp
mov ebp, edx
cmp dword [esi + 4], 0
mov edi, ecx
mov ebx, eax
jne 0x150793e
call fcn.015078ec
mov eax, ebp
cmp edi, 8
jb 0x15079c9
xor ebx, dword [eax]
xor edx, edx
mov dl, bl
sub edi, 8
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
xor ebx, dword [eax + 4]
add eax, 8
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
cmp edi, 8
mov ebx, ecx
jae 0x1507949
xor edx, edx
jmp 0x15079e3
mov ecx, ebx
xor cl, byte [eax + edx]
and ecx, 0xff
shr ebx, 8
mov ecx, dword [esi + ecx*4]
xor ecx, ebx
mov ebx, ecx
inc edx
cmp edi, edx
ja 0x15079cd
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x15086c8
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff9ac
mov edi, ecx
mov esi, edx
mov ebx, eax
mov byte [esp], 0
mov eax, esp
mov edx, 0x400
call fcn.01505a34
cmp byte [esp], 0
je 0x1508712
push esp
call fcn.0150cac8
pop ecx
xor ecx, ecx
mov cl, byte [esp + eax - 1]
cmp ecx, 0x5c
je 0x1508712
push 0x1514e56
lea eax, [esp + 4]
push eax
call fcn.0150c9bc
add esp, 8
push str.rarcxtXXXXXX
lea edx, [esp + 4]
push edx
call fcn.0150c9bc
add esp, 8
push esp
call fcn.0150db8c
pop ecx
test eax, eax
je 0x1508825
push esp
push ebx
call fcn.0150ad3c
push eax
push str._s_cw__y___s____s_
lea ecx, [esp + 0x410]
push ecx
call fcn.0150ed84
add esp, 0x14
push 0x44
push 0
lea eax, [esp + 0x608]
push eax
call fcn.0150c930
add esp, 0xc
mov dword [esp + 0x600], 0x44
lea edx, [esp + 0x644]
push edx
lea ecx, [esp + 0x604]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x420]
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
je 0x1508825
push 0xffffffffffffffff
push dword [esp + 0x648]
call sub.KERNEL32.DLL_WaitForSingleObject
push dword [esp + 0x648]
call sub.KERNEL32.DLL_CloseHandle
push dword [esp + 0x644]
call sub.KERNEL32.DLL_CloseHandle
push 0x1514e53
lea edx, [esp + 4]
push edx
call fcn.0150e04c
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x1508825
push 0x8000
call fcn.0150b708
pop ecx
mov ebp, eax
mov dword [esi], ebp
test ebp, ebp
jne 0x15087fc
push ebx
call fcn.0150dce4
pop ecx
jmp 0x1508825
push ebx
push 0x7fff
push 1
push dword [esi]
call fcn.0150e2c4
add esp, 0x10
mov ebp, eax
mov dword [edi], ebp
mov eax, dword [esi]
mov byte [eax + ebp], 0
push ebx
call fcn.0150dce4
pop ecx
push esp
call sub.KERNEL32.DLL_DeleteFileA
add esp, 0x654
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x1509090
Capabilities:
Get geographical location

Disassembly:
add esp, 0xffffff9c
push 0x64
lea eax, [esp + 4]
push eax
push 0xf
push 0x400
call sub.KERNEL32.DLL_GetLocaleInfoA
xor eax, eax
mov al, byte [esp]
add esp, 0x64
ret
Function at 0x15096b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf8
push ebx
mov ebx, dword [ebp + 0xc]
cmp ebx, 1
jne 0x15097ff
call fcn.0150ad3c
push eax
lea eax, [ebp - 0x408]
push eax
call fcn.0150ca98
add esp, 8
lea ecx, [ebp - 0x408]
mov eax, 0x1519a90
mov edx, dword [ebp + 8]
call fcn.01507a60
push 0x5c
lea ecx, [ebp - 0x408]
push ecx
call fcn.0150cb7d
add esp, 8
test eax, eax
je 0x1509722
push str.rarext.lng
inc eax
push eax
call fcn.0150ca98
add esp, 8
lea edx, [ebp - 0x408]
mov eax, 0x1519a70
call fcn.01507d0c
mov dword [0x151ad20], 0x94
push 0x151ad20
call sub.KERNEL32.DLL_GetVersionExA
push 0x1514e83
push 0
push 0
push 0
push 0
push 0xffffffffffffff86
push 0
push 0
push 0
push 0x2bc
push 0
push 0
push 0
push 0xfffffffffffffff4
call sub.GDI32.DLL_CreateFontA
mov dword [0x151adb4], eax
call fcn.01501cdc
cmp eax, 5
jl 0x150979a
push 0x1514e91
push 0
push 0
push 0
push 0
push 0xffffffffffffff86
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push 0xfffffffffffffff4
call sub.GDI32.DLL_CreateFontA
mov dword [0x151adb8], eax
jmp 0x15097c9
push 0x1514e98
push 0
push 0
push 0
push 0
push 0x86
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push 0xfffffffffffffff4
call sub.GDI32.DLL_CreateFontA
mov dword [0x151adb8], eax
xor edx, edx
mov dword [ebp - 8], edx
push 4
call sub.USER32.DLL_GetSysColor
mov dword [ebp - 4], eax
lea ecx, [ebp - 8]
push 1
push ecx
push 0
push 0x1004
push dword [0x1519a68]
call sub.COMCTL32.DLL_CreateMappedBitmap
mov dword [0x1514dcc], eax
mov eax, 0x151aae0
call fcn.0150205c
test ebx, ebx
jne 0x1509838
push dword [0x151adb4]
call sub.GDI32.DLL_DeleteObject
push dword [0x151adb8]
call sub.GDI32.DLL_DeleteObject
push dword [0x1514dcc]
call sub.GDI32.DLL_DeleteObject
mov eax, 0x151aae0
call fcn.015023f0
mov eax, 0x1519a90
call fcn.01507ae4
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x150a918
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff9a8
mov ebp, eax
mov edi, 0x1514e4c
mov esi, dword [0x151ad1c]
mov eax, 0x151ace8
call fcn.015017b0
mov eax, 0x151ace8
call fcn.01501730
mov ebx, eax
mov eax, ebx
call fcn.01501954
push eax
push ebp
call fcn.0150ca98
add esp, 8
cmp esi, 1
mov byte [esp], 0
jle 0x150a9b5
push ebx
lea edx, [esp + 0xc]
push edx
call fcn.0150ca98
add esp, 8
push 0x5c
lea ecx, [esp + 0xc]
push ecx
call fcn.0150cb7d
add esp, 8
test eax, eax
mov dword [esp + 4], eax
je 0x150a9b5
mov edx, dword [esp + 4]
mov byte [edx], 0
push 0x5c
lea ecx, [esp + 0xc]
push ecx
call fcn.0150cb7d
add esp, 8
test eax, eax
mov dword [esp + 4], eax
je 0x150a9b5
mov edx, dword [esp + 4]
inc edx
push edx
push ebp
call fcn.0150ca98
add esp, 8
mov byte [esp], 1
cmp byte [ebp], 0
jne 0x150a9cb
lea ecx, [edi + 0xb1]
push ecx
push ebp
call fcn.0150ca98
add esp, 8
dec esi
jne 0x150a9e1
push ebx
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x150a9e1
test al, 0x10
je 0x150a9e1
mov byte [esp], 1
mov bl, 1
xor esi, esi
jmp 0x150aa0c
test bl, bl
je 0x150a9fb
mov al, byte [ebp + esi]
push eax
call sub.USER32.DLL_IsCharLowerA
test eax, eax
je 0x150a9fb
xor ebx, ebx
xor eax, eax
mov al, byte [ebp + esi]
cmp eax, 0x3f
jne 0x150aa0b
mov byte [ebp + esi], 0x5f
inc esi
cmp byte [ebp + esi], 0
jne 0x150a9e7
test bl, bl
je 0x150aa1d
push ebp
call sub.USER32.DLL_CharLowerA
cmp byte [esp], 0
jne 0x150aa35
push 0x2e
push ebp
call fcn.0150cb7d
add esp, 8
test eax, eax
je 0x150aa35
mov byte [eax], 0
mov bl, 1
xor esi, esi
push esi
lea eax, [edi + 0xb9]
push eax
lea edx, [esp + 0x410]
push edx
call fcn.0150ed84
add esp, 0xc
lea ecx, [edi + 4]
push ecx
push pe_nt_image_headers32
lea ecx, [esp + 0x460]
lea edx, [edi + 0xc5]
lea eax, [esp + 0x410]
call fcn.015053c4
cmp byte [esp + 0x458], 0
je 0x150aab9
lea edx, [edi + 0xca]
lea eax, [esp + 0x408]
xor ecx, ecx
call fcn.01505498
test eax, eax
je 0x150aab6
lea edx, [edi + 0xd2]
lea eax, [esp + 0x408]
mov ecx, 1
call fcn.01505498
test eax, eax
setne bl
and ebx, 1
jmp 0x150aab9
inc esi
jmp 0x150aa39
test bl, bl
je 0x150aacf
lea eax, [edi + 0xd9]
push eax
push ebp
call fcn.0150c9bc
add esp, 8
jmp 0x150aadf
lea edx, [edi + 0xde]
push edx
push ebp
call fcn.0150c9bc
add esp, 8
mov eax, ebp
call fcn.01509050
add esp, 0x658
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x150c394
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 0x150d64c
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.0150e4ac
test byte [ebp + 0xd], 0xc0
jne 0x150d670
mov eax, dword [0x1515d58]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x150d67d
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x150d6aa
je 0x150d6bc
sub ecx, 0x100
je 0x150d6ca
sub ecx, 0x100
je 0x150d6d1
sub ecx, 0x100
je 0x150d6c3
jmp 0x150d6d8
sub ecx, 0x600
je 0x150d6d1
sub ecx, 0x100
je 0x150d6bc
jmp 0x150d6d8
mov edi, 1
jmp 0x150d6dd
mov edi, 2
jmp 0x150d6dd
mov edi, 4
jmp 0x150d6dd
mov edi, 5
jmp 0x150d6dd
mov edi, 3
test byte [ebp + 0xd], 1
je 0x150d704
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x15157d0]
test al, 0x80
je 0x150d6fd
mov ebx, 0x80
jmp 0x150d716
mov ebx, 1
jmp 0x150d716
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x150d716
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x150d728
je 0x150d731
dec eax
je 0x150d73a
jmp 0x150d743
mov dword [ebp - 4], 0x80000000
jmp 0x150d752
mov dword [ebp - 4], 0x40000000
jmp 0x150d752
mov dword [ebp - 4], 0xc0000000
jmp 0x150d752
push 1
call fcn.0150e884
pop ecx
mov ebx, eax
jmp 0x150d83e
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x150d76e
sub eax, 0x10
je 0x150d775
sub eax, 0x10
je 0x150d77e
sub eax, 0x10
je 0x150d787
jmp 0x150d787
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x150d78e
mov dword [ebp - 8], 1
jmp 0x150d78e
mov dword [ebp - 8], 2
jmp 0x150d78e
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 0x150d7f7
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x150d7ec
test byte [ebp + 0xd], 1
mov ebx, 0x50
jne 0x150d7ec
add ebx, 0xffffffb2
push ebx
call fcn.0150e884
pop ecx
mov ebx, eax
jmp 0x150d83e
mov edi, esi
push edi
call fcn.0150d5b0
pop ecx
test eax, eax
je 0x150d80b
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x150d817
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.0150e5ac
add esp, 8
mov ebx, eax
inc eax
jne 0x150d83e
push 4
call fcn.0150e884
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.0150e4e0
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x151080c
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 0x151086e
call fcn.015107bc
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0150cac8
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.0150cac8
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 0x15108ec
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x1516708], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x15109c6
cmp dword [0x1516704], 0
jne 0x15109c6
cmp dword [0x1516844], 0
je 0x1510980
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.01510764
add esp, 8
mov ebx, eax
test eax, eax
jne 0x1510966
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.01510764
add esp, 8
mov ebx, eax
test eax, eax
jne 0x1510966
lea ebx, [ebp - 0x84]
jmp 0x1510967
inc ebx
call fcn.015108a8
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x1510a01
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x151670c
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0150cac8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x151670f
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x1510a01
cmp dword [0x1516704], 0
je 0x15109e0
cmp dword [0x1516704], 0xffffffff
je 0x1510a01
push esi
call dword [0x1516704]
pop ecx
mov eax, dword [0x1516708]
test eax, eax
je 0x1510a01
cmp dword [0x1516708], 0xffffffff
je 0x1510a01
cmp byte [eax], 0
je 0x1510a01
push esi
push eax
call fcn.0151080c
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret