joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467e30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
mov eax, dword [0x4f9008]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [esp + 8]
push esi
push edi
push eax
push 0x40
lea eax, [esp + 0x38]
mov dword [esp + 0x18], 0
mov esi, edx
mov dword [esp + 0x28], 0
push eax
mov edi, ecx
mov dword [esp + 0x28], esi
push esi
push edi
call ebx
test eax, eax
je 0x46804e
mov eax, 0x5a4d
cmp word [esp + 0x30], ax
jne 0x46804e
lea eax, [esp + 0x10]
push eax
push 0xf8
lea eax, [esp + 0x78]
push eax
mov eax, dword [esp + 0x78]
add eax, esi
push eax
push edi
call ebx
test eax, eax
je 0x46804e
cmp dword [esp + 0x70], 0x4550
jne 0x46804e
mov ax, word [esp + 0x88]
mov ecx, 0x10b
cmp ax, cx
jne 0x467ee4
mov eax, dword [esp + 0xe8]
mov esi, dword [esp + 0xec]
jmp 0x467f24
mov ecx, 0x20b
cmp ax, cx
jne 0x46804e
lea eax, [esp + 0x10]
push eax
push 0x108
lea eax, [esp + 0x170]
push eax
mov eax, dword [esp + 0x78]
add eax, esi
push eax
push edi
call ebx
test eax, eax
je 0x46804e
mov eax, dword [esp + 0x1f0]
mov esi, dword [esp + 0x1f4]
mov dword [esp + 0x14], eax
test eax, eax
je 0x46804e
test esi, esi
je 0x46804e
push esi
call fcn.004759b9
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
je 0x46804e
lea ecx, [esp + 0x10]
push ecx
push esi
push eax
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x28]
push eax
push edi
call ebx
test eax, eax
je 0x468042
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edi, dword [edx + 0x1c]
cmp edi, ecx
jbe 0x468042
lea ebx, [esi + ecx]
cmp edi, ebx
jae 0x468042
mov eax, dword [edx + 0x24]
cmp eax, ecx
jbe 0x468042
cmp eax, ebx
jae 0x468042
mov esi, dword [edx + 0x20]
cmp esi, ecx
jbe 0x468042
cmp esi, ebx
jae 0x468042
sub esi, ecx
sub edi, ecx
add esi, edx
sub eax, ecx
mov dword [esp + 0x24], esi
add edi, edx
add eax, edx
mov dword [esp + 0x28], edi
xor esi, esi
mov dword [esp + 0x2c], eax
cmp dword [edx + 0x18], esi
jbe 0x468042
nop dword [eax + eax]
movzx eax, word [eax + esi*2]
mov edi, dword [edi + eax*4]
cmp edi, ecx
jb 0x467fdf
cmp edi, ebx
jb 0x468028
mov eax, dword [esp + 0x24]
mov eax, dword [eax + esi*4]
cmp eax, ecx
jbe 0x468028
cmp eax, ebx
jae 0x468028
sub eax, ecx
mov ecx, 0x4d8128
add eax, edx
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x468017
test dl, dl
je 0x468013
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x468017
add ecx, 2
add eax, 2
test dl, dl
jne 0x467ff7
xor eax, eax
jmp 0x46801c
sbb eax, eax
or eax, 1
test eax, eax
je 0x468038
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
inc esi
cmp esi, dword [edx + 0x18]
jae 0x468042
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
jmp 0x467fd0
mov eax, dword [esp + 0x1c]
add eax, edi
mov dword [esp + 0x20], eax
push dword [esp + 0x18]
call fcn.004759e5
add esp, 4
mov ecx, dword [esp + 0x274]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00475880
mov esp, ebp
pop ebp
ret
Function at 0x468070
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x4681d0
cmp eax, 4
je 0x4681d0
cmp eax, 8
je 0x4681d0
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x14], 0
jne 0x4680a2
mov eax, 0xfffffffe
pop esi
pop ebp
ret
push edi
push eax
push 0
push 0x43a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x4680be
lea eax, [edi - 3]
pop edi
pop esi
pop ebp
ret
mov eax, dword [esi + 0x14]
push ebx
push 4
push 0x1000
lea eax, [eax*2 + 2]
push eax
push 0
push edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
jne 0x4680f2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx - 4]
pop ebx
pop edi
pop esi
pop ebp
ret
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
jb 0x4680fd
mov eax, dword [eax]
push 0
push dword [ebp + 8]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x46812e
push 0x8000
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, 0xfffffffb
pop esi
pop ebp
ret
push ecx
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, esi
mov ecx, eax
call fcn.00467e30
add esp, 4
test eax, eax
jne 0x468171
push 0x8000
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, 0xfffffffa
pop esi
pop ebp
ret
push 0
push 0
push ebx
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
test esi, esi
jne 0x4681a5
push 0x8000
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
lea eax, [esi - 7]
pop esi
pop ebp
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x8000
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret
or eax, 0xffffffff
pop ebp
ret
Function at 0x468d20
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2eec
call fcn.004b3620
mov eax, dword [0x4f9008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov dword [esi + 4], eax
lea eax, [ebp - 0x2ee8]
push eax
push 0x2ee0
lea eax, [ebp - 0x2ee4]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x468d6f
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475880
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp - 0x2ee8]
push edi
shr ebx, 2
xor edi, edi
test ebx, ebx
je 0x468db1
mov eax, dword [esi + 4]
mov ecx, dword [ebp + edi*4 - 0x2ee4]
mov dword [ebp - 0x2eec], ecx
cmp dword [esi + 8], eax
je 0x468d9d
mov dword [eax], ecx
add dword [esi + 4], 4
jmp 0x468dac
lea ecx, [ebp - 0x2eec]
push ecx
push eax
mov ecx, esi
call fcn.0046a900
inc edi
cmp edi, ebx
jb 0x468d80
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.00475880
mov esp, ebp
pop ebp
ret
Function at 0x468dd0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c2296
mov eax, dword fs:[0]
push eax
mov eax, 0x2f28
call fcn.004b3620
mov eax, dword [0x4f9008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov ecx, ebx
mov esi, dword [ebx]
push dword [esi + 4]
call fcn.0040fee0
mov eax, dword [ebx]
mov dword [eax + 4], esi
mov eax, dword [ebx]
mov dword [eax], esi
mov eax, dword [ebx]
mov dword [ebp - 4], 0xffffffff
mov dword [eax + 8], esi
lea eax, [ebp - 0x2f2c]
push eax
push 0x2ee0
lea eax, [ebp - 0x2ef0]
mov dword [ebx + 4], 0
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x468e59
or eax, 0xffffffff
jmp 0x468fcb
mov edi, dword [ebp - 0x2f2c]
mov eax, 7
inc dword [sym.XNewLook.exe_unsigned_int_LString::_ui_instance_count]
xor ecx, ecx
shr edi, 2
mov dword [ebp - method.LString.virtual_0], vtable.LString.0
mov dword [ebp - 0x2ef8], 0
mov dword [ebp - 0x2ef4], eax
mov word [ebp - 0x2f08], cx
xor esi, esi
mov dword [ebp - 4], 1
test edi, edi
je 0x468f8d
push dword [ebp + esi*4 - 0x2ef0]
lea eax, [ebp - 0x2f28]
push eax
call sym.XNewLook.exe_class_LString___cdecl_LProcess::GetFullPathNameByPID_unsigned_long_int_
add esp, 8
add eax, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2f08]
cmp ecx, eax
je 0x468ee1
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x468ed2
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x2f08]
call fcn.00409940
mov byte [ebp - 4], 1
dec dword [sym.XNewLook.exe_unsigned_int_LString::_ui_instance_count]
mov edx, dword [ebp - 0x2f10]
mov dword [ebp - method.LString.virtual_0], vtable.LString.0
cmp edx, 8
jb 0x468f35
mov ecx, dword [ebp - 0x2f24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x468f2b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x468fe7
push edx
push ecx
call fcn.00475891
add esp, 8
cmp dword [ebp - 0x2ef8], 0
je 0x468f7e
lea ecx, [ebp - 0x2f0c]
call sym.XNewLook.exe_public:_class_LString____thiscall_LString::to_lower_case_void_
cmp byte [ebp + 0xc], 0
jne 0x468f62
lea eax, [ebp - 0x2f0c]
push eax
call sym.XNewLook.exe_bool___cdecl_LProcess::is_system_process_class_LString_const__
add esp, 4
test al, al
jne 0x468f7e
push dword [ebp - 0x2f2c]
lea eax, [ebp - 0x2f0c]
push eax
push ecx
lea eax, [ebp - 0x2f34]
mov ecx, ebx
push eax
call fcn.00410430
inc esi
cmp esi, edi
jb 0x468ea1
mov eax, dword [ebp - 0x2ef4]
dec dword [sym.XNewLook.exe_unsigned_int_LString::_ui_instance_count]
cmp eax, 8
jb 0x468fc9
mov ecx, dword [ebp - 0x2f08]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x468fbf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x468fe7
push edx
push ecx
call fcn.00475891
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475880
mov esp, ebp
pop ebp
ret
call fcn.0047cd61
int3
Function at 0x46bd70
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x1c]
lea edi, [ebx + 4]
mov dword [ebp - 4], eax
test eax, eax
jg 0x46bd99
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx]
pop edi
inc eax
pop esi
mov dword [ebx], eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
jne 0x46bd8d
nop dword [eax]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
cmp ecx, esi
jae 0x46bdc0
mov esi, ecx
jmp 0x46bdcd
mov eax, ecx
sub eax, esi
cmp eax, dword [ebp - 4]
jb 0x46bdcd
cmp ecx, esi
ja 0x46bdec
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
je 0x46bdb0
mov eax, dword [ebx]
pop edi
inc eax
pop esi
mov dword [ebx], eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xffffff9c
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4702b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c2928
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4f9008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.LString.0
xor eax, eax
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 7
mov word [edi + 4], ax
inc dword [sym.XNewLook.exe_unsigned_int_LString::_ui_instance_count]
lea esi, [edi + 0x1c]
mov dword [ebp - 4], eax
push 8
mov dword [ebp - 0x14], esi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call fcn.0047589f
mov dword [esi], eax
add esp, 4
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
mov eax, edi
mov dword [edi + 0x30], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x474c00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ebp + 0x14], 0
xorps xmm0, xmm0
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ecx, dword [eax + 4]
lea edx, [eax + 8]
mov ebx, dword [eax]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
movlpd qword [esp + 0x18], xmm0
jl 0x474ca0
mov edi, dword [ebp + 0x10]
jg 0x474c37
test edi, edi
je 0x474ca0
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x10]
inc bl
mov edi, dword [esp + 0x10]
movzx ebx, bl
mov edx, dword [eax + ebx*4]
mov cl, dl
add cl, byte [esp + 0xc]
movzx ecx, cl
mov dword [esp + 0xc], ecx
mov ecx, dword [eax + ecx*4]
mov dword [eax + ebx*4], ecx
mov eax, dword [esp + 0xc]
mov dword [edi + eax*4], edx
add dl, cl
mov eax, edi
movzx ecx, dl
mov edi, dword [ebp + 0x10]
mov cl, byte [eax + ecx*4]
mov eax, dword [ebp + 0xc]
xor byte [esi + eax], cl
add esi, 1
mov eax, dword [esp + 0x14]
adc eax, 0
cmp eax, dword [ebp + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
jl 0x474c43
jg 0x474c9c
cmp esi, edi
jb 0x474c43
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword [eax], ebx
mov dword [eax + 4], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x474cb0
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [sym.XNewLook.exe_bool_LCRC::b_init_ok], 0
jne 0x474de9
xor ecx, ecx
mov dword [ebp - 4], ecx
push ebx
xor eax, eax
test cl, 1
je 0x474cd2
bts eax, 7
shr ecx, 1
test cl, 1
je 0x474cdd
bts eax, 6
shr ecx, 1
test cl, 1
je 0x474ce8
bts eax, 5
shr ecx, 1
test cl, 1
je 0x474cf3
bts eax, 4
shr ecx, 1
test cl, 1
je 0x474cfe
bts eax, 3
shr ecx, 1
test cl, 1
je 0x474d09
bts eax, 2
shr ecx, 1
test cl, 1
je 0x474d14
bts eax, 1
test cl, 2
je 0x474d1d
bts eax, 0
shl eax, 0x18
mov ecx, eax
add eax, eax
sar ecx, 0x1f
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov ebx, ecx
sar ebx, 0x1f
and ebx, 0x4c11db7
lea eax, [ecx + ecx]
xor ebx, eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax*4 + 0x4fc2b0], ebx
lea ecx, [edx + 1]
nop
test bl, 1
je 0x474dbf
mov eax, 0x20
sub eax, ecx
bts edx, eax
inc ecx
shr ebx, 1
cmp ecx, 0x21
jl 0x474db0
mov ecx, dword [ebp - 4]
mov dword [ecx*4 + 0x4fc2b0], edx
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, 0xff
jle 0x474cc7
mov byte [sym.XNewLook.exe_bool_LCRC::b_init_ok], 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x474e40
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1030
call fcn.004b3620
mov eax, dword [0x4f9008]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1020]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
push eax
mov dword [ebp - 0x1028], ebx
call sym.XNewLook.exe_public:_class_LString___thiscall_LString::get_real_file_from_env_format_void_
cmp byte [ebp + 0x10], 0
mov eax, 1
push 0
push 0x80
push 3
push 0
mov ecx, 7
mov dword [ebx], 0
cmove ecx, eax
cmp dword [ebp - 0x1008], 8
push ecx
lea eax, [ebp - 0x101c]
cmovae eax, dword [ebp - 0x101c]
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x474ed4
lea eax, [ebp - 0x1030]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x474f29
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
dec dword [sym.XNewLook.exe_unsigned_int_LString::_ui_instance_count]
mov edx, dword [ebp - 0x1008]
mov dword [ebp - method.LString.virtual_0], vtable.LString.0
cmp edx, 8
jb 0x474ff9
mov ecx, dword [ebp - 0x101c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x474fef
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47500b
jmp 0x474fef
mov eax, dword [ebp - 0x1030]
or eax, dword [ebp - 0x102c]
jne 0x474f42
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x474ed6
call sym.XNewLook.exe_public:_static_void___cdecl_LCRC::init_void_
push 0
lea eax, [ebp - 0x1024]
mov dword [ebp - 0x1024], 0
push eax
push 0x1000
lea eax, [ebp - 0x1004]
or ebx, 0xffffffff
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x474fd7
push esi
mov esi, dword [ebp - 0x1024]
test esi, esi
je 0x474fd6
xor edx, edx
test esi, esi
je 0x474fac
nop word [eax + eax]
movzx ecx, byte [ebp + edx - 0x1004]
inc edx
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x4fc2b0]
cmp edx, esi
jb 0x474f90
push 0
lea eax, [ebp - 0x1024]
mov dword [ebp - 0x1024], 0
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x474f75
pop esi
mov eax, dword [ebp - 0x1028]
not ebx
push edi
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x474ed6
push edx
push ecx
call fcn.00475891
add esp, 8
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
xor ecx, ebp
pop ebx
call fcn.00475880
mov esp, ebp
pop ebp
ret
call fcn.0047cd61
int3
Function at 0x49215c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00491e1f

Function at 0x492167
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00491fa0

Function at 0x495c8a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049594a

Function at 0x4a12cd
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x4c30f7
call fcn.004b316e
mov edi, ecx
mov dword [ebp - 0x30], edi
xor ebx, ebx
cmp dword [edi + 0x38], ebx
je 0x4a1402
cmp byte [edi + 0x3e], bl
je 0x4a1402
mov eax, dword [edi]
mov ecx, 0xffff
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4c5800]
mov ecx, edi
call esi
mov ecx, 0xffff
cmp cx, ax
jne 0x4a131a
xor al, al
jmp 0x4a1404
push ebx
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
call fcn.0043a1d0
lea eax, [edi + 0x40]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
lea esi, [ebp - 0x28]
mov dword [ebp - 0x2c], esi
cmp ecx, 0x10
jb 0x4a134f
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0x28]
cmp ecx, 0x10
jb 0x4a1359
mov edx, eax
mov edi, dword [edi + 0x38]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x2c]
mov esi, dword [edi]
push eax
push edx
push dword [ebp - 0x34]
mov ecx, dword [esi + 0x20]
call dword [0x4c5800]
mov ecx, edi
call dword [esi + 0x20]
sub eax, ebx
je 0x4a1389
sub eax, 1
jne 0x4a13e7
mov edi, dword [ebp - 0x30]
jmp 0x4a138f
mov edi, dword [ebp - 0x30]
mov byte [edi + 0x3e], bl
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x4a139f
mov edx, eax
mov esi, dword [ebp - 0x38]
sub esi, edx
je 0x4a13c9
lea edx, [ebp - 0x28]
cmp ecx, 0x10
jb 0x4a13b0
mov edx, eax
push dword [edi + 0x4c]
push esi
push 1
push edx
call fcn.00487a5a
add esp, 0x10
cmp esi, eax
jne 0x4a13f2
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
cmp byte [edi + 0x3e], 0
je 0x4a13f0
test esi, esi
jne 0x4a1341
push ebx
push 8
lea ecx, [ebp - 0x28]
call fcn.0043a300
jmp 0x4a133b
dec eax
sub eax, 1
jne 0x4a13f6
inc eax
jmp 0x4a13f4
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [ebp - 0x28]
call fcn.004042c0
mov al, bl
jmp 0x4a1404
mov al, 1
call fcn.004b3118
ret
Function at 0x4a1893
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x4c2cb1
call fcn.004b316e
mov esi, ecx
mov dword [ebp - 0x30], esi
mov edi, dword [ebp + 8]
mov ebx, 0xffff
cmp bx, di
jne 0x4a18b8
xor eax, eax
jmp 0x4a1a3f
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x4a18e4
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x4a18e4
dec dword [edx]
mov ax, di
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], di
jmp 0x4a1a3f
cmp dword [esi + 0x4c], 0
je 0x4a1a3c
mov ecx, esi
call fcn.004a1504
xor eax, eax
cmp dword [esi + 0x38], eax
jne 0x4a1918
push dword [esi + 0x4c]
push edi
call fcn.0048dc7d
pop ecx
pop ecx
cmp ax, bx
je 0x4a1a3c
movzx ebx, di
jmp 0x4a1a3c
push eax
push 8
lea ecx, [ebp - 0x28]
mov word [ebp - 0x2c], di
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.0043a1d0
and dword [ebp - 4], 0
lea eax, [esi + 0x40]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
lea edi, [ebp - 0x28]
mov dword [ebp - 0x34], edi
cmp ecx, 0x10
jb 0x4a1952
mov dword [ebp - 0x34], eax
lea edx, [ebp - 0x28]
cmp ecx, 0x10
jb 0x4a195c
mov edx, eax
mov edi, dword [esi + 0x38]
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x34]
mov esi, dword [edi]
push eax
push edx
lea eax, [ebp - 0x40]
mov ecx, dword [esi + 0x1c]
push eax
lea eax, [ebp - 0x2a]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x38]
call dword [0x4c5800]
mov ecx, edi
call dword [esi + 0x1c]
test eax, eax
js 0x4a1a34
cmp eax, 1
jg 0x4a1a0e
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x4a19a7
mov edx, eax
mov edi, dword [ebp - 0x3c]
sub edi, edx
je 0x4a19d6
lea edx, [ebp - 0x28]
cmp ecx, 0x10
jb 0x4a19b8
mov edx, eax
mov esi, dword [ebp - 0x30]
push dword [esi + 0x4c]
push edi
push 1
push edx
call fcn.00487a5a
add esp, 0x10
cmp edi, eax
jne 0x4a1a09
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
jmp 0x4a19d9
mov esi, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
mov byte [esi + 0x3e], 1
cmp dword [ebp - 0x40], edx
jne 0x4a1a03
test edi, edi
jne 0x4a1944
cmp dword [ebp - 0x18], 0x20
jae 0x4a1a2e
push edi
push 8
lea ecx, [ebp - 0x28]
call fcn.0043a300
jmp 0x4a193e
mov eax, dword [ebp + 8]
movzx ebx, ax
movzx ebx, bx
jmp 0x4a1a2e
cmp eax, 3
jne 0x4a1a34
mov eax, dword [ebp - 0x30]
push dword [eax + 0x4c]
push dword [ebp - 0x2c]
call fcn.0048dc7d
pop ecx
pop ecx
cmp ax, bx
je 0x4a1a2e
mov eax, dword [ebp + 8]
movzx ebx, ax
movzx eax, bx
movzx ebx, ax
lea ecx, [ebp - 0x28]
call fcn.004042c0
mov ax, bx
call fcn.004b3118
ret 4
Function at 0x4a5146
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
sub eax, edx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], edx
sbb esi, esi
not esi
and esi, eax
je 0x4a5175
movzx eax, byte [edx]
xor eax, dword [ecx]
imul eax, eax, 0x1000193
inc edx
inc edi
mov dword [ecx], eax
cmp edi, esi
jne 0x4a5160
jmp 0x4a5177
mov eax, dword [ecx]
pop edi
pop esi
pop ebp
ret 8
Function at 0x72d4f909
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jae 0x72d4f845
push esi
pop es
je 0x72d4f8bf
and al, 9
je 0x72d4f925
test dword [eax], ecx
je 0x72d4f8dd
dec esp
or byte [edi + ebp*2 + 0x50], dh
or byte [esp + eax*2 + 0x51], dh
or byte [eax], 0x74
mov edx, 0x1b740887
nop