joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47f9d0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x47fa02
mov ecx, dword [0x6e435c]
mov dl, 1
mov eax, dword [0x47e734]
call fcn.0040ebdc
call fcn.00404d08
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x47fa33
mov ecx, dword [0x6e41c0]
mov dl, 1
mov eax, dword [0x47e734]
call fcn.0040ebdc
call fcn.00404d08
xor eax, eax
push ebp
push 0x47fab1
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00404650
cmp byte [ebp + 8], 0
je 0x47fa8c
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0047f924
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x1c]
lea edi, [eax + 0x18]
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 eax, dword [ebp - 4]
call fcn.0047f794
jmp 0x47faa7
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0047f1dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47face
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47fd2c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffe8
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0047f4cc
xor eax, eax
push ebp
push 0x47feaa
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x47fe94
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x47fd77
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x47fd81
call fcn.00404db4
jmp 0x47feb1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00422234
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1018]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x47fe89
push 0
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x1018]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x47fe37
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x2733
je 0x47fe24
lea eax, [ebp - 0x18]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00404650
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.0047fce4
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x47febc]
cmp dl, byte [eax + 0x28]
je 0x47fe90
call fcn.0040eaf4
jmp 0x47fe90
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00422254
jmp 0x47fe90
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jle 0x47fe58
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x14]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00422254
jmp 0x47fd81
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00422234
cmp edx, dword [esp + 4]
jne 0x47fe78
cmp eax, dword [esp]
pop edx
pop eax
jne 0x47fd81
push ebp
call fcn.0047fce4
pop ecx
jmp 0x47fe90
push ebp
call fcn.0047fce4
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47feb1
mov eax, dword [ebp - 4]
call fcn.0047f4e4
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47fec0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47ffea
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0047f4cc
xor eax, eax
push ebp
push 0x47ffcd
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x47ff12
call fcn.00404db4
jmp 0x47ffd4
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x47ffb7
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x2733
je 0x47ffb7
lea eax, [ebp - 0x14]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00404650
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0x14], 0
je 0x47ffb7
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x14]
call fcn.0040e190
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
mov eax, 0x480004
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
lea eax, [ebp - 0x2c]
push eax
push 2
mov ecx, dword [0x6e46ec]
mov dl, 1
mov eax, dword [0x47e734]
call fcn.0040ec18
call fcn.00404d08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ffd4
mov eax, dword [ebp - 4]
call fcn.0047f4e4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47fff1
lea eax, [ebp - 0x30]
call fcn.004053d4
ret
Function at 0x48007c
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4801cf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0047f4cc
xor eax, eax
push ebp
push 0x4801b2
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4800e4
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4800e4
lea eax, [ebp - 0x10]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x48019c
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4800f7
call fcn.00404db4
jmp 0x4801b9
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x48019c
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x2733
je 0x48019c
lea eax, [ebp - 0x14]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00404650
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0x14], 0
je 0x48019c
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x14]
call fcn.0040e190
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
mov eax, 0x4801e8
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
lea eax, [ebp - 0x2c]
push eax
push 2
mov ecx, dword [0x6e46ec]
mov dl, 1
mov eax, dword [0x47e734]
call fcn.0040ec18
call fcn.00404d08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4801b9
mov eax, dword [ebp - 4]
call fcn.0047f4e4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4801d6
lea eax, [ebp - 0x30]
call fcn.004053d4
ret
Function at 0x480db8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
call fcn.004053d4
mov dword [ebp - 0x14], pe_nt_image_headers32
lea eax, [ebp - 0x11c]
xor ecx, ecx
mov edx, dword [ebp - 0x14]
call fcn.00403bb4
mov dword [ebp - 0x18], 1
xor eax, eax
push ebp
push 0x480ecc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 8]
call fcn.00405864
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x480eb5
xor eax, eax
push ebp
push 0x480eae
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0
jne 0x480e58
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [ebp - 0x1c], eax
jmp 0x480e7e
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.00405864
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x480e97
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x11c]
mov ecx, pe_nt_image_headers32
call fcn.00405644
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480eb5
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480ed3
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
Function at 0x481f50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov byte [ebp - 1], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x481f76
cmp eax, 0
jbe 0x482081
jmp 0x481f7c
jle 0x482081
mov eax, dword [ebp + 8]
add eax, 0xffffff04
xor ecx, ecx
mov edx, 0xf8
call fcn.00403bb4
mov eax, dword [ebp + 8]
lea edx, [eax - 0x13c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
mov ecx, 0x40
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp eax, 0x40
jne 0x482081
mov eax, dword [ebp + 8]
cmp word [eax - 0x13c], 0x5a4d
jne 0x482081
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x100]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
xor ecx, ecx
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov edx, dword [ebp + 8]
cmp eax, dword [edx - 0x100]
jne 0x482081
mov eax, dword [ebp + 8]
lea edx, [eax - 0xfc]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
mov ecx, 4
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp eax, 4
jne 0x482081
mov eax, dword [ebp + 8]
cmp dword [eax - 0xfc], 0x4550
jne 0x482081
mov eax, dword [ebp + 8]
lea edx, [eax - 0xf8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
mov ecx, 0x14
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp eax, 0x14
jne 0x482081
mov eax, dword [ebp + 8]
cmp word [eax - 0xf8], 0x14c
jne 0x482081
mov eax, dword [ebp + 8]
movzx ecx, word [eax - 0xe8]
mov eax, dword [ebp + 8]
lea edx, [eax - 0xe4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp + 8]
movzx edx, word [edx - 0xe8]
cmp eax, edx
jne 0x482081
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
pop ebx
pop ecx
pop ebp
ret
Function at 0x4917dc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4918f9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x214], 0
je 0x4918db
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x214]
call fcn.00405864
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4918db
xor eax, eax
push ebp
push 0x4918d4
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SetFilePointer_1
lea eax, [ebp - 0x24]
push eax
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 8]
call fcn.0040b9d8
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x14]
mov ecx, 0x491910
call fcn.004056ec
lea eax, [ebp - 0x14]
call fcn.004058c4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4918a6
mov eax, dword [ebp - 0x1c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_WriteFile_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4918db
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x491900
lea eax, [ebp - 0x24]
call fcn.004053d4
lea eax, [ebp - 0x14]
call fcn.004053d4
ret

Function at 0x493b44
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0xc]
cmp eax, 0x2710
jbe 0x493c35
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 8]
dec eax
cmp eax, 0
jl 0x493c35
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 8]
call fcn.0041f32c
mov dword [ebp - 0xc], eax
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 0xc]
sub eax, dword [edx + 8]
cmp eax, 0x1d4c0
jbe 0x493c28
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 8]
call fcn.0041f220
xor eax, eax
push ebp
push 0x493bda
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.00404454
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x493bee
xor eax, eax
push ebp
push 0x493c14
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x4938dc]
mov eax, dword [ebp - 0xc]
call fcn.004065a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x493c28
dec dword [ebp - 8]
cmp dword [ebp - 8], 0xffffffff
jne 0x493b87
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x493c74
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x10]
cmp eax, 0x2710
jbe 0x493d65
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
dec eax
cmp eax, 0
jl 0x493d65
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 8]
call fcn.0041f32c
mov dword [ebp - 0xc], eax
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 0xc]
sub eax, dword [edx + 8]
cmp eax, 0x1d4c0
jbe 0x493d58
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 8]
call fcn.0041f220
xor eax, eax
push ebp
push 0x493d0a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.00404454
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x493d1e
xor eax, eax
push ebp
push 0x493d44
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x4938dc]
mov eax, dword [ebp - 0xc]
call fcn.004065a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x493d58
dec dword [ebp - 8]
cmp dword [ebp - 8], 0xffffffff
jne 0x493cb7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b4cc8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
xor edx, edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405854
xor eax, eax
push ebp
push 0x4b4e04
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
call fcn.0040abe0
test al, al
je 0x4b4de6
mov edx, 0x40
mov eax, dword [ebp - 4]
call fcn.0040aa94
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4b4de6
mov ecx, 2
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.0040ab44
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jns 0x4b4d37
add eax, 3
sar eax, 2
shl eax, 2
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
call fcn.00402ff4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov edx, dword [ebp - 0x18]
call fcn.00403bb4
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.0040ab44
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
call fcn.0040aaec
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x2c]
mov eax, 4
call fcn.0040a650
mov ecx, dword [ebp - 0x2c]
mov dl, 1
mov eax, dword [0x409034]
call fcn.0040eb20
mov eax, dword [ebp - 0x18]
test eax, eax
jns 0x4b4dac
add eax, 3
sar eax, 2
dec eax
test eax, eax
jl 0x4b4dd8
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
xor dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
add eax, 4
mov dword [ebp - 0x20], eax
inc dword [ebp - 0xc]
dec dword [ebp - 0x28]
jne 0x4b4dbf
mov eax, dword [ebp - 0x1c]
call fcn.00403010
mov eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b4e0b
lea eax, [ebp - 0x2c]
call fcn.004053d4
lea eax, [ebp - 4]
call fcn.004053d4
ret

Function at 0x4b7170
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ecx
mov byte [ebp - 2], dl
mov byte [ebp - 1], al
mov al, byte [ebp - 2]
and al, 0x20
mov dl, byte [ebp - 2]
and dl, 0x1e
and edx, 0xff
shr edx, 1
or al, dl
mov dl, byte [ebp - 2]
and dl, 1
shl edx, 4
or al, dl
mov byte [ebp - 4], al
xor eax, eax
mov al, byte [ebp - 4]
xor edx, edx
mov dl, byte [ebp - 1]
shl edx, 3
lea edx, [edx*8 + 0x6a4f3c]
mov al, byte [edx + eax]
and al, 0xf
mov byte [ebp - 3], al
mov al, byte [ebp - 3]
pop ecx
pop ebp
ret
Function at 0x4b71c0
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov ebx, edx
test ebx, ebx
js 0x4b71d8
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x4b71d1
mov eax, esp
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 7
call fcn.00403bb4
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 0x6a513c]
and al, 7
and eax, 0xff
mov ecx, 7
sub ecx, eax
mov eax, 1
shl eax, cl
mov edx, dword [ebp - 0xc]
movzx edx, byte [edx + 0x6a513c]
shr edx, 3
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + edx]
and eax, edx
je 0x4b724a
mov eax, dword [ebp - 0xc]
and eax, 7
mov ecx, 7
sub ecx, eax
mov al, 1
shl al, cl
mov edx, dword [ebp - 0xc]
shr edx, 3
mov ecx, dword [ebp - 8]
or byte [ecx + edx], al
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x38
jne 0x4b71f7
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 4
Function at 0x4b74f8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
mov ebx, dword [ebp + 0x10]
test ebx, ebx
js 0x4b7511
shr ebx, 2
mov esi, dword [ecx + ebx*4]
dec ebx
push esi
jns 0x4b750a
mov ecx, esp
mov ebx, edx
test ebx, ebx
js 0x4b7523
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x4b751c
mov eax, esp
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 5
lea ecx, [ebp - 0x12]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.004b7038
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
mov al, byte [eax + edx]
mov edx, dword [ebp - 0x20]
xor byte [ebp + edx - 0x12], al
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 6
jne 0x4b7543
xor eax, eax
mov al, byte [ebp - 0x12]
shr eax, 2
mov byte [ebp - 0x1a], al
mov al, byte [ebp - 0x12]
and al, 3
shl eax, 4
xor edx, edx
mov dl, byte [ebp - 0x11]
shr edx, 4
or al, dl
mov byte [ebp - 0x19], al
mov al, byte [ebp - 0x11]
and al, 0xf
shl eax, 2
xor edx, edx
mov dl, byte [ebp - 0x10]
shr edx, 6
or al, dl
mov byte [ebp - 0x18], al
mov al, byte [ebp - 0x10]
and al, 0x3f
mov byte [ebp - 0x17], al
xor eax, eax
mov al, byte [ebp - 0xf]
shr eax, 2
mov byte [ebp - 0x16], al
mov al, byte [ebp - 0xf]
and al, 3
shl eax, 4
xor edx, edx
mov dl, byte [ebp - 0xe]
shr edx, 4
or al, dl
mov byte [ebp - 0x15], al
mov al, byte [ebp - 0xe]
and al, 0xf
shl eax, 2
xor edx, edx
mov dl, byte [ebp - 0xd]
shr edx, 6
or al, dl
mov byte [ebp - 0x14], al
mov al, byte [ebp - 0xd]
and al, 0x3f
mov byte [ebp - 0x13], al
xor eax, eax
mov dword [ebp - 0x20], eax
mov al, byte [ebp - 0x20]
mov edx, dword [ebp - 0x20]
mov dl, byte [ebp + edx - 0x1a]
call fcn.004b7170
mov edx, dword [ebp - 0x20]
mov byte [ebp + edx - 0x1a], al
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 8
jne 0x4b75db
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add eax, eax
mov al, byte [ebp + eax - 0x1a]
shl eax, 4
mov edx, dword [ebp - 0x20]
add edx, edx
or al, byte [ebp + edx - 0x19]
mov edx, dword [ebp - 0x20]
mov byte [ebp + edx - 0x12], al
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 4
jne 0x4b75ff
lea eax, [ebp - 0x12]
mov edx, 5
call fcn.004b70d4
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov al, byte [ebp + eax - 0x12]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x20]
mov byte [edx + ecx], al
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 4
jne 0x4b7636
mov esi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4be7b0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4be7de
mov eax, ebx
call fcn.004bf264
cmp dword [ebx + 0x40], 0
je 0x4be7d7
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4be84f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4be841
cmp dword [ebx + 8], 0
je 0x4be800
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4be812
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4be841
cmp dword [ebx + 8], 0
je 0x4be7f3
cmp eax, 3
je 0x4be825
dec eax
jne 0x4be7f3
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4be7f3
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4be7f3
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4be86d
cmp dword [ebx + 0x14], 0xcc
je 0x4be86d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004be878
pop ebx
ret