joyce8/EMBER2024-capa huggingface dataset:
Function at 0xd85250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xd99808
push 0xd89288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xd85329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xd85329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00d881d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xd85329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xd85329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xd8532c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00d85351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xd85d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xd85d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xd85d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xd85d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xd85d94
push eax
push esi
call fcn.00d8820b
add esp, 8
pop esi
ret 0x10

Function at 0xd85da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xd85e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xd85e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xd9e320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00d87dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xd85dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xd85e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xd85ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xd85eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xd9e320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00d87dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xd85eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xd85e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xd86000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xd86131
push esi
call fcn.00d89145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00d78080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xd86131
push 0
push ebp
call fcn.00d783a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00d78260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xd8608b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00d782f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xd86121
push 0xd9e918
push edi
call fcn.00d873f0
push eax
push ebx
push esi
call fcn.00d85f60
push 0xd9e8f8
push edi
call fcn.00d873f0
push eax
push ebx
push esi
call fcn.00d85f60
push 0xd9e8d8
push edi
call fcn.00d873f0
push eax
push ebx
push esi
call fcn.00d85f60
push 0xd9e8c0
push edi
call fcn.00d873f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00d85f60
push 0xd9e8a0
push edi
call fcn.00d873f0
push eax
push ebx
push esi
call fcn.00d85f60
push 0xd9e888
push edi
call fcn.00d873f0
push eax
push ebx
push esi
call fcn.00d85f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xd871b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00d87140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00d87140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00d87140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00d87140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xd87bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xd87c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xd9987c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xd87c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xd87c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401410
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
lea eax, [ebp - 0x254]
mov dword [esp], eax
call sym._memset
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x264]
mov dword [esp], eax
call sym._memset
mov dword [ebp - 0x254], 0x44
lea eax, [ebp - 0x264]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x254]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._CreateProcessA_40
sub esp, 0x28
nop
leave
ret
Function at 0x401ec0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x418044
call sym._EnterCriticalSection_4
mov ebx, dword [0x41803c]
sub esp, 4
test ebx, ebx
je 0x401f0b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401f04
test esi, esi
je 0x401f04
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401ee0
mov dword [esp], 0x418044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x4020f0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402140
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402214
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x40217e
cmp eax, 4
jne 0x4021a0
test esi, esi
je 0x402192
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x402184
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x4021df
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x4021d1
cmp ecx, 0x40
je 0x402192
cmp ecx, 4
je 0x402192
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.004020f0
lea esi, [esi]
Function at 0x404380
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call sym.___main
call sym._GetCommandLineA_0
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sym._GetStartupInfoA_4
sub esp, 4
test ebx, ebx
jne 0x4043bb
jmp 0x40440e
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x4043b8
cmp al, 9
je 0x4043b8
cmp al, 0x22
jne 0x4043f7
lea esi, [esi]
mov edx, ebx
movzx eax, byte [ebx + 1]
add ebx, 1
cmp al, 0x22
je 0x4043e5
test al, al
jne 0x4043d0
cmp al, 0x22
jne 0x404403
lea ebx, [edx + 2]
jmp 0x404403
cmp al, 9
je 0x404403
add ebx, 1
movzx eax, byte [ebx]
test al, 0xdf
jne 0x4043f0
jmp 0x404403
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x404400
cmp al, 9
je 0x404400
mov esi, 0xa
test byte [ebp - 0x30], 1
je 0x40441d
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sym._GetModuleHandleA_4
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._WinMain_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
Function at 0x402800
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 8]
push edi
mov edi, dword [esp + 0x14]
push eax
push 0x4551b8
push 1
push 0
push 0x4551a8
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [edi], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jge 0x402846
push esi
push str.CoCreateInstance_failed:_0x_08lx_n
jmp 0x40287a
mov eax, dword [esp + 0xc]
lea edx, [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jge 0x402863
push esi
push str.get_LocalPolicy_failed:_0x_08lx_n
jmp 0x40287a
mov eax, dword [esp + 8]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jge 0x402882
push esi
push str.get_CurrentProfile_failed:_0x_08lx_n
call fcn.0043a5a4
add esp, 8
mov eax, dword [esp + 8]
test eax, eax
je 0x402890
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40289e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
pop edi
pop esi
add esp, 8
ret
Function at 0x403140
Capabilities:
Create tcp socket

Disassembly:
sub esp, 0x10
push esi
push edi
push 6
push 1
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
xor eax, eax
mov dword [esp + 8], eax
push 0x7f000001
mov dword [esp + 0x10], eax
mov word [esp + 0xc], 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_htonl]
mov cx, word [esi + 4]
mov dword [esp + 0xc], eax
push ecx
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 8]
push 0x10
push edx
push edi
mov word [esp + 0x16], ax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x4031a7
pop edi
xor al, al
pop esi
add esp, 0x10
ret
push ebx
push 3
push edi
call dword [sym.imp.WS2_32.dll_listen]
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov ebx, eax
push 8
push ebx
push edi
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
mov eax, dword [esi + 0x51a]
mov dword [esi + eax*4 + 0x116], edi
mov ecx, dword [esi + 0x51a]
mov dword [esi + ecx*4 + 0x416], 0
mov edx, dword [esi + 0x51a]
mov dword [esi + edx*4 + 0x316], 0xffffffff
mov eax, dword [esi + 0x51a]
mov dword [esi + eax*4 + 0x16], ebx
mov eax, dword [esi + 0x51a]
inc eax
pop ebx
mov dword [esi + 0x51a], eax
pop edi
mov al, 1
pop esi
add esp, 0x10
ret

Function at 0x403220
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x44a4f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 8]
lea eax, [esi + 0x4522]
push eax
call fcn.00401000
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0
call fcn.00401020
cmp dword [esi + 0x51a], 0x40
jb 0x40328c
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0xffffffff
call fcn.00401010
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 8
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov ebx, eax
test ebx, ebx
jne 0x4032be
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0xffffffff
call fcn.00401010
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 8
push edi
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x10]
push 4
push ecx
push 0x1001
push 0xffff
push edi
mov dword [esp + 0x24], 0x16000
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edx, dword [esi + 0x51a]
push 0x21
push ebx
push edi
mov dword [esi + edx*4 + 0x116], edi
mov eax, dword [esi + 0x51a]
mov edx, dword [esp + 0x34]
mov dword [esi + eax*4 + 0x16], ebx
mov ecx, dword [esi + 0x51a]
mov dword [esi + ecx*4 + 0x216], edx
mov eax, dword [esi + 0x51a]
mov dword [esi + eax*4 + 0x316], 0xffffffff
mov ecx, dword [esi + 0x51a]
mov dword [esi + ecx*4 + 0x416], 0
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
mov eax, dword [esi + 0x51a]
lea ecx, [esp + 0xc]
inc eax
mov dword [esp + 0x1c], 0xffffffff
mov dword [esi + 0x51a], eax
call fcn.00401010
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x403239
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x44a4f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 8]
lea eax, [esi + 0x4522]
push eax
call fcn.00401000
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0
call fcn.00401020
cmp dword [esi + 0x51a], 0x40
jb 0x40328c
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0xffffffff
call fcn.00401010
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 8
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov ebx, eax
test ebx, ebx
jne 0x4032be
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0xffffffff
call fcn.00401010
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 8
push edi
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x10]
push 4
push ecx
push 0x1001
push 0xffff
push edi
mov dword [esp + 0x24], 0x16000
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edx, dword [esi + 0x51a]
push 0x21
push ebx
push edi
mov dword [esi + edx*4 + 0x116], edi
mov eax, dword [esi + 0x51a]
mov edx, dword [esp + 0x34]
mov dword [esi + eax*4 + 0x16], ebx
mov ecx, dword [esi + 0x51a]
mov dword [esi + ecx*4 + 0x216], edx
mov eax, dword [esi + 0x51a]
mov dword [esi + eax*4 + 0x316], 0xffffffff
mov ecx, dword [esi + 0x51a]
mov dword [esi + ecx*4 + 0x416], 0
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
mov eax, dword [esi + 0x51a]
lea ecx, [esp + 0xc]
inc eax
mov dword [esp + 0x1c], 0xffffffff
mov dword [esi + 0x51a], eax
call fcn.00401010
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x404c10
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
call fcn.00403140
test al, al
jne 0x404c23
mov eax, 2
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push 0
push 0x404970
mov dword [esi + 6], eax
call fcn.0043a873
add esp, 0xc
xor eax, eax
pop esi
ret

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

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
mov dword [esp + 0xc], 0
call edi
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.004068a0
cmp dword [esi + 0x62], 1
jbe 0x406c46
call edi
mov ecx, dword [esi + 0xa6]
mov dword [esp + 0xc], 0
sub eax, ecx
mov dword [esp + 8], eax
fild qword [esp + 8]
fcom qword [0x44e318]
fnstsw ax
test ah, 0x40
je 0x406c4e
fstp st(0)
pop edi
xor eax, eax
pop esi
add esp, 8
ret
mov ecx, dword [esi + 0x9e]
mov dword [esp + 0xc], 0
mov dword [esp + 8], ecx
fild qword [esp + 8]
fmul qword [0x44e310]
fdiv st(1)
call fcn.0043ae18
pop edi
pop esi
fstp st(0)
add esp, 8
ret

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

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
mov dword [esp + 0xc], 0
call edi
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.00406a40
cmp dword [esi + 0x92], 1
jbe 0x406cd9
call edi
mov ecx, dword [esi + 0xaa]
mov dword [esp + 0xc], 0
sub eax, ecx
mov dword [esp + 8], eax
fild qword [esp + 8]
fcom qword [0x44e318]
fnstsw ax
test ah, 0x40
je 0x406ce1
fstp st(0)
pop edi
xor eax, eax
pop esi
add esp, 8
ret
mov ecx, dword [esi + 0xa2]
mov dword [esp + 0xc], 0
mov dword [esp + 8], ecx
fild qword [esp + 8]
fmul qword [0x44e310]
fdiv st(1)
call fcn.0043ae18
pop edi
pop esi
fstp st(0)
add esp, 8
ret
Function at 0x4087e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x44a840
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [esp + 0x64]
push ebx
push ebp
push esi
lea ebp, [eax + 1]
push edi
mov dword [esp + 0x10], ecx
mov al, byte [ebp]
cmp al, 0x65
je 0x4089c8
cmp al, 0x6c
jne 0x408827
mov ecx, dword [esp + 0x10]
push ebp
call fcn.004087e0
mov ebp, eax
jmp 0x4089bd
cmp al, 0x3a
mov ecx, ebp
je 0x408839
cmp al, 0x65
je 0x408839
mov al, byte [ebp + 1]
inc ebp
cmp al, 0x3a
jne 0x40882d
cmp byte [ebp], 0x65
je 0x4089e0
push ecx
call fcn.0043aa71
mov cl, byte [esp + 0x78]
mov esi, eax
xor edi, edi
add esp, 4
mov dword [esp + 0x14], esi
inc ebp
mov byte [esp + 0x24], cl
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov eax, dword [0x44e274]
mov dword [esp + 0x6c], edi
cmp eax, esi
ja 0x40887b
call fcn.00446f90
cmp esi, edi
jbe 0x4088c4
mov edx, dword [esp + 0x2c]
push edi
lea ecx, [esp + 0x28]
lea ebx, [edx + esi]
push ebx
call fcn.00402180
test al, al
je 0x4088c4
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
lea edi, [ecx + eax]
mov ecx, esi
mov edx, ecx
mov esi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x2c], ebx
xor edi, edi
mov byte [eax + ebx], 0
lea ecx, [esp + 0x74]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
call fcn.004342c0
add esp, 0xc
cmp eax, edi
jne 0x408983
mov cx, word [esp + 0x74]
mov dl, byte [esp + 0x24]
mov ebx, dword [esp + 0x18]
mov word [esp + 0x36], cx
push edi
lea ecx, [esp + 0x48]
mov byte [esp + 0x48], dl
call fcn.00401ff0
mov eax, dword [0x44e274]
lea ecx, [esp + 0x24]
push eax
push edi
push ecx
lea ecx, [esp + 0x50]
call fcn.004025b0
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x44]
lea eax, [esp + 0x1c]
push edx
push eax
add ecx, 0x166
mov byte [esp + 0x74], 1
call fcn.00409c20
mov eax, dword [esp + 0x48]
cmp eax, edi
je 0x408977
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40896e
cmp al, 0xff
je 0x40896e
dec al
mov byte [ecx], al
jmp 0x408977
push ecx
call fcn.00439308
add esp, 4
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov ecx, dword [esp + 0x28]
add ebp, esi
cmp ecx, edi
mov dword [esp + 0x6c], 0xffffffff
je 0x4089b1
mov al, byte [ecx - 1]
test al, al
je 0x4089a7
cmp al, 0xff
je 0x4089a7
dec al
mov byte [ecx - 1], al
jmp 0x4089b1
dec ecx
push ecx
call fcn.00439308
add esp, 4
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov al, byte [ebp]
cmp al, 0x65
jne 0x408812
lea eax, [ebp + 1]
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret 4
xor eax, eax
jmp 0x4089cb
Function at 0x4099e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
mov dword [esp + 0xc], 0
call edi
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.004096b0
cmp dword [esi + 0x108], 1
jbe 0x409a39
call edi
mov ecx, dword [esi + 0x140]
mov dword [esp + 0xc], 0
sub eax, ecx
mov dword [esp + 8], eax
fild qword [esp + 8]
fcom qword [0x44e318]
fnstsw ax
test ah, 0x40
je 0x409a41
fstp st(0)
pop edi
xor eax, eax
pop esi
add esp, 8
ret
mov ecx, dword [esi + 0x110]
mov dword [esp + 0xc], 0
mov dword [esp + 8], ecx
fild qword [esp + 8]
fmul qword [0x44e310]
fdiv st(1)
call fcn.0043ae18
pop edi
pop esi
fstp st(0)
add esp, 8
ret

Function at 0x40b070
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
cmp eax, ecx
jne 0x40b080
mov eax, 1
ret
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
xor eax, eax
ret