joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ccf1
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push esi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x43cd13
xor eax, eax
jmp 0x43cdef
mov eax, dword [esi]
push edi
mov edi, dword [esi + 8]
push ebx
push ebx
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 4]
mov esi, dword [esi + 0xc]
push ebx
push str.DISPLAY
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_CreateDCA]
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
push eax
mov dword [ebp - 4], eax
call ebx
push 0xa
push dword [ebp - 4]
mov dword [ebp - 0x14], eax
call ebx
xor ecx, ecx
cmp dword [ebp - 0xc], ecx
jge 0x43cd55
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 8], ecx
jge 0x43cd5d
mov dword [ebp - 8], ecx
cmp edi, dword [ebp - 0x14]
jle 0x43cd65
mov edi, dword [ebp - 0x14]
cmp esi, eax
jle 0x43cd6b
mov esi, eax
sub edi, dword [ebp - 0xc]
sub esi, dword [ebp - 8]
cmp edi, ecx
mov ebx, dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], esi
jle 0x43cde6
cmp esi, ecx
jle 0x43cde6
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push esi
push dword [ebp - 0x14]
mov edi, eax
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edi
mov dword [ebp - 0x10], eax
call esi
mov ecx, dword [ebp + 0xc]
test ecx, ecx
mov dword [ebp - 0x1c], eax
je 0x43cdbb
mov dword [ecx], edi
mov dword [ecx + 4], eax
jmp 0x43cde6
push 0xcc0020
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x1c]
push edi
call esi
push edi
mov dword [ebp - 0x10], eax
call ebx
push dword [ebp - 4]
call ebx
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43dae5
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 0x43dba3
cmp word [esi + 2], 0x3a
jne 0x43dba3
cmp word [esi + 4], 0
jne 0x43dba3
mov eax, dword [ebp + 0x14]
and word [ebp - 0x20c], 0
test eax, eax
je 0x43db25
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 0x43db7c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edi, eax
inc edi
cmp edi, 4
jbe 0x43db7c
cmp dword [ebp + 0xc], edi
jae 0x43db61
mov eax, edi
jmp 0x43dbb3
lea eax, [edi + edi]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x10]
call fcn.0041255f
add esp, 0xc
lea eax, [edi - 1]
jmp 0x43dbb3
push 4
pop eax
cmp dword [ebp + 0xc], eax
jb 0x43dbb3
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 0x43dbb3
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 0x43efe7
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 0x43f03b
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 0x43f019
xor eax, eax
cmp eax, esi
mov dword [ebp - 4], eax
mov edx, eax
jne 0x43f03b
push esi
push esi
push 3
push esi
push 3
push esi
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
jne 0x43f036
xor eax, eax
mov dword [ebp - 4], eax
mov edx, eax
cmp edx, 0xffffffff
je 0x43f085
cmp edx, esi
je 0x43f085
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 0x43f088
or esi, 0xffffffff
lea ecx, [ebp - 4]
call fcn.00402b8a
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x4405e2
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.004050ca
cmp dword [ebp - 8], ebx
je 0x440627
push dword [ebp - 8]
call fcn.00483f5d
mov edi, edx
cmp edi, ebx
pop ecx
mov esi, eax
jg 0x44062b
jl 0x440627
cmp esi, ebx
jae 0x44062b
xor esi, esi
xor edi, edi
lea ecx, [ebp - 4]
call fcn.0043d27e
cmp edi, ebx
jl 0x440675
jg 0x44063d
cmp esi, ebx
jbe 0x440675
lea eax, [esi + 5]
push eax
lea ecx, [ebp - 4]
call fcn.0043d2c0
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 0x44066f
jg 0x44066d
cmp ecx, esi
jbe 0x44066f
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.0043d460
lea ecx, [ebp - 4]
call fcn.00437884
lea ecx, [ebp - 8]
call fcn.00402b8a
pop edi
pop esi
pop ebx
leave
ret
Function at 0x440a1f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push dword [ebp + 8]
call fcn.00483f5d
mov edi, eax
test edi, edi
pop ecx
jg 0x440a3c
xor eax, eax
jmp 0x440bb4
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edi
shr eax, 1
push esi
add eax, 0xc
push eax
mov ecx, ebx
call fcn.0043d3ea
mov esi, dword [ebx]
or dword [ebp - 8], 0xffffffff
push 0
lea eax, [ebp - 8]
push eax
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov edi, dword [ebp - 8]
test edi, edi
jle 0x440bb0
test eax, eax
je 0x440bb0
push 0xa
lea eax, [edi + esi]
push 0
push eax
call fcn.0048f710
lea eax, [edi + 0xa]
add esp, 0xc
mov dword [ebp - 4], eax
push 2
push 0x4a9d74
push esi
call fcn.00437938
add esp, 0xc
test eax, eax
jne 0x440aad
push edi
push esi
call fcn.0043b85d
pop ecx
pop ecx
push 2
push 0x4a9d70
push esi
call fcn.00437938
add esp, 0xc
neg eax
sbb eax, eax
inc eax
cmp byte [esi], 0
je 0x440aeb
cmp byte [esi + 1], 0
jne 0x440aeb
push dword [ebp - 4]
lea eax, [esi + 2]
push esi
push eax
call fcn.00412515
add dword [ebp - 4], 2
add esp, 0xc
inc edi
xor eax, eax
inc edi
mov word [esi], 0xfeff
inc eax
test eax, eax
jne 0x440b18
cmp byte [esi], al
jne 0x440b21
cmp byte [esi + 1], al
je 0x440b21
push dword [ebp - 4]
lea eax, [esi + 2]
push esi
push eax
call fcn.00412515
add esp, 0xc
inc edi
inc edi
add dword [ebp - 4], 2
mov word [esi], 0xfffe
jmp 0x440a90
mov eax, edi
shr eax, 1
jmp 0x440bb2
mov eax, dword [ebx]
and dword [ebx], 0
push edi
mov ecx, ebx
mov dword [ebp - 4], eax
call fcn.0043d3ea
mov eax, dword [ebx]
mov cx, word [0x4a9d70]
push 3
mov word [eax], cx
pop eax
push eax
push 0x4a9d78
push esi
mov dword [ebp - 0xc], eax
call fcn.00437938
add esp, 0xc
test eax, eax
je 0x440b7d
mov eax, dword [ebx]
push edi
inc eax
inc eax
push eax
push edi
push esi
push 8
push 0
call dword [0x4bdb9c]
mov edi, eax
xor eax, eax
test edi, edi
jle 0x440b80
lea ecx, [ebp - 4]
call fcn.00437884
lea eax, [edi + 1]
jmp 0x440bb2
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebx]
push edi
inc ecx
inc ecx
push ecx
sub edi, eax
push edi
add eax, esi
push eax
push 0
push 0xfde9
call dword [0x4bdb9c]
test eax, eax
jle 0x440ba2
lea esi, [eax + 1]
jmp 0x440ba4
xor esi, esi
lea ecx, [ebp - 4]
call fcn.00437884
mov eax, esi
jmp 0x440bb2
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret

Function at 0x440ebd
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.004050ca
cmp dword [ebp - 4], ebx
je 0x440f11
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.0043a7f0
add esp, 0xc
mov bl, al
lea ecx, [ebp - 4]
call fcn.00402b8a
mov al, bl
pop ebx
leave
ret
Function at 0x441192
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 [0x4bdbc8]
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
jne 0x44123d
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
push 0x1000
mov ecx, edi
mov dword [esi], 0xffa
call fcn.0043d2c0
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 0x441228
add dword [esi], 0xa
mov eax, dword [esi]
add eax, 6
push eax
mov ecx, edi
call fcn.0043d2c0
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 0x44124b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x441246
mov dword [ecx], eax
lea eax, [ebx - 1]
jmp 0x44127c
xor ecx, ecx
cmp dword [esi], ecx
jge 0x441253
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.0043d2c0
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4414a0
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
push esi
xor esi, esi
push esi
push 0x20000000
push 3
push esi
push 3
push 0x100080
push dword [ebp + 8]
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
call fcn.004050ca
cmp dword [ebp - 4], esi
jne 0x4414d4
or esi, 0xffffffff
jmp 0x44150f
or dword [ebp - 0xc], 0xffffffff
push esi
lea eax, [ebp - 0x1a0]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push 0x2d1080
push dword [ebp - 4]
mov dword [ebp - 0x1a0], esi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x4414cf
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x44150c
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov esi, dword [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.00402b8a
mov eax, esi
pop esi
leave
ret
Function at 0x44193c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
xor edx, edx
cmp ecx, edx
push ebx
push esi
push edi
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
ja 0x441969
cmp dword [ebp + 0x18], edx
jbe 0x441972
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ecx
cmp eax, edx
jne 0x44197c
lea eax, [ebp - 0x14]
mov dword [ebp + 0x20], eax
mov edi, dword [ebp + 0x14]
cmp edi, edx
mov esi, dword [ebp + 8]
jg 0x441990
push dword [esi]
call fcn.0043ad55
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.0048f710
and dword [ebp + 0x14], 0
push 0
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [esi]
call fcn.004389fe
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 0x441a0b
jb 0x4419e9
cmp dword [ebp + 0x18], ecx
ja 0x441a0b
mov eax, 0x1c2
mov edx, dword [ebp + 0xc]
cmp byte [eax + edx], 0xee
jne 0x441a01
mov edx, dword [eax + edx + 4]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
add eax, 0x10
cmp eax, 0x1f2
jle 0x4419ee
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.0048f820
add eax, dword [ebp + 0x24]
adc edx, dword [ebp + 0x28]
push edx
push eax
push dword [esi]
call fcn.004389fe
add esp, 0x10
inc ebx
imul ebx, edi
push 0
lea eax, [ebp + 0x14]
push eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebx + edi]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp dword [ebp - 4], 0
lea eax, [ebx + edi*2 + 0x10000]
mov dword [ebp + 0xc], eax
je 0x441ac1
push edi
push 0
push eax
call fcn.0048f710
mov eax, dword [ebp + 0x20]
add esp, 0xc
cmp dword [eax + 4], 0
ja 0x441a8b
jb 0x441a7a
cmp dword [eax], 2
jae 0x441a8b
mov ecx, dword [ebx + 0x220]
mov dword [eax], ecx
mov ecx, dword [ebx + 0x224]
mov dword [eax + 4], ecx
push 0
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [eax + 4]
push dword [eax]
call fcn.0048f820
add eax, dword [ebp + 0x24]
adc edx, dword [ebp + 0x28]
push edx
push eax
push dword [esi]
call fcn.004389fe
add esp, 0x10
push 0
lea eax, [ebp + 0x14]
push eax
push edi
push dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x441fd3
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x604
push ebx
push esi
push edi
push 0
mov ebx, 0x200
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0048f820
and dword [ebp - 4], 0
push 0
push edx
push eax
push dword [ebp + 8]
lea edi, [ebp - 0x404]
and edi, 0xfffffe00
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
lea esi, [edi + 0x200]
call fcn.004389fe
add esp, 0x10
cmp eax, dword [ebp + 0xc]
jne 0x4420c9
cmp edx, dword [ebp + 0x10]
jne 0x4420c9
push 0
lea eax, [ebp - 4]
push eax
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4420c9
push ebx
push esi
push edi
call fcn.0041255f
mov esi, dword [ebp + 0x18]
add esp, 0xc
cmp esi, 1
jne 0x44206f
push 0x10
push dword [ebp + 0x14]
lea eax, [edi + 0x3ce]
push eax
call fcn.0041255f
add esp, 0xc
dec esi
push 0
push dword [ebp + 0x10]
neg esi
push dword [ebp + 0xc]
sbb esi, esi
push dword [ebp + 8]
and esi, 0xffff55ab
add esi, 0xaa55
mov word [edi + 0x3fe], si
call fcn.004389fe
add esp, 0x10
cmp eax, dword [ebp + 0xc]
jne 0x4420c9
cmp edx, dword [ebp + 0x10]
jne 0x4420c9
push ebx
lea esi, [edi + 0x200]
push esi
push edi
call fcn.0043d677
add esp, 0xc
test eax, eax
jne 0x4420c9
push eax
lea eax, [ebp - 4]
push eax
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x44224c
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 0x442266
inc esi
cmp byte [esi], 0x23
mov byte [ebp + 0xb], 0
jne 0x442285
mov al, byte [esi + 1]
test al, al
jne 0x44227d
xor eax, eax
jmp 0x442307
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.0043d2c0
mov eax, dword [ebx]
xor cl, cl
mov byte [eax], 0
xor ebx, ebx
cmp byte [esi], cl
mov dword [ebp - 0xc], eax
je 0x4422cd
mov dl, byte [esi]
cmp dl, 0x3d
jne 0x44230a
test cl, cl
jle 0x4422c4
mov byte [eax], bl
inc eax
xor ebx, ebx
xor cl, cl
inc esi
cmp byte [esi], 0
mov dword [ebp - 8], esi
jne 0x4422b2
push dword [ebp - 0xc]
mov byte [eax], 0
call edi
xor ecx, ecx
cmp dword [ebp - 4], ecx
mov esi, eax
je 0x442300
cmp esi, ecx
jle 0x442300
mov eax, dword [ebp - 0xc]
lea edi, [ecx + eax]
mov eax, ecx
cdq
push 0x14
pop ebx
idiv ebx
mov al, byte [edx + 0x4aa3b4]
xor al, byte [ebp + 0xb]
xor byte [edi], al
inc ecx
cmp ecx, esi
jl 0x4422e2
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
pop edi
pop ebx
pop esi
leave
ret
cmp dl, 0x2b
jne 0x442313
xor dl, dl
jmp 0x442339
cmp dl, 0x2f
jne 0x44231d
add dl, 0xd2
jmp 0x442339
cmp dl, 0x39
ja 0x442327
add dl, 0xd2
jmp 0x442339
cmp dl, 0x5a
ja 0x442331
add dl, 0xcb
jmp 0x442339
cmp dl, 0x7a
ja 0x44233e
add dl, 0xc5
movzx edx, dl
jmp 0x442341
or edx, 0xffffffff
test edx, edx
jl 0x442370
mov esi, dword [ebp - 8]
shl edx, cl
or ebx, edx
add cl, 6
cmp cl, 8
jge 0x442365
test cl, cl
jle 0x4422c4
cmp byte [esi], 0
jne 0x4422c4
mov byte [eax], bl
inc eax
shr ebx, 8
add cl, 0xf8
jmp 0x44234f
xor eax, eax
jmp 0x442305
Function at 0x443314
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.004389fe
add esp, 0x10
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
pop esi
ret
Function at 0x444347
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.004050ca
cmp dword [ebp - 4], edi
je 0x4443ec
push esi
mov esi, dword [ebp + 0xc]
cmp esi, edi
mov dword [ebp - 0xc], edi
jne 0x444384
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 0x4443ba
push eax
push 2
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
cmp eax, edi
mov dword [ebx], eax
je 0x4443ea
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
jmp 0x4443c1
mov ebx, eax
call fcn.00481ff1
mov ebx, eax
cmp ebx, edi
je 0x4443ea
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 0x4443e8
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.00402b8a
mov eax, edi
pop edi
leave
ret
Function at 0x44483c
Capabilities:
Delete file
Query environment variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e4
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp dword [edi + 4], esi
mov dword [ebp - 4], esi
jg 0x44485b
xor eax, eax
jmp 0x444a20
push 0x4beb4c
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
call fcn.0043c485
lea ecx, [ebp - 0xc]
call fcn.00402b4e
push dword [edi + 4]
mov eax, dword [edi]
push eax
call fcn.0043c50d
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
je 0x44489b
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
push edi
call dword [eax + 0xc]
cmp dword [ebp - 4], esi
jne 0x4448a0
mov eax, dword [edi]
push edi
call dword [eax + 8]
cmp dword [ebp - 4], esi
je 0x4448ba
mov eax, dword [0x4be324]
cmp eax, esi
mov edi, dword [ebp - 4]
je 0x4448b3
cmp dword [ebp - 0xc], esi
jne 0x4448b3
call eax
mov esi, edi
jmp 0x444a13
mov edi, dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
push ebx
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x2e4]
push eax
push 0x4a3cc4
mov word [ebp - 0x2e4], si
call edi
cmp eax, esi
jg 0x444910
push ebx
lea eax, [ebp - 0x2e4]
push eax
push 0x4a3cb8
call edi
cmp eax, esi
jg 0x444910
mov eax, dword [0x4be324]
cmp eax, esi
je 0x444a12
cmp dword [ebp - 0xc], esi
jne 0x444a12
call eax
jmp 0x444a12
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], 0x63
lea edi, [ebp + eax*2 - 0x2e4]
call fcn.00439b48
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
add ebx, eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push eax
push str.pecmd_bmp._lu._lu.tmp
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push esi
push 0x80
push 1
push esi
push 5
push 0x40000000
lea eax, [ebp - 0x2e4]
push eax
lea ecx, [ebp - 8]
call fcn.004050ca
cmp dword [ebp - 8], esi
jne 0x444985
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
dec dword [ebp - 0x10]
jns 0x444921
lea ecx, [ebp - 8]
call fcn.00402b8a
jmp 0x4448f3
push esi
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 4]
mov dword [ebp - 0x14], esi
push dword [eax]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
lea ecx, [ebp - 8]
call fcn.00402b8a
push 0x10
push esi
push esi
push esi
lea eax, [ebp - 0x2e4]
push eax
push esi
call dword [sym.imp.USER32.dll_LoadImageW]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x4449e8
lea eax, [ebp - 0x2e4]
push eax
call fcn.004443f9
mov edi, eax
cmp edi, esi
pop ecx
je 0x4449e8
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
push edi
call dword [eax + 0xc]
cmp dword [ebp - 4], esi
jne 0x4449e8
mov eax, dword [edi]
push edi
call dword [eax + 8]
lea eax, [ebp - 0x2e4]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov edi, dword [ebp - 4]
lea ecx, [ebp - 8]
call fcn.00402b8a
mov eax, dword [0x4be324]
cmp eax, esi
je 0x444a10
cmp dword [ebp - 0xc], esi
jne 0x444a10
call eax
mov esi, edi
pop ebx
push 0x4beb4c
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, esi
pop edi
pop esi
leave
ret