joyce8/EMBER2024-capa huggingface dataset:
Function at 0x485cfc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdcc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edi, eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x485f63
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetFilePointer
movzx eax, byte [edi + 0x8f]
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x485f1f
cmp byte [0x70f6b2], 0
jne 0x485d87
mov eax, ebx
call fcn.0046b4e4
test al, al
je 0x485dc4
push 0x485f84
lea edx, [ebp - 0x220]
mov eax, ebx
call fcn.00417f3c
mov eax, dword [ebp - 0x220]
lea edx, [ebp - 0x21c]
call fcn.00429ee0
push dword [ebp - 0x21c]
push 0x485f9c
lea eax, [ebp - 4]
mov edx, 3
call fcn.0040a568
jmp 0x485dd3
lea eax, [ebp - 4]
mov edx, ebx
mov ecx, 0
call fcn.0040a85c
push 0x485fac
lea eax, [ebp - 0x228]
mov edx, dword [0x710074]
mov ecx, 0
call fcn.0040a3a8
push dword [ebp - 0x228]
push 0x485fbc
push 0x485fcc
lea edx, [ebp - 0x230]
mov eax, ebx
call fcn.00483098
mov edx, dword [ebp - 0x230]
lea eax, [ebp - 0x22c]
mov ecx, 0
call fcn.0040a85c
push dword [ebp - 0x22c]
push 0x485fe8
push dword [ebp - 4]
push 0x486000
push 0x485fbc
push 0x486010
push 0x485fbc
push 0x486040
push dword [ebp - 4]
push 0x486000
push 0x485fbc
push 0x485fbc
lea eax, [ebp - 0x224]
mov edx, 0x10
call fcn.0040a568
mov edx, dword [ebp - 0x224]
mov eax, edi
call fcn.00484e40
mov esi, dword [ebp - 0xc]
test esi, esi
jbe 0x485f1f
cmp esi, 0xff
jbe 0x485e91
mov ebx, 0xff
jmp 0x485e93
mov ebx, esi
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x215]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x485eb3
cmp ebx, dword [ebp - 0x14]
je 0x485ec5
mov edx, 0x485fbc
mov eax, edi
call fcn.00484e40
mov byte [ebp - 0xd], 0
jmp 0x485f1f
lea ecx, [ebp - 0x234]
lea eax, [ebp - 0x215]
mov edx, ebx
call fcn.00429da8
lea eax, [ebp - 0x234]
mov edx, 0x485fbc
call fcn.0040a48c
mov edx, dword [ebp - 0x234]
mov eax, edi
call fcn.00484e40
sub esi, ebx
cmp dword [ebp + 8], 0
je 0x485f17
mov eax, dword [ebp - 0xc]
sub eax, esi
imul eax, eax, 0x3e8
xor edx, edx
div dword [ebp - 0xc]
mov edx, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x18]
test esi, esi
ja 0x485e82
mov eax, dword [ebp + 8]
mov edx, dword [eax]
call dword [edx + 0x24]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485f6a
lea eax, [ebp - 0x234]
call fcn.00409c84
lea eax, [ebp - 0x230]
call fcn.00409c60
lea eax, [ebp - 0x22c]
mov edx, 5
call fcn.00409cf0
lea eax, [ebp - 4]
call fcn.00409c84
ret
Function at 0x489688
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4897a1
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
push 0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetFilePointer
mov esi, dword [ebp - 0xc]
cmp byte [ebp + 8], 0
je 0x4896d2
mov dword [ebp - 0x10], 0x600
jmp 0x4896d9
mov dword [ebp - 0x10], 0x800
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call fcn.0040a7e4
test esi, esi
jbe 0x489783
cmp esi, dword [ebp - 0x10]
jae 0x4896ff
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, esi
call fcn.0040a7e4
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a15c
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x48972c
mov eax, dword [ebp - 4]
call fcn.0040a15c
cmp eax, dword [ebp - 0x14]
je 0x489730
xor ebx, ebx
jmp 0x489783
cmp byte [ebp + 8], 0
je 0x48974f
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00429ee0
mov edx, dword [ebp - 0x18]
mov eax, edi
call fcn.00488a7c
mov ebx, eax
jmp 0x48975b
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.00488a7c
mov ebx, eax
test bl, bl
je 0x489783
sub esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
sub eax, esi
imul eax, eax, 0x3e8
xor edx, edx
div dword [ebp - 0xc]
mov edx, eax
mov eax, edi
call fcn.00488fcc
test esi, esi
ja 0x4896ee
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4897a8
lea eax, [ebp - 0x18]
call fcn.00409c84
lea eax, [ebp - 4]
call fcn.00409c84
ret
Function at 0x48f088
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409d44
xor eax, eax
push ebp
push 0x48f1cb
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004181a8
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.0040a088
cmp dword [ebp - 4], 0
je 0x48f1a1
mov eax, dword [ebp - 4]
call fcn.0040a150
mov edx, dword [ebp - 4]
cmp word [edx + eax*2 - 2], 0x5c
jne 0x48f0f5
mov eax, dword [ebp - 4]
call fcn.0040a150
mov edx, eax
lea eax, [ebp - 4]
mov ecx, 1
call fcn.0040afe0
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x48f141
mov eax, dword [ebp - 4]
call fcn.0040abbc
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x48f13d
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0048f088
pop ecx
test al, al
je 0x48f139
push 0
mov eax, dword [ebp - 4]
call fcn.0040abbc
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x48f13d
xor ebx, ebx
jmp 0x48f1a3
mov bl, 1
jmp 0x48f1a3
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ecx, 0
call fcn.0040a85c
mov eax, dword [ebp - 0xc]
call fcn.0040a6b0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x48f19d
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0048f088
pop ecx
test al, al
je 0x48f199
push 0
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
mov ecx, 0
call fcn.0040a85c
mov eax, dword [ebp - 0x10]
call fcn.0040a6b0
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x48f19d
xor ebx, ebx
jmp 0x48f1a3
mov bl, 1
jmp 0x48f1a3
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48f1d2
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00409cf0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409cc0
ret
Function at 0x491c58
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended
Get common file path
Read file via mapping
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd6c
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x290], ecx
mov dword [ebp - 0x294], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov byte [ebp - 9], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x491e72
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x70]
mov edx, 0x44
call fcn.00413eac
mov dword [ebp - 0x70], 0x44
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x491d0b
test ebx, ebx
jne 0x491cbf
call sub.kernel32.dll_GetCommandLineW
mov edx, eax
lea eax, [ebp - 4]
call fcn.0040ac24
jmp 0x491cc9
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a088
lea eax, [ebp - 0x28a]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x28a]
push eax
push 0
push 4
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040abbc
push eax
push 0
call sub.kernel32.dll_CreateProcessW
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x491d74
test ebx, ebx
jne 0x491d25
call sub.kernel32.dll_GetCommandLineA
mov edx, eax
lea eax, [ebp - 8]
mov ecx, 0
call fcn.0040a3a8
jmp 0x491d34
lea eax, [ebp - 8]
mov edx, ebx
mov ecx, 0
call fcn.0040a85c
lea eax, [ebp - 0x28a]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x28a]
push eax
push 0
push 4
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.0040a6b0
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x491e25
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x18]
call fcn.0046add8
lea eax, [ebp - 0x294]
push eax
mov cl, 0x30
mov edx, 1
mov eax, dword [ebp - 0x78]
call fcn.00416b44
mov ecx, dword [ebp - 0x294]
lea eax, [ebp - 0x290]
mov edx, 0x491e8c
call fcn.0040a4e4
mov eax, dword [ebp - 0x290]
call fcn.0040a6b0
push eax
push 0x58
push 0
push 4
lea eax, [ebp - 0x18]
push eax
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov esi, eax
push 0
push 0
push 0
push 0xf001f
push esi
call sub.kernel32.dll_MapViewOfFile
mov ebx, eax
test ebx, ebx
je 0x491e1c
call sub.kernel32.dll_GetCurrentProcessId
mov dword [ebx], eax
push 2
push 0
push 0
lea eax, [ebx + 4]
push eax
mov eax, dword [ebp - 0x80]
push eax
push esi
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_DuplicateHandle
lea edx, [ebx + 8]
mov eax, 0x70f7e0
mov ecx, 0x50
call fcn.004066ec
mov eax, dword [ebp - 0x7c]
push eax
call sub.kernel32.dll_ResumeThread
cmp byte [ebp - 9], 0
je 0x491e3a
push 2
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_TerminateProcess
jmp 0x491e44
mov eax, 2
call fcn.00409a84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x491e79
lea eax, [ebp - 0x294]
mov edx, 2
call fcn.00409cf0
lea eax, [ebp - 8]
call fcn.00409c84
lea eax, [ebp - 4]
call fcn.00409c60
ret
Function at 0x49c160
Capabilities:
Create pipe
Create thread

Disassembly:
push 0
push 0
push 0x7100d8
push 0x7100d4
call sub.kernel32.dll_CreatePipe
test eax, eax
je 0x49c1b8
push 0x7100cc
push 0
push 0
push 0x49c0e4
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x7100d0], eax
cmp dword [0x7100d0], 0
je 0x49c1b8
mov edx, 0x49c1c8
mov eax, dword [0x7100cc]
call fcn.0046b9e0
push 2
mov eax, dword [0x7100d0]
push eax
call sub.kernel32.dll_SetThreadPriority
ret

Function at 0x49c20c
Capabilities:
Resume thread
Terminate thread
Write file on windows

Disassembly:
add esp, 0xffffff6c
cmp dword [0x7100cc], 0xffffffff
je 0x49c2f4
mov eax, dword [0x7100d0]
push eax
call sub.kernel32.dll_ResumeThread
xor eax, eax
call fcn.0046bf00
test al, al
jne 0x49c27c
lea eax, [esp + 4]
mov edx, 0x90
call fcn.00413eac
push 0
lea eax, [esp + 4]
push eax
push 0x90
lea eax, [esp + 0x10]
push eax
mov eax, dword [0x7100d8]
push eax
call sub.kernel32.dll_WriteFile
mov eax, dword [0x7100d8]
push eax
call sub.kernel32.dll_CloseHandle
push 0x1f4
mov eax, dword [0x7100d0]
push eax
call sub.kernel32.dll_WaitForSingleObject
jmp 0x49c287
mov eax, dword [0x7100d8]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x7100d4]
push eax
call sub.kernel32.dll_CloseHandle
push 0x32
mov eax, dword [0x7100d0]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
je 0x49c2c4
push 0
mov eax, dword [0x7100d0]
push eax
call sub.kernel32.dll_TerminateThread
cmp dword [0x7100dc], 0
je 0x49c2c4
mov eax, dword [0x7100dc]
push eax
call sub.kernel32.dll_LocalFree
xor eax, eax
mov dword [0x7100dc], eax
mov eax, dword [0x7100d0]
push eax
call sub.kernel32.dll_CloseHandle
push 0
push 0
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [0x7100cc]
call fcn.0046b754
mov dword [0x7100cc], 0xffffffff
add esp, 0x94
ret
Function at 0x49d1a8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
xor edx, edx
mov dword [ebp - 0x210], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x49d26b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00409c60
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x49d210
push 0x104
lea eax, [ebp - 0x20a]
push eax
push 0x1001
push 0x800
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x49d252
mov eax, ebx
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.0040ac78
jmp 0x49d252
push 0x104
lea eax, [ebp - 0x20a]
push eax
push 0x1001
push 0x800
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x49d252
lea eax, [ebp - 0x210]
lea edx, [ebp - 0x20a]
mov ecx, 0
call fcn.0040a3a8
mov edx, dword [ebp - 0x210]
mov eax, ebx
call fcn.0040ac94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49d272
lea eax, [ebp - 0x210]
call fcn.00409c84
ret

Function at 0x49d61c
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
xor edx, edx
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x68], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x49d71a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x49d728
push 0x49d754
call sub.kernel32.dll_GetModuleHandleW
push eax
call fcn.00412e30
test eax, eax
je 0x49d663
mov dword [ebp - 0x60], 0x40
lea edx, [ebp - 0x60]
push edx
call eax
jmp 0x49d689
mov dword [ebp - 0x20], 0x20
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [ebp - 0x14]
xor edx, edx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
push 0
push 0x100000
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
add eax, 0x80000
adc edx, 0
call fcn.0040ba68
push edx
push eax
lea ecx, [ebp - 0x64]
mov dx, 0x30
mov eax, 1
call fcn.00416cd4
push dword [ebp - 0x64]
push 0x49d77c
push 0
push 0x100000
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
add eax, 0x80000
adc edx, 0
call fcn.0040ba68
push edx
push eax
lea ecx, [ebp - 0x68]
mov dx, 0x30
mov eax, 1
call fcn.00416cd4
push dword [ebp - 0x68]
push 0x49d78c
mov eax, ebx
mov edx, 4
call fcn.0040aeb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49d721
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.00409cc0
ret
Function at 0x49db40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov ebx, ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x49dca4
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea eax, [ebp - 4]
call fcn.00409c84
push 0x71f220
call sub.kernel32.dll_EnterCriticalSection
xor eax, eax
push ebp
push 0x49dc75
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 4]
mov ecx, ebx
mov edx, esi
call fcn.00409e3c
push 0
mov edx, edi
lea eax, [ebp - 8]
mov ecx, ebx
call fcn.00409e3c
mov eax, dword [ebp - 4]
call fcn.0040a15c
cmp ebx, eax
jne 0x49dc6b
mov eax, dword [ebp - 8]
call fcn.0040a15c
cmp ebx, eax
jne 0x49dc6b
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040a630
je 0x49dc6b
lea eax, [ebp - 0x10]
push eax
push 0x40
push ebx
push esi
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x49dc6b
mov edx, esi
mov eax, edi
mov ecx, ebx
call fcn.004066ec
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
push ebx
push esi
call sub.kernel32.dll_VirtualProtect
mov eax, dword [0x71f238]
call fcn.0040be58
mov ebx, eax
lea eax, [ebx + 1]
push eax
mov eax, 0x71f238
mov ecx, 1
mov edx, dword [0x49db14]
call fcn.0040c074
add esp, 4
mov edi, ebx
add edi, edi
mov eax, dword [0x71f238]
mov dword [eax + edi*8], esi
mov eax, dword [0x71f238]
lea eax, [eax + edi*8 + 4]
mov edx, dword [ebp - 4]
call fcn.0040a0dc
mov eax, dword [0x71f238]
lea eax, [eax + edi*8 + 8]
mov edx, dword [ebp - 8]
call fcn.0040a0dc
mov eax, dword [0x71f238]
mov edx, dword [ebp + 8]
mov dword [eax + edi*8 + 0xc], edx
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49dc7f
push 0x71f220
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49dcab
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409cf0
ret
Function at 0x49dcb8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49dde6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x71f220
call sub.kernel32.dll_EnterCriticalSection
mov eax, dword [0x71f238]
call fcn.0040be60
test eax, eax
jl 0x49ddb7
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
add eax, eax
mov edx, dword [0x71f238]
lea ebx, [edx + eax*8]
xor eax, eax
push ebp
push 0x49dda1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 8]
call fcn.0040a15c
mov edx, eax
mov eax, dword [ebx]
call fcn.0041d8c0
test al, al
jne 0x49dd97
push 0
mov eax, dword [ebx + 8]
call fcn.0040a15c
mov ecx, eax
mov edx, dword [ebx]
lea eax, [ebp - 4]
call fcn.00409e3c
mov eax, dword [ebp - 4]
mov edx, dword [ebx + 8]
call fcn.0040a630
jne 0x49dd97
lea eax, [ebp - 0xc]
push eax
push 0x40
mov eax, dword [ebx + 4]
call fcn.0040a15c
push eax
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x49dd97
mov eax, dword [ebx + 4]
call fcn.0040a15c
mov ecx, eax
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
call fcn.004066ec
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebx + 4]
call fcn.0040a15c
push eax
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_VirtualProtect
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49ddab
inc dword [ebp - 8]
dec dword [ebp - 0x10]
jne 0x49dcfb
push 0x71f220
call sub.kernel32.dll_LeaveCriticalSection
push 0
push 0
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49dded
lea eax, [ebp - 4]
call fcn.00409c84
ret
Function at 0x49e2b8
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x49e3f8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, 0x49e414
call fcn.0040a630
je 0x49e3c5
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x49e32d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2c]
mov ecx, 0x49e424
mov edx, ebx
call fcn.0040a4e4
mov eax, dword [ebp - 0x2c]
call fcn.0040a6b0
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call eax
jmp 0x49e381
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x30]
mov ecx, 0x49e424
mov edx, ebx
call fcn.0040a4e4
mov eax, dword [ebp - 0x30]
call fcn.0040a6b0
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
je 0x49e381
mov eax, dword [ebp - 0x24]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x20]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x1c]
xor edx, edx
call fcn.0040ba44
call fcn.0040ba44
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push 0x49e434
mov edi, dword [0x7184e4]
mov edi, dword [edi]
lea edx, [ebp - 0x38]
mov eax, ebx
call edi
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
call fcn.0040ac94
push dword [ebp - 0x34]
push 0x49e444
push dword [ebp - 4]
push dword [ebp - 8]
lea eax, [ebp - 0x3c]
call fcn.00417680
push dword [ebp - 0x3c]
mov eax, esi
mov edx, 4
call fcn.0040aeb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49e3ff
lea eax, [ebp - 0x3c]
call fcn.00409c60
lea eax, [ebp - 0x38]
call fcn.00409c84
lea eax, [ebp - 0x34]
call fcn.00409c60
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00409cf0
ret
Function at 0x4a6c90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov byte [0x710128], 0
cmp dword [0x71012c], 0
je 0x4a6cd7
push esp
push 0x40
push 4
mov eax, dword [0x71012c]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4a6d2d
mov eax, dword [0x71012c]
mov edx, dword [0x710130]
mov dword [eax], edx
push esp
mov eax, dword [esp + 4]
push eax
push 4
mov eax, dword [0x71012c]
push eax
call sub.kernel32.dll_VirtualProtect
jmp 0x4a6d2d
cmp dword [0x710134], 0
je 0x4a6d16
push esp
push 0x40
push 4
mov eax, dword [0x710134]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4a6d2d
mov eax, dword [0x710134]
mov edx, dword [0x710138]
mov dword [eax], edx
push esp
mov eax, dword [esp + 4]
push eax
push 4
mov eax, dword [0x710134]
push eax
call sub.kernel32.dll_VirtualProtect
jmp 0x4a6d2d
push 0
mov ecx, 0x4a65cc
mov eax, sub.kernel32.dll_CreateThread
mov edx, dword [0x710120]
call fcn.004a5fa8
push 0
mov ecx, 0x4a6884
mov edx, dword [0x710124]
xor eax, eax
call fcn.004a5fa8
push 0
push 0
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
pop edx
ret

Function at 0x4a734c
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov esi, eax
lea eax, [ebp - 8]
mov edx, dword [0x4a71e4]
call fcn.0040b40c
xor eax, eax
push ebp
push 0x4a742b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x4a7438
call sub.user32.dll_FindWindowA
mov ebx, eax
test ebx, ebx
je 0x4a7402
lea eax, [ebp - 0xc]
push eax
push 0
push ebx
call sub.user32.dll_GetWindowThreadProcessId
mov cl, 0x30
mov edx, 1
call fcn.00416b44
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov edx, 0x4a7450
call fcn.0040a4e4
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.00417f3c
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
call fcn.0040a124
lea eax, [ebp - 4]
mov edx, 0x4a7478
call fcn.0040a48c
mov eax, dword [ebp - 4]
call fcn.0040a15c
cmp eax, 0x104
jge 0x4a73f4
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, 0x104
call fcn.0040a7e4
lea eax, [ebp - 8]
push eax
push 0x4a7254
call sub.user32.dll_EnumWindows
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a7432
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00409cf0
lea eax, [ebp - 8]
mov edx, dword [0x4a71e4]
call fcn.0040b4e4
ret
Function at 0x4a7d48
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x4a7e1d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.00416b44
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 0x4a7e38
call fcn.0040a4e4
mov eax, dword [ebp - 4]
call fcn.0040a6b0
push eax
push 0
push 4
call sub.kernel32.dll_OpenFileMappingA
mov ebx, eax
test ebx, ebx
je 0x4a7e02
mov byte [0x70f6dc], 1
push 0
push 0
push 0
push 4
push ebx
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
test esi, esi
je 0x4a7dfc
mov eax, dword [esi + 4]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [esi]
push eax
push 0
push 0x100000
call sub.kernel32.dll_OpenProcess
mov edi, eax
test edi, edi
je 0x4a7de4
push 0xffffffffffffffff
push edi
call sub.kernel32.dll_WaitForSingleObject
push edi
call sub.kernel32.dll_CloseHandle
mov edx, 0x70f7e0
lea eax, [esi + 8]
mov ecx, 0x50
call fcn.004066ec
push esi
call sub.kernel32.dll_UnmapViewOfFile
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a7e24
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409cf0
ret
Function at 0x557a6c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x557abe
test eax, edx
je 0x557ac1
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x557a81
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x557aa7
add ecx, 4
js 0x557a97
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x557aa4
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x557acd
test edx, edx
jne 0x557a74
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret