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

Disassembly:
push ebx
mov ebx, ecx
push ebp
mov ebp, dword [esp + 0xc]
mov ecx, ebp
push edi
lea edi, [ebx + 0xac]
push edi
call fcn.004c6210
xor edx, edx
test al, al
je 0x4d823d
cmp word [ebp + 0x10], dx
jne 0x4d8342
cmp dword [ebx + 4], 0xffffffff
push esi
push 5
pop ecx
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
je 0x4d8255
push edx
mov ecx, ebx
call fcn.004755e9
xor edx, edx
push edx
push edx
push 2
lea eax, [ebx + 0xac]
push eax
call fcn.004662da
movzx eax, al
mov ecx, ebx
neg eax
sbb eax, eax
and eax, 0xffffffeb
add eax, 0x17
push eax
call fcn.00476c1d
cmp dword [ebx + 4], 0xffffffff
je 0x4d8341
push ebp
mov ecx, ebx
call fcn.004751a3
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
jne 0x4d82b3
call edi
mov esi, eax
push esi
call fcn.004738fe
push eax
push esi
push ebp
push str.UDP_port_bind_failed__A:___d___s
call fcn.004790ad
add esp, 0x10
jmp 0x4d82c9
xor eax, eax
cmp word [ebp + 0x10], ax
jne 0x4d82c9
mov ecx, ebx
call fcn.00476996
mov word [ebx + 0xbc], ax
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [esp + 0x14]
push 4
push eax
push 0x1002
push 0xffff
push dword [ebx + 4]
mov ebp, 0x200000
mov dword [esp + 0x28], ebp
call esi
cmp eax, 0xffffffff
jne 0x4d8307
call edi
push eax
push dword [esp + 0x18]
push str.UDP_setsockopt_SO_RCVBUF___d__failed:__d
call fcn.00479036
add esp, 0xc
push 4
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ebp
push eax
push 0x1001
push 0xffff
push dword [ebx + 4]
call esi
cmp eax, 0xffffffff
jne 0x4d833a
call edi
push eax
push dword [esp + 0x18]
push str.UDP_setsockopt_SO_SNDBUF___d__failed:__d
call fcn.00479036
add esp, 0xc
mov ecx, ebx
call fcn.00476391
pop esi
pop edi
pop ebp
pop ebx
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x80
push eax
lea eax, [ebp - 0x98]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4d8747
push esi
push edi
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x18]
call fcn.004c6122
mov edi, dword [ebp + 0x18]
lea esi, [ebp - 0x18]
push 5
pop ecx
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4d8afd
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x1a0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1bc]
xor ebx, ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x24], ebx
movzx eax, word [esi + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esp + 0x1c0]
movzx ebp, ax
test ecx, ecx
je 0x4d8b5f
mov ebx, ecx
mov byte [esp + 0x27], 3
lea edx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4d8b3a
sub ebx, edx
lea eax, [esp + 0x29]
push ebx
push ecx
push eax
mov byte [esp + 0x34], bl
call fcn.00631810
add esp, 0xc
mov word [esp + ebx + 0x29], bp
xor ebx, ebx
jmp 0x4d8b90
push esi
call fcn.004662da
test al, al
je 0x4d8b7c
mov eax, dword [esi + 0xc]
mov byte [esp + 0x27], 1
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], bp
jmp 0x4d8b90
push edi
mov byte [esp + 0x2b], 4
lea edi, [esp + 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov word [esp + 0x3c], bp
pop edi
lea eax, [esp + 0x24]
mov ecx, eax
mov dword [esp + 0x18], eax
call fcn.004d8c33
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x14], eax
add ecx, 0x118
mov eax, dword [esp + 0x1b8]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1b4]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x130]
push eax
call fcn.004768a7
push ebx
push ebx
push dword [esp + 0x18]
lea eax, [esp + 0x138]
mov dword [esp + 0x18], ebx
push eax
push ebx
lea eax, [esp + 0x20]
push eax
push 2
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x1d0]
call dword [sym.imp.WS2_32.dll_WSASendTo]
mov esi, eax
test esi, esi
jne 0x4d8c0b
mov esi, dword [esp + 0xc]
or eax, 0xffffffff
cmp esi, eax
je 0x4d8c27
lea ecx, [esp + 0x24]
call fcn.004d8c33
cmp esi, eax
jg 0x4d8c23
xor eax, eax
jmp 0x4d8c27
sub esi, eax
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1a0
ret 0x14
Function at 0x4d9974
Capabilities:
Delete file
Move file

Disassembly:
mov eax, 0x66d28b
call fcn.006313fc
sub esp, 0x1c
push ebx
mov ebx, ecx
push edi
lea edi, [ebx + 0x54]
push edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push dword [esp + 0x38]
call fcn.0045e93a
test al, al
jne 0x4d99aa
push edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
xor al, al
jmp 0x4d9af7
push ebp
push esi
lea esi, [ebx + 0x1c]
push esi
lea ecx, [esp + 0x18]
call fcn.00422efb
and dword [esp + 0x34], 0
mov ebp, str..tmp
push ebp
call fcn.004236bc
pop ecx
push eax
push ebp
lea ecx, [esp + 0x1c]
call fcn.004234f9
mov ecx, ebx
call fcn.004d93a5
mov eax, dword [esp + 0x14]
push 8
pop edx
cmp dword [esp + 0x28], edx
jae 0x4d99ed
lea eax, [esp + 0x14]
cmp dword [esi + 0x14], edx
jb 0x4d99f6
mov ecx, dword [esi]
jmp 0x4d99f8
mov ecx, esi
push eax
push ecx
push str.Moving__S_to__S
call fcn.00409edb
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp dword [esp + 0x28], edx
jae 0x4d9a15
lea eax, [esp + 0x14]
cmp dword [esi + 0x14], edx
jb 0x4d9a1e
mov ecx, dword [esi]
jmp 0x4d9a20
mov ecx, esi
mov ebp, dword [sym.imp.KERNEL32.DLL_MoveFileW]
push eax
push ecx
call ebp
test eax, eax
setne byte [esp + 0x13]
cmp dword [esi + 0x14], 8
jb 0x4d9a3b
mov eax, dword [esi]
jmp 0x4d9a3d
mov eax, esi
push eax
push dword [esp + 0x44]
push str.Moving__S_to__S
call fcn.00409edb
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x4d9a59
mov eax, dword [esi]
jmp 0x4d9a5b
mov eax, esi
push eax
push dword [esp + 0x44]
call ebp
test eax, eax
setne al
mov byte [esp + 0x40], al
test al, al
jne 0x4d9ab9
cmp byte [esp + 0x13], al
je 0x4d9ab9
push 8
pop edx
cmp dword [esi + 0x14], edx
jb 0x4d9a81
mov ecx, dword [esi]
jmp 0x4d9a83
mov ecx, esi
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x28], edx
jae 0x4d9a91
lea eax, [esp + 0x14]
push ecx
push eax
push str.Moving__S_back_to__S
call fcn.00409edb
add esp, 0xc
cmp dword [esi + 0x14], edx
jb 0x4d9aa7
mov esi, dword [esi]
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x28], edx
jae 0x4d9ab5
lea eax, [esp + 0x14]
push esi
push eax
call ebp
mov ecx, ebx
call fcn.004d965c
push edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
cmp byte [esp + 0x13], 0
pop esi
pop ebp
je 0x4d9ae6
cmp dword [esp + 0x20], 8
mov eax, dword [esp + 0xc]
jae 0x4d9adf
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push 0
push 1
lea ecx, [esp + 0x14]
call fcn.0042341c
mov al, byte [esp + 0x38]
mov ecx, dword [esp + 0x24]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4da12d
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
push esi
call fcn.005331b5
mov ebp, dword [esp + 0x2c]
test ebp, ebp
jne 0x4da148
or ebp, 0xffffffff
mov edi, dword [esp + 0x30]
mov bl, 0xff
push 7
mov edx, edi
mov byte [esp + 0x20], bl
pop ecx
and edx, ecx
mov dword [esp + 0x30], edx
jbe 0x4da171
mov al, 1
shl al, cl
xor bl, al
dec ecx
dec edx
jne 0x4da15f
mov edx, dword [esp + 0x30]
mov byte [esp + 0x1c], bl
xor ecx, ecx
shr edi, 3
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x20], ecx
jbe 0x4da21c
mov eax, dword [esp + 0x28]
sub eax, edi
mov dword [esp + 0x14], eax
xor ebx, ebx
test eax, eax
je 0x4da208
cmp dword [esp + 0x24], 1
jne 0x4da19f
mov eax, ecx
jmp 0x4da1a6
mov eax, dword [esp + 0x20]
sub eax, ecx
dec eax
cmp ebp, 1
jne 0x4da1b0
lea ecx, [ebx + edi]
jmp 0x4da1b9
mov ecx, dword [esp + 0x28]
sub ecx, ebx
sub ecx, edi
dec ecx
imul eax, dword [esp + 0x28]
push 8
add eax, ecx
mov ecx, dword [esp + 0x38]
mov al, byte [eax + ecx]
mov byte [esp + 0x30], al
pop eax
test ebx, ebx
jne 0x4da1d4
sub eax, edx
push esi
push eax
push esi
call fcn.00533202
test eax, eax
jne 0x4da224
movzx ecx, byte [esp + 0x2c]
test ebx, ebx
jne 0x4da1f0
movzx eax, byte [esp + 0x1c]
and ecx, eax
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x30]
or dword [eax], ecx
inc dword [esi]
inc ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
cmp ebx, eax
jb 0x4da194
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, dword [esp + 0x20]
jae 0x4da21c
mov edx, dword [esp + 0x30]
jmp 0x4da18e
push esi
call fcn.005331da
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x1c
Function at 0x4da22d
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
lea eax, [esp + 8]
push dword [esp + 0x34]
push eax
call fcn.00533de5
test eax, eax
jne 0x4da370
push ebp
mov ebp, dword [esp + 0x30]
test ebp, ebp
jne 0x4da252
or ebp, 0xffffffff
push ebx
push edi
mov edi, dword [esp + 0x3c]
mov bl, 0xff
push 7
pop ecx
mov byte [esp + 0x40], bl
and edi, ecx
jbe 0x4da275
mov edx, edi
mov al, 1
shl al, cl
xor bl, al
dec ecx
dec edx
jne 0x4da267
mov byte [esp + 0x40], bl
mov eax, dword [esp + 0x3c]
shr eax, 3
mov dword [esp + 0xc], eax
lea eax, [esp + 0x14]
push esi
push eax
call fcn.00533f38
mov ebx, dword [esp + 0x38]
xor edx, edx
mov ecx, ebx
shl ecx, 3
sub ecx, dword [esp + 0x40]
div ecx
xor ecx, ecx
test edx, edx
push 0
setne cl
add ecx, eax
pop edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
je 0x4da352
xor esi, esi
test ebx, ebx
je 0x4da345
mov eax, ebx
sub eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x34], 0xffffffff
jne 0x4da2d5
mov ecx, edx
jmp 0x4da2d8
sub ecx, edx
dec ecx
cmp ebp, 0xffffffff
jne 0x4da2e1
mov eax, esi
jmp 0x4da2e6
mov eax, ebx
sub eax, esi
dec eax
imul ecx, ebx
add ecx, eax
mov eax, dword [esp + 0x14]
add ecx, dword [esp + 0x2c]
cmp esi, eax
jb 0x4da2fc
mov byte [ecx], 0
jmp 0x4da33c
lea ebx, [eax - 1]
mov eax, dword [esp + 0x24]
cmp esi, ebx
jne 0x4da310
movzx edx, byte [esp + 0x44]
and edx, dword [eax]
jmp 0x4da313
movzx edx, byte [eax]
mov byte [ecx], dl
push 8
pop eax
cmp esi, ebx
jne 0x4da31e
sub eax, edi
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
mov eax, ecx
push eax
call fcn.00533e02
mov ebx, eax
test ebx, ebx
jne 0x4da376
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
inc esi
cmp esi, ebx
jb 0x4da2ca
inc edx
mov dword [esp + 0x40], edx
cmp edx, ecx
jb 0x4da2b6
lea eax, [esp + 0x18]
push eax
call fcn.0053317e
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4da36a
mov ecx, dword [esp + 0x3c]
mov dword [eax], ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
add esp, 0x18
ret 0x1c
lea eax, [esp + 0x18]
push eax
call fcn.0053317e
mov eax, ebx
jmp 0x4da36c

Function at 0x4da486
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
cmp byte [0x766cb4], 0
je 0x4da49c
mov al, 1
jmp 0x4da4d4
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4da4d2
mov eax, dword [ebp - 0x190]
cmp al, 2
jne 0x4da4cc
shr eax, 8
cmp al, 2
jne 0x4da4cc
mov byte [0x766cb4], 1
jmp 0x4da498
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x4eafe0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x673a75
call fcn.006313fc
sub esp, 0x1c
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x10], ebx
xor ebp, ebp
mov dword [ebx], 0x6a8bc8
mov dword [esp + 0x34], ebp
mov dword [ebx + 4], ebp
mov dword [ebx + 8], ebp
mov dword [ebx + 0xc], ebp
mov eax, dword [esp + 0x40]
lea edi, [ebx + 0x14]
push 5
pop ecx
lea esi, [esp + 0x44]
mov byte [esp + 0x34], 1
rep movsd dword es:[edi], dword [esi]
push ebp
mov dword [ebx + 0x10], eax
call fcn.004919d8
mov ecx, eax
mov esi, edx
mov eax, dword [0x75fe4c]
cdq
add ecx, eax
mov dword [ebx + 0x30], ebp
mov dword [ebx + 0x28], ecx
adc esi, edx
mov dword [ebx + 0x34], ebp
mov dword [ebx + 0x2c], esi
mov dword [ebx + 0x38], ebp
mov dword [ebx + 0x3c], 0xea60
mov dword [ebx + 0x40], ebp
mov dword [ebx + 0x44], ebp
mov dword [ebx + 0x48], ebp
lea esi, [ebx + 0x4c]
mov dword [esi], 0x6a8ad8
push str.share
lea eax, [esp + 0x18]
mov byte [esp + 0x38], 3
push eax
call fcn.0046e937
push esi
push eax
lea ecx, [ebx + 0x50]
mov byte [esp + 0x3c], 4
call fcn.00537dc2
push ebp
push 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 6
call fcn.0042341c
push 0x1388
call fcn.0045d923
mov ecx, ebx
mov dword [ebx + 0x90], eax
mov dword [ebx + 0x8c], ebp
call fcn.004ec212
mov ecx, dword [esp + 0x2c]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x4ed4a1
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x140], 0
jne 0x4ed516
mov ebx, 0x100
cmp dword [esi + 0x15c], ebx
jae 0x4ed516
lea edx, [esi + 0x144]
mov byte [esi + 0x140], 1
xor eax, eax
mov edi, edx
push edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esi + 0x158]
mov ecx, dword [esi + 0x15c]
sub ebx, ecx
mov edx, dword [esi]
mov edi, dword [esp + 0x14]
push eax
lea eax, [esi + 0x160]
mov dword [esi + 0x154], edi
add eax, ecx
mov ecx, esi
push ebx
push eax
call dword [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4ed51e
push edi
mov byte [esi + 0x140], 0
call dword [sym.imp.KERNEL32.DLL_SetEvent]
mov al, 1
pop edi
pop esi
pop ebx
ret 4
xor al, al
jmp 0x4ed518
Function at 0x4eda59
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x673c8b
call fcn.006313fc
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x18], edi
mov dword [edi + 4], ebx
mov dword [ebp - 4], ebx
mov dword [edi + 8], 0x69cfac
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 1
mov dword [edi], 0x6a9210
mov dword [edi + 8], 0x6a922c
call fcn.004c61dc
push 7
pop ecx
xor eax, eax
mov dword [edi + 0x94], ecx
mov dword [edi + 0x90], ebx
mov word [edi + 0x80], ax
mov dword [edi + 0xac], ecx
mov dword [edi + 0xa8], ebx
mov word [edi + 0x98], ax
mov dword [edi + 0xd0], ebx
mov dword [edi + 0xd4], ebx
mov dword [edi + 0xd8], ebx
lea esi, [edi + 0xec]
mov byte [ebp - 4], 4
mov ecx, esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
call fcn.004ff21e
mov dword [esi], eax
push 0xf
pop eax
mov dword [edi + 0x148], eax
mov dword [edi + 0x144], ebx
mov byte [edi + 0x134], bl
mov dword [edi + 0x168], eax
mov dword [edi + 0x164], ebx
mov byte [edi + 0x154], bl
mov dword [edi + 0x188], eax
mov dword [edi + 0x184], ebx
mov byte [edi + 0x174], bl
fldz
or esi, 0xffffffff
fst dword [edi + 0x10]
fld dword [0x69ef94]
fstp dword [edi + 0x74]
mov byte [ebp - 4], 8
fst dword [edi + 0x5c]
mov dword [edi + 0x16c], ebx
mov byte [edi + 0x18c], bl
mov dword [edi + 0x28], ebx
mov dword [edi + 0x68], ebx
mov dword [edi + 0x38], ebx
mov byte [edi + 0x6c], bl
mov dword [edi + 0x34], ebx
mov dword [edi + 0x64], ebx
mov dword [edi + 0x2c], esi
mov dword [edi + 0x30], esi
mov dword [edi + 0x70], esi
mov byte [edi + 0x3c], bl
mov dword [edi + 0x78], ebx
mov dword [edi + 0x7c], ebx
mov dword [edi + 0x40], esi
mov dword [edi + 0x44], ebx
mov dword [edi + 0x48], ebx
mov dword [edi + 0x4c], ebx
mov dword [edi + 0x50], ebx
mov dword [edi + 0x54], ebx
mov dword [edi + 0x58], ebx
and byte [edi + 0xe0], 0x18
and byte [edi + 0x171], 0xfe
fstp dword [edi + 0x60]
mov dword [edi + 0xb8], ebx
mov dword [edi + 0xbc], ebx
mov dword [edi + 0xc0], ebx
mov dword [edi + 0xc4], ebx
mov dword [edi + 0xb0], ebx
mov dword [edi + 0xb4], ebx
mov dword [edi + 0xc8], ebx
mov dword [edi + 0xdc], ebx
mov byte [edi + 0xe1], bl
mov dword [edi + 0xf4], ebx
mov dword [edi + 0xf8], ebx
mov dword [edi + 0xfc], ebx
mov dword [edi + 0x128], ebx
mov dword [edi + 0x12c], ebx
call fcn.00461427
mov dword [edi + 0x118], eax
mov dword [edi + 0x11c], edx
mov dword [edi + 0x120], eax
mov dword [edi + 0x124], edx
mov dword [edi + 0x100], esi
mov dword [edi + 0x104], esi
mov dword [edi + 0x108], esi
mov dword [edi + 0x10c], esi
mov dword [edi + 0x110], esi
mov dword [edi + 0x114], esi
mov dword [edi + 0xe4], ebx
mov dword [edi + 0xe8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x130], ebx
mov dword [edi + 0x14c], ebx
mov dword [edi + 0x150], ebx
mov byte [ebp - 0xd], 1
call fcn.00475044
and byte [edi + 0xe0], 0xef
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x76b4f0
mov byte [ebp - 4], 9
mov dword [edi + 0xcc], 8
mov byte [edi + 0x170], bl
mov dword [ebp - 0x14], edi
call fcn.005cc413
mov byte [ebp - 4], 8
call fcn.00475085
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4f6f94
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x674461
call fcn.006313fc
sub esp, 0x5c
push ebx
push ebp
push esi
mov ebp, ecx
lea ecx, [esp + 0x3c]
push edi
call fcn.00424b8a
and dword [esp + 0x74], 0
xor ebx, ebx
inc ebx
mov ecx, ebp
mov byte [ebp + 0x14], bl
call fcn.004f6c83
cmp dword [eax + 0x14], 8
jb 0x4f6fca
mov eax, dword [eax]
lea ecx, [esp + 0x40]
push ecx
push 0x45b281
push eax
call fcn.00469435
cmp eax, ebx
jg 0x4f717d
push 0xffffffffffffffff
push str.sessions
lea ecx, [esp + 0x48]
call fcn.0045bb6f
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
je 0x4f717d
call fcn.0045fe36
xor edi, edi
mov dword [esp + 0x18], eax
mov ecx, esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], edi
call fcn.0045ba56
test eax, eax
je 0x4f717f
mov ebx, esi
push edi
mov ecx, ebx
call fcn.0045ba8e
and dword [esp + 0x20], 0
mov esi, eax
push 0
push str.encrypting
mov ecx, esi
call fcn.0045bb2b
test eax, eax
je 0x4f7164
push 0xffffffffffffffff
push 0x6a4f8c
mov ecx, esi
call fcn.0045b99c
test eax, eax
je 0x4f7164
push 0
push 0
push str.created
mov ecx, esi
call fcn.0045bac4
mov ecx, dword [esp + 0x18]
sub ecx, eax
mov eax, dword [esp + 0x1c]
sbb eax, edx
test eax, eax
ja 0x4f7164
jb 0x4f7091
cmp ecx, 0x127500
jae 0x4f7164
lea eax, [esp + 0x20]
mov ecx, esi
push eax
push str.guid
call fcn.0045bcaf
push eax
xor eax, eax
lea edi, [esp + 0x58]
stosd dword es:[edi], eax
lea ecx, [esp + 0x58]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
call fcn.004f7ac4
test al, al
je 0x4f70d9
lea eax, [esp + 0x54]
mov ecx, ebp
push eax
call fcn.004f69f9
test eax, eax
je 0x4f70d9
push esi
mov ecx, eax
call fcn.004f7c18
jmp 0x4f7160
push 0xcc
call fcn.00630af1
pop ecx
mov dword [esp + 0x10], eax
mov byte [esp + 0x74], 3
test eax, eax
je 0x4f70fb
push esi
mov ecx, eax
call fcn.004f6175
jmp 0x4f70fd
xor eax, eax
push 0x4f7aa8
mov dword [esp + 0x14], eax
mov ecx, ebp
lea eax, [esp + 0x14]
mov byte [esp + 0x78], 0
push eax
sub esp, 0xc
push esp
call fcn.0041fe4c
sub esp, 0xc
mov ecx, ebp
push esp
call fcn.0041fe38
lea eax, [esp + 0x48]
push eax
call fcn.004f5d6c
lea eax, [esp + 0x10]
push eax
sub esp, 0xc
lea eax, [esp + 0x38]
mov esi, esp
mov ecx, esi
push eax
and dword [esi], 0
and dword [esi + 4], 0
call fcn.0040abdc
mov eax, dword [esp + 0x40]
mov ecx, ebp
mov dword [esi + 8], eax
lea eax, [esp + 0x44]
push eax
call fcn.004f854a
mov edi, dword [esp + 0x14]
inc edi
mov ecx, ebx
mov dword [esp + 0x14], edi
call fcn.0045ba56
cmp edi, eax
jb 0x4f7024
xor ebx, ebx
inc ebx
jmp 0x4f717f
xor bl, bl
mov dword [esp + 0x40], 0x689888
lea ecx, [esp + 0x40]
mov dword [esp + 0x74], 4
call fcn.0045b86a
mov ecx, dword [esp + 0x6c]
mov al, bl
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4fb787
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
xor edx, edx
push edi
mov edi, dword [esp + 0xc]
cmp esi, 4
jb 0x4fb7ad
mov ecx, esi
shr ecx, 2
mov eax, dword [edi]
sub esi, 4
xor edx, eax
add edi, 4
rol edx, 0xd
dec ecx
jne 0x4fb79d
test esi, esi
je 0x4fb7bd
movzx ecx, byte [edi]
xor edx, ecx
inc edi
rol edx, 8
dec esi
jne 0x4fb7b1
pop edi
mov eax, edx
pop esi
ret 8

Function at 0x4fc13b
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x6746f5
call fcn.006313fc
sub esp, 0x34
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
test ecx, ecx
je 0x4fc164
mov eax, dword [ecx + 0x20]
mov edx, dword [ecx + 0x24]
jmp 0x4fc168
mov eax, ebx
mov edx, ebx
mov dword [esi], eax
mov eax, dword [ebp + 0x24]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x28]
mov dword [esi + 0xc], eax
xor eax, eax
push 7
mov dword [esi + 4], edx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
pop edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x44], ebx
mov word [esi + 0x34], ax
mov dword [esi + 0x60], edi
mov dword [esi + 0x5c], ebx
mov word [esi + 0x4c], ax
mov al, byte [ebp + 0x2c]
mov byte [esi + 0x65], al
mov al, byte [esi + 0x66]
and al, 0xe1
mov byte [esi + 0x64], 8
or al, 0x40
mov word [esi + 0x67], bx
mov byte [esi + 0x66], al
xor eax, eax
mov dword [esi + 0x80], edi
mov dword [esi + 0x7c], ebx
mov word [esi + 0x6c], ax
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ecx
mov byte [esi + 0x90], bl
mov dword [esi + 0x94], ebx
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.004fc9e5
sub esp, 0x18
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.00422efb
mov ecx, esi
call fcn.004fe6e7
xor eax, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
mov ecx, dword [esi + 0x8c]
mov byte [ebp - 4], 5
test ecx, ecx
je 0x4fc24a
push esi
lea eax, [ebp - 0x40]
push eax
call fcn.004fd6a4
push eax
lea ecx, [ebp - 0x28]
call fcn.0044dbe6
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.0042341c
lea eax, [ebp - 0x28]
push eax
call fcn.0045e925
test al, al
je 0x4fc277
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4fc263
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
shl al, 5
xor al, byte [esi + 0x66]
and al, 0x20
xor byte [esi + 0x66], al
jmp 0x4fc27b
and byte [esi + 0x66], 0xdf
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.0042341c
push ebx
push 1
lea ecx, [ebp + 0xc]
call fcn.0042341c
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x28
Function at 0x4fccbf
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x66d28b
call fcn.006313fc
sub esp, 0x18
push ebx
push edi
mov edi, ecx
xor ebx, ebx
mov ecx, 0x9c
mov eax, dword [edi + 8]
sub eax, dword [edi + 4]
cdq
idiv ecx
test eax, eax
je 0x4fcd7c
push esi
xor esi, esi
mov eax, dword [edi + 4]
mov ecx, edi
add eax, esi
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004fd6a4
and dword [ebp - 4], 0
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x4fcd0c
lea eax, [ebp - 0x24]
push eax
call fcn.0045e93a
test al, al
jne 0x4fcd20
mov eax, dword [edi + 4]
and byte [esi + eax + 0x66], 0xdf
jmp 0x4fcd52
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x4fcd2c
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4fcd4a
mov ecx, dword [edi + 4]
shl al, 5
xor al, byte [esi + ecx + 0x66]
and al, 0x20
xor byte [esi + ecx + 0x66], al
jmp 0x4fcd52
mov eax, dword [edi + 4]
or byte [esi + eax + 0x66], 0x20
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
push 0
push 1
call fcn.0042341c
mov eax, dword [edi + 8]
mov ecx, 0x9c
sub eax, dword [edi + 4]
inc ebx
cdq
add esi, ecx
idiv ecx
cmp ebx, eax
jb 0x4fcceb
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret