joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b0b0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov bp, word [esp + 0x30]
push edi
lea edi, [esi + 8]
push str.AlphegaNet.dll
mov eax, 0x523fc4
mov ecx, str.7J_X_C
call fcn.0044ab10
add esp, 4
test eax, eax
jne 0x44b102
push 0x10
push str.Critical
push str.BillingMgr__Initializing_AlphegaNet.dll_Failed__
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push str.BillingMgr__Initializing_AlphegaNet.dll_Failed___n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
pop edi
pop ebp
pop ebx
add esp, 0x24
ret 4
mov eax, dword [esi + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [edi]
lea edx, [esp + 0xc]
xor ebx, ebx
mov byte [esp + 0x12], bl
mov byte [esp + 0x11], 1
mov byte [esp + 0x10], 2
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jne 0x44b168
push 0x10
push str.Critical
push str.AlphegaNet:_Cannot_Initialize_AlphegaNet
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push str.AlphegaNet:_Cannot_Initialize_AlphegaNet
push 0x2000000
call fcn.0044b460
mov eax, dword [edi]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
add esp, 8
push eax
call edx
mov dword [edi], ebx
xor eax, eax
pop edi
pop ebp
pop ebx
add esp, 0x24
ret 4
mov eax, 0x4000
mov word [esp + 0x1c], ax
mov word [esp + 0x1e], ax
mov ax, bp
shr ax, 1
mov word [esp + 0x20], ax
mov word [esp + 0x22], ax
mov eax, dword [edi]
lea edx, [esp + 0x14]
mov word [esp + 0x14], 0x32
mov word [esp + 0x16], 0x1000
mov word [esp + 0x18], 0x8000
mov word [esp + 0x1a], bp
mov byte [esp + 0x24], bl
mov byte [esp + 0x25], bl
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp eax, 0xffffffff
mov dword [esi + 0x20], eax
jne 0x44b1e5
push 0x10
push str.Critical
push str.AlphegaNet:_Failed_to_create_net_unit_
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push str.AlphegaNet:_Failed_to_create_net_unit_
jmp 0x44b144
mov edi, dword [edi]
mov eax, dword [edi]
mov ecx, dword [eax + 0x18]
push edi
call ecx
pop edi
pop ebp
pop ebx
add esp, 0x24
ret 4

Function at 0x44db90
Capabilities:
Terminate thread

Disassembly:
push ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x44dbdf
lea ecx, [esp]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x44dbc0
push str.GetExitCodeThread_m_hThread__dwExitCode_
push str..BillingThreadEx.cpp
push 0x18
call fcn.004b7560
add esp, 0xc
test al, al
jne 0x44dbc0
int3
cmp dword [esp], 0x103
jne 0x44dbd5
mov edx, dword [esi + 4]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x44dbf0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [esi + 4], 0
je 0x44dbfc
call fcn.004b7940
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
lea eax, [esp]
push eax
push 4
push ecx
push 0x44db60
push edx
push 0
call fcn.004e4227
add esp, 0x18
test eax, eax
mov dword [esi + 4], eax
je 0x44dc37
mov ecx, dword [esp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, 1
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc

Function at 0x44dc40
Capabilities:
Resume thread

Disassembly:
cmp dword [esi + 4], 0
push ebx
push ebp
je 0x44dc8b
mov eax, dword [esi + 8]
cmp eax, 1
lea ebp, [esi + 8]
jne 0x44dc8b
mov ecx, dword [esi + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
push ecx
call ebx
cmp eax, 0xffffffff
jne 0x44dc69
pop ebp
xor eax, eax
pop ebx
ret
cmp eax, 1
jbe 0x44dc82
push edi
lea edi, [eax - 1]
test edi, edi
jbe 0x44dc81
mov edx, dword [esi + 4]
push edx
call ebx
sub edi, 1
jne 0x44dc76
pop edi
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x44dca0
Capabilities:
Resume thread
Suspend thread

Disassembly:
cmp dword [esi + 4], 0
push ebp
je 0x44dce8
mov eax, dword [esi + 8]
test eax, eax
lea ebp, [esi + 8]
jne 0x44dce8
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x44dcc4
xor eax, eax
pop ebp
ret
test eax, eax
jbe 0x44dcdf
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
mov edi, eax
mov edx, dword [esi + 4]
push edx
call ebx
sub edi, 1
jne 0x44dcd2
pop edi
pop ebx
push 1
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, 1
pop ebp
ret

Function at 0x459490
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x50effd
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x54d154]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esp + 0x14], 0
cmp dword [esi + 0x44], 0x10
jb 0x4594d2
mov eax, dword [esi + 0x30]
push eax
call fcn.004e3843
add esp, 4
mov dword [esi + 0x44], 0xf
mov dword [esi + 0x40], 0
mov byte [esi + 0x30], 0
mov dword [esp + 0x14], 0xffffffff
mov ecx, esi
call fcn.00498db0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x48eec0
Capabilities:
Create thread

Disassembly:
push ecx
mov eax, dword [0x553008]
test eax, eax
je 0x48ef04
mov eax, dword [eax + 0xbc]
push 0
push 0
push 0
push 0
mov dword [0x552fe8], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
lea ecx, [esp]
push ecx
push 0
push 0
push 0x48f000
push 0
push 0
mov dword [0x552ff0], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x552fec], eax
pop ecx
ret
Function at 0x496b50
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov eax, dword [ebp + 0x40054]
mov esi, dword [eax]
lea ebx, [ebp + 0x40050]
mov edi, ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
test edi, edi
mov eax, ebx
mov ecx, dword [eax + 4]
je 0x496bf9
cmp edi, eax
jne 0x496bf9
cmp esi, ecx
je 0x496bfe
cmp esi, dword [edi + 4]
je 0x496bf4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x10]
cmp eax, dword [esi + 0x14]
jb 0x496be1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x10], eax
cmp esi, dword [edi + 4]
je 0x496bf4
movzx ecx, byte [esi + 0xc]
mov edx, dword [esi + 0x18]
push ecx
mov ecx, ebp
call edx
test al, al
jne 0x496be1
lea edx, [esp + 0x18]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], esi
call fcn.004988b0
push esi
push edi
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.00497c30
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
jmp 0x496b6f
lea edx, [esp + 0x10]
call fcn.004988b0
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
jmp 0x496b77
call fcn.00498770
call fcn.004987e0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x49e760
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 1
mov ebx, ecx
push eax
mov dword [esp + 0x14], ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [ebx + 0xa0]
mov edi, dword [ecx]
lea eax, [ebx + 0x9c]
mov edx, ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], edx
jmp 0x49e7a4
mov edi, dword [esp + 0x14]
lea ecx, [ebx + 0x9c]
cmp eax, ecx
jne 0x49e91a
cmp edi, dword [esp + 0x2c]
je 0x49e924
test eax, eax
je 0x49e91a
cmp edi, dword [eax + 4]
je 0x49e91f
mov eax, dword [edi + 0x10]
movzx ecx, word [eax + 4]
push ecx
mov eax, ebx
call fcn.0049e930
mov edx, dword [edi + 0x10]
mov esi, eax
movzx eax, word [edx + 6]
push eax
mov eax, ebx
call fcn.0049e930
test esi, esi
mov edi, eax
je 0x49e905
test edi, edi
je 0x49e905
mov eax, dword [esi + 8]
add eax, dword [esi]
lea ebx, [esp + 0x30]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
mov esi, dword [esp + 0xc]
cdq
sub eax, edx
sar eax, 1
sar ecx, 1
push eax
push ecx
call fcn.0049efc0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [edi + 8]
add eax, dword [edi]
mov dword [esp + 0x1c], edx
cdq
sub eax, edx
mov dword [esp + 0x18], ecx
mov ecx, eax
mov eax, dword [edi + 0xc]
add eax, dword [edi + 4]
sar ecx, 1
cdq
sub eax, edx
sar eax, 1
push eax
push ecx
lea ebx, [esp + 0x40]
call fcn.0049efc0
mov ecx, dword [eax]
mov esi, dword [eax + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x10]
mov eax, dword [edx + 9]
lea ebx, [eax + eax*2]
mov eax, dword [esp + 0x18]
add eax, ecx
cdq
sub eax, edx
mov edi, eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esi + ecx]
cdq
sub eax, edx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x24], esi
mov esi, eax
sar edi, 1
sar esi, 1
cmp byte [edx + 0xbb], 0
lea ebx, [ebx*4 + 0x551958]
je 0x49e8d8
mov eax, dword [ebx]
mov ecx, dword [ebp + 8]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x10]
cmp byte [eax + 8], 0
je 0x49e8c1
mov eax, dword [eax]
push eax
push str._02dP
jmp 0x49e8c9
mov ecx, dword [eax]
push ecx
push str._02d
push 0
push esi
mov esi, dword [ebp + 8]
push edi
call fcn.004ab630
add esp, 0x14
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
mov ecx, dword [ebx + 8]
call fcn.004aba80
mov ebx, dword [esp + 0x24]
add esp, 0x18
lea edx, [esp + 0x10]
call fcn.004a1900
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x49e7a0
call fcn.004a1770
call fcn.004a1700
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4a2e30
Capabilities:
Access the windows event log

Disassembly:
mov ecx, dword [esp + 4]
mov eax, ecx
shr eax, 0x18
sub eax, 0
je 0x4a2e56
sub eax, 1
je 0x4a2e4f
sub eax, 1
jne 0x4a2e56
mov eax, 1
jmp 0x4a2e5b
mov eax, 2
jmp 0x4a2e5b
mov eax, 4
push 0
lea edx, [esp + 0xc]
push edx
push 0
push 1
push 0
push ecx
push 0
push eax
mov eax, dword [0x553014]
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
xor eax, eax
ret

Function at 0x4a5c50
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x104
mov eax, dword [0x54d154]
xor eax, esp
mov dword [esp + 0x100], eax
push 0xfe
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call fcn.004e86a0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
cmp eax, 0x412
jg 0x4a5cc4
je 0x4a5cb3
sub eax, 0x404
je 0x4a5cac
sub eax, 0xd
jne 0x4a5ccb
push str.MS_Gothic
push 0xff
lea ecx, [esp + 8]
push ecx
jmp 0x4a5ceb
push str.PMingliu
jmp 0x4a5ce1
push str.Gulim
push 0xff
lea eax, [esp + 8]
push eax
jmp 0x4a5ceb
cmp eax, 0x804
je 0x4a5cdc
push str.Gulim
push 0xff
lea ecx, [esp + 8]
push ecx
jmp 0x4a5ceb
push str.SimSun
push 0xff
lea edx, [esp + 8]
push edx
call fcn.004e4fc0
add esp, 0xc
mov ecx, dword [esp + 0x108]
lea eax, [esp]
push eax
push 0
push 0
push 0
push 0
push 1
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_CreateFontA]
push 0
push eax
push 0x30
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.004e3834
add esp, 0x104
ret
Function at 0x4ac810
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push edi
mov edi, ecx
mov ebx, eax
mov eax, dword [edi + 0xb4]
push 0
push eax
call esi
mov eax, dword [ebx + 0x14]
push 5
push eax
mov dword [edi + 0xb4], eax
call esi
mov ecx, dword [edi + 0x14]
push 0
push ecx
call dword [sym.imp.USER32.dll_GetMenu]
mov esi, dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call esi
push 2
push eax
call esi
push 2
push eax
call esi
cmp ebx, dword [edi + 0xc0]
mov ebx, dword [sym.imp.USER32.dll_CheckMenuItem]
mov esi, eax
jne 0x4ac882
push 8
push 0xbb9
push esi
call ebx
push 0
push 0xbba
push esi
call ebx
call fcn.004ac670
pop edi
pop esi
pop ebx
ret
push 0
push 0xbb9
push esi
call ebx
push 8
push 0xbba
push esi
call ebx
call fcn.004ac670
pop edi
pop esi
pop ebx
ret

Function at 0x4ac8a0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov ecx, dword [ebp + 0xa8]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [ebp + 0xa8]
mov dword [ecx + 4], ecx
cmp eax, dword [ebp + 0xa8]
mov dword [ebp + 0xac], 0
je 0x4ac8e9
mov esi, dword [eax]
push eax
call fcn.004e3843
add esp, 4
cmp esi, dword [ebp + 0xa8]
mov eax, esi
jne 0x4ac8d4
mov eax, dword [ebp + 0x94]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp + 0x9c]
mov ebx, dword [ecx]
lea esi, [ebp + 0x98]
mov edx, ecx
mov dword [esp + 0x14], edx
lea esp, [esp]
cmp esi, esi
jne 0x4ac990
cmp ebx, dword [esp + 0x14]
je 0x4ac943
cmp ebx, dword [esi + 4]
je 0x4ac93e
mov edi, dword [ebx + 8]
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
cmp ebx, dword [esi + 4]
je 0x4ac93e
mov ebx, dword [ebx]
jmp 0x4ac910
jmp fcn.004ad800
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esi + 4]
mov dword [ecx + 4], ecx
cmp eax, dword [esi + 4]
mov dword [esi + 8], 0
je 0x4ac972
lea esp, [esp]
mov edi, dword [eax]
push eax
call fcn.004e3843
add esp, 4
cmp edi, dword [esi + 4]
mov eax, edi
jne 0x4ac960
mov eax, dword [ebp + 0x90]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, ebp
call fcn.004a54b0
pop edi
mov al, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
jmp 0x4ad870
push 0xffffffffffffffff
push 0x513348
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x54d154]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
push 0x18
push str.invalid_list_T__argument
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
call fcn.0040b300
mov dword [esp + 0x50], 0
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x24]
call fcn.0040a970
push 0x531220
lea ecx, [esp + 0x24]
push ecx
call fcn.004e6e8b
int3
Function at 0x4b65c0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4b6641
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4b65d7
push esi
sub eax, edx
push edi
add eax, 1
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
mov eax, ebx
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4b6603
sub eax, edi
lea ecx, [eax + 1]
cmp ecx, 0x7fffffff
ja 0x4b6624
mov eax, ebx
call fcn.00410160
test eax, eax
je 0x4b6629
call fcn.004b7940
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
pop edi
pop esi
jmp dword [sym.imp.USER32.dll_CloseClipboard]
ret
Function at 0x4ba0d0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0xc]
mov dword [edx], ecx
mov ecx, dword [esp + 0x2c]
mov dword [ecx], eax
add esp, 0x24
ret
Function at 0x4ba600
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51a0c8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x54d154]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x54d154]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
lea esi, [eax + 0x28c]
mov dword [esp + 0x18], edi
call fcn.004b8800
xor ebx, ebx
cmp eax, ebx
je 0x4ba785
cmp edi, ebx
je 0x4ba785
mov ecx, dword [eax + 0x28]
cmp ecx, ebx
je 0x4ba785
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov dword [esp + 0x58], ebx
lea esi, [esp + 0x1c]
call fcn.004ca2c0
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
cmp dl, bl
jne 0x4ba698
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.0040b300
lea ecx, [esp + 0x14]
push ecx
push ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x4ba6fa
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov edx, 0x280
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e3772
add esp, 4
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x4ba774
lea ecx, [esp + 0x14]
push ecx
push eax
call sub.iphlpapi.dll_GetAdaptersInfo
mov edi, dword [esp + 0x10]
cmp edi, ebx
je 0x4ba76b
mov eax, 6
cmp dword [edi + 0x190], eax
jne 0x4ba761
cmp dword [edi + 0x1a0], eax
jne 0x4ba761
lea esi, [edi + 0x1ac]
lea ecx, [ecx]
cmp dword [esp + 0x44], 0x10
mov eax, dword [esp + 0x30]
jae 0x4ba72f
lea eax, [esp + 0x30]
lea ecx, [esi + 4]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4ba752
cmp dl, bl
je 0x4ba74e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4ba752
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x4ba732
xor eax, eax
jmp 0x4ba757
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4ba7a7
mov esi, dword [esi]
cmp esi, ebx
jne 0x4ba720
mov edi, dword [edi]
cmp edi, ebx
jne 0x4ba702
mov edi, dword [esp + 0x10]
push edi
call fcn.004e3980
add esp, 4
mov dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.0040b440
xor eax, eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004e3834
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [edi + 0x194]
mov eax, dword [esp + 0x18]
mov dword [eax], edx
mov edx, dword [esp + 0x10]
mov cx, word [edi + 0x198]
push edx
mov word [eax + 4], cx
call fcn.004e3980
add esp, 4
mov dword [esp + 0x58], 0xffffffff
cmp dword [esp + 0x44], 0x10
jb 0x4ba7e7
mov eax, dword [esp + 0x30]
push eax
call fcn.004e3843
add esp, 4
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov eax, 1
jmp 0x4ba787
Function at 0x4c2160
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x50e8f3
mov eax, dword fs:[0]
push eax
mov eax, dword [0x54d154]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov edx, 0xf
mov dword [eax + 0x18], edx
mov dword [eax + 0x14], ecx
mov byte [eax + 4], cl
mov dword [esp + 0xc], ecx
mov dword [eax + 0x50], edx
mov dword [eax + 0x4c], ecx
mov byte [eax + 0x3c], cl
mov byte [esp + 0xc], 1
or edx, 0xffffffff
mov dword [eax + 0x1c], edx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], edx
mov dword [eax + 0x34], ecx
mov dword [esp + 0xc], edx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 4
Function at 0x4c95d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [edx]
push esi
mov ecx, 0x20
push edi
lea esp, [esp]
mov edi, eax
shr edi, 2
xor edi, eax
shr edi, 2
xor edi, eax
shr edi, 1
xor edi, eax
shr edi, 1
xor edi, eax
shr edi, 1
mov esi, eax
ror esi, 1
xor edi, eax
and esi, 0xfffffffe
and edi, 1
or esi, edi
sub ecx, 1
mov eax, esi
jne 0x4c95e0
pop edi
mov dword [edx], eax
pop esi
ret

Function at 0x4c9970
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
cmp dword [esi + 4], 0xffffffff
mov dword [esi + 8], eax
jne 0x4c99a3
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x4c99a3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, esi
call fcn.004c9950
xor eax, eax
ret
mov eax, 1
ret
Function at 0x4c9ec0
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x519e28
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x54d154]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp edi, ebx
jne 0x4c9f06
mov eax, 0x8009
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret
lea esi, [edi + 0x10]
cmp esi, ebx
jne 0x4c9f12
call fcn.004b7940
mov eax, dword [esi + 4]
mov edx, dword [esi]
mov dword [esp + 0x20], eax
mov eax, dword [edx + 4]
push 0xffffffffffffffff
mov ecx, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], ebx
call eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], ebx
mov ecx, dword [edi + 0x140]
cmp ecx, ebx
je 0x4c9f90
cmp dword [0x553054], ebx
je 0x4c9f90
push 1
mov dword [esp + 0x14], ebx
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
push ebx
lea eax, [esp + 0x18]
push eax
call edx
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x4c9f90
mov eax, dword [0x553054]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x4c]
call eax
mov ecx, dword [edi + 0x140]
push 1
mov dword [esp + 0x14], ebx
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
push ebx
lea eax, [esp + 0x18]
push eax
call edx
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
jne 0x4c9f61
cmp dword [edi + 8], 1
jne 0x4ca015
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x4ca00e
cmp dword [edi + 0xc], ebx
je 0x4c9fd9
call fcn.004d31c0
mov eax, dword [edi + 4]
push 1
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov edx, dword [edi + 4]
push ebx
push ebx
lea ecx, [esp + 0x20]
push ecx
push 4
push ebx
push ebx
push ebx
push 0x4004667f
push edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
jmp 0x4c9ffd
push 4
lea ecx, [esp + 0x14]
push ecx
push 0x80
push 0xffff
push eax
mov word [esp + 0x24], 1
mov word [esp + 0x26], bx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 4], 0xffffffff
mov dword [edi + 8], 0xffffffff
cmp dword [0x554058], ebx
jne 0x4ca022
call fcn.004c9c40
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x24], ebx
je 0x4ca044
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
neg eax
sbb eax, eax
add eax, 1
mov dword [esp + 0x24], eax
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret

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

Disassembly:
push ecx
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov ecx, dword [ecx + 4]
lea eax, [esp]
push eax
push esi
push ecx
mov dword [esp + 0xc], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
mov eax, esi
pop ecx
ret