joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5e0280
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x131000]
push edi
or ebp, 0xffffffff
jmp 0x5e02a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5e02a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5e0298
mov eax, 1
add ebx, ebx
jne 0x5e02bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5e02cc
jne 0x5e02eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5e02eb
dec eax
add ebx, ebx
jne 0x5e02d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5e02b0
add ebx, ebx
jne 0x5e02e7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5e033d
xor ecx, ecx
sub eax, 3
jb 0x5e0303
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5e0372
sar eax, 1
mov ebp, eax
jmp 0x5e030e
add ebx, ebx
jne 0x5e030e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5e02dc
inc ecx
add ebx, ebx
jne 0x5e031c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5e02dc
add ebx, ebx
jne 0x5e0329
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5e031e
jne 0x5e033a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5e031e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5e035c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5e034e
jmp 0x5e029e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5e035c
add edi, ecx
jmp 0x5e029e
pop esi
mov edi, esi
mov ecx, 0xa6b7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5e037a
cmp byte [edi], 0x19
jne 0x5e037a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5e037f
lea edi, [esi + 0x1ce000]
mov eax, dword [edi]
or eax, eax
je 0x5e03f7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1e4e30]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1e4f70]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5e03ac
mov ecx, edi
jns 0x5e03db
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1e4f74]
or eax, eax
je 0x5e03f1
mov dword [ebx], eax
add ebx, 4
jmp 0x5e03c9
call dword [esi + 0x1e4f84]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5e0428
cmp al, 0xef
ja 0x5e041b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5e03fd
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5e040a
mov ebp, dword [esi + 0x1e4f78]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5e045c
sub esp, 0xffffff80
jmp 0x52551d
Function at 0x401160
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d2216
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2840
call fcn.004bdb50
mov eax, dword [0x4f5160]
xor eax, esp
mov dword [esp + 0x283c], eax
push esi
push edi
mov eax, dword [0x4f5160]
xor eax, esp
push eax
lea eax, [esp + 0x2850]
mov dword fs:[0], eax
mov eax, 0x53ae00
call fcn.00401360
lea eax, [esp + 0xc]
push eax
call fcn.00401600
mov dword [esp + 0x2858], 0
mov ecx, dword [0x4f9c8c]
lea edx, [esp + 0xc]
mov dword [esp + 0x2c], edx
lea eax, [esp + 0x30]
mov dword [esp + 0x1c], ecx
mov edx, str.exec__GetArticleData
mov ecx, eax
xor edi, edi
mov dword [esp + 0x283c], 0
mov esi, 0x2800
sub edx, ecx
mov cl, byte [edx + eax]
test cl, cl
je 0x401207
mov byte [eax], cl
add eax, 1
sub esi, 1
jne 0x4011f4
jmp 0x40120b
test esi, esi
jne 0x401213
sub eax, 1
mov edi, 0x8007007a
test edi, edi
mov byte [eax], 0
je 0x401244
call fcn.00475a10
or eax, 0xffffffff
mov dword [esp + 0x2858], eax
mov dword [esp + 0xc], vtable.ServerFramework::CClassTrigger_class_CArticleManager_.0
mov dword [esp + 0x2858], eax
mov dword [esp + 0xc], vtable.ServerFramework::CTrigger.0
xor eax, eax
jmp 0x4012aa
lea ecx, [esp + 0x1c]
call fcn.0041cb80
test eax, eax
jge 0x40127b
push str.article_load_failed___
push 0x2000000
call fcn.0041d790
add esp, 8
mov dword [esp + 0x2858], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00401660
xor eax, eax
jmp 0x4012aa
mov edx, dword [0x53ae0c]
push edx
push str.article_loaded_:__d
push 0
call fcn.0041d790
add esp, 0xc
mov dword [esp + 0x2858], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00401660
mov eax, 1
mov ecx, dword [esp + 0x2850]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x283c]
xor ecx, esp
call fcn.0049d2c8
mov esp, ebp
pop ebp
ret
Function at 0x412a30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d1e86
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x284c
call fcn.004bdb50
mov eax, dword [0x4f5160]
xor eax, esp
mov dword [esp + 0x2848], eax
push edi
mov eax, dword [0x4f5160]
xor eax, esp
push eax
lea eax, [esp + 0x2858]
mov dword fs:[0], eax
xor ecx, ecx
push ecx
mov eax, 0x412b60
push eax
lea eax, [esp + 0x14]
push eax
xor edi, edi
call fcn.00413180
mov dword [esp + 0x2860], edi
mov ecx, dword [0x4f9c8c]
lea eax, [esp + 8]
mov dword [esp + 0x28], eax
mov eax, 3
lea edx, [esp + 0xc]
mov dword [esp + 0x2844], edi
cmp si, di
mov dword [esp + 0x24], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
lea edi, [esp + 0x24]
jne 0x412b01
push str.select__from__ShardService
call fcn.0041ca80
add esp, 4
test eax, eax
jge 0x412b14
push str.refresh_shard_service_type_failed___
push 0x2000000
call fcn.0041d790
add esp, 8
mov dword [esp + 0x2860], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.004131f0
xor eax, eax
jmp 0x412b3a
movzx ecx, si
push ecx
push str.select__from__ShardService_where_ShardID___d
call fcn.0041ca80
add esp, 8
jmp 0x412ad3
or eax, 0xffffffff
mov dword [esp + 0x2860], eax
mov dword [esp + 0xc], vtable.ServerFramework::CClassTrigger_class_CShardConditionManager_.0
mov dword [esp + 0x2860], eax
mov dword [esp + 0xc], vtable.ServerFramework::CTrigger.0
mov eax, 1
mov ecx, dword [esp + 0x2858]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x2848]
xor ecx, esp
call fcn.0049d2c8
mov esp, ebp
pop ebp
ret
Function at 0x444790
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 0x444839
cmp edi, eax
jne 0x444839
cmp esi, ecx
je 0x44483e
cmp esi, dword [edi + 4]
je 0x444834
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x10]
cmp eax, dword [esi + 0x14]
jb 0x444821
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x10], eax
cmp esi, dword [edi + 4]
je 0x444834
movzx ecx, byte [esi + 0xc]
mov edx, dword [esi + 0x18]
push ecx
mov ecx, ebp
call edx
test al, al
jne 0x444821
lea edx, [esp + 0x18]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], esi
call fcn.00446370
push esi
push edi
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.004456d0
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
jmp 0x4447af
lea edx, [esp + 0x10]
call fcn.00446370
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
jmp 0x4447b7
call fcn.00446230
call fcn.004462a0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x446820
Capabilities:
Create thread

Disassembly:
push ecx
mov eax, dword [0x4f9cf8]
test eax, eax
je 0x446864
mov eax, dword [eax + 0xbc]
push 0
push 0
push 0
push 0
mov dword [0x4f9cdc], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
lea ecx, [esp]
push ecx
push 0
push 0
push 0x446960
push 0
push 0
mov dword [0x4f9ce4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4f9ce0], eax
pop ecx
ret
Function at 0x453ec0
Capabilities:
Access the windows event log

Disassembly:
mov ecx, dword [esp + 4]
mov eax, ecx
shr eax, 0x18
sub eax, 0
je 0x453ee6
sub eax, 1
je 0x453edf
sub eax, 1
jne 0x453ee6
mov eax, 1
jmp 0x453eeb
mov eax, 2
jmp 0x453eeb
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 [0x4f9d04]
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
xor eax, eax
ret
Function at 0x455fc0
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 0x456004
mov edi, dword [esp + 0x14]
lea ecx, [ebx + 0x9c]
cmp eax, ecx
jne 0x45617a
cmp edi, dword [esp + 0x2c]
je 0x456184
test eax, eax
je 0x45617a
cmp edi, dword [eax + 4]
je 0x45617f
mov eax, dword [edi + 0x10]
movzx ecx, word [eax + 4]
push ecx
mov eax, ebx
call fcn.00456190
mov edx, dword [edi + 0x10]
mov esi, eax
movzx eax, word [edx + 6]
push eax
mov eax, ebx
call fcn.00456190
test esi, esi
mov edi, eax
je 0x456165
test edi, edi
je 0x456165
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.00456820
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.00456820
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 + 0x4f88f0]
je 0x456138
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 0x456121
mov eax, dword [eax]
push eax
push str._02dP
jmp 0x456129
mov ecx, dword [eax]
push ecx
push str._02d
push 0
push esi
mov esi, dword [ebp + 8]
push edi
call fcn.004642b0
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.00464700
mov ebx, dword [esp + 0x24]
add esp, 0x18
lea edx, [esp + 0x10]
call fcn.00459180
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x456000
call fcn.00458ff0
call fcn.00458f80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x45c460
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 0x45c4d2
push 8
push 0xbb9
push esi
call ebx
push 0
push 0xbba
push esi
call ebx
call fcn.0045c2c0
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.0045c2c0
pop edi
pop esi
pop ebx
ret

Function at 0x45c4f0
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 0x45c539
mov esi, dword [eax]
push eax
call fcn.0049d3aa
add esp, 4
cmp esi, dword [ebp + 0xa8]
mov eax, esi
jne 0x45c524
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 0x45c5e0
cmp ebx, dword [esp + 0x14]
je 0x45c593
cmp ebx, dword [esi + 4]
je 0x45c58e
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 0x45c58e
mov ebx, dword [ebx]
jmp 0x45c560
jmp fcn.0045d580
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 0x45c5c2
lea esp, [esp]
mov edi, dword [eax]
push eax
call fcn.0049d3aa
add esp, 4
cmp edi, dword [esi + 4]
mov eax, edi
jne 0x45c5b0
mov eax, dword [ebp + 0x90]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, ebp
call fcn.0045dfc0
pop edi
mov al, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
jmp 0x45d5f0
push 0xffffffffffffffff
push 0x4cbf18
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4f5160]
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.00402db0
mov dword [esp + 0x50], 0
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x24]
call fcn.004025f0
push 0x4e24cc
lea ecx, [esp + 0x24]
push ecx
call fcn.004a106b
int3
Function at 0x45e770
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x104
mov eax, dword [0x4f5160]
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.004a2b10
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
cmp eax, 0x412
jg 0x45e7e4
je 0x45e7d3
sub eax, 0x404
je 0x45e7cc
sub eax, 0xd
jne 0x45e7eb
push str.MS_Gothic
push 0xff
lea ecx, [esp + 8]
push ecx
jmp 0x45e80b
push str.PMingliu
jmp 0x45e801
push str.Gulim
push 0xff
lea eax, [esp + 8]
push eax
jmp 0x45e80b
cmp eax, 0x804
je 0x45e7fc
push str.Gulim
push 0xff
lea ecx, [esp + 8]
push ecx
jmp 0x45e80b
push str.SimSun
push 0xff
lea edx, [esp + 8]
push edx
call fcn.0049f01c
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.0049d2c8
add esp, 0x104
ret
Function at 0x469890
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x469911
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 0x4698a7
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 0x4698d3
sub eax, edi
lea ecx, [eax + 1]
cmp ecx, 0x7fffffff
ja 0x4698f4
mov eax, ebx
call fcn.00402d00
test eax, eax
je 0x4698f9
call fcn.00475a10
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 0x46da60
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 0x46da70
pop edi
mov dword [edx], eax
pop esi
ret

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

Disassembly:
cmp dword [esi + 4], 0xffffffff
mov dword [esi + 8], eax
jne 0x46ded3
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 0x46ded3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, esi
call fcn.0046de80
xor eax, eax
ret
mov eax, 1
ret
Function at 0x46e3f0
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x4d0738
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4f5160]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp edi, ebx
jne 0x46e436
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 0x46e442
call fcn.00475a10
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 0x46e4c0
cmp dword [0x4fad50], ebx
je 0x46e4c0
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 0x46e4c0
mov eax, dword [0x4fad50]
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 0x46e491
cmp dword [edi + 8], 1
jne 0x46e545
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x46e53e
cmp dword [edi + 0xc], ebx
je 0x46e509
call fcn.00494410
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 0x46e52d
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 [0x4fad54], ebx
jne 0x46e552
call fcn.0046e170
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x24], ebx
je 0x46e574
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 0x46e7f0
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
Function at 0x46f3b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 0x1c]
sub eax, 0
je 0x46f3e1
sub eax, 1
jne 0x46f3eb
mov ecx, dword [ebx + 0x98]
cmp ecx, dword [ebx + 0x9c]
lea eax, [ebx + 0x60]
jne 0x46f3da
mov eax, 6
pop esi
pop ecx
ret
call fcn.0046d840
jmp 0x46f3eb
movzx edx, word [esi + 0x103e]
mov dword [esi + 0x24], edx
push ebp
push edi
lea ebp, [ebx + 0x14c]
push ebp
xor edi, edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [esi + 0x20]
mov edx, dword [ebx + 4]
push edi
push esi
push edi
lea eax, [esp + 0x18]
push eax
push ecx
add esi, 0x24
push esi
push edx
mov dword [esp + 0x28], edi
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x46f475
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x46f433
mov eax, edi
pop edi
pop ebp
pop esi
pop ecx
ret
cmp eax, 0x2733
je 0x46f459
cmp eax, 8
je 0x46f459
cmp eax, 0x2747
je 0x46f459
push ebp
mov edi, 0x8002
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, edi
pop edi
pop ebp
pop esi
pop ecx
ret
push eax
push str.WSASend_____NERR_TOO_MANY_OUTSTANDING:__d
push 0
call fcn.00481ce0
add esp, 0xc
push ebp
mov edi, 0x8005
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, edi
pop edi
pop ebp
pop esi
pop ecx
ret

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

Disassembly:
mov eax, dword [ebx + 0xdc]
mov ecx, dword [ebx + 0xe0]
sub esp, 8
cmp eax, ecx
push ebp
push esi
lea esi, [ebx + 0xa4]
jne 0x46fa82
xor ebp, ebp
mov dword [esi + 0x38], ebp
jmp 0x46fa9d
sub eax, ecx
push edi
mov edi, eax
mov eax, dword [esi + 0x34]
push edi
add ecx, eax
push ecx
push eax
call fcn.0049f880
add esp, 0xc
mov dword [esi + 0x38], edi
xor ebp, ebp
pop edi
mov eax, esi
mov dword [esi + 0x3c], ebp
call fcn.0046d840
mov ecx, dword [ebx + 0xc4]
push ebp
push esi
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
mov eax, dword [ebx + 4]
push ecx
lea edx, [ebx + 0xc8]
push edx
push eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
pop esi
pop ebp
jne 0x46fb0c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x46fb0c
cmp eax, 0x2733
je 0x46fb03
cmp eax, 8
je 0x46fb03
cmp eax, 0x2747
je 0x46fb03
mov eax, 0x8002
add esp, 8
ret
mov eax, 0x8005
add esp, 8
ret
xor eax, eax
add esp, 8
ret
Function at 0x473ad0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, eax
cmp dword [esi + 4], 0xffffffff
mov byte [esi + 0xa8], 1
jne 0x473b15
push 1
push 0
push 0
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x473b15
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
pop esi
xor eax, eax
pop ebp
ret 4
xor eax, eax
test bp, bp
push edi
lea edi, [esi + 0xb8]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov word [edi], 2
jbe 0x473b53
mov ecx, dword [esi + 4]
push 4
lea eax, [esp + 0x14]
push eax
push 4
push 0xffff
push ecx
mov dword [esp + 0x24], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
push ebp
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi + 4]
push 0x10
push edi
push edx
mov word [esi + 0xba], ax
mov dword [esi + 0xbc], 0
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
pop edi
jne 0x473b8b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop esi
xor eax, eax
pop ebp
ret 4
call fcn.00473dc0
test eax, eax
je 0x473b0e
mov eax, esi
call fcn.00473df0
pop esi
mov eax, 1
pop ebp
ret 4