joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466933
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5ca1c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 1
push 0
push 0
push 0x11
push 2
pop eax
push eax
push eax
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x466969
xor al, al
jmp 0x466a3d
push 1
lea eax, [ebp - 0x15]
mov byte [ebp - 0x15], 1
push eax
push 0xfffffffffffffffb
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, dword [esi + 4]
jmp 0x4669ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2740
je 0x46699e
cmp eax, 0x2726
jne 0x466a4e
cmp ebx, 0xffff
jge 0x466a4e
inc ebx
push 2
pop eax
push 0
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htonl]
push ebx
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x466986
push 4
lea eax, [ebp - 0x1c]
mov dword [esi + 4], ebx
push eax
push 0x1001
mov ebx, 0xffff
mov dword [esi], edi
push ebx
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 0x1c], 0x8000
call edi
cmp eax, 0xffffffff
je 0x466a15
push 4
lea eax, [ebp - 0x1c]
push eax
push 0x1002
push ebx
push dword [esi]
call edi
xor ecx, ecx
lea eax, [ebp - 0x24]
push ecx
push ecx
push eax
push ecx
push ecx
push 4
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ecx
push eax
push 0x9800000c
push dword [esi]
call dword [sym.imp.WS2_32.dll_WSAIoctl]
xor eax, eax
cmp dword [esi], 0xffffffff
setne al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055fedc
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x466962

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5ca1c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push edi
mov edi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 0x10
push eax
push dword [ecx]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x466b17
xor al, al
jmp 0x466b3d
mov ecx, dword [ebp - 0x10]
and dword [ebp - 0x1c], 0
push 2
pop eax
push dword [ebp - 0x12]
mov word [ebp - 0x20], ax
mov eax, dword [ebp - 0x20]
mov dword [esi], eax
mov dword [esi + 4], ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [edi], eax
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0055fedc
mov esp, ebp
pop ebp
ret 8
Function at 0x466b4f
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x201c
call fcn.00560590
mov eax, dword [0x5ca1c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x2018], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x201c], ecx
lea ebx, [edi + 0xa]
cmp ebx, 0x2000
jle 0x466b8f
xor al, al
jmp 0x466c15
mov eax, dword [eax + 4]
push dword [ebp + 0xc]
mov dword [ebp - 0x2004], 0x1000000
mov dword [ebp - 0x2000], eax
call dword [sym.imp.WS2_32.dll_htons]
push edi
push dword [ebp - 0x201c]
mov word [ebp - 0x1ffc], ax
lea eax, [ebp - 0x1ffa]
push eax
call sub.MSVCR120.dll_memcpy
mov edi, dword [ebp - 0x2018]
add esp, 0xc
mov ax, word [edi + 8]
mov word [ebp - 0x2014], ax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x2010], eax
movzx eax, word [edi + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
mov word [ebp - 0x2012], ax
lea eax, [ebp - 0x2014]
push eax
push 0
push ebx
lea eax, [ebp - 0x2004]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
setne al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0055fedc
mov esp, ebp
pop ebp
ret 0x10

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call fcn.00560590
mov eax, dword [0x5ca1c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x2018], eax
lea eax, [ebp - 0x201c]
push eax
lea eax, [ebp - 0x2014]
mov dword [ebp - 0x201c], 0x10
push eax
push 0
push 0x2000
lea eax, [ebp - 0x2004]
push eax
push dword [ecx]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov esi, eax
test esi, esi
jle 0x466d03
cmp esi, 0xa
jl 0x466d03
cmp byte [ebp - 0x2004], 0
jne 0x466d03
cmp byte [ebp - 0x2003], 0
jne 0x466d03
cmp byte [ebp - 0x2002], 0
jne 0x466d03
cmp byte [ebp - 0x2001], 1
jne 0x466d03
mov ecx, dword [ebp - 0x2000]
and dword [ebp - 0x2020], 0
push 2
pop eax
push dword [ebp - 0x1ffc]
mov word [ebp - 0x2024], ax
mov eax, dword [ebp - 0x2024]
mov dword [edi], eax
mov dword [edi + 4], ecx
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [edi + 8], ax
add esi, 0xfffffff6
cmp esi, dword [ebx]
lea eax, [ebp - 0x1ffa]
cmovg esi, dword [ebx]
push esi
push eax
push dword [ebp - 0x2018]
call sub.MSVCR120.dll_memcpy
add esp, 0xc
mov dword [ebx], esi
mov al, 1
jmp 0x466d05
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055fedc
mov esp, ebp
pop ebp
ret 0xc
Function at 0x466e01
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 [0x5ca1c8]
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 0x466e88
xor al, al
jmp 0x466e8d
mov dword [ebx + 0x58], edi
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055fedc
mov esp, ebp
pop ebp
ret

Function at 0x4670f2
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 0x467124
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 0x467126
je 0x467124
add esi, eax
cmp esi, dword [ebp + 0xc]
jl 0x467100
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x46712c
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 0x473002
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5732da
mov eax, dword fs:[0]
push eax
sub esp, 0x878
mov eax, dword [0x5ca1c8]
xor eax, esp
mov dword [esp + 0x870], eax
push ebx
push esi
push edi
mov eax, dword [0x5ca1c8]
xor eax, esp
push eax
lea eax, [esp + 0x888]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x24]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x80]
push 0x800
push eax
mov dword [esp + 0x2c], esi
call fcn.00533ee6
push ebx
push 2
lea eax, [esp + 0x20]
mov dword [esp + 0x898], ebx
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], 0x34
call fcn.00533b41
lea eax, [edi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x473096
mov eax, dword [eax]
push ebx
push 0x10
push eax
lea ecx, [esp + 0x30]
call fcn.00533b41
mov ecx, dword [edi]
call fcn.004476bb
push ebx
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x28]
push 4
lea eax, [esp + 0x20]
push eax
call fcn.00533b41
push ebx
mov byte [esp + 0x18], bl
lea eax, [esp + 0x18]
xor ebx, ebx
lea ecx, [esp + 0x28]
inc ebx
push ebx
push eax
call fcn.00533b41
push 0
push ebx
lea eax, [esp + 0x1c]
mov byte [esp + 0x1c], bl
push eax
lea ecx, [esp + 0x30]
call fcn.00533b41
push 0
push 4
lea eax, [esp + 0x20]
mov dword [esp + 0x20], esi
push eax
lea ecx, [esp + 0x30]
call fcn.00533b41
push dword [esp + 0x1c]
mov ecx, edi
call fcn.004738c0
mov esi, eax
test esi, esi
je 0x4731ce
lea eax, [esp + 0x64]
push eax
lea ecx, [esi + 4]
call fcn.0045022a
mov byte [esp + 0x890], bl
cmp dword [eax + 0x14], 8
jb 0x473132
mov eax, dword [eax]
push dword [esi + 0x24]
push dword [esp + 0x24]
push dword [esi + 0xc]
push eax
push dword [esp + 0x2c]
lea eax, [esp + 0x60]
push str._peerID:_d_peerAddr:_ls:_d_blockID:_d_timeoutCount:_d_
push str.RequestBlock
push eax
call fcn.0047297b
add esp, 0x20
mov byte [esp + 0x890], 2
cmp dword [eax + 0x14], 8
jb 0x473168
mov eax, dword [eax]
push eax
push ecx
mov ecx, edi
call fcn.00473de3
push 0
push ebx
lea ecx, [esp + 0x54]
call fcn.00401d04
push 0
push ebx
lea ecx, [esp + 0x6c]
mov byte [esp + 0x898], 0
call fcn.00401d04
mov ecx, dword [esp + 0x20]
test ecx, ecx
jne 0x4731a4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x34], eax
jmp 0x4731b5
mov eax, dword [edi + 0x58]
dec eax
cmp ecx, eax
jne 0x4731b5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x38], eax
push dword [esp + 0x3c]
lea eax, [esp + 0x80]
push eax
push ecx
push esi
mov ecx, edi
call fcn.00473bf1
test al, al
jne 0x4731d0
xor bl, bl
mov al, bl
mov ecx, dword [esp + 0x888]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x870]
xor ecx, esp
call fcn.0055fedc
mov esp, ebp
pop ebp
ret 8
Function at 0x473247
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x573310
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x5ca1c8]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x5ca1c8]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [ebp + 0xc], 0
je 0x4733f7
push dword [ebp + 0xc]
lea ecx, [esp + 0x28]
push dword [ebp + 8]
call fcn.00533f37
xor ebx, ebx
lea eax, [esp + 0x20]
push ebx
push 2
pop edi
push edi
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x8c], ebx
call fcn.00533ae5
push ebx
push 0x10
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x30]
call fcn.00533ae5
lea edx, [esi + 4]
cmp dword [edx + 0x14], 0x10
jb 0x4732d1
mov edx, dword [edx]
lea eax, [esp + 0x60]
mov ecx, ebx
mov eax, dword [eax + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x4733df
inc ecx
lea eax, [esp + 0x60]
cmp ecx, 4
jne 0x4732d7
push ebx
push edi
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x91
push eax
lea ecx, [esp + 0x30]
call fcn.00533ae5
mov eax, 0x90
cmp word [esp + 0x18], ax
jne 0x4733df
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x24]
push 1
push ebx
push ebx
call dword [eax + 0x10]
cmp edx, dword [esp + 0x40]
jg 0x4733df
jge 0x4733d5
push ebx
push 4
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x30]
call fcn.00533ae5
mov ecx, dword [esp + 0x1c]
test ecx, ecx
js 0x4733df
xor eax, eax
lea edi, [esp + 0x54]
stosd dword es:[edi], eax
push 2
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x5c]
pop edi
push ebx
push 4
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x2c]
push eax
mov word [esp + 0x60], di
call fcn.00533ae5
push ebx
push edi
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x30]
call fcn.00533ae5
push ebx
push 1
lea eax, [esp + 0x1f]
push eax
lea ecx, [esp + 0x30]
call fcn.00533ae5
mov al, byte [esp + 0x17]
mov ecx, esi
mov byte [esp + 0x5e], al
movzx eax, al
push eax
movzx eax, word [esp + 0x60]
push eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x5c]
call fcn.00472ddb
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x24]
push 1
push ebx
push ebx
call dword [eax + 0x10]
cmp edx, dword [esp + 0x40]
jl 0x473334
jg 0x4733df
cmp eax, dword [esp + 0x3c]
jb 0x473334
or dword [esp + 0x80], 0xffffffff
mov dword [esp + 0x24], 0x592738
mov dword [esp + 0x24], 0x59271c
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0055fedc
mov esp, ebp
pop ebp
ret 8
Function at 0x4736af
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5733c0
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x5ca1c8]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
mov eax, dword [0x5ca1c8]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 0x10]
lea ecx, [esp + 0x24]
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push esi
push ebx
mov dword [esp + 0x28], eax
call fcn.00533f37
and dword [esp + 0xb0], 0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
call fcn.00440d5a
push 0
push 0x10
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x30]
call fcn.00533ae5
push 0
push 4
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x30]
call fcn.00533ae5
push 0
push 1
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x30]
call fcn.00533ae5
push 0
push 4
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
call fcn.00533ae5
push 0
push 2
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x30]
call fcn.00533ae5
cmp byte [esp + 0x20], 0
je 0x4737c7
lea eax, [esi - 0x1d]
push eax
lea eax, [ebx + 0x1d]
push eax
lea ecx, [esp + 0x54]
call fcn.00533f37
xor ebx, ebx
mov byte [esp + 0xb0], 1
push ebx
push 4
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x58]
call fcn.00533ae5
push ebx
push 2
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x58]
call fcn.00533ae5
mov byte [esp + 0xb0], bl
push dword [esp + 0x1c]
mov ecx, edi
call fcn.004738c0
mov esi, eax
test esi, esi
je 0x47389a
mov ecx, dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
test ecx, ecx
jne 0x4737fa
call ebx
sub eax, dword [esi + 0x34]
mov dword [esi + 0x34], eax
mov byte [esi + 0x2c], 1
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 0x58]
dec eax
cmp ecx, eax
jne 0x47380e
call ebx
sub eax, dword [esi + 0x38]
mov dword [esi + 0x38], eax
mov byte [esi + 0x2d], 1
lea eax, [esp + 0x4c]
xor ebx, ebx
push eax
lea ecx, [esi + 4]
mov byte [edi + 0x60], bl
call fcn.0045022a
mov ecx, eax
mov byte [esp + 0xb0], 2
cmp dword [ecx + 0x14], 8
jb 0x473832
mov ecx, dword [ecx]
mov eax, dword [esp + 0x20]
movzx eax, al
push eax
movzx eax, word [esp + 0x14]
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0x84]
push dword [esi + 0xc]
push ecx
push dword [esp + 0x30]
push str._peerID:_d_peerAddr:_ls:_d_blockID:_d_blockSize:_d_useHttp:_d_
push str.BlockFromSource
push eax
call fcn.0047297b
add esp, 0x24
mov byte [esp + 0xb0], 3
cmp dword [eax + 0x14], 8
jb 0x473876
mov eax, dword [eax]
push eax
push ecx
mov ecx, edi
call fcn.00473de3
push ebx
push 1
lea ecx, [esp + 0x80]
call fcn.00401d04
push ebx
push 1
lea ecx, [esp + 0x54]
call fcn.00401d04
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.0055fedc
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47402d
Capabilities:
Create thread

Disassembly:
push 0
mov eax, 0x5734b0
call fcn.0056357c
mov esi, ecx
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x10]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 4], eax
lea eax, [ebp + 0xc]
push eax
call fcn.0040265f
push ebx
push ebx
push esi
push 0x47408e
push ebx
push ebx
mov byte [esi], bl
call dword [sym.imp.MSVCR120.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x474070
mov dword [esi + 8], eax
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004026eb
lea ecx, [ebp + 0xc]
call fcn.004026eb
mov al, bl
call fcn.0056354a
ret 0x1c
Function at 0x475e8c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x573977
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5ca1c8]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x5ca1c8]
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 0x475ef7
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 0x475f3e
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xbad_alloc_void_]
mov al, byte [esp + 0x34]
mov dword [ecx], 0x59550c
mov dword [ecx + 4], 0x4761a5
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.0055fedc
mov esp, ebp
pop ebp
ret
Function at 0x47bb30
Capabilities:
Create thread

Disassembly:
push 0xdc
mov eax, 0x574bf3
call fcn.005635af
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 0x47bba2
lea esi, [ebx + 0x14]
mov ecx, esi
call fcn.0053a750
xor eax, eax
cmp dword [ebx + 0x78], eax
jne 0x47bb97
mov edi, dword [sym.imp.MSVCR120.dll__beginthreadex]
push eax
push eax
push ebx
push 0x47be63
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 0x47c98d
push eax
push eax
call edi
add esp, 0x30
mov dword [ebx + 0x7c], eax
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0053a760
lea edi, [ebx + 0x14]
mov ecx, edi
mov dword [ebp - 0xe4], edi
call fcn.0053a750
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.00401d49
push dword [ebp - 0xdc]
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 2
call fcn.0040763f
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 0x47bcaa
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.0042c3a4
test eax, eax
je 0x47bd22
add esi, 0xc8
cmp esi, dword [ebx + 0x30]
jne 0x47bc6c
lea eax, [ebx + 0x2c]
lea ecx, [ebp - 0xd8]
push ecx
mov ecx, eax
call fcn.0047e2ac
mov esi, dword [ebx + 0x30]
lea ecx, [esi - 0xa8]
call fcn.00491b2e
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.0047e3b0
push dword [ebp - 0xe0]
push dword [ebp - 0xdc]
mov al, byte [eax]
mov byte [esi - 0x88], al
push 0x595880
mov ecx, ebx
call fcn.0047d6a7
lea ecx, [ebp - 0xd8]
call fcn.0047bd35
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.0053a760
mov al, 1
call fcn.0056355e
ret 0x18
push dword [ebp - 0xe0]
push dword [ebp - 0xdc]
push 0x59586c
jmp 0x47bcfb
Function at 0x47d071
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x574de5
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5ca1c8]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x5ca1c8]
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.0053a750
mov byte [esp + 0x48], 1
mov esi, dword [esi + 0x2c]
jmp 0x47d10a
mov ecx, dword [esp + 0x18]
call fcn.00401581
push eax
push dword [esp + 0x1c]
lea ecx, [esi + 0x20]
push dword [esi + 0x30]
push 0
call fcn.0040b8dd
test eax, eax
je 0x47d118
add esi, 0xc8
mov eax, dword [esp + 0x14]
cmp esi, dword [eax + 0x30]
jne 0x47d0e5
jmp 0x47d1b4
cmp dword [esi + 0xb0], 0
jge 0x47d12a
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 0x47d17a
jg 0x47d171
cmp eax, dword [esi + 0xa8]
jb 0x47d17a
or dword [esi + 0xb0], 0xffffffff
mov bl, 1
lea eax, [esi + 8]
lea ecx, [esp + 0x20]
cmp ecx, eax
je 0x47d18f
push 0xffffffffffffffff
push 0
push eax
call fcn.00401c2b
test bl, bl
jne 0x47d1a8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0xc0]
cmp eax, 0x7d0
jbe 0x47d1b4
inc bl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xc0], eax
mov ecx, edi
mov byte [esp + 0x48], 0
call fcn.0053a760
mov eax, dword [esp + 0x30]
test eax, eax
je 0x47d1e0
test bl, bl
je 0x47d1de
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
call fcn.0047ce4d
mov eax, dword [esp + 0x30]
test eax, eax
push 0
push 1
lea ecx, [esp + 0x28]
setne bl
call fcn.00401cbf
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.0055fedc
mov esp, ebp
pop ebp
ret 8