joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ef7f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x585b90
mov esi, edx
mov edi, ecx
mov ecx, 8
mov edx, 4
mov eax, dword fs:[0]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword fs:[0], eax
movzx eax, byte [0x673c84]
call fcn.004051f0
test eax, eax
je 0x4ef8cc
mov ebx, eax
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 4], eax
push 0
push 0x10000
push ebx
push 0x4ef970
push esi
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
je 0x4ef86d
mov dword [edi + 4], eax
mov byte [edi], 4
jmp 0x4ef8bb
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x24], eax
push eax
mov dword [ebp - 0x20], ecx
call dword [ecx]
add esp, 4
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x2c]
cmp dword [eax + 4], 0
je 0x4ef8a2
mov edx, dword [eax + 8]
mov ecx, dword [ebp - 0x24]
call fcn.00405250
mov ecx, dword [ebp - 0x28]
mov edx, 4
call fcn.00405250
call dword [sym.imp.kernel32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 4
mov edx, 8
mov dword [ebp - 0x10], 0
call fcn.00599e40
ud2
Function at 0x4efdb0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1038
call fcn.00589420
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x585bc0
mov edi, ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x24], edx
lea esi, [ebp - 0x1044]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
push 0x1000
push 0
push esi
call fcn.0058a690
add esp, 0xc
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
push 0x4e7c40
push eax
push 0x1000
push esi
push edi
call dword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
je 0x4eff04
mov ebx, dword [sym.imp.kernel32.dll_SleepEx]
mov dword [ebp - 0x20], edi
push 1
push 0xffffffffffffffff
call ebx
cmp dword [ebp - 0x30], 0
je 0x4efe3a
cmp dword [ebp - 0x2c], 0
jne 0x4eff15
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x4eff15
cmp esi, 0x1000
ja 0x4eff51
xor edi, edi
nop dword [eax]
mov eax, esi
sub eax, edi
jb 0x4eff37
xorps xmm0, xmm0
lea edx, [ebp - 0x30]
lea ecx, [ebp + edi - 0x1044]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], edx
push 0x4e7c40
lea edx, [ebp - 0x44]
push edx
push eax
push ecx
push dword [ebp - 0x24]
call dword [sym.imp.kernel32.dll_WriteFileEx]
test eax, eax
je 0x4eff0c
nop dword [eax]
push 1
push 0xffffffffffffffff
call ebx
cmp dword [ebp - 0x30], 0
je 0x4efeb0
cmp dword [ebp - 0x2c], 0
jne 0x4eff12
add edi, dword [ebp - 0x28]
cmp edi, esi
jne 0x4efe70
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
push 0x4e7c40
lea eax, [ebp - 0x44]
push eax
push 0x1000
lea eax, [ebp - 0x1044]
push eax
mov edi, dword [ebp - 0x20]
push edi
call dword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
jne 0x4efe3a
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x4eff15
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, dword [ebp - 0x20]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
push edi
call esi
push dword [ebp - 0x24]
call esi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x1038
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
mov ecx, edi
mov edx, esi
push 0x621168
call fcn.0059a460
add esp, 4
jmp 0x4eff6c
mov dword [ebp - 0x10], 0
mov ecx, esi
mov edx, 0x1000
push 0x621168
call fcn.0059a240
add esp, 4
ud2
Function at 0x4f0040
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, esp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], esp
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x54], 0x585be0
mov edi, ecx
lea eax, [esi + 0x50]
xorps xmm0, xmm0
mov ecx, dword fs:[0]
mov dword [esi + 0x50], ecx
mov dword fs:[0], eax
movaps xmmword [esi + 0x10], xmm0
lea eax, [esi + 0x10]
push 0x10
push eax
call dword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x4f00be
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x50]
mov dword fs:[0], eax
mov dword [edi + 0xc], ebx
mov dword [edi + 8], edx
mov dword [edi + 4], ecx
mov eax, dword [esi + 4]
mov dword [edi], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
lea edx, [esi + 8]
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], 0x621278
mov dword [esi + 0x34], 1
mov dword [esi + 0x40], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], eax
mov dword [esi + 0x58], 0
mov dword [esi + 0x28], edx
mov dword [esi + 0x38], ecx
lea ecx, [esi + 0x30]
mov edx, 0x6212a4
mov dword [esi + 0x2c], fcn.004dfcf0
mov dword [esi + 0x3c], 1
call fcn.0059a150
ud2

Function at 0x4f19e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0x6730b4]
test eax, eax
je 0x4f1a64
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x4f19ff
cmp byte [eax + 4], 0
mov esi, eax
jne 0x4f1a59
mov eax, dword [0x6730b4]
test eax, eax
je 0x4f1a73
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x4f1a5e
mov esi, eax
test eax, eax
jne 0x4f1a53
movzx eax, byte [0x673c84]
mov ecx, 8
mov edx, 4
call fcn.004051f0
test eax, eax
je 0x4f1a8b
mov dword [eax], 0x6730b4
mov byte [eax + 4], 0
mov esi, eax
mov eax, dword [0x6730b4]
test eax, eax
je 0x4f1a7f
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov word [esi + 4], 1
add esi, 5
jmp 0x4f1a60
xor esi, esi
mov eax, esi
pop esi
ret
mov ecx, 0x6730b4
call fcn.0059d5e0
jmp 0x4f19eb
mov ecx, 0x6730b4
call fcn.0059d5e0
jmp 0x4f1a09
mov ecx, 0x6730b4
call fcn.0059d5e0
jmp 0x4f1a4b
mov ecx, 4
mov edx, 8
call fcn.00599e40
int3
Function at 0x4f4b70
Capabilities:
Delete file

Disassembly:
push ebx
push edi
push esi
sub esp, 0x18
mov esi, ecx
mov ecx, esp
push dword [esp + 0x28]
call fcn.004d9510
add esp, 4
mov ecx, dword [esp]
mov edi, dword [esp + 4]
mov eax, dword [esp + 8]
cmp ecx, 0x80000000
je 0x4f4bc8
mov dword [esp], ecx
mov dword [esp + 4], edi
mov dword [esp + 8], eax
lea ecx, [esp + 0xc]
mov edx, esp
push 1
call fcn.004e14e0
add esp, 4
mov ebx, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
cmp ebx, 0x80000000
jne 0x4f4bd4
mov eax, dword [esp + 0x14]
mov dword [esi + 4], eax
mov dword [esi], edi
add esp, 0x18
pop esi
pop edi
pop ebx
ret
push edi
call dword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
je 0x4f4be8
mov byte [esi], 4
test ebx, ebx
jne 0x4f4bf8
jmp 0x4f4bcd
call dword [sym.imp.kernel32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
test ebx, ebx
je 0x4f4bcd
mov ecx, edi
mov edx, 2
call fcn.00405250
jmp 0x4f4bcd

Function at 0x4f4c10
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x585d20
mov eax, dword [ebp + 8]
mov edi, ecx
lea ecx, [ebp - 0x18]
mov esi, dword fs:[0]
mov dword [ebp - 0x18], esi
mov dword fs:[0], ecx
lea ecx, [ebp - 0x28]
push eax
call fcn.004d9510
add esp, 4
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
cmp ecx, 0x80000000
je 0x4f4c89
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
lea edx, [ebp - 0x28]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x40]
push 1
call fcn.004e14e0
add esp, 4
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
cmp eax, 0x80000000
jne 0x4f4c9f
mov eax, dword [ebp - 0x38]
mov dword [edi + 4], eax
mov dword [edi], edx
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x30], edx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x28]
push esi
call fcn.004d9510
add esp, 4
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
cmp ecx, 0x80000000
je 0x4f4cfc
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x40]
lea edx, [ebp - 0x28]
push 1
call fcn.004e14e0
add esp, 4
mov edi, dword [ebp - 0x40]
mov esi, dword [ebp - 0x3c]
cmp edi, 0x80000000
jne 0x4f4d1e
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
mov dword [ecx + 4], eax
mov dword [ecx], esi
cmp dword [ebp - 0x34], 0
je 0x4f4c8e
mov ecx, ebx
mov edx, 2
call fcn.00405250
jmp 0x4f4c8e
push 1
push esi
mov ebx, dword [ebp - 0x30]
push ebx
call dword [sym.imp.kernel32.dll_MoveFileExW]
test eax, eax
je 0x4f4d3b
mov eax, dword [ebp - 0x2c]
mov byte [eax], 4
test edi, edi
jne 0x4f4d4e
jmp 0x4f4d07
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [ebp - 0x2c]
mov byte [ecx], 0
mov dword [ecx + 4], eax
test edi, edi
je 0x4f4d07
mov ecx, esi
mov edx, 2
call fcn.00405250
jmp 0x4f4d07
Function at 0x4f4d80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, esp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], esp
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x54], 0x585d30
movaps xmm0, xmmword [0x5a2ac0]
mov edi, ecx
lea ebx, [esi + 0x20]
lea ecx, [esi + 0xc]
mov eax, dword fs:[0]
mov dword [esi + 0x50], eax
lea eax, [esi + 0x50]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov word [esi + 0x40], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x30], 7
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
movups xmmword [esi + 0x20], xmm0
push ebx
push eax
call fcn.004e0c60
add esp, 8
movzx eax, byte [esi + 0xc]
cmp al, 4
jne 0x4f4e3f
mov eax, ebx
mov ebx, dword [esi + 0x10]
xorps xmm0, xmm0
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], 0
movaps xmmword [esi + 0x30], xmm0
movaps xmmword [esi + 0x20], xmm0
mov dword [esi + 8], ebx
push 0x28
push eax
push 0
push ebx
call dword [sym.imp.kernel32.dll_GetFileInformationByHandleEx]
test eax, eax
je 0x4f4e5b
test byte [esi + 0x40], 0x10
jne 0x4f4e6d
mov byte [edi], 0
mov eax, 0x10b
jmp 0x4f4e67
movzx ecx, byte [esi + 0xf]
movzx ebx, word [esi + 0xd]
mov edx, dword [esi + 0x10]
mov byte [edi + 3], cl
mov word [edi + 1], bx
mov byte [edi], al
mov dword [edi + 4], edx
jmp 0x4f4ee8
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [edi], 0
mov dword [edi + 4], eax
push ebx
jmp 0x4f4ee2
mov dword [esi + 4], ebx
mov dword [esi + 0x1c], edi
mov dword [esi + 0x58], 0
lea ecx, [esi + 0x14]
lea edx, [esi + 8]
push 0x4f4f50
call fcn.004f4f90
add esp, 4
cmp byte [esi + 0x14], 4
mov ecx, dword [esi + 0x1c]
jne 0x4f4ea1
movsd xmm0, qword [esi + 0x14]
movsd qword [ecx], xmm0
jmp 0x4f4ede
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
test al, al
mov dword [esi + 0x24], edx
mov dword [esi + 0x20], eax
je 0x4f4eb8
mov dword [ecx], eax
mov dword [ecx + 4], edx
jmp 0x4f4ede
cmp edx, 1
je 0x4f4ec7
cmp edx, 0x57
je 0x4f4ec7
cmp edx, 0x32
jne 0x4f4eb1
mov dword [esi + 0x58], 1
lea edx, [esi + 8]
push 0x4f57b0
call fcn.004f4f90
add esp, 4
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esi + 0x50]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4f5f90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x585d60
mov ebx, ecx
mov esi, edx
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
test edi, edi
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
je 0x4f5ff1
js 0x4f605d
movzx eax, byte [0x673c84]
mov ecx, edi
mov edx, 1
call fcn.004051f0
test eax, eax
jne 0x4f5ff6
mov ecx, 1
mov edx, edi
call fcn.00599e40
mov eax, 1
push edi
push esi
mov dword [ebp - 0x20], eax
push eax
call fcn.0058a110
add esp, 0xc
mov edx, dword [ebx + 0x30]
cmp edx, dword [ebx + 0x28]
jne 0x4f6027
lea ecx, [ebx + 0x28]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], ebx
call fcn.004f6090
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp + 8]
mov edx, dword [ebx + 0x30]
mov eax, dword [ebx + 0x2c]
mov esi, dword [ebp - 0x20]
lea ecx, [edx + edx*4]
inc edx
mov dword [eax + ecx*4], 0
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], edi
mov byte [eax + ecx*4 + 0x10], 0
mov dword [ebx + 0x30], edx
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00414ce0
nop word cs:[eax + eax]
nop dword [eax]
push ebp
sub esp, 0xc
add ebp, 0xc
cmp dword [ebp + 8], 0
je 0x4f608a
mov ecx, dword [ebp - 0x20]
mov edx, 1
call fcn.00405250
add esp, 0xc
pop ebp
ret

Function at 0x4f6260
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
sub esp, 8
mov eax, dword [0x6730c4]
test eax, eax
je 0x4f62f2
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x4f628b
cmp dword [eax + 4], 0
mov esi, eax
je 0x4f628b
add esi, 8
jmp 0x4f62a3
mov eax, dword [0x6730c4]
test eax, eax
je 0x4f6301
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
xor esi, esi
cmp eax, 1
jne 0x4f62aa
mov eax, esi
add esp, 8
pop esi
ret
test eax, eax
mov esi, eax
jne 0x4f6316
movzx eax, byte [0x673c84]
mov ecx, 0xc
mov edx, 4
call fcn.004051f0
test eax, eax
je 0x4f6359
mov dword [eax], 0x6730c4
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x6730c4]
test eax, eax
jne 0x4f630d
mov ecx, 0x6730c4
call fcn.0059d5e0
jmp 0x4f630e
mov ecx, 0x6730c4
call fcn.0059d5e0
jmp 0x4f6272
mov ecx, 0x6730c4
call fcn.0059d5e0
jmp 0x4f6295
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
call fcn.0059dcb0
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
test edx, edx
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esi + 4], 1
mov dword [esi + 8], eax
je 0x4f6286
test ecx, ecx
je 0x4f6286
lock dec dword [ecx]
jne 0x4f6286
lea ecx, [esp + 4]
call fcn.004ef940
jmp 0x4f6286
mov ecx, 4
mov edx, 0xc
call fcn.00599e40
int3
Function at 0x4f6540
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [0x6730e4]
test eax, eax
je 0x4f6625
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x4f6571
mov esi, eax
mov eax, dword [eax]
or eax, dword [esi + 4]
jne 0x4f661a
mov eax, dword [0x6730e4]
test eax, eax
je 0x4f6634
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x4f65f7
mov esi, eax
test eax, eax
jne 0x4f65d7
movzx eax, byte [0x673c84]
mov ecx, 0x20
mov edx, 8
call fcn.004051f0
test eax, eax
je 0x4f664f
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0x18], 0x6730e4
mov esi, eax
mov eax, dword [0x6730e4]
test eax, eax
je 0x4f6643
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
xorps xmm0, xmm0
mov eax, esp
movaps xmmword [esp], xmm0
push 2
push 0x10
push eax
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x4f65fb
movaps xmm0, xmmword [esp]
jmp 0x4f6609
xor esi, esi
jmp 0x4f661d
lea ecx, [esp + 0x10]
call fcn.004f0040
movups xmm0, xmmword [esp + 0x10]
mov dword [esi + 4], 0
mov dword [esi], 1
movups xmmword [esi + 8], xmm0
add esi, 8
mov eax, esi
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov ecx, 0x6730e4
call fcn.0059d5e0
jmp 0x4f6558
mov ecx, 0x6730e4
call fcn.0059d5e0
jmp 0x4f657f
mov ecx, 0x6730e4
call fcn.0059d5e0
jmp 0x4f65cf
mov ecx, 8
mov edx, 0x20
call fcn.00599e40
int3
Function at 0x4fa323
Capabilities:
Decrypt data via sspi

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x3c
mov esi, ecx
mov edi, edx
mov ecx, dword [edx + 0x2c]
mov edx, dword [edx + 0x30]
push 0x645a8c
push dword [edi + 0x20]
call fcn.004fa277
pop ecx
pop ecx
test eax, eax
mov ecx, esp
cmove edx, eax
and dword [ecx + 0x24], 0
and dword [ecx + 0x28], 0
and dword [ecx + 0x2c], 0
mov dword [ecx], edx
mov dword [ecx + 4], 1
mov dword [ecx + 8], eax
lea eax, [esp + 0x30]
and dword [ecx + 0x10], 0
and dword [ecx + 0xc], 0
and dword [ecx + 0x18], 0
and dword [ecx + 0x14], 0
and dword [ecx + 0x20], 0
and dword [ecx + 0x1c], 0
and dword [eax], 0
mov dword [eax + 4], 4
mov dword [eax + 8], ecx
lea ecx, [edi + 0x70]
push 0
push 0
push eax
push ecx
call dword [sym.imp.secur32.dll_DecryptMessage]
cmp eax, 0x80090318
je 0x4fa45f
test eax, eax
je 0x4fa3ef
cmp eax, 0x90317
je 0x4fa458
cmp eax, 0x90321
jne 0x4fa46c
mov dword [edi + 0x50], 0x10000
mov byte [edi + 0x54], 0
xor eax, eax
cmp dword [esp + 0x28], 5
mov edx, dword [edi + 0x20]
jne 0x4fa3da
mov eax, dword [esp + 0x24]
sub edx, eax
mov ecx, edi
call fcn.004fa2ae
and dword [edi + 0x9c], 0
jmp 0x4fa47d
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x2c]
mov edx, dword [edi + 0x30]
mov ebp, dword [esp + 0xc]
and dword [edi + 0x18], 0
lea ebx, [edi + 0x10]
sub eax, ecx
add ebp, eax
push 0x645a9c
push ebp
push eax
call fcn.004fa48a
add esp, 0xc
mov ebp, edx
mov edx, eax
mov ecx, ebx
push ebp
call fcn.004f8275
pop eax
and dword [edi + 0xc], 0
and dword [edi + 8], 0
xor eax, eax
cmp dword [esp + 0x28], 5
mov edx, dword [edi + 0x20]
jne 0x4fa43c
mov eax, dword [esp + 0x24]
sub edx, eax
mov ecx, edi
call fcn.004fa2ae
mov eax, dword [edi + 0x20]
xor ecx, ecx
or eax, dword [edi + 0x24]
sete cl
mov dword [edi + 0x9c], ecx
jmp 0x4fa47d
mov word [esi], 0x104
jmp 0x4fa482
cmp dword [esp + 0x10], 4
jne 0x4fa474
mov eax, dword [esp + 0xc]
jmp 0x4fa477
and dword [esi], 0
mov dword [esi + 4], eax
jmp 0x4fa482
xor eax, eax
inc eax
mov dword [edi + 0x9c], eax
mov word [esi], 4
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x504bfd
Capabilities:
Connect socket

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov ebp, dword [esp + 0x34]
mov esi, ecx
cmp dl, 4
jne 0x504c55
mov eax, dword [0x673b1c]
cmp eax, 3
jne 0x504d05
mov edx, dword [ebp]
lea edi, [esp + 4]
mov ecx, edi
call fcn.004e6bc0
mov al, byte [edi]
cmp al, 4
jne 0x504c70
mov eax, dword [esp + 8]
cmp word [ebp], 0
mov dword [esp], eax
je 0x504c8b
movups xmm0, xmmword [ebp + 4]
mov edx, dword [ebp + 0x18]
lea eax, [ebp + 0x14]
add ebp, 0x1c
push 0x1c
pop ecx
mov bx, 0x17
jmp 0x504c9b
mov eax, edx
shr eax, 8
mov word [esi + 1], ax
mov eax, edx
shr eax, 0x18
mov byte [esi + 3], al
mov byte [esi], dl
mov dword [esi + 4], ebp
jmp 0x504cfd
mov cl, byte [esp + 7]
movzx edi, word [esp + 5]
mov edx, dword [esp + 8]
mov byte [esi + 3], cl
mov word [esi + 1], di
mov byte [esi], al
mov dword [esi + 4], edx
jmp 0x504cfd
lea eax, [ebp + 2]
add ebp, 6
push 0x10
pop ecx
mov bx, 2
xorps xmm0, xmm0
movzx ebp, word [ebp]
mov eax, dword [eax]
mov word [esp + 4], bx
rol bp, 8
mov word [esp + 6], bp
mov dword [esp + 8], eax
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 0x1c], edx
push ecx
push edi
mov edi, dword [esp + 8]
push edi
call dword [sym.imp.ws2_32.dll_connect]
cmp eax, 0xffffffff
je 0x504cd6
mov dword [esi + 4], edi
mov byte [esi], 4
jmp 0x504cfd
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov ecx, eax
mov edx, eax
shr eax, 0x18
mov byte [esi], 0
shr ecx, 8
shl edx, 0x18
mov byte [esi + 7], al
mov dword [esi + 1], edx
mov word [esi + 5], cx
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.0059db90
jmp 0x504c1d
Function at 0x506cb4
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
lea esi, [ebp - 0x18]
mov dword [ebp - 0x30], ecx
mov eax, edx
mov edx, dword [ebp + 8]
mov dword [esi - 4], esp
or dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0x5861e0
mov ecx, dword fs:[0]
mov dword [esi], ecx
mov ecx, eax
mov dword fs:[0], esi
call fcn.00506c3f
and dword [esi + 8], 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x34], edx
push 3
pop ecx
call fcn.0046a9f5
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 0x10]
mov byte [edx + 2], 0x54
mov word [edx], 0x4547
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], 1
call fcn.0046a9f5
mov ebx, dword [ebp + 0x10]
mov esi, eax
mov edi, edx
push ebx
push dword [ebp + 0xc]
push edx
call fcn.0058a110
add esp, 0xc
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0x18], ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0x1c], ecx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x20], 3
mov dword [eax + 0x24], esi
mov dword [eax + 0x28], edi
mov dword [eax + 0x2c], ebx
and dword [eax + 0x30], 0
mov dword [eax + 0x34], 4
and dword [eax + 0x38], 0
mov dword [eax + 8], 0x3b9aca00
mov dword fs:[0], ecx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x51a74c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
lea eax, [ebp - 0x18]
mov dword [ebp - 0x2c], ecx
mov edi, dword [ebp + 8]
mov esi, edx
mov edx, dword [ebp + 0x10]
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x586420
mov dword [ebp - 0x20], esi
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
cmp dword [edi + 8], 0
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], edx
je 0x51a7b6
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
and dword [ebp - 0x10], 0
push eax
call fcn.0051a92b
pop ecx
mov dword [ebp - 0x24], eax
mov eax, edx
mov esi, dword [ebp - 0x20]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
jmp 0x51a7bf
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 0x18]
and dword [ebp - 0x10], 0
sub edx, ecx
mov ecx, esi
mov dword [ebp - 0x28], eax
add edx, eax
call fcn.004f81e5
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.004f8275
pop eax
push 0x23
pop edx
mov ecx, dword [ebp - 0x20]
call fcn.0051395b
lea esi, [ebp - 0x34]
mov ecx, esi
call fcn.00513dd8
mov edx, dword [esi]
mov ecx, dword [ebp - 0x20]
push dword [esi + 4]
call fcn.0051a93c
pop eax
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 8]
movsd xmm0, qword [edx]
mov edx, dword [ebp + 8]
movsd qword [ecx + 0x10], xmm0
movsd xmm0, qword [edx + 0x3c]
mov dword [ecx + 0x18], eax
mov bl, byte [edx + 0x44]
mov edi, dword [edx]
mov esi, dword [edx + 4]
movsd qword [ecx + 0x3c], xmm0
movsd xmm0, qword [edx + 0x34]
mov byte [ecx + 0x44], bl
movsd qword [ecx + 0x34], xmm0
mov dword [ecx], edi
mov dword [ecx + 4], esi
mov edi, dword [ebp - 0x28]
mov esi, dword [edx + 0x1c]
mov dword [ecx + 8], 1
mov dword [ecx + 0xc], edi
mov dword [ecx + 0x1c], esi
mov edi, dword [edx + 0x20]
mov esi, dword [edx + 0x24]
mov dword [ecx + 0x20], edi
mov dword [ecx + 0x24], esi
mov edi, dword [edx + 0x28]
mov esi, dword [edx + 0x2c]
mov edx, dword [edx + 0x30]
mov dword [ecx + 0x28], edi
mov dword [ecx + 0x2c], esi
mov dword [ecx + 0x30], edx
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret