joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e8090
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 0x4e80c1
mov ecx, dword [0x56b5f4]
mov dl, 1
mov eax, dword [0x4e6f98]
call fcn.0048d248
call fcn.00484588
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 0x4e80ee
mov ecx, dword [0x56b558]
mov dl, 1
mov eax, dword [0x4e6f98]
call fcn.0048d248
call fcn.00484588
xor eax, eax
push ebp
push 0x4e816a
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.00483ff0
cmp byte [ebp + 8], 0
je 0x4e8146
mov eax, dword [ebp + 0x10]
push eax
mov ax, 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.004e7ff8
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.004e7ed0
jmp 0x4e8160
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.004e79c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e8187
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4e834c
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.004e7c90
xor eax, eax
push ebp
push 0x4e84be
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 0x4e84a8
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x4e8398
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4e83a2
call fcn.00484634
jmp 0x4e84c5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0049b44c
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 0x4e849d
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 0x4e8450
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x4e843d
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00483ff0
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.004e8304
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x4e84d0]
cmp dl, byte [eax + 0x28]
je 0x4e84a4
call fcn.0048d160
jmp 0x4e84a4
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0049b46c
jmp 0x4e84a4
cmp edi, ebx
jge 0x4e846c
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.0049b46c
jmp 0x4e83a2
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.0049b44c
cmp edx, dword [esp + 4]
jne 0x4e848c
cmp eax, dword [esp]
pop edx
pop eax
jne 0x4e83a2
push ebp
call fcn.004e8304
pop ecx
jmp 0x4e84a4
push ebp
call fcn.004e8304
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e84c5
mov eax, dword [ebp - 4]
call fcn.004e7c9c
ret
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e84d4
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 0x4e85f6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004e7c90
xor eax, eax
push ebp
push 0x4e85d9
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 0x4e8524
call fcn.00484634
jmp 0x4e85e0
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 0x4e85c3
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4e85c3
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00483ff0
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 0x4e85c3
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0048c944
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x4e8610
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x56b738]
mov dl, 1
mov eax, dword [0x4e6f98]
call fcn.0048d284
call fcn.00484588
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e85e0
mov eax, dword [ebp - 4]
call fcn.004e7c9c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e85fd
lea eax, [ebp - 0x28]
call fcn.00484bf8
ret
Function at 0x4e865c
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e87a6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004e7c90
xor eax, eax
push ebp
push 0x4e8789
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x4e86c1
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4e86c1
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 0x4e8773
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4e86d4
call fcn.00484634
jmp 0x4e8790
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 0x4e8773
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4e8773
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00483ff0
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 0x4e8773
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0048c944
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x4e87c0
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x56b738]
mov dl, 1
mov eax, dword [0x4e6f98]
call fcn.0048d284
call fcn.00484588
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e8790
mov eax, dword [ebp - 4]
call fcn.004e7c9c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e87ad
lea eax, [ebp - 0x28]
call fcn.00484bf8
ret

Function at 0x4f5c28
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov byte [ebp - 1], 0
push eax
push 0xffffffffffffffff
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov ebx, eax
test ebx, ebx
je 0x4f5c87
xor eax, eax
push ebp
push 0x4f5c6e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push ebx
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f5c7f
test bl, bl
je 0x4f5c87
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4f5e20
Capabilities:
Encode data using base64
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp + 4], ecx
mov dword [esp], edx
mov edi, 0x565ff0
lea ecx, [esp + 8]
mov dword [ecx], eax
mov eax, dword [esp]
mov dword [esp + 0xc], eax
xor ebx, ebx
xor esi, esi
mov eax, dword [esp + 4]
mov ebp, 3
cdq
idiv ebp
test eax, eax
jle 0x4f5ee4
mov edx, dword [ecx]
movzx edx, byte [edx + ebx]
shr edx, 2
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi], dl
mov edx, dword [ecx]
mov dl, byte [edx + ebx]
and dl, 3
and edx, 0xff
shl edx, 4
mov ebp, dword [ecx]
movzx ebp, byte [ebp + ebx + 1]
shr ebp, 4
add edx, ebp
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi + 1], dl
mov edx, dword [ecx]
mov dl, byte [edx + ebx + 1]
and dl, 0xf
and edx, 0xff
shl edx, 2
mov ebp, dword [ecx]
movzx ebp, byte [ebp + ebx + 2]
shr ebp, 6
add edx, ebp
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi + 2], dl
mov edx, dword [ecx]
mov dl, byte [edx + ebx + 2]
and dl, 0x3f
and edx, 0xff
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi + 3], dl
add esi, 4
add ebx, 3
dec eax
jne 0x4f5e58
mov eax, dword [esp + 4]
mov ebp, 3
cdq
idiv ebp
dec edx
je 0x4f5efb
dec edx
je 0x4f5f3c
jmp 0x4f5f99
mov eax, dword [ecx]
movzx eax, byte [eax + ebx]
shr eax, 2
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi], al
mov eax, dword [ecx]
mov al, byte [eax + ebx]
and al, 3
and eax, 0xff
shl eax, 4
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 1], al
mov eax, dword [esp + 0xc]
mov byte [eax + esi + 2], 0x3d
mov eax, dword [esp + 0xc]
mov byte [eax + esi + 3], 0x3d
jmp 0x4f5f99
mov eax, dword [ecx]
movzx eax, byte [eax + ebx]
shr eax, 2
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi], al
mov eax, dword [ecx]
mov al, byte [eax + ebx]
and al, 3
and eax, 0xff
shl eax, 4
mov edx, dword [ecx]
movzx edx, byte [edx + ebx + 1]
shr edx, 4
add eax, edx
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 1], al
mov eax, dword [ecx]
mov al, byte [eax + ebx + 1]
and al, 0xf
and eax, 0xff
shl eax, 2
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 2], al
mov eax, dword [esp + 0xc]
mov byte [eax + esi + 3], 0x3d
mov eax, dword [esp + 4]
add eax, 2
mov ecx, 3
cdq
idiv ecx
shl eax, 2
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4f5ffc
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp + 4], eax
mov dword [esp + 8], edx
xor esi, esi
xor edi, edi
xor eax, eax
mov ebp, ecx
test ebp, ebp
jns 0x4f6019
add ebp, 3
sar ebp, 2
test ebp, ebp
jle 0x4f612b
mov edx, 4
mov eax, esp
mov ecx, dword [esp + 4]
movzx ecx, byte [ecx + esi]
cmp ecx, 0x3d
jg 0x4f604c
je 0x4f6098
sub ecx, 0x2b
je 0x4f608e
sub ecx, 4
je 0x4f6093
dec ecx
sub ecx, 0xa
jb 0x4f607d
jmp 0x4f609b
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x4f605e
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x4f606c
jmp 0x4f609b
mov ecx, dword [esp + 4]
mov cl, byte [ecx + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x4f609b
mov ecx, dword [esp + 4]
mov cl, byte [ecx + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x4f609b
mov ecx, dword [esp + 4]
mov cl, byte [ecx + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x4f609b
mov byte [eax], 0x3e
jmp 0x4f609b
mov byte [eax], 0x3f
jmp 0x4f609b
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x4f602b
mov al, byte [esp]
shl eax, 2
xor edx, edx
mov dl, byte [esp + 1]
shr edx, 4
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + edi], al
lea eax, [edi + 1]
mov dl, byte [esp + 2]
cmp dl, 0xff
je 0x4f60eb
cmp byte [esp + 3], 0xff
jne 0x4f60eb
mov al, byte [esp + 1]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + edi + 1], al
lea eax, [edi + 2]
inc edi
jmp 0x4f6123
cmp dl, 0xff
je 0x4f6123
mov al, byte [esp + 1]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + edi + 1], al
mov eax, dword [esp + 8]
mov dl, byte [esp + 2]
shl edx, 6
or dl, byte [esp + 3]
mov byte [eax + edi + 2], dl
lea eax, [edi + 3]
add edi, 2
inc edi
dec ebp
jne 0x4f6024
add esp, 0xc
pop ebp
pop edi
pop esi
ret

Function at 0x4f6a14
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
test esi, esi
jbe 0x4f6a34
mov ecx, 1
mov ebx, edx
add ebx, ecx
dec ebx
mov bl, byte [ebx]
mov edi, eax
add edi, ecx
dec edi
xor byte [edi], bl
inc ecx
dec esi
jne 0x4f6a22
pop edi
pop esi
pop ebx
ret

Function at 0x4f790c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
mov bl, dl
dec ebx
test ebx, ebx
jb 0x4f7960
inc ebx
xor edx, edx
mov ecx, edx
shl ecx, 2
movzx esi, byte [eax + ecx]
lea esi, [esi*4 + 0x568230]
mov esi, dword [esi]
movzx edi, byte [eax + ecx + 1]
lea edi, [edi*4 + 0x568630]
xor esi, dword [edi]
movzx edi, byte [eax + ecx + 2]
lea edi, [edi*4 + 0x568a30]
xor esi, dword [edi]
movzx edi, byte [eax + ecx + 3]
lea edi, [edi*4 + 0x568e30]
xor esi, dword [edi]
lea ecx, [eax + ecx]
mov dword [ecx], esi
inc edx
dec ebx
jne 0x4f791b
pop edi
pop esi
pop ebx
ret
Function at 0x4f947c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, ebx
call fcn.00484bf8
mov dword [ebp - 0xc], pe_nt_image_headers32
lea eax, [ebp - 0x110]
mov edx, dword [ebp - 0xc]
call fcn.00487ce0
mov dword [ebp - 0x10], 1
xor edx, edx
push ebp
push 0x4f9584
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov eax, esi
call fcn.004850c8
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4f956d
xor edx, edx
push ebp
push 0x4f9566
push dword fs:[edx]
mov dword fs:[edx], esp
test edi, edi
jne 0x4f9517
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
jmp 0x4f9539
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, edi
call fcn.004850c8
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4f954f
mov eax, ebx
lea edx, [ebp - 0x110]
mov ecx, pe_nt_image_headers32
call fcn.00484e78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f956d
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f958b
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
Function at 0x50e65c
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov edi, eax
mov eax, edi
call fcn.00484bf8
push pe_nt_image_headers32
lea eax, [esp + 0xc]
push eax
call sub.wsock32.dll_gethostname
lea eax, [esp + 8]
push eax
call sub.wsock32.dll_gethostbyname
mov dword [esp], eax
cmp dword [esp], 0
jne 0x50e69e
mov eax, edi
mov edx, 0x50e6d8
call fcn.00484c4c
jmp 0x50e6c6
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
xor ebx, ebx
jmp 0x50e6bb
push dword [esi]
call sub.wsock32.dll_inet_ntoa
mov edx, edi
call fcn.0048a118
inc ebx
mov eax, dword [esp + 4]
mov esi, dword [eax + ebx*4]
test esi, esi
jne 0x50e6ac
add esp, 0x108
pop edi
pop esi
pop ebx
ret
Function at 0x5254e8
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x525516
mov eax, ebx
call fcn.00525f9c
cmp dword [ebx + 0x40], 0
je 0x52550f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x525587
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x525579
cmp dword [ebx + 8], 0
je 0x525538
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 0x52554a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x525579
cmp dword [ebx + 8], 0
je 0x52552b
cmp eax, 3
je 0x52555d
dec eax
jne 0x52552b
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 0x52552b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x52552b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x5255a5
cmp dword [ebx + 0x14], 0xcc
je 0x5255a5
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.005255b0
pop ebx
ret
Function at 0x536dc0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x536dc8
push ecx
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x536fcc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [edx + 2]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 1]
sub al, 0xe
je 0x536dfa
sub al, 0x10
jne 0x536fb1
mov esi, dword [ebp - 4]
mov al, byte [esi + 1]
mov byte [ebx + 0x3ad], al
lea edx, [ebp - 8]
movzx eax, word [esi + 2]
call fcn.00489384
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x354]
call fcn.004c1678
lea edx, [ebp - 0xc]
movzx eax, word [esi + 4]
call fcn.00489384
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x370]
call fcn.004c1678
lea edx, [ebp - 0x10]
movzx eax, word [esi + 6]
call fcn.00489384
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x380]
call fcn.004c1678
lea edx, [ebp - 0x14]
movzx eax, word [esi + 8]
call fcn.00489384
mov edx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x38c]
call fcn.004c1678
lea edx, [ebp - 0x18]
movzx eax, word [esi + 0xa]
call fcn.00489384
mov edx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x358]
call fcn.004c1678
lea edx, [ebp - 0x1c]
movzx eax, word [esi + 0xc]
call fcn.00489384
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebx + 0x36c]
call fcn.004c1678
lea edx, [ebp - 0x20]
movzx eax, word [esi + 0xe]
call fcn.00489384
mov edx, dword [ebp - 0x20]
mov eax, dword [ebx + 0x37c]
call fcn.004c1678
lea edx, [ebp - 0x24]
movzx eax, word [esi + 0x10]
call fcn.00489384
mov edx, dword [ebp - 0x24]
mov eax, dword [ebx + 0x388]
call fcn.004c1678
lea edx, [ebp - 0x28]
movzx eax, word [esi + 0x12]
call fcn.00489384
mov edx, dword [ebp - 0x28]
mov eax, dword [ebx + 0x35c]
call fcn.004c1678
lea edx, [ebp - 0x2c]
movzx eax, word [esi + 0x14]
call fcn.00489384
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebx + 0x368]
call fcn.004c1678
lea edx, [ebp - 0x30]
movzx eax, word [esi + 0x16]
call fcn.00489384
mov edx, dword [ebp - 0x30]
mov eax, dword [ebx + 0x378]
call fcn.004c1678
lea edx, [ebp - 0x34]
movzx eax, word [esi + 0x18]
call fcn.00489384
mov edx, dword [ebp - 0x34]
mov eax, dword [ebx + 0x360]
call fcn.004c1678
lea edx, [ebp - 0x38]
movzx eax, word [esi + 0x1a]
call fcn.00489384
mov edx, dword [ebp - 0x38]
mov eax, dword [ebx + 0x364]
call fcn.004c1678
lea edx, [ebp - 0x3c]
movzx eax, word [esi + 0x1c]
call fcn.00489384
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebx + 0x374]
call fcn.004c1678
lea edx, [ebp - 0x40]
movzx eax, word [esi + 0x1e]
call fcn.00489384
mov edx, dword [ebp - 0x40]
mov eax, dword [ebx + 0x384]
call fcn.004c1678
lea edx, [ebp - 0x44]
lea eax, [esi + 0x20]
call fcn.0048a118
mov edx, dword [ebp - 0x44]
mov eax, dword [ebx + 0x350]
call fcn.004c1678
mov dl, 1
mov eax, dword [0x5d2ef4]
call fcn.004daae0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x536fd3
lea eax, [ebp - 0x44]
mov edx, 0x10
call fcn.00484c1c
ret
Function at 0x53e540
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004850b8
xor eax, eax
push ebp
push 0x53e591
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004850c8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x53e575
test al, 0x10
jne 0x53e579
xor ebx, ebx
jmp 0x53e57b
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53e598
lea eax, [ebp - 4]
call fcn.00484bf8
ret

Function at 0x541908
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
dec ecx
test ecx, ecx
jb 0x541932
inc ecx
movzx esi, byte [edx]
mov ebx, dword [eax]
mov edi, ebx
and edi, 0xff
xor esi, edi
mov esi, dword [esi*4 + 0x56abe8]
shr ebx, 8
xor esi, ebx
mov dword [eax], esi
inc edx
dec ecx
jne 0x541911
pop edi
pop esi
pop ebx
ret
Function at 0x544ede
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
add eax, 0x3c
mov dword [ebp - 4], eax
mov esi, 0x10
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x38]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
add ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
mov dword [eax], ecx
mov edx, dword [ebp + 0x18]
cmp esi, dword [edx]
jbe 0x544f43
push dword [ebp + 0x10]
push edi
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
add ecx, 0x28
push ecx
call fcn.00545ec8
add esp, 0xc
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
add dword [eax + 0x38], edx
mov ecx, dword [ebp + 0x18]
xor eax, eax
mov dword [ecx], eax
xor eax, eax
jmp 0x545067
cmp ebx, edi
jne 0x544f51
mov eax, 0x1001
jmp 0x545067
mov edx, esi
sub edx, dword [ebp - 8]
push edx
push edi
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
add ecx, 0x28
push ecx
call fcn.00545ec8
add esp, 0xc
mov eax, esi
sub eax, dword [ebp - 8]
add edi, eax
mov edx, esi
sub edx, dword [ebp - 8]
sub dword [ebp + 0x10], edx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x18]
mov edx, dword [ebp + 8]
xor eax, dword [edx + 0x28]
mov dword [ebx], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x1c]
mov edx, dword [ebp + 8]
xor eax, dword [edx + 0x2c]
mov dword [ebx + 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x20]
mov edx, dword [ebp + 8]
xor eax, dword [edx + 0x30]
mov dword [ebx + 8], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x24]
mov edx, dword [ebp + 8]
xor eax, dword [edx + 0x34]
mov dword [ebx + 0xc], eax
push ebx
push dword [ebp - 4]
call fcn.005426ca
add esp, 8
add ebx, esi
cmp esi, dword [ebp + 0x10]
ja 0x545010
mov ecx, ebx
sub ecx, esi
mov eax, dword [ecx]
xor eax, dword [edi]
mov dword [ebx], eax
mov edx, ebx
sub edx, esi
mov ecx, dword [edx + 4]
xor ecx, dword [edi + 4]
mov dword [ebx + 4], ecx
mov eax, ebx
sub eax, esi
mov edx, dword [eax + 8]
xor edx, dword [edi + 8]
mov dword [ebx + 8], edx
mov ecx, ebx
sub ecx, esi
mov eax, dword [ecx + 0xc]
xor eax, dword [edi + 0xc]
mov dword [ebx + 0xc], eax
push ebx
push dword [ebp - 4]
call fcn.005426ca
add esp, 8
add edi, esi
add ebx, esi
sub dword [ebp + 0x10], esi
cmp esi, dword [ebp + 0x10]
jbe 0x544fc7
mov edx, ebx
sub edx, esi
mov ecx, dword [edx]
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], ecx
mov edx, ebx
sub edx, esi
mov ecx, dword [edx + 4]
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], ecx
mov edx, ebx
sub edx, esi
mov ecx, dword [edx + 8]
mov eax, dword [ebp + 8]
mov dword [eax + 0x20], ecx
sub ebx, esi
mov edx, dword [ebx + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x24], edx
push dword [ebp + 0x10]
push edi
mov eax, dword [ebp + 8]
add eax, 0x28
push eax
call fcn.00545ec8
add esp, 0xc
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [edx + 0x38], ecx
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
sub dword [eax], edx
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret