joyce8/EMBER2024-capa huggingface dataset:
Function at 0x469a51
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5b31c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 1
push 2
pop esi
push esi
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
mov word [ebp - 0x14], si
mov eax, dword [ebx + 8]
mov dword [ebp - 0x10], eax
movzx eax, word [ebx + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x18]
push eax
push 0x1006
push 0xffff
push edi
mov dword [ebp - 0x18], 0xbb8
call esi
push 4
lea eax, [ebp - 0x18]
push eax
push 0x1005
push 0xffff
push edi
call esi
push 0x10
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x469ad8
xor al, al
jmp 0x469add
mov dword [ebx + 0x58], edi
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054e63c
mov esp, ebp
pop ebp
ret

Function at 0x469d42
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
cmp dword [ebp + 0xc], esi
jle 0x469d74
mov eax, dword [ebp + 0xc]
push 0
sub eax, esi
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
push dword [ebx + 0x58]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x469d76
je 0x469d74
add esi, eax
cmp esi, dword [ebp + 0xc]
jl 0x469d50
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, ecx
push 0
push dword [ebp + 8]
call sub.MSVCR120.dll_memset
add esp, 0xc
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x58]
call dword [sym.imp.WS2_32.dll_recv]
pop esi
pop ebp
ret 8
Function at 0x46e73a
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x560792
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5b31c8]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x5b31c8]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
push 7
xor eax, eax
lea edi, [esp + 0x28]
xor edx, edx
mov dword [esp + 0x18], edx
pop ecx
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x40]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x8c]
push 3
pop ecx
mov byte [esp + 0x28], dl
mov byte [esp + 0x29], cl
mov eax, dword [eax]
test eax, eax
je 0x46e7a5
mov ecx, dword [eax + 0x1c]
mov ax, word [esi + 0x5c]
sub esp, 0x18
mov ebx, dword [esi + 0xf0]
mov edi, esp
mov word [esp + 0x44], ax
mov eax, dword [esi + 0x88]
mov byte [esp + 0x42], cl
mov dword [esp + 0x48], eax
mov byte [esp + 0x56], 0xff
mov dword [esp + 0x2c], edi
mov dword [edi + 0x10], edx
push 0x14
mov dword [esp + 0x6c], edx
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x46e7ec
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xbad_alloc_void_]
mov al, byte [esp + 0x34]
mov dword [ecx], 0x581058
mov dword [ecx + 4], 0x46ea53
mov byte [ecx + 8], al
mov al, byte [esp + 0x35]
or dword [esp + 0x68], 0xffffffff
mov byte [ecx + 9], al
mov dword [ecx + 0xc], esi
mov dword [edi + 0x10], ecx
lea ecx, [esp + 0x3c]
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x1c]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0054e63c
mov esp, ebp
pop ebp
ret
Function at 0x4744a6
Capabilities:
Create thread

Disassembly:
push 0xdc
mov eax, 0x561a3d
call fcn.0054f7e3
mov ebx, ecx
cmp dword [ebx + 0x78], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xdc], eax
jne 0x474518
lea esi, [ebx + 0x14]
mov ecx, esi
call fcn.00529310
xor eax, eax
cmp dword [ebx + 0x78], eax
jne 0x47450d
mov edi, dword [sym.imp.MSVCR120.dll__beginthreadex]
push eax
push eax
push ebx
push 0x4747d9
push eax
push eax
mov byte [ebx + 0xc], 1
call edi
mov dword [ebx + 0x78], eax
xor eax, eax
push eax
push eax
push ebx
push 0x475303
push eax
push eax
call edi
add esp, 0x30
mov dword [ebx + 0x7c], eax
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00529320
lea edi, [ebx + 0x14]
mov ecx, edi
mov dword [ebp - 0xe4], edi
call fcn.00529310
mov dword [ebp - 4], 1
lea ecx, [ebp - 0xd0]
mov eax, dword [ebp + 8]
and dword [ebp - 0xc0], 0
push 0xf
pop esi
push 0x10
push dword [ebp - 0xe0]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xbc], esi
mov byte [ebp - 0xd0], 0
call fcn.00401ce0
push dword [ebp - 0xdc]
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 2
call fcn.00407674
mov eax, dword [ebp + 0x18]
xor ecx, ecx
mov dword [ebp - 0xa0], eax
xor eax, eax
mov dword [ebp - 0x9c], ecx
mov byte [ebp - 0x98], cl
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x84], ecx
mov byte [ebp - 0x94], cl
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x6c], ecx
mov byte [ebp - 0x7c], cl
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], ecx
mov word [ebp - 0x5c], ax
push 0x30
push ecx
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
call sub.MSVCR120.dll_memset
lea eax, [ebx + 0x2c]
add esp, 0xc
mov esi, dword [eax]
cmp esi, dword [ebx + 0x30]
je 0x474620
cmp dword [ebp - 0xbc], 0x10
lea eax, [ebp - 0xd0]
push dword [ebp - 0xc0]
cmovae eax, dword [ebp - 0xd0]
lea ecx, [esi + 8]
push eax
push dword [esi + 0x18]
push 0
call fcn.0042b050
test eax, eax
je 0x474698
add esi, 0xc8
cmp esi, dword [ebx + 0x30]
jne 0x4745e2
lea eax, [ebx + 0x2c]
lea ecx, [ebp - 0xd8]
push ecx
mov ecx, eax
call fcn.00476bae
mov esi, dword [ebx + 0x30]
lea ecx, [esi - 0xa8]
call fcn.00488d64
mov dword [esi - 0x30], eax
lea ecx, [ebx + 0x40]
mov dword [esi - 0x2c], edx
mov eax, dword [ebx + 0x30]
or dword [eax - 0x18], 0xffffffff
lea eax, [ebp + 8]
mov esi, dword [ebx + 0x30]
push eax
call fcn.00476cbe
push dword [ebp - 0xe0]
push dword [ebp - 0xdc]
mov al, byte [eax]
mov byte [esi - 0x88], al
push 0x581390
mov ecx, ebx
call fcn.00476011
lea ecx, [ebp - 0xd8]
call fcn.004746ab
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.00529320
mov al, 1
call fcn.0054f792
ret 0x18
push dword [ebp - 0xe0]
push dword [ebp - 0xdc]
push 0x58137c
jmp 0x474671
Function at 0x4759e7
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x561c2f
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5b31c8]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x5b31c8]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], eax
mov byte [esp + 0x20], al
lea edi, [esi + 0x14]
mov dword [esp + 0x48], eax
mov ecx, edi
mov dword [esp + 0x1c], edi
mov bl, al
call fcn.00529310
mov byte [esp + 0x48], 1
mov esi, dword [esi + 0x2c]
jmp 0x475a80
mov ecx, dword [esp + 0x18]
call fcn.00401511
push eax
push dword [esp + 0x1c]
lea ecx, [esi + 0x20]
push dword [esi + 0x30]
push 0
call fcn.0040b8e1
test eax, eax
je 0x475a8e
add esi, 0xc8
mov eax, dword [esp + 0x14]
cmp esi, dword [eax + 0x30]
jne 0x475a5b
jmp 0x475b2a
cmp dword [esi + 0xb0], 0
jge 0x475aa0
and dword [esi + 0xb0], 0
mov bl, 1
mov ecx, dword [ebp + 0xc]
sub ecx, dword [esi + 0xa0]
mov eax, ecx
cdq
add dword [esi + 0xb8], eax
mov eax, dword [ebp + 0xc]
adc dword [esi + 0xbc], edx
add dword [esi + 0xb0], ecx
cdq
mov dword [esi + 0xa0], eax
mov eax, dword [esi + 0xb0]
mov dword [esi + 0xa4], edx
cdq
cmp edx, dword [esi + 0xac]
jl 0x475af0
jg 0x475ae7
cmp eax, dword [esi + 0xa8]
jb 0x475af0
or dword [esi + 0xb0], 0xffffffff
mov bl, 1
lea eax, [esi + 8]
lea ecx, [esp + 0x20]
cmp ecx, eax
je 0x475b05
push 0xffffffffffffffff
push 0
push eax
call fcn.00401bc2
test bl, bl
jne 0x475b1e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0xc0]
cmp eax, 0x7d0
jbe 0x475b2a
inc bl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xc0], eax
mov ecx, edi
mov byte [esp + 0x48], 0
call fcn.00529320
mov eax, dword [esp + 0x30]
test eax, eax
je 0x475b56
test bl, bl
je 0x475b54
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
call fcn.004757c3
mov eax, dword [esp + 0x30]
test eax, eax
push 0
push 1
lea ecx, [esp + 0x28]
setne bl
call fcn.00401c56
mov al, bl
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0054e63c
mov esp, ebp
pop ebp
ret 8
Function at 0x4763f0
Capabilities:
Create thread

Disassembly:
push 0x7c
mov eax, 0x561e0d
call fcn.0054f7e3
mov dword [ebp - 0x84], ecx
mov esi, dword [ebp + 0x10]
lea ebx, [ecx + 0x14]
mov ecx, ebx
mov dword [ebp - 0x88], ebx
call fcn.00529310
xor ecx, ecx
lea edi, [ebp - 0x7c]
mov dword [ebp - 4], ecx
xor eax, eax
stosd dword es:[edi], eax
push 0xf
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x70]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x5c], ax
pop eax
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
mov byte [ebp - 0x44], cl
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0x2c], cl
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x70]
mov byte [ebp - 4], 1
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x7c]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x84]
lea ecx, [esi + 0x8c]
call fcn.00476d7c
xor edi, edi
cmp dword [esi + 0xb0], edi
jne 0x4764b2
push edi
push edi
push esi
push 0x4764d4
push edi
push edi
call dword [sym.imp.MSVCR120.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x4764ac
mov dword [esi + 0xb0], eax
cmp dword [esi + 0xb0], edi
lea ecx, [ebp - 0x7c]
setne byte [ebp - 0x7d]
call fcn.00408c16
or dword [ebp - 4], 0xffffffff
mov ecx, ebx
call fcn.00529320
mov al, byte [ebp - 0x7d]
call fcn.0054f792
ret 0x10
Function at 0x47842c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x154], al
jne 0x478444
mov al, 1
jmp 0x478544
push ebx
test al, al
je 0x478508
mov dword [esi + 0x1e8], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
mov dword [esi + 0x1ec], eax
mov dword [esi + 0x1f0], ebx
mov dword [esi + 0x1f4], ebx
mov dword [esi + 0x1f8], ebx
mov dword [esi + 0x1fc], ebx
mov dword [esi + 0x200], ebx
mov dword [esi + 0x204], ebx
mov dword [esi + 0x208], ebx
mov dword [esi + 0x20c], ebx
mov dword [esi + 0x210], ebx
mov dword [esi + 0x214], ebx
mov dword [esi + 0x228], ebx
mov dword [esi + 0x22c], ebx
mov dword [esi + 0x2b8], ebx
mov dword [esi + 0x2bc], ebx
mov dword [esi + 0x2c0], ebx
mov dword [esi + 0x2c8], ebx
mov dword [esi + 0x2cc], ebx
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
push ebx
push ebx
mov dword [esi + 0x29c], eax
mov eax, dword [esi + 0x88]
push esi
push 0x478bba
push ebx
mov dword [esi], esi
push ebx
mov dword [eax + 0x30], esi
call dword [sym.imp.MSVCR120.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x478504
mov byte [esi + 0x154], 1
mov dword [esi + 0x298], eax
jmp 0x478541
xor al, al
jmp 0x478543
xor ebx, ebx
mov dword [esi + 0x1e8], ebx
mov eax, dword [esi + 0x88]
mov dword [esi], ebx
push 0xffffffffffffffff
mov dword [eax + 0x30], ebx
push dword [esi + 0x298]
mov byte [esi + 0x154], bl
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x298]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x298], ebx
mov al, 1
pop ebx
pop esi
pop ebp
ret 4
Function at 0x47dd3a
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov edi, ecx
call ebx
sub eax, dword [edi + 0xa8]
xor edx, edx
mov esi, 0x3e8
mov ecx, dword [ebp + 8]
div esi
mov dword [ecx], eax
cmp dword [edi + 0x8c], 0
jle 0x47dd91
mov esi, dword [edi + 0x8c]
call ebx
sub eax, dword [edi + esi*8 + 0x88]
add dword [edi + esi*8 + 0x8c], eax
call ebx
mov ecx, dword [edi + 0x8c]
mov esi, 0x3e8
mov dword [edi + ecx*8 + 0x88], eax
mov eax, dword [edi + 0x94]
xor edx, edx
div esi
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dword [ecx], eax
mov eax, dword [edi + 0x9c]
div esi
xor edx, edx
mov dword [ecx + 4], eax
mov eax, dword [edi + 0xa4]
div esi
pop edi
pop esi
mov dword [ecx + 8], eax
pop ebx
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x10], 0
je 0x47e060
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov edi, eax
sub edi, dword [esi + 0x14]
cmp edi, 0x64
jb 0x47e04f
call ebx
push 0
mov ebx, 0x3e8
mov dword [esi + 0x14], eax
push ebx
push dword [esi + 0x1c]
push dword [esi + 0x18]
call fcn.0054eb50
push 0
push edi
push edx
push eax
call fcn.0054eaa0
mov dword [esi + 0x28], eax
xor eax, eax
push eax
push ebx
push dword [esi + 0x24]
mov dword [esi + 0x2c], edx
push dword [esi + 0x20]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
call fcn.0054eb50
push 0
push edi
push edx
push eax
call fcn.0054eaa0
and dword [esi + 0x20], 0
and dword [esi + 0x24], 0
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edx
cmp byte [esi + 0xc], 0
je 0x47e059
mov byte [esi + 0xc], 0
mov ecx, esi
call fcn.0047e067
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4896c4
Capabilities:
Check if file exists

Disassembly:
push 0x10
mov eax, 0x5642cd
call fcn.0054f7b0
mov ebx, ecx
mov dword [ebp - 0x14], ebx
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
mov dword [ebx], eax
push 2
pop eax
push dword [ebp + 0xc]
mov word [ebp - 0x1c], ax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov dword [ebx + 4], eax
mov eax, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x18], ecx
mov dword [ebx + 0x1c], ecx
lea ecx, [ebx + 0x24]
mov dword [ebx + 8], eax
call fcn.0040764c
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebx + 0x50], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x54], eax
mov dword [ebx + 0x58], ecx
mov dword [ebx + 0x5c], ecx
mov esi, dword [ebp + 0x18]
lea edi, [ebx + 0x3c]
mov byte [ebp - 4], 1
xor eax, eax
mov byte [ebx + 0x60], cl
mov dword [ebx + 0x68], ecx
mov dword [ebx + 0x6c], ecx
mov dword [ebx + 0x70], ecx
mov dword [ebx + 0x74], ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x78]
stosd dword es:[edi], eax
lea esi, [ebx + 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebx + 0x8c], 1
cmp dword [esi + 0x14], 8
jb 0x489766
mov eax, dword [esi]
jmp 0x489768
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4897fc
push 0x44
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
mov edi, eax
pop ecx
mov dword [ebp + 0xc], edi
mov byte [ebp - 4], 2
test edi, edi
je 0x4897ab
lea ecx, [ebp + 8]
call fcn.004a5e57
mov byte [ebp - 4], 3
mov ecx, edi
mov dword [ebp - 0x10], 1
push dword [eax]
call fcn.004a7a2c
jmp 0x4897ad
xor eax, eax
mov dword [ebp - 4], 4
mov edi, dword [ebx + 0x5c]
mov dword [ebx + 0x5c], eax
test edi, edi
je 0x4897cd
mov ecx, edi
call fcn.004a7a9a
push edi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
pop ecx
mov dword [ebp - 4], 1
test byte [ebp - 0x10], 1
je 0x4897e7
mov eax, dword [ebp + 8]
test eax, eax
je 0x4897e7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [esi + 0x14], 8
jb 0x4897ef
mov esi, dword [esi]
mov ecx, dword [ebx + 0x5c]
push 1
push 0x21
push esi
call fcn.004a7af5
xor edx, edx
xorps xmm0, xmm0
movlpd qword [ebp + 0x10], xmm0
cmp dword [ebx + 0x5c], edx
je 0x489840
cmp dword [ebx + 0x8c], 2
mov ecx, dword [ebx + 0x50]
mov eax, dword [ebx + 0x54]
push edx
push 0x400
jne 0x48982c
mov dword [ebx + 0x68], edx
mov dword [ebx + 0x6c], edx
mov dword [ebx + 0x70], ecx
mov dword [ebx + 0x74], eax
add ecx, 0x3ff
adc eax, edx
push eax
push ecx
call fcn.0054eaa0
mov dword [ebp + 0x14], edx
jmp 0x489843
mov eax, dword [ebp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0x58], eax
call esi
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x90], eax
call esi
mov dword [ebx + 0x94], eax
mov eax, ebx
call fcn.0054f77e
ret 0x1c
Function at 0x48bb58
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0xc4], 0
je 0x48bbc7
xor ebx, ebx
cmp dword [esi + 0xbc], ebx
je 0x48bbc7
cmp byte [esi + 0xe0], bl
jne 0x48bbc7
cmp dword [esi + 0xdc], 0xc7
je 0x48bbc7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0xbc]
cmp eax, 0x1f4
jae 0x48bb9a
mov al, 1
jmp 0x48bbc9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0xbc]
cmp eax, 0x1388
jae 0x48bbc7
cmp dword [esi + 0xdc], 0x96
jg 0x48bbc3
cmp byte [esi + 0xe1], bl
je 0x48bbc3
mov bl, 1
mov al, bl
jmp 0x48bbc9
xor al, al
pop esi
pop ebx
ret
Function at 0x48c7e2
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x30
mov eax, 0x56485f
call fcn.0054f7e3
mov edi, ecx
mov esi, dword [edi]
mov ebx, dword [ebp + 8]
test esi, esi
je 0x48c9d6
lea edx, [esi + 0x208]
mov ecx, ebx
call fcn.005200a1
test al, al
je 0x48c9d6
cmp dword [esi + 0x370], 0xff
jne 0x48c9d6
inc dword [esi + 0x428]
xor edx, edx
mov dword [edi + 0x28], edx
cmp dword [edi + 8], edx
je 0x48c852
mov eax, dword [edi + 0x24]
mov dword [edi + 8], edx
mov ecx, dword [ebx + 0x10]
sub ecx, dword [edi + 0x18]
test eax, eax
jne 0x48c847
mov dword [edi + 0x24], ecx
jmp 0x48c852
imul eax, eax, 7
add eax, ecx
shr eax, 3
mov dword [edi + 0x24], eax
mov eax, dword [edi]
mov eax, dword [eax + 0x2ec]
cmp eax, 2
je 0x48c868
cmp eax, 3
jne 0x48c9d6
mov esi, 0x90
cmp word [ebx + 0x14], si
jne 0x48c960
mov eax, dword [ebx + 0x20]
mov ecx, edx
sub eax, dword [ebx + 0x1c]
sar eax, 4
mov dword [ebp - 0x34], ecx
test eax, eax
je 0x48c94c
mov eax, edx
mov dword [ebp - 0x30], edx
mov edx, dword [edi]
mov esi, dword [ebx + 0x1c]
add esi, eax
cmp dword [edx + 0x59c], 0
je 0x48c929
lea eax, [edx + 0x5b0]
mov ecx, eax
mov dword [ebp - 0x3c], eax
call fcn.00529310
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [esi + 4]
call fcn.00448272
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x48c8d8
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov eax, dword [edi]
mov esi, dword [eax + 0x59c]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebp - 0x38]
sub eax, dword [esi + 4]
push eax
mov eax, dword [edi]
push str._d___s
push str.response_seafile_source
push dword [eax + 0x59c]
call fcn.0051f43e
add esp, 0x14
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push 0
push 1
call fcn.00401c9b
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x3c]
call fcn.00529320
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
add eax, 0x10
inc ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0x20]
sub eax, dword [ebx + 0x1c]
sar eax, 4
cmp ecx, eax
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x30]
jb 0x48c892
mov esi, 0x90
mov eax, dword [edi]
mov ecx, dword [eax + 0x51c]
mov eax, dword [eax + 0x5d0]
mov dword [ecx + 0xd8], eax
mov ecx, dword [edi]
mov eax, dword [ebx + 0x18]
add dword [ecx + 0x4b0], eax
cmp dword [ebx + 0x18], 0x32
setge al
mov byte [edi + 0x4d], al
cmp dword [ebx + 0x18], 0x32
jge 0x48c97f
mov byte [edi + 4], 1
mov eax, dword [edi]
mov ecx, dword [eax + 0x51c]
mov eax, dword [edi + 0xc]
cmp eax, dword [ecx + 0xbc]
jge 0x48c998
cmp byte [edi + 0x4d], 0
jne 0x48c9b3
mov dword [edi + 0x20], 0x493e0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x1c], eax
test eax, eax
jne 0x48c9b3
mov dword [edi + 0x1c], 1
movzx eax, word [ebx + 0x14]
cmp ax, si
jne 0x48c9c6
push dword [ebx + 0x18]
push 0x582090
jmp 0x48c9cc
push eax
push 0x5820bc
push dword [edi]
call fcn.0048ff45
add esp, 0xc
call fcn.0054f792
ret 4
Function at 0x48e3bc
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x564d63
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x5b31c8]
xor eax, esp
mov dword [esp + 0x2d8], eax
push ebx
push esi
push edi
mov eax, dword [0x5b31c8]
xor eax, esp
push eax
lea eax, [esp + 0x2f0]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0x5b0]
mov ecx, esi
mov dword [esp + 0x18], esi
call fcn.00529310
xor ebx, ebx
mov dword [esp + 0x2f8], ebx
cmp dword [edi + 0x59c], ebx
jne 0x48e5b2
mov ecx, dword [edi + 0x520]
lea eax, [esp + 0x4c]
push eax
call fcn.0044854d
push str.network_log
mov edx, eax
mov byte [esp + 0x2fc], 1
lea ecx, [esp + 0x20]
call fcn.00452a07
pop ecx
push ebx
push 1
lea ecx, [esp + 0x54]
mov byte [esp + 0x300], 3
call fcn.00401c9b
cmp dword [esp + 0x30], 8
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x48e490
cmp dword [esp + 0x30], 8
lea eax, [esp + 0x1c]
push ebx
cmovae eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x57e2d0
lea edx, [esp + 0x20]
lea ecx, [esp + 0x80]
call fcn.0040a00f
lea ecx, [edi + 0x1b0]
mov byte [esp + 0x2fc], 4
push ecx
mov edx, eax
lea ecx, [esp + 0x6c]
call fcn.00496844
push str..p2p.log
mov edx, eax
mov byte [esp + 0x304], 5
lea ecx, [esp + 0x40]
call fcn.00452a07
add esp, 0xc
push ebx
push 1
lea ecx, [esp + 0x6c]
call fcn.00401c9b
push ebx
push 1
lea ecx, [esp + 0x84]
mov byte [esp + 0x300], 8
call fcn.00401c9b
push 0x24c
lea eax, [esp + 0x9c]
mov dword [esp + 0x98], ebx
push ebx
push eax
call sub.MSVCR120.dll_memset
push str.P2PPerformanceLog.bin
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x5c]
call fcn.0040a00f
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x48e534
mov eax, dword [eax]
lea ecx, [esp + 0x94]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push 0
push 1
lea ecx, [esp + 0x54]
mov ebx, eax
call fcn.00401c9b
cmp ebx, 0xffffffff
je 0x48e598
push 0x20
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
pop ecx
mov dword [esp + 0x14], eax
mov byte [esp + 0x2f8], 9
test eax, eax
je 0x48e589
cmp dword [esp + 0x48], 8
lea ecx, [esp + 0x34]
cmovae ecx, dword [esp + 0x34]
push ecx
push ecx
mov ecx, eax
call fcn.0051f36a
jmp 0x48e58b
xor eax, eax
push ebx
mov dword [edi + 0x59c], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 1
lea ecx, [esp + 0x3c]
call fcn.00401c9b
push 0
push 1
lea ecx, [esp + 0x24]
call fcn.00401c9b
or dword [esp + 0x2f8], 0xffffffff
mov ecx, esi
call fcn.00529320
mov ecx, dword [esp + 0x2f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2d8]
xor ecx, esp
call fcn.0054e63c
mov esp, ebp
pop ebp
ret