joyce8/EMBER2024-capa huggingface dataset:
Function at 0x485b60
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x6aae20]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
mov ebp, dword [esi]
push edi
mov edi, dword [esi + 0xcc]
push 1
push 0
push esi
or ebx, 0xffffffff
mov dword [esp + 0x18], 0x10
call fcn.004777d0
add esp, 0xc
test eax, eax
jle 0x485bc9
mov ecx, 0x3e8
cmp eax, ecx
jge 0x485ba0
mov ecx, eax
push ecx
push 0xffffffffffffffff
push edi
call fcn.0048df20
add esp, 0xc
cmp eax, 0xffffffff
je 0x485c61
test eax, eax
jne 0x485bee
push 1
push eax
push esi
call fcn.004777d0
add esp, 0xc
test eax, eax
jg 0x485b95
push str.Timeout_while_waiting_for_server_connect
push ebp
call fcn.004773a0
add esp, 8
pop edi
pop ebp
mov eax, 0x1c
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.005884bd
add esp, 0x18
ret
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x485c1e
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push edi
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp ebx, 0xffffffff
jne 0x485c31
push str.Error_accept__ing_server_connect
jmp 0x485c66
push str.Connection_accepted_from_server_n
push ebp
call fcn.00477310
push 1
push ebx
mov dword [esi + 0xcc], ebx
call fcn.00492d00
add esp, 0x10
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.005884bd
add esp, 0x18
ret
push str.Error_while_waiting_for_server_connect
push ebp
call fcn.004773a0
mov ecx, dword [esp + 0x28]
add esp, 8
pop edi
pop ebp
pop ebx
xor ecx, esp
mov eax, 0x1e
call fcn.005884bd
add esp, 0x18
ret
Function at 0x48df20
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
sub esp, 0x320
push ebp
mov ebp, dword [esp + 0x328]
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0x334]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
cmp ebp, 0xffffffff
jne 0x48df82
cmp edi, ebp
jne 0x48df82
mov eax, dword [esp + 0x338]
cmp eax, esi
je 0x48df76
jge 0x48df6f
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x320
ret
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x320
ret
push ebx
mov ebx, dword [esp + 0x33c]
cmp ebx, esi
jle 0x48df9d
mov esi, ebx
call fcn.0048fa10
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
xor ecx, ecx
xor eax, eax
or edx, 0xffffffff
mov dword [esp + 0x24], ecx
mov dword [esp + 0x128], eax
cmp ebp, 0xffffffff
je 0x48dfd1
mov ecx, 1
mov dword [esp + 0x12c], ebp
mov dword [esp + 0x128], ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ecx
mov edx, ebp
mov dword [esp + 0x22c], eax
cmp edi, 0xffffffff
je 0x48e017
mov dword [esp + 0x230], edi
mov dword [esp + 0x22c], 1
test ecx, ecx
jbe 0x48dffe
cmp dword [esp + eax*4 + 0x28], edi
je 0x48dffe
inc eax
cmp eax, ecx
jb 0x48dff3
cmp eax, ecx
jne 0x48e00f
cmp ecx, 0x40
jae 0x48e00f
mov dword [esp + eax*4 + 0x28], edi
inc dword [esp + 0x24]
xor eax, eax
cmp edi, edx
jbe 0x48e017
mov edx, edi
xor ecx, ecx
cmp ebx, eax
setl cl
lea edi, [esp + 0x18]
dec ecx
and ecx, edi
inc edx
mov ebp, ecx
mov dword [esp + 0x20], edx
jmp 0x48e032
xor eax, eax
cmp ebx, eax
jle 0x48e061
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
imul eax, eax, 0x3e8
mov edx, esi
sub edx, eax
imul edx, edx, 0x3e8
mov dword [esp + 0x1c], edx
jmp 0x48e06b
jne 0x48e06b
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push ebp
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x234]
push ecx
lea edx, [esp + 0x134]
push edx
push eax
call dword [sym.imp.WS2_32.dll_select]
mov edi, eax
cmp edi, 0xffffffff
jne 0x48e0cd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x48e0a4
cmp eax, 0x2714
jne 0x48e0cd
test ebx, ebx
jle 0x48e030
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.0048fa10
push edx
push eax
call fcn.0048fa40
mov esi, ebx
sub esi, eax
add esp, 0x10
test esi, esi
jg 0x48e030
pop ebx
test edi, edi
jl 0x48df62
je 0x48df76
mov edi, dword [esp + 0x330]
xor esi, esi
cmp edi, 0xffffffff
je 0x48e113
lea eax, [esp + 0x124]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x48e101
mov esi, 1
lea ecx, [esp + 0x20]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x48e113
or esi, 4
mov edi, dword [esp + 0x334]
cmp edi, 0xffffffff
je 0x48e146
lea edx, [esp + 0x228]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x48e134
or esi, 2
lea eax, [esp + 0x20]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x48e146
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x320
ret
Function at 0x48ee50
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov dword [eax], 0
call fcn.0048fa10
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0xc4]
push ecx
mov ecx, dword [esi + 0xc0]
push ecx
push edx
push eax
call fcn.0048fa40
mov ebx, dword [esp + 0x40]
add esp, 0x10
cmp eax, ebx
jg 0x48ef0a
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
lea ebx, [ebx]
mov edx, ebx
sub edx, eax
mov eax, dword [esp + 0x20]
push edx
push 0xffffffffffffffff
push eax
call fcn.0048df20
add esp, 0xc
test eax, eax
jle 0x48ef2d
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push edi
push ebp
push edx
call fcn.00477000
add esp, 0x10
cmp eax, 0x51
je 0x48eee9
test eax, eax
jne 0x48ef30
mov eax, dword [esp + 0x14]
cmp edi, eax
je 0x48ef17
test eax, eax
je 0x48ef2d
sub edi, eax
add ebp, eax
add dword [esp + 0x10], eax
call fcn.0048fa10
mov ecx, dword [esi + 0xc4]
push ecx
mov ecx, dword [esi + 0xc0]
push ecx
push edx
push eax
call fcn.0048fa40
add esp, 0x10
cmp eax, ebx
jle 0x48eea0
pop edi
pop esi
pop ebp
mov eax, 0x1c
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
add eax, edx
pop ebp
mov dword [ecx], eax
xor eax, eax
pop ebx
add esp, 8
ret
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x48faa0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x6aae20]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.005919e3
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x48fb05
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x48fb05
lea edx, [esp]
push edx
call dword [0x69b874]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.005884bd
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.005884bd
add esp, 0x108
ret
jmp 0x48faa0

Function at 0x48fb20
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x6aae20]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.005919e3
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x48fb05
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x48fb05
lea edx, [esp]
push edx
call dword [0x69b874]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.005884bd
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.005884bd
add esp, 0x108
ret
jmp 0x48faa0
Function at 0x492eb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.00589140
mov eax, dword [0x6aae20]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x3c], 0
test esi, esi
jne 0x492ef7
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.005884bd
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x48]
push eax
push esi
call fcn.00591b06
mov edi, eax
add esp, 8
mov eax, 8
call fcn.00589140
fldz
fstp qword [esp]
lea ecx, [esp + 0x50]
push 0x30
push ecx
call fcn.00492d20
add esp, 0x10
test edi, edi
jl 0x492ee0
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x492ee0
push 0x625304
push esi
call fcn.00589056
add esp, 8
mov dword [esp + 0x40], eax
test eax, eax
je 0x492fd1
jmp 0x492f54
mov eax, dword [esp + 0x40]
test ebx, ebx
jle 0x492f62
cmp ebx, 0x400
mov esi, ebx
jl 0x492f67
mov esi, 0x400
push eax
push esi
lea edx, [esp + 0x80]
push 1
push edx
call fcn.00588e90
mov edi, eax
add esp, 0x10
mov dword [esp + 0x44], edi
test edi, edi
jle 0x492fb5
fild dword [esp + 0x44]
mov eax, 8
call fcn.00589140
lea eax, [esp + 0x80]
fstp qword [esp]
push esi
push eax
call fcn.00492d20
add dword [esp + 0x4c], edi
add esp, 0x10
test ebx, ebx
jle 0x492f50
sub ebx, esi
test ebx, ebx
jg 0x492f50
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00588a65
lea edx, [esp + 0x7c]
push 0x400
push edx
call fcn.004ab450
add esp, 0xc
mov ecx, dword [esp + 0x47c]
mov eax, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005884bd
mov esp, ebp
pop ebp
ret
Function at 0x499d60
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x74
call fcn.00589140
mov eax, dword [0x6aae20]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x499ee5
call fcn.004ab960
test eax, eax
je 0x499ee5
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
mov edi, eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
mov ebx, eax
push edi
mov dword [esp + 0x48], ebx
call esi
push 0xa
push edi
mov dword [esp + 0x4c], eax
call esi
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x44]
push 0x10
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, eax
push esi
push ebx
mov dword [esp + 0x50], esi
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [esp + 0x50]
push ecx
push 0x18
push esi
mov dword [esp + 0x58], eax
call dword [sym.imp.GDI32.dll_GetObjectA]
movzx esi, word [esp + 0x60]
imul esi, dword [esp + 0x58]
imul esi, dword [esp + 0x5c]
push 0x2d5
push str..crypto_rand_rand_win.c
push esi
call fcn.0049bb90
add esp, 0xc
mov dword [esp + 0x3c], eax
test eax, eax
je 0x499ec6
mov ecx, dword [esp + 0x38]
add ecx, 0xfffffff0
xor ebx, ebx
mov dword [esp + 0x38], ecx
test ecx, ecx
jle 0x499eb9
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
push 0xcc0020
push ebx
push 0
push edi
push 0x10
push edx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x48]
push ecx
push esi
push edx
call dword [sym.imp.GDI32.dll_GetBitmapBits]
push 0
call fcn.004b8e10
mov ecx, dword [esp + 0x40]
push eax
push 0
lea eax, [esp + 0x74]
push eax
push esi
push ecx
call fcn.004b1a40
add esp, 0x18
mov eax, 8
call fcn.00589140
fldz
fstp qword [esp]
lea edx, [esp + 0x70]
push 0x14
push edx
call fcn.00492d20
add ebx, 0x10
add esp, 0x10
cmp ebx, dword [esp + 0x38]
jl 0x499e41
mov eax, dword [esp + 0x3c]
push eax
call fcn.0049bd40
mov ebx, dword [esp + 0x44]
add esp, 4
mov eax, dword [esp + 0x4c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
call esi
push edi
call esi
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005884bd
mov esp, ebp
pop ebp
ret
Function at 0x49a640
Capabilities:
Capture screenshot

Disassembly:
call fcn.00499f00
jmp fcn.00499d60

Function at 0x4a64f0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.0058dbdc
add esp, 0x18
test eax, eax
je 0x4a6513
cmp eax, 0xffffffff
jne 0x4a6515
xor eax, eax
ret

Function at 0x4a6550
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [eax + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x1a4]
test esi, esi
jne 0x4a6569
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.0048fa10
push edx
push eax
call fcn.0048fa40
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x19c], 0
je 0x4a65b6
mov eax, dword [ebx + 0xbc]
mov ecx, dword [ebx + 0xb8]
push eax
push ecx
call fcn.0048fa10
push edx
push eax
call fcn.0048fa40
mov ecx, dword [edi + 0x19c]
sub ecx, eax
add esp, 0x10
cmp esi, ecx
mov eax, ecx
jge 0x4a65b8
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x4a9570
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x58], ecx
lea eax, [ecx + 1]
ret
Function at 0x4aba40
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.00589140
mov eax, dword [0x6aae20]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x4abaa5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x4abaa5
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.0058d39b
add eax, 0x40
push eax
call fcn.005925eb
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.005884bd
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call fcn.005924b3
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4abb34
call fcn.004ab960
test eax, eax
je 0x4abb34
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.005884bd
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.005884bd
add esp, 0x108
ret
Function at 0x4eba20
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 4]
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
jle 0x4ebb03
push esi
mov esi, dword [esp + 0x14]
lea esp, [esp]
cmp edi, 3
movzx edx, byte [esi]
jl 0x4eba9e
movzx eax, byte [esi + 1]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 2]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
inc ecx
mov eax, edx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
jmp 0x4ebaf0
shl edx, 0x10
cmp edi, 2
jne 0x4ebaaf
movzx eax, byte [esi + 1]
shl eax, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
cmp edi, 1
jne 0x4ebadd
lea edx, [edi + 0x3c]
jmp 0x4ebaea
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
inc ecx
mov byte [ecx], 0x3d
sub edi, 3
inc ecx
add ebp, 4
add esi, 3
test edi, edi
jg 0x4eba40
pop esi
pop edi
mov eax, ebp
mov byte [ecx], 0
pop ebp
ret

Function at 0x4fef30
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
mov ebx, dword [esp + 0x10]
cmp ecx, dword [ebx + 4]
push esi
push edi
jge 0x4fef49
mov edi, ebx
mov ebx, eax
jmp 0x4fef4b
mov edi, eax
mov eax, dword [edi + 4]
mov esi, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jle 0x4fef61
push eax
push esi
call fcn.004a4bc0
add esp, 8
xor eax, eax
cmp dword [ebx + 4], eax
jle 0x4fef7d
mov edx, dword [edi]
mov ecx, dword [ebx]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [esi]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 4]
jl 0x4fef68
cmp eax, dword [edi + 4]
jge 0x4fef92
mov edx, dword [edi]
mov edx, dword [edx + eax*4]
mov ecx, dword [esi]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [edi + 4]
jl 0x4fef82
mov edi, dword [edi + 4]
mov dword [esi + 4], edi
test edi, edi
jle 0x4fefb6
mov eax, dword [esi]
lea eax, [eax + edi*4 - 4]
or ecx, 0xffffffff
mov edx, dword [eax]
sub eax, 4
test edx, edx
jne 0x4fefb6
add dword [esi + 4], ecx
cmp dword [esi + 4], edx
jg 0x4fefa5
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x506970
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2098
call fcn.00589140
mov eax, dword [0x6aae20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 1
mov eax, dword [ebp + 8]
add eax, 0xc
push eax
lea ecx, [ebp - 0xc]
call fcn.00510650
lea eax, [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x1010], 0
push 0xfff
push 0
lea eax, [ebp - 0x100f]
push eax
call fcn.00588eb0
add esp, 0xc
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x1000
lea edx, [ebp - 0x1010]
push edx
call fcn.005924b3
add esp, 0x10
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x1050], 0
push 0x3f
push 0
lea eax, [ebp - 0x104f]
push eax
call fcn.00588eb0
add esp, 0xc
lea eax, [ebp - 0x1058]
push eax
call fcn.00517bb0
add esp, 4
lea eax, [ebp - 0x1058]
push eax
call fcn.0055fd60
add esp, 4
push eax
push str._Y__m__d__X
push 0x40
lea ecx, [ebp - 0x1050]
push ecx
call fcn.00589fe7
add esp, 0x10
mov byte [ebp - 0x2058], 0
push 0xfff
push 0
lea eax, [ebp - 0x2057]
push eax
call fcn.00588eb0
add esp, 0xc
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x1050]
push ecx
push str.__s____s__r_n
lea edx, [ebp - 0x2058]
push edx
call fcn.0058906d
add esp, 0x10
lea eax, [ebp - 0x2058]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0xc]
call fcn.00510690
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005884bd
mov esp, ebp
pop ebp
ret
Function at 0x507190
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.005073d0
movzx eax, al
test eax, eax
je 0x5071b2
xor al, al
jmp 0x507334
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x20], 0
mov ecx, dword [ebp - 4]
add ecx, 8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp - 4]
call fcn.00507380
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x30]
add ecx, 1
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], ecx
mov eax, dword [ebp - 4]
add eax, 0x1c
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x512090
push 0
push 0
call fcn.0058dbdc
add esp, 0x18
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
push ecx
call fcn.00507340
add esp, 4
movzx edx, al
test edx, edx
je 0x50729d
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
push ecx
call fcn.00507340
add esp, 4
movzx edx, al
test edx, edx
je 0x50729d
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x18], ecx
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x24]
test ecx, ecx
jne 0x50729b
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00506cb0
add esp, 8
movzx eax, al
test eax, eax
je 0x50729b
mov ecx, dword [ebp - 4]
add ecx, 8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [edx + 0x14]
call eax
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
add ecx, 8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [edx + 0xc]
call eax
jmp 0x50724a
jmp 0x5072cb
cmp dword [ebp + 0xc], 0
je 0x5072cb
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x54], ecx
cmp dword [ebp - 0x54], 0
je 0x5072c4
push 1
mov ecx, dword [ebp - 0x54]
call fcn.00506d90
mov dword [ebp - 0x58], eax
jmp 0x5072cb
mov dword [ebp - 0x58], 0
mov ecx, dword [ebp - 4]
call fcn.00506cf0
movzx eax, al
test eax, eax
je 0x5072ee
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x24]
test edx, edx
je 0x5072ee
mov dword [ebp - 0x58], 1
jmp 0x5072f5
mov dword [ebp - 0x58], 0
mov al, byte [ebp - 0x58]
mov byte [ebp - 5], al
mov ecx, dword [ebp - 4]
add ecx, 8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [edx + 0x14]
call eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
push ecx
call fcn.00507340
add esp, 4
movzx edx, al
test edx, edx
je 0x507331
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
push ecx
call fcn.00507360
add esp, 4
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x509bf0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b04d8
mov eax, dword fs:[0]
push eax
sub esp, 0x1f4
mov eax, dword [0x6aae20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
push 0x6b148c
lea ecx, [ebp - 0x18]
call fcn.00508880
mov dword [ebp - 4], 0
movzx eax, byte [0x6b164d]
test eax, eax
je 0x509c63
mov dword [ebp - 0x200], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00508900
mov eax, dword [ebp - 0x200]
jmp 0x509d20
mov eax, 2
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x1b0]
push eax
movzx ecx, word [ebp - 0x20]
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x509ca8
mov dword [ebp - 0x1fc], 0xffffff9a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00508900
mov eax, dword [ebp - 0x1fc]
jmp 0x509d20
movzx eax, word [ebp - 0x1b0]
and eax, 0xff
movzx ecx, al
cmp ecx, 2
je 0x509ce3
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [ebp - 0x1f8], 0xffffff9a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00508900
mov eax, dword [ebp - 0x1f8]
jmp 0x509d20
cmp dword [ebp + 8], 0
je 0x509cfa
mov eax, dword [ebp + 8]
push eax
push 0x6b1650
call fcn.00589170
add esp, 8
mov byte [0x6b164d], 1
mov dword [ebp - 0x1f4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00508900
mov eax, dword [ebp - 0x1f4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005884bd
mov esp, ebp
pop ebp
ret 4