joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100c69c0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, dword [esi + 0xc]
mov edi, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
test eax, eax
je 0x100c6a39
xor esi, esi
nop dword [eax + eax]
mov eax, ecx
or eax, 2
mov edx, eax
xor edx, 1
imul edx, eax
mov eax, dword [ebp + 0xc]
shr edx, 8
xor dl, byte [esi + eax]
movzx eax, dl
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [eax*4 + 0x10113d00]
movzx eax, bl
add eax, edi
imul edi, eax, 0x8088405
inc edi
mov eax, edi
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x10113d00]
mov eax, dword [ebp + 0xc]
mov byte [esi + eax], dl
inc esi
mov eax, dword [ebp + 0x10]
cmp esi, eax
jb 0x100c69e0
mov esi, dword [ebp + 8]
mov dword [esi + 0x10], edi
pop edi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ecx
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x100c6a50
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edx, dword [esi + 0xc]
mov edi, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [ebp - 4], edx
test eax, eax
je 0x100c6ad2
xor esi, esi
push ebx
nop
mov eax, dword [ebp + 0xc]
mov bl, byte [esi + eax]
mov eax, ecx
or eax, 2
mov edx, eax
xor edx, 1
imul edx, eax
mov eax, dword [ebp + 0xc]
shr edx, 8
xor dl, bl
mov byte [esi + eax], dl
inc esi
mov edx, dword [ebp - 4]
movzx eax, bl
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x10113d00]
movzx eax, dl
add eax, edi
mov dword [ebp - 4], edx
imul edi, eax, 0x8088405
inc edi
mov eax, edi
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x10113d00]
mov eax, dword [ebp + 0x10]
cmp esi, eax
jb 0x100c6a70
mov esi, dword [ebp + 8]
pop ebx
mov dword [esi + 0x10], edi
pop edi
mov dword [esi + 0xc], edx
mov dword [esi + 0x14], ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x100c6bc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x1010a058]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
movzx eax, dl
push 0x40
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.100c89b0
movups xmm0, xmmword [ebp - 0x44]
add esp, 0xc
mov eax, 0x10
movups xmm1, xmmword [esi]
pxor xmm1, xmm0
movups xmmword [ebp - 0x44], xmm1
mov cl, byte [eax + esi]
xor byte [ebp + eax - 0x44], cl
inc eax
cmp eax, 0x14
jb 0x100c6c00
lea ecx, [ebp - 0xa4]
call fcn.100127a0
push 0x40
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0xa4]
call fcn.100127e0
mov edx, edi
lea ecx, [ebp - 0xa4]
call fcn.10011df0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100c70b8
mov esp, ebp
pop ebp
ret 4
Function at 0x402550
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
mov edx, dword [ecx]
push 0
push eax
push edx
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402589
mov eax, dword [esp + 0xc]
sub eax, 4
neg eax
sbb eax, eax
and eax, 0xd
pop ecx
ret 8

Function at 0x402590
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
add eax, eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402606
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x4025d5
cmp eax, 2
jne 0x4025f1
test esi, esi
mov eax, dword [esp + 0x14]
je 0x402600
test eax, eax
je 0x4025fb
test al, 1
jne 0x4025f1
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x402600
pop edi
mov eax, 0xd
pop esi
ret 0xc
mov word [esi], 0
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc

Function at 0x402b80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x436e8c
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4511a0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [esp + 0x34]
mov ecx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ebp, [esi + 4]
mov ecx, ebp
mov dword [esp + 0x2c], 0
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ecx, [esi + 0xc]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov byte [esp + 0x2c], 2
lea edi, [esi + 0x10]
call fcn.00404b10
mov dword [edi + 4], eax
mov byte [eax + 0x15], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], 0
push ebx
mov ecx, esi
mov byte [esp + 0x30], 3
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
lea eax, [ebx + 4]
push eax
mov ecx, ebp
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
mov ecx, dword [ebx + 8]
lea edx, [ebx + 0xc]
mov dword [esi + 8], ecx
push edx
lea ecx, [esi + 0xc]
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
add ebx, 0x10
cmp edi, ebx
je 0x402c4b
mov eax, dword [edi + 4]
mov ecx, dword [eax]
push eax
push edi
push ecx
push edi
lea eax, [esp + 0x28]
push eax
call fcn.00403660
mov eax, edi
call fcn.00403730
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
Function at 0x405a70
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
call fcn.00406260
test eax, eax
jge 0x405aa1
mov ecx, dword [edi + 0x34]
test ecx, ecx
jne 0x405a8c
mov ecx, 0x45156c
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
push 0
push 2
push 0
call edx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
jne 0x405ab7
mov dword [edi + 0x98], 1
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x10]
lea eax, [ebp - 4]
push eax
push 0x8004667e
push ecx
mov dword [ebp - 4], 0
call sub.WS2_32.dll_ioctlsocket
mov ecx, dword [edi + 0x34]
test ecx, ecx
jne 0x405adc
mov ecx, 0x45156c
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
push 0
push 3
push 0
call eax
mov dword [edi + 0x98], 2
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x405b00
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x9c]
push eax
mov ecx, 1
call fcn.00407730
add esp, 4
test eax, eax
jge 0x405b43
mov ecx, dword [esi + 0x34]
test ecx, ecx
jne 0x405b2e
mov ecx, 0x45156c
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
push 0
push 2
push 0
call eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
jne 0x405b66
mov ecx, dword [esi + 0x34]
test ecx, ecx
jne 0x405b51
mov ecx, 0x45156c
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
push 0
push 1
push 0
call eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x10]
lea ecx, [ebp - 4]
push ecx
push 0x8004667e
push edx
mov dword [ebp - 4], 0
call sub.WS2_32.dll_ioctlsocket
mov ecx, dword [esi + 0x34]
test ecx, ecx
jne 0x405b8b
mov ecx, 0x45156c
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
push 0
push 3
push 0
call edx
mov dword [esi + 0x98], 2
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406260
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4511a0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [edi + 0x10], eax
jne 0x406294
or eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417d0e
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp - 0x18]
push ecx
push 0x8004667e
push eax
mov dword [ebp - 0x18], 1
call sub.WS2_32.dll_ioctlsocket
movzx edx, word [edi + 0x94]
push edx
mov word [ebp - 0x14], 2
call dword [sym.imp.WS2_32.dll_htons]
mov esi, 0x10
cmp dword [edi + 0x90], esi
mov word [ebp - 0x12], ax
jb 0x4062d5
mov eax, dword [edi + 0x7c]
jmp 0x4062d8
lea eax, [edi + 0x7c]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x40632d
cmp dword [edi + 0x90], esi
jb 0x4062f4
mov eax, dword [edi + 0x7c]
jmp 0x4062f7
lea eax, [edi + 0x7c]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x406323
mov esi, dword [edi + 0x10]
call fcn.004076f0
mov dword [edi + 0x10], 0xffffffff
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417d0e
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebp - 0x10], edx
mov ecx, dword [edi + 0x10]
push esi
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x406354
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417d0e
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 4]
add eax, 0xffffd8cd
mov edx, 1
cmp edx, eax
sbb eax, eax
xor ecx, ebp
pop esi
call fcn.00417d0e
mov esp, ebp
pop ebp
ret

Function at 0x406380
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea esi, [ebx + 0x74]
test esi, esi
je 0x40639c
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x40639c
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
mov edi, dword [ebx + 0x10]
cmp edi, 0xffffffff
je 0x4063d0
push 4
lea eax, [ebp - 4]
push eax
push 0x80
push 0xffff
push edi
mov dword [ebp - 4], 1
call sub.WS2_32.dll_setsockopt
push 2
push edi
call sub.WS2_32.dll_shutdown
push edi
call sub.WS2_32.dll_closesocket
test esi, esi
mov dword [ebx + 0x10], 0xffffffff
pop edi
je 0x4063ea
mov esi, dword [esi]
cmp esi, 0xffffffff
je 0x4063ea
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4063f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, eax
mov eax, dword [ebx + 0xc]
push esi
xor esi, esi
sub eax, dword [ebx + 4]
push edi
mov dword [ebp - 4], eax
jmp 0x406410
sub eax, esi
cmp eax, 0x400
mov edi, 0x400
jg 0x406420
mov edi, eax
mov eax, dword [ebp + 8]
mov ecx, 1
push eax
lea edx, [ecx + 0x13]
call fcn.00407730
add esp, 4
test eax, eax
jl 0x40645f
je 0x406486
mov eax, dword [ebx + 4]
add eax, dword [ebx]
mov ecx, dword [ebp + 8]
push 0
push edi
add eax, esi
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x406469
add esi, eax
cmp esi, dword [ebp - 4]
jge 0x40648f
mov eax, dword [ebp - 4]
jmp 0x406410
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd8cd
cmp eax, 1
ja 0x40645f
call dword [sym.imp.MSVCR80.dll___iob_func]
mov ecx, esi
call fcn.00407960
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407580
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x10]
cmp esi, 0xffffffff
je 0x4075c1
push 4
lea eax, [esp + 0xc]
push eax
push 0x80
push 0xffff
push esi
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_setsockopt
push 2
push esi
call sub.WS2_32.dll_shutdown
push esi
call sub.WS2_32.dll_closesocket
mov dword [edi + 0x10], 0xffffffff
cmp byte [esp + 0x10], 0
je 0x4075d1
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
pop edi
pop esi
pop ecx
ret 4

Function at 0x4076f0
Capabilities:
Set socket configuration

Disassembly:
push ecx
cmp esi, 0xffffffff
je 0x407723
push 4
lea eax, [esp + 4]
push eax
push 0x80
push 0xffff
push esi
mov dword [esp + 0x14], 1
call sub.WS2_32.dll_setsockopt
push 2
push esi
call sub.WS2_32.dll_shutdown
push esi
call sub.WS2_32.dll_closesocket
pop ecx
ret
Function at 0x407730
Capabilities:
Get socket status

Disassembly:
mov eax, 0x2010
call fcn.00417f10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2024]
cmp edi, 0xffffffff
mov esi, edx
jne 0x407759
or eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2010
ret
cmp esi, 0xffffffff
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], 1
lea ebp, [edi + 1]
jne 0x4077af
mov esi, ecx
neg esi
sbb esi, esi
lea eax, [esp + 0x18]
and esi, eax
neg ecx
sbb ecx, ecx
not ecx
mov edx, eax
and ecx, edx
mov ebx, ecx
push 0
push 0
push esi
push ebx
push ebp
call sub.WS2_32.dll_select
mov edi, eax
test edi, edi
jge 0x407810
call dword [sym.imp.MSVCR80.dll__errno]
cmp dword [eax], 4
je 0x407785
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2010
ret
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x10], eax
imul eax, eax, 0x3e8
sub esi, eax
imul esi, esi, 0x3e8
mov dword [esp + 0x14], esi
mov esi, ecx
neg esi
sbb esi, esi
lea eax, [esp + 0x18]
and esi, eax
neg ecx
sbb ecx, ecx
not ecx
mov edx, eax
and ecx, edx
mov ebx, ecx
mov edi, edi
lea eax, [esp + 0x10]
push eax
push 0
push esi
push ebx
push ebp
call sub.WS2_32.dll_select
mov edi, eax
test edi, edi
jge 0x407810
call dword [sym.imp.MSVCR80.dll__errno]
cmp dword [eax], 4
je 0x4077f0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2010
ret

Function at 0x409500
Capabilities:
Hash data using sha1
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x106c
call fcn.00417f10
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x443310
push eax
lea ecx, [esp + 0x1c]
xor ebx, ebx
push ecx
mov byte [esp + 0x1f], 1
mov dword [esp + 0x20], ebx
call dword [sym.imp.MSVCR80.dll__wfopen_s]
add esp, 0xc
test eax, eax
je 0x409542
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x14]
push edx
mov dword [esp + 0x1c], 0x67452301
mov dword [esp + 0x20], 0xefcdab89
mov dword [esp + 0x24], 0x98badcfe
mov dword [esp + 0x28], 0x10325476
mov dword [esp + 0x2c], 0xc3d2e1f0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x78], ebx
call dword [sym.imp.MSVCR80.dll_feof]
mov edi, dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
test eax, eax
jne 0x4095f9
mov esi, dword [sym.imp.MSVCR80.dll_fread]
mov eax, dword [esp + 0x14]
push eax
push 0x1000
lea ecx, [esp + 0x80]
push 1
push ecx
call esi
add esp, 0x10
cmp eax, ebx
jg 0x4095d0
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.MSVCR80.dll_feof]
add esp, 4
test eax, eax
jne 0x4095f3
mov eax, dword [esp + 0x14]
push eax
call edi
mov byte [esp + 0x17], bl
jmp 0x4095de
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040a560
mov edx, dword [esp + 0x18]
add esp, 4
push edx
call dword [sym.imp.MSVCR80.dll_feof]
add esp, 4
test eax, eax
je 0x409594
cmp byte [esp + 0x13], bl
je 0x409605
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x18]
call fcn.0040a630
mov eax, dword [esp + 0x14]
push eax
call edi
mov al, byte [esp + 0x17]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409930
Capabilities:
Create thread

Disassembly:
lea eax, [esi + 0x10]
push eax
push 0
push esi
push 0x4099a0
push 0
push 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
test eax, eax
mov dword [esi + 0x14], eax
jne 0x409953
xor al, al
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
lea ebx, [ebx]
mov ecx, dword [esi + 4]
test ecx, ecx
jg 0x40996d
push 0xa
call edi
jmp 0x409960
mov edx, dword [esi + 4]
mov al, 1
pop edi
ret

Function at 0x409a50
Capabilities:
Encode data using base64

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, eax
mov eax, 0x55555556
imul ebx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*4]
sub ecx, eax
neg ecx
add ecx, ecx
add ecx, ecx
mov edx, ecx
mov ecx, 0xc
sub ecx, edx
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
lea ecx, [edx + eax + 1]
push ecx
xor esi, esi
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
cmp ebx, 2
mov ecx, eax
jle 0x409b3a
lea edx, [ebx - 3]
mov eax, 0xaaaaaaab
mul edx
push ebp
mov ebp, edx
shr ebp, 1
add ebp, 1
lea eax, [ebp*4]
sub eax, ebp
neg eax
add ebx, eax
mov dword [esp + 0x14], ebx
lea esp, [esp]
movzx eax, byte [edi]
movzx ebx, byte [edi + 1]
mov edx, eax
shr edx, 2
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], dl
and eax, 3
shl eax, 4
mov edx, ebx
shr edx, 4
movzx eax, byte [edx + eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 1], al
movzx eax, byte [edi + 2]
add esi, 1
mov edx, eax
shr edx, 6
and ebx, 0xf
movzx edx, byte [edx + ebx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
add esi, 1
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], dl
add esi, 1
mov byte [ecx + esi], al
add esi, 1
add edi, 3
sub ebp, 1
jne 0x409ad0
mov ebx, dword [esp + 0x14]
pop ebp
test ebx, ebx
je 0x409b9c
movzx eax, byte [edi]
mov edx, eax
shr edx, 2
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and eax, 3
mov byte [ecx + esi], dl
add esi, 1
shl eax, 4
cmp ebx, 1
jle 0x409b82
movzx edx, byte [edi + 1]
mov edi, edx
shr edi, 4
mov al, byte [edi + eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], al
add esi, 1
and edx, 0xf
mov dl, byte [edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], dl
jmp 0x409b92
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], al
add esi, 1
mov byte [ecx + esi], 0x3d
add esi, 1
mov byte [ecx + esi], 0x3d
add esi, 1
mov eax, dword [esp + 0x14]
test eax, eax
mov byte [ecx + esi], 0
je 0x409baa
mov dword [eax], esi
pop edi
pop esi
mov eax, ecx
pop ebx
ret
Function at 0x409cc0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [edi]
push eax
call sub.WS2_32.dll_ntohl
mov ecx, dword [edi + 4]
push ecx
mov esi, eax
call sub.WS2_32.dll_ntohl
mov ebp, dword [esp + 0x24]
lea edx, [esp + 0x10]
xor ebx, ebx
mov edi, eax
sub ebp, edx
lea ebx, [ebx]
lea eax, [ebp + ebx*4]
mov ecx, dword [esp + eax + 0x10]
push ecx
call sub.WS2_32.dll_ntohl
mov dword [esp + ebx*4 + 0x10], eax
add ebx, 1
cmp ebx, 4
jl 0x409cf0
xor eax, eax
lea ecx, [eax + 0x10]
nop
mov edx, edi
shr edx, 5
add edx, dword [esp + 0x14]
mov ebx, edi
shl ebx, 4
add ebx, dword [esp + 0x10]
sub eax, 0x61c88647
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
add esi, edx
mov edx, esi
shr edx, 5
add edx, dword [esp + 0x1c]
mov ebx, esi
shl ebx, 4
add ebx, dword [esp + 0x18]
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
add edi, edx
sub ecx, 1
jne 0x409d10
push esi
call sub.WS2_32.dll_htonl
mov esi, dword [esp + 0x28]
push edi
mov dword [esi], eax
call sub.WS2_32.dll_htonl
pop edi
mov dword [esi + 4], eax
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x409d70
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, eax
mov eax, dword [esi]
push edi
push eax
call sub.WS2_32.dll_ntohl
mov ecx, dword [esi + 4]
push ecx
mov edi, eax
call sub.WS2_32.dll_ntohl
mov ebp, dword [esp + 0x28]
lea edx, [esp + 0x14]
xor ebx, ebx
mov esi, eax
sub ebp, edx
lea ebx, [ebx]
lea eax, [ebp + ebx*4]
mov ecx, dword [esp + eax + 0x14]
push ecx
call sub.WS2_32.dll_ntohl
mov dword [esp + ebx*4 + 0x14], eax
add ebx, 1
cmp ebx, 4
jl 0x409da0
mov ecx, dword [esp + 0x20]
mov eax, 0xe3779b90
mov dword [esp + 0x10], 0x10
jmp 0x409dd0
mov ebx, edi
shl ebx, 4
add ebx, dword [esp + 0x1c]
mov edx, edi
shr edx, 5
add edx, ecx
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
sub esi, edx
mov edx, esi
shr edx, 5
add edx, dword [esp + 0x18]
mov ebx, esi
shl ebx, 4
add ebx, dword [esp + 0x14]
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
sub edi, edx
add eax, 0x61c88647
sub dword [esp + 0x10], 1
jne 0x409dd0
push edi
call sub.WS2_32.dll_htonl
mov edi, dword [esp + 0x2c]
push esi
mov dword [edi], eax
call sub.WS2_32.dll_htonl
mov dword [edi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x40abf0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push 0x2c
lea eax, [ebp - 0x2c]
push 0
push eax
mov dword [ebp - 0x30], 0x30
call fcn.00417e46
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], str.TXLOGGER_BYCORETEAM
mov dword [ebp - 0x28], 0x40abb0
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edx, dword [ebp - 8]
lea ecx, [ebp - 0x60]
push ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClassInfoExW]
test eax, eax
je 0x40ac4d
xor eax, eax
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.USER32.dll_RegisterClassExW]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
push 0
push edx
push 0
push 0xfffffffffffffffd
push 0x64
push 0x64
push 0
push 0
push 0
push str.loger_command_window
push eax
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push eax
mov dword [esi + 0x230], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x230]
mov esp, ebp
pop ebp
ret

Function at 0x40aca0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436c28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor ebx, ebx
lea eax, [ebp + 8]
push eax
push 0x20019
push ebx
mov dword [esi + 0x244], ebx
mov dword [esi + 0x248], ebx
mov dword [esi + 0x24c], ebx
push str.SoftwareTencentQQPlayerSettings
push connect
mov byte [esi + 0x23d], 1
mov dword [esi + 0x22c], ebx
mov dword [esi + 0x230], ebx
mov byte [esi + 0x23c], 1
mov dword [esi + 0x238], 5
xor edi, edi
mov dword [ebp + 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40ad90
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
push 0x451470
lea edx, [ebp - 0x14]
push edx
push ebx
push str.logLevel
push edi
mov dword [ebp - 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x238]
push eax
lea ecx, [ebp - 0x14]
push ecx
push ebx
push str.LogCacheCount
push edi
mov dword [ebp - 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x40ad83
cmp dword [ebp - 0x14], 4
jne 0x40ad83
cmp dword [esi + 0x238], 1
ja 0x40ad83
mov byte [esi + 0x23d], bl
cmp edi, ebx
je 0x40ad90
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov edx, dword [0x451470]
mov dword [esi + 0x234], edx
mov byte [esi + 0x23e], 1
mov byte [esi + 0x23f], bl
call fcn.0040abf0
test eax, eax
jne 0x40ade6
lea eax, [ebp - 0x14]
push eax
push 0x442550
push str.Assert
push 2
push str._anonymous_namespace::CTXLoger::CTXLoger
push 0x131
push str..Log.cpp
mov byte [esi + 0x23c], bl
mov dword [ebp - 0x14], str.log_
call fcn.00402390
add esp, 0x1c
push esi
call fcn.0040a8a0
cmp edi, ebx
je 0x40adf7
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4