joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d77f
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebx, dword [esp + 0x20]
mov eax, 0xffffffe6
cmp ebx, 0x1000
ja 0x41d7bf
mov edi, edx
mov esi, ecx
push 0
push dword [esp + 0x20]
push dword [esp + 0x20]
push ecx
call fcn.0043bc9d
add esp, 0x10
mov ebp, 0xffffffe5
test eax, eax
je 0x41d7c4
push esi
call fcn.0043ddd5
add esp, 4
mov eax, ebp
pop esi
pop edi
pop ebx
pop ebp
ret
push esi
push ebx
push 1
push dword [esp + 0x30]
call fcn.0043e3b1
add esp, 0x10
cmp eax, ebx
jne 0x41d80b
push 0
push dword [esp + 0x18]
push edi
push esi
call fcn.0043bc9d
add esp, 0x10
test eax, eax
jne 0x41d7b4
push esi
push ebx
push 1
push dword [esp + 0x30]
call fcn.0043e5cf
add esp, 0x10
mov ecx, eax
mov ebp, 0xffffffe3
mov eax, ebx
cmp ecx, ebx
jne 0x41d7b4
jmp 0x41d7bf
mov eax, ebx
jmp 0x41d7bf
Function at 0x41e80e
Capabilities:
Get disk information

Disassembly:
push esi
push eax
xor eax, eax
mov esi, esp
mov dword [esi], eax
push eax
push eax
push eax
push eax
push esi
push eax
push eax
push 0x455ff0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov eax, dword [esi]
add esp, 4
pop esi
ret

Function at 0x41f899
Capabilities:
Get hostname

Disassembly:
push edi
push esi
push eax
mov eax, 0x400
mov edi, esp
mov dword [edi], eax
push eax
call fcn.0043e964
add esp, 4
mov esi, eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov eax, esi
add esp, 4
pop esi
pop edi
ret

Function at 0x420352
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [esp + 0x1c]
xor ebp, ebp
dec ebp
cmp byte [eax + ebp + 1], 0
lea ebp, [ebp + 1]
jne 0x420360
mov ebx, ebp
shr ebx, 1
push ebx
call fcn.0043e964
add esp, 4
mov esi, eax
mov eax, 0xfffffffc
sub ebp, 1
jb 0x4203cb
mov dword [esp], ebx
shr ebp, 1
inc ebp
xor edi, edi
mov eax, dword [esp + 0x1c]
movsx eax, byte [eax + edi*2]
push eax
call fcn.00420328
add esp, 4
mov ebx, eax
shl bl, 4
mov eax, dword [esp + 0x1c]
movsx eax, byte [eax + edi*2 + 1]
push eax
call fcn.00420328
add esp, 4
or al, bl
mov byte [esi + edi], al
inc edi
cmp ebp, edi
jne 0x42038b
mov eax, dword [esi]
mov dword [esp + 4], eax
mov eax, dword [esp]
add eax, 0xfffffffc
je 0x4203e4
xor ecx, ecx
mov edx, ecx
and edx, 3
mov dl, byte [esp + edx + 4]
xor dl, byte [esi + ecx + 4]
mov byte [esi + ecx], dl
inc ecx
cmp eax, ecx
jne 0x4203cd
jmp 0x4203e6
xor eax, eax
mov byte [esi + eax], 0
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4203f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [esp + 0x20]
xor edi, edi
dec edi
cmp word [eax + edi*2 + 2], 0
lea edi, [edi + 1]
jne 0x420402
mov esi, edi
shr esi, 1
push esi
call fcn.0043e964
add esp, 4
mov ebp, eax
mov ecx, edi
sub ecx, 1
jb 0x42046a
mov dword [esp], esi
shr ecx, 1
inc ecx
mov dword [esp + 4], ecx
xor esi, esi
mov eax, dword [esp + 0x20]
movsx eax, byte [eax + esi*4]
push eax
call fcn.00420328
add esp, 4
mov ebx, eax
shl bl, 4
mov eax, dword [esp + 0x20]
movsx eax, byte [eax + esi*4 + 2]
push eax
call fcn.00420328
add esp, 4
or al, bl
mov byte [ebp + esi], al
inc esi
cmp dword [esp + 4], esi
jne 0x42042f
mov eax, dword [ebp]
mov esi, dword [esp]
mov dword [esp + 8], eax
push edi
push 1
call fcn.0043ddca
add esp, 8
mov edi, eax
cmp esi, 4
je 0x42049e
lea eax, [esi - 4]
xor ecx, ecx
mov edx, ecx
and edx, 3
mov dl, byte [esp + edx + 8]
xor dl, byte [ebp + ecx + 4]
movsx edx, dl
mov word [edi + ecx*2], dx
inc ecx
cmp eax, ecx
jne 0x420485
mov word [edi + esi*2 - 8], 0
push ebp
call fcn.0043e5b4
add esp, 4
mov eax, edi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4256cf
Capabilities:
Terminate process

Disassembly:
push eax
mov dword [esp], 0xd3455974
mov eax, 0xd3455974
cmp eax, 0xd3455974
je 0x4256f3
cmp eax, 0xf66a3a0b
je 0x4256ff
cmp eax, 0xf811430d
jne 0x4256dc
jmp 0x425706
call fcn.004073f0
mov eax, 0xf66a3a0b
jmp 0x4256dc
mov eax, 0xf811430d
jmp 0x4256dc
mov dword [esp], eax
call fcn.00419432
call fcn.004215e8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x428280
Capabilities:
Create process on windows
Get file size
Get installed programs
Query or enumerate registry key
Query or enumerate registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa90
mov dword [esp + 0x1c], 0x204b3ed8
mov eax, 0x204b3ed8
xor edi, edi
lea esi, [esp + 0x8c]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0x17dbd9f6
jg 0x42830e
cmp eax, 0xe3a20263
jg 0x42832a
cmp eax, 0xca7d9612
je 0x42833b
cmp eax, 0xd7df6f29
jne 0x4282ab
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add eax, 0xffffffff
adc ecx, 0xffffffff
mov dword [esp], eax
mov dword [esp + 4], ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x68
push str.cmd.exe__c_timeout__nobreak__t_3__fsutil_file_setZeroData_offset0_length_lu___s___erase___s___exit
lea eax, [esp + 0x2c]
push eax
call fcn.004333a0
add esp, 0xc
mov eax, dword [esp]
mov dword [esp + 0x20], eax
mov eax, 0xe3a20264
jmp 0x4282ab
cmp eax, 0x17dbd9f7
je 0x428361
cmp eax, 0x359a4a84
je 0x428392
cmp eax, 0x204b3ed8
jne 0x4282ab
mov eax, 0x17dbd9f7
jmp 0x4282ab
cmp eax, 0xe88c259a
jne 0x42839c
mov eax, 0x359a4a84
jmp 0x4282ab
mov eax, esp
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov eax, 0xd7df6f29
jmp 0x4282ab
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x200
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push edi
push edi
push 3
push edi
push 7
push 0x80000000
push esi
call ebx
mov dword [esp + 0xc], eax
mov eax, 0xe88c259a
jmp 0x4282ab
mov eax, 0xca7d9612
jmp 0x4282ab
cmp eax, 0xe3a20264
jne 0x4282ab
mov dword [esp + 0x1c], eax
lea edi, [esp + 0x28c]
push esi
push esi
push dword [esp + 0x28]
lea eax, [esp + 0x30]
push eax
push 0x800
push edi
call fcn.004202e8
add esp, 0x18
xor esi, esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WinExec]
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4312ff
Capabilities:
Parse pe header

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

Function at 0x43b069
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]
push dword [ebp + 0xc]
push ebx
call fcn.0043b2c0
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x43b1e1
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x43b1e1
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x43b190
jg 0x43b0c2
test eax, eax
je 0x43b186
push 1
push 0x1000
call fcn.004466a0
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x43b0e8
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x43b17d
push 0x8000
push ebx
call fcn.0043d350
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x43b114
jg 0x43b10f
cmp ecx, 0x1000
jb 0x43b114
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00446734
add esp, 0x10
cmp eax, 0xffffffff
je 0x43b159
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 0x43b10f
jl 0x43b140
test ecx, ecx
jne 0x43b101
push dword [ebp - 0xc]
push ebx
call fcn.0043d350
push esi
call fcn.00444594
add esp, 0xc
xor edi, edi
jmp 0x43b1f2
cmp byte [edi + 0x24], 0
je 0x43b170
cmp dword [edi + 0x20], 5
jne 0x43b170
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x43b17b
mov edi, dword [edi + 0x18]
jmp 0x43b17d
xor edi, edi
push esi
call fcn.00444594
pop ecx
jmp 0x43b1f2
test ecx, ecx
jg 0x43b152
jl 0x43b190
test eax, eax
jae 0x43b152
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0044722a
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x43b1b3
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x43b152
jmp 0x43b1ea
push ebx
call fcn.0044626c
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x43b152
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x43b1f2
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x43b1ef
mov edi, dword [edi + 0x18]
jmp 0x43b1f2
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0044722a
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43c044
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00430ce0
mov eax, dword [0x45f120]
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.0043bc76
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x43c086
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x43c1e2
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00448960
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 + 0x460570]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00447288
mov ecx, dword [esi*4 + 0x460570]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x43c1db
cmp eax, dword [edi + ecx + 0x24]
jne 0x43c1db
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43c1db
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00447288
add esp, 0x14
test edx, edx
jl 0x43c1db
jg 0x43c151
test eax, eax
jb 0x43c1db
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x43c1db
jl 0x43c16b
cmp dword [ebp - 0x1008], eax
ja 0x43c1db
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x43c189
test ebx, ebx
je 0x43c1c2
cmp ecx, edi
jae 0x43c1c2
mov al, byte [ecx]
cmp al, 0xd
jne 0x43c1a3
lea eax, [edi - 1]
cmp ecx, eax
jae 0x43c1af
cmp byte [ecx + 1], 0xa
jne 0x43c1af
inc ecx
jmp 0x43c1af
movzx eax, al
movsx eax, byte [eax + 0x45f8a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x43c189
cmp edx, ebx
jne 0x43c189
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x43c1e0
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00431758
leave
ret
Function at 0x43d94f
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x45f120]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x4571bc
push esi
call fcn.0044787f
pop ecx
pop ecx
test eax, eax
jne 0x43d97d
xor al, al
jmp 0x43d9fa
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.0043d6e0
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x43d9b7
push dword [ebp - 0x210]
call fcn.0043e5b4
xor al, al
jmp 0x43d9f8
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x43d9bd
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x43d9dd
push edx
call fcn.0043d8a0
pop ecx
test al, al
je 0x43d9a8
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x43d9eb
mov bl, 1
push dword [ebp - 0x210]
call fcn.0043e5b4
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00431758
leave
ret

Function at 0x442cf0
Capabilities:
Parse pe header

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

Function at 0x44306d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x458cac
push str.FlsAlloc
push 0x1e
call fcn.00443350
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4430a1
push dword [ebp + 8]
mov ecx, esi
call dword [0x45c9f4]
call esi
jmp 0x4430a7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4430eb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x458cd0
push str.FlsGetValue
push 0x20
call fcn.00443350
mov esi, eax
add esp, 0x10
test esi, esi
je 0x443122
push dword [ebp + 8]
mov ecx, esi
call dword [0x45c9f4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x448133
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x45f120]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x44817e
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004482a9
test al, al
jne 0x448178
sub edx, 2
cmp edx, edi
jne 0x44815e
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4481a0
lea eax, [edi + 2]
cmp edx, eax
je 0x4481a0
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0044807f
add esp, 0x10
jmp 0x44829a
push esi
lea ecx, [ebp - 0x255]
call fcn.004482a9
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4481e3
push dword [ebp - 0x25c]
jmp 0x448190
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x448220
cmp word [ebp - 0x226], 0
je 0x448241
cmp word [ebp - 0x226], ax
jne 0x448220
cmp word [ebp - 0x224], 0
je 0x448241
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0044807f
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x44828d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4481fa
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x448275
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x44829a
push 0x4482cd
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0044fef0
add esp, 0x10
jmp 0x44826a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00431758
leave
ret
Function at 0x44908f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x460570]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4490cf
cmp byte [ebx], 0xa
jne 0x4490cf
or byte [eax + edi + 0x28], 4
jmp 0x4490d4
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4491d2
mov al, byte [edx]
cmp al, 0x1a
je 0x4491b4
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x449103
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x449128
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x449132
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4490e5
jmp 0x4491d2
push 0
lea eax, [ebp - 0xc]
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 0x4491af
cmp dword [ebp - 0xc], 0
je 0x4491af
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x460570]
test byte [eax + edi + 0x28], 0x48
je 0x449189
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x449174
mov byte [esi], dl
jmp 0x449185
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x460570]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4491d2
cmp byte [ebp - 1], 0xa
jne 0x449198
cmp esi, ebx
jne 0x449198
mov byte [esi], 0xa
jmp 0x4491d1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0044722a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4491d2
mov byte [esi], 0xd
jmp 0x4491d1
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x460570]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4491ce
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4491d2
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4491db
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x460570]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x44921e
cmp word [esi], dx
jne 0x44921e
or byte [edi + eax + 0x28], 4
jmp 0x449223
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x449376
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x449356
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x449265
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x44929b
cmp eax, edx
jae 0x4492a7
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x44923d
jmp 0x449376
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x449352
cmp dword [ebp - 0x14], 0
je 0x449352
mov eax, dword [ebx*4 + 0x460570]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x44932a
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4492f3
mov word [esi], cx
jmp 0x449326
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x460570]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x460570]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x460570]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x449376
pop ebx
cmp word [ebp - 4], bx
jne 0x44933b
cmp esi, dword [ebp + 0xc]
jne 0x44933b
mov word [esi], bx
jmp 0x449373
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0044722a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x449376
push 0xd
jmp 0x44936f
mov ecx, dword [ebx*4 + 0x460570]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x44936d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x449376
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x44943a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x44944b
pop esi
ret
push ebx
push edi
push esi
call fcn.00449488
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00444edf
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x449473
push ebx
push esi
push edi
call fcn.004333a0
add esp, 0xc
push 0
call fcn.00444594
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x4494bf
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004494ca

Function at 0x44c0b4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044c0bf

Function at 0x401000
Capabilities:
Move file
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
lea eax, [ebp - 0x114]
push 0x104
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor esi, esi
test eax, eax
je 0x401035
push 5
lea eax, [ebp - 0x114]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [ebp + 8]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401088
lea eax, [ebp - 0xc]
push eax
push section..data
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
lea eax, [ebp - 0x10]
push esi
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 0x10], 1
mov dword [ebp - 4], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x401088
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
xor eax, eax
pop esi
leave
ret 0x10