joyce8/EMBER2024-capa huggingface dataset:
Function at 0x493459
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp + 0xc]
shr eax, 4
inc eax
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
push 6
push dword [ebp - 0xc]
push dword [esi + 8]
call sub.KERNEL32.dll_FindResourceA
mov edi, eax
test edi, edi
je 0x493501
mov dword [ebp - 0x10], edi
push dword [ebp - 0x10]
push dword [esi + 8]
call sub.KERNEL32.dll_LoadResource
mov dword [ebp - 4], eax
test eax, eax
je 0x493501
push dword [ebp - 4]
call sub.KERNEL32.dll_LockResource
mov edi, eax
test eax, eax
je 0x4934f1
mov eax, dword [ebp + 0xc]
and eax, 0xf
jmp 0x4934b9
add ebx, ebx
add edi, ebx
mov bx, word [edi]
add edi, 2
movzx ebx, bx
mov edx, eax
add eax, 0xffffffff
test edx, edx
jne 0x4934b5
test ebx, ebx
je 0x4934f1
push 0
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push edi
push 0
push 0
call sub.KERNEL32.dll_WideCharToMultiByte
mov ebx, eax
test ebx, ebx
jbe 0x4934f1
mov eax, dword [ebp + 0x10]
mov byte [eax + ebx], 0
push dword [ebp - 4]
call sub.KERNEL32.dll_FreeResource
test ebx, ebx
je 0x493501
mov eax, ebx
jmp 0x493530
cmp esi, dword [0x4ce698]
je 0x493522
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [0x4ce698]
call fcn.00493459
add esp, 0x10
jmp 0x493530
cmp dword [ebp + 0x14], 0
je 0x49352e
mov edx, dword [ebp + 0x10]
mov byte [edx], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x495d33
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test eax, eax
jne 0x495d55
mov eax, dword [ebx + 0x14]
push eax
push edx
mov edx, dword [ebx]
push dword [edx + 0xc]
call sub.USER32.dll_GetWindowTextA
jmp 0x495d65
dec eax
jne 0x495d65
mov eax, edx
push eax
mov edx, dword [ebx]
push dword [edx + 0xc]
call sub.USER32.dll_SetWindowTextA
mov eax, dword [ebx + 0x14]
pop ebx
pop ebp
ret

Function at 0x49a694
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
mov eax, 0x4ceff0
push ebx
call fcn.0049d698
mov word [ebp - 0x18], 8
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00499210
add esp, 8
inc dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [edx], 0x4cf154
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x12], 0
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x13], edx
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x17], 0
mov ebx, dword [ebp + 8]
add ebx, 0x18
call fcn.0049a5c5
test al, al
je 0x49a749
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x49a749
mov word [ebp - 0x18], 0x20
mov eax, dword [ebp - 4]
mov dword [eax], 0x4af41c
inc dword [ebp - 0xc]
inc dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov dword [edx], 0x4cf144
mov ecx, dword [ebp - 4]
mov byte [ecx + 8], 0
push 0
push 0
push 0
call sub.KERNEL32.dll_CreateMutexA
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x49a743
call sub.KERNEL32.dll_GetLastError
cmp eax, 0xb7
jne 0x49a743
mov ecx, dword [ebp - 4]
mov byte [ecx + 8], 1
mov word [ebp - 0x18], 0x14
inc dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov byte [eax + 0x3c], 0
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
mov eax, dword [ebp + 8]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49e4ec
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0xff
mov eax, dword [ebp + 8]
push eax
push 0x4d4938
call fcn.004a154c
add esp, 0xc
lea edx, [ebp - 8]
push 0
push 0
push 0
push edx
push 0x4d4938
call fcn.0049e740
add esp, 0x14
push 0x4d0644
lea ecx, [ebp - 8]
push ecx
call fcn.0049ae68
add esp, 8
mov byte [0x4d4938], 0
push 0
push 0
push 0
push 0
push 0
push 0xff
push 0x4d4938
lea eax, [ebp - 8]
push eax
call sub.KERNEL32.dll_GetVolumeInformationA
test eax, eax
je 0x49e55f
mov eax, 0x4d4938
jmp 0x49e561
xor eax, eax
pop ecx
pop ecx
pop ebp
ret
Function at 0x49e568
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov ebx, dword [esi]
test byte [ebx + 8], 8
je 0x49e58d
cmp dword [ebx + 4], 0xfffffffe
jne 0x49e58d
or eax, 0xffffffff
jmp 0x49e6c5
test byte [ebx + 8], 8
je 0x49e5fa
cmp dword [ebx + 4], 0xffffffff
jne 0x49e5fa
mov dword [esi + 8], 8
mov edx, dword [ebx + 0xc]
push edx
call fcn.0049e4ec
pop ecx
mov edi, eax
test edi, edi
je 0x49e5e2
add esi, 0x10
xor eax, eax
push esi
push edi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov dword [ebx + 4], 0xfffffffe
xor eax, eax
jmp 0x49e6c5
call fcn.004a1c04
test eax, eax
jne 0x49e5f2
xor eax, eax
jmp 0x49e6c5
or eax, 0xffffffff
jmp 0x49e6c5
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
je 0x49e607
cmp eax, 0xfffffffe
jne 0x49e62e
mov dword [ebx + 4], 0xffffffff
lea edx, [ebp - 0x148]
push edx
mov ecx, dword [ebx + 0xc]
push ecx
call sub.KERNEL32.dll_FindFirstFileA
mov edi, eax
mov dword [ebx + 4], edi
cmp edi, 0xffffffff
setne al
and eax, 1
jmp 0x49e63e
lea edx, [ebp - 0x148]
push edx
mov ecx, dword [ebx + 4]
push ecx
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x49e654
call fcn.004a1c04
test eax, eax
jne 0x49e64f
xor eax, eax
jmp 0x49e6c5
or eax, 0xffffffff
jmp 0x49e6c5
mov eax, dword [ebp - 0x148]
test al, 0x16
je 0x49e668
mov edx, dword [ebx + 8]
and edx, eax
test dl, 0x16
je 0x49e5fa
mov ecx, dword [ebp - 0x148]
mov dword [esi + 8], ecx
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x134]
push edx
call sub.KERNEL32.dll_FileTimeToLocalFileTime
lea ecx, [esi + 0xc]
push ecx
lea eax, [esi + 0xe]
push eax
lea edx, [ebp - 8]
push edx
call sub.KERNEL32.dll_FileTimeToDosDateTime
mov ecx, dword [ebp - 0x128]
xor eax, eax
mov dword [esi + 4], ecx
add esi, 0x10
push esi
lea edi, [ebp - 0x11c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a1240
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_SetCurrentDirectoryA
dec eax
je 0x4a125c
call fcn.004a1c24
jmp 0x4a12cb
lea edx, [ebp - 0x108]
push edx
push 0x104
call sub.KERNEL32.dll_GetCurrentDirectoryA
test eax, eax
jne 0x4a1278
call fcn.004a1c24
jmp 0x4a12cb
cmp dword [0x4d4db4], 1
je 0x4a12c9
movsx ecx, byte [ebp - 0x108]
push ecx
call fcn.004a7844
pop ecx
cmp al, 0x41
jl 0x4a12c9
cmp al, 0x5a
jg 0x4a12c9
cmp byte [ebp - 0x107], 0x3a
jne 0x4a12c9
mov byte [ebp - 4], 0x3d
mov byte [ebp - 3], al
lea eax, [ebp - 0x108]
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push eax
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.dll_SetEnvironmentVariableA
dec eax
je 0x4a12c9
call fcn.004a1c24
jmp 0x4a12cb
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4a12d0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push esi
call sub.KERNEL32.dll_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4a12ec
call fcn.004a1c24
jmp 0x4a130d
test byte [ebp + 0xc], 0x80
jne 0x4a12f7
or ebx, 1
jmp 0x4a12fa
and ebx, 0xfffffffe
push ebx
push esi
call sub.KERNEL32.dll_SetFileAttributesA
dec eax
je 0x4a130b
call fcn.004a1c24
jmp 0x4a130d
xor eax, eax
pop esi
pop ebx
pop ebp
ret

Function at 0x4a1314
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.KERNEL32.dll_GetCurrentDirectoryA
cmp byte [ebp - 0x104], 0x61
jl 0x4a1343
movsx edx, byte [ebp - 0x104]
add edx, 0xffffffa0
jmp 0x4a134d
movsx edx, byte [ebp - 0x104]
add edx, 0xffffffc0
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov esp, ebp
pop ebp
ret

Function at 0x4a1358
Capabilities:
Get disk information
Query environment variable
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
xor eax, eax
lea ecx, [ebp - 4]
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x108]
mov dword [esi], eax
mov byte [ebp - 4], 0x3d
mov dl, byte [ebp + 8]
add dl, 0x40
mov byte [ebp - 3], dl
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push 0x104
push edi
push ecx
call sub.KERNEL32.dll_GetEnvironmentVariableA
test eax, eax
jne 0x4a13be
mov al, byte [ebp - 3]
mov byte [edi], al
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
push edi
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.dll_SetEnvironmentVariableA
dec eax
je 0x4a13be
call fcn.004a1c24
jmp 0x4a13f9
push edi
call sub.KERNEL32.dll_SetCurrentDirectoryA
dec eax
je 0x4a13ce
call fcn.004a1c24
jmp 0x4a13f9
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
mov byte [edi], 0x41
jmp 0x4a13f4
push edi
call sub.KERNEL32.dll_GetDriveTypeA
mov ebx, eax
test eax, eax
je 0x4a13f2
cmp ebx, 1
je 0x4a13f2
inc dword [esi]
inc byte [edi]
cmp byte [edi], 0x5a
jle 0x4a13df
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a154c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
call fcn.004a8430
pop ecx
mov ebx, eax
test eax, eax
jne 0x4a1570
xor eax, eax
jmp 0x4a1619
lea edx, [ebp - 4]
push edx
push ebx
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call sub.KERNEL32.dll_GetFullPathNameA
mov esi, eax
test esi, esi
je 0x4a1591
cmp esi, 0x104
jb 0x4a159c
push ebx
call fcn.004a831c
pop ecx
xor eax, eax
jmp 0x4a1619
cmp byte [ebx + 1], 0x3a
jne 0x4a15cc
mov dl, byte [ebx]
lea ecx, [ebp - 8]
mov byte [ebp - 8], dl
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], 0x5c
mov byte [ebp - 5], 0
push ecx
call sub.KERNEL32.dll_GetDriveTypeA
cmp eax, 2
jae 0x4a15cc
push ebx
call fcn.004a831c
pop ecx
xor eax, eax
jmp 0x4a1619
inc esi
test edi, edi
je 0x4a160f
cmp esi, dword [ebp + 0x10]
jbe 0x4a15e1
push ebx
call fcn.004a831c
pop ecx
xor eax, eax
jmp 0x4a1619
push edi
mov esi, edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push ebx
call fcn.004a831c
pop ecx
mov eax, edi
jmp 0x4a1619
push esi
push ebx
call fcn.004a8900
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4a1620
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x4a1666
lea eax, [ebp - 0x10c]
push eax
push 0x103
call sub.KERNEL32.dll_GetCurrentDirectoryA
test eax, eax
je 0x4a1654
cmp eax, dword [ebp + 0x10]
jle 0x4a16ef
call fcn.004a8b60
mov dword [eax], 8
xor eax, eax
jmp 0x4a175c
cmp dword [0x4d4db4], 1
jne 0x4a16ab
mov eax, ebx
lea ecx, [ebp - 0x10c]
mov edx, eax
add dl, 0x40
add ecx, 3
mov byte [ebp - 0x10c], dl
mov dl, al
mov byte [ebp - 0x10b], 0x3a
mov byte [ebp - 0x10a], 0x5c
mov byte [ebp - 0x109], 0
mov ah, 0x47
mov esi, ecx
int 0x21
jae 0x4a16ef
xor eax, eax
jmp 0x4a175c
call sub.KERNEL32.dll_GetLogicalDrives
lea ecx, [ebx - 1]
mov edx, 1
shl edx, cl
test edx, eax
je 0x4a16eb
add bl, 0x40
lea eax, [ebp - 8]
mov byte [ebp - 4], bl
lea edx, [ebp - 0x10c]
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x2e
mov byte [ebp - 1], 0
push eax
push edx
lea ecx, [ebp - 4]
push 0x103
push ecx
call sub.KERNEL32.dll_GetFullPathNameA
jmp 0x4a16ef
xor eax, eax
jmp 0x4a175c
lea edx, [ebp - 0x10c]
push edx
call fcn.0049af74
pop ecx
cmp eax, dword [ebp + 0x10]
jl 0x4a1710
call fcn.004a8b60
mov dword [eax], 0x22
xor eax, eax
jmp 0x4a175c
test edi, edi
jne 0x4a1733
mov edx, dword [ebp + 0x10]
push edx
call fcn.004a8430
pop ecx
mov edi, eax
test eax, eax
jne 0x4a1733
call fcn.004a8b60
mov dword [eax], 8
xor eax, eax
jmp 0x4a175c
push edi
mov esi, edi
xor eax, eax
lea edi, [ebp - 0x10c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a1764
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
test al, al
jne 0x4a1779
xor eax, eax
jmp 0x4a178d
add al, 0x40
mov byte [ebp - 4], al
lea eax, [ebp - 4]
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x5c
mov byte [ebp - 1], 0
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push edx
lea edx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push edx
push ecx
push eax
call sub.KERNEL32.dll_GetDiskFreeSpaceA
dec eax
je 0x4a17af
mov dword [ebx + 0xc], 0xffffffff
jmp 0x4a17c6
mov eax, dword [ebp - 0x14]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx], eax
mov edx, dword [ebp - 8]
mov dword [ebx + 0xc], edx
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 8], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a1e54
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb8
push ebx
push esi
push edi
xor esi, esi
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push 0x26
push 0
push ebx
call fcn.0049adbc
add esp, 0xc
mov word [ebx + 6], 1
lea eax, [ebp - 0x144]
push eax
push edi
call sub.KERNEL32.dll_FindFirstFileA
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x4a1f61
push 0x4d0db0
push edi
call fcn.004a7780
add esp, 8
test eax, eax
je 0x4a1f03
push 0
push edi
push 0
call fcn.004a154c
add esp, 0xc
mov esi, eax
test eax, eax
je 0x4a1f03
push esi
call fcn.0049af74
pop ecx
cmp eax, 3
jne 0x4a1f03
push esi
call sub.KERNEL32.dll_GetDriveTypeA
cmp eax, 2
jae 0x4a1eda
call fcn.004a1c24
jmp 0x4a1ff5
mov word [ebx + 4], 0x4000
movsx edx, byte [esi]
push edx
call fcn.004a7844
add ax, 0xffc0
pop ecx
mov word [ebx + 0x10], ax
mov word [ebx], ax
push esi
call fcn.004a831c
pop ecx
xor eax, eax
jmp 0x4a1ff5
test esi, esi
je 0x4a1f0e
push esi
call fcn.004a831c
pop ecx
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push edi
call sub.KERNEL32.dll_CreateFileA
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x4a1f35
call fcn.004a1c24
jmp 0x4a1ff5
mov si, 0x1000
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_GetFileType
cmp eax, 3
je 0x4a1f4d
add esi, 0x1000
mov word [ebx + 4], si
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
jmp 0x4a1ff5
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_FindClose
mov ecx, dword [ebp - 0x124]
lea edx, [ebp - 0x130]
push ecx
lea ecx, [ebp - 0x138]
mov eax, dword [ebp - 0x128]
push eax
push edx
push ecx
lea eax, [ebp - 0x140]
push eax
mov edx, dword [ebp - 0x144]
push edx
push ebx
call fcn.004ac260
add esp, 0x1c
cmp byte [edi + 1], 0x3a
jne 0x4a1fa7
mov al, byte [edi]
jmp 0x4a1fc6
lea edx, [ebp - 0x248]
push edx
push 0x104
call sub.KERNEL32.dll_GetCurrentDirectoryA
test eax, eax
jne 0x4a1fc0
mov al, 0x41
jmp 0x4a1fc6
mov al, byte [ebp - 0x248]
cmp al, 0x61
jl 0x4a1fda
cmp al, 0x7a
jg 0x4a1fda
movsx edx, al
add dx, 0xff9f
mov word [ebx], dx
jmp 0x4a1fec
cmp al, 0x41
jl 0x4a1fec
cmp al, 0x5a
jg 0x4a1fec
movsx ecx, al
add cx, 0xffbf
mov word [ebx], cx
mov ax, word [ebx]
mov word [ebx + 0x10], ax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a1ffc
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
cmp dword [ebp + 0xc], 1
mov esi, dword [ebp + 8]
jne 0x4a2027
lea eax, [ebp + 0x10]
add eax, 4
mov ebx, dword [eax - 4]
push ebx
push esi
call sub.KERNEL32.dll_SetFileAttributesA
test eax, eax
jne 0x4a203b
call fcn.004a1c24
jmp 0x4a203d
push esi
call sub.KERNEL32.dll_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4a203b
call fcn.004a1c24
jmp 0x4a203d
mov eax, ebx
pop esi
pop ebx
pop ebp
ret
Function at 0x4a240c
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.004a17f8
test byte [ebp + 0xd], 0xc0
jne 0x4a2430
mov eax, dword [0x4d064c]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x4a243d
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x4a246a
je 0x4a247c
sub ecx, 0x100
je 0x4a248a
sub ecx, 0x100
je 0x4a2491
sub ecx, 0x100
je 0x4a2483
jmp 0x4a2498
sub ecx, 0x600
je 0x4a2491
sub ecx, 0x100
je 0x4a247c
jmp 0x4a2498
mov edi, 1
jmp 0x4a249d
mov edi, 2
jmp 0x4a249d
mov edi, 4
jmp 0x4a249d
mov edi, 5
jmp 0x4a249d
mov edi, 3
test byte [ebp + 0xd], 1
je 0x4a24c4
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x4d0c28]
test al, 0x80
je 0x4a24bd
mov ebx, 0x80
jmp 0x4a24d6
mov ebx, 1
jmp 0x4a24d6
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4a24d6
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x4a24e8
je 0x4a24f1
dec eax
je 0x4a24fa
jmp 0x4a2503
mov dword [ebp - 4], 0x80000000
jmp 0x4a2512
mov dword [ebp - 4], 0x40000000
jmp 0x4a2512
mov dword [ebp - 4], 0xc0000000
jmp 0x4a2512
push 1
call fcn.004a1bb8
pop ecx
mov ebx, eax
jmp 0x4a25fe
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x4a252e
sub eax, 0x10
je 0x4a2535
sub eax, 0x10
je 0x4a253e
sub eax, 0x10
je 0x4a2547
jmp 0x4a2547
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x4a254e
mov dword [ebp - 8], 1
jmp 0x4a254e
mov dword [ebp - 8], 2
jmp 0x4a254e
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 0x4a25b7
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x4a25ac
test byte [ebp + 0xd], 1
mov ebx, 0x50
jne 0x4a25ac
add ebx, 0xffffffb2
push ebx
call fcn.004a1bb8
pop ecx
mov ebx, eax
jmp 0x4a25fe
mov edi, esi
push edi
call fcn.004a2370
pop ecx
test eax, eax
je 0x4a25cb
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x4a25d7
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.004a18f8
add esp, 8
mov ebx, eax
inc eax
jne 0x4a25fe
push 4
call fcn.004a1bb8
pop ecx
push esi
call sub.KERNEL32.dll_CloseHandle
call fcn.004a182c
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a8730
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 0x4a8e0c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
cmp dword [0x4d1db4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4a8ec4
cmp byte [0x4ad1de], 0
je 0x4a8e7e
push 0x50
lea eax, [ebp - 0x54]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x54]
push edx
call fcn.004a77ec
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4a8e67
push 0x3a
lea edx, [ebp - 0x54]
push edx
call fcn.004a77ec
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4a8e67
lea ebx, [ebp - 0x54]
jmp 0x4a8e68
inc ebx
call fcn.004a8dc4
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.dll_MessageBoxA
jmp 0x4a8ee5
push 0xfffffffffffffff4
call sub.KERNEL32.dll_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4d1db8
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0049af74
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4d1dbb
push ebx
call sub.KERNEL32.dll_WriteFile
jmp 0x4a8ee5
cmp dword [0x4d1db4], 0xffffffff
je 0x4a8ee5
mov eax, dword [0x4d1db4]
test eax, eax
je 0x4a8ee5
cmp byte [eax], 0
je 0x4a8ee5
push esi
push eax
call fcn.004a8f74
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a9534
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4d4e44], 0
jne 0x4a95b5
cmp dword [0x4d4e60], 0
jne 0x4a9564
call sub.KERNEL32.dll_GetEnvironmentStrings
mov dword [0x4d4e60], eax
test eax, eax
jne 0x4a9564
push str.GetEnvironmentStrings_failed
call fcn.004a8efc
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4d4e60]
jmp 0x4a9578
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.0049af74
pop ecx
mov edi, eax
test eax, eax
jne 0x4a9570
lea edi, [ebp + 1]
push edi
call fcn.004a8430
pop ecx
mov ebx, eax
mov dword [0x4d4e48], ebx
test ebx, ebx
jne 0x4a95a2
xor eax, eax
jmp 0x4a9678
push edi
mov edx, dword [0x4d4e60]
push edx
push ebx
call fcn.0049ad4c
add esp, 0xc
jmp 0x4a95d5
xor esi, esi
mov ebx, dword [0x4d4e44]
jmp 0x4a95cf
push eax
call fcn.0049af74
pop ecx
test eax, eax
jne 0x4a95cb
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4a95bf
lea ebx, [esi + 4]
push 4
mov dword [0x4d4e4c], ebx
inc ebx
push ebx
call fcn.004a7860
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x4a95f8
xor eax, eax
jmp 0x4a9678
cmp dword [0x4d4e44], 0
jne 0x4a9629
xor esi, esi
mov ebx, dword [0x4d4e48]
mov eax, dword [esp]
mov ebp, eax
jmp 0x4a961a
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.0049af74
pop ecx
mov edi, eax
test eax, eax
jne 0x4a9610
jmp 0x4a965a
xor esi, esi
mov ebx, dword [0x4d4e44]
mov eax, dword [esp]
mov edi, eax
jmp 0x4a9654
push eax
call fcn.0049af74
pop ecx
test eax, eax
je 0x4a9649
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x4a964d
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4a9638
mov eax, dword [0x4d4e44]
test eax, eax
je 0x4a966a
push eax
call fcn.004a831c
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4d4e44], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4ab83c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp + 0xc]
cmp esi, 0x10
jge 0x4ab862
test esi, esi
je 0x4ab862
call fcn.004a8b60
mov dword [eax], 0x13
or eax, 0xffffffff
jmp 0x4ab8ce
call fcn.004ab618
mov ebx, eax
test eax, eax
jne 0x4ab87d
call fcn.004a8b60
mov dword [eax], 8
or eax, 0xffffffff
jmp 0x4ab8ce
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 4]
mov dword [ebx + 4], edx
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x14], ecx
push eax
mov edx, dword [ebp + 0x18]
push edx
push ebx
push 0x4ab7ac
push esi
mov ecx, dword [ebp + 0x14]
push ecx
call sub.KERNEL32.dll_CreateThread
test eax, eax
jne 0x4ab8c2
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x718
jne 0x4ab8bb
push 0x59
call fcn.004a1bb8
pop ecx
jmp 0x4ab8ce
call fcn.004a1c24
jmp 0x4ab8ce
mov dword [ebx + 8], eax
test edi, edi
je 0x4ab8ce
mov edx, dword [ebp - 4]
mov dword [edi], edx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret