joyce8/EMBER2024-capa huggingface dataset:
Function at 0x500d10
Capabilities:
Create thread

Disassembly:
mov eax, 0x3a88
call fcn.00563290
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0xb7
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x2f4], ebx
rep stosd dword es:[edi], eax
mov ecx, 0xde7
lea edi, [esp + 0x2f8]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
mov ecx, 0x593d48
push eax
mov dword [esp + 0x10], ebx
call fcn.0042f930
lea ecx, [esp + 0x2f4]
push ecx
mov ecx, dword [0x5a223c]
call fcn.005503a0
cmp dword [esp + 0x18], ebx
je 0x500e5d
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
mov ecx, dword [esp + 0x2fc]
add esp, 4
cmp eax, ecx
jne 0x500e5d
cmp byte [esp + 0xf0], bl
je 0x500e36
cmp byte [esp + 0x30], bl
je 0x500e36
mov eax, dword [esi + 0x144]
cmp eax, ebx
je 0x500dde
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x10], 0x103
je 0x500dde
mov edx, dword [esi + 0x144]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x144], ebx
cmp dword [esi + 0x144], ebx
jne 0x500e27
push ebx
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
mov dword [esi + 0x148], eax
push str.Publisher:_starting
push ebx
push 0x596558
call fcn.004aa400
lea eax, [esp + 0x18]
push eax
push ebx
push esi
push 0x500e70
push 0x1388
push ebx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x24
mov dword [esi + 0x144], eax
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x3a88
ret
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], ebx
push ecx
mov ecx, 0x593d48
call fcn.0042f960
push str.Publisher:_invalid_FTP_settings__Tools__Options__Publisher_
push 1
push 0x596558
call fcn.004aa400
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x3a88
ret
Function at 0x504bba
Capabilities:
Create thread

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [esi]
mov dword [esp + 0x10], 0
test eax, eax
je 0x504bef
lea ecx, [esp + 0xc]
push ecx
push eax
call edi
cmp dword [esp + 0xc], 0x103
je 0x504bef
mov edx, dword [esi]
push edx
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x504c15
lea ecx, [esp + 0xc]
push ecx
push eax
call edi
cmp dword [esp + 0xc], 0x103
je 0x504c15
mov edx, dword [esi + 4]
push edx
call ebx
mov dword [esi + 4], 0
cmp dword [esi], 0
jne 0x504c39
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x504c40
push 0x3e800
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
pop edi
pop esi
pop ebx
add esp, 8
ret

Function at 0x505320
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
test edi, edi
je 0x50540c
mov eax, dword [edi + 0x9c]
test eax, eax
je 0x50540c
mov dword [esi + 0x3c8], 0
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 4]
test eax, eax
jne 0x505379
lea ecx, [esp + 0xc]
push ecx
push 0
push esi
push 0x504c60
push 0x3e800
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
mov edx, dword [esi + 8]
push 0xafc8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
mov dword [esp + 0xc], eax
je 0x5053ed
cmp eax, 0x80
je 0x5053ed
mov eax, dword [esi + 0x3d0]
test eax, eax
je 0x5053cc
mov eax, dword [edi + 0x1ec]
test eax, eax
je 0x5053cc
xor eax, eax
push edi
mov dword [edi + 0x208], eax
mov ecx, 0x593d48
mov dword [esi + 0x3e4], eax
call fcn.0042f070
pop edi
pop esi
ret 4
mov eax, 1
push edi
mov dword [edi + 0x208], eax
mov ecx, 0x593d48
mov dword [esi + 0x3e4], eax
call fcn.0042f070
pop edi
pop esi
ret 4
mov dword [edi + 0x208], 0
push edi
mov ecx, 0x593d48
mov dword [esi + 0x3e4], 0
call fcn.0042f070
pop edi
pop esi
ret 4
Function at 0x508270
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
mov edi, ecx
test ebx, ebx
je 0x508312
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esp + 0x14], 0
push 0xbb8
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x508312
push esi
push str._s:_timeout_on_stop
push 4
push 0x596558
call fcn.004aa400
mov eax, dword [edi + 4]
add esp, 0x10
cmp eax, 0xffffffff
je 0x5082d9
push 2
push eax
call sub.WS2_32.dll_shutdown
mov eax, dword [edi + 4]
push eax
call sub.WS2_32.dll_closesocket
mov dword [edi + 4], 0xffffffff
cmp dword [esp + 0x14], 4
jne 0x5082fa
push esi
push str._s:_terminated
push 4
push 0x596558
call fcn.004aa400
add esp, 0x10
push 0
push ebx
call ebp
mov ecx, 0x596558
call fcn.004aa7d0
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 5
mov dword [esp + 0x14], eax
jl 0x508294
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x508a90
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
sub esp, 0x114
mov eax, dword [esp + 0x11c]
push ebx
push esi
push edi
mov edi, dword [esp + 0x124]
mov ebx, ecx
test edi, edi
mov dword [esp + 0x1c], eax
jne 0x508abf
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x114
ret 0xc
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
je 0x508adf
push 2
push eax
call sub.WS2_32.dll_shutdown
mov ecx, dword [ebx + 4]
push ecx
call sub.WS2_32.dll_closesocket
mov dword [ebx + 4], 0xffffffff
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x20]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x581840
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x508b29
mov byte [eax], 0
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov esi, eax
jmp 0x508b2d
mov esi, dword [esp + 0x1c]
push 6
push 1
push 2
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
mov dword [ebx + 4], eax
jne 0x508b4e
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x114
ret 0xc
xor edx, edx
lea eax, [esp + 0x20]
mov dword [esp + 0xc], edx
push eax
mov dword [esp + 0x14], edx
mov word [esp + 0x10], 2
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x508bc3
lea ecx, [esp + 0x20]
push ecx
call sub.WS2_32.dll_gethostbyname
test eax, eax
jne 0x508bb6
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
je 0x508c2c
push 2
push eax
call sub.WS2_32.dll_shutdown
mov edx, dword [ebx + 4]
push edx
call sub.WS2_32.dll_closesocket
pop edi
mov dword [ebx + 4], 0xffffffff
pop esi
xor eax, eax
pop ebx
add esp, 0x114
ret 0xc
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [esp + 0x10], edx
jmp 0x508bc7
mov dword [esp + 0x10], eax
push esi
call sub.WS2_32.dll_htons
mov word [esp + 0xe], ax
mov eax, dword [esp + 0x12c]
test eax, eax
je 0x508bf8
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov ecx, dword [ebx + 4]
lea eax, [esp + 0xc]
push 0x10
push eax
push ecx
call sub.WS2_32.dll_connect
test eax, eax
je 0x508c3a
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
je 0x508c2c
push 2
push eax
call sub.WS2_32.dll_shutdown
mov edx, dword [ebx + 4]
push edx
call sub.WS2_32.dll_closesocket
mov dword [ebx + 4], 0xffffffff
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x114
ret 0xc
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x114
ret 0xc
Function at 0x50ab70
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
xor eax, eax
mov ecx, dword [esi + 4]
mov dword [esp + 4], eax
cmp ecx, 0xffffffff
je 0x50abbf
lea eax, [esp + 4]
push eax
push 0x4004667f
push ecx
call sub.WS2_32.dll_ioctlsocket
test eax, eax
je 0x50abbb
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x50abb6
push 2
push eax
call sub.WS2_32.dll_shutdown
mov ecx, dword [esi + 4]
push ecx
call sub.WS2_32.dll_closesocket
mov dword [esi + 4], 0xffffffff
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [esp + 4]
pop esi
pop ecx
ret

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

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], 0xa
cmp dword [edi + 4], 0xffffffff
je 0x50ac8e
mov esi, dword [esp + 0x18]
test esi, esi
je 0x50ac8e
mov ebx, dword [esp + 0x1c]
cmp ebx, 1
jl 0x50ac8e
test ebx, ebx
jle 0x50ac5b
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov eax, dword [edi + 4]
push 0
push 1
push esi
push eax
call sub.WS2_32.dll_recv
cmp eax, 1
je 0x50ac42
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x50ac6b
mov eax, dword [esp + 0x10]
dec eax
test eax, eax
mov dword [esp + 0x10], eax
jle 0x50ac6b
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x50ac57
mov al, byte [esi]
cmp al, 0xd
je 0x50ac57
cmp al, 0xa
je 0x50ac5b
push 1
dec ebx
push 0x5a1090
inc esi
call ebp
test ebx, ebx
jg 0x50ac0c
mov byte [esi], 0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 8
mov byte [esi], 0
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x50ac8e
push 2
push eax
call sub.WS2_32.dll_shutdown
mov ecx, dword [edi + 4]
push ecx
call sub.WS2_32.dll_closesocket
mov dword [edi + 4], 0xffffffff
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8

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

Disassembly:
push ecx
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 4]
push edi
mov edi, dword [esp + 0x18]
cmp eax, 0xffffffff
mov dword [esp + 0x10], 0xa
je 0x50ad49
test edi, edi
je 0x50ad49
mov esi, dword [esp + 0x1c]
test esi, esi
jl 0x50ad49
jle 0x50ad1c
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov eax, dword [ebx + 4]
push 0
push esi
push edi
push eax
call sub.WS2_32.dll_recv
cmp eax, 1
jge 0x50ad0c
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x50ad29
mov eax, dword [esp + 0x10]
dec eax
test eax, eax
mov dword [esp + 0x10], eax
jle 0x50ad29
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x50ad18
push eax
push 0x5a1090
sub esi, eax
add edi, eax
call ebp
test esi, esi
jg 0x50acd7
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 8
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
je 0x50ad49
push 2
push eax
call sub.WS2_32.dll_shutdown
mov ecx, dword [ebx + 4]
push ecx
call sub.WS2_32.dll_closesocket
mov dword [ebx + 4], 0xffffffff
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
Function at 0x50ad60
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 4]
push edi
mov edi, dword [esp + 0x18]
cmp eax, 0xffffffff
mov dword [esp + 0x10], 0xa
je 0x50ae09
test edi, edi
je 0x50ae09
mov esi, dword [esp + 0x1c]
test esi, esi
jl 0x50ae09
jle 0x50addc
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov eax, dword [ebx + 4]
push 0
push esi
push edi
push eax
call sub.WS2_32.dll_send
cmp eax, 1
jge 0x50adcc
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x50ade9
mov eax, dword [esp + 0x10]
dec eax
test eax, eax
mov dword [esp + 0x10], eax
jle 0x50ade9
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x50add8
push eax
push 0x5a1094
add edi, eax
sub esi, eax
call ebp
test esi, esi
jg 0x50ad97
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 8
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
je 0x50ae09
push 2
push eax
call sub.WS2_32.dll_shutdown
mov ecx, dword [ebx + 4]
push ecx
call sub.WS2_32.dll_closesocket
mov dword [ebx + 4], 0xffffffff
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8

Function at 0x50ae20
Capabilities:
Encode data using xor
Receive data
Receive data on socket

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x10], 0xa
mov eax, dword [esi + 4]
mov ebp, ebx
cmp eax, 0xffffffff
je 0x50af12
test ebx, ebx
je 0x50af12
test edi, edi
jl 0x50af12
jle 0x50aea4
mov eax, dword [esi + 4]
push 0
push edi
push ebp
push eax
call sub.WS2_32.dll_recv
cmp eax, 1
jge 0x50ae8c
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x50aef2
mov eax, dword [esp + 0x10]
dec eax
test eax, eax
mov dword [esp + 0x10], eax
jle 0x50aef2
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x50ae9c
push eax
push 0x5a1090
sub edi, eax
add ebp, eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test edi, edi
jg 0x50ae57
mov edi, dword [esp + 0x1c]
xor eax, eax
test edi, edi
jle 0x50aee5
mov edx, dword [esi + 0x1b0]
and edx, 0xf
mov cl, byte [edx + esi + 0x18c]
mov dl, byte [esi + 0x1ac]
add cl, dl
mov dl, byte [eax + ebx]
xor dl, cl
mov byte [eax + ebx], dl
mov ebp, dword [esi + 0x1b0]
movsx edx, dl
inc ebp
inc eax
cmp eax, edi
mov dword [esi + 0x1ac], edx
mov dword [esi + 0x1b0], ebp
jl 0x50aeaa
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 8
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x50af12
push 2
push eax
call sub.WS2_32.dll_shutdown
mov ecx, dword [esi + 4]
push ecx
call sub.WS2_32.dll_closesocket
mov dword [esi + 4], 0xffffffff
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
Function at 0x50b600
Capabilities:
Encode data using xor
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
mov edi, ecx
test ebp, ebp
mov edx, dword [edi + 0x1b4]
mov esi, dword [edi + 0x1b8]
je 0x50b700
mov ecx, dword [esp + 0x14]
test ecx, ecx
jl 0x50b700
jne 0x50b636
pop edi
pop esi
mov eax, 1
pop ebp
ret 8
xor eax, eax
push ebx
test ecx, ecx
jle 0x50b668
mov cl, byte [eax + ebp]
movsx ebx, cl
mov dword [esp + 0x14], ebx
mov ebx, esi
and ebx, 0xf
mov bl, byte [ebx + edi + 0x18c]
add bl, dl
mov edx, dword [esp + 0x14]
xor bl, cl
mov ecx, dword [esp + 0x18]
mov byte [eax + ebp], bl
inc esi
inc eax
cmp eax, ecx
jl 0x50b63d
mov eax, dword [edi + 4]
and esi, 0xf
mov dword [edi + 0x1b8], esi
cmp eax, 0xffffffff
mov dword [edi + 0x1b4], edx
mov esi, ecx
mov ebx, 0xa
je 0x50b6f7
test ecx, ecx
jle 0x50b6cb
mov eax, dword [edi + 4]
push 0
push esi
push ebp
push eax
call sub.WS2_32.dll_send
cmp eax, 1
jge 0x50b6b7
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x50b6d7
dec ebx
test ebx, ebx
jle 0x50b6d7
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x50b6c7
push eax
push 0x5a1094
add ebp, eax
sub esi, eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test esi, esi
jg 0x50b68a
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
ret 8
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x50b6f7
push 2
push eax
call sub.WS2_32.dll_shutdown
mov ecx, dword [edi + 4]
push ecx
call sub.WS2_32.dll_closesocket
mov dword [edi + 4], 0xffffffff
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
ret 8
pop edi
pop esi
xor eax, eax
pop ebp
ret 8

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

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 4]
push edi
cmp eax, 0xffffffff
mov esi, 1
mov dword [esp + 0x14], 0xa
lea edi, [esp + 0x10]
je 0x50b7ba
lea eax, [esp + 0x10]
test eax, eax
je 0x50b7ba
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov ecx, dword [ebx + 4]
push 0
push esi
push edi
push ecx
call sub.WS2_32.dll_recv
cmp eax, 1
jge 0x50b779
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x50b79a
mov eax, dword [esp + 0x14]
dec eax
test eax, eax
mov dword [esp + 0x14], eax
jle 0x50b79a
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x50b785
push eax
push 0x5a1090
sub esi, eax
add edi, eax
call ebp
test esi, esi
jg 0x50b744
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
and eax, 0xff
pop ebx
add esp, 8
ret
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
je 0x50b7ba
push 2
push eax
call sub.WS2_32.dll_shutdown
mov edx, dword [ebx + 4]
push edx
call sub.WS2_32.dll_closesocket
mov dword [ebx + 4], 0xffffffff
mov byte [esp + 0x10], 6
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
and eax, 0xff
pop ebx
add esp, 8
ret
Function at 0x50b7d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, 1
mov eax, dword [esi + 4]
mov dword [esp + 0x14], 0xa
cmp eax, 0xffffffff
lea ebx, [esp + 0x10]
je 0x50b8b2
lea eax, [esp + 0x10]
test eax, eax
je 0x50b8b2
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov ecx, dword [esi + 4]
push 0
push edi
push ebx
push ecx
call sub.WS2_32.dll_recv
cmp eax, 1
jge 0x50b83d
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x50b892
mov eax, dword [esp + 0x14]
dec eax
test eax, eax
mov dword [esp + 0x14], eax
jle 0x50b892
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x50b849
push eax
push 0x5a1090
sub edi, eax
add ebx, eax
call ebp
test edi, edi
jg 0x50b808
mov eax, dword [esi + 0x1b0]
mov bl, byte [esi + 0x1ac]
mov ecx, eax
pop edi
and ecx, 0xf
mov dl, byte [ecx + esi + 0x18c]
mov cl, byte [esp + 0xc]
add dl, bl
xor cl, dl
inc eax
mov byte [esp + 0xc], cl
mov dword [esi + 0x1b0], eax
mov eax, dword [esp + 0xc]
movsx ecx, cl
mov dword [esi + 0x1ac], ecx
pop esi
pop ebp
and eax, 0xff
pop ebx
add esp, 8
ret
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x50b8b2
push 2
push eax
call sub.WS2_32.dll_shutdown
mov edx, dword [esi + 4]
push edx
call sub.WS2_32.dll_closesocket
mov dword [esi + 4], 0xffffffff
mov byte [esp + 0x10], 6
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
and eax, 0xff
pop ebx
add esp, 8
ret
Function at 0x512180
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, ecx
mov ebp, dword [esp + 0x10]
mov eax, 0x280
push edi
mov ecx, dword [esi + 0x290]
sub eax, ecx
cmp ebx, eax
jbe 0x5121dc
test eax, eax
mov edi, ebp
lea ecx, [ecx + esi + 0xc]
je 0x5121c0
lea edx, [eax]
mov dword [esp + 0x14], edx
mov dl, byte [edi]
xor byte [ecx], dl
mov edx, dword [esp + 0x14]
inc edi
inc ecx
dec edx
mov dword [esp + 0x14], edx
jne 0x5121af
mov ecx, esi
add ebp, eax
sub ebx, eax
call fcn.00512520
mov ecx, dword [esi + 0x290]
mov eax, 0x280
sub eax, ecx
cmp ebx, eax
ja 0x51219f
test ebx, ebx
je 0x512212
mov eax, dword [esi + 0x290]
lea edi, [ebx]
lea eax, [esi + eax + 0xc]
mov cl, byte [ebp]
mov dl, byte [eax]
xor dl, cl
inc ebp
mov byte [eax], dl
inc eax
dec edi
jne 0x5121ec
mov eax, dword [esi + 0x290]
mov dword [esi + 0x28c], 0x280
add eax, ebx
mov dword [esi + 0x290], eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x512520
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebp, 0xa0
mov dword [esp + 0x10], edi
lea eax, [edi + 0xc]
mov esi, eax
xor ecx, ecx
xor edx, edx
mov ch, byte [eax + 3]
mov dl, byte [eax + 1]
mov cl, byte [eax + 2]
add eax, 4
shl ecx, 8
or ecx, edx
xor edx, edx
mov dl, byte [eax - 4]
add esi, 4
shl ecx, 8
or ecx, edx
dec ebp
mov dword [esi - 4], ecx
jne 0x512537
lea eax, [edi + 0x27c]
mov ecx, 0x28
mov edx, dword [eax]
mov ebx, dword [eax + 4]
mov ebp, dword [eax + 8]
mov esi, dword [eax + 0xc]
lea eax, [edi + 0x10]
jmp 0x51257e
mov esi, dword [esp + 0x20]
xor dword [eax - 4], edx
mov edx, dword [eax - 4]
xor dword [eax], ebx
mov ebx, dword [eax]
xor dword [eax + 4], ebp
mov ebp, dword [eax + 4]
xor dword [eax + 8], esi
mov esi, dword [eax + 8]
add eax, 0x10
dec ecx
mov dword [esp + 0x20], esi
jne 0x51257a
lea esi, [edi + 0xc]
mov ecx, 0x10
mov edi, 0x5a10f0
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x10]
lea eax, [ecx + 0x10]
mov ecx, 0x28
mov esi, dword [eax - 4]
add eax, 0x10
xor esi, edx
mov dword [eax - 0x14], esi
mov edi, dword [eax - 0x10]
xor edi, ebx
mov edx, esi
mov dword [eax - 0x10], edi
mov esi, dword [eax - 0xc]
xor esi, ebp
mov ebx, edi
mov dword [eax - 0xc], esi
mov edi, dword [eax - 8]
mov ebp, esi
mov esi, dword [esp + 0x20]
xor edi, esi
dec ecx
mov dword [eax - 8], edi
mov esi, edi
mov dword [esp + 0x20], esi
jne 0x5125b9
mov edx, dword [esp + 0x10]
mov ecx, 0x10
mov edi, 0x5a10f0
lea eax, [edx + 0xc]
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov esi, eax
mov edi, 0xa0
mov ecx, dword [esi]
add esi, 4
mov edx, ecx
mov byte [eax + 3], cl
shr edx, 0x18
mov byte [eax], dl
mov edx, ecx
shr edx, 0x10
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 8
mov byte [eax + 2], dl
add eax, 4
dec edi
jne 0x51260b
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword [eax + 0x290], 0
mov dword [eax + 0x28c], 0x40
pop ebx
add esp, 0x14
ret
Function at 0x518220
Capabilities:
Get file size

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
test edi, edi
je 0x518297
mov eax, dword [esi]
test eax, eax
je 0x51823f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 0
push 0x80
push 3
push 0
push 3
push bind
push edi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
test eax, eax
mov dword [esi], eax
je 0x518291
cmp eax, 0xffffffff
je 0x518291
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 4], eax
pop edi
mov eax, 1
pop esi
ret 4
mov dword [esi], 0
pop edi
xor eax, eax
pop esi
ret 4

Function at 0x5182d0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
mov esi, ecx
lea edx, [ebx + eax]
push edi
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x10]
add eax, ecx
mov edi, ebx
test ebx, ebx
mov dword [esp + 0x14], edx
je 0x5183b0
cmp dword [esi], 0
je 0x5183b0
test ecx, ecx
je 0x5183b0
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x51831a
mov ecx, dword [esi + 0x14]
lea ebp, [esi + 0x14]
cmp dword [esi + 0x10], ecx
jne 0x51834e
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
mov eax, dword [esi]
lea ebp, [esi + 0x14]
push 0
push ebp
push ecx
push edx
push eax
mov dword [esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5183b0
mov ecx, dword [ebp]
cmp ecx, 1
jl 0x51836d
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x14]
cmp dword [esi + 0x10], ecx
jge 0x518308
cmp edi, edx
jae 0x51837e
mov cl, byte [eax]
cmp cl, 0xa
je 0x51838b
mov byte [edi], cl
mov ecx, dword [esi + 0x10]
inc edi
inc eax
inc ecx
cmp ecx, dword [ebp]
mov dword [esi + 0x10], ecx
jl 0x518350
jmp 0x518308
cmp edi, ebx
mov byte [edi], 0
je 0x5183b0
mov eax, dword [esi + 0x18]
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov byte [edi], 0
mov eax, dword [esi + 0x18]
pop edi
pop esi
pop ebp
pop ebx
ret 8
cmp edi, ebx
jbe 0x518396
cmp byte [edi - 1], 0xd
jne 0x518396
dec edi
mov byte [edi], 0
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 0x10]
inc edx
inc ecx
mov dword [esi + 0x18], edx
mov dword [esi + 0x10], ecx
pop edi
pop esi
pop ebp
mov eax, edx
pop ebx
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
Function at 0x51add0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x100
push ebx
mov ebx, dword [esp + 0x108]
push ebp
push esi
test ebx, ebx
push edi
mov esi, ecx
jne 0x51adf6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x100
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
call edi
lea ebp, [esi + 0x18]
push ebx
push ebp
mov dword [esi + 0xa70], 1
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x51ae31
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x100
ret 4
mov ecx, esi
call fcn.0051c630
mov ecx, esi
call fcn.0051b070
push esi
call edi
cmp dword [esi + 0xa84], 1
jne 0x51aebb
push ebp
push 0x5965b8
push str._shistory_s_ticks.raw
lea eax, [esp + 0x1c]
push 0xff
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
lea ecx, [esp + 0x24]
push 0x581698
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 0x1c
test edi, edi
je 0x51aeb1
mov ecx, dword [esi + 0xa78]
test ecx, ecx
je 0x51aea7
mov eax, dword [esi + 0xa7c]
test eax, eax
jle 0x51aea7
lea edx, [eax + eax*4]
push edi
shl edx, 3
push 1
push edx
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [esi + 0xa84], 0
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call edi
push 0x3f
push ebx
push ebp
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov byte [esi + 0x57], 0
push esi
call edi
mov ecx, esi
call fcn.0051af00
mov ecx, esi
call fcn.0051bef0
mov ecx, esi
call fcn.0051dc70
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x100
ret 4