joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x412d00
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x412eaa
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Protocol_of_Mind
push 0x56d0b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x78
push str.Protocol_of_Mind
push 0x56d0b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x12
push str.Protocol_of_Mind
push 0x56d0b0
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0xe2
push str.Protocol_of_Mind
push 0x56d0b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x62
push str.Protocol_of_Mind
push 0x56d0b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x1c
push str.Protocol_of_Mind
push 0x56d0b0
call fcn.0040349f
add esp, 0x44
push eax
call fcn.004013a7
add byte [esi + ebx], 0xd7
push str.Protocol_of_Mind
push 0x56d0b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xc
push str.Protocol_of_Mind
push 0x56d0b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x2f
push str.Protocol_of_Mind
push 0x56d0b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x13
push str.Protocol_of_Mind
push 0x56d0b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x47
push str.Protocol_of_Mind
push 0x56d0b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xfe
add esp, 0x40
push str.Protocol_of_Mind
push 0x56d0b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x4f
push str.Protocol_of_Mind
push 0x56d0b0
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x91
push str.Protocol_of_Mind
push 0x56d0b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x89
push str.Protocol_of_Mind
push 0x56d0b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xe4
add esp, 0x30
inc esi
cmp esi, edi
jb 0x412d20
pop ebx
pop edi
pop esi
ret

Function at 0x4035da
Capabilities:
Terminate process

Disassembly:
jmp 0x451bc9
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x451bda
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405907
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40370b
Capabilities:
Query environment variable

Disassembly:
jmp 0x49b072
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49b083
pop esi
ret
push ebx
push edi
push esi
call fcn.0049af59
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fda
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49b0ab
push ebx
push esi
push edi
call fcn.004056fa
add esp, 0xc
push 0
call fcn.00406244
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x406582
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
jmp 0x4133a0
sub esp, 0x3c
mov eax, dword [0x56ac34]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x50]
xor ebp, ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x10], ebp
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov dword [esp + 0x2c], eax
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add ecx, edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], eax
test eax, eax
je 0x413543
nop dword [eax]
mov edx, dword [ecx]
xorps xmm0, xmm0
add edx, edi
mov dword [esp + 0x40], 0
mov eax, edx
mov dword [esp + 0x44], 0
movups xmmword [esp + 0x30], xmm0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413411
sub eax, esi
lea ecx, [esp + 0x30]
push eax
push edx
call fcn.0040549d
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x24], ebx
test edi, edi
je 0x4134f1
cmp dword [esp + 0x54], 3
jbe 0x4134f1
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x30]
mov edi, edx
mov ebp, edx
xor edi, 0x14d
cmp dword [esp + 0x44], 0x10
cmovae eax, ebx
shr ebp, 2
xor esi, esi
mov dword [esp + 0x1c], eax
test ebp, ebp
je 0x413499
mov ebx, eax
nop dword [eax]
imul ecx, dword [ebx + esi*4], 0x5bd1e991
inc esi
imul edi, edi, 0x5bd1e991
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e991
xor edi, ecx
cmp esi, ebp
jl 0x413470
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
and edx, 3
lea esi, [eax + ebp*4]
xor ecx, ecx
sub edx, 1
je 0x4134c0
sub edx, 1
je 0x4134b7
sub edx, 1
jne 0x4134cd
movsx ecx, byte [esi + 2]
shl ecx, 0x10
movsx eax, byte [esi + 1]
shl eax, 8
xor ecx, eax
movsx eax, byte [esi]
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor edi, eax
mov eax, edi
shr eax, 0xd
xor eax, edi
imul eax, eax, 0x5bd1e991
mov ecx, eax
shr ecx, 0xf
xor ecx, eax
je 0x4134e9
cmp ecx, dword [esp + 0x54]
je 0x41355c
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x44]
add ecx, 4
mov dword [esp + 0x14], ecx
cmp eax, 0x10
jb 0x413534
lea ecx, [eax + 1]
mov eax, ebx
cmp ecx, 0x1000
jb 0x413526
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4135b1
push ecx
push ebx
call fcn.00401a14
mov ecx, dword [esp + 0x1c]
add esp, 8
inc ebp
mov dword [esp + 0x10], ebp
cmp ebp, dword [esp + 0x28]
jb 0x4133f0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x48]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00403044
add esp, 0x3c
ret
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + edi]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edi]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x44]
cmp eax, 0x10
jb 0x413543
lea ecx, [eax + 1]
mov eax, ebx
cmp ecx, 0x1000
jb 0x4135a5
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4135b1
push ecx
push ebx
call fcn.00401a14
add esp, 8
jmp 0x413543
call fcn.004047b9
int3
Function at 0x4912c3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401d7f
mov eax, dword [0x56ac34]
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.00405e57
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x491305
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x491461
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405fab
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 + 0x56e8c0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0040325b
mov ecx, dword [esi*4 + 0x56e8c0]
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 0x49145a
cmp eax, dword [edi + ecx + 0x24]
jne 0x49145a
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 0x49145a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040325b
add esp, 0x14
test edx, edx
jl 0x49145a
jg 0x4913d0
test eax, eax
jb 0x49145a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49145a
jl 0x4913ea
cmp dword [ebp - 0x1008], eax
ja 0x49145a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x491408
test ebx, ebx
je 0x491441
cmp ecx, edi
jae 0x491441
mov al, byte [ecx]
cmp al, 0xd
jne 0x491422
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49142e
cmp byte [ecx + 1], 0xa
jne 0x49142e
inc ecx
jmp 0x49142e
movzx eax, al
movsx eax, byte [eax + 0x56af68]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x491408
cmp edx, ebx
jne 0x491408
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49145f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403044
leave
ret
Function at 0x491ba0
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 + 0x56e8c0]
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 0x491be0
cmp byte [ebx], 0xa
jne 0x491be0
or byte [eax + edi + 0x28], 4
jmp 0x491be5
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x491ce3
mov al, byte [edx]
cmp al, 0x1a
je 0x491cc5
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x491c14
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x491c39
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x491c43
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 0x491bf6
jmp 0x491ce3
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 0x491cc0
cmp dword [ebp - 0xc], 0
je 0x491cc0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x56e8c0]
test byte [eax + edi + 0x28], 0x48
je 0x491c9a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x491c85
mov byte [esi], dl
jmp 0x491c96
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x56e8c0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x491ce3
cmp byte [ebp - 1], 0xa
jne 0x491ca9
cmp esi, ebx
jne 0x491ca9
mov byte [esi], 0xa
jmp 0x491ce2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401929
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x491ce3
mov byte [esi], 0xd
jmp 0x491ce2
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x56e8c0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x491cdf
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x491ce3
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x491d3f
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 + 0x56e8c0]
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 0x491d82
cmp word [esi], dx
jne 0x491d82
or byte [edi + eax + 0x28], 4
jmp 0x491d87
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 0x491eda
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 0x491eba
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x491dc9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x491dff
cmp eax, edx
jae 0x491e0b
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 0x491da1
jmp 0x491eda
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 0x491eb6
cmp dword [ebp - 0x14], 0
je 0x491eb6
mov eax, dword [ebx*4 + 0x56e8c0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x491e8e
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x491e57
mov word [esi], cx
jmp 0x491e8a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x56e8c0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x56e8c0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x56e8c0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x491eda
pop ebx
cmp word [ebp - 4], bx
jne 0x491e9f
cmp esi, dword [ebp + 0xc]
jne 0x491e9f
mov word [esi], bx
jmp 0x491ed7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401929
add esp, 0x10
cmp word [ebp - 4], bx
je 0x491eda
push 0xd
jmp 0x491ed3
mov ecx, dword [ebx*4 + 0x56e8c0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x491ed1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x491eda
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 0x499611
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x56ac34]
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 0x49965c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00499ad3
test al, al
jne 0x499656
sub edx, 2
cmp edx, edi
jne 0x49963c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49967e
lea eax, [edi + 2]
cmp edx, eax
je 0x49967e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049920a
add esp, 0x10
jmp 0x499778
push esi
lea ecx, [ebp - 0x255]
call fcn.00499ad3
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 0x4996c1
push dword [ebp - 0x25c]
jmp 0x49966e
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 0x4996fe
cmp word [ebp - 0x226], 0
je 0x49971f
cmp word [ebp - 0x226], ax
jne 0x4996fe
cmp word [ebp - 0x224], 0
je 0x49971f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049920a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49976b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4996d8
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x499753
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x499778
push 0x498bf2
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405542
add esp, 0x10
jmp 0x499748
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.00403044
leave
ret
Function at 0x1260010
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xafe000]
push edi
or ebp, 0xffffffff
jmp 0x1260032
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1260039
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1260028
mov eax, 1
add ebx, ebx
jne 0x126004b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x126005c
jne 0x126007b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x126007b
dec eax
add ebx, ebx
jne 0x1260068
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1260040
add ebx, ebx
jne 0x1260077
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x12600cd
xor ecx, ecx
sub eax, 3
jb 0x1260093
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1260102
sar eax, 1
mov ebp, eax
jmp 0x126009e
add ebx, ebx
jne 0x126009e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x126006c
inc ecx
add ebx, ebx
jne 0x12600ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x126006c
add ebx, ebx
jne 0x12600b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x12600ae
jne 0x12600ca
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x12600ae
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x12600ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x12600de
jmp 0x126002e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x12600ec
add edi, ecx
jmp 0x126002e
pop esi
mov edi, esi
mov ecx, 0x295a00
jmp 0x126012f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x126012f
cmp ecx, 4
jb 0x1260134
mov eax, dword [edi]
sub al, 0x82
jne 0x126012f
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
sub ecx, 4
stosd dword es:[edi], eax
sub ecx, 1
jae 0x126010c
lea edi, [esi + 0xe5c000]
mov eax, dword [edi]
or eax, eax
je 0x126017c
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe62790]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe628ac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x126013a
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe628b4]
or eax, eax
je 0x1260176
mov dword [ebx], eax
add ebx, 4
jmp 0x1260157
call dword [esi + 0xe628b0]
mov ebp, dword [esi + 0xe628b8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x12601b0
sub esp, 0xffffff80
jmp 0x696f30
Function at 0x4035d0
Capabilities:
Create pipe
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1284
call fcn.0040d200
mov eax, dword [0x4d5830]
mov ecx, dword [0x4d4784]
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x4036d7
mov ebx, ecx
mov dword [ebp - 8], eax
cmp dword [0x4d5830], 0x959
jne 0x4036c5
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 0x402cc0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402d10
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_TerminateProcess]
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.004033d9
add ebx, 8
dec dword [ebp - 8]
jne 0x4035fd
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40570b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x424718]
jne 0x405715
repz ret
jmp fcn.00409e9c

Function at 0x40a35f
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.00407c99
and dword [ebp - 4], 0
cmp dword [0x426334], 0
mov ebx, eax
jne 0x40a410
push 0x401a58
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a4c1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401a4c
push edi
call esi
test eax, eax
je 0x40a4c1
push eax
call fcn.00407c27
mov dword [esp], 0x401a3c
push edi
mov dword [0x426334], eax
call esi
push eax
call fcn.00407c27
mov dword [esp], 0x401a28
push edi
mov dword [0x426338], eax
call esi
push eax
call fcn.00407c27
mov dword [esp], 0x401a0c
push edi
mov dword [0x42633c], eax
call esi
push eax
call fcn.00407c27
pop ecx
mov dword [0x426344], eax
test eax, eax
je 0x40a410
push 0x4019f4
push edi
call esi
push eax
call fcn.00407c27
pop ecx
mov dword [0x426340], eax
mov eax, dword [0x426340]
cmp eax, ebx
je 0x40a468
cmp dword [0x426344], ebx
je 0x40a468
push eax
call fcn.00407ca2
push dword [0x426344]
mov esi, eax
call fcn.00407ca2
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a468
test edi, edi
je 0x40a468
call esi
test eax, eax
je 0x40a45f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a45f
test byte [ebp - 0xc], 1
jne 0x40a468
or dword [ebp + 0x10], 0x200000
jmp 0x40a4a1
mov eax, dword [0x426338]
cmp eax, ebx
je 0x40a4a1
push eax
call fcn.00407ca2
pop ecx
test eax, eax
je 0x40a4a1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a4a1
mov eax, dword [0x42633c]
cmp eax, ebx
je 0x40a4a1
push eax
call fcn.00407ca2
pop ecx
test eax, eax
je 0x40a4a1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x426334]
call fcn.00407ca2
pop ecx
test eax, eax
je 0x40a4c1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a4c3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret