joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44444d
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x40
mov esi, ecx
push 0xc
push dword [esi]
lea edi, [esi + 4]
call ebx
lea eax, [ebp - 4]
push eax
push 0x40
push 0x12
push edi
call ebx
push 0x12
push 0x4cdb6c
push edi
call fcn.00414839
mov ecx, dword [ebp + 8]
lea eax, [edi + 0xe]
sub ecx, eax
sub ecx, 4
mov dword [eax], ecx
mov esi, dword [esi + 0x18]
add esp, 0xc
test esi, esi
je 0x4444b1
push edi
push 0xfffffffffffffffc
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4444b1
mov dword [ecx], eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x444bf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
and dword [esi], 0
push edi
mov dword [ebp + 0x10], 0x80
mov edi, ebx
test ebx, ebx
ja 0x444c19
xor eax, eax
cmp eax, dword [esi]
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
pop ebp
ret
and dword [ebp + 0x14], 0
push 0
lea eax, [ebp + 0x14]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x444c50
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x444c47
cmp dword [ebp + 0x10], eax
jg 0x444c44
mov eax, edi
jmp 0x444c47
dec dword [ebp + 0x10]
add dword [esi], eax
add dword [ebp + 0xc], eax
sub ebx, eax
jmp 0x444c08
and dword [ebp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x70
jne 0x444c0c
mov eax, dword [ebp + 0x18]
cmp edi, eax
jbe 0x444c0c
cmp ebx, eax
jbe 0x444c06
lea edi, [edi + eax - 1]
shr edi, 1
cmp edi, eax
jbe 0x444c08
and edi, 0xfffffe00
jmp 0x444c08

Function at 0x444dde
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
and dword [0x4e34d8], 0
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test byte [ebp - 0xef], 0x80
je 0x444e0b
or dword [0x4e34d8], 2
test byte [ebp - 0xf0], 0x80
je 0x444e1b
or dword [0x4e34d8], 4
test byte [ebp - 0xee], 0x80
je 0x444e2b
or dword [0x4e34d8], 1
test byte [ebp - 0xa5], 0x80
je 0x444e3b
or dword [0x4e34d8], 8
test byte [ebp - 0xa4], 0x80
je 0x444e4b
or dword [0x4e34d8], 8
leave
ret
Function at 0x4459ec
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
mov eax, dword [ebp + 0x10]
push esi
xor esi, esi
cmp eax, esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], esi
jne 0x445a27
cmp dword [ebp + 0xc], 2
jb 0x445a3c
cmp dword [ebp + 0xc], 3
jbe 0x445a20
cmp dword [ebp + 0xc], 5
jne 0x445a3c
mov dword [ebp - 4], 0x4c8068
jmp 0x445a27
mov dword [ebp - 4], 0x4c8078
push 0x12
push esi
push esi
push dword [ebp - 4]
call dword [0x4e2f88]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x445a43
xor eax, eax
jmp 0x445b83
push edi
push 0x1c
pop ecx
xor eax, eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], esi
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
lea eax, [ebp - 0x34]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
push esi
push dword [ebp - 8]
mov dword [ebp + 0x10], esi
mov dword [ebp - 0x5c], ecx
call edi
test eax, eax
je 0x445b76
push ebx
mov ebx, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push esi
push dword [ebp - 8]
call edi
push esi
lea eax, [ebp + 0x10]
push eax
push esi
push esi
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 8]
mov dword [ebp + 0x10], esi
call ebx
cmp dword [ebp + 0x10], esi
je 0x445b49
cmp dword [ebp + 0x10], 0x400
ja 0x445b49
push 0x1c
lea eax, [ebp - 0x78]
push esi
push eax
mov dword [ebp - 0x478], 6
call fcn.004b4520
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 8]
mov dword [ebp - 0x78], 0x1c
call ebx
test eax, eax
je 0x445b49
push esi
push esi
push 3
push esi
push 3
push esi
lea eax, [ebp - 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x445b49
push esi
lea ecx, [ebp - 0x18]
push ecx
push 0xc
lea ecx, [ebp - 0x40]
push ecx
push esi
push esi
push 0x2d1080
push eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x445b40
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x3c]
je 0x445b66
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0xc]
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push esi
push dword [ebp - 8]
call edi
test eax, eax
jne 0x445a83
jmp 0x445b75
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x14], eax
pop ebx
push dword [ebp - 8]
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
leave
ret

Function at 0x445c94
Capabilities:
Set environment variable

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, dword [esp + 0xc]
push esi
call fcn.00445c44
push dword [esp + 0xc]
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop esi
ret 8
Function at 0x446dfc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
mov esi, dword [ebp + 8]
cmp word [esi], 0x7a
push edi
jbe 0x446eba
cmp word [esi + 2], 0x3a
jne 0x446eba
cmp word [esi + 4], 0
jne 0x446eba
mov eax, dword [ebp + 0x14]
and word [ebp - 0x20c], 0
test eax, eax
je 0x446e3c
and dword [eax], 0
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ax, word [esi]
cmp ax, word [ebp - 0x20c]
jne 0x446e93
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
inc edi
cmp edi, 4
jbe 0x446e93
cmp dword [ebp + 0xc], edi
jae 0x446e78
mov eax, edi
jmp 0x446eca
lea eax, [edi + edi]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x10]
call fcn.00414839
add esp, 0xc
lea eax, [edi - 1]
jmp 0x446eca
push 4
pop eax
cmp dword [ebp + 0xc], eax
jb 0x446eca
mov eax, dword [ebp + 0x10]
mov cx, word [esi]
and word [eax + 6], 0
push 3
mov word [eax], cx
mov word [eax + 2], 0x3a
mov word [eax + 4], 0x5c
pop eax
jmp 0x446eca
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
pop edi
pop esi
leave
ret
Function at 0x4484dc
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov edx, dword [ebp + 0xc]
push esi
xor esi, esi
cmp edx, esi
push edi
mov dword [ebp - 4], esi
jne 0x448530
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
push esi
push 3
push esi
push 3
push 0x80000000
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
jne 0x44850e
xor eax, eax
cmp eax, esi
mov dword [ebp - 4], eax
mov edx, eax
jne 0x448530
push esi
push esi
push 3
push esi
push 3
push esi
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
jne 0x44852b
xor eax, eax
mov dword [ebp - 4], eax
mov edx, eax
cmp edx, 0xffffffff
je 0x44857a
cmp edx, esi
je 0x44857a
push 9
pop ecx
xor eax, eax
push 0x28
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
lea edi, [ebp - 8]
stosd dword es:[edi], eax
mov dword [ebp - 0x38], esi
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
pop eax
push esi
lea ecx, [ebp + 0xc]
push ecx
push eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push edx
mov dword [ebp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov esi, dword [ebp - 0x1c]
jmp 0x44857d
or esi, 0xffffffff
lea ecx, [ebp - 4]
call fcn.00402d2b
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x449f32
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 7
push 0x80000000
push dword [ebp + 8]
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
call fcn.00405c6d
cmp dword [ebp - 8], ebx
je 0x449f77
push dword [ebp - 8]
call fcn.004a0f57
mov edi, edx
cmp edi, ebx
pop ecx
mov esi, eax
jg 0x449f7b
jl 0x449f77
cmp esi, ebx
jae 0x449f7b
xor esi, esi
xor edi, edi
lea ecx, [ebp - 4]
call fcn.0044641a
cmp edi, ebx
jl 0x449fc5
jg 0x449f8d
cmp esi, ebx
jbe 0x449fc5
lea eax, [esi + 5]
push eax
lea ecx, [ebp - 4]
call fcn.0044645c
push ebx
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0xc], ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0xc]
xor eax, eax
cmp eax, edi
jl 0x449fbf
jg 0x449fbd
cmp ecx, esi
jbe 0x449fbf
mov ecx, esi
mov eax, dword [ebp - 4]
mov byte [ecx + eax], bl
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 4]
call fcn.00446649
lea ecx, [ebp - 4]
call fcn.0043fe25
lea ecx, [ebp - 8]
call fcn.00402d2b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44a36f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
and eax, 1
mov dword [ebp - 4], eax
call fcn.004a0f57
mov ebx, eax
test ebx, ebx
pop ecx
jg 0x44a395
xor eax, eax
jmp 0x44a51f
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebx + 0xc]
push eax
mov ecx, edi
call fcn.004465d3
mov esi, dword [edi]
or dword [ebp - 8], 0xffffffff
push 0
lea eax, [ebp - 8]
push eax
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [ebp - 8]
test ebx, ebx
jle 0x44a51b
test eax, eax
je 0x44a51b
push 0xa
lea eax, [ebx + esi]
push 0
push eax
call fcn.004b4520
lea eax, [ebx + 0xa]
add esp, 0xc
mov dword [ebp + 0x10], eax
push 2
push 0x4cd47c
push esi
call fcn.0043ff15
add esp, 0xc
test eax, eax
jne 0x44a402
push ebx
push esi
call fcn.0044462f
pop ecx
pop ecx
push 2
push 0x4cd478
push esi
call fcn.0043ff15
add esp, 0xc
neg eax
sbb eax, eax
inc eax
cmp byte [esi], 0
je 0x44a440
cmp byte [esi + 1], 0
jne 0x44a440
push dword [ebp + 0x10]
lea eax, [esi + 2]
push esi
push eax
call fcn.004147ef
add dword [ebp + 0x10], 2
add esp, 0xc
inc ebx
xor eax, eax
inc ebx
mov word [esi], 0xfeff
inc eax
test eax, eax
jne 0x44a46d
cmp byte [esi], al
jne 0x44a476
cmp byte [esi + 1], al
je 0x44a476
push dword [ebp + 0x10]
lea eax, [esi + 2]
push esi
push eax
call fcn.004147ef
add esp, 0xc
inc ebx
inc ebx
add dword [ebp + 0x10], 2
mov word [esi], 0xfffe
jmp 0x44a3e5
mov eax, ebx
shr eax, 1
jmp 0x44a51d
mov eax, dword [edi]
and dword [edi], 0
push ebx
mov ecx, edi
mov dword [ebp - 0xc], eax
call fcn.004465d3
mov eax, dword [edi]
mov cx, word [0x4cd478]
push 3
mov word [eax], cx
pop eax
push eax
push 0x4cd480
push esi
mov dword [ebp + 0x10], eax
call fcn.004468ae
add esp, 0xc
test eax, eax
jne 0x44a4b2
cmp dword [ebp - 4], eax
je 0x44a4e1
jmp 0x44a4b5
mov eax, dword [ebp + 0x10]
lea ecx, [ebx + 1]
push ecx
mov ecx, dword [edi]
inc ecx
inc ecx
push ecx
mov ecx, ebx
sub ecx, eax
push ecx
add eax, esi
push eax
push 8
push 0xfde9
call dword [0x4e2be4]
cmp dword [ebp - 4], 0
je 0x44a514
test eax, eax
jg 0x44a518
or dword [ebp - 4], 2
lea eax, [ebx + 1]
push eax
mov eax, dword [edi]
inc eax
inc eax
push eax
push ebx
push esi
push 8
push 0
call dword [0x4e2be4]
and dword [ebp + 0x10], 0
test eax, eax
jg 0x44a518
cmp dword [ebp - 4], 0
je 0x44a4b2
xor eax, eax
lea ecx, [ebp - 0xc]
mov esi, eax
call fcn.0043fe25
mov eax, esi
jmp 0x44a51d
test eax, eax
jle 0x44a504
inc eax
jmp 0x44a506
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44a828
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 7
push 0x80000000
push dword [ebp + 8]
lea ecx, [ebp - 4]
mov byte [ebp - 0x28], bl
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.00405c6d
cmp dword [ebp - 4], ebx
je 0x44a87c
push ebx
lea eax, [ebp - 8]
push eax
push 0x20
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push dword [ebp - 8]
lea eax, [ebp - 0x28]
push eax
call fcn.004433e4
add esp, 0xc
mov bl, al
lea ecx, [ebp - 4]
call fcn.00402d2b
mov al, bl
pop ebx
leave
ret

Function at 0x44ad45
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
or dword [ebp - 0xc], 0xffffffff
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
movzx eax, word [0x4e2c20]
or eax, 0x20019
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
mov esi, dword [ebp + 0x18]
jne 0x44adf0
mov edi, dword [ebp + 0x14]
push 0x1000
mov ecx, edi
mov dword [esi], 0xffa
call fcn.0044645c
mov eax, dword [edi]
mov byte [eax], bl
mov eax, dword [edi]
push esi
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call ebx
cmp eax, 0xea
mov dword [ebp - 8], eax
jne 0x44addb
add dword [esi], 0xa
mov eax, dword [esi]
add eax, 6
push eax
mov ecx, edi
call fcn.0044645c
mov eax, dword [edi]
push esi
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call ebx
mov dword [ebp - 8], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or ebx, 0xffffffff
cmp dword [ebp - 8], 0
je 0x44ae01
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x1c]
and dword [esi], 0
test ecx, ecx
je 0x44adfc
mov dword [ecx], eax
lea eax, [ebx - 1]
jmp 0x44ae32
xor ecx, ecx
cmp dword [esi], ecx
jge 0x44ae09
mov dword [esi], ecx
mov eax, dword [edi]
mov edx, dword [esi]
mov byte [eax + edx], 0
mov eax, dword [esi]
mov edx, dword [edi]
inc eax
shr eax, 1
lea eax, [edx + eax*2]
mov word [eax + 2], cx
mov word [eax], cx
mov eax, dword [esi]
add eax, 5
push eax
mov ecx, edi
call fcn.0044645c
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44b05f
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
or ebx, 0xffffffff
cmp esi, edi
mov dword [ebp - 4], edi
je 0x44b07f
mov dword [esi], ebx
mov dword [esi + 4], ebx
push edi
push 0x20000000
push 3
push edi
push 3
push 0x100080
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.00405c6d
cmp dword [ebp - 4], edi
je 0x44b0e7
push edi
lea eax, [ebp - 0x1a0]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push 0x2d1080
push dword [ebp - 4]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x1a0], edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x44b0e7
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x44b0d6
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
cmp esi, edi
mov eax, dword [ebp - 0xc]
je 0x44b0e5
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov dword [esi + 4], eax
mov ebx, eax
lea ecx, [ebp - 4]
call fcn.00402d2b
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x44b37e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0x20]
xor edx, edx
push edi
mov edi, dword [ebp + 0x18]
xor ecx, ecx
inc edx
mov eax, edi
add eax, edx
adc ebx, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], ebx
jne 0x44b3b3
cmp eax, edx
jbe 0x44b3bc
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], eax
cmp esi, ecx
jne 0x44b3c6
lea eax, [ebp - 0x14]
mov dword [ebp + 0x20], eax
mov edi, dword [ebp + 0x14]
cmp edi, ecx
mov esi, dword [ebp + 8]
jg 0x44b3e0
push 0x200
push dword [esi]
call fcn.004438ac
pop ecx
pop ecx
mov edi, eax
mov eax, dword [ebp + 0x10]
shl eax, 7
lea eax, [eax + edi - 1]
xor edx, edx
div edi
mov ebx, eax
inc ebx
inc ebx
lea eax, [ebx + 2]
imul eax, edi
push eax
push 0
push dword [ebp + 0xc]
call fcn.004b4520
and dword [ebp + 0x14], 0
push 0
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [esi]
call fcn.00441183
add esp, 0x1c
push 0
lea eax, [ebp + 0x14]
push eax
push edi
push dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
cmp dword [ebp + 0x1c], ecx
ja 0x44b45b
jb 0x44b439
cmp dword [ebp + 0x18], ecx
ja 0x44b45b
mov eax, 0x1c2
mov edx, dword [ebp + 0xc]
cmp byte [eax + edx], 0xee
jne 0x44b451
mov edx, dword [eax + edx + 4]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
add eax, 0x10
cmp eax, 0x1f2
jle 0x44b43e
push ecx
push dword [ebp - 8]
mov eax, edi
push dword [ebp - 0xc]
cdq
push edx
push eax
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], edx
call fcn.004b4630
add eax, dword [ebp + 0x24]
adc edx, dword [ebp + 0x28]
push edx
push eax
push dword [esi]
call fcn.00441183
mov eax, dword [ebp + 0xc]
add esp, 0x10
add eax, edi
inc ebx
imul ebx, edi
push 0
lea ecx, [ebp + 0x14]
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
push dword [esi]
mov dword [ebp + 0x10], eax
call ebx
cmp dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
lea eax, [eax + edi*2 + 0x10000]
mov dword [ebp + 0xc], eax
je 0x44b511
push edi
push 0
push eax
call fcn.004b4520
mov eax, dword [ebp + 0x20]
add esp, 0xc
cmp dword [eax + 4], 0
ja 0x44b4df
jb 0x44b4d1
cmp dword [eax], 2
jae 0x44b4df
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x20]
mov dword [eax], edx
mov ecx, dword [ecx + 0x24]
mov dword [eax + 4], ecx
push 0
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [eax + 4]
push dword [eax]
call fcn.004b4630
add eax, dword [ebp + 0x24]
adc edx, dword [ebp + 0x28]
push edx
push eax
push dword [esi]
call fcn.00441183
add esp, 0x10
push 0
lea eax, [ebp + 0x14]
push eax
push edi
push dword [ebp + 0xc]
push dword [esi]
call ebx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44c677
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
push esi
mov esi, dword [ebp + 8]
cmp byte [esi], 0x23
sete al
test eax, eax
mov dword [ebp - 4], eax
je 0x44c691
inc esi
cmp byte [esi], 0x23
mov byte [ebp + 0xb], 0
jne 0x44c6b0
mov al, byte [esi + 1]
test al, al
jne 0x44c6a8
xor eax, eax
jmp 0x44c732
inc dword [ebp - 4]
inc esi
mov byte [ebp + 0xb], al
inc esi
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
mov ebx, dword [ebp + 0xc]
lea eax, [eax + eax*2 + 3]
push eax
mov ecx, ebx
mov dword [ebp - 8], esi
call fcn.0044645c
mov eax, dword [ebx]
xor cl, cl
mov byte [eax], 0
xor ebx, ebx
cmp byte [esi], cl
mov dword [ebp - 0xc], eax
je 0x44c6f8
mov dl, byte [esi]
cmp dl, 0x3d
jne 0x44c735
test cl, cl
jle 0x44c6ef
mov byte [eax], bl
inc eax
xor ebx, ebx
xor cl, cl
inc esi
cmp byte [esi], 0
mov dword [ebp - 8], esi
jne 0x44c6dd
push dword [ebp - 0xc]
mov byte [eax], 0
call edi
xor ecx, ecx
cmp dword [ebp - 4], ecx
mov esi, eax
je 0x44c72b
cmp esi, ecx
jle 0x44c72b
mov eax, dword [ebp - 0xc]
lea edi, [ecx + eax]
mov eax, ecx
cdq
push 0x14
pop ebx
idiv ebx
mov al, byte [edx + 0x4cdb54]
xor al, byte [ebp + 0xb]
xor byte [edi], al
inc ecx
cmp ecx, esi
jl 0x44c70d
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
pop edi
pop ebx
pop esi
leave
ret
cmp dl, 0x2b
jne 0x44c73e
xor dl, dl
jmp 0x44c764
cmp dl, 0x2f
jne 0x44c748
add dl, 0xd2
jmp 0x44c764
cmp dl, 0x39
ja 0x44c752
add dl, 0xd2
jmp 0x44c764
cmp dl, 0x5a
ja 0x44c75c
add dl, 0xcb
jmp 0x44c764
cmp dl, 0x7a
ja 0x44c769
add dl, 0xc5
movzx edx, dl
jmp 0x44c76c
or edx, 0xffffffff
test edx, edx
jl 0x44c79b
mov esi, dword [ebp - 8]
shl edx, cl
or ebx, edx
add cl, 6
cmp cl, 8
jge 0x44c790
test cl, cl
jle 0x44c6ef
cmp byte [esi], 0
jne 0x44c6ef
mov byte [eax], bl
inc eax
shr ebx, 8
add cl, 0xf8
jmp 0x44c77a
xor eax, eax
jmp 0x44c730
Function at 0x44cb2f
Capabilities:
Get file size

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x33c
lea eax, [ebp + 0x78]
push ebx
push eax
mov dword [ebp + 0x50], ecx
call fcn.0043fe57
mov dword [esp], 0x4cf4b4
push 5
pop eax
lea ebx, [ebp + 0x78]
mov byte [ebp + 0x6f], 0
call fcn.00446174
test al, al
pop ecx
je 0x44cb66
mov byte [ebp + 0x6f], 1
lea ecx, [ebp + 0x64]
call fcn.0044658e
mov eax, dword [ebp + 0x78]
xor ebx, ebx
cmp word [eax], 0x3d
mov dword [ebp + 0x60], 0x4c7504
je 0x44cb9c
mov ecx, dword [ebp + 0x50]
push ebx
push 0x3d
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0043afff
mov dword [ebp + 0x78], eax
cmp word [eax], 0x3d
jne 0x44cbab
inc eax
inc eax
push eax
mov dword [ebp + 0x78], eax
call fcn.004135f9
pop ecx
mov dword [ebp + 0x60], eax
mov eax, dword [ebp + 0x64]
cmp word [eax], bx
jne 0x44cbc0
lea ecx, [ebp + 0x64]
call fcn.0043fe25
jmp 0x44cce7
push esi
mov esi, dword [ebp + 0x60]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, eax
xor eax, eax
cmp edx, ebx
mov ecx, 0x93
lea edi, [ebp - 0x2c8]
mov dword [ebp - 0x2cc], ebx
mov dword [ebp + 0x4c], edx
mov dword [ebp + 0x5c], ebx
rep stosd dword es:[edi], eax
jle 0x44cbfe
mov ax, word [esi + edx*2 - 2]
cmp ax, 0x5c
je 0x44cc5f
cmp ax, 0x2f
je 0x44cc5f
lea eax, [ebp - 0x2cc]
push eax
lea eax, [ebp + 0x5c]
push esi
push eax
call fcn.004b3c03
add esp, 0xc
xor esi, esi
xor edi, edi
cmp dword [ebp + 0x5c], ebx
je 0x44ccb4
test byte [ebp - 0x2cc], 0x10
jne 0x44cc65
test byte [ebp - 0x2cb], 4
je 0x44cca0
cmp byte [ebp + 0x6f], bl
jle 0x44cca0
push ebx
push 0x80
push 3
push ebx
push 7
push ebx
push dword [ebp + 0x60]
lea ecx, [ebp + 0x68]
mov dword [ebp + 0x68], ebx
call fcn.00405c6d
cmp dword [ebp + 0x68], ebx
jne 0x44cc7d
lea ecx, [ebp + 0x68]
call fcn.00402d2b
jmp 0x44cc65
mov edi, dword [ebp + 0x58]
mov esi, dword [ebp + 0x54]
cmp dword [ebp + 0x4c], 0x20e
jge 0x44ccb4
push dword [ebp + 0x60]
call fcn.0044c9d5
pop ecx
mov esi, eax
mov edi, edx
jmp 0x44ccb4
lea eax, [ebp + 0x54]
push eax
push dword [ebp + 0x68]
mov dword [ebp + 0x54], ebx
mov dword [ebp + 0x58], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov esi, dword [ebp + 0x54]
mov edi, dword [ebp + 0x58]
lea ecx, [ebp + 0x68]
call fcn.00402d2b
jmp 0x44ccb4
mov eax, dword [ebp - 0x2ac]
mov edi, dword [ebp - 0x2b0]
xor esi, esi
xor ecx, ecx
or esi, eax
or edi, ecx
push edi
lea eax, [ebp - 0x7c]
push esi
push eax
mov word [ebp - 0x7c], bx
call fcn.004a12b7
mov ecx, dword [ebp + 0x50]
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push dword [ebp + 0x64]
call fcn.00445c44
lea ecx, [ebp + 0x5c]
call fcn.00402d60
lea ecx, [ebp + 0x64]
call fcn.0043fe25
pop edi
pop esi
xor eax, eax
pop ebx
add ebp, 0x70
leave
ret 8
Function at 0x44db3e
Capabilities:
Clear file content

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esi]
call fcn.00441183
add esp, 0x10
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop esi
ret
Function at 0x44f03d
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
lea ecx, [ebp - 4]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
call fcn.00405c6d
cmp dword [ebp - 4], edi
je 0x44f0e2
push esi
mov esi, dword [ebp + 0xc]
cmp esi, edi
mov dword [ebp - 0xc], edi
jne 0x44f07a
lea esi, [ebp - 0xc]
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [ebp + 0x10]
xor ecx, ecx
cmp ebx, edi
setne cl
mov dword [esi], eax
cmp ecx, edi
mov dword [ebp - 8], ecx
je 0x44f0b0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, edi
mov dword [ebx], eax
je 0x44f0e0
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
jmp 0x44f0b7
mov ebx, eax
call fcn.0049e400
mov ebx, eax
cmp ebx, edi
je 0x44f0e0
push edi
lea eax, [ebp - 0x10]
push eax
push dword [esi]
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], edi
je 0x44f0de
mov eax, dword [ebp + 0x10]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edi, ebx
pop ebx
pop esi
lea ecx, [ebp - 4]
call fcn.00402d2b
mov eax, edi
pop edi
leave
ret