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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00405d70
mov eax, dword [0x471300]
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.00411097
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x412c78
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x412dd4
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041c420
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 + 0x472e18]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041305c
mov ecx, dword [esi*4 + 0x472e18]
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 0x412dcd
cmp eax, dword [edi + ecx + 0x24]
jne 0x412dcd
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 0x412dcd
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041305c
add esp, 0x14
test edx, edx
jl 0x412dcd
jg 0x412d43
test eax, eax
jb 0x412dcd
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x412dcd
jl 0x412d5d
cmp dword [ebp - 0x1008], eax
ja 0x412dcd
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x412d7b
test ebx, ebx
je 0x412db4
cmp ecx, edi
jae 0x412db4
mov al, byte [ecx]
cmp al, 0xd
jne 0x412d95
lea eax, [edi - 1]
cmp ecx, eax
jae 0x412da1
cmp byte [ecx + 1], 0xa
jne 0x412da1
inc ecx
jmp 0x412da1
movzx eax, al
movsx eax, byte [eax + 0x471c80]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x412d7b
cmp edx, ebx
jne 0x412d7b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x412dd2
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00405003
leave
ret
Function at 0x418fd9
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 + 0x472e18]
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 0x419019
cmp byte [ebx], 0xa
jne 0x419019
or byte [eax + edi + 0x28], 4
jmp 0x41901e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41911c
mov al, byte [edx]
cmp al, 0x1a
je 0x4190fe
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41904d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x419072
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41907c
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 0x41902f
jmp 0x41911c
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 0x4190f9
cmp dword [ebp - 0xc], 0
je 0x4190f9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x472e18]
test byte [eax + edi + 0x28], 0x48
je 0x4190d3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4190be
mov byte [esi], dl
jmp 0x4190cf
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x472e18]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41911c
cmp byte [ebp - 1], 0xa
jne 0x4190e2
cmp esi, ebx
jne 0x4190e2
mov byte [esi], 0xa
jmp 0x41911b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041307a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41911c
mov byte [esi], 0xd
jmp 0x41911b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x472e18]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419118
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41911c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x419125
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 + 0x472e18]
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 0x419168
cmp word [esi], dx
jne 0x419168
or byte [edi + eax + 0x28], 4
jmp 0x41916d
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 0x4192c0
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 0x4192a0
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4191af
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4191e5
cmp eax, edx
jae 0x4191f1
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 0x419187
jmp 0x4192c0
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 0x41929c
cmp dword [ebp - 0x14], 0
je 0x41929c
mov eax, dword [ebx*4 + 0x472e18]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x419274
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41923d
mov word [esi], cx
jmp 0x419270
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x472e18]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x472e18]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x472e18]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4192c0
pop ebx
cmp word [ebp - 4], bx
jne 0x419285
cmp esi, dword [ebp + 0xc]
jne 0x419285
mov word [esi], bx
jmp 0x4192bd
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041307a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4192c0
push 0xd
jmp 0x4192b9
mov ecx, dword [ebx*4 + 0x472e18]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4192b7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4192c0
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 0x404300
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0040438f
jae 0x40430e
xor ecx, ecx
call fcn.0040438f
jae 0x40433d
xor eax, eax
call fcn.0040438f
jae 0x40434d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0040438f
adc al, al
jae 0x40432f
jne 0x404379
stosb byte es:[edi], al
jmp 0x404311
call fcn.0040439b
sub ecx, ebx
jne 0x404356
call fcn.00404399
jmp 0x404375
lodsb al, byte [esi]
shr eax, 1
je 0x404383
adc ecx, ecx
jmp 0x404372
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00404399
cmp eax, 0x7d00
jae 0x404372
cmp ah, 5
jae 0x404373
cmp eax, 0x7f
ja 0x404374
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x404311
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40647b
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x40
push 0x1000
mov ebx, 0x4ac
xor ebp, ebp
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebx
mov edi, 0x451640
mov esi, eax
push edi
call fcn.00404d0d
push ebx
push edi
push esi
call fcn.0040b620
add esp, 0x14
call fcn.00404cf3
push ebp
push ebp
push 0x436040
lea eax, [esi + 0x188]
push eax
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x41f9b5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041f657

Function at 0x41f9c0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041f7e6

Function at 0x41fdba
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040b5d0
mov eax, dword [0x451b00]
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.0041cfc4
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41fdfc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41ff58
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00429c70
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 + 0x453760]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00420f8a
mov ecx, dword [esi*4 + 0x453760]
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 0x41ff51
cmp eax, dword [edi + ecx + 0x24]
jne 0x41ff51
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 0x41ff51
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00420f8a
add esp, 0x14
test edx, edx
jl 0x41ff51
jg 0x41fec7
test eax, eax
jb 0x41ff51
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41ff51
jl 0x41fee1
cmp dword [ebp - 0x1008], eax
ja 0x41ff51
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41feff
test ebx, ebx
je 0x41ff38
cmp ecx, edi
jae 0x41ff38
mov al, byte [ecx]
cmp al, 0xd
jne 0x41ff19
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41ff25
cmp byte [ecx + 1], 0xa
jne 0x41ff25
inc ecx
jmp 0x41ff25
movzx eax, al
movsx eax, byte [eax + 0x451dc8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41feff
cmp edx, ebx
jne 0x41feff
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41ff56
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a7e8
leave
ret
Function at 0x420428
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 + 0x453760]
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 0x420468
cmp byte [ebx], 0xa
jne 0x420468
or byte [eax + edi + 0x28], 4
jmp 0x42046d
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x42056b
mov al, byte [edx]
cmp al, 0x1a
je 0x42054d
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x42049c
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4204c1
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4204cb
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 0x42047e
jmp 0x42056b
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 0x420548
cmp dword [ebp - 0xc], 0
je 0x420548
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x453760]
test byte [eax + edi + 0x28], 0x48
je 0x420522
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42050d
mov byte [esi], dl
jmp 0x42051e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x453760]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42056b
cmp byte [ebp - 1], 0xa
jne 0x420531
cmp esi, ebx
jne 0x420531
mov byte [esi], 0xa
jmp 0x42056a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00420fa8
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42056b
mov byte [esi], 0xd
jmp 0x42056a
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x453760]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x420567
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42056b
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x420574
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 + 0x453760]
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 0x4205b7
cmp word [esi], dx
jne 0x4205b7
or byte [edi + eax + 0x28], 4
jmp 0x4205bc
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 0x42070f
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 0x4206ef
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4205fe
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x420634
cmp eax, edx
jae 0x420640
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 0x4205d6
jmp 0x42070f
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 0x4206eb
cmp dword [ebp - 0x14], 0
je 0x4206eb
mov eax, dword [ebx*4 + 0x453760]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4206c3
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x42068c
mov word [esi], cx
jmp 0x4206bf
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x453760]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x453760]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x453760]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x42070f
pop ebx
cmp word [ebp - 4], bx
jne 0x4206d4
cmp esi, dword [ebp + 0xc]
jne 0x4206d4
mov word [esi], bx
jmp 0x42070c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00420fa8
add esp, 0x10
cmp word [ebp - 4], bx
je 0x42070f
push 0xd
jmp 0x420708
mov ecx, dword [ebx*4 + 0x453760]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x420706
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42070f
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 0x422800
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 0x42289d
push ebx
push esi
call fcn.004227c9
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.0042144d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42284a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42289c
push edi
push eax
call fcn.0041c11e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42286a
call fcn.0041beb6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42289b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042144d
add esp, 0x20
test eax, eax
jne 0x422889
push edi
call fcn.0041beb6
jmp 0x422891
push ebx
call fcn.0041beb6
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 0x429a70
Capabilities:
Parse pe header

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

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10001046
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
push 1
mov eax, 0x10006200
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, 0x1000620f
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1000125e
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x10001088
push ebx
call fcn.100035ef
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10001098
push ebx
call fcn.100035ef
add esp, 4
lea eax, [ebp - 0x10]
push eax
mov eax, 0x1000622c
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.10001785
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x100010c0
push ebx
call fcn.100035ef
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x100010d0
push ebx
call fcn.100035ef
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x100010e4
push ebx
call fcn.100035ef
add esp, 4
pop eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.100022d7
mov dword [0x1022fc35], eax
push 0x80000301
push 0
push 0x2000
push 0x80000301
push 0
push 0x1000
push 2
mov ebx, 0xc8
call fcn.10003880
add esp, 0x1c
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0x40
push dword [ebp - 8]
push dword [0x1022fc35]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x1000115f
push 0x25c
push 0x40130f5
push 6
call fcn.100035fb
add esp, 0xc
mov dword [0x1022fc39], eax
cmp dword [0x1022fc39], 0
jne 0x10001176
jmp 0x100011df
lea eax, [ebp - 4]
push eax
call fcn.100022fb
mov dword [ebp - 8], eax
push dword [0x1022fc35]
push dword [ebp - 8]
push dword [0x1022fc39]
call fcn.10002320
push dword [0x1022fc39]
call fcn.1000233a
mov dword [0x1022fc35], eax
mov dword [ebp - 8], esp
push 0x8000
push 0
push dword [0x1022fc39]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x100011df
push 0x347
push 0x40130f5
push 6
call fcn.100035fb
add esp, 0xc
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x100011ef
push ebx
call fcn.100035ef
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x1000233a
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov eax, 0x1022f283
test eax, eax
je 0x1000237b
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.100035f5
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1000238c
push ebx
call fcn.100035ef
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000005
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x100023a3
mov eax, 0x1022f234
push eax
push 1
mov ebx, 0x194
call fcn.100038a0
add esp, 0x10
mov dword [ebp - 8], eax
push 0x80000301
push 0
push 0x2000
push 0x80000301
push 0
push 0x1000
push 2
mov ebx, 0xc8
call fcn.10003880
add esp, 0x1c
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push 0x40
push dword [ebp - 0x14]
push dword [ebp - 8]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x1000241f
push 0x18f
push 0x401002e
push 6
call fcn.100035fb
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10002436
mov eax, 0
jmp 0x1000249c
lea eax, [ebp - 4]
push eax
call fcn.100022fb
mov dword [ebp - 0x14], eax
push dword [ebp - 8]
push dword [ebp - 0x14]
push dword [ebp - 0xc]
call fcn.10002320
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.100024b4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push 0x8000
push 0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x10002494
push 0x2e1
push 0x401002e
push 6
call fcn.100035fb
add esp, 0xc
mov eax, dword [ebp - 0x10]
jmp 0x1000249c
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x100024ad
push ebx
call fcn.100035ef
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x10003f00
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x10003f1e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x10003f13
pop esi
ret