joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403b50
Capabilities:
Create tcp socket

Disassembly:
sub esp, 0x40
mov eax, dword [0x42d414]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
xor ebx, ebx
push ebx
mov dl, 0x48
mov cl, 0xa1
mov al, 0x92
push 1
mov ebp, 0xcbac
mov esi, 0x11cf
push 2
mov dword [esp + 0x20], 0xb5367df1
mov word [esp + 0x24], bp
mov word [esp + 0x26], si
mov byte [esp + 0x28], 0x95
mov byte [esp + 0x29], 0xca
mov byte [esp + 0x2a], bl
mov byte [esp + 0x2b], 0x80
mov byte [esp + 0x2c], 0x5f
mov byte [esp + 0x2d], dl
mov byte [esp + 0x2e], cl
mov byte [esp + 0x2f], al
mov dword [esp + 0x30], 0x25a207b9
mov word [esp + 0x34], 0xddf3
mov word [esp + 0x36], 0x4660
mov byte [esp + 0x38], 0x8e
mov byte [esp + 0x39], 0xe9
mov byte [esp + 0x3a], 0x76
mov byte [esp + 0x3b], 0xe5
mov byte [esp + 0x3c], 0x8c
mov byte [esp + 0x3d], 0x74
mov byte [esp + 0x3e], 6
mov byte [esp + 0x3f], 0x3e
mov dword [esp + 0x40], 0xb5367df2
mov word [esp + 0x44], bp
mov word [esp + 0x46], si
mov byte [esp + 0x48], 0x95
mov byte [esp + 0x49], 0xca
mov byte [esp + 0x4a], bl
mov byte [esp + 0x4b], 0x80
mov byte [esp + 0x4c], 0x5f
mov byte [esp + 0x4d], dl
mov byte [esp + 0x4e], cl
mov byte [esp + 0x4f], al
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x403c43
xor al, al
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00419af5
add esp, 0x40
ret
mov ebp, dword [sym.imp.WS2_32.dll_WSAIoctl]
push ebx
push ebx
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push 0x10
lea edx, [esp + 0x2c]
push edx
push 0xc8000006
push esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call ebp
mov eax, dword [esp + 0xc]
push ebx
push ebx
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [esp + 0x1c]
push edx
push 0x10
mov dword [edi + 0x30], eax
lea eax, [esp + 0x3c]
push eax
push 0xc8000006
push esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call ebp
mov ecx, dword [esp + 0xc]
push ebx
push ebx
lea edx, [esp + 0x18]
push edx
push 4
lea eax, [esp + 0x1c]
push eax
push 0x10
mov dword [edi + 0x34], ecx
lea ecx, [esp + 0x4c]
push ecx
push 0xc8000006
push esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call ebp
mov edx, dword [esp + 0xc]
push esi
mov dword [edi + 0x38], edx
call dword [sym.imp.WS2_32.dll_closesocket]
cmp dword [edi + 0x30], ebx
je 0x403cfa
cmp dword [edi + 0x34], ebx
je 0x403cfa
cmp dword [edi + 0x38], ebx
je 0x403cfa
mov eax, 1
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00419af5
add esp, 0x40
ret
mov ecx, dword [esp + 0x44]
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00419af5
add esp, 0x40
ret
Function at 0x403f10
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x14
cmp byte [esp + 0x1c], 0
push ebx
push ebp
push esi
push edi
mov edi, edx
mov esi, eax
mov ebx, ecx
lea ebp, [edi + 8]
jne 0x403f2a
lea ebp, [edi + 0x24]
xor eax, eax
cmp esi, eax
jne 0x403f36
mov byte [ebp + 7], 1
jmp 0x403f75
cmp esi, 0xffffffff
je 0x403f75
cmp esi, eax
jle 0x403f61
push esi
call fcn.00419a72
add esp, 4
test ebx, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
je 0x403f69
push esi
push ebx
push eax
call fcn.0041adc0
add esp, 0xc
jmp 0x403f69
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
lea esi, [ebp + 0xc]
lea ebx, [esp + 0x14]
call fcn.0040a770
cmp byte [ebp + 6], 0
jne 0x403fc8
mov eax, dword [ebp + 0x10]
test eax, eax
lea ebx, [ebp + 0xc]
je 0x403f8f
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 3
jne 0x403fd4
cmp byte [ebp + 7], 0
je 0x403fc8
cmp byte [esp + 0x2c], 0
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
push edx
push eax
mov eax, dword [esp + 0x30]
je 0x403fbf
mov ecx, dword [edi + 0x24]
push ecx
call fcn.00404220
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
mov ecx, dword [edi + 8]
push ecx
call fcn.00404220
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
mov edi, dword [esp + 0x28]
call fcn.004038e0
mov edx, dword [esp + 0x30]
mov esi, eax
mov eax, dword [esp + 0x34]
mov dword [esi + 0x2c], eax
lea edi, [esi + 0x34]
push edi
mov eax, ebx
mov dword [esi + 0x30], 3
mov dword [esi + 0x28], edx
call fcn.0040a5e0
mov eax, dword [ebx + 8]
cmp dword [ebx + 4], eax
mov dword [esp + 0x30], eax
jbe 0x404010
call fcn.0041a633
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
mov dword [esp + 0x2c], eax
jbe 0x404025
call fcn.0041a633
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
push ecx
push ebx
push eax
push ebx
lea edx, [esp + 0x40]
push edx
call fcn.0040bb70
cmp byte [ebp + 8], 0
jne 0x4040c3
cmp dword [ebp], 0xffffffff
je 0x4040c3
mov byte [ebp + 6], 1
mov eax, dword [edi + 4]
test eax, eax
jne 0x404056
xor ebx, ebx
jmp 0x40405e
mov ebx, dword [edi + 8]
sub ebx, eax
sar ebx, 3
test eax, eax
je 0x40406c
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 3
jne 0x404071
call fcn.0041a633
mov edi, dword [edi + 4]
mov eax, dword [ebp]
push 0
push esi
push 0
lea edx, [esp + 0x28]
push edx
push ebx
push edi
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x403fc8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x403fc8
mov edi, dword [esp + 0x28]
mov byte [ebp + 8], 1
mov byte [ebp + 6], 0
mov dword [esi + 0x30], 4
mov ebp, dword [ebp]
mov ecx, dword [edi + 8]
push esi
push ebp
push 0
push ecx
jmp 0x4040d9
mov edi, dword [esp + 0x28]
mov dword [esi + 0x30], 4
mov ebp, dword [ebp]
mov edx, dword [edi + 8]
push esi
push ebp
push 0
push edx
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x4040e8
call fcn.00403970
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x14
ret 0x10
Function at 0x404100
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0xc
cmp byte [esp + 0x14], 0
push ebx
push ebp
push esi
push edi
lea ebp, [eax + 8]
jne 0x404114
lea ebp, [eax + 0x24]
cmp byte [ebp + 8], 0
jne 0x404207
cmp byte [ebp + 4], 0
jne 0x404207
cmp dword [ebp], 0xffffffff
je 0x404207
cmp byte [ebp + 5], 0
je 0x404144
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
cmp byte [eax + 0xe4], 0
mov esi, 4
je 0x40415d
cmp dword [eax + 0x40], esi
jne 0x40415d
cmp byte [ebp + 7], 0
je 0x404138
mov edi, dword [esp + 0x20]
call fcn.004038e0
mov ecx, dword [esp + 0x2c]
mov edi, eax
mov eax, dword [esp + 0x28]
push 0x2000
mov dword [edi + 0x30], esi
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], ecx
call fcn.00419a72
add esp, 4
lea esi, [edi + 0x34]
lea ebx, [esp + 0x28]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], 0x2000
call fcn.0040a770
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov byte [ebp + 5], 1
call fcn.0040a750
push ebx
push edi
lea edx, [esp + 0x2c]
push edx
mov edx, dword [ebp]
lea ecx, [esp + 0x20]
push ecx
push 1
push eax
push edx
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x404138
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x404138
mov byte [ebp + 5], bl
mov byte [ebp + 8], 1
mov ebp, dword [ebp]
push edi
push ebp
push ebx
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x404207
mov esi, edi
mov edi, ebx
call fcn.00403970
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret 0x10
Function at 0x404260
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x4260e8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42d414]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, edx
mov edi, dword [esp + 0x30]
cmp dword [esp + 0x34], 0
je 0x4042c1
mov ebp, dword [esi + 0x28]
mov esi, dword [esi + 0x2c]
call fcn.004038e0
push eax
push ebx
mov dword [eax + 0x30], 2
mov dword [eax + 0x28], ebp
mov dword [eax + 0x2c], esi
mov eax, dword [edi + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
jmp 0x404404
mov ecx, dword [esi + 0x2c]
mov eax, dword [esi + 0x28]
push ecx
push eax
mov eax, edi
mov dword [esp + 0x20], edi
call fcn.004039d0
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x1c], ebp
je 0x4042eb
lea eax, [ebp + 0xec]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ebp, ebp
mov dword [esp + 0x28], 0
je 0x404404
push 0
push 0
push 0x7010
push 0xffff
push ebx
mov dword [esp + 0x48], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [esp + 0x38]
push ecx
push 1
push 6
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea edx, [esp + 0x38]
push edx
push 8
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
push ebx
call fcn.00404c70
mov ebx, 1
cmp dword [ebp + 0x88], ebx
jne 0x4043a2
mov eax, dword [ebp + 0xc0]
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x28]
neg eax
sbb al, al
push ecx
push edx
push 0
push edi
lea ecx, [esp + 0x40]
mov edx, ebp
and eax, 2
mov byte [esp + 0x42], al
mov eax, 3
mov byte [esp + 0x40], 5
mov byte [esp + 0x41], bl
call fcn.00403f10
test al, al
je 0x40438e
mov dword [ebp + 0x40], ebx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x28]
push eax
push ecx
push 0
push edi
mov eax, ebp
call fcn.00404100
jmp 0x4043e8
mov dword [ebp + 0x40], 4
mov edx, dword [esi + 0x2c]
mov eax, dword [esi + 0x28]
push edx
push eax
push ebx
push edi
mov eax, ebp
call fcn.00404100
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x28]
push ecx
push edx
push 0
push edi
mov eax, ebp
call fcn.00404100
cmp dword [edi + 0x5c], 0
je 0x4043e8
mov ecx, dword [edi + 0x5c]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
lea edx, [ebp + 0x44]
push edx
mov edx, dword [esi + 0x2c]
push edx
mov edx, dword [esi + 0x28]
push edx
call eax
lea ecx, [ebp + 0xec]
push ecx
mov dword [esp + 0x2c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, ebp
call fcn.00403a80
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
Function at 0x4060c0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
mov esi, eax
lea ecx, [ebx + 0xe0]
mov ebp, 4
mov edi, 4
jmp 0x4060e0
mov dl, byte [ecx]
xor byte [eax], dl
add ecx, 1
add eax, 1
sub edi, 1
jne 0x4060e0
sub ebp, 1
jne 0x4060d6
mov byte [esp + 0x13], 0xd
add ebx, 0xd0
nop
movzx ecx, byte [esi + 9]
movzx edx, byte [esi + 5]
mov al, byte [esi + 0xd]
mov byte [esi + 0xd], cl
movzx ecx, byte [esi + 1]
mov byte [esi + 9], dl
movzx edx, byte [esi + 0xa]
mov byte [esi + 1], al
mov al, byte [esi + 2]
mov byte [esi + 5], cl
movzx ecx, byte [esi + 0xe]
mov byte [esi + 2], dl
movzx edx, byte [esi + 7]
mov byte [esi + 0xa], al
mov al, byte [esi + 6]
mov byte [esi + 0xe], al
mov al, byte [esi + 3]
mov byte [esi + 6], cl
movzx ecx, byte [esi + 0xb]
mov byte [esi + 3], dl
movzx edx, byte [esi + 0xf]
mov byte [esi + 7], cl
mov byte [esi + 0xb], dl
mov byte [esi + 0xf], al
mov edi, esi
mov ebp, 4
jmp 0x406160
mov eax, edi
mov ecx, 4
jmp 0x406170
movzx edx, byte [eax]
mov dl, byte [edx + 0x4290c8]
mov byte [eax], dl
add eax, 4
sub ecx, 1
jne 0x406170
add edi, 1
sub ebp, 1
jne 0x406160
mov eax, esi
mov ecx, ebx
mov ebp, 4
mov edi, 4
lea esp, [esp]
mov dl, byte [ecx]
xor byte [eax], dl
add ecx, 1
add eax, 1
sub edi, 1
jne 0x4061a0
sub ebp, 1
jne 0x406194
mov eax, esi
call fcn.00405d00
mov al, byte [esp + 0x13]
add al, 0xff
sub ebx, 0x10
test al, al
mov byte [esp + 0x13], al
ja 0x406100
movzx ecx, byte [esi + 9]
movzx edx, byte [esi + 5]
mov al, byte [esi + 0xd]
mov byte [esi + 0xd], cl
movzx ecx, byte [esi + 1]
mov byte [esi + 9], dl
movzx edx, byte [esi + 0xa]
mov byte [esi + 1], al
mov al, byte [esi + 2]
mov byte [esi + 5], cl
movzx ecx, byte [esi + 0xe]
mov byte [esi + 2], dl
movzx edx, byte [esi + 7]
mov byte [esi + 0xa], al
mov al, byte [esi + 6]
mov byte [esi + 0xe], al
mov al, byte [esi + 3]
mov byte [esi + 6], cl
movzx ecx, byte [esi + 0xb]
mov byte [esi + 3], dl
movzx edx, byte [esi + 0xf]
mov byte [esi + 7], cl
mov byte [esi + 0xb], dl
mov byte [esi + 0xf], al
mov edi, esi
mov ebp, 4
jmp 0x406230
mov eax, edi
mov ecx, 4
jmp 0x406240
movzx edx, byte [eax]
mov dl, byte [edx + 0x4290c8]
mov byte [eax], dl
add eax, 4
sub ecx, 1
jne 0x406240
add edi, 1
sub ebp, 1
jne 0x406230
mov edi, dword [esp + 0x18]
sub edi, esi
mov eax, esi
mov esi, 4
jmp 0x406270
mov ecx, 4
mov dl, byte [edi + eax]
xor byte [eax], dl
add eax, 1
sub ecx, 1
jne 0x406275
sub esi, 1
jne 0x406270
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x406290
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
mov eax, dword [0x42d414]
xor eax, esp
mov dword [esp + 0x18], eax
test ecx, ecx
mov eax, dword [esp + 0x20]
push esi
mov dword [esp + 8], eax
mov esi, edx
jbe 0x40631c
add ecx, 0xffffffff
push ebx
shr ecx, 4
push ebp
add ecx, 1
push edi
lea edi, [eax + 0xf0]
mov dword [esp + 0x10], ecx
jmp 0x4062c9
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov ebp, dword [esi]
mov ebx, dword [esi + 4]
push eax
mov eax, esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
call fcn.004060c0
add esp, 4
mov eax, edi
mov ecx, 0x10
mov edi, edi
mov dl, byte [eax]
xor byte [esi], dl
add eax, 1
add esi, 1
sub ecx, 1
jne 0x4062f0
sub dword [esp + 0x10], 1
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [edi], ebp
mov dword [edi + 4], ebx
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
jne 0x4062c5
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
pop esi
xor ecx, esp
call fcn.00419af5
add esp, 0x1c
ret
Function at 0x406ce0
Capabilities:
Create thread
Get system information on windows

Disassembly:
mov eax, dword [0x42f310]
sub esp, 0x30
push esi
mov esi, dword [0x42f10c]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test esi, esi
jg 0x406d16
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [esp + 0x24]
test esi, esi
jne 0x406d14
mov esi, 1
test esi, esi
jle 0x406d54
lea edx, [esp + 0xc]
push edx
push 0
push 0x42f2e8
push 0x407300
push 0
push 0
call fcn.00419bfe
add esp, 0x18
test eax, eax
mov dword [esp + 8], eax
je 0x406d4f
cmp eax, 0xffffffff
je 0x406d4f
lea eax, [esp + 8]
push eax
mov ecx, 0x42f2e8
call fcn.0040a570
sub esi, 1
jne 0x406d16
mov al, 1
pop esi
add esp, 0x30
ret
Function at 0x406fa0
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x638
mov eax, dword [0x42d414]
xor eax, esp
mov dword [esp + 0x630], eax
mov eax, dword [esi + 4]
push edi
mov edi, ecx
mov ecx, dword [esi]
push eax
push ecx
push str.DnsResolver::handleRequest___id_I64u_n
call fcn.00419e63
movzx edx, word [0x42f110]
xor eax, eax
add esp, 0xc
mov dword [esp + 0x220], eax
push edx
mov dword [esp + 0x228], eax
mov dword [esp + 0x22c], eax
mov dword [esp + 0x230], eax
mov word [esp + 0x224], 2
call dword [sym.imp.WS2_32.dll_htons]
push 0x42f114
mov word [esp + 0x226], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x24]
push 0x10
mov dword [esp + 0x228], eax
lea eax, [esp + 0x224]
push eax
push 0
push ecx
push edx
push edi
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x40716f
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x11c]
push edx
push 0
mov eax, 1
lea ecx, [esp + 0x1c]
push ecx
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x130], edi
mov dword [esp + 0x12c], eax
mov dword [esp + 0x1c], 2
mov dword [esp + 0x20], 0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x40715a
lea edx, [esp + 0x10]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x407130
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x224]
push ecx
push 0
push 0x400
lea edx, [esp + 0x240]
push edx
push edi
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
cmp edi, 0xffffffff
je 0x40711b
mov eax, dword [esi + 0x2c]
push eax
mov eax, dword [esi + 4]
push edi
lea ecx, [esp + 0x238]
push ecx
mov ecx, dword [esi]
lea edx, [esi + 8]
push edx
push eax
push ecx
call fcn.00413370
mov edx, dword [esi + 4]
mov eax, dword [esi]
push edi
push edx
push eax
push str.DnsResolver::handleRequest___id_I64u_succeeded__len_d_n
call fcn.00419e63
add esp, 0x28
pop edi
mov ecx, dword [esp + 0x630]
xor ecx, esp
call fcn.00419af5
add esp, 0x638
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push eax
push ecx
push edx
push str.DnsResolver::handleRequest___id_I64u_recvfrom_error_d_n
jmp 0x407182
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
push ecx
push str.DnsResolver::handleRequest___id_I64u_no_data_n
call fcn.00419e63
add esp, 0xc
pop edi
mov ecx, dword [esp + 0x630]
xor ecx, esp
call fcn.00419af5
add esp, 0x638
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi + 4]
push eax
mov eax, dword [esi]
push edx
push eax
push str.DnsResolver::handleRequest___id_I64u_select_error_d_n
jmp 0x407182
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push eax
push ecx
push edx
push str.DnsResolver::handleRequest___id_I64u_sendto_error_d_n
call fcn.00419e63
mov ecx, dword [esp + 0x644]
add esp, 0x10
pop edi
xor ecx, esp
call fcn.00419af5
add esp, 0x638
ret
Function at 0x4071a0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [edi + 0x24]
mov ecx, dword [edi + 0x28]
push ebx
push esi
push 0x11
push 2
push 2
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 8], esi
je 0x4072f5
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x18]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 1
je 0x4072ee
lea esi, [edi + 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 0x20], 0
je 0x4072c4
mov ebx, dword [edi + 0x1c]
mov eax, dword [edi + 0x20]
add eax, ebx
cmp ebx, eax
jbe 0x407213
call fcn.0041a633
mov ecx, dword [edi + 0x20]
add ecx, dword [edi + 0x1c]
mov esi, ebx
mov eax, ebx
and eax, 3
shr esi, 2
cmp ebx, ecx
mov dword [esp + 0xc], eax
jb 0x407234
call fcn.0041a633
mov eax, dword [esp + 0xc]
mov ecx, dword [edi + 0x18]
cmp ecx, esi
ja 0x40723d
sub esi, ecx
mov edx, dword [edi + 0x14]
mov ecx, dword [edx + esi*4]
mov esi, dword [ecx + eax*4]
mov eax, dword [edi + 0x20]
xor ebx, ebx
cmp eax, ebx
je 0x407271
mov edx, dword [edi + 0x18]
add dword [edi + 0x1c], 1
mov ecx, dword [edi + 0x1c]
add edx, edx
add edx, edx
cmp edx, ecx
ja 0x407264
mov dword [edi + 0x1c], ebx
add eax, 0xffffffff
cmp eax, ebx
mov dword [edi + 0x20], eax
jne 0x407271
mov dword [edi + 0x1c], ebx
lea eax, [edi + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 8]
call fcn.00406fa0
cmp esi, ebx
je 0x4072b1
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x407298
push eax
call fcn.00419d34
add esp, 4
mov eax, dword [esi + 0x2c]
cmp eax, ebx
je 0x4072a8
push eax
call fcn.00419d34
add esp, 4
push esi
call fcn.00419cac
add esp, 4
lea eax, [edi + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 0x20], ebx
jne 0x407202
lea esi, [edi + 0x2c]
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x18]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 1
jne 0x4071f1
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4086b0
Capabilities:
Copy file
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x42d414]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x19]
push ebx
push eax
mov byte [esp + 0x20], bl
call fcn.0041ad40
push 0x103
lea ecx, [esp + 0x129]
push ebx
push ecx
mov byte [esp + 0x130], bl
call fcn.0041ad40
add esp, 0x18
push 0x104
lea edx, [esp + 0x18]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.IsWow64Process
push str.kernel32
mov dword [esp + 0x18], ebx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebp
mov esi, eax
cmp esi, ebx
je 0x40874a
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [esp + 0x10], ebx
mov eax, str.plddriverpldfilter64.sys
jne 0x40875a
mov eax, str.plddriverpldfilter32.sys
push eax
lea edx, [esp + 0x18]
push 0x104
push edx
call fcn.0041a27d
add esp, 0xc
push 0x104
lea eax, [esp + 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.IsWow64Process
push str.kernel32
mov dword [esp + 0x18], ebx
call edi
push eax
call ebp
mov esi, eax
cmp esi, ebx
je 0x4087a7
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [esp + 0x10], ebx
mov eax, str.Sysnativedriverspldfilter.sys
jne 0x4087b7
mov eax, str.System32driverspldfilter.sys
push eax
lea edx, [esp + 0x11c]
push 0x104
push edx
call fcn.0041a27d
add esp, 0xc
push ebx
lea eax, [esp + 0x11c]
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00419af5
add esp, 0x210
ret
Function at 0x4096d0
Capabilities:
Acquire debug privileges
Check mutex on windows
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push esi
push 0x42f128
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor eax, eax
mov dword [0x42f2b8], eax
mov dword [0x42f2bc], eax
mov dword [0x42f2c0], eax
mov dword [0x42f2c4], eax
mov dword [0x42f2c8], eax
mov dword [0x42f2cc], eax
mov dword [0x42f2d0], eax
lea eax, [esp + 4]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, dword [esp + 4]
lea ecx, [esp + 0xc]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push 0
push 0
push 0x10
lea edx, [esp + 0x14]
push edx
push 0
push esi
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push str.DB6A127A2BEA47D1B83C3C68B34E4BB9
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call esi
cmp eax, 0xb7
jne 0x409794
push str.The_program_has_been_run_n
call fcn.00419e63
add esp, 4
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 0x10
push 0
call fcn.00408960
add esp, 4
test eax, eax
jne 0x4097b9
push str.Failed_to_DecryptMEMConfig_n
call fcn.00419e63
add esp, 4
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 0x10
push str.DecryptMEMConfig_Success__n_n
call fcn.00419e63
add esp, 4
call fcn.00407310
test al, al
jne 0x4097e6
push str.Failed_to_initialize_the_event_handler_n
call fcn.00419e63
add esp, 4
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 0x10
call fcn.004086b0
push 0x42f330
push str.pldfilter
call fcn.00414330
add esp, 8
test eax, eax
je 0x409818
push str.Failed_to_connect_to_driver_n
call fcn.00419e63
add esp, 4
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 0x10
call fcn.00406ce0
call fcn.00408800
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call fcn.004095c0
push str.Exit_program_n
call fcn.00419e63
add esp, 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10