joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4178b7
Capabilities:
Compute adler32 checksum

Disassembly:
mov ecx, dword [esp + 4]
mov edx, ecx
cmp ecx, 0xa
jl 0x4178c7
mov edx, 0xa
test ecx, ecx
jns 0x4178d0
mov edx, 6
xor eax, eax
cmp ecx, 4
setl al
shl eax, 0xe
or eax, dword [edx*4 + 0x472d80]
cmp dword [esp + 8], 0
jle 0x4178ee
or eax, 0x1000
test ecx, ecx
je 0x417909
mov ecx, dword [esp + 0xc]
dec ecx
cmp ecx, 3
ja case.default.0x4178fc
jmp dword [ecx*4 + 0x4745c4]
or eax, 0x20000
ret
or eax, 0x80000
ret
and eax, 0xfffff000
ret
or eax, 0x10000
ret
or eax, 0x40000
ret
Function at 0x429675
Capabilities:
Create directory

Disassembly:
push edi
push esi
call fcn.00429276
mov esi, eax
push eax
call fcn.0045d014
add esp, 4
mov edi, eax
push esi
call fcn.0045e17d
add esp, 4
mov eax, edi
pop esi
pop edi
ret
Function at 0x42b52c
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 0x47472c
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov eax, dword [esi]
add esp, 4
pop esi
ret

Function at 0x42c1b9
Capabilities:
Get hostname

Disassembly:
push edi
push esi
push eax
mov eax, 0x400
mov edi, esp
mov dword [edi], eax
push eax
call fcn.0045e524
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 0x43979e
Capabilities:
Create process on windows
Encode data using base64
Get disk information
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push eax
call fcn.0040cf38
call fcn.00425afe
mov dword [esp], 0xd84d8ba6
mov eax, 0xd84d8ba6
cmp eax, 0xd84d8ba6
jne 0x4397b5
pop eax
jmp fcn.0042f494
Function at 0x44ba29
Capabilities:
Parse pe header

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

Function at 0x45a755
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.0045a9ac
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x45a8cd
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x45a8cd
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x45a87c
jg 0x45a7ae
test eax, eax
je 0x45a872
push 1
push 0x1000
call fcn.0046321d
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x45a7d4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x45a869
push 0x8000
push ebx
call fcn.0045ca3c
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 0x45a800
jg 0x45a7fb
cmp ecx, 0x1000
jb 0x45a800
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004644c1
add esp, 0x10
cmp eax, 0xffffffff
je 0x45a845
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 0x45a7fb
jl 0x45a82c
test ecx, ecx
jne 0x45a7ed
push dword [ebp - 0xc]
push ebx
call fcn.0045ca3c
push esi
call fcn.004617a4
add esp, 0xc
xor edi, edi
jmp 0x45a8de
cmp byte [edi + 0x24], 0
je 0x45a85c
cmp dword [edi + 0x20], 5
jne 0x45a85c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x45a867
mov edi, dword [edi + 0x18]
jmp 0x45a869
xor edi, edi
push esi
call fcn.004617a4
pop ecx
jmp 0x45a8de
test ecx, ecx
jg 0x45a83e
jl 0x45a87c
test eax, eax
jae 0x45a83e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00464fb7
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x45a89f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x45a83e
jmp 0x45a8d6
push ebx
call fcn.00464056
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x45a83e
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 0x45a8de
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x45a8db
mov edi, dword [edi + 0x18]
jmp 0x45a8de
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00464fb7
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45b730
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0044b410
mov eax, dword [0x481ad0]
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.0045b362
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x45b772
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x45b8ce
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004666c0
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 + 0x482f38]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00465015
mov ecx, dword [esi*4 + 0x482f38]
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 0x45b8c7
cmp eax, dword [edi + ecx + 0x24]
jne 0x45b8c7
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 0x45b8c7
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00465015
add esp, 0x14
test edx, edx
jl 0x45b8c7
jg 0x45b83d
test eax, eax
jb 0x45b8c7
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x45b8c7
jl 0x45b857
cmp dword [ebp - 0x1008], eax
ja 0x45b8c7
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x45b875
test ebx, ebx
je 0x45b8ae
cmp ecx, edi
jae 0x45b8ae
mov al, byte [ecx]
cmp al, 0xd
jne 0x45b88f
lea eax, [edi - 1]
cmp ecx, eax
jae 0x45b89b
cmp byte [ecx + 1], 0xa
jne 0x45b89b
inc ecx
jmp 0x45b89b
movzx eax, al
movsx eax, byte [eax + 0x482250]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x45b875
cmp edx, ebx
jne 0x45b875
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x45b8cc
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0044be78
leave
ret
Function at 0x45d370
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x481ad0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x476514
push esi
call fcn.004655e8
pop ecx
pop ecx
test eax, eax
jne 0x45d39e
xor al, al
jmp 0x45d41b
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.0045d101
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x45d3d8
push dword [ebp - 0x210]
call fcn.0045e17d
xor al, al
jmp 0x45d419
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x45d3de
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x45d3fe
push edx
call fcn.0045d2c1
pop ecx
test al, al
je 0x45d3c9
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x45d40c
mov bl, 1
push dword [ebp - 0x210]
call fcn.0045e17d
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0044be78
leave
ret

Function at 0x45ff00
Capabilities:
Parse pe header

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

Function at 0x46027d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x4774e4
push str.FlsAlloc
push 0x1e
call fcn.00460560
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4602b1
push dword [ebp + 8]
mov ecx, esi
call dword [0x47ca5c]
call esi
jmp 0x4602b7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4602fb
Capabilities:
Get thread local storage value

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x481ad0]
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 0x465ee7
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00466012
test al, al
jne 0x465ee1
sub edx, 2
cmp edx, edi
jne 0x465ec7
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x465f09
lea eax, [edi + 2]
cmp edx, eax
je 0x465f09
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00465de8
add esp, 0x10
jmp 0x466003
push esi
lea ecx, [ebp - 0x255]
call fcn.00466012
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 0x465f4c
push dword [ebp - 0x25c]
jmp 0x465ef9
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 0x465f89
cmp word [ebp - 0x226], 0
je 0x465faa
cmp word [ebp - 0x226], ax
jne 0x465f89
cmp word [ebp - 0x224], 0
je 0x465faa
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00465de8
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x465ff6
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x465f63
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x465fde
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x466003
push 0x466036
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0046e4e0
add esp, 0x10
jmp 0x465fd3
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.0044be78
leave
ret
Function at 0x466def
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 + 0x482f38]
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 0x466e2f
cmp byte [ebx], 0xa
jne 0x466e2f
or byte [eax + edi + 0x28], 4
jmp 0x466e34
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x466f32
mov al, byte [edx]
cmp al, 0x1a
je 0x466f14
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x466e63
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x466e88
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x466e92
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 0x466e45
jmp 0x466f32
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 0x466f0f
cmp dword [ebp - 0xc], 0
je 0x466f0f
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x482f38]
test byte [eax + edi + 0x28], 0x48
je 0x466ee9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x466ed4
mov byte [esi], dl
jmp 0x466ee5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x482f38]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x466f32
cmp byte [ebp - 1], 0xa
jne 0x466ef8
cmp esi, ebx
jne 0x466ef8
mov byte [esi], 0xa
jmp 0x466f31
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00464fb7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x466f32
mov byte [esi], 0xd
jmp 0x466f31
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x482f38]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x466f2e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x466f32
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x466f3b
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 + 0x482f38]
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 0x466f7e
cmp word [esi], dx
jne 0x466f7e
or byte [edi + eax + 0x28], 4
jmp 0x466f83
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 0x4670d6
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 0x4670b6
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x466fc5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x466ffb
cmp eax, edx
jae 0x467007
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 0x466f9d
jmp 0x4670d6
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 0x4670b2
cmp dword [ebp - 0x14], 0
je 0x4670b2
mov eax, dword [ebx*4 + 0x482f38]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x46708a
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x467053
mov word [esi], cx
jmp 0x467086
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x482f38]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x482f38]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x482f38]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4670d6
pop ebx
cmp word [ebp - 4], bx
jne 0x46709b
cmp esi, dword [ebp + 0xc]
jne 0x46709b
mov word [esi], bx
jmp 0x4670d3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00464fb7
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4670d6
push 0xd
jmp 0x4670cf
mov ecx, dword [ebx*4 + 0x482f38]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4670cd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4670d6
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 0x46719a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4671ab
pop esi
ret
push ebx
push edi
push esi
call fcn.004671e8
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004620ef
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4671d3
push ebx
push esi
push edi
call fcn.0044dac0
add esp, 0xc
push 0
call fcn.004617a4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x46721f
Capabilities:
Set environment variable

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

Function at 0x46a5d3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046a5de
Function at 0x404a36
Capabilities:
Create pipe
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1284
call fcn.00413df0
mov eax, dword [0x8dafdc]
mov ecx, dword [0x8b417c]
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x404b3d
mov ebx, ecx
mov dword [ebp - 8], eax
cmp dword [0x8dafdc], 0x959
jne 0x404b2b
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
xor eax, eax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
push esi
push esi
lea eax, [ebp - 0xa80]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
lea eax, [ebp - 0x280]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push 0x4040d8
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x404128
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea eax, [ebp - 0x1280]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_InterlockedFlushSList]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
call fcn.0040483f
add ebx, 8
dec dword [ebp - 8]
jne 0x404a63
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40717b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x477728]
jne 0x407185
repz ret
jmp fcn.0040ed1c

Function at 0x410a97
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040894d
and dword [ebp - 4], 0
cmp dword [0x479a30], 0
mov ebx, eax
jne 0x410b48
push 0x40380c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x410bf9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403800
push edi
call esi
test eax, eax
je 0x410bf9
push eax
call fcn.004088db
mov dword [esp], 0x4037f0
push edi
mov dword [0x479a30], eax
call esi
push eax
call fcn.004088db
mov dword [esp], 0x4037dc
push edi
mov dword [0x479a34], eax
call esi
push eax
call fcn.004088db
mov dword [esp], 0x4037c0
push edi
mov dword [0x479a38], eax
call esi
push eax
call fcn.004088db
pop ecx
mov dword [0x479a40], eax
test eax, eax
je 0x410b48
push 0x4037a8
push edi
call esi
push eax
call fcn.004088db
pop ecx
mov dword [0x479a3c], eax
mov eax, dword [0x479a3c]
cmp eax, ebx
je 0x410ba0
cmp dword [0x479a40], ebx
je 0x410ba0
push eax
call fcn.00408956
push dword [0x479a40]
mov esi, eax
call fcn.00408956
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x410ba0
test edi, edi
je 0x410ba0
call esi
test eax, eax
je 0x410b97
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x410b97
test byte [ebp - 0xc], 1
jne 0x410ba0
or dword [ebp + 0x10], 0x200000
jmp 0x410bd9
mov eax, dword [0x479a34]
cmp eax, ebx
je 0x410bd9
push eax
call fcn.00408956
pop ecx
test eax, eax
je 0x410bd9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x410bd9
mov eax, dword [0x479a38]
cmp eax, ebx
je 0x410bd9
push eax
call fcn.00408956
pop ecx
test eax, eax
je 0x410bd9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x479a30]
call fcn.00408956
pop ecx
test eax, eax
je 0x410bf9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x410bfb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401610
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x408008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x114]
mov esi, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x114]
push 0
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push 0x4052d0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x4017a5
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401670
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
sub ecx, edx
push 4
push 0x1000
lea eax, [ecx + 1]
push eax
push 0
mov dword [ebp - 0x118], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
je 0x401781
push 0
push dword [ebp - 0x118]
lea eax, [ebp - 0x114]
push eax
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x4016f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
push 0x4052ec
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x8000
push 0
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x40179a
push str.LoadLibraryA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4016c4
push 0
push 0
push ebx
push eax
push 0
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x118], eax
test eax, eax
je 0x4016c4
push 0x4e20
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x401781
push dword [ebp - 0x118]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
push 0x4052ec
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x8000
push 0
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop ebx
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040369e
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
push 0x4052ec
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040369e
mov esp, ebp
pop ebp
ret