joyce8/EMBER2024-capa huggingface dataset:
Function at 0x510960
Capabilities:
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x510970
sub eax, edx
mov edx, eax
mov eax, 0x1505
mov ecx, 0
je 0x5109a6
push ebx
push edi
lea esp, [esp]
movsx edi, byte [ecx + esi]
mov ebx, eax
shl ebx, 5
add ebx, eax
add edi, ebx
inc ecx
mov eax, edi
cmp ecx, edx
jb 0x510990
pop edi
pop ebx
pop esi
ret

Function at 0x510ec0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x6628ee
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x70903c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.CItemManager.0
mov dword [esp + 0x18], 2
call fcn.00510a30
mov eax, dword [esi + 0x30]
xor ebx, ebx
cmp eax, ebx
je 0x510f0e
push eax
call fcn.00613a18
add esp, 4
mov eax, dword [esi + 0x24]
push eax
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call fcn.00613a18
add esp, 4
lea ecx, [esi + 4]
mov byte [esp + 0x18], bl
call fcn.00568070
mov dword [esi], vtable.CSingleton_class_CItemManager_.0
mov dword [0x70f79c], ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x531fb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x664c58
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x70903c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 8]
call fcn.0051c710
mov ecx, dword [esp + 0x30]
push 0
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x34], 0
call fcn.00597ee0
add esp, 0xc
test al, al
jne 0x53201d
lea ecx, [esp + 8]
call fcn.00531ef0
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret 4
add esi, 0xd0
lea edx, [esp + 8]
push esi
push edx
call fcn.005984a0
add esp, 8
lea ecx, [esp + 8]
call fcn.00531ef0
mov al, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret 4
Function at 0x53ba70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x668293
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x70903c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
xor eax, eax
mov ecx, 0xf
mov dword [esi + 0x18], ecx
mov dword [esi + 0x14], eax
mov byte [esi + 4], al
mov dword [esi + 0x34], ecx
mov dword [esi + 0x30], eax
mov dword [esp + 0x14], eax
mov byte [esi + 0x20], al
lea ecx, [esi + 0x44]
mov byte [esp + 0x14], 1
call fcn.0044fb40
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x542dc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x665f18
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x70903c]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x70903c]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov eax, dword [esp + 0x80]
cmp dword [eax], 0x54525059
mov edi, ecx
mov ecx, dword [esp + 0x88]
jne 0x542fcf
cmp byte [eax + 4], 0xd
lea esi, [eax + 4]
jne 0x542fc1
cmp byte [esi + 1], 0xa
jne 0x542fc1
lea ecx, [esp + 0x14]
add esi, 2
call fcn.0044fb40
xor ebx, ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x78], ebx
call fcn.005892e0
mov eax, dword [esp + 0x84]
push esi
add eax, 0xfffffffa
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x80], 1
call fcn.00589830
push ebx
lea ecx, [esp + 0x30]
call fcn.005892a0
push 0xffffffffffffffff
push ebx
lea esi, [edi + 0x1c]
push eax
mov ecx, esi
call fcn.00417560
cmp dword [esi + 0x18], 0x10
jb 0x542e80
mov esi, dword [esi + 4]
jmp 0x542e83
add esi, 4
push esi
call fcn.006165e1
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [edi + 0x3c], eax
mov ebp, 1
call fcn.00589280
cmp eax, ebp
jbe 0x542fa7
push 0x68c9f4
lea ecx, [esp + 0x18]
push ecx
push ebp
lea ecx, [esp + 0x38]
call fcn.00589630
test al, al
je 0x542f95
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x20]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x542ee3
call fcn.00615e0c
mov ecx, dword [esp + 0x20]
push ecx
call fcn.005899a0
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x24]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add esp, 4
add eax, edx
jne 0x542f12
call fcn.00615e0c
mov ecx, dword [esp + 0x20]
push 0xffffffffffffffff
push ebx
push ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
call fcn.00417560
mov eax, dword [esp + 0x20]
mov byte [esp + 0x78], 2
mov esi, eax
cmp eax, dword [esp + 0x24]
jbe 0x542f49
call fcn.00615e0c
mov eax, dword [esp + 0x14]
push esi
push eax
lea edx, [esp + 0x50]
push edx
lea ecx, [esp + 0x20]
call fcn.00542c30
mov eax, dword [esp + 0x54]
mov esi, 0x10
cmp dword [esp + 0x68], esi
jae 0x542f70
lea eax, [esp + 0x54]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, edi
call fcn.00542cb0
mov byte [esp + 0x78], 1
cmp dword [esp + 0x68], esi
jb 0x542f95
mov edx, dword [esp + 0x54]
push edx
call fcn.00613a18
add esp, 4
lea ecx, [esp + 0x2c]
inc ebp
call fcn.00589280
cmp ebp, eax
jb 0x542ea5
lea ecx, [esp + 0x2c]
mov byte [esp + 0x78], bl
call fcn.00589300
lea ecx, [esp + 0x14]
call fcn.0044fcb0
mov al, 1
jmp 0x542fd1
push ecx
push str.CProperty::ReadFromMemory:_File_format_error_after_FourCC:__s_n
call fcn.00587390
add esp, 8
xor al, al
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00613e6e
add esp, 0x68
ret 0xc
Function at 0x558cc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x144
fld dword [esp + 0x148]
push ebx
fld st(0)
push esi
fld dword [esp + 0x15c]
push edi
fld st(0)
lea edi, [esp + 0x94]
faddp st(2)
lea esi, [esp + 0x30]
fld qword [0x676648]
mov ebx, 8
fmul st(2), st(0)
fxch st(2)
fstp dword [esp + 0xc]
fld dword [esp + 0x158]
fld st(0)
fld dword [esp + 0x164]
fld st(0)
faddp st(2)
fxch st(1)
fmulp st(4)
fxch st(3)
fstp dword [esp + 0x10]
fld dword [esp + 0x15c]
fld st(0)
fld dword [esp + 0x168]
fld st(0)
faddp st(2)
fxch st(1)
fmul qword [0x676648]
fstp dword [esp + 0x14]
fxch st(5)
fst dword [esp + 0x30]
fst dword [esp + 0x48]
fst dword [esp + 0x60]
fstp dword [esp + 0x78]
fxch st(1)
fst dword [esp + 0x34]
fst dword [esp + 0x40]
fst dword [esp + 0x64]
fstp dword [esp + 0x70]
fst dword [esp + 0x38]
fst dword [esp + 0x44]
fst dword [esp + 0x50]
fstp dword [esp + 0x5c]
fst dword [esp + 0x3c]
fst dword [esp + 0x54]
fst dword [esp + 0x6c]
fstp dword [esp + 0x84]
fst dword [esp + 0x4c]
fst dword [esp + 0x58]
fst dword [esp + 0x7c]
fstp dword [esp + 0x88]
fst dword [esp + 0x68]
fst dword [esp + 0x74]
fst dword [esp + 0x80]
fstp dword [esp + 0x8c]
fld dword [esp + 0x14]
fld dword [esp + 0x10]
fld dword [esp + 0xc]
jmp 0x558db9
fxch st(2)
fsubr dword [esi]
fstp dword [esp + 0x24]
mov eax, dword [esp + 0x24]
fsubr dword [esi + 4]
fstp dword [esp + 0x28]
mov ecx, dword [esp + 0x28]
fsubr dword [esi + 8]
mov dword [esi], eax
lea eax, [esp + 0x16c]
push eax
push esi
fstp dword [esp + 0x34]
mov edx, dword [esp + 0x34]
mov dword [esi + 4], ecx
push esi
mov dword [esi + 8], edx
call fcn.005db862
fld dword [esi]
fld dword [esp + 0xc]
add esi, 0xc
fld st(0)
add edi, 0x18
sub ebx, 1
faddp st(2)
fxch st(1)
fstp dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
fld dword [esi - 8]
fld dword [esp + 0x10]
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x1c]
mov edx, dword [esp + 0x1c]
fld dword [esp + 0x14]
fld st(0)
fadd dword [esi - 4]
mov dword [esi - 0xc], ecx
mov ecx, dword [0x6e77dc]
mov dword [esi - 8], edx
fstp dword [esp + 0x20]
mov eax, dword [esp + 0x20]
mov dword [esi - 4], eax
fld dword [esi - 0xc]
fstp dword [edi - 0x1c]
mov dword [edi - 0x10], ecx
fld dword [esi - 8]
fstp dword [edi - 0x18]
fld dword [esi - 4]
fstp dword [edi - 0x14]
fldz
fst dword [edi - 0xc]
fstp dword [edi - 8]
jne 0x558db7
fstp st(0)
lea edx, [esp + 0x90]
push 8
fstp st(0)
push edx
fstp st(0)
call fcn.0055c500
add esp, 8
test al, al
je 0x558ee9
mov ecx, dword [0x70f780]
push ebx
push ebx
call fcn.00556d30
mov ecx, dword [0x70f780]
push ebx
push 1
call fcn.00556d30
mov ecx, dword [0x70f780]
push 0x142
call fcn.00556dc0
mov eax, dword [0x71930c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
mov esi, dword [0x70f780]
push eax
call edx
push eax
push 0x100
mov ecx, esi
call fcn.00557500
push 6
call fcn.0055c4e0
mov ecx, dword [0x70f780]
add esp, 4
push 0xc
push ebx
push 8
push ebx
push 4
call fcn.00557010
pop edi
pop esi
pop ebx
add esp, 0x144
ret 0x58
Function at 0x5591c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x66698b
mov eax, dword fs:[0]
push eax
sub esp, 0x110
push esi
push edi
mov eax, dword [0x70903c]
xor eax, esp
push eax
lea eax, [esp + 0x11c]
mov dword fs:[0], eax
fld dword [esp + 0x13c]
sub esp, 0xc
fstp dword [esp + 8]
lea eax, [esp + 0xa8]
fld dword [esp + 0x144]
fstp dword [esp + 4]
fld dword [esp + 0x140]
fstp dword [esp]
push eax
call fcn.005dc7ca
fld dword [esp + 0x140]
sub esp, 0xc
fst dword [esp + 8]
lea ecx, [esp + 0x68]
fst dword [esp + 4]
fstp dword [esp]
push ecx
call fcn.005dc73a
lea edx, [esp + 0x9c]
push edx
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0xe4]
push ecx
call fcn.005dbe6d
mov eax, dword [esp + 0x130]
mov ecx, 0x10
lea esi, [esp + 0xdc]
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
test eax, eax
je 0x55927f
push eax
lea edx, [esp + 0x20]
push edx
mov eax, edx
push eax
call fcn.005dbe6d
mov edx, dword [esp + 0x144]
lea ecx, [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.00559000
mov esi, dword [esp + 0x12c]
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
lea ecx, [esp + 0x10]
push ecx
push esi
mov dword [esp + 0x12c], 0
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
lea ecx, [esp + 0xc]
push ecx
push esi
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 0x18]
mov edi, dword [0x70f780]
push esi
call ecx
push eax
mov ecx, edi
call fcn.00556dc0
mov edx, dword [esp + 0x10]
mov ecx, dword [0x70f780]
push 0
push edx
call fcn.00556f50
mov eax, dword [esp + 0xc]
mov ecx, dword [0x70f780]
push 0x18
push eax
push 0
call fcn.00556f00
mov ecx, dword [esi]
mov edx, dword [ecx + 0x10]
mov edi, dword [0x70f780]
push esi
call edx
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x14]
push 0
push esi
call ecx
push eax
push 0
push 4
mov ecx, edi
call fcn.00557010
lea ecx, [esp + 0x14]
mov dword [esp + 0x124], 0xffffffff
call fcn.005590e0
mov ecx, dword [esp + 0x11c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x11c
ret 0x1c
Function at 0x566570
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x28]
push edi
test ecx, ecx
jle 0x5665a2
mov eax, dword [esi + 0x24]
sub eax, ecx
test eax, eax
jle 0x566595
mov edx, dword [esi + 0x1c]
push eax
lea eax, [edx + ecx]
push eax
push edx
call fcn.0061a1c0
add esp, 0xc
mov ecx, dword [esi + 0x28]
sub dword [esi + 0x24], ecx
mov dword [esi + 0x28], 0
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x20]
sub eax, ecx
test eax, eax
jle 0x566604
mov edx, dword [esi + 0x1c]
push 0
push eax
mov eax, dword [esi + 0x5c]
add edx, ecx
push edx
push eax
call sub.WS2_32.dll_recv
mov edi, eax
test edi, edi
jge 0x5665d7
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x5665d9
pop edi
xor al, al
pop esi
ret
je 0x5665d2
mov ecx, esi
call fcn.005664a0
test al, al
je 0x566601
mov eax, dword [esi + 0x1c]
add eax, dword [esi + 0x24]
cmp byte [esi + 0x4c], 0
je 0x566601
mov ecx, dword [esi + 0x54]
mov edx, dword [ecx + 4]
push edi
add ecx, 4
push eax
push eax
mov eax, dword [edx + 0x1c]
call eax
add dword [esi + 0x24], edi
pop edi
mov al, 1
pop esi
ret

Function at 0x5666a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
push edi
mov esi, ecx
call fcn.00566650
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov dword [esi + 0x60], ecx
mov edx, dword [eax + 4]
lea edi, [esi + 0x60]
mov dword [edi + 4], edx
mov ecx, dword [eax + 8]
push 0
mov dword [edi + 8], ecx
mov edx, dword [eax + 0xc]
push 1
push 2
mov dword [edi + 0xc], edx
call sub.WS2_32.dll_socket
mov dword [esi + 0x5c], eax
cmp eax, 0xffffffff
je 0x566723
lea ecx, [esp + 8]
push ecx
push 0x8004667e
push eax
mov dword [esp + 0x14], 1
call sub.WS2_32.dll_ioctlsocket
mov ecx, edi
call fcn.0058ced0
mov edx, dword [esi + 0x5c]
push eax
push edi
push edx
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x56673b
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x56673b
push str.error___WSAEWOULDBLOCK
call fcn.00587290
add esp, 4
mov ecx, esi
call fcn.00566650
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
pop edi
xor al, al
pop esi
pop ecx
ret 8
push 0
call fcn.0061a0a7
mov ecx, eax
mov eax, dword [esp + 0x18]
mov edi, edx
cdq
add esp, 4
add ecx, eax
adc edi, edx
mov dword [esi + 0xc], edi
pop edi
mov dword [esi + 8], ecx
mov al, 1
pop esi
pop ecx
ret 8

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

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.005668b0
mov edi, eax
test edi, edi
jle 0x566a1b
call fcn.005664a0
test al, al
je 0x5669f5
mov eax, dword [esi + 0x38]
add eax, dword [esi + 0x2c]
cmp byte [esi + 0x4c], 0
je 0x5669f5
mov ecx, dword [esi + 0x50]
mov edx, dword [ecx + 4]
push edi
add ecx, 4
push eax
push eax
mov eax, dword [edx + 0x1c]
call eax
mov ecx, dword [esi + 0x2c]
add ecx, dword [esi + 0x38]
mov edx, dword [esi + 0x5c]
push 0
push edi
push ecx
push edx
call sub.WS2_32.dll_send
test eax, eax
jge 0x566a11
pop edi
xor al, al
pop esi
ret
add dword [esi + 0x38], eax
mov ecx, esi
call fcn.00566610
pop edi
mov al, 1
pop esi
ret
Function at 0x566a20
Capabilities:
Get socket status

Disassembly:
sub esp, 0x210
push esi
mov esi, ecx
mov eax, dword [esi + 0x5c]
cmp eax, 0xffffffff
je 0x566b6d
mov dword [esp + 0x114], eax
mov dword [esp + 0x10], eax
mov ecx, 1
lea eax, [esp + 4]
push eax
push 0
mov dword [esp + 0x118], ecx
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x11c]
push edx
push 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
je 0x566b6d
cmp byte [esi + 0x48], 0
jne 0x566ae7
mov ecx, dword [esi + 0x5c]
lea eax, [esp + 0xc]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x566ab1
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
mov byte [esi + 0x48], 1
call eax
pop esi
add esp, 0x210
ret
push 0
call fcn.0061a0a7
add esp, 4
cmp edx, dword [esi + 0xc]
jl 0x566b6d
jg 0x566acf
cmp eax, dword [esi + 8]
jbe 0x566b6d
mov ecx, esi
call fcn.00566650
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
pop esi
add esp, 0x210
ret
mov edx, dword [esi + 0x5c]
lea ecx, [esp + 0xc]
push ecx
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x566b30
mov eax, dword [esi + 0x34]
cmp eax, dword [esi + 0x38]
jle 0x566b30
mov ecx, esi
call fcn.005669c0
test al, al
jne 0x566b30
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x566b30
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
mov ecx, esi
call fcn.00566650
pop esi
add esp, 0x210
ret
mov edx, dword [esi + 0x5c]
lea ecx, [esp + 0x110]
push ecx
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x566b50
mov ecx, esi
call fcn.00566570
test al, al
je 0x566b5d
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
mov ecx, esi
call edx
test al, al
jne 0x566b6d
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
mov ecx, esi
call fcn.00566650
pop esi
add esp, 0x210
ret
Function at 0x566d90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x6672b1
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x70903c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
lea ecx, [esi + 0x4c]
mov dword [esi], vtable.CNetworkStream.0
call fcn.0058ce70
xor ebx, ebx
lea ecx, [esi + 0x60]
mov dword [esp + 0x1c], ebx
call fcn.005765d0
lea edi, [esi + 0x78]
mov ecx, edi
mov byte [esp + 0x1c], 1
call fcn.004de9f0
push ebx
push 0x8000
mov ecx, edi
mov byte [esp + 0x24], 2
mov dword [esi + 0x5c], 0xffffffff
mov byte [esi + 0x48], bl
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x70], ebx
mov byte [esi + 0x74], bl
call fcn.004df290
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
jne 0x566e41
call fcn.00615e0c
mov ecx, dword [edi + 0xc]
push 0x8000
push 0x6e7a18
push ecx
call fcn.00613630
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x5687a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x667338
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x70903c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x40]
cmp dword [eax + 0x18], 0x10
mov ecx, dword [eax + 0x14]
jb 0x5687d8
mov eax, dword [eax + 4]
jmp 0x5687db
add eax, 4
push ecx
push eax
call fcn.00567170
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x4c]
add esp, 8
push eax
lea ecx, [esp + 0x1c]
call fcn.0044fbb0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xc]
push edx
lea ecx, [esi + 0x20]
mov dword [esp + 0x40], 0
call fcn.005683b0
lea ecx, [esp + 0x18]
call fcn.0044fcb0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret 8
Function at 0x56bd70
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x70903c]
xor eax, esp
mov dword [esp + 0x190], eax
push esi
mov esi, ecx
call fcn.0056bd50
mov ecx, esi
call fcn.00587f50
lea eax, [esp + 4]
push eax
push 0x101
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x56bdbe
xor al, al
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00613e6e
add esp, 0x194
ret
mov ecx, dword [esp + 0x194]
mov al, 1
mov byte [esi + 4], al
pop esi
xor ecx, esp
call fcn.00613e6e
add esp, 0x194
ret

Function at 0x56c9e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x66780f
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x70903c]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
call fcn.0055c4c0
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov dword [esi + 4], vtable.CLightBase.0
mov eax, esi
mov dword [esi + 8], vtable.CSingleton_class_CLightManager_.0
mov dword [0x74b804], eax
push 4
mov byte [esp + 0x30], 2
mov dword [esi], vtable.CLightManager.2.0
mov dword [esi + 4], vtable.CLightManager.1.0
mov dword [esi + 8], vtable.CLightManager.0
lea edi, [esi + 0xc]
call fcn.00613a23
add esp, 4
cmp eax, ebx
je 0x56ca5a
mov dword [eax], edi
jmp 0x56ca5c
xor eax, eax
mov dword [edi], eax
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
lea edx, [esp + 0x13]
push edx
lea eax, [esp + 0x17]
mov ebx, 3
lea ecx, [esi + 0x2c]
push eax
mov byte [esp + 0x34], bl
call fcn.00567670
lea ecx, [esi + 0x4c]
mov byte [esp + 0x2c], 4
call fcn.0051c710
lea ecx, [esi + 0x78]
mov byte [esp + 0x2c], 5
call fcn.0056c440
fldz
fst dword [esp + 0x18]
mov dword [esi + 0x70], ebx
mov ecx, dword [esp + 0x18]
fst dword [esp + 0x1c]
mov edx, dword [esp + 0x1c]
fstp dword [esp + 0x20]
mov eax, dword [esp + 0x20]
mov dword [esi + 0x64], ecx
mov dword [esi + 0x68], edx
mov dword [esi + 0x6c], eax
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x20
ret

Function at 0x56ce80
Capabilities:
Hide graphical window

Disassembly:
mov al, byte [esp + 4]
mov byte [ecx + 0x19], al
test al, al
je 0x56ce9a
mov eax, dword [ecx + 4]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret 4
mov ecx, dword [ecx + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
ret 4

Function at 0x56dc70
Capabilities:
Log keystrokes via input method manager

Disassembly:
mov eax, dword [0x74cd2c]
push esi
push 0
push 0
push 0
push 0
push eax
push 0x74cd30
mov esi, ecx
mov ecx, dword [0x74d54c]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, dword [esi + 8]
jl 0x56dcb8
mov edx, dword [esp + 8]
push 0
push 4
push 0x15
push edx
call sub.IMM32.dll_ImmNotifyIME
mov dword [0x74d534], 0
pop esi
ret 4
mov eax, dword [esp + 8]
push 0x800
add esi, 0x2e
push esi
push 8
push eax
call sub.IMM32.dll_ImmGetCompositionStringW
shr eax, 1
mov dword [0x74d534], eax
pop esi
ret 4
Function at 0x56dce0
Capabilities:
Log keystrokes via input method manager

Disassembly:
sub esp, 0x404
mov eax, dword [0x70903c]
xor eax, esp
mov dword [esp + 0x400], eax
mov eax, dword [esp + 0x408]
push esi
push 0x400
lea ecx, [esp + 8]
push ecx
push 0x10
push eax
call sub.IMM32.dll_ImmGetCompositionStringW
mov esi, eax
xor ecx, ecx
test esi, esi
jle 0x56dd27
mov al, byte [esp + ecx + 4]
cmp al, 1
je 0x56dd27
cmp al, 3
je 0x56dd27
inc ecx
cmp ecx, esi
jl 0x56dd16
cmp ecx, esi
mov edx, ecx
jge 0x56dd3c
mov al, byte [esp + ecx + 4]
cmp byte [esp + edx + 4], al
jne 0x56dd3c
inc edx
cmp edx, esi
jl 0x56dd31
mov dword [0x74b838], ecx
mov ecx, dword [esp + 0x404]
pop esi
xor ecx, esp
mov dword [0x74b834], edx
call fcn.00613e6e
add esp, 0x404
ret 4
Function at 0x56dfe0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x118
mov eax, dword [0x70903c]
xor eax, esp
mov dword [esp + 0x114], eax
mov ecx, dword [0x74cd0c]
cmp ecx, 0xe00e0804
je 0x56e127
cmp ecx, 0xe0090404
je 0x56e127
mov eax, dword [0x74d540]
test eax, eax
je 0x56e127
push ebx
mov edx, 0x404
xor bl, bl
cmp cx, dx
jne 0x56e13e
push ebp
push esi
push edi
mov ecx, 0xa
mov esi, str.softwaremicrosoftwindowscurrentversion_
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
and eax, 0xffff0000
movsw word es:[edi], word [esi]
mov ebp, eax
movsb byte es:[edi], byte [esi]
mov eax, str.MSTCIPH
cmp ebp, 0x5010000
jae 0x56e05f
mov eax, str.TINTLGNT
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x56e061
lea edi, [esp + 0x20]
sub eax, edx
dec edi
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x56e070
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x10]
push eax
and ecx, 3
push 0x20019
rep movsb byte es:[edi], byte [esi]
push 0
lea ecx, [esp + 0x2c]
push ecx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x56e10c
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push str.Keyboard_Mapping
push edx
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x56e101
mov al, byte [esp + 0x14]
cmp ebp, 0x5000000
ja 0x56e0e9
cmp al, 0x22
je 0x56e0ff
cmp al, 0x23
je 0x56e0ff
cmp ebp, 0x5010000
je 0x56e0f9
cmp ebp, 0x5020000
jne 0x56e101
sub al, 0x22
cmp al, 2
ja 0x56e101
mov bl, 1
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00613e6e
add esp, 0x118
ret
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00613e6e
add esp, 0x118
ret
mov ecx, dword [esp + 0x118]
mov al, bl
pop ebx
xor ecx, esp
call fcn.00613e6e
add esp, 0x118
ret