joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b70
Capabilities:
Get disk size

Disassembly:
sub esp, 0x218
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], 0
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x228]
mov ecx, 0x82
stosw word es:[edi], ax
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push esi
push eax
call fcn.00403b29
lea ecx, [esp + 0x20]
push 0x4161b4
push ecx
call fcn.00403c44
add esp, 0x10
mov word [eax + 2], 0
xor edx, edx
lea eax, [esp + 8]
mov dword [esp + 8], edx
push eax
push edx
lea ecx, [esp + 0x20]
push edx
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push 0
push 7
push edx
push eax
call fcn.00403c10
push 0
push 0xa
push edx
push eax
call fcn.00403ba0
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x224]
push ecx
push esi
push edx
mov dword [esp + 0x1c], eax
call fcn.00401c30
add esp, 0xc
pop edi
pop esi
add esp, 0x218
ret
Function at 0x401c30
Capabilities:
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x86c
push ebx
push ebp
push esi
push edi
xor edx, edx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x676]
mov word [esp + 0x674], dx
mov word [esp + 0x21c], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21e]
mov word [esp + 0x14], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x880]
lea ecx, [esp + 0x674]
push eax
push ecx
call fcn.00403b29
lea edx, [esp + 0x67c]
push 0x4161ac
push edx
call fcn.00403aff
add esp, 0x10
lea eax, [esp + 0x424]
lea ecx, [esp + 0x674]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x401e56
mov esi, dword [esp + 0x888]
mov ebx, dword [esp + 0x884]
mov edx, dword [esp + 0x880]
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x21c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x21c]
push edx
push eax
call fcn.00403b29
lea ecx, [esp + 0x458]
lea edx, [esp + 0x224]
push ecx
push edx
call fcn.00403aff
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x24]
push ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
push eax
call fcn.00403b29
lea ecx, [esp + 0x468]
lea edx, [esp + 0x2c]
push ecx
push edx
call fcn.00403aff
mov al, byte [esp + 0x444]
add esp, 0x20
test al, 0x10
je 0x401dd5
lea eax, [esp + 0x450]
push 0x416118
push eax
call fcn.00403aca
add esp, 8
test eax, eax
je 0x401e19
lea ecx, [esp + 0x450]
push 0x416110
push ecx
call fcn.00403aca
add esp, 8
test eax, eax
je 0x401e19
lea edx, [esp + 0x14]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [esp + 0x21c]
push 0x4161b4
push eax
call fcn.00403aff
lea ecx, [esp + 0x1c]
push 0x4161b4
push ecx
call fcn.00403aff
lea edx, [esp + 0x24]
push esi
lea eax, [esp + 0x230]
push edx
push eax
call fcn.00401c30
add esp, 0x1c
jmp 0x401e19
mov edi, dword [esp + 0x440]
mov ecx, dword [esi + 4]
mov ebp, dword [esp + 0x444]
cmp ecx, edi
jb 0x401e4b
ja 0x401df2
mov edx, dword [esi]
cmp edx, ebp
jb 0x401e4b
lea eax, [esp + 0x14]
push 1
lea ecx, [esp + 0x220]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x401e19
mov ecx, dword [esi]
sub ecx, ebp
mov dword [esi], ecx
mov eax, dword [esi + 4]
sbb eax, edi
mov dword [esi + 4], eax
mov edi, dword [esp + 0x10]
lea edx, [esp + 0x424]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401cdf
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x86c
ret
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x86c
ret
Function at 0x402550
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x410
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
mov word [esp + 0x20c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x20e]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 4]
push ecx
call fcn.00403b7f
sub eax, 4
lea edx, [esp + 8]
push eax
lea eax, [esp + 0x214]
push edx
push eax
call fcn.004041a6
lea ecx, [esp + 0x21c]
push 0x4161b4
push ecx
call fcn.00403aff
add esp, 0x18
lea edx, [esp + 0x20c]
push 3
push 0
push 0
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov eax, ecx
pop edi
add esp, 0x410
ret

Function at 0x402c80
Capabilities:
Create directory
Get common file path
Set file attributes
Timestomp file

Disassembly:
sub esp, 0x220
push ebx
push ebp
push esi
mov esi, dword [esp + 0x230]
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2a]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov word [esp + 0x28], 0
rep stosd dword es:[edi], eax
push 0
push 0x2000000
push 3
push 0
push 3
push 0
push esi
stosw word es:[edi], ax
call ebx
cmp eax, 0xffffffff
je 0x402cdb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x220
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 7
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x2000000
push 3
push 0
push 5
push 0xc0000000
push esi
call ebx
mov ebp, eax
cmp ebp, 0xffffffff
je 0x402da8
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x28]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [esp + 0x28]
push str.KERNEL32.DLL
push ecx
call fcn.00403aff
add esp, 8
lea edx, [esp + 0x28]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push edx
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
cmp esi, 0xffffffff
je 0x402d95
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x402d92
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call edi
push ebp
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x220
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x220
ret
Function at 0x402dc0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x44
push ebx
push esi
push edi
xor esi, esi
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x2a]
mov word [esp + 0x28], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x28]
push str.._
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
push eax
call fcn.00403b29
mov ebx, dword [esp + 0x5c]
lea ecx, [esp + 0x30]
push ebx
push ecx
call fcn.00403aff
add esp, 0x10
lea edx, [esp + 0x28]
push esi
push esi
push 3
push esi
push 3
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
lea eax, [esp + 0xc]
push esi
push eax
lea ecx, [esp + 0x18]
push 0x18
push ecx
push esi
push esi
push 0x70000
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x402e5a
cmp dword [esp + 0x18], 0xb
jne 0x402e5a
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
je 0x402e5a
mov esi, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x44
ret
Function at 0x403180
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x28c
push esi
push edi
xor esi, esi
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], si
mov word [esp + 0x94], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x96]
push str.SYSTEMCurrentControlSetServicesUSBSTOREnum
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x98]
mov dword [esp + 0x10], esi
push eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], 4
call fcn.00403b29
lea ecx, [esp + 0x1c]
push str.Count
push ecx
call fcn.00403b29
add esp, 0x10
lea edx, [esp + 0xc]
lea eax, [esp + 0x94]
push edx
push 0x20019
push esi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40322a
lea ecx, [esp + 0x10]
lea edx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push esi
lea eax, [esp + 0x20]
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x28c
ret

Function at 0x403240
Capabilities:
Get disk information

Disassembly:
sub esp, 0x44c
push ebx
mov ebx, dword [esp + 0x454]
push esi
push edi
push ebx
call fcn.00403140
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x5c]
add esp, 4
rep stosd dword es:[edi], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x10], 0
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [esp + 0x58], 0
lea esi, [esp + 0x58]
je 0x403380
add ebx, 8
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [esp + 0x10], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x1c]
push str.._
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00403b29
lea edx, [esp + 0x24]
push esi
push edx
call fcn.00403aff
lea eax, [esp + 0x2c]
push eax
call fcn.00403b7f
add esp, 0x14
lea ecx, [esp + 0x1c]
mov word [esp + eax*2 + 0x1a], 0
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push ecx
call ebx
lea edx, [esp + 0x18]
mov edi, eax
push 0
push edx
lea eax, [esp + 0x4c]
push 0x18
push eax
push 0
push 0
push 0x70000
push edi
call ebp
test eax, eax
je 0x403352
cmp dword [esp + 0x4c], 0xb
jne 0x403352
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
je 0x403352
mov ecx, dword [esp + 0x10]
push esi
push ecx
call fcn.00403b29
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x468]
add esp, 8
inc eax
add ecx, 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
mov dword [edx + 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00403b7f
lea esi, [esi + eax*2 + 2]
add esp, 4
cmp word [esi], 0
jne 0x4032a2
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x44c
ret
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x44c
ret
Function at 0x407889
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x416df0
cmp edx, dword [eax]
je 0x4078ab
add eax, 8
inc ecx
cmp eax, 0x416e80
jl 0x40789c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x416df0]
jne 0x4079d9
mov eax, dword [0x4199f0]
cmp eax, 1
je 0x4079b3
test eax, eax
jne 0x4078dc
cmp dword [0x416ad4], 1
je 0x4079b3
cmp edx, 0xfc
je 0x4079d9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407913
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00408400
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00407ff0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x407956
lea eax, [ebp - 0x1a4]
push eax
call fcn.00407ff0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41277c
push edi
call fcn.004084f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00408400
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00408410
lea eax, [ebp - 0xa0]
push 0x41275c
push eax
call fcn.00408410
push dword [esi + 0x416df4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408410
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00408375
add esp, 0x2c
pop edi
jmp 0x4079d9
lea eax, [ebp + 8]
lea esi, [esi + 0x416df4]
push 0
push eax
push dword [esi]
call fcn.00407ff0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x40fbcd
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x40fbfb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40fc19
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040fb33
jmp 0x40fc19
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40fc19
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0040fb33
test edi, edi
mov eax, edi
jne 0x40fc03
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10fe0058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x10fe01a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x10fe007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10fe006a
add dl, dl
jne 0x10fe0089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10fe00dc
xor eax, eax
add dl, dl
jne 0x10fe0096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10fe017d
add dl, dl
jne 0x10fe00a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10fe00b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10fe00bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10fe00c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10fe00d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10fe0075
mov eax, 1
add dl, dl
jne 0x10fe00ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10fe00f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10fe00e1
sub eax, ebx
mov ebx, 1
jne 0x10fe0128
mov ecx, 1
add dl, dl
jne 0x10fe010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10fe0119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10fe0105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10fe0075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10fe013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10fe014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10fe0136
cmp eax, 0x7d00
jae 0x10fe016d
cmp eax, 0x500
jb 0x10fe0168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10fe0075
cmp eax, 0x7f
ja 0x10fe0170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10fe0075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x10fe019e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10fe0075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401340
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ecx + 0x818]
push eax
push ecx
lea esi, [ecx + 0x610]
push str._s_s.log
push esi
call fcn.00403870
add esp, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4013be
push 0x5562fc
lea ecx, [ebp - 4]
push esi
push ecx
mov dword [ebp - 4], 0
call fcn.0050215e
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
je 0x4013be
push edi
push 2
push 0
push eax
call fcn.0050200d
mov edx, dword [ebp - 4]
push edx
call fcn.00501f1e
mov edi, eax
mov eax, dword [ebp - 4]
push eax
call fcn.00501841
add esp, 0x14
cmp edi, 0xa00000
pop edi
jle 0x4013be
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x18]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebx]
mov eax, dword [eax]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push ecx
push edx
mov ecx, ebx
call eax
mov dword [ebp + 0x14], eax
test eax, eax
je 0x401800
push esi
mov esi, dword [ebp + 0x20]
imul esi, esi, 0x3e8
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 0x18], esi
call edi
mov dword [ebp + 0x1c], eax
call edi
sub eax, dword [ebp + 0x1c]
cmp eax, esi
jae 0x4017f2
lea edi, [ebx + 0x10a8]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebx + 0x108c]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, 1
jne 0x4017ed
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 0x1c]
cmp eax, dword [ebp + 0x18]
jb 0x4017b5
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x1c
cmp esi, 2
je 0x4017fb
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x1c
mov eax, dword [ebp + 0x14]
pop edi
pop esi
pop ebx
pop ebp
ret 0x1c
Function at 0x402d80
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1044
call fcn.005003b0
mov eax, dword [0x56d380]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea esi, [ebx + 0x10a8]
xor edi, edi
push esi
mov dword [ebp - 0x1040], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebx + 0x108c], 2
mov eax, dword [ebx + 0x10c8]
mov ecx, dword [ebx + 0x10c4]
mov dword [ebp - 0x103c], eax
mov dword [ebp - 0x1044], ecx
jne 0x402e10
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebx + 0x109c]
cmp eax, dword [ebp - 0x103c]
jb 0x402e07
xor eax, eax
mov dword [ebx + 0x108c], 3
mov dword [ebx + 0x1090], eax
mov dword [ebx + 0x1094], eax
mov dword [ebp - 0x1040], 1
jmp 0x402e29
cmp dword [ebx + 0x108c], 2
je 0x402e29
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebx + 0x1098]
cmp eax, dword [ebp - 0x1044]
jb 0x402e29
mov edi, 1
mov edx, dword [ebx + 0x108c]
push esi
mov dword [ebp - 0x103c], edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x402e9f
push 0x1034
lea eax, [ebp - 0x1038]
push 0
push eax
call fcn.00500080
add esp, 0xc
mov eax, 0x1034
mov dword [ebp - 0x1038], 8
lea esi, [ebp - 0x1038]
call fcn.005003b0
mov edi, esp
mov ecx, 0x40d
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebx + 0x3c]
call fcn.00403210
lea esi, [ebx + 0x10a8]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov dword [ebx + 0x10c0], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x1040], 0
je 0x402f07
push 0x1034
lea ecx, [ebp - 0x1038]
push 0
push ecx
call fcn.00500080
add esp, 0xc
mov eax, 0x1034
mov dword [ebp - 0x1038], 7
lea esi, [ebp - 0x1038]
call fcn.005003b0
mov edi, esp
mov ecx, 0x40d
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebx + 0x3c]
call fcn.00403210
lea esi, [ebx + 0x10a8]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov dword [ebx + 0x10c0], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x103c]
pop edi
xor ecx, ebp
pop esi
call fcn.00500397
mov esp, ebp
pop ebp
ret
Function at 0x405ff0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 8]
mov ebx, dword [0x571d80]
xor edi, edi
mov dword [ecx + 0x14], eax
cmp dword [ebx + 0x34], edi
jne 0x406088
push esi
nop
test edi, edi
jle 0x406017
dec edi
jmp 0x406073
call fcn.00402d80
dec eax
je 0x406063
dec eax
je 0x406090
dec eax
jne 0x406073
mov esi, dword [0x571d80]
lea ebx, [esi + 0x10a8]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
mov dword [esi + 0x108c], 1
mov dword [esi + 0x1090], eax
mov dword [esi + 0x1094], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebx
mov dword [esi + 0x1098], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x571d80]
call fcn.00402bd0
mov edi, 0x3c
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [0x571d80]
cmp dword [ebx + 0x34], 0
je 0x406010
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, dword [ebp + 8]
mov edx, esi
sub edx, dword [eax + 0x14]
cmp edx, 0x3e8
jbe 0x406073
mov ebx, eax
mov eax, dword [ebx + 0x18]
lea ecx, [eax + 1]
push eax
mov eax, dword [0x571d80]
mov dword [ebx + 0x18], ecx
call fcn.00402b00
mov dword [ebx + 0x14], esi
jmp 0x406073

Function at 0x406ff0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x40700f
xor eax, eax
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 8]
push ecx
push 0x8004667e
push eax
mov dword [ebp - 8], 1
call sub.WS2_32.dll_ioctlsocket
mov edx, dword [esi + 4]
push 4
lea ecx, [ebp - 4]
push ecx
push 0x80
push 0xffff
push edx
mov dword [ebp - 4], 0x3c0001
call sub.WS2_32.dll_setsockopt
mov eax, 1
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
test edi, edi
jle 0x407110
lea ebx, [ebx]
mov edx, dword [ebp + 8]
push 0
mov eax, edi
sub eax, esi
push eax
mov eax, dword [edx + 4]
lea ecx, [esi + ebx]
push ecx
push eax
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x40710a
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x407110
jmp 0x40710c
add esi, eax
cmp esi, edi
jl 0x4070e0
mov eax, edi
pop esi
pop ebp
ret 4