joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x45a620
push eax
mov dword fs:[0], esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x4c], ebx
jle 0x41a053
xor edi, edi
mov eax, dword [esi + 0x54]
mov ecx, dword [edi + eax]
test ecx, ecx
je 0x41a04a
cmp byte [edi + eax + 8], 0
je 0x41a04a
push ecx
call fcn.0040cd50
mov eax, dword [esi + 0x54]
add esp, 4
mov dword [edi + eax], 0
inc ebx
add edi, 0x78
cmp ebx, dword [esi + 0x4c]
jl 0x41a026
xor edx, edx
cmp dword [esi + 0x34], edx
jle 0x41a099
nop word [eax + eax]
mov eax, dword [esi + 0x3c]
mov edi, dword [eax + edx*4]
mov eax, dword [esi + 0x54]
mov ebx, dword [edi + 0x3c]
cmp ebx, eax
jb 0x41a093
mov ecx, dword [esi + 0x4c]
shl ecx, 4
sub ecx, dword [esi + 0x4c]
lea eax, [eax + ecx*8]
cmp ebx, eax
jae 0x41a093
mov dword [edi + 0x3c], 0
xor ecx, ecx
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + edx*4]
mov word [eax + 0x40], cx
inc edx
cmp edx, dword [esi + 0x34]
jl 0x41a060
mov eax, dword [esi + 0x54]
test eax, eax
je 0x41a0be
push eax
mov dword [esi + 0x50], 0
mov dword [esi + 0x4c], 0
call fcn.0040cd50
add esp, 4
mov dword [esi + 0x54], 0
mov eax, dword [esi + 0x48]
test eax, eax
je 0x41a0e3
push eax
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], 0
call fcn.0040cd50
add esp, 4
mov dword [esi + 0x48], 0
mov dword [esi + 0x58], 0xffffffff
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41a0fa
push eax
call fcn.0040cd50
add esp, 4
mov eax, dword [esi + 0x18]
test eax, eax
je 0x41a10a
push eax
call fcn.0040cd50
add esp, 4
xor ebx, ebx
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
cmp dword [esi + 0x34], ebx
jle 0x41a18a
nop
mov eax, dword [esi + 0x3c]
mov edi, dword [eax + ebx*4]
test edi, edi
je 0x41a184
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.0041a3b0
mov eax, dword [edi + 0x28]
mov byte [ebp - 4], 1
test eax, eax
je 0x41a14c
push eax
call fcn.0040cd50
add esp, 4
mov eax, dword [edi + 0x1c]
mov byte [ebp - 4], 2
test eax, eax
je 0x41a160
push eax
call fcn.0040cd50
add esp, 4
mov eax, dword [edi + 8]
mov byte [ebp - 4], 3
test eax, eax
je 0x41a174
push eax
call fcn.0040cd50
add esp, 4
push edi
mov dword [ebp - 4], 0xffffffff
call fcn.0040cd50
add esp, 4
inc ebx
cmp ebx, dword [esi + 0x34]
jl 0x41a120
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x41a1af
push eax
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0
call fcn.0040cd50
add esp, 4
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4374f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call fcn.0040a6b0
movaps xmm0, xmmword [str.F__3_]
xor ecx, ecx
movups xmmword [ebp - 0x10], xmm0
mov dl, byte [ebp - 0x10]
xor byte [ebp + ecx - 0xf], dl
inc ecx
cmp ecx, 0xe
jb 0x437508
or dword [eax + 4], 8
lea ecx, [ebp - 0xf]
mov dword [eax + 0xb8], ecx
mov ecx, dword [ebp + 8]
push ecx
mov dword [0x46edf4], ecx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x437ed0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x46ee18
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x437fe2
push 0x46ee10
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x437fe2
push esi
mov esi, dword [ebp + 8]
mov dword [0x46ee08], esi
call fcn.0040a6b0
movaps xmm0, xmmword [0x45f710]
movups xmmword [ebp - 0x12], xmm0
mov word [ebp - 2], 0x74
or dword [eax + 4], 6
xor edx, edx
mov cl, byte [ebp - 0x12]
xor byte [ebp + edx - 0x11], cl
inc edx
cmp edx, 0x10
jb 0x437f22
lea ecx, [ebp - 0x11]
mov dword [eax + 0xd8], esi
mov dword [eax + 0xb4], ecx
mov dword [eax + 0x2c], 9
mov dword [eax + 0x30], 0x25
mov dword [eax + 0x34], 0x27
mov dword [eax + 0x38], 0x26
mov dword [eax + 0x3c], 0x28
mov dword [eax + 0x40], 0x21
mov dword [eax + 0x44], 0x22
mov dword [eax + 0x48], 0x24
mov dword [eax + 0x4c], 0x23
mov dword [eax + 0x50], 0x2d
mov dword [eax + 0x54], 0x2e
mov dword [eax + 0x58], 8
mov dword [eax + 0x5c], 0x20
mov dword [eax + 0x60], 0xd
mov dword [eax + 0x64], 0x1b
mov dword [eax + 0x68], 0xd
mov dword [eax + 0x6c], 0x41
mov dword [eax + 0x70], 0x43
mov dword [eax + 0x74], 0x56
mov dword [eax + 0x78], 0x58
mov dword [eax + 0x7c], 0x59
mov dword [eax + 0x80], 0x5a
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x437ff0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
call fcn.0040a6b0
mov edi, eax
lea eax, [ebp - 0x28]
push eax
push dword [0x46ee08]
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x28]
movd xmm0, eax
lea eax, [ebp - 0x10]
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
push eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 8], xmm1
movss dword [edi + 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [0x46ee10]
mov edx, dword [ebp - 0xc]
sbb edx, dword [0x46ee14]
call fcn.0043c7c0
mov edx, dword [0x46ee1c]
mov ecx, dword [0x46ee18]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 4], xmm0
call fcn.0043c7c0
movss xmm1, dword [ebp - 4]
cvtsd2ss xmm0, xmm0
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
divss xmm1, xmm0
movss dword [edi + 0x10], xmm1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [0x46ee10], eax
mov dword [0x46ee14], ecx
call esi
shr eax, 0xf
and al, 1
push 0x10
mov byte [edi + 0xf8], al
call esi
shr eax, 0xf
and al, 1
push 0x12
mov byte [edi + 0xf9], al
call esi
shr eax, 0xf
and al, 1
mov byte [edi + 0xfb], 0
mov byte [edi + 0xfa], al
call fcn.0040a6b0
cmp byte [eax + 0x353], 0
lea esi, [eax + 0xe0]
je 0x43810d
cvttss2si eax, dword [eax + 0xe4]
cvttss2si ecx, dword [esi]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push dword [0x46ee08]
mov dword [ebp - 8], ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetCursorPos]
mov dword [esi], 0xff7fffff
mov dword [esi + 4], 0xff7fffff
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x438175
mov ecx, dword [0x46ee08]
cmp eax, ecx
je 0x43813a
push ecx
push eax
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x438175
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x438175
lea eax, [ebp - 0x18]
push eax
push dword [0x46ee08]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x438175
movd xmm0, dword [ebp - 0x18]
movd xmm1, dword [ebp - 0x14]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [esi], xmm0
movss dword [esi + 4], xmm1
cmp byte [edi + 0xa8], 0
pop edi
pop esi
je 0x438185
or eax, 0xffffffff
jmp 0x43818a
call fcn.0040a7a0
cmp dword [0x46e234], eax
je 0x43819c
mov dword [0x46e234], eax
call fcn.004381b0
mov esp, ebp
pop ebp
ret
Function at 0x438c90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push dword [ebp + 0xc]
mov ebx, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
mov word [ebp - 4], 0x4c2
lea eax, [ebp - 8]
mov byte [ebp - 2], 0
push eax
push 0x40
push 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 0
push 4
lea eax, [ebp - 4]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x439c70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
je 0x439d2b
movaps xmm0, xmmword [0x45f980]
xor eax, eax
mov dword [ebp - 4], 0
movups xmmword [ebp - 0x26], xmm0
mov dword [ebp - 0x16], 0xe303137
mov dword [ebp - 0x12], 0x3b3d312c
mov word [ebp - 0xe], 0x2d2d
mov byte [ebp - 0xc], 0
nop
mov cl, byte [ebp - 0x26]
xor byte [ebp + eax - 0x25], cl
inc eax
cmp eax, 0x19
jb 0x439cb0
push ebx
mov ch, 0x17
mov byte [ebp - 5], 0
mov bl, 0x7b
mov byte [ebp - 0xc], 0
mov ah, bl
mov byte [ebp - 0xb], ch
mov al, 0x79
mov byte [ebp - 5], 0
xor al, ch
xor ah, ch
mov cl, 0x63
mov byte [ebp - 0xa], al
mov dl, 0x73
mov byte [ebp - 6], ah
lea eax, [ebp - 0xa]
xor cl, ch
xor dl, ch
mov byte [ebp - 9], cl
xor bl, ch
mov byte [ebp - 8], dl
push eax
mov byte [ebp - 7], bl
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [ebp - 0x25]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop ebx
test eax, eax
je 0x439d2b
push 0
push 4
lea ecx, [ebp - 4]
push ecx
push 0x1d
push dword [esi + 0xc]
call eax
test eax, eax
js 0x439d2b
cmp dword [ebp - 4], 0
pop esi
setne al
mov esp, ebp
pop ebp
ret
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x439de0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
movaps xmm0, xmmword [0x45f9e0]
xor ecx, ecx
mov dword [ebp - 8], 0
movups xmmword [ebp - 0x47], xmm0
mov dword [ebp - 0x37], 0x312c0e30
mov dword [ebp - 0x33], 0x2d2d3b3d
mov byte [ebp - 0x2f], 0
mov al, byte [ebp - 0x47]
xor byte [ebp + ecx - 0x46], al
inc ecx
cmp ecx, 0x17
jb 0x439e18
mov ch, 0x1e
mov byte [ebp - 0xd], 0
mov bl, 0x72
mov byte [ebp - 0x2f], 0
mov ah, bl
mov byte [ebp - 0x13], ch
mov al, 0x70
mov byte [ebp - 0xd], 0
xor al, ch
xor ah, ch
mov cl, 0x6a
mov byte [ebp - 0x12], al
mov dl, 0x7a
mov byte [ebp - 0xe], ah
lea eax, [ebp - 0x12]
xor cl, ch
xor dl, ch
mov byte [ebp - 0x11], cl
xor bl, ch
mov byte [ebp - 0x10], dl
push eax
mov byte [ebp - 0xf], bl
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [ebp - 0x46]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
movaps xmm0, xmmword [0x45fb90]
xor ecx, ecx
mov dword [ebp - 0xc], eax
movups xmmword [ebp - 0x2e], xmm0
mov dword [ebp - 0x1e], 0x747674
mov al, byte [ebp - 0x2e]
xor byte [ebp + ecx - 0x2d], al
inc ecx
cmp ecx, 0x12
jb 0x439e85
mov ch, 0x52
mov byte [ebp - 0x14], 0
mov bl, 0x3e
mov byte [ebp - 0x1b], 0
mov ah, bl
mov byte [ebp - 0x1a], ch
mov al, 0x3c
mov byte [ebp - 0x14], 0
xor al, ch
xor ah, ch
mov cl, 0x26
mov byte [ebp - 0x19], al
mov dl, 0x36
mov byte [ebp - 0x15], ah
lea eax, [ebp - 0x19]
xor cl, ch
xor dl, ch
mov byte [ebp - 0x18], cl
xor bl, ch
mov byte [ebp - 0x17], dl
push eax
mov byte [ebp - 0x16], bl
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [ebp - 0x2d]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 1]
push ecx
push 0
push 1
push 0x14
call eax
push 4
lea eax, [ebp - 8]
push eax
push 0x1d
push dword [esi + 4]
call dword [ebp - 0xc]
pop esi
pop ebx
test eax, eax
je 0x439f38
movaps xmm0, xmmword [0x45f8f0]
xor eax, eax
movups xmmword [ebp - 0x4f], xmm0
mov byte [ebp - 0x2f], 0
movaps xmm0, xmmword [0x45f8a0]
movups xmmword [ebp - 0x3f], xmm0
mov cl, byte [ebp - 0x4f]
xor byte [ebp + eax - 0x4e], cl
inc eax
cmp eax, 0x1f
jb 0x439f17
push 0
push 0
lea eax, [ebp - 0x4e]
mov byte [ebp - 0x2f], 0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x43d5cc
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43d60b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43d60b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43d60b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43d60b
cmp dword [ecx + 0x74], 0xe
jbe 0x43d60b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x441200
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0043d420
mov eax, dword [0x46e334]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0044d328
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x441242
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x44139e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0043c900
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x46fa38]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0044f4a3
mov ecx, dword [esi*4 + 0x46fa38]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x441397
cmp eax, dword [ecx + edi + 0x24]
jne 0x441397
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x441397
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0044f4a3
add esp, 0x14
test edx, edx
jl 0x441397
jg 0x44130d
test eax, eax
jb 0x441397
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x441397
jl 0x441327
cmp dword [ebp - 0x1008], eax
ja 0x441397
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x441345
test ebx, ebx
je 0x44137e
cmp ecx, edi
jae 0x44137e
mov al, byte [ecx]
cmp al, 0xd
jne 0x44135f
lea eax, [edi - 1]
cmp ecx, eax
jae 0x44136b
cmp byte [ecx + 1], 0xa
jne 0x44136b
inc ecx
jmp 0x44136b
movzx eax, al
movsx eax, byte [eax + 0x46e550]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x441345
cmp edx, ebx
jne 0x441345
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x44139c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0043d16d
leave
ret

Function at 0x44c8b6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4622c0
push 0x4622b8
push str.FlsAlloc
push 0x1f
call fcn.0044c7d2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44c8ea
push dword [ebp + 8]
mov ecx, esi
call dword [0x45b220]
call esi
jmp 0x44c8f0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x44c934
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4622d0
push 0x4622c8
push str.FlsGetValue
push 0x21
call fcn.0044c7d2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44c96b
push dword [ebp + 8]
mov ecx, esi
call dword [0x45b220]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x44c973
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4622d8
push 0x4622d0
push str.FlsSetValue
push 0x22
call fcn.0044c7d2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44c9ad
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x45b220]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x44e7a1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x46fa38]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x44e7e1
cmp byte [ebx], 0xa
jne 0x44e7e1
or byte [edi + eax + 0x28], 4
jmp 0x44e7e6
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x44e8e5
mov dl, byte [eax]
cmp dl, 0x1a
je 0x44e8c8
inc eax
cmp dl, 0xd
je 0x44e812
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x44e838
cmp eax, ecx
jae 0x44e846
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x44e7fa
jmp 0x44e8e5
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44e8c3
cmp dword [ebp - 0x10], 0
je 0x44e8c3
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x46fa38]
test byte [eax + edi + 0x28], 0x48
je 0x44e89d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x44e888
mov byte [esi], dl
jmp 0x44e899
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x46fa38]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x44e8e5
cmp byte [ebp - 1], 0xa
jne 0x44e8ac
cmp esi, ebx
jne 0x44e8ac
mov byte [esi], 0xa
jmp 0x44e8e4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0044f4c1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x44e8e5
mov byte [esi], 0xd
jmp 0x44e8e4
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x46fa38]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x44e8e2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x44e8e5
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x44e8ee
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x46fa38]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x44e934
cmp word [ebx], dx
jne 0x44e934
or byte [eax + edi + 0x28], 4
jmp 0x44e939
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x44ea9c
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x44ea7c
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x44e97a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x44e9b0
cmp eax, edx
jae 0x44e9be
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x44e955
jmp 0x44ea9c
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44ea77
cmp dword [ebp - 0x18], 0
je 0x44ea77
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x46fa38]
test byte [eax + edi + 0x28], 0x48
je 0x44ea4d
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x44ea11
mov word [esi], cx
jmp 0x44ea48
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x46fa38]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x46fa38]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x46fa38]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x44ea9c
pop eax
cmp word [ebp - 4], ax
jne 0x44ea5d
cmp esi, ebx
jne 0x44ea5d
mov word [esi], ax
jmp 0x44ea99
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0044f4c1
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x44ea9c
push 0xd
pop eax
jmp 0x44ea58
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x46fa38]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x44ea96
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x44ea9c
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x453772
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x45380f
push ebx
push esi
call fcn.0045373b
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004536cf
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4537bc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x45380e
push edi
push eax
call fcn.0044f89e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4537dc
call fcn.0044c67f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x45380d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004536cf
add esp, 0x20
test eax, eax
jne 0x4537fb
push edi
call fcn.0044c67f
jmp 0x453803
push ebx
call fcn.0044c67f
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4594d5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00459451
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x459644
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x459644
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4595f9
jg 0x459531
test eax, eax
je 0x4595ef
push 1
push 0x1000
call fcn.0044c622
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x459554
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4595e6
push 0x8000
push ebx
call fcn.0044bf2f
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x45957d
jg 0x459578
cmp ecx, 0x1000
jb 0x45957d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0044e585
add esp, 0x10
cmp eax, 0xffffffff
je 0x4595c2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x459578
jl 0x4595a9
test ecx, ecx
jne 0x45956a
push dword [ebp - 0xc]
push ebx
call fcn.0044bf2f
push esi
call fcn.0044c67f
add esp, 0xc
xor ebx, ebx
jmp 0x459652
cmp byte [edi + 0x24], 0
je 0x4595d9
cmp dword [edi + 0x20], 5
jne 0x4595d9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4595e4
mov ebx, dword [edi + 0x18]
jmp 0x4595e6
xor ebx, ebx
push esi
call fcn.0044c67f
pop ecx
jmp 0x459652
test ecx, ecx
jg 0x4595bb
jl 0x4595f9
test eax, eax
jae 0x4595bb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0044f4c1
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x459619
cmp byte [edi + 0x1c], 0
je 0x4595bb
jmp 0x45964a
push ebx
call fcn.00453cfd
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4595bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x459652
cmp byte [edi + 0x1c], 0
je 0x45964f
mov ebx, dword [edi + 0x18]
jmp 0x459652
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0044f4c1
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x459f50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x459f7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x459f7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret