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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5c31c8]
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 0x467534
xor al, al
jmp 0x467608
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 0x467576
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2740
je 0x467569
cmp eax, 0x2726
jne 0x467619
cmp ebx, 0xffff
jge 0x467619
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 0x467551
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 0x4675e0
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.0055daac
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x46752d

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5c31c8]
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 0x4676e2
xor al, al
jmp 0x467708
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.0055daac
mov esp, ebp
pop ebp
ret 8
Function at 0x46771a
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x201c
call fcn.0055e160
mov eax, dword [0x5c31c8]
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 0x46775a
xor al, al
jmp 0x4677e0
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.0055daac
mov esp, ebp
pop ebp
ret 0x10

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call fcn.0055e160
mov eax, dword [0x5c31c8]
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 0x4678ce
cmp esi, 0xa
jl 0x4678ce
cmp byte [ebp - 0x2004], 0
jne 0x4678ce
cmp byte [ebp - 0x2003], 0
jne 0x4678ce
cmp byte [ebp - 0x2002], 0
jne 0x4678ce
cmp byte [ebp - 0x2001], 1
jne 0x4678ce
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 0x4678d0
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055daac
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4679cc
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 [0x5c31c8]
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 0x467a53
xor al, al
jmp 0x467a58
mov dword [ebx + 0x58], edi
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055daac
mov esp, ebp
pop ebp
ret

Function at 0x467cbd
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 0x467cef
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 0x467cf1
je 0x467cef
add esi, eax
cmp esi, dword [ebp + 0xc]
jl 0x467ccb
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x570d8f
mov eax, dword fs:[0]
push eax
sub esp, 0x878
mov eax, dword [0x5c31c8]
xor eax, esp
mov dword [esp + 0x870], eax
push ebx
push esi
push edi
mov eax, dword [0x5c31c8]
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.005321af
push ebx
push 2
lea eax, [esp + 0x20]
mov dword [esp + 0x898], ebx
push eax
mov dword [esp + 0x24], 0x34
call fcn.00531e36
lea eax, [edi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x473f51
mov eax, dword [eax]
push ebx
push 0x10
push eax
lea ecx, [esp + 0x30]
call fcn.00531e36
mov ecx, dword [edi]
call fcn.00448333
push ebx
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x28]
push 4
lea eax, [esp + 0x20]
push eax
call fcn.00531e36
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.00531e36
push 0
push ebx
lea eax, [esp + 0x1c]
mov byte [esp + 0x1c], bl
push eax
lea ecx, [esp + 0x30]
call fcn.00531e36
push 0
push 4
lea eax, [esp + 0x20]
mov dword [esp + 0x20], esi
push eax
lea ecx, [esp + 0x30]
call fcn.00531e36
push dword [esp + 0x1c]
mov ecx, edi
call fcn.00474753
mov esi, eax
test esi, esi
je 0x474089
lea eax, [esp + 0x64]
push eax
lea ecx, [esi + 4]
call fcn.00450e8b
mov byte [esp + 0x890], bl
cmp dword [eax + 0x14], 8
jb 0x473fed
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.0047383e
add esp, 0x20
mov byte [esp + 0x890], 2
cmp dword [eax + 0x14], 8
jb 0x474023
mov eax, dword [eax]
push eax
push ecx
mov ecx, edi
call fcn.00474c6e
push 0
push ebx
lea ecx, [esp + 0x54]
call fcn.00401d84
push 0
push ebx
lea ecx, [esp + 0x6c]
mov byte [esp + 0x898], 0
call fcn.00401d84
mov ecx, dword [esp + 0x20]
test ecx, ecx
jne 0x47405f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x34], eax
jmp 0x474070
mov eax, dword [edi + 0x58]
dec eax
cmp ecx, eax
jne 0x474070
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.00474a7c
test al, al
jne 0x47408b
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.0055daac
mov esp, ebp
pop ebp
ret 8
Function at 0x474102
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x570dc5
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x5c31c8]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x5c31c8]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [ebp + 0xc], 0
je 0x474296
push dword [ebp + 0xc]
lea ecx, [esp + 0x28]
push dword [ebp + 8]
call fcn.005321e4
xor ebx, ebx
lea eax, [esp + 0x20]
push ebx
push 2
pop edi
push edi
push eax
mov dword [esp + 0x8c], ebx
call fcn.00531dda
push ebx
push 0x10
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x30]
call fcn.00531dda
lea edx, [esi + 4]
cmp dword [edx + 0x14], 0x10
jb 0x474188
mov edx, dword [edx]
lea eax, [esp + 0x60]
mov ecx, ebx
mov eax, dword [eax + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x474296
inc ecx
lea eax, [esp + 0x60]
cmp ecx, 4
jne 0x47418e
push ebx
push edi
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x91
push eax
lea ecx, [esp + 0x30]
call fcn.00531dda
mov eax, 0x90
cmp word [esp + 0x18], ax
jne 0x474296
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 0x474296
jge 0x47428c
push ebx
push 4
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x30]
call fcn.00531dda
mov ecx, dword [esp + 0x1c]
test ecx, ecx
js 0x474296
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.00531dda
push ebx
push edi
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x30]
call fcn.00531dda
push ebx
push 1
lea eax, [esp + 0x1f]
push eax
lea ecx, [esp + 0x30]
call fcn.00531dda
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.00473c9a
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 0x4741eb
jg 0x474296
cmp eax, dword [esp + 0x3c]
jb 0x4741eb
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.0055daac
mov esp, ebp
pop ebp
ret 8
Function at 0x47454a
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x570e75
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x5c31c8]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
mov eax, dword [0x5c31c8]
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.005321e4
and dword [esp + 0xb0], 0
lea eax, [esp + 0x18]
push eax
call fcn.00441a4a
push 0
push 0x10
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x30]
call fcn.00531dda
push 0
push 4
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x30]
call fcn.00531dda
push 0
push 1
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x30]
call fcn.00531dda
push 0
push 4
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
call fcn.00531dda
push 0
push 2
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x30]
call fcn.00531dda
cmp byte [esp + 0x20], 0
je 0x47465a
lea eax, [esi - 0x1d]
push eax
lea eax, [ebx + 0x1d]
push eax
lea ecx, [esp + 0x54]
call fcn.005321e4
xor ebx, ebx
mov byte [esp + 0xb0], 1
push ebx
push 4
lea eax, [esp + 0x1c]
push eax
call fcn.00531dda
push ebx
push 2
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x58]
call fcn.00531dda
mov byte [esp + 0xb0], bl
push dword [esp + 0x1c]
mov ecx, edi
call fcn.00474753
mov esi, eax
test esi, esi
je 0x47472d
mov ecx, dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
test ecx, ecx
jne 0x47468d
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 0x4746a1
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.00450e8b
mov ecx, eax
mov byte [esp + 0xb0], 2
cmp dword [ecx + 0x14], 8
jb 0x4746c5
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.0047383e
add esp, 0x24
mov byte [esp + 0xb0], 3
cmp dword [eax + 0x14], 8
jb 0x474709
mov eax, dword [eax]
push eax
push ecx
mov ecx, edi
call fcn.00474c6e
push ebx
push 1
lea ecx, [esp + 0x80]
call fcn.00401d84
push ebx
push 1
lea ecx, [esp + 0x54]
call fcn.00401d84
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.0055daac
mov esp, ebp
pop ebp
ret 0xc
Function at 0x474eb8
Capabilities:
Create thread

Disassembly:
push 0
mov eax, 0x570f65
call fcn.005611e0
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.004026df
push ebx
push ebx
push esi
push 0x474f19
push ebx
push ebx
mov byte [esi], bl
call dword [sym.imp.MSVCR120.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x474efb
mov dword [esi + 8], eax
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0040276b
lea ecx, [ebp + 0xc]
call fcn.0040276b
mov al, bl
call fcn.005611ae
ret 0x1c
Function at 0x476cf2
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5713e4
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5c31c8]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x5c31c8]
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 0x476d5d
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 0x476da4
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xbad_alloc_void_]
mov al, byte [esp + 0x34]
mov dword [ecx], 0x591d7c
mov dword [ecx + 4], 0x47700b
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.0055daac
mov esp, ebp
pop ebp
ret
Function at 0x47c94f
Capabilities:
Create thread

Disassembly:
push 0xdc
mov eax, 0x5725fa
call fcn.00561213
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 0x47c9c1
lea esi, [ebx + 0x14]
mov ecx, esi
call fcn.005383c0
xor eax, eax
cmp dword [ebx + 0x78], eax
jne 0x47c9b6
mov edi, dword [sym.imp.MSVCR120.dll__beginthreadex]
push eax
push eax
push ebx
push 0x47cc82
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 0x47d7a4
push eax
push eax
call edi
add esp, 0x30
mov dword [ebx + 0x7c], eax
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.005383d0
lea edi, [ebx + 0x14]
mov ecx, edi
mov dword [ebp - 0xe4], edi
call fcn.005383c0
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.00401dc9
push dword [ebp - 0xdc]
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 2
call fcn.004077bf
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 0x47cac9
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.0042d1ab
test eax, eax
je 0x47cb41
add esi, 0xc8
cmp esi, dword [ebx + 0x30]
jne 0x47ca8b
lea eax, [ebx + 0x2c]
lea ecx, [ebp - 0xd8]
push ecx
mov ecx, eax
call fcn.0047f03a
mov esi, dword [ebx + 0x30]
lea ecx, [esi - 0xa8]
call fcn.00492a4e
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.0047f13e
push dword [ebp - 0xe0]
push dword [ebp - 0xdc]
mov al, byte [eax]
mov byte [esi - 0x88], al
push 0x5920d0
mov ecx, ebx
call fcn.0047e454
lea ecx, [ebp - 0xd8]
call fcn.0047cb54
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.005383d0
mov al, 1
call fcn.005611c2
ret 0x18
push dword [ebp - 0xe0]
push dword [ebp - 0xdc]
push 0x5920bc
jmp 0x47cb1a
Function at 0x47de88
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5727ec
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5c31c8]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x5c31c8]
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.005383c0
mov byte [esp + 0x48], 1
mov esi, dword [esi + 0x2c]
jmp 0x47df21
mov ecx, dword [esp + 0x18]
call fcn.00401601
push eax
push dword [esp + 0x1c]
lea ecx, [esi + 0x20]
push dword [esi + 0x30]
push 0
call fcn.0040ba04
test eax, eax
je 0x47df2f
add esi, 0xc8
mov eax, dword [esp + 0x14]
cmp esi, dword [eax + 0x30]
jne 0x47defc
jmp 0x47dfcb
cmp dword [esi + 0xb0], 0
jge 0x47df41
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 0x47df91
jg 0x47df88
cmp eax, dword [esi + 0xa8]
jb 0x47df91
or dword [esi + 0xb0], 0xffffffff
mov bl, 1
lea eax, [esi + 8]
lea ecx, [esp + 0x20]
cmp ecx, eax
je 0x47dfa6
push 0xffffffffffffffff
push 0
push eax
call fcn.00401cab
test bl, bl
jne 0x47dfbf
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0xc0]
cmp eax, 0x7d0
jbe 0x47dfcb
inc bl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xc0], eax
mov ecx, edi
mov byte [esp + 0x48], 0
call fcn.005383d0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x47dff7
test bl, bl
je 0x47dff5
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
call fcn.0047dc64
mov eax, dword [esp + 0x30]
test eax, eax
push 0
push 1
lea ecx, [esp + 0x28]
setne bl
call fcn.00401d3f
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.0055daac
mov esp, ebp
pop ebp
ret 8