joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fa430
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0x20]
mov eax, dword [ebx]
cmp eax, 0x40
jne 0x4fa451
call fcn.004fecd0
mov dword [ebx], 0x2745
mov dword [ebx + 4], eax
mov eax, dword [ebx]
test eax, eax
jne 0x4fa52b
push esi
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x4fa4bd
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x4fa4bd
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp + 0x20], eax
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
push eax
push 0
push dword [ebp + 0xc]
call sub.MSWSOCK.dll_GetAcceptExSockaddrs
mov eax, dword [ebp + 0x20]
cmp eax, dword [esi]
jbe 0x4fa4ab
call fcn.004fecd0
mov dword [ebx], 0x2726
mov dword [ebx + 4], eax
jmp 0x4fa4bd
push eax
push dword [ebp - 4]
push edi
call fcn.00529780
mov eax, dword [ebp + 0x20]
add esp, 0xc
mov dword [esi], eax
mov esi, dword [ebp + 0x1c]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
cmp esi, 0xffffffff
jne 0x4fa4e0
call fcn.004fecd0
pop edi
pop esi
mov dword [ebx], 0x2719
mov dword [ebx + 4], eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea eax, [ebp - 0x14]
push eax
push 0x700b
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.004fecd0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
test edi, edi
jne 0x4fa529
lea ecx, [ebp - 0x10]
call fcn.004e2e60
mov ecx, dword [eax]
mov dword [ebx], ecx
mov eax, dword [eax + 4]
mov dword [ebx + 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4fcfa0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x4fcfd1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x4fcfc0
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x4fdb60
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
movzx eax, byte [edi + 8]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 9]
xor edx, eax
movzx eax, byte [edi + 0xa]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 0xb]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [ebx + 0x18]
and ecx, eax
lea edx, [ecx*8]
mov ecx, dword [ebx + 0xc]
add ecx, edx
mov eax, dword [ecx]
cmp dword [ecx + 4], edi
jne 0x4fdbd3
cmp eax, edi
jne 0x4fdbcb
mov eax, dword [ebx + 4]
mov dword [ecx], eax
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 4]
mov dword [edx + ecx + 4], eax
jmp 0x4fdbdb
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x4fdbdb
cmp eax, edi
jne 0x4fdbde
mov eax, dword [edi]
mov dword [ecx], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
mov esi, dword [edi]
push 0xc
push edi
mov dword [eax], esi
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
dec dword [ebx + 8]
call fcn.00511c7f
mov eax, dword [ebp + 8]
add esp, 8
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4fe090
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [esi + 0x18]
xor ecx, eax
imul eax, ecx, 0x1000193
and edx, eax
mov eax, dword [esi + 0xc]
mov esi, dword [esi + 4]
mov ecx, dword [eax + edx*8]
add edx, edx
mov ebx, dword [eax + edx*4]
lea edx, [eax + edx*4]
cmp ebx, esi
jne 0x4fe0eb
mov eax, esi
jmp 0x4fe0f0
mov eax, dword [edx + 4]
mov eax, dword [eax]
cmp ecx, eax
je 0x4fe10b
mov eax, dword [ecx + 8]
cmp eax, dword [edi]
je 0x4fe0ff
mov ecx, dword [ecx]
jmp 0x4fe0e3
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], ecx
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4fed80
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
jne 0x4feda2
call fcn.004fecd0
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 4], eax
or eax, edi
mov dword [ecx], 0x2719
pop edi
pop ebp
ret
push ebx
push esi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [ebp + 8]
mov ebx, eax
mov dword [esi], ecx
call fcn.004fecd0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, dword [ebp + 0x14]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
jne 0x4fee06
push 0x5e4f30
push 0x4d7a50
push 0x5e4f2c
call fcn.0050f8be
add esp, 0xc
test eax, eax
je 0x4fee0d
mov dword [edi], ebx
mov dword [edi + 4], 0x5e4f30
pop esi
mov eax, ebx
pop ebx
pop edi
pop ebp
ret
call fcn.0053626b
int3

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 0x5e4f30
lea eax, [ebp - 1]
mov byte [ebp - 1], 0
push 0x4d7a50
push 0x5e4f2c
mov esi, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 1
call fcn.0050f8be
add esp, 0xc
test eax, eax
je 0x4ff570
mov esi, dword [esi + 4]
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 1
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call fcn.004fecd0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x4ff547
cmp eax, 0x4d2
jne 0x4ff54c
call fcn.004fecd0
test esi, esi
pop esi
jne 0x4ff56c
push 0x5e4f30
push 0x4d7a50
push 0x5e4f2c
call fcn.0050f8be
add esp, 0xc
test eax, eax
je 0x4ff575
mov esp, ebp
pop ebp
ret
call fcn.0053626b
call fcn.0053626b
int3

Function at 0x4ff5f0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x5e4f80
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov ecx, dword [esi + 4]
push 0
push ecx
test eax, eax
je 0x4ff640
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
mov esp, ebp
pop ebp
ret
push method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_56
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5048e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565db0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x5df7e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x5e4f30
push 0x4d7a50
push 0x5e4f2c
mov dword [ebp - 0x14], 0
call fcn.0050f8be
add esp, 0xc
test eax, eax
je 0x504a51
mov esi, dword [esi + 8]
push 0
mov dword [ebp - 0x10], 0x5e4f30
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jne 0x504982
mov ecx, esi
call fcn.00507b70
push 0x5e4f30
push 0x4d7a50
push 0x5e4f2c
xor esi, esi
call fcn.0050f8be
add esp, 0xc
test eax, eax
je 0x504a56
mov dword [ebp - 0x14], esi
xor edi, edi
mov dword [ebp - 0x10], 0x5e4f30
jmp 0x504a3a
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 1
mov ecx, esi
push dword [0x5e4f78]
neg ecx
lea eax, [esi + 0x14]
sbb ecx, ecx
and ecx, eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x5e4f78]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov byte [ebp - 4], 2
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
mov ecx, esi
xor edi, edi
call fcn.004fd0b0
test eax, eax
je 0x5049fd
cmp edi, 0xffffffff
lea eax, [edi + 1]
mov ecx, esi
cmove eax, edi
mov edi, eax
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
call fcn.004fd0b0
test eax, eax
jne 0x5049e1
mov byte [ebp - 4], 1
push dword [ebp - 0x20]
push dword [0x5e4f78]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 0xffffffff
xor esi, esi
nop dword [eax]
mov eax, dword [ebp + esi*4 - 0x1c]
test eax, eax
je 0x504a31
push eax
call fcn.0051261a
add esp, 4
inc esi
cmp esi, 2
jl 0x504a20
mov esi, dword [ebp - 0x14]
test esi, esi
jne 0x504a5b
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0053626b
call fcn.0053626b
lea eax, [ebp - 0x14]
push eax
call fcn.004fd5c0
int3

Function at 0x505cd0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 1
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov edi, eax
call fcn.004fecd0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, dword [ebp + 0x14]
mov dword [ebx], eax
mov dword [ebx + 4], esi
cmp edi, 0xffffffff
jne 0x505d16
or eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
cmp dword [ebp + 8], 0x17
jne 0x505d34
push 4
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], 0
push eax
push 0x1b
push 0x29
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x5e4f30
push 0x4d7a50
push 0x5e4f2c
call fcn.0050f8be
add esp, 0xc
test eax, eax
je 0x505d63
mov eax, edi
mov dword [ebx], 0
pop edi
pop esi
mov dword [ebx + 4], 0x5e4f30
pop ebx
pop ebp
ret
call fcn.0053626b
int3
Function at 0x505f10
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp byte [ebp + 0x18], 0
je 0x505f3d
mov ecx, dword [esi + 4]
push 0
push 0
push dword [ebp + 0x1c]
call fcn.00500090
pop esi
pop ebp
ret 0x18
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp ecx, 0xffffffff
jne 0x505f5e
mov ecx, dword [esi + 4]
push 0
push 0x2719
push dword [ebp + 0x1c]
call fcn.00500090
pop esi
pop ebp
ret 0x18
mov eax, dword [ebp + 0x14]
push ebx
push edi
mov edi, dword [ebp + 0x1c]
push 0
push edi
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x18]
mov dword [ebp + 0x18], 0
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x505f9c
mov eax, 0x2746
jmp 0x505fa9
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test ebx, ebx
je 0x505fc8
cmp eax, 0x3e5
je 0x505fc8
push dword [ebp + 0x18]
mov ecx, dword [esi + 4]
push eax
push edi
call fcn.00500090
pop edi
pop ebx
pop esi
pop ebp
ret 0x18
mov ecx, dword [esi + 4]
push edi
call fcn.00500150
pop edi
pop ebx
pop esi
pop ebp
ret 0x18

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

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
mov eax, dword [edi + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp byte [ebp + 0x18], 0
je 0x50600d
mov ecx, dword [edi + 4]
push 0
push 0
push dword [ebp + 0x1c]
call fcn.00500090
pop edi
pop ebp
ret 0x18
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x50602e
mov ecx, dword [edi + 4]
push 0
push 0x2719
push dword [ebp + 0x1c]
call fcn.00500090
pop edi
pop ebp
ret 0x18
push ebx
mov ebx, dword [ebp + 0x1c]
lea ecx, [ebp + 0x18]
push esi
push 0
push ebx
push dword [ebp + 0x14]
mov dword [ebp + 0x18], 0
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
je 0x506085
cmp eax, 0x3e5
je 0x506085
push dword [ebp + 0x18]
mov ecx, dword [edi + 4]
push eax
push ebx
call fcn.00500090
pop esi
pop ebx
pop edi
pop ebp
ret 0x18
mov ecx, dword [edi + 4]
push ebx
call fcn.00500150
pop esi
pop ebx
pop edi
pop ebp
ret 0x18
Function at 0x5060a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0
push 0
push 1
mov esi, ecx
push 0
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, dword [ebp + 8]
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
jne 0x5060ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
mov dword [ebp - 0x10], esi
call fcn.004fecd0
mov dword [ebp - 0xc], eax
test esi, esi
jne 0x5061ab
mov esi, dword [ebp - 4]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
mov dword [ebx + 8], eax
cmp dword [esi + 8], 0
jne 0x50612e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
mov dword [ebp - 0x10], esi
call fcn.004fecd0
mov dword [ebp - 0xc], eax
test esi, esi
jne 0x5061b9
mov esi, dword [ebp - 4]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push ebx
push 0x509150
push dword [ebp + 0xc]
push 0
call fcn.00531215
add esp, 0x18
mov dword [esi + 4], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x506192
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov dword [ebp + 8], eax
call dword [edx]
test edi, edi
je 0x506173
push edi
call esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
test eax, eax
je 0x506180
push eax
call esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], ebx
call fcn.004fecd0
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x5061c7
test edi, edi
je 0x5061a2
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.thread.entry_event
lea eax, [ebp - 0x10]
push eax
call fcn.004fd610
push str.thread.exit_event
lea eax, [ebp - 0x10]
push eax
call fcn.004fd610
push str.thread
lea eax, [ebp - 0x10]
push eax
call fcn.004fd610
int3
Function at 0x508850
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x566808
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x5df7e4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x13c], esi
xor ebx, ebx
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
push 0x56e1a0
push 0xcd
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x508d92
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x144], eax
test eax, eax
je 0x508d92
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x508d92
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x134], eax
push 0x56e1a0
push 0xce
lea ecx, [ebp - 0x20]
call fcn.004f1730
test al, al
jne 0x508919
push str.load_secret_key_failed
call fcn.004c1030
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x508d9f
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x134], eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FreeResource]
call edi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x508956
push eax
call edi
mov dword [ebp - 4], 0
push 0xe8
call fcn.00511c4f
add esp, 4
mov dword [ebp - 0x144], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x5089c2
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 2
mov ebx, 1
mov dword [ebp - 0x140], ebx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x138]
push ecx
lea ecx, [ebp - 0x14c]
push ecx
mov ecx, eax
call fcn.004df850
jmp 0x5089c4
xor eax, eax
mov dword [ebp - 4], 3
mov dword [esi + 0x20], eax
mov dword [ebp - 4], 0
test bl, 1
je 0x5089eb
and ebx, 0xfffffffe
mov dword [ebp - 0x140], ebx
lea ecx, [ebp - 0x2c]
call fcn.004c02e0
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.005028c0
mov dword [ebp - 4], 0xb
mov ecx, dword [esi + 0x20]
add ecx, 0x1c
push 9
push str.127.0.0.1
call fcn.004cf730
mov ecx, 0xfad
mov eax, dword [esi + 0x20]
mov word [eax + 8], cx
mov esi, dword [esi + 0x20]
mov ecx, esi
call fcn.004f9840
mov ecx, esi
call fcn.004f9020
mov al, 1
jmp 0x508da1
push str.load_secret_crt_failed
call fcn.004c1030
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005121be
mov esp, ebp
pop ebp
ret
Function at 0x509700
Capabilities:
Check os version
Get system information on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x5df7e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x11c]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x118
push 0
push eax
mov dword [ebp - 0x120], 0x11c
call fcn.0052a280
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jne 0x509851
mov ecx, dword [ebp - 0x118]
test ecx, ecx
je 0x50987f
xor eax, eax
cmp ecx, 1
setne al
inc eax
cmp eax, 1
jbe 0x50987f
push 0
push 0x8000000
push 3
push 0
push 7
push accept
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x50991d
test edi, edi
je 0x50991d
mov eax, 0x100000
cmp dword [ebp + 0x10], eax
push 4
cmovae eax, dword [ebp + 0x10]
push 0x1000
push eax
push 0
mov dword [ebp - 0x128], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x12c], eax
test eax, eax
je 0x50991d
xor esi, esi
lea ecx, [ebp - 0x124]
push esi
push ecx
push dword [ebp - 0x128]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x509824
mov eax, dword [ebp - 0x124]
test eax, eax
je 0x509824
test ebx, ebx
je 0x509802
cmp esi, ebx
jae 0x509824
push 0
add esi, eax
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x128]
push dword [ebp - 0x12c]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5097f0
push 0x8000
push 0
push dword [ebp - 0x12c]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005121be
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x50986d
mov eax, dword [ebp - 0x118]
sub eax, 0
je 0x509778
sub eax, 1
jmp 0x509778
cmp eax, 0xa
je 0x509778
cmp eax, 6
ja 0x509778
push 9
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x50991d
mov ecx, dword [esi + 0x3c]
mov edi, dword [ecx + esi + 0x50]
or ecx, 0xffffffff
test ebx, ebx
cmovne ecx, ebx
cmp edi, ecx
cmovae edi, ecx
test edi, edi
je 0x509903
xorps xmm0, xmm0
mov dword [ebp - 0x130], 0
lea eax, [ebp - 0x150]
push eax
movups xmmword [ebp - 0x150], xmm0
movups xmmword [ebp - 0x140], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x14c]
lea edx, [esi - 1]
test eax, eax
mov ecx, 0x1000
cmove eax, ecx
add edx, edi
mov dword [ebp - 0x14c], eax
mov ecx, esi
cmp esi, edx
jae 0x509901
mov al, byte [ecx]
add ecx, dword [ebp - 0x14c]
cmp ecx, edx
jb 0x5098f5
mov al, byte [edx]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005121be
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005121be
mov esp, ebp
pop ebp
ret
Function at 0x509c80
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x5df7e4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x808]
mov dword [ebp - 0x808], 0
push eax
push 0x20019
push 0
push str.SOFTWAREAlibabaWWLights
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x509ccf
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005121be
mov esp, ebp
pop ebp
ret
push ebx
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push dword [ebp - 0x808]
test eax, eax
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.005121be
mov esp, ebp
pop ebp
ret