joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440cf0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push esi
xor esi, esi
mov dword [esp + 4], esi
mov dword [eax], esi
lea eax, [esp + 8]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x440ea2
push ebx
mov ebx, dword [esp + 0xc]
push edi
test ebx, ebx
je 0x440e8c
push ebp
mov eax, dword [ebx + 4]
cmp eax, 2
jne 0x440d3f
lea ebp, [eax + 0xe]
jmp 0x440d4b
cmp eax, 0x17
jne 0x440df9
lea ebp, [eax + 5]
cmp dword [ebx + 0x18], 0
je 0x440df9
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x440df9
cmp eax, ebp
jb 0x440df9
push 0x20
call dword [0x47e064]
mov edi, eax
add esp, 4
test edi, edi
je 0x440e81
mov ecx, dword [ebx]
mov dword [edi], ecx
mov ecx, dword [ebx + 4]
mov dword [edi + 4], ecx
mov ecx, dword [ebx + 8]
mov dword [edi + 8], ecx
mov eax, dword [ebx + 0xc]
push ebp
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ebp
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
call dword [0x47e064]
add esp, 4
mov dword [edi + 0x18], eax
test eax, eax
je 0x440e70
push ebp
push dword [ebx + 0x18]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x14]
add esp, 0xc
test eax, eax
je 0x440de5
push eax
call dword [0x47e070]
add esp, 4
mov dword [edi + 0x14], eax
test eax, eax
je 0x440e56
mov eax, dword [esp + 0x10]
test esi, esi
cmove esi, edi
test eax, eax
je 0x440df5
mov dword [eax + 0x1c], edi
mov dword [esp + 0x10], edi
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x440d32
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop ebp
test eax, eax
je 0x440e18
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
je 0x440e88
test esi, esi
je 0x440e45
push dword [esi + 0x18]
call dword [0x47e068]
push dword [esi + 0x14]
call dword [0x47e068]
mov edi, dword [esi + 0x1c]
push esi
call dword [0x47e068]
add esp, 0xc
mov esi, edi
test edi, edi
jne 0x440e20
mov eax, dword [esp + 0x28]
xor esi, esi
pop edi
mov dword [eax], esi
mov eax, ebx
pop ebx
pop esi
add esp, 0xc
ret
push dword [edi + 0x18]
mov ebx, 8
call dword [0x47e068]
push edi
call dword [0x47e068]
add esp, 8
jmp 0x440e08
push edi
mov ebx, 8
call dword [0x47e068]
add esp, 4
jmp 0x440e08
mov ebx, 8
jmp 0x440e08
test esi, esi
jne 0x440e98
mov ebx, 0x2af9
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], esi
mov eax, ebx
pop ebx
pop esi
add esp, 0xc
ret

Function at 0x441300
Capabilities:
Create thread

Disassembly:
push 0
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x441322
cmp eax, 0xffffffff
jne 0x441324
xor eax, eax
ret
Function at 0x444b50
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
xor ebp, ebp
push esi
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0x47e06c]
mov edi, eax
add esp, 8
test edi, edi
je 0x444ba7
nop word [eax + eax]
push esi
push edi
push dword [esp + 0x1c]
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x444bbf
cmp esi, ebx
je 0x444bbf
cmp esi, 0x8000
ja 0x444bbf
cmp esi, ebx
jb 0x444bb8
push esi
push edi
call dword [0x47e06c]
mov edi, eax
add esp, 8
test edi, edi
jne 0x444b70
push ebp
call dword [0x47e068]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0x47e068]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
sub esp, 0x88
mov eax, dword [0x47e048]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x9c]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x80
push eax
mov ebp, dword [edi + 0x424]
or esi, 0xffffffff
mov ebx, dword [edi]
push ebp
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x44a682
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x80
push eax
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
push ebp
push edi
call fcn.0042f960
add esp, 8
cmp esi, 0xffffffff
jne 0x44a6a6
push str.Error_accept__ing_server_connect
push ebx
call fcn.0042ed80
add esp, 8
mov eax, 0x1e
jmp 0x44a715
push str.Connection_accepted_from_server_n
push ebx
call fcn.0042ee60
push 1
push esi
mov byte [edi + 0x514], 0
mov dword [edi + 0x424], esi
call fcn.0043ce70
add esp, 0x10
mov byte [edi + 0x7f0], 1
cmp dword [ebx + 0x610], 0
je 0x44a713
push 1
push ebx
call fcn.00420b40
mov eax, dword [ebx + 0x610]
push 1
push esi
push dword [ebx + 0x614]
call eax
push 0
push ebx
mov esi, eax
call fcn.00420b40
add esp, 0x1c
test esi, esi
je 0x44a713
push edi
call fcn.0044abb0
add esp, 4
mov eax, 0x2a
jmp 0x44a715
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041abe9
add esp, 0x88
ret
Function at 0x451b40
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
push 0
mov byte [esp + 0x16], al
lea eax, [esp + 0x14]
mov edi, dword [esi]
push 3
push eax
push dword [esi + 0x420]
mov byte [esp + 0x20], 0xff
mov byte [esp + 0x21], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x451b8c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.0042ed80
add esp, 0xc
push dword [esp + 0x18]
push ebx
push str.SENT
push dword [esi]
call fcn.00451750
add esp, 0x10
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
push ebx
mov eax, dword [eax]
mov dword [esp + 4], eax
mov ebx, dword [eax + 0x14c]
jne 0x451e1e
push ebp
push edi
lea ebp, [ebx + 0x1cb0]
lea edi, [ebx + 0x1eb0]
mov dword [edi], ebp
cmp ebp, edi
jae 0x451d1e
lea eax, [ebp + 1]
mov byte [ebp], 0xff
mov dword [edi], eax
cmp eax, edi
jae 0x451d1e
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x451d1e
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebx + 0x1ca8]
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [esp + 0x1c], eax
movzx eax, word [ebx + 0x1caa]
push eax
call esi
mov edx, dword [esp + 0x1c]
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x451d89
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x451d89
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x451d89
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x451d89
shr ecx, 8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x451d89
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x451d89
mov byte [eax], 0xf0
mov eax, dword [edi]
inc eax
mov esi, dword [esp + 0x10]
mov dword [ebx + 0x1eb4], eax
sub eax, ebp
sub eax, 2
mov dword [edi], ebp
push eax
lea eax, [ebx + 0x1cb2]
push eax
push 0x3e
push esi
call fcn.00451850
mov edi, dword [esp + 0x28]
add esp, 0x10
push 0
push 3
push ebp
push dword [edi + 0x420]
call dword [sym.imp.WS2_32.dll_send]
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x451ddd
call ebp
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0042ed80
add esp, 0xc
push 4
lea eax, [ebx + 0x1cb3]
push eax
push edi
call fcn.00451bb0
add esp, 0xc
lea eax, [ebx + 0x1cb7]
push 0
push 2
push eax
push dword [edi + 0x420]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x451e1b
call ebp
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0042ed80
add esp, 0xc
pop esi
pop edi
pop ebp
pop ebx
pop ecx
ret
Function at 0x464a50
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x47e064]
mov edi, eax
add esp, 4
test edi, edi
jne 0x464a77
pop edi
pop esi
pop ecx
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi + 8], eax
push ebp
cmp ebx, dword [esi + 0x10]
jbe 0x464ac2
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [esp + 0x24]
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [esp + 0x20], ebx
jmp 0x464ac6
mov ebp, dword [esp + 0x1c]
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x28]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x464b26
mov dword [esp + 0x10], eax
mov ebx, eax
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x464ae5
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x10]
jae 0x464b57
nop dword [eax + eax]
mov eax, dword [esi + 4]
push 1
push 0x4765ee
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x4765ef
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x464b30
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x401005
Capabilities:
Accept command line arguments
Get file size
Read file on windows
Write file on windows

Disassembly:
jmp 0x401010
call sub.KERNEL32.dll_AllocConsole
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
mov dword [0x404010], eax
call sub.KERNEL32.dll_GetCommandLineW
push 0x404018
push eax
call sub.SHELL32.dll_CommandLineToArgvW
mov dword [0x404014], eax
mov ebx, dword [0x404018]
cmp ebx, 2
jne 0x401183
mov edi, dword [0x404014]
add edi, 4
mov eax, dword [edi]
mov ebx, eax
push 0
push 0x20
push 3
push 0
push 0
push 0x80000000
push ebx
call sub.KERNEL32.dll_CreateFileW
mov dword [0x404004], eax
cmp eax, 0xffffffff
jne 0x4010a2
push 0
push 0
push 0x14
push section..rdata
push dword [0x404010]
call sub.KERNEL32.dll_WriteConsoleA
push 0
push 0
push 2
push 0x4030b4
push dword [0x404010]
call sub.KERNEL32.dll_WriteConsoleA
jmp 0x40123a
push 0
push dword [0x404004]
call sub.KERNEL32.dll_GetFileSize
mov dword [0x404008], eax
push 4
push 0x1000
push eax
push 0
call sub.KERNEL32.dll_VirtualAlloc
or eax, eax
jne 0x4010f5
push 0
push 0
push 0x16
push 0x403029
push dword [0x404010]
call sub.KERNEL32.dll_WriteConsoleA
push 0
push 0
push 2
push 0x4030b4
push dword [0x404010]
call sub.KERNEL32.dll_WriteConsoleA
jmp 0x40115e
mov dword [0x40400c], eax
push 0
push 0
push dword [0x404008]
push eax
push dword [0x404004]
call sub.KERNEL32.dll_ReadFile
cmp eax, 0xffffffff
jne 0x401143
push 0
push 0
push 0x13
push 0x403015
push dword [0x404010]
call sub.KERNEL32.dll_WriteConsoleA
push 0
push 0
push 2
push 0x4030b4
push dword [0x404010]
call sub.KERNEL32.dll_WriteConsoleA
jmp 0x40115e
push 0
push 0
push dword [0x404008]
push dword [0x40400c]
push dword [0x404010]
call sub.KERNEL32.dll_WriteConsoleW
push 0x8000
push 0x404008
push dword [0x40400c]
call sub.KERNEL32.dll_VirtualFree
push dword [0x404004]
call sub.KERNEL32.dll_CloseHandle
jmp 0x40123a
cmp ebx, 3
jbe 0x4011a3
push 0
push 0
push 0xf
push str.TOO_MANY_ARGS_.
push dword [0x404010]
call sub.KERNEL32.dll_WriteConsoleA
jmp 0x40123a
cmp ebx, 3
jne 0x401224
mov edi, dword [0x404014]
add edi, 4
mov eax, dword [edi]
mov ebx, eax
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push ebx
call sub.KERNEL32.dll_CreateFileW
mov dword [0x404004], eax
mov edi, dword [0x404014]
add edi, 8
mov eax, dword [edi]
mov ebx, eax
push ebx
call sub.KERNEL32.dll_lstrlenW
mov ecx, 2
mul ecx
push 0
push 0x404130
push eax
push ebx
push dword [0x404004]
call sub.KERNEL32.dll_WriteFile
or eax, eax
jne 0x401217
push 0
push 0
push 0x12
push str.Blad_zapisu_pliku.
push dword [0x404010]
call sub.KERNEL32.dll_WriteConsoleA
push dword [0x404004]
call sub.KERNEL32.dll_CloseHandle
jmp 0x40123a
push 0
push 0
push 0x10
push str.Brak_argumentow.
push dword [0x404010]
call sub.KERNEL32.dll_WriteConsoleA
call sub.KERNEL32.dll_FreeConsole
push 0
call sub.KERNEL32.dll_ExitProcess
int3
Function at 0x10001000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x10001071
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x10001071
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x1000105a
jmp 0x10001071
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x10003233
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x100ef0a0
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1000328c
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x1000328c
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x1000328c
xor eax, eax
inc eax
jmp 0x1000328e
xor eax, eax
leave
ret 0x10
Function at 0x10019d40
Capabilities:
Check for software breakpoints

Disassembly:
cmp dword [esi + 0x14], 0xcc
je 0x10019d63
mov eax, dword [esi + 0x1a8]
push esi
call dword [eax]
mov dword [esi + 0x8c], 0
mov dword [esi + 0x14], 0xcc
mov ecx, dword [esi + 0x1a8]
mov eax, dword [ecx + 8]
test eax, eax
je 0x10019d89
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x30
call dword [eax]
mov edx, dword [esi + 0x1a8]
mov eax, dword [edx + 8]
test eax, eax
jne 0x10019d70
mov edx, dword [esi + 0x44]
xor eax, eax
test edx, edx
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
mov eax, 1
ret

Function at 0x10019e40
Capabilities:
Check for software breakpoints

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x10019e77
push esi
call fcn.10021730
mov eax, dword [esi + 0x40]
test eax, eax
je 0x10019e70
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
pop ebp
ret 4
mov dword [esi + 0x14], 0xcb
mov ecx, dword [esi + 0x14]
cmp ecx, 0xcb
jne 0x10019ef6
mov eax, dword [esi + 0x1b8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x10019ee0
nop
mov eax, dword [esi + 8]
test eax, eax
je 0x10019e9a
push esi
call dword [eax]
mov ecx, dword [esi + 0x1b8]
push esi
call dword [ecx]
test eax, eax
je 0x10019ed9
cmp eax, 2
je 0x10019ee0
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10019e90
cmp eax, 3
je 0x10019ebd
cmp eax, 1
jne 0x10019e90
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
cmp eax, dword [ecx + 8]
jl 0x10019e90
mov eax, dword [ecx + 8]
mov edx, dword [esi + 0x144]
add eax, edx
mov dword [ecx + 8], eax
jmp 0x10019e90
xor eax, eax
pop esi
pop ebp
ret 4
mov eax, dword [esi + 0x94]
mov dword [esi + 0x9c], eax
call fcn.10019d40
pop esi
pop ebp
ret 4
cmp ecx, 0xcc
je 0x10019f0d
mov eax, dword [esi]
mov dword [eax + 0x14], 0x14
push esi
mov dword [eax + 0x18], ecx
call dword [eax]
call fcn.10019d40
pop esi
pop ebp
ret 4

Function at 0x1001a39e
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push 0x100ef0a0
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x1001a40e
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push str.DisableMMX
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001a405
cmp dword [ebp - 0xc], 4
jne 0x1001a405
cmp dword [ebp - 0x10], edi
je 0x1001a405
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x1011bd30], edi
xor eax, eax
jmp 0x1001a44d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x1011bd30], edi
jge 0x1001a448
lea eax, [ebp - 0x34]
push eax
mov dword [0x1011bd30], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x1001a448
cmp word [ebp - 0x14], 5
jb 0x1001a448
call fcn.1001a376
test eax, eax
je 0x1001a448
emms
mov dword [0x1011bd30], 1
mov eax, dword [0x1011bd30]
pop edi
leave
ret
Function at 0x10023206
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x10023215
xor eax, eax
jmp 0x100232f8
mov eax, dword [esp + 0xc]
cmp eax, 8
push ebx
push esi
mov esi, dword [esp + 0xc]
not esi
mov ecx, 0xff
jb 0x100232d8
push edi
mov edi, eax
shr edi, 3
xor ebx, ebx
mov bl, byte [edx]
sub eax, 8
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x100f3e10]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x100f3e10]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x100f3e10]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x100f3e10]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x100f3e10]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x100f3e10]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x100f3e10]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x100f3e10]
inc edx
dec edi
jne 0x10023235
pop edi
test eax, eax
je 0x100232f2
xor ebx, ebx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x100f3e10]
inc edx
dec eax
jne 0x100232dc
mov eax, esi
pop esi
not eax
pop ebx
ret 0xc
Function at 0x1004c330
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [esp + 4]
mov edx, 1
push esi
push edi
mov edi, ecx
mov dword [edi + 4], eax
lea esi, [edi + 8]
mov ecx, eax
lea esi, [esi + 4]
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
inc edx
mov dword [esi - 4], eax
cmp edx, 0x270
jb 0x1004c343
mov dword [edi], 0x270
pop edi
pop esi
ret 8

Function at 0x10059410
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e90be
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1011b140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ecx, [edi + 0xc]
mov dword [edi], vtable.CAPISocket.0
call fcn.1004c100
lea ecx, [edi + 0x2002c]
mov dword [ebp - 4], 0
push ecx
call fcn.100590a0
lea ecx, [edi + 0x20044]
mov byte [ebp - 4], 1
call fcn.100594e0
lea ecx, [edi + 0xc]
mov dword [edi + 4], 0xffffffff
mov dword [edi + 8], 0
call fcn.10059f20
mov eax, dword [0x1014260c]
mov ecx, eax
inc eax
mov dword [edi + 0x24], 0
mov dword [0x1014260c], eax
test ecx, ecx
jne 0x100594a8
push 0x1015c270
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
mov dword [edi + 0x20040], 0
mov eax, edi
mov dword [edi + 0x20028], 0
mov dword [edi + 0x20058], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10059630
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [0x1011b140]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], esi
push edi
mov edi, ecx
test esi, esi
je 0x100597be
cmp dword [ebp + 0x10], 0
je 0x100597be
cmp dword [edi + 4], 0xffffffff
je 0x10059673
call fcn.100595e0
mov al, byte [esi]
sub al, 0x30
push esi
cmp al, 9
ja 0x1005969b
xorps xmm0, xmm0
mov eax, 2
movlpd qword [esp + 0x2c], xmm0
mov word [esp + 0x24], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [esp + 0x24], eax
jmp 0x100596d3
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x100597be
xorps xmm0, xmm0
lea eax, [esp + 0x24]
movaps xmmword [esp + 0x20], xmm0
movsx ecx, word [esi + 0xa]
push ecx
mov ecx, dword [esi + 0xc]
push dword [ecx]
push eax
call fcn.100c0860
mov ax, word [esi + 8]
add esp, 0xc
mov word [esp + 0x20], ax
push dword [ebp + 0x10]
call dword [sym.imp.WSOCK32.dll_htons]
push 0
push 1
push 2
mov word [esp + 0x2e], ax
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, 0xffffffff
jne 0x10059711
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.100bd374
mov esp, ebp
pop ebp
ret 0xc
push 4
lea eax, [esp + 0x3c]
mov dword [edi + 4], esi
push eax
push 0x1002
push 0xffff
push esi
mov dword [esp + 0x4c], 0x20000
call dword [sym.imp.WSOCK32.dll_setsockopt]
push 0x10
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.WSOCK32.dll_connect]
test eax, eax
je 0x10059774
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push dword [esp + 0x18]
mov esi, eax
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [edi + 4], 0xffffffff
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.100bd374
mov esp, ebp
pop ebp
ret 0xc
push 0x31
push 0x401
push dword [esp + 0x1c]
push esi
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov eax, dword [esp + 0x14]
lea ecx, [edi + 0xc]
push dword [esp + 0x1c]
mov dword [edi + 8], eax
call fcn.1004bf60
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x24], eax
xor eax, eax
mov dword [edi + 0x20028], 1
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.100bd374
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x3c]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.100bd374
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10059870
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
mov eax, dword [0x1011b140]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, dword [0x10142788]
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x1005992b
cmp dword [esi + 0x20028], 0
je 0x1005992b
push edi
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push 0x4004667f
push eax
xor edi, edi
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
cmp dword [esp + 8], edi
jbe 0x1005991b
push ebx
push ebp
mov ebp, dword [sym.imp.WSOCK32.dll_recv]
lea ebx, [esi + 0x28]
nop dword [eax + eax]
push 0
push 0x20000
push ebx
push dword [esi + 4]
call ebp
cmp eax, 0xffffffff
je 0x100598fd
test eax, eax
je 0x100598f5
push eax
push ebx
lea ecx, [esi + 0x2002c]
add edi, eax
call fcn.10059130
cmp edi, dword [esp + 0x10]
jb 0x100598d0
jmp 0x10059919
push 0xca
push str.C:NEWSRCFASTBOTFASTBOTCSocketAPISocket.cpp
push str.socket_receive_error_
push str.ERROR____s_n_s:__d_n_n
call fcn.10053b00
add esp, 0x10
pop ebp
pop ebx
pop edi
nop dword [eax]
mov ecx, esi
call fcn.10059940
test eax, eax
jne 0x10059920
mov ecx, dword [esp + 8]
pop esi
xor ecx, esp
call fcn.100bd374
add esp, 8
ret