joyce8/EMBER2024-capa huggingface dataset:
Function at 0x480510
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4806b3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
push 0xbf
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
mov ebx, eax
mov eax, ebx
sub eax, 0xffffffff
je 0x48057a
sub eax, 2
je 0x48063c
sub eax, 0x101
je 0x4805b2
jmp 0x480691
cmp word [esi + 0x10a], 0
je 0x480691
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x2c]
call fcn.0040f89c
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetLastError
mov edx, eax
pop ecx
mov eax, dword [esi + 0x10c]
call dword [esi + 0x108]
jmp 0x480691
cmp word [esi + 0x10a], 0
je 0x480691
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x30]
call fcn.0040f89c
mov eax, dword [ebp - 0x30]
push eax
call sub.kernel32.dll_GetLastError
mov edx, eax
pop ecx
mov eax, dword [esi + 0x10c]
call dword [esi + 0x108]
jmp 0x480691
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_DispatchMessageW
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 8]
sub eax, dword [edx]
mov edx, dword [ebp + 8]
cmp eax, dword [edx]
jle 0x48063c
cmp word [esi + 0x10a], 0
je 0x48063c
lea edx, [ebp - 0x34]
mov eax, dword [0x4b1d98]
call fcn.00407e9c
mov eax, dword [ebp - 0x34]
push eax
call sub.kernel32.dll_GetLastError
mov edx, eax
pop ecx
mov eax, dword [esi + 0x10c]
call dword [esi + 0x108]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PeekMessageW
test eax, eax
jne 0x4805ea
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 8]
sub eax, dword [edx]
mov edx, dword [ebp + 8]
cmp eax, dword [edx]
jle 0x480691
cmp word [esi + 0x10a], 0
je 0x480691
lea edx, [ebp - 0x38]
mov eax, dword [0x4b1d98]
call fcn.00407e9c
mov eax, dword [ebp - 0x38]
push eax
call sub.kernel32.dll_GetLastError
mov edx, eax
pop ecx
mov eax, dword [esi + 0x10c]
call dword [esi + 0x108]
test ebx, ebx
sete al
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4806ba
lea eax, [ebp - 0x38]
mov edx, 4
call fcn.00405c38
ret
Function at 0x481b50
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x481bd9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4b81ac
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x481bc3
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040f89c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0x11
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x481bf4
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x4b2178]
mov dl, 1
mov eax, dword [0x481304]
call fcn.00410494
call fcn.0040470c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481be0
lea eax, [ebp - 0x1c]
call fcn.00405c30
ret

Function at 0x48226c
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, eax
xor esi, esi
xor edi, edi
movzx eax, byte [0x4822c8]
cmp al, byte [ebx + 0x28]
je 0x482290
mov esi, 0x401
mov eax, ebx
call fcn.004823d8
mov edi, eax
movzx eax, byte [ebx + 0x28]
push eax
push esi
push edi
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_WSAAsyncSelect
movzx eax, byte [0x4822c8]
cmp al, byte [ebx + 0x28]
jne 0x4822c0
xor eax, eax
mov dword [esp], eax
push esp
push 0x8004667e
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_ioctlsocket
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x482360
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.0048226c
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00403f28
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x4823c8
call fcn.00481a98
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x4823b6
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00403f28
pop esi
pop ebx
ret

Function at 0x4823f4
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x482480
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, ebx
mov ecx, 0
call fcn.00405e54
mov eax, dword [ebp - 0xc]
call fcn.00405688
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, 4
call fcn.00403600
test ebx, ebx
je 0x482464
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
movzx ecx, byte [edx]
mov byte [ebp - 8], cl
movzx ecx, byte [edx + 1]
mov byte [ebp - 7], cl
movzx ecx, byte [edx + 2]
mov byte [ebp - 6], cl
movzx eax, byte [edx + 3]
mov byte [ebp - 5], al
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482487
lea eax, [ebp - 0xc]
call fcn.00404f14
ret
Function at 0x4825e4
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x482615
mov ecx, dword [0x4b2088]
mov dl, 1
mov eax, dword [0x481304]
call fcn.00410458
call fcn.0040470c
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x482642
mov ecx, dword [0x4b2000]
mov dl, 1
mov eax, dword [0x481304]
call fcn.00410458
call fcn.0040470c
xor eax, eax
push ebp
push 0x4826be
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.00403f28
cmp byte [ebp + 8], 0
je 0x48269a
mov eax, dword [ebp + 0x10]
push eax
movzx eax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00482508
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
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.00482360
jmp 0x4826b4
mov eax, dword [ebp + 0x10]
push eax
movzx eax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00481da8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4826db
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x482950
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0048210c
xor eax, eax
push ebp
push 0x482ac3
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 0x482aad
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x48299c
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4829a6
call fcn.00404800
jmp 0x482aca
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041e1a4
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x482aa2
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov edi, eax
cmp edi, 0xffffffff
jne 0x482a55
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x482a42
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403f28
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.00482908
pop ecx
mov eax, dword [ebp - 4]
movzx edx, byte [0x482ad8]
cmp dl, byte [eax + 0x28]
je 0x482aa9
call fcn.00410394
jmp 0x482aa9
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041e1c4
jmp 0x482aa9
cmp edi, ebx
jge 0x482a71
mov eax, dword [ebp - 0xc]
add eax, edi
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041e1c4
jmp 0x4829a6
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.0041e1a4
cmp edx, dword [esp + 4]
jne 0x482a91
cmp eax, dword [esp]
pop edx
pop eax
jne 0x4829a6
push ebp
call fcn.00482908
pop ecx
jmp 0x482aa9
push ebp
call fcn.00482908
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482aca
mov eax, dword [ebp - 4]
call fcn.00482114
ret
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x482adc
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x482bfe
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0048210c
xor eax, eax
push ebp
push 0x482be1
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x482b2c
call fcn.00404800
jmp 0x482be8
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x482bcb
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x482bcb
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403f28
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 - 0xc], 0
je 0x482bcb
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040f89c
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x482c1c
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4b2178]
mov dl, 1
mov eax, dword [0x481304]
call fcn.00410494
call fcn.0040470c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482be8
mov eax, dword [ebp - 4]
call fcn.00482114
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482c05
lea eax, [ebp - 0x28]
call fcn.00405c30
ret
Function at 0x482c6c
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x482ddd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0048210c
xor eax, eax
push ebp
push 0x482dc0
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x482cd1
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x482cd1
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x482daa
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x482ce4
call fcn.00404800
jmp 0x482dc7
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
test eax, eax
jne 0x482d0b
cmp dword [ebp - 0x10], 0
jle 0x482d0b
cmp ebx, dword [ebp - 0x10]
jle 0x482d0b
mov ebx, dword [ebp - 0x10]
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x482daa
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x482daa
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403f28
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 - 0xc], 0
je 0x482daa
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
call fcn.0040f89c
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0x11
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
mov eax, 0x482dfc
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0x11
lea eax, [ebp - 0x28]
push eax
push 2
mov ecx, dword [0x4b2178]
mov dl, 1
mov eax, dword [0x481304]
call fcn.00410494
call fcn.0040470c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482dc7
mov eax, dword [ebp - 4]
call fcn.00482114
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482de4
lea eax, [ebp - 0x2c]
call fcn.00405c30
ret

Function at 0x484810
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x4b8344
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x484832
shr eax, 1
xor eax, 0xedb88320
jmp 0x484834
shr eax, 1
dec edx
jne 0x484820
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x484819
mov byte [0x4b8744], 1
pop esi
pop ebx
ret

Function at 0x484850
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x4b8744], 0
jne 0x484867
call fcn.00484810
mov eax, edi
dec eax
test eax, eax
jl 0x48488f
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4b8344]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x484871
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4872ac
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax + 0x461]
movzx ecx, dl
cmp ecx, 6
ja case.0x487346.0
jmp dword [ecx*4 + 0x4872df]
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x487311
sub dl, 8
je 0x487320
jmp case.0x487346.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x486f54
jmp case.0x487346.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x486fac
jmp case.0x487346.0
movzx ecx, byte [eax + 0x460]
cmp ecx, 0x10
ja case.0x487346.0
movzx ecx, byte [ecx + 0x48734d]
jmp dword [ecx*4 + 0x48735e]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x487058
jmp case.0x487346.0
cmp dl, 3
jne 0x48738b
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4870b0
jmp case.0x487346.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x48706c
jmp case.0x487346.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4870f4
jmp case.0x487346.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x4873b6
sub dl, 8
je 0x4873c2
jmp case.0x487346.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x487120
jmp case.0x487346.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x48718c
jmp case.0x487346.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x4873e1
sub dl, 8
je 0x4873ed
jmp case.0x487346.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x487248
jmp case.0x487346.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x487270
mov edx, dword [eax + 0x468]
mov ecx, dword [ebx + 0x1c]
dec ecx
imul edx, ecx
mov esi, edx
add esi, dword [eax + 0x450]
mov dword [ebp - 0xc], esi
mov esi, dword [eax + 0x454]
mov dword [ebp - 8], esi
add edx, dword [eax + 0x44c]
mov dword [ebp - 0x10], edx
mov esi, ecx
test esi, esi
jb 0x48748f
inc esi
mov eax, dword [ebx + 0x20]
inc eax
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
movzx eax, byte [ebx + 0x48]
mov ecx, dword [ebx + eax*4 + 0x40]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00486458
test eax, eax
je 0x48748f
mov eax, ebx
call fcn.00487498
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
lea edx, [eax + 1]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call dword [ebp - 0x18]
movzx eax, byte [ebx + 0x48]
xor al, 1
mov byte [ebx + 0x48], al
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x468]
sub dword [ebp - 0xc], eax
sub dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
add dword [ebp - 8], eax
dec esi
jne 0x487428
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x487498
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x4874c9
dec al
je 0x487504
dec al
je 0x487549
dec al
je 0x4875b2
jmp 0x48763c
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x48763c
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4874d9
jmp 0x48763c
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x48763c
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x487514
jmp 0x48763c
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x48763c
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x487578
xor ebp, ebp
jmp 0x487588
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x487591
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x487559
jmp 0x48763c
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x48763c
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x48760b
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.00484898
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4875c6
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x48dff8
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x48e026
mov eax, ebx
call fcn.0048eaac
cmp dword [ebx + 0x40], 0
je 0x48e01f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x48e097
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x48e089
cmp dword [ebx + 8], 0
je 0x48e048
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 0x48e05a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x48e089
cmp dword [ebx + 8], 0
je 0x48e03b
cmp eax, 3
je 0x48e06d
dec eax
jne 0x48e03b
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 0x48e03b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x48e03b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x48e0b5
cmp dword [ebx + 0x14], 0xcc
je 0x48e0b5
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.0048e0c0
pop ebx
ret
Function at 0x4a5f34
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
mov edi, eax
push pe_nt_image_headers32
mov eax, edi
mov ecx, 1
mov edx, dword [0x4a594c]
call fcn.00407164
add esp, 4
xor ecx, ecx
mov eax, dword [edi]
mov byte [eax + ecx], cl
inc ecx
cmp ecx, 0x100
jne 0x4a5f55
xor esi, esi
xor ecx, ecx
mov eax, ecx
cdq
idiv dword [0x4b1d48]
movzx eax, byte [edx + 0x4b1d40]
add esi, eax
mov eax, dword [edi]
movzx ebx, byte [eax + ecx]
movzx eax, bl
add esi, eax
and esi, 0x800000ff
jns 0x4a5f94
dec esi
or esi, 0xffffff00
inc esi
mov eax, ebx
mov edx, dword [edi]
movzx edx, byte [edx + esi]
mov ebx, dword [edi]
mov byte [ebx + ecx], dl
mov edx, dword [edi]
mov byte [edx + esi], al
inc ecx
cmp ecx, 0x100
jne 0x4a5f67
pop edi
pop esi
pop ebx
ret

Function at 0x4a5fb4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
xor edx, edx
mov dword [ebp - 0x24], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a6037
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1e]
xor ecx, ecx
mov edx, 0x1e
call fcn.00403600
xor eax, eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], 3
lea eax, [ebp - 0x24]
mov ecx, 0x4a6054
mov edx, ebx
call fcn.004060e4
mov eax, dword [ebp - 0x24]
call fcn.00405ccc
mov dword [ebp - 0x16], eax
mov eax, 0x4a6058
mov dword [ebp - 0x12], eax
mov word [ebp - 0xe], 0x14
lea eax, [ebp - 0x1e]
push eax
call sub.shell32.dll_SHFileOperationW
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a603e
lea eax, [ebp - 0x24]
call fcn.00405c30
ret