joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49ec80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x238
mov eax, dword [0x617560]
xor eax, esp
mov dword [esp + 0x234], eax
cmp dword [0x637b38], 0
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], str.getaddrinfo
mov dword [esp + 0x14], 0x49e6e0
mov dword [esp + 0x18], str.getnameinfo
mov dword [esp + 0x1c], 0x49e9c0
mov dword [esp + 0x20], str.freeaddrinfo
mov dword [esp + 0x24], fcn.0049e690
je 0x49ece5
movzx eax, word [esp + 0x24c]
mov eax, dword [eax*8 + 0x61b9dc]
jmp 0x49edfe
push 0x104
lea ecx, [esp + 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x49ede5
lea edx, [esp + 0x138]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.004e8afd
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call fcn.004e8b62
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [esp + 0x28]
push edx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x49ed5c
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x49eda8
push esi
call ebp
lea eax, [esp + 0x138]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call fcn.004e8afd
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call fcn.004e8b62
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
test esi, esi
je 0x49ede5
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x49eda8
push esi
call ebp
jmp 0x49ede5
xor edi, edi
lea ebx, [ebx]
mov ecx, dword [esp + edi*8 + 0x10]
push ecx
push esi
call ebx
test eax, eax
mov dword [esp + edi*8 + 0x14], eax
je 0x49eda3
add edi, 1
cmp edi, 3
jl 0x49edb0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x61b9dc], edx
mov dword [0x61b9e4], eax
mov dword [fcn.0049e690], ecx
movzx edx, word [esp + 0x24c]
mov eax, dword [edx*8 + 0x61b9dc]
mov dword [0x637b38], 1
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e3543
add esp, 0x238
ret 4
Function at 0x4a3e80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5bdc58
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x617560]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0xc]
lea edi, [esi + 0xc]
or ebx, 0xffffffff
push ebx
push eax
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], 0
cmp dword [esi + 8], ebx
jne 0x4a3ede
cmp eax, ebx
je 0x4a3f7d
mov ecx, dword [edi]
push ecx
jmp 0x4a3f77
mov edx, dword [esi]
mov eax, dword [edx]
mov edi, dword [eax]
mov eax, edi
mov ecx, esi
call fcn.004a4030
mov cl, byte [edi + 0x5d]
test cl, cl
je 0x4a3f6a
mov dl, byte [edi + 0x60]
test dl, dl
jne 0x4a3f6a
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.004a2800
test eax, eax
jle 0x4a3f6a
mov eax, dword [edi + 0x210]
mov ecx, dword [esp + 0x40]
mov dword [ecx], eax
mov eax, dword [esp + 0x20]
test eax, eax
mov ecx, dword [esp + 0x1c]
ja 0x4a3f2a
test ecx, ecx
jbe 0x4a3f3d
mov dword [esp + 0x28], eax
mov eax, edi
lea edx, [esp + 0x24]
mov dword [esp + 0x24], ecx
call fcn.004a3fa0
cmp dword [esp + 0x18], ebx
je 0x4a3f50
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 8
cmp dword [esp + 0x18], ebx
je 0x4a3f7d
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 8
Function at 0x4a4160
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x5bedeb
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
mov eax, dword [0x617560]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov eax, dword [esp + 0x84]
push 0x1c
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
call fcn.004c495b
add esp, 4
mov dword [esp + 0x84], eax
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x7c], ebx
je 0x4a41b6
mov esi, eax
call fcn.004a3d70
jmp 0x4a41b8
xor eax, eax
mov dword [esp + 0x7c], 0xffffffff
mov dword [edi + 4], eax
lea edx, [edi + 0x10]
mov dword [eax + 0x10], edx
mov ecx, dword [edi + 4]
lea eax, [edi + 0x14]
mov dword [ecx + 0x14], eax
mov edx, dword [edi + 4]
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0xc]
push ecx
push ebx
push edi
push 0x4a4270
push ebx
push ebx
mov dword [edx + 0x18], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [edi], eax
jne 0x4a424f
mov eax, 0xf
mov dword [esp + 0x10], vtable.CUDTException.0
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], 1
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x608ea0
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x24], eax
call fcn.004eb0bb
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x74
ret 4
Function at 0x4a4920
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5c1406
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x617560]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esp + 0x1c], ebx
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 byte [esi + 0x38], bl
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov byte [esp + 0x1c], 1
mov dword [esi + 0x5c], ebx
call fcn.004a6340
mov edi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x64], eax
mov byte [eax + 0x15], 1
mov eax, dword [esi + 0x64]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x64]
mov dword [eax], eax
mov eax, dword [esi + 0x64]
push ebx
mov dword [eax + 8], eax
push ebx
mov dword [esi + 0x68], ebx
push ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x6c], eax
call ebp
push ebx
push ebx
push ebx
mov dword [esi + 0x70], eax
call edi
push ebx
push ebx
push ebx
mov dword [esi + 0x40], eax
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x5c], eax
call ebp
mov dword [esi + 0x3c], eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x4a4b90
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x5c5ddb
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x617560]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov eax, dword [esp + 0x98]
mov ebp, dword [esp + 0x90]
mov ecx, dword [eax]
push edx
push eax
lea eax, [ebp + 4]
mov dword [ebp + 0x34], ecx
mov ecx, dword [esp + 0x9c]
push eax
call fcn.004a3960
push 8
call fcn.004c495b
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x4a4bf6
mov dword [eax], ebx
mov dword [eax + 4], ebx
jmp 0x4a4bf8
xor eax, eax
mov esi, dword [esp + 0x9c]
mov edi, eax
mov dword [ebp + 0x28], eax
call fcn.004a44f0
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0xa4]
push 8
mov dword [ebp + 0x2c], ecx
mov dword [ebp + 0x30], edx
call fcn.004c495b
add esp, 4
cmp eax, ebx
je 0x4a4c32
mov dword [eax], ebx
mov dword [eax + 4], ebx
jmp 0x4a4c34
xor eax, eax
push 0x14
mov dword [ebp + 0x24], eax
call fcn.004c495b
add esp, 4
mov esi, eax
cmp esi, ebx
je 0x4a4c61
push ebx
push ebx
push ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x10], eax
jmp 0x4a4c63
xor esi, esi
lea eax, [esp + 0x98]
push eax
push ebx
push ebp
push 0x4a4d10
push ebx
mov dword [esp + 0x9c], 0xffffffff
push ebx
mov dword [ebp + 0x48], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [ebp], eax
jne 0x4a4ce9
mov eax, 0xf
mov dword [esp + 0x1c], vtable.CUDTException.0
mov dword [esp + 0x20], 3
mov dword [esp + 0x24], 1
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x608ea0
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x30], eax
call fcn.004eb0bb
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret 0x18

Function at 0x4a8630
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x64
mov eax, dword [0x617560]
xor eax, esp
mov dword [esp + 0x5c], eax
push esi
mov eax, edx
push edi
mov edi, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0x67452301
mov dword [esp + 0x14], 0xefcdab89
mov dword [esp + 0x18], 0x98badcfe
mov dword [esp + 0x1c], 0x10325476
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4a8677
sub eax, esi
mov ecx, eax
test ecx, ecx
jle 0x4a869f
push 0
push ecx
lea esi, [esp + 0x10]
lea eax, [ecx*8]
push esi
call fcn.004ab320
add esp, 0xc
lea esi, [esp + 8]
call fcn.004ab3d0
mov ecx, dword [esp + 0x64]
pop edi
pop esi
xor ecx, esp
call fcn.004e3543
add esp, 0x64
ret
Function at 0x4a88c0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x90
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov esi, ecx
mov edi, eax
mov eax, dword [esi + 8]
push 2
push eax
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
jne 0x4a894e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
mov ecx, 0xf
mov dword [esp + 0x34], vtable.CUDTException.0
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
mov dword [esp + 0x78], ecx
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
mov dword [esp + 0x94], ecx
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
jne 0x4a893b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x608ea0
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x48], eax
call fcn.004eb0bb
cmp edi, ebx
je 0x4a899b
mov ecx, dword [esi + 8]
sub ecx, 2
neg ecx
sbb ecx, ecx
and ecx, 0xc
add ecx, 0x10
push ecx
push edi
push eax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x4a8a8d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, 3
mov eax, 1
lea esi, [esp + 0x34]
call fcn.004a8020
push 0x608ea0
mov edx, esi
push edx
call fcn.004eb0bb
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x18], eax
mov eax, dword [0x637b40]
cmp eax, ebx
mov dword [esp + 0x14], 1
mov dword [esp + 0x1c], 2
jne 0x4a89e8
push ebx
call fcn.0049ec80
mov dword [0x637b40], eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push str.0123456789_:
push ebx
call eax
mov edi, eax
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
cmp edi, ebx
je 0x4a8a2f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, 3
mov eax, 1
lea esi, [esp + 0x34]
call fcn.004a8020
push 0x608ea0
mov eax, esi
push eax
call fcn.004eb0bb
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x18]
mov eax, dword [esi + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x4a8a71
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, 3
mov eax, 1
lea esi, [esp + 0x34]
call fcn.004a8020
push 0x608ea0
mov ecx, esi
push ecx
call fcn.004eb0bb
mov eax, dword [0x637b44]
cmp eax, ebx
mov edi, dword [esp + 0x10]
jne 0x4a8a8a
push 2
call fcn.0049ec80
mov dword [0x637b44], eax
push edi
call eax
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x90
jmp fcn.004a8aa0
Function at 0x4a8aa0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x68
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
mov ecx, dword [esi + 0xc]
push 4
lea eax, [esi + 0x14]
push eax
push 0x1002
push 0xffff
push ecx
call edi
test eax, eax
jne 0x4a8b30
mov eax, dword [esi + 0xc]
push 4
lea edx, [esi + 0x10]
push edx
push 0x1001
push 0xffff
push eax
call edi
test eax, eax
jne 0x4a8b30
mov edx, dword [esi + 0xc]
push 4
lea ecx, [esp + 0xc]
push ecx
push 0x1006
push 0xffff
push edx
mov dword [esp + 0x1c], 1
call edi
test eax, eax
je 0x4a8b97
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, 3
mov eax, 1
lea esi, [esp + 0xc]
call fcn.004a8020
push 0x608ea0
mov eax, esi
push eax
call fcn.004eb0bb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ecx, ecx
cmp eax, 0xffffffff
mov edx, 0xf
mov dword [esp + 0xc], vtable.CUDTException.0
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 3
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], ecx
mov byte [esp + 0x20], cl
mov dword [esp + 0x50], edx
mov dword [esp + 0x4c], ecx
mov byte [esp + 0x3c], cl
mov dword [esp + 0x6c], edx
mov dword [esp + 0x68], ecx
mov byte [esp + 0x58], cl
jne 0x4a8b84
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x608ea0
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x20], eax
call fcn.004eb0bb
pop edi
pop esi
add esp, 0x68
ret

Function at 0x4a8ba0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ecx
mov ecx, dword [eax + 8]
sub ecx, 2
neg ecx
sbb ecx, ecx
and ecx, 0xc
add ecx, 0x10
lea edx, [esp]
push edx
mov edx, dword [eax + 0xc]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0xc]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
pop ecx
ret 4
Function at 0x4a8bd0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
test dword [esi + 0x14], 0x80000000
push ebx
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_htonl]
push edi
je 0x4a8c11
mov eax, dword [esi + 0x2c]
cdq
and edx, 3
add eax, edx
mov ebx, eax
sar ebx, 2
xor edi, edi
test ebx, ebx
jle 0x4a8c11
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + edi*4]
push edx
call ebp
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
mov dword [edx + edi*4], eax
add edi, 1
cmp edi, ebx
jl 0x4a8bf7
lea edi, [esi + 0x14]
mov ebx, 4
lea esp, [esp]
mov eax, dword [edi]
push eax
call ebp
mov dword [edi], eax
add edi, 4
sub ebx, 1
jne 0x4a8c20
mov ecx, dword [esi + 0x2c]
mov edx, dword [esp + 0x18]
add ecx, 0x10
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 8]
sub eax, 2
neg eax
push 0
sbb eax, eax
push 0
and eax, 0xc
add eax, 0x10
push eax
push edx
push 0
lea eax, [esp + 0x20]
push eax
mov eax, dword [ecx + 0xc]
push 2
lea edx, [esi + 0x24]
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSASendTo]
test eax, eax
jne 0x4a8c7c
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x14], ecx
jmp 0x4a8c84
mov dword [esp + 0x14], 0xffffffff
mov ebp, dword [sym.imp.WS2_32.dll_ntohl]
lea edi, [esi + 0x14]
mov ebx, 4
mov edx, dword [edi]
push edx
call ebp
mov dword [edi], eax
add edi, 4
sub ebx, 1
jne 0x4a8c92
test dword [esi + 0x14], 0x80000000
je 0x4a8cda
mov eax, dword [esi + 0x2c]
cdq
and edx, 3
add eax, edx
mov ebx, eax
sar ebx, 2
xor edi, edi
test ebx, ebx
jle 0x4a8cda
mov edi, edi
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + edi*4]
push edx
call ebp
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
mov dword [edx + edi*4], eax
add edi, 1
cmp edi, ebx
jl 0x4a8cc0
mov eax, dword [esp + 0x14]
pop edi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x4a8cf0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x66c
mov eax, dword [0x617560]
xor eax, esp
mov dword [esp + 0x668], eax
push ebx
push ebp
push edi
mov edi, ecx
mov ebx, edx
jmp 0x4a8d10
mov ecx, dword [edi + 8]
mov eax, dword [esi + 0x2c]
sub ecx, 2
push 0
add eax, 0x10
neg ecx
push 0
sbb ecx, ecx
and ecx, 0xc
lea edx, [esp + 0x18]
push edx
mov edx, dword [edi + 0xc]
push ebx
add ecx, 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
push 2
lea ebp, [esi + 0x24]
push ebp
push edx
mov dword [esp + 0x38], 0
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
test eax, eax
jne 0x4a8df1
mov eax, dword [esp + 0xc]
test eax, eax
jle 0x4a8df1
mov ecx, dword [esi + 0xc]
cmp dword [ecx], 0xfed8d0e6
jne 0x4a8e0f
cmp eax, 0x10
jb 0x4a8e0f
mov edx, dword [edi + 0xc]
mov eax, dword [ebx]
mov ebp, dword [ebp]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x18], edx
mov edx, dword [ebx + 8]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x28], edx
mov edx, dword [esi + 0x28]
push ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x28], ecx
call fcn.004f05f0
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x30]
push ecx
push edx
lea eax, [esp + ebp + 0x48]
push eax
call fcn.004f05f0
mov ecx, dword [esp + 0x24]
mov edx, dword [edi + 4]
push edx
lea eax, [esp + 0x34]
mov dword [esp + 0x4c], ecx
mov ecx, dword [edi]
push eax
call ecx
add esp, 0x20
jmp 0x4a8d10
pop edi
or eax, 0xffffffff
pop ebp
mov dword [esi + 0x2c], eax
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.004e3543
add esp, 0x66c
ret
mov ebp, dword [sym.imp.WS2_32.dll_ntohl]
add eax, 0xfffffff0
mov dword [esi + 0x2c], eax
lea edi, [esi + 0x14]
mov ebx, 4
mov edx, dword [edi]
push edx
call ebp
mov dword [edi], eax
add edi, 4
sub ebx, 1
jne 0x4a8e23
test dword [esi + 0x14], 0x80000000
je 0x4a8e6a
mov eax, dword [esi + 0x2c]
cdq
and edx, 3
add eax, edx
mov ebx, eax
sar ebx, 2
xor edi, edi
test ebx, ebx
jle 0x4a8e6a
nop
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + edi*4]
push edx
call ebp
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
mov dword [edx + edi*4], eax
add edi, 1
cmp edi, ebx
jl 0x4a8e50
mov ecx, dword [esp + 0x674]
mov eax, dword [esi + 0x2c]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e3543
add esp, 0x66c
ret
Function at 0x4abce0
Capabilities:
Encode data using xor

Disassembly:
push ecx
cmp eax, 0x20
push esi
jg 0x4abd93
mov esi, 1
mov ecx, eax
shl esi, cl
cmp edx, esi
jae 0x4abd93
mov ecx, 0x20
sub ecx, eax
xor esi, esi
shl edx, cl
mov ecx, esi
shl ecx, 0x18
mov eax, ecx
sar eax, 0x1f
add ecx, ecx
and eax, edx
xor eax, ecx
mov ecx, eax
sar ecx, 0x1f
and ecx, edx
add eax, eax
xor ecx, eax
mov eax, ecx
sar eax, 0x1f
add ecx, ecx
and eax, edx
xor eax, ecx
mov ecx, eax
sar ecx, 0x1f
and ecx, edx
add eax, eax
xor ecx, eax
mov eax, ecx
sar eax, 0x1f
add ecx, ecx
and eax, edx
xor eax, ecx
mov ecx, eax
sar ecx, 0x1f
and ecx, edx
add eax, eax
xor ecx, eax
mov eax, ecx
sar eax, 0x1f
add ecx, ecx
and eax, edx
xor eax, ecx
mov ecx, eax
sar ecx, 0x1f
and ecx, edx
add eax, eax
xor ecx, eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 4]
bswap eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 4]
mov dword [edi + esi*4], ecx
add esi, 1
cmp esi, 0x100
jl 0x4abd07
mov dword [edi + 0x400], 1
xor eax, eax
pop esi
pop ecx
ret
or eax, 0xffffffff
pop esi
pop ecx
ret

Function at 0x4c7596
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x4c75dc
call fcn.004c9922
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4c75dc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x4c761f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x4c7608
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4c7608
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4c761c
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4d1333
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4d136c
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00416710
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00449500
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]
Function at 0x4d2f40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x4d2f83
call fcn.004c9922
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4d2f83
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4d2f9e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004d2af7
test ebx, ebx
mov esi, eax
je 0x4d2f9c
test edi, edi
je 0x4d2f9c
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4d3f4e
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x4d3f57
xor eax, eax
jmp 0x4d3fc0
cmp dword [esp + 8], 0
jne 0x4d3f63
call fcn.004c700e
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.004ebc48
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4d3f9e
push dword [esi + 0x10]
call fcn.004eb98d
test eax, eax
pop ecx
jne 0x4d3f9e
mov esi, dword [esi + 0xc]
call fcn.004ead62
push esi
push dword [eax]
push 1
call fcn.004d3db3
push dword [esi + 0x10]
call fcn.004eb9bc
test eax, eax
pop ecx
je 0x4d3fbd
push dword [esi + 0x10]
call fcn.004eb8e1
push eax
call fcn.00404000
pop ecx
pop ecx
jmp 0x4d3f8c
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x4d3fc9
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x4d3fd3
call fcn.004c700e
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.004e7432
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x4d4000
mov esi, dword [esi + 0xc]
call fcn.004ead62
push esi
push dword [eax]
push 1
call fcn.004d3db3
pop esi
ret 8

Function at 0x4d713e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4d716c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d718a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d70a8
jmp 0x4d718a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d718a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004d70a8
test edi, edi
mov eax, edi
jne 0x4d7174
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x61d7f0]
test ecx, ecx
je 0x4d724d
jmp 0x4d713d
ret 8

Function at 0x4e3543
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x617560]
jne 0x4e354d
repz ret
jmp fcn.004eccdf