joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4831b4
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00482e73
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4831fe
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004820c8
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00403fd0
jmp 0x483209
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004a184e
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x48320f
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0048df98
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x48324c
call fcn.00482e73
mov dword [esi + 0xc], 1
jmp 0x483251
call fcn.00482e73
cmp dword [esi], 0
je 0x48329a
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x483272
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004820c8
jmp 0x483284
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.004044c0
push pe_nt_image_headers32
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00403fd0
jmp 0x4832be
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x4832be
push dword [esi]
push dword [ebp + 8]
call fcn.004a184e
pop esi
pop ebp
ret 0xc

Function at 0x486652
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00487004
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x48668b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00486294
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x4866e9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x48670d
cmp dword [edi + 0x74], 0
jne 0x48670d
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00487004
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004866aa
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x48de8c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x48ded3
call fcn.00487004
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x48ded3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x48deef
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0048d991
mov esi, eax
test edi, edi
je 0x48deed
test ebx, ebx
je 0x48deed
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x48e6a6
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5ad94b
call fcn.0058d22f
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x48e6cb
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x48e71d
call fcn.00482696
push eax
lea ecx, [ebp - 0x10]
call fcn.00404300
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00588b74
push eax
call fcn.0047fedf
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004010f0
mov eax, esi
call fcn.0058d307
ret 8

Function at 0x48f374
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x48f39f
call fcn.00487004
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 8], eax
test eax, eax
jne 0x48f3c2
push eax
push dword [esi + 4]
call fcn.0048f2fa
push esi
push eax
mov ecx, 0x631b1c
call fcn.0048ef9e
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x48fc42
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x5a8309
call fcn.0058d22f
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x20]
mov ebx, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0048fc02
and dword [ebp - 4], 0
mov dword [esi], vtable.CHttpConnection.0
call fcn.00482696
push eax
lea ecx, [esi + 0x18]
call fcn.00404300
push dword [ebp + 0xc]
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.00404710
push dword [esi + 8]
mov ebx, dword [ebx + 8]
push dword [ebp + 0x10]
push 3
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 4], eax
test eax, eax
jne 0x48fcba
push eax
push dword [esi + 8]
call fcn.0048f2fa
push dword [esi + 0xc]
mov ecx, 0x631b1c
push eax
call fcn.0048ef9e
mov eax, esi
call fcn.0058d307
ret 0x1c

Function at 0x490300
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x62dc50]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x490348
push 0x5c7ab0
push 4
push eax
call fcn.00589394
push eax
call fcn.0047fedf
add esp, 0x10
jmp 0x49035e
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4903e1
push edi
call fcn.0058d428
mov edi, dword [eax]
call fcn.0058d428
and dword [eax], 0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00589199
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.0058d428
cmp dword [eax], 0
je 0x4903b5
call fcn.0058d428
push dword [eax]
call fcn.00482e39
pop ecx
jmp 0x4903bc
call fcn.0058d428
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
pop edi
je 0x4903e1
cmp dword [ebp - 0x11c], esi
jae 0x4903e1
push 0
push 0
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x4903e3
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00587964
leave
ret
Function at 0x4903f0
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x62dc50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.00480015
pop ecx
cmp eax, esi
je 0x4904da
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x4904da
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.0058c670
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x4904da
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x4904da
cmp esi, 0x14
jge 0x4904da
push 0x10
push 0
push edi
call fcn.0058de63
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4904c9
call fcn.0058d428
cmp dword [eax], 0x22
je 0x4904c9
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.0058cbaf
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x49049f
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x631b60], 0
jne 0x490565
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x49058e
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.00490300
pop ecx
pop ecx
test eax, eax
jne 0x490590
inc edi
cmp edi, esi
jl 0x49056b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00587964
leave
ret 8
Function at 0x4994d6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x49951e
call fcn.00487004
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x49951e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x499561
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x49954a
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x49954a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x49955e
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4a2768
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x62dc50]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4a279d
xor eax, eax
jmp 0x4a27f0
lea eax, [ebp - 0x210]
push eax
call fcn.0058cbaf
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x4a27ce
push 0x5c9a20
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0058ea04
add esp, 0xc
test eax, eax
jne 0x4a2799
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0058ea04
add esp, 0xc
test eax, eax
jne 0x4a2799
lea eax, [ebp - 0x210]
push eax
call fcn.004894dd
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00587964
leave
ret

Function at 0x4ce0af
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4ce0c9
call fcn.00487004
mov esi, dword [eax + 0xc]
push dword [0x632e40]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4ce0e7
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4ce0df
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4ce114
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4ce0e1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004cdfdd
mov esi, eax
jmp 0x4ce106
Function at 0x51e6e2
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0056ee9b
call fcn.00486a21
cmp dword [eax + 0x14], 0
jne 0x51e6ff
mov ecx, esi
pop esi
jmp fcn.0051e1e7
pop esi
ret

Function at 0x521818
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004b6e64
call fcn.00486a21
cmp dword [eax + 0x14], 0
jne 0x521835
mov ecx, esi
pop esi
jmp fcn.005211eb
pop esi
ret

Function at 0x562fa4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x562fbc
mov edi, dword [esi + 0xc]
jmp 0x562ffc
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x562fd5
call fcn.00483b60
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x562fea
call fcn.00483b60
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x562ffc
call fcn.00483b60
call fcn.00487004
cmp dword [eax + 0x3c], 0
je 0x563011
push edi
mov ecx, ebx
call fcn.00561de0
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00562ebe
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x56302f
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x56303b
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x587964
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x62dc50]
jne 0x58796e
repz ret
jmp fcn.00591264
Function at 0x5a2ce5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x62dc50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0058864f
and dword [ebp - 0x14], 0
cmp dword [0x6362d8], 0
mov dword [ebp - 0x18], eax
jne 0x5a2d98
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x5a2e40
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x5a2e40
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5ed218
push ebx
mov dword [0x6362d8], eax
call edi
push eax
call esi
push 0x5ed204
push ebx
mov dword [0x6362dc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x6362e0], eax
call edi
push eax
call esi
mov dword [0x6362e8], eax
test eax, eax
je 0x5a2d98
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x6362e4], eax
mov eax, dword [0x6362e4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x5a2df1
cmp dword [0x6362e8], ecx
je 0x5a2df1
push eax
call esi
push dword [0x6362e8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x5a2df1
test ebx, ebx
je 0x5a2df1
call edi
test eax, eax
je 0x5a2de8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x5a2de8
test byte [ebp - 8], 1
jne 0x5a2df1
or dword [ebp + 0x10], 0x200000
jmp 0x5a2e24
mov eax, dword [0x6362dc]
cmp eax, dword [ebp - 0x18]
je 0x5a2e24
push eax
call esi
test eax, eax
je 0x5a2e24
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x5a2e24
mov eax, dword [0x6362e0]
cmp eax, dword [ebp - 0x18]
je 0x5a2e24
push eax
call esi
test eax, eax
je 0x5a2e24
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x6362d8]
call esi
test eax, eax
je 0x5a2e40
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x5a2e42
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00587964
leave
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x5a76f0
call fcn.0058d43b
mov dword [eax], esi
call fcn.0058d428
push 0x16
pop esi
mov dword [eax], esi
call fcn.005914f4
mov eax, esi
jmp 0x5a7745
test dword [ebp + 0xc], 0xfffffff9
jne 0x5a76d6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5a771d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0058d44e
pop ecx
call fcn.0058d428
mov eax, dword [eax]
jmp 0x5a7745
test al, 0x10
jne 0x5a7743
test al, 1
je 0x5a7743
test byte [ebp + 0xc], 2
je 0x5a7743
call fcn.0058d43b
mov dword [eax], 5
call fcn.0058d428
mov dword [eax], 0xd
jmp 0x5a7714
xor eax, eax
pop esi
pop ebp
ret
Function at 0xe6a108
Capabilities:
Decompress data using aplib

Disassembly:
call 0xe6a258
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xe6a12e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xe6a11a
add dl, dl
jne 0xe6a139
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xe6a18c
xor eax, eax
add dl, dl
jne 0xe6a146
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xe6a22d
add dl, dl
jne 0xe6a155
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe6a160
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe6a16b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe6a176
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xe6a182
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xe6a125
mov eax, 1
add dl, dl
jne 0xe6a19a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe6a1a5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xe6a191
sub eax, ebx
mov ebx, 1
jne 0xe6a1d8
mov ecx, 1
add dl, dl
jne 0xe6a1be
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xe6a1c9
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xe6a1b5
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xe6a125
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xe6a1ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xe6a1fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xe6a1e6
cmp eax, 0x7d00
jae 0xe6a21d
cmp eax, 0x500
jb 0xe6a218
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xe6a125
cmp eax, 0x7f
ja 0xe6a220
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xe6a125
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xe6a24e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xe6a125
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401000
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2a24
call fcn.00401f50
mov eax, dword [0x40b050]
mov dword [esp + 0x2a20], eax
push ebx
xor eax, eax
push esi
push edi
mov byte [esp + 0x228], 0
mov ecx, 0x9ff
lea edi, [esp + 0x229]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x120], 0
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0x121]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x228]
xor ebx, ebx
push eax
push 0x2800
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsA]
test eax, eax
je 0x4010d0
lea esi, [esp + 0x228]
mov ecx, esi
push ebx
push ecx
call fcn.00401e50
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x4010d0
mov ebx, dword [sym.imp.KERNEL32.DLL_GetDriveTypeA]
mov edi, edi
cmp edi, esi
je 0x4010d0
push esi
call ebx
cmp eax, 3
je 0x4010e5
lea esi, [edi + 1]
push 0
push esi
call fcn.00401e50
mov edi, eax
add esp, 8
test edi, edi
jne 0x4010b0
xor eax, eax
mov ecx, dword [esp + 0x2a2c]
call fcn.00401f3f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x104
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0x104
lea eax, [esp + 0x138]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationA]
mov ecx, dword [esp + 0x2a2c]
mov eax, dword [esp + 0xc]
call fcn.00401f3f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401260
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push edi
xor edx, edx
xor eax, eax
mov dword [esp + 0x14], edx
mov ecx, 0x10
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
push 0x40ba38
push edx
push 0x4000000
push edx
push edx
push edx
push ecx
push edx
mov dword [esp + 0x2c], edx
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
pop edi
add esp, 0x54
ret