joyce8/EMBER2024-capa huggingface dataset:
Function at 0x494fa0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00494e80
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00403b30
push 0x10
mov eax, dword [ebp - 4]
add eax, 0x18
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x495020
call fcn.00494688
mov eax, dword [ebp - 4]
mov byte [eax + 0x29], 0
mov eax, dword [ebp - 4]
test byte [eax + 0x28], 0x10
jne 0x495011
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
setne al
mov edx, dword [ebp - 4]
mov byte [edx + 8], al
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00403b30
pop esi
pop ecx
pop ebp
ret

Function at 0x495108
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404b44
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
xor ecx, ecx
mov edx, 4
call fcn.00403178
cmp dword [ebp - 0x10], 0
je 0x495177
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov al, byte [eax]
mov byte [ebp - 0x14], al
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov al, byte [eax + 1]
mov byte [ebp - 0x13], al
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov al, byte [eax + 2]
mov byte [ebp - 0x12], al
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov al, byte [eax + 3]
mov byte [ebp - 0x11], al
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x495280
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 0x4952b2
mov ecx, dword [0x532c18]
mov dl, 1
mov eax, dword [0x493f34]
call fcn.0040c8dc
call fcn.004040c0
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 0x4952e3
mov ecx, dword [0x532b50]
mov dl, 1
mov eax, dword [0x493f34]
call fcn.0040c8dc
call fcn.004040c0
xor eax, eax
push ebp
push 0x495361
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.00403b30
cmp byte [ebp + 8], 0
je 0x49533c
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.004951d4
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.00494fa0
jmp 0x495357
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.004949ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49537e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4955c4
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.00494ce4
xor eax, eax
push ebp
push 0x495742
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 0x49572c
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x49560f
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x495619
call fcn.0040416c
jmp 0x495749
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041aed4
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 0x495721
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 0x4956cf
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x2733
je 0x4956bc
lea eax, [ebp - 0x18]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403b30
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.0049557c
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x495754]
cmp dl, byte [eax + 0x28]
je 0x495728
call fcn.0040c7f4
jmp 0x495728
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041aef4
jmp 0x495728
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jle 0x4956f0
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.0041aef4
jmp 0x495619
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.0041aed4
cmp edx, dword [esp + 4]
jne 0x495710
cmp eax, dword [esp]
pop edx
pop eax
jne 0x495619
push ebp
call fcn.0049557c
pop ecx
jmp 0x495728
push ebp
call fcn.0049557c
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495749
mov eax, dword [ebp - 4]
call fcn.00494cfc
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x495758
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 0x495882
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00494ce4
xor eax, eax
push ebp
push 0x495865
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 0x4957aa
call fcn.0040416c
jmp 0x49586c
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 0x49584f
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x2733
je 0x49584f
lea eax, [ebp - 0x14]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403b30
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 0x49584f
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x14]
call fcn.0040bfe8
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, 0x49589c
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
lea eax, [ebp - 0x2c]
push eax
push 2
mov ecx, dword [0x532de8]
mov dl, 1
mov eax, dword [0x493f34]
call fcn.0040c918
call fcn.004040c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49586c
mov eax, dword [ebp - 4]
call fcn.00494cfc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495889
lea eax, [ebp - 0x30]
call fcn.00404684
ret
Function at 0x495914
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 0x495a67
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00494ce4
xor eax, eax
push ebp
push 0x495a4a
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x49597c
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x49597c
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 0x495a34
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x49598f
call fcn.0040416c
jmp 0x495a51
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 0x495a34
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x2733
je 0x495a34
lea eax, [ebp - 0x14]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403b30
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 0x495a34
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x14]
call fcn.0040bfe8
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, 0x495a80
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
lea eax, [ebp - 0x2c]
push eax
push 2
mov ecx, dword [0x532de8]
mov dl, 1
mov eax, dword [0x493f34]
call fcn.0040c918
call fcn.004040c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495a51
mov eax, dword [ebp - 4]
call fcn.00494cfc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495a6e
lea eax, [ebp - 0x30]
call fcn.00404684
ret
Function at 0x499124
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
test eax, eax
jns 0x499158
add eax, 3
sar eax, 2
test eax, eax
jle 0x4992b6
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x14], 1
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
movzx eax, byte [eax + edx]
cmp eax, 0x3d
jg 0x499195
je 0x4991fb
sub eax, 0x2b
je 0x4991e7
sub eax, 4
je 0x4991f1
dec eax
sub eax, 0xa
jb 0x4991d1
jmp 0x499203
add eax, 0xffffffbf
sub eax, 0x1a
jb 0x4991a7
add eax, 0xfffffffa
sub eax, 0x1a
jb 0x4991bb
jmp 0x499203
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
mov al, byte [eax + edx]
sub al, 0x41
mov edx, dword [ebp - 0x18]
mov byte [ebp + edx - 0x24], al
jmp 0x499203
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
mov al, byte [eax + edx]
sub al, 0x61
add al, 0x1a
mov edx, dword [ebp - 0x18]
mov byte [ebp + edx - 0x24], al
jmp 0x499203
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
mov al, byte [eax + edx]
sub al, 0x30
add al, 0x34
mov edx, dword [ebp - 0x18]
mov byte [ebp + edx - 0x24], al
jmp 0x499203
mov eax, dword [ebp - 0x18]
mov byte [ebp + eax - 0x24], 0x3e
jmp 0x499203
mov eax, dword [ebp - 0x18]
mov byte [ebp + eax - 0x24], 0x3f
jmp 0x499203
mov eax, dword [ebp - 0x18]
mov byte [ebp + eax - 0x24], 0xff
inc dword [ebp - 0x1c]
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 4
jne 0x499172
mov al, byte [ebp - 0x24]
shl eax, 2
xor edx, edx
mov dl, byte [ebp - 0x23]
shr edx, 4
or al, dl
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
mov byte [edx + ecx], al
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x10], eax
cmp byte [ebp - 0x22], 0xff
je 0x499267
cmp byte [ebp - 0x21], 0xff
jne 0x499267
mov al, byte [ebp - 0x23]
shl eax, 4
xor edx, edx
mov dl, byte [ebp - 0x22]
shr edx, 2
or al, dl
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
mov byte [edx + ecx + 1], al
mov eax, dword [ebp - 0x20]
add eax, 2
mov dword [ebp - 0x10], eax
inc dword [ebp - 0x20]
jmp 0x4992a7
cmp byte [ebp - 0x22], 0xff
je 0x4992a7
mov al, byte [ebp - 0x23]
shl eax, 4
xor edx, edx
mov dl, byte [ebp - 0x22]
shr edx, 2
or al, dl
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
mov byte [edx + ecx + 1], al
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
mov cl, byte [ebp - 0x22]
shl ecx, 6
or cl, byte [ebp - 0x21]
mov byte [eax + edx + 2], cl
mov eax, dword [ebp - 0x20]
add eax, 3
mov dword [ebp - 0x10], eax
add dword [ebp - 0x20], 2
inc dword [ebp - 0x20]
inc dword [ebp - 0x14]
dec dword [ebp - 0x30]
jne 0x49916d
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x49b9a8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x30], 0
jne 0x49b9d7
mov ecx, 0x49ba64
mov dl, 1
mov eax, dword [0x49ae10]
call fcn.0040c820
call fcn.004040c0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
test eax, eax
jle 0x49ba55
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x40]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x60]
mov eax, dword [ebp - 0x14]
mov al, byte [eax]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x40]
xor al, byte [edx]
mov edx, dword [ebp - 0x18]
mov byte [edx], al
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x44]
dec ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
inc eax
call fcn.004029d0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, dword [ebp - 4]
add eax, dword [edx + 0x44]
dec eax
mov edx, dword [ebp - 0x18]
mov dl, byte [edx]
mov byte [eax], dl
inc dword [ebp - 0x14]
inc dword [ebp - 0x18]
inc dword [ebp - 0x10]
dec dword [ebp - 0x1c]
jne 0x49b9f4
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x49ba7c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x30], 0
jne 0x49baab
mov ecx, 0x49bb40
mov dl, 1
mov eax, dword [0x49ae10]
call fcn.0040c820
call fcn.004040c0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
test eax, eax
jle 0x49bb2f
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x14]
mov al, byte [eax]
mov byte [ebp - 0x19], al
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x40]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x60]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov al, byte [eax]
mov edx, dword [ebp - 0x14]
xor al, byte [edx]
mov edx, dword [ebp - 0x18]
mov byte [edx], al
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x44]
dec ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
inc eax
call fcn.004029d0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, dword [ebp - 4]
add eax, dword [edx + 0x44]
dec eax
mov dl, byte [ebp - 0x19]
mov byte [eax], dl
inc dword [ebp - 0x14]
inc dword [ebp - 0x18]
inc dword [ebp - 0x10]
dec dword [ebp - 0x20]
jne 0x49bac8
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x49c2ac
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49c34e
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x49b134]
mov eax, 0x14
call fcn.004055b4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0xc], eax
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call dword [eax + 0x34]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.004087f8
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
add eax, 4
call fcn.004046d8
mov eax, dword [ebp - 4]
call dword [eax + 0x30]
mov edx, dword [ebp - 0xc]
mov dword [edx + 8], eax
mov eax, dword [0x5863c0]
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x10], al
mov eax, dword [ebp - 0xc]
mov dword [0x5863c0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49c355
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004046a8
ret

Function at 0x49c35c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49c3f2
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x49b15c]
mov eax, 0x10
call fcn.004055b4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call dword [eax + 0x34]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.004087f8
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
add eax, 4
call fcn.004046d8
mov eax, dword [ebp - 4]
call dword [eax + 0x30]
mov edx, dword [ebp - 8]
mov dword [edx + 8], eax
mov eax, dword [0x5863c4]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 8]
mov dword [0x5863c4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49c3f9
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004046a8
ret

Function at 0x49c474
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
test eax, eax
jle 0x49c4ae
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x10]
dec eax
mov al, byte [eax]
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x10]
dec edx
xor byte [edx], al
inc dword [ebp - 0x10]
dec dword [ebp - 0x14]
jne 0x49c494
mov esp, ebp
pop ebp
ret
Function at 0x49cb78
Capabilities:
Encrypt data using twofish

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and eax, 0xff
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
shr eax, 8
and eax, 0xff
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
shr eax, 0x10
and eax, 0xff
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
shr eax, 0x18
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0xc], 0x100
jne 0x49cc2f
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0x529754]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0xc]
and edx, 0xff
xor eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax + 0x529654]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0xc]
shr edx, 8
and edx, 0xff
xor eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax + 0x529654]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0xc]
shr edx, 0x10
and edx, 0xff
xor eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax + 0x529754]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0xc]
shr edx, 0x18
xor eax, edx
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0xc], 0xc0
jl 0x49cca7
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0x529754]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 8]
and edx, 0xff
xor eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax + 0x529754]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 8]
shr edx, 8
and edx, 0xff
xor eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax + 0x529654]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 8]
shr edx, 0x10
and edx, 0xff
xor eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax + 0x529654]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 8]
shr edx, 0x18
xor eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0x529654]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 4]
and edx, 0xff
xor eax, edx
movzx eax, byte [eax + 0x529654]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
and edx, 0xff
xor eax, edx
mov eax, dword [eax*4 + 0x5863d0]
mov edx, dword [ebp - 0x18]
movzx edx, byte [edx + 0x529754]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 4]
shr ecx, 8
and ecx, 0xff
xor edx, ecx
movzx edx, byte [edx + 0x529654]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
shr ecx, 8
and ecx, 0xff
xor edx, ecx
xor eax, dword [edx*4 + 0x5867d0]
mov edx, dword [ebp - 0x1c]
movzx edx, byte [edx + 0x529654]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 4]
shr ecx, 0x10
and ecx, 0xff
xor edx, ecx
movzx edx, byte [edx + 0x529754]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
shr ecx, 0x10
and ecx, 0xff
xor edx, ecx
xor eax, dword [edx*4 + 0x586bd0]
mov edx, dword [ebp - 0x20]
movzx edx, byte [edx + 0x529754]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 4]
shr ecx, 0x18
xor edx, ecx
movzx edx, byte [edx + 0x529754]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
shr ecx, 0x18
xor edx, ecx
xor eax, dword [edx*4 + 0x586fd0]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret