joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b1fc1
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x6af2f0
call fcn.00664608
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [esi]
mov dword [edi], eax
mov al, byte [edi + 4]
xor al, byte [esi + 4]
and al, 1
xor byte [edi + 4], al
mov cl, byte [esi + 4]
xor cl, byte [edi + 4]
and cl, 2
xor cl, byte [edi + 4]
mov byte [edi + 4], cl
mov al, byte [esi + 4]
xor al, cl
and al, 4
xor al, cl
lea ecx, [edi + 0xc]
mov byte [edi + 4], al
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
lea eax, [esi + 0xc]
push eax
call fcn.004277f3
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
and dword [ebp - 4], 0
mov dword [edi + 0x28], eax
lea eax, [esi + 0x30]
mov dword [edi + 0x2c], ecx
lea ecx, [edi + 0x30]
push eax
call fcn.00480e5a
lea eax, [esi + 0x44]
push eax
lea ecx, [edi + 0x44]
call fcn.004277f3
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4b204c
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x6af317
call fcn.00664608
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [esi]
mov dword [edi], eax
mov al, byte [edi + 4]
xor al, byte [esi + 4]
and al, 1
xor byte [edi + 4], al
mov cl, byte [esi + 4]
xor cl, byte [edi + 4]
and cl, 2
xor cl, byte [edi + 4]
mov byte [edi + 4], cl
mov al, byte [esi + 4]
xor al, cl
and al, 4
xor al, cl
lea ecx, [edi + 0xc]
mov byte [edi + 4], al
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
lea eax, [esi + 0xc]
push eax
mov dword [ecx], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00427a37
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov dword [edi + 0x28], eax
lea eax, [esi + 0x30]
mov dword [edi + 0x2c], ecx
lea ecx, [edi + 0x30]
push eax
mov dword [ebp - 4], ebx
call fcn.004b1edf
lea ecx, [edi + 0x44]
mov byte [ebp - 4], 1
lea eax, [esi + 0x44]
mov dword [ecx], ebx
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00427a37
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4b20ee
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x6af2f0
call fcn.00664608
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x10], esi
xor eax, eax
push 7
pop edi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], edi
mov word [esi + 0xc], ax
lea ecx, [esi + 0x30]
mov dword [ebp - 4], ebx
call fcn.0044074b
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword [esi + 0x44], ebx
mov dword [esi + 0x58], edi
mov word [esi + 0x44], ax
mov eax, esi
mov dword [esi + 0x54], ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4b6bff
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
mov ecx, dword [0x7bd074]
mov eax, ecx
push ebx
push ebp
push esi
mov esi, dword [0x7bd070]
xor ebx, ebx
sub eax, esi
mov dword [esp + 0xc], ebx
push 0x60
cdq
pop ebp
idiv ebp
test eax, eax
je 0x4b6cdb
push edi
xor edi, edi
xor ebp, ebp
cmp dword [edi + esi + 0x40], ebp
je 0x4b6cc1
mov eax, dword [edi + esi + 0x3c]
push dword [esp + 0x24]
lea ecx, [eax + ebp]
mov eax, dword [edi + esi + 0x38]
dec eax
and ecx, eax
mov eax, dword [edi + esi + 0x34]
mov ebx, dword [eax + ecx*4]
push ebx
call fcn.004b6113
test al, al
je 0x4b6caa
push dword [ebx + 0x78]
call fcn.004b4e9b
add eax, 0xc
cmp dword [eax + 0x14], 8
jb 0x4b6c6e
mov eax, dword [eax]
lea ecx, [ebx + 0x30]
cmp dword [ecx + 0x14], 0x10
jb 0x4b6c79
mov ecx, dword [ecx]
add ebx, 0x18
mov edx, ebx
cmp dword [ebx + 0x14], 8
jb 0x4b6c86
mov edx, dword [ebx]
push eax
push ecx
push edx
call fcn.004b605e
test al, al
jne 0x4b6caa
mov ecx, dword [esp + 0x20]
push ebx
call fcn.00427b2b
mov ecx, dword [esp + 0x20]
push 0x6d8d28
call fcn.00437714
inc ebp
cmp ebp, dword [edi + esi + 0x40]
jne 0x4b6c38
mov ecx, dword [0x7bd074]
mov esi, dword [0x7bd070]
mov ebx, dword [esp + 0x10]
mov eax, ecx
inc ebx
sub eax, esi
mov dword [esp + 0x10], ebx
push 0x60
pop ebp
cdq
add edi, ebp
idiv ebp
cmp ebx, eax
jne 0x4b6c2c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8

Function at 0x4ba306
Capabilities:
Create thread

Disassembly:
push ecx
push esi
xor esi, esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
lea ecx, [esp + 4]
mov dword [0x7bd100], eax
push ecx
push esi
push eax
push 0x4b9d75
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
pop ecx
ret

Function at 0x4baf40
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x6afba5
call fcn.00664608
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 8], 0x6d3f5c
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 1
mov dword [esi], 0x6e288c
mov dword [esi + 8], 0x6e28a8
mov dword [esi + 0xc], ebx
call fcn.004bff34
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov byte [esi + 0x58], bl
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x6c], ebx
mov byte [esi + 0x5c], bl
mov dword [esi + 0x70], 0xf
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4c13ad
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x6b0240
call fcn.00664608
sub esp, 0x28
push ebx
push esi
push edi
xor edx, edx
mov byte [ebp - 0x34], 1
mov dword [ebp - 4], edx
mov esi, edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
push 0x10
pop edi
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
mov bl, dl
cmp dword [ebp + 0x1c], edi
jb 0x4c13ee
mov eax, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x18]
push ecx
push edx
push edx
push edi
push eax
call sub.DNSAPI.dll_DnsQuery_UTF8
test eax, eax
jne 0x4c1499
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x4c1464
cmp word [esi + 8], di
jne 0x4c145e
xor edi, edi
test bl, bl
jne 0x4c145b
lea eax, [esi + 0x1c]
mov dword [ebp - 0x14], eax
cmp edi, dword [esi + 0x18]
jae 0x4c145b
mov edx, dword [eax]
push edx
push str.DEBUG:_Processing_TXT:__s_n
call fcn.00427b28
mov ecx, edx
add esp, 8
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c1437
lea eax, [ebp - 0x34]
sub ecx, ebx
push eax
push ecx
push edx
call fcn.004cedf7
mov bl, al
inc edi
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
test bl, bl
je 0x4c141d
push 0x10
pop edi
mov esi, dword [esi]
test bl, bl
je 0x4c1407
push 1
push dword [ebp - 0x18]
call sub.DNSAPI.dll_DnsFree
xor esi, esi
test bl, bl
je 0x4c14a2
mov byte [ebp - 0xd], 1
call fcn.0046bca7
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp + 8]
push eax
call fcn.004d041e
mov byte [ebp - 4], 3
call fcn.0046bce8
jmp 0x4c14a2
cmp eax, 0x251d
je 0x4c14a2
mov esi, eax
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x4c14c4
mov eax, dword [ebp - 0x1c]
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
call fcn.004276a2
and dword [ebp - 0x24], 0
and dword [ebp - 0x20], 0
and dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x4c14e6
mov eax, dword [ebp - 0x28]
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
call fcn.004276a2
and dword [ebp - 0x30], 0
and dword [ebp - 0x2c], 0
and dword [ebp - 0x28], 0
lea ecx, [ebp + 8]
call fcn.00410858
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x4c218b
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, 0x6b02f9
call fcn.00664608
sub esp, 0x160
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
xor ebx, ebx
mov dword [ecx], 0x6e4f40
push 0xf
pop edx
mov dword [ecx + 4], ebx
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x18], edx
mov byte [ecx + 4], bl
mov dword [ecx + 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ecx + 0x2c], ebx
mov dword [ecx + 0x30], edx
mov byte [ecx + 0x1c], bl
lea ebx, [ecx + 0x34]
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], edx
mov byte [ebx], al
lea eax, [ecx + 0x4c]
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
mov byte [eax], cl
lea eax, [ebp - 0x16c]
mov byte [ebp - 4], 3
push eax
mov dword [ebp - 0x16c], 0x11c
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x4c22ef
push dword [ebp - 0x160]
lea eax, [ebp - 0x2c]
push dword [ebp - 0x164]
push dword [ebp - 0x168]
push str._d._d._d
push eax
call fcn.004577d4
add esp, 0x14
movzx eax, byte [ebp - 0x52]
mov edi, str.unknown
mov byte [ebp - 4], 4
sub eax, 1
je 0x4c225e
sub eax, 1
je 0x4c2255
sub eax, 1
je 0x4c224c
mov dword [ebp - 0x14], edi
jmp 0x4c2265
mov dword [ebp - 0x14], str.server
jmp 0x4c2265
mov dword [ebp - 0x14], str.domaincontroller
jmp 0x4c2265
mov dword [ebp - 0x14], str.workstation
mov ecx, dword [ebp - 0x10]
push 7
pop esi
push esi
push str.Windows
lea ecx, [ecx + 4]
call fcn.00410407
mov ecx, dword [ebp - 0x10]
push dword [ebp - 0x14]
lea ecx, [ecx + 0x1c]
call fcn.00410450
lea eax, [ebp - 0x2c]
cmp ebx, eax
je 0x4c22a2
cmp dword [ebp - 0x18], 0x10
jb 0x4c2297
mov eax, dword [ebp - 0x2c]
push dword [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.00410407
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
movzx eax, word [ebp - 0x50]
test eax, eax
je 0x4c22ce
cmp eax, 6
je 0x4c22c7
cmp eax, 9
jne 0x4c22d6
mov edi, str.amd64
push 5
jmp 0x4c22d5
mov edi, str.itanium
jmp 0x4c22d6
mov edi, 0x6e4f88
push 3
pop esi
push esi
push edi
mov edi, dword [ebp - 0x10]
lea esi, [edi + 0x4c]
mov ecx, esi
call fcn.00410407
lea ecx, [ebp - 0x2c]
call fcn.00410858
jmp 0x4c232f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp - 0x10]
mov edi, str.unknown
push 7
pop esi
push esi
push edi
lea ecx, [ecx + 4]
call fcn.00410407
mov ecx, dword [ebp - 0x10]
push esi
push edi
lea ecx, [ecx + 0x1c]
call fcn.00410407
push esi
push edi
mov ecx, ebx
call fcn.00410407
push esi
push edi
mov edi, dword [ebp - 0x10]
lea esi, [edi + 0x4c]
mov ecx, esi
call fcn.00410407
push 0x10
pop edx
cmp dword [esi + 0x14], edx
jb 0x4c2339
mov esi, dword [esi]
cmp dword [ebx + 0x14], edx
jb 0x4c2340
mov ebx, dword [ebx]
lea ecx, [edi + 0x1c]
cmp dword [ecx + 0x14], edx
jb 0x4c234a
mov ecx, dword [ecx]
lea eax, [edi + 4]
cmp dword [eax + 0x14], edx
jb 0x4c2354
mov eax, dword [eax]
push esi
push ebx
push ecx
push eax
push str.OS_info:__name__s_release__s_version__s_machine__s
call fcn.00427b28
mov ecx, dword [ebp - 0xc]
add esp, 0x14
mov eax, edi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4c2721
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
xor edi, edi
push 0x2cc
mov dword [ebp - 8], edi
call fcn.004513b4
mov ebx, eax
push 0x6e2318
push 0x6cdffc
mov dword [ebp - 4], ebx
mov dword [ebx], 0x10007
call fcn.00455fd1
test eax, eax
je 0x4c2799
push esi
push dword [ebp + 8]
push edi
push 0x1fffff
call eax
mov esi, eax
test esi, esi
je 0x4c2798
push esi
call dword [sym.imp.KERNEL32.DLL_SuspendThread]
cmp eax, 0xffffffff
je 0x4c278a
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_GetThreadContext]
test eax, eax
je 0x4c278a
lea eax, [ebp - 8]
push eax
call fcn.004c23bf
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret 4
Function at 0x4d4967
Capabilities:
Set socket configuration

Disassembly:
push ebx
mov ebx, ecx
push ebp
mov ebp, dword [esp + 0xc]
mov ecx, ebp
push edi
lea edi, [ebx + 0xac]
push edi
call fcn.004bff68
xor edx, edx
test al, al
je 0x4d498e
cmp word [ebp + 0x10], dx
jne 0x4d4a93
cmp dword [ebx + 4], 0xffffffff
push esi
push 5
pop ecx
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
je 0x4d49a6
push edx
mov ecx, ebx
call fcn.0046c365
xor edx, edx
push edx
push edx
push 2
lea eax, [ebx + 0xac]
push eax
call fcn.004583c1
movzx eax, al
mov ecx, ebx
neg eax
sbb eax, eax
and eax, 0xffffffeb
add eax, 0x17
push eax
call fcn.0046d9de
cmp dword [ebx + 4], 0xffffffff
je 0x4d4a92
push ebp
mov ecx, ebx
call fcn.0046bf1b
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
jne 0x4d4a04
call edi
mov esi, eax
push esi
call fcn.0046a51c
push eax
push esi
push ebp
push str.UDP_port_bind_failed__A:___d___s
call fcn.004704f0
add esp, 0x10
jmp 0x4d4a1a
xor eax, eax
cmp word [ebp + 0x10], ax
jne 0x4d4a1a
mov ecx, ebx
call fcn.0046d781
mov word [ebx + 0xbc], ax
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [esp + 0x14]
push 4
push eax
push 0x1002
push 0xffff
push dword [ebx + 4]
mov ebp, 0x200000
mov dword [esp + 0x28], ebp
call esi
cmp eax, 0xffffffff
jne 0x4d4a58
call edi
push eax
push dword [esp + 0x18]
push str.UDP_setsockopt_SO_RCVBUF___d__failed:__d
call fcn.00470476
add esp, 0xc
push 4
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ebp
push eax
push 0x1001
push 0xffff
push dword [ebx + 4]
call esi
cmp eax, 0xffffffff
jne 0x4d4a8b
call edi
push eax
push dword [esp + 0x18]
push str.UDP_setsockopt_SO_SNDBUF___d__failed:__d
call fcn.00470476
add esp, 0xc
mov ecx, ebx
call fcn.0046d15e
pop esi
pop edi
pop ebp
pop ebx
ret 4

Function at 0x4d4e2d
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x80
push eax
lea eax, [ebp - 0x98]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4d4e80
push esi
push edi
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x18]
call fcn.004bfe7a
mov edi, dword [ebp + 0x18]
lea esi, [ebp - 0x18]
push 5
pop ecx
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x14
Function at 0x4d5253
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x1a0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1bc]
xor ebx, ebx
mov dword [esp + 0xc], ecx
mov word [esp + 0x25], bx
mov byte [esp + 0x24], bl
movzx eax, word [esi + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esp + 0x1c0]
movzx ebp, ax
test ecx, ecx
je 0x4d52ba
mov ebx, ecx
mov byte [esp + 0x27], 3
lea edx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4d5295
sub ebx, edx
lea eax, [esp + 0x29]
push ebx
push ecx
push eax
mov byte [esp + 0x34], bl
call fcn.006661f0
add esp, 0xc
mov word [esp + ebx + 0x29], bp
xor ebx, ebx
jmp 0x4d52eb
push esi
call fcn.004583c1
test al, al
je 0x4d52d7
mov eax, dword [esi + 0xc]
mov byte [esp + 0x27], 1
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], bp
jmp 0x4d52eb
push edi
mov byte [esp + 0x2b], 4
lea edi, [esp + 0x2c]
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 [esp + 0x3c], bp
pop edi
lea eax, [esp + 0x24]
mov ecx, eax
mov dword [esp + 0x18], eax
call fcn.004d538e
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x14], eax
add ecx, 0x12c
mov eax, dword [esp + 0x1b8]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1b4]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x130]
push eax
call fcn.0046d685
push ebx
push ebx
push dword [esp + 0x18]
lea eax, [esp + 0x138]
mov dword [esp + 0x18], ebx
push eax
push ebx
lea eax, [esp + 0x20]
push eax
push 2
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x1d0]
call dword [sym.imp.WS2_32.dll_WSASendTo]
mov esi, eax
test esi, esi
jne 0x4d5366
mov esi, dword [esp + 0xc]
or eax, 0xffffffff
cmp esi, eax
je 0x4d5382
lea ecx, [esp + 0x24]
call fcn.004d538e
cmp esi, eax
jg 0x4d537e
xor eax, eax
jmp 0x4d5382
sub esi, eax
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1a0
ret 0x14

Function at 0x4d555d
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
cmp byte [0x7bddb8], 0
je 0x4d5573
mov al, 1
leave
ret
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4d55a9
mov eax, dword [ebp - 0x190]
cmp al, 2
jne 0x4d55a3
shr eax, 8
cmp al, 2
jne 0x4d55a3
mov byte [0x7bddb8], 1
jmp 0x4d556f
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
leave
ret
Function at 0x4df9b5
Capabilities:
Encode data using xor

Disassembly:
push ebp
sub esp, 0x18
mov eax, 0x6b1344
call fcn.00664608
sub esp, 0xf4
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp + 0x18], esi
mov ebx, dword [esi + 0x39c]
call fcn.004dfb60
mov esi, dword [esi + 0x154]
lea edi, [ebp + 4]
push 5
pop ecx
mov dword [ebp], 0x32716572
add esi, 8
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x100]
call fcn.0045cbc9
and dword [ebp - 4], 0
lea eax, [ebp]
push 0x18
push eax
lea ecx, [ebp - 0x100]
call fcn.0045cb67
push 5
pop ecx
mov esi, eax
lea edi, [ebp - 0x74]
rep movsd dword es:[edi], dword [esi]
push 5
pop ecx
mov esi, ebx
lea edi, [ebp - 0x88]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
mov ecx, edi
mov eax, dword [ebx + ecx + 0x14]
xor dword [ebp + ecx - 0x74], eax
add ecx, 4
cmp ecx, 0x14
jb 0x4dfa1a
mov al, byte [0x791dc4]
mov esi, dword [ebp + 0x18]
mov ecx, esi
shr al, 2
not al
mov dword [ebp - 0x58], edi
and al, 1
mov dword [ebp - 0x60], edi
or al, 2
mov dword [ebp - 0x5c], edi
mov byte [ebp - 0x55], al
mov byte [ebx], al
lea eax, [ebp - 0x50]
push dword [esi + 0x154]
mov dword [ebp - 0x54], 0x44000000
push eax
call fcn.004d99a9
mov eax, dword [esi + 0x154]
mov ecx, esi
push 0x14
add eax, 8
push eax
call fcn.004e0faa
lea eax, [ebx + 0xc]
push eax
push 0x54
lea eax, [ebp - 0x60]
push eax
call fcn.00580a40
lea eax, [ebx + 0x114]
mov dword [ebx + 5], edi
push eax
lea ecx, [ebx + 1]
push 8
push ecx
mov dword [ecx], edi
call fcn.00580a40
push edi
push 0x7c
lea eax, [ebp - 0x88]
mov ecx, esi
push eax
call fcn.0046e5fa
lea ecx, [ebp - 0x100]
call fcn.00427b28
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add ebp, 0x1c
leave
ret

Function at 0x4e5b8d
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x6b1750
call fcn.00664608
sub esp, 0x1c
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x10], ebx
xor eax, eax
mov dword [ebx], 0x6ead30
mov dword [ebp - 4], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 8]
lea edi, [ebx + 0x14]
push 5
pop ecx
lea esi, [ebp + 0xc]
mov byte [ebp - 4], 1
rep movsd dword es:[edi], dword [esi]
xor edi, edi
mov dword [ebx + 0x10], eax
push edi
call fcn.0048918f
mov ecx, eax
mov esi, edx
mov eax, dword [0x7b6d28]
cdq
add ecx, eax
mov dword [ebx + 0x30], edi
mov dword [ebx + 0x28], ecx
adc esi, edx
mov dword [ebx + 0x34], edi
mov dword [ebx + 0x2c], esi
mov dword [ebx + 0x38], edi
mov dword [ebx + 0x3c], 0xea60
mov dword [ebx + 0x40], edi
mov dword [ebx + 0x44], edi
mov dword [ebx + 0x48], edi
lea esi, [ebx + 0x4c]
mov dword [esi], 0x6eac28
push str.share
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
call fcn.00466765
push esi
push eax
lea ecx, [ebx + 0x50]
mov byte [ebp - 4], 4
call fcn.00535af2
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call fcn.00427afc
push 0x1388
call fcn.004513b4
mov ecx, ebx
mov dword [ebx + 0x94], eax
mov dword [ebx + 0x90], edi
call fcn.004e6e04
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x4e803d
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x154], 0
jne 0x4e80c2
mov edx, 0x100
cmp dword [esi + 0x170], edx
jae 0x4e80c2
mov edi, dword [esp + 0x10]
lea eax, [esi + 0x158]
mov byte [esi + 0x154], 1
xor ebx, ebx
mov dword [esi + 0x158], ebx
mov dword [esi + 0x15c], ebx
push eax
mov dword [esi + 0x160], ebx
lea eax, [esi + 0x16c]
mov dword [esi + 0x164], ebx
mov ecx, dword [esi + 0x170]
sub edx, ecx
push eax
push edx
mov edx, dword [esi]
lea eax, [esi + 0x174]
add eax, ecx
mov dword [esi + 0x168], edi
push eax
mov ecx, esi
call dword [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4e80ca
push edi
mov byte [esi + 0x154], bl
call dword [sym.imp.KERNEL32.DLL_SetEvent]
mov al, 1
pop edi
pop esi
pop ebx
ret 4
xor al, al
jmp 0x4e80c4
Function at 0x4edf8d
Capabilities:
Get process heap flags

Disassembly:
mov eax, 0x6ab14e
call fcn.00664608
push ecx
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x10], ebx
xor edi, edi
push esi
mov dword [ebx], edi
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], edi
call fcn.00427a37
lea ecx, [ebx + 0x18]
mov dword [ebp - 4], edi
lea eax, [esi + 0x18]
mov dword [ecx], edi
push eax
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], edi
call fcn.00427a37
mov eax, dword [esi + 0x30]
lea edi, [ebx + 0x40]
mov dword [ebx + 0x30], eax
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x3c]
add esi, 0x40
mov dword [ebx + 0x3c], ecx
push 5
pop ecx
mov dword [ebx + 0x38], eax
mov eax, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4f38c8
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
push esi
mov esi, dword [esp + 8]
cmp edx, 4
jb 0x4f38ed
mov ecx, edx
shr ecx, 2
xor eax, dword [esi]
sub edx, 4
add esi, 4
rol eax, 0xd
sub ecx, 1
jne 0x4f38dd
test edx, edx
je 0x4f38ff
movzx ecx, byte [esi]
xor eax, ecx
inc esi
rol eax, 8
sub edx, 1
jne 0x4f38f1
pop esi
ret 8

Function at 0x4f4502
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x6b21fa
call fcn.00664608
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
xor eax, eax
mov dword [esi], 0x6ec8a8
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], 7
mov word [esi + 0xc], ax
mov ax, word [ebp + 8]
mov word [esi + 0x24], ax
mov dword [esi + 0x28], 0x6ec838
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x30], 1
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
xor eax, eax
mov dword [esi + 0x58], ebx
mov word [esi + 0x54], ax
mov byte [ebp - 4], 2
mov byte [esi + 0x5c], bl
call fcn.004f4c16
push eax
lea ecx, [esi + 0x60]
call fcn.0047a8b2
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], ebx
lea eax, [esi + 0x94]
push 2
push eax
call fcn.0065253b
pop ecx
pop ecx
lea ecx, [esi + 0xc4]
mov byte [ebp - 4], 5
mov dword [ebp + 8], ecx
call fcn.0044074b
lea eax, [esi + 0xd8]
push 2
push eax
call fcn.0065253b
pop ecx
pop ecx
lea ecx, [esi + 0x108]
call fcn.004f4624
mov dword [esi + 0x13c], ebx
xor eax, eax
mov ecx, 0x7c29a4
xchg dword [ecx], eax
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4