joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4625af
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
cmp dword [0x4e77b8], 0
jne 0x4627be
push 0x80000301
push 0
push 0x40
push 1
mov ebx, 0x184
call fcn.00489a20
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x462601
push ebx
call fcn.00488e54
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x462624
push 6
call fcn.00488e60
add esp, 4
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.00489ad0
add esp, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push str.__processStrMap_
mov ecx, 2
call fcn.00402271
add esp, 8
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x462669
push ebx
call fcn.00488e54
add esp, 4
mov dword [ebp - 0x18], esp
push 0x40
push dword [ebp - 4]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x462693
push 6
call fcn.00488e60
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4626a3
push ebx
call fcn.00488e54
add esp, 4
push VariantClear
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4626b6
mov eax, 0x4bb9b1
push eax
push 1
mov ebx, 0x164
call fcn.00489da0
add esp, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
fld qword [ebp - 0x14]
call fcn.004018fa
mov dword [0x4e77b8], eax
cmp dword [0x4e77b8], 0
jne 0x4627be
call fcn.004627de
mov dword [0x4e77b8], eax
mov dword [ebp - 8], esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x462712
push 6
call fcn.00488e60
add esp, 4
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.00489ad0
add esp, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push str.__processStrMap_
mov ecx, 2
call fcn.00402271
add esp, 8
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x462757
push ebx
call fcn.00488e54
add esp, 4
push 0x80000301
push 0
push dword [0x4e77b8]
push 1
mov ebx, 0x168
call fcn.00489ad0
add esp, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x46279e
push 6
call fcn.00488e60
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4627ae
push ebx
call fcn.00488e54
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4627be
push ebx
call fcn.00488e54
add esp, 4
mov eax, dword [0x4e77b8]
jmp 0x4627c8
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4627d9
push ebx
call fcn.00488e54
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x4631c5
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4631f9
push 6
call fcn.00488e60
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push str.NtQueryInformationThread
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x463223
push 6
call fcn.00488e60
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4632f5
mov dword [ebp - 8], esp
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x46324f
push 6
call fcn.00488e60
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
mov eax, 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 4]
push eax
push 9
push dword [ebp - 0xc]
call dword [0x4e7834]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x46328e
push 6
call fcn.00488e60
add esp, 4
cmp dword [ebp - 4], 0
je 0x4632f5
mov dword [ebp - 8], esp
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4632bc
push 6
call fcn.00488e60
add esp, 4
push eax
call fcn.0046331f
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x14], eax
jne 0x4632f5
mov dword [ebp - 8], esp
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 8], esp
push 0
call dword [sym.imp.KERNEL32.dll_ExitThread]
Function at 0x463ca8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x4e76f8
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x20]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
jne 0x463d00
mov dword [ebp - 4], esp
push 0x10
push 0x4bb9b1
push 0x4e2036
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x463d00
push 6
call fcn.00488e60
add esp, 4
push 0x4e76f8
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x30]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
jne 0x463d26
push 0
call fcn.004631c5
mov dword [ebp - 4], esp
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x468f41
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x2000
push 0x80000301
push 0
push 0x1000
push 2
mov ebx, 0xc8
call fcn.0048aba0
add esp, 0x1c
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0x40
push dword [ebp - 8]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x468fab
push 6
call fcn.00488e60
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x46901e
push 0x80000301
push 0
push 0x2000
push 0x80000301
push 0
push 0x1000
push 2
mov ebx, 0xc8
call fcn.0048aba0
add esp, 0x1c
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0x40
push dword [ebp - 8]
push dword [ebp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x469014
push 6
call fcn.00488e60
add esp, 4
jmp 0x469026
mov eax, dword [ebp - 4]
jmp 0x469026
mov esp, ebp
pop ebp
ret 8
Function at 0x4827c4
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x4827f1
push 6
call fcn.00488e60
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
mov eax, 0
sete al
jmp 0x482805
mov esp, ebp
pop ebp
ret 4

Function at 0x48280b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x482838
push 6
call fcn.00488e60
add esp, 4
jmp 0x48283d
mov esp, ebp
pop ebp
ret 4

Function at 0x482b9e
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x482bd3
push 6
call fcn.00488e60
add esp, 4
jmp 0x482bd8
mov esp, ebp
pop ebp
ret 0x10

Function at 0x483a8d
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x483aba
push 6
call fcn.00488e60
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
mov eax, 0
sete al
jmp 0x483ace
mov esp, ebp
pop ebp
ret 4

Function at 0x483ad4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x483b01
push 6
call fcn.00488e60
add esp, 4
jmp 0x483b06
mov esp, ebp
pop ebp
ret 4

Function at 0x483e67
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x483e9c
push 6
call fcn.00488e60
add esp, 4
jmp 0x483ea1
mov esp, ebp
pop ebp
ret 0x10

Function at 0x485468
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
push 0x40
push 0x1000
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x4854a2
push 6
call fcn.00488e60
add esp, 4
jmp 0x4854a7
mov esp, ebp
pop ebp
ret 4
Function at 0x48a1a0
Capabilities:
Query environment variable

Disassembly:
push ebp
push esi
push edi
push 0x104
call fcn.00489720
mov ebp, dword [esp + 0x18]
add esp, 4
mov edi, eax
push 0x104
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, 0x104
jbe 0x48a1f7
push ebx
push edi
call fcn.004897b0
push esi
mov ebx, esi
call fcn.00489720
add esp, 8
mov edi, eax
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, ebx
ja 0x48a1ce
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x48a410
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.0049b6b3
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x48a47a
push esi
lea edi, [eax + 0x400]
call fcn.0049b6a8
push edi
call fcn.0049b6b3
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x48a44a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x48a496
push ecx
push esi
call fcn.0048e990
add esp, 8
mov ebx, eax
push esi
call fcn.0049b6a8
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x48a6e0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x48a749
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.00489720
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x48a870
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x48a902
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x48a8f4
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x48a8ec
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x48a8b5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x48a980
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x14
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, eax
mov al, 0x20
mov cl, byte [edi]
inc edi
cmp cl, 0x22
jne 0x48a99a
mov al, cl
mov dl, byte [edi]
inc edi
cmp dl, al
je 0x48a9a8
mov cl, byte [edi]
inc edi
cmp cl, al
jne 0x48a9a1
cmp al, 0x20
je 0x48a9b2
cmp byte [edi], 0x20
jne 0x48a9b2
inc edi
lea ecx, [esp + 0xc]
call fcn.0048ea20
mov dword [esp + 0xc], 0x4a9324
mov al, byte [edi]
test al, al
je 0x48aa76
mov esi, dword [esp + 0x28]
cmp al, 0x22
jne 0x48aa1e
mov al, byte [edi + 1]
inc edi
test al, al
mov esi, edi
je 0x48a9f9
mov al, byte [esi]
cmp al, 0x22
je 0x48a9f9
test al, al
jge 0x48a9f1
mov al, byte [esi + 1]
test al, al
je 0x48a9f9
inc esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x48a9df
mov edx, esi
sub edx, edi
push edx
push edi
call fcn.0048e990
add esp, 8
lea ecx, [esp + 0xc]
push eax
call fcn.0048ecb0
mov al, byte [esi]
mov edi, esi
test al, al
je 0x48aa6c
lea edi, [esi + 1]
jmp 0x48aa6c
cmp al, 0x20
jg 0x48aa2a
cmp byte [esi], 0
jl 0x48aa2a
inc edi
jmp 0x48aa6c
test al, al
mov esi, edi
je 0x48aa52
mov al, byte [esi]
cmp al, 0x22
je 0x48aa52
cmp al, 0x20
jg 0x48aa3e
test al, al
jge 0x48aa52
test al, al
jge 0x48aa4a
mov al, byte [esi + 1]
test al, al
je 0x48aa52
inc esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x48aa30
mov eax, esi
sub eax, edi
push eax
push edi
call fcn.0048e990
add esp, 8
lea ecx, [esp + 0xc]
push eax
call fcn.0048ecb0
mov edi, esi
mov al, byte [edi]
test al, al
jne 0x48a9d1
mov ebx, dword [esp + 0x28]
mov eax, dword [ebx]
test eax, eax
je 0x48aa89
push eax
call fcn.0048eea0
add esp, 4
mov edi, dword [esp + 0x1c]
shr edi, 2
shl edi, 2
lea ecx, [edi + 8]
push ecx
call fcn.00489720
mov dword [eax], 1
mov edx, dword [esp + 0x20]
shr edx, 2
mov dword [eax + 4], edx
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
add esp, 4
neg esi
sbb esi, esi
and esi, ecx
mov ecx, edi
mov edx, ecx
lea edi, [eax + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
mov dword [ebx], eax
mov dword [esp + 0xc], 0x4a9320
call fcn.0048ec20
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x48b360
Capabilities:
Delete directory

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x48b36d
xor eax, eax
pop esi
ret
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
jne 0x48b37f
pop esi
ret
cmp ecx, 1
jne 0x48b38d
cmp byte [esi], 0x5c
jne 0x48b38d
xor eax, eax
pop esi
ret
push esi
call fcn.0048b110
add esp, 4
test eax, eax
je 0x48b3a1
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
ret

Function at 0x48b3b0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x144
push ebx
mov ebx, dword [esp + 0x14c]
push ebp
mov ebp, dword [esp + 0x15c]
push esi
push edi
mov esi, dword [ebp]
mov dword [esp + 0x10], 0
test ebx, ebx
je 0x48b43b
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x48b43b
test esi, esi
je 0x48b3f5
cmp esi, 0xffffffff
je 0x48b3f5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp], esi
je 0x48b481
mov eax, dword [esp + 0x160]
test eax, eax
je 0x48b424
mov ecx, dword [esp + 0x14]
and ecx, 0x10
cmp cl, 0x10
je 0x48b43b
jmp 0x48b433
mov edx, dword [esp + 0x15c]
mov eax, dword [esp + 0x14]
test edx, eax
je 0x48b43b
mov dword [esp + 0x10], 1
test esi, esi
je 0x48b481
cmp esi, 0xffffffff
je 0x48b481
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x48b4b8
mov eax, dword [esp + 0x160]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
lea eax, [esp + 0x14]
push eax
push esi
je 0x48b48e
call edi
test eax, eax
je 0x48b481
mov ecx, dword [esp + 0x14]
and ecx, 0x10
cmp cl, 0x10
jne 0x48b4b8
lea edx, [esp + 0x14]
push edx
push esi
call edi
test eax, eax
jne 0x48b469
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x144
ret
call edi
test eax, eax
je 0x48b481
mov ebx, dword [esp + 0x15c]
test dword [esp + 0x14], ebx
jne 0x48b4b8
lea ecx, [esp + 0x14]
push ecx
push esi
call edi
test eax, eax
jne 0x48b49b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00489720
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret
Function at 0x48ba10
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x48ba26
mov eax, 1
pop esi
add esp, 0xc
ret
push esi
call fcn.0048f250
add esp, 4
test eax, eax
jne 0x48ba3d
mov eax, 1
pop esi
add esp, 0xc
ret
mov eax, dword [esi]
push ebx
push ebp
cmp eax, 1
push edi
mov dword [esp + 0x10], 1
jne 0x48baed
mov esi, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 0
push esi
mov ebx, eax
call ebp
mov edi, eax
cmp edi, 0xffffffff
je 0x48bb55
cmp edi, ebx
jae 0x48bb55
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], 0
test eax, eax
je 0x48bb55
mov eax, dword [esp + 0x30]
test eax, eax
je 0x48bb55
lea ecx, [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x2c]
push 1
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push edi
push esi
mov ebx, eax
call ebp
test ebx, ebx
je 0x48bb55
mov al, byte [esp + 0x24]
test al, al
je 0x48bb4d
cmp al, 0x1a
jne 0x48bb55
pop edi
mov dword [esp + 0xc], 1
mov eax, dword [esp + 0xc]
pop ebp
pop ebx
pop esi
add esp, 0xc
ret
cmp eax, 2
jne 0x48bb55
mov esi, dword [esi + 4]
mov ecx, esi
call fcn.0048f280
mov ebx, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov edi, eax
cmp edi, ebx
jae 0x48bb55
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], 0
test eax, eax
je 0x48bb55
mov eax, dword [esp + 0x30]
test eax, eax
je 0x48bb55
mov edx, dword [esi]
lea eax, [esp + 0x24]
push 1
push eax
mov ecx, esi
call dword [edx + 0x20]
mov edx, dword [esi]
push 0
push edi
mov ecx, esi
mov ebp, eax
call dword [edx + 0x18]
test ebp, ebp
je 0x48bb55
mov al, byte [esp + 0x24]
test al, al
je 0x48bb4d
cmp al, 0x1a
jne 0x48bb55
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0xc
ret
Function at 0x48bb70
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
push edi
jne 0x48bb89
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push esi
call fcn.0048f250
add esp, 4
test eax, eax
jne 0x48bb9e
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esi]
xor edi, edi
cmp eax, 1
jne 0x48bcde
mov edi, dword [esi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push eax
push 0
push 0
push edi
mov dword [esp + 0x24], edi
call esi
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x48bbdc
push 2
push 0
push 0
push edi
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push 0x1000
xor ebp, ebp
call fcn.0049bded
add esp, 4
mov ebx, eax
lea eax, [esp + 0x20]
mov esi, ebx
push ebp
push eax
push 0x1000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48bcbe
mov edx, dword [esp + 0x20]
xor ecx, ecx
test edx, edx
jbe 0x48bc24
mov al, byte [esi]
cmp al, 0xd
je 0x48bc66
cmp al, 0xa
je 0x48bc66
inc ecx
inc esi
cmp ecx, edx
jb 0x48bc14
add ebp, edx
cmp edx, 0x1000
jb 0x48bc68
push 0x1000
push ebx
call fcn.0049babe
mov ebx, eax
mov eax, dword [esp + 0x28]
add esp, 8
cmp eax, 0x1000
jne 0x48bc68
lea ecx, [esp + 0x20]
push 0
lea esi, [ebx + ebp]
push ecx
push 0x1000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48bcbe
jmp 0x48bc0a
add ebp, ecx
lea edx, [ebp + 1]
push edx
call fcn.00489720
mov ecx, dword [esp + 0x14]
mov edi, eax
mov al, byte [esi]
add esp, 4
add ecx, ebp
cmp al, 0xd
je 0x48bc86
cmp al, 0xa
jne 0x48bc8f
mov al, byte [esi + 1]
inc ecx
cmp al, 0xa
jne 0x48bc8f
inc ecx
mov eax, dword [esp + 0x14]
push 0
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
push ebx
push edi
call fcn.0049b9c0
push ebx
mov byte [edi + ebp], 0
call fcn.0049b8cb
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call fcn.0049b8cb
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp eax, 2
jne 0x48bd6c
mov esi, dword [esi + 4]
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
mov dword [esp + 0x18], eax
mov eax, dword [esi]
push edx
push 0xffffffffffffffff
push 0
mov ecx, esi
call dword [eax + 0x30]
mov ebp, dword [esp + 0x20]
xor ebx, ebx
test eax, eax
jbe 0x48bd27
mov cl, byte [ebp]
cmp cl, 0xd
je 0x48bd27
cmp cl, 0xa
je 0x48bd27
inc ebx
inc ebp
cmp ebx, eax
jb 0x48bd14
lea eax, [ebx + 1]
push eax
call fcn.00489720
mov ecx, dword [esp + 0x18]
mov edi, eax
mov al, byte [ebp]
add esp, 4
add ecx, ebx
cmp al, 0xd
je 0x48bd46
cmp al, 0xa
jne 0x48bd4f
mov al, byte [ebp + 1]
inc ecx
cmp al, 0xa
jne 0x48bd4f
inc ecx
mov edx, dword [esi]
push 0
push ecx
mov ecx, esi
call dword [edx + 0x18]
mov eax, dword [esp + 0x20]
push ebx
push eax
push edi
call fcn.0049b9c0
add esp, 0xc
mov byte [ebx + edi], 0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x48bfa0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x48bfc8
pop edi
or eax, eax
pop esi
ret
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], 0xffffffff
jne 0x48bfea
pop edi
or eax, 0xffffffff
pop esi
ret
mov eax, edi
pop edi
pop esi
ret

Function at 0x48c1c0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x48c201.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x48c201.2
jmp dword [eax*4 + 0x48c28c]
mov word [esp + 0x48], di
jmp 0x48c23a
mov word [esp + 0x48], 2
jmp 0x48c23a
mov word [esp + 0x48], 3
jmp 0x48c23a
mov word [esp + 0x48], 4
jmp 0x48c23a
mov word [esp + 0x48], 7
jmp 0x48c23a
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x48c284
cmp dword [esp + 0x70], edi
je 0x48c270
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret