joyce8/EMBER2024-capa huggingface dataset:
Function at 0x543574
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
push esi
push edi
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, ebx
xor edx, edx
call fcn.00406ba8
xor edx, edx
push ebp
push 0x5435cc
push dword fs:[edx]
mov dword fs:[edx], esp
xor eax, eax
push 0
push esi
lea edx, [ebp - 0x20e]
push edx
push eax
call sub.shell32.dll_SHGetSpecialFolderPathW
mov eax, ebx
lea edx, [ebp - 0x20e]
mov ecx, 0x105
call fcn.00406db8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5435ea
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x543630
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x543738
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.00471f84
cmp dword [ebp - 4], 0
je 0x543674
mov eax, dword [ebp - 4]
mov edx, 0x543754
call fcn.00407204
jne 0x543688
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx]
mov eax, dword [ebp - 0xc]
mov edx, 0x543764
call fcn.00406f8c
jmp 0x5436f7
xor eax, eax
push ebp
push 0x5436bc
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x65
mov eax, dword [ebp - 4]
call fcn.00471a74
test al, al
jne 0x5436b2
mov eax, dword [ebp - 4]
call fcn.00471a98
dec ebx
jne 0x54369b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5436f7
mov ebx, dword [ebp - 0xc]
mov ebx, dword [ebx]
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x10]
call fcn.00406c34
push eax
call sub.kernel32.dll_GetFileAttributesW
test al, 1
setne al
test al, al
je 0x543722
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
xor edx, edx
call fcn.00471bc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54373f
lea eax, [ebp - 4]
call fcn.00406b98
ret
Function at 0x54714c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
xor edx, edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5472c3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x84]
call fcn.00471a2c
test al, al
je 0x5472a0
mov eax, ebx
call fcn.00546ad8
lea eax, [ebp - 4]
mov edx, 0x5472dc
call fcn.00406bfc
cmp byte [ebx + 0x10], 0
je 0x5471ab
lea eax, [ebp - 4]
mov edx, 0x547308
call fcn.00406f0c
cmp dword [ebx + 0x80], 0
je 0x5471e0
push 0x547324
push dword [ebx + 8]
push dword [ebp - 4]
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.0040705c
mov edx, dword [ebp - 0x44]
mov eax, dword [ebx + 0x84]
call dword [ebx + 0x80]
jmp 0x5472a0
cmp byte [ebx + 4], 3
jne 0x547225
push 0
push 0
push 0x547324
push dword [ebx + 8]
push dword [ebp - 4]
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.0040705c
mov eax, dword [ebp - 0x48]
call fcn.00406c34
push eax
mov eax, dword [ebx + 0x84]
call fcn.00406c34
push eax
push 0x547328
push 0
call sub.shell32.dll_ShellExecuteW
jmp 0x5472a0
lea eax, [ebp - 0x40]
xor ecx, ecx
mov edx, 0x3c
call fcn.00403bd8
mov dword [ebp - 0x40], 0x3c
mov eax, dword [0x693f1c]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 0x84]
call fcn.00406c34
mov dword [ebp - 0x30], eax
push 0x547324
push dword [ebx + 8]
push dword [ebp - 4]
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.0040705c
mov eax, dword [ebp - 0x4c]
call fcn.00406c34
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
push eax
call sub.shell32.dll_ShellExecuteExW
cmp dword [ebx + 0x68], 0
je 0x5472a0
lea eax, [ebx + 0x68]
mov edx, dword [eax]
xor ecx, ecx
mov dword [eax], ecx
mov eax, edx
call fcn.00404490
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5472ca
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.00406ba0
lea eax, [ebp - 4]
call fcn.00406b98
ret

Function at 0x549e04
Capabilities:
Hash data with md5

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0054a9bc
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
pop ebx
ret
Function at 0x54a8b8
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff20
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x40
jle 0x54a8fd
lea eax, [ebp - 0x60]
call fcn.00549e04
mov edx, ebx
lea eax, [ebp - 0x60]
mov ecx, dword [ebp + 0xc]
call fcn.00549e2c
lea edx, [ebp - 0x60]
mov eax, dword [ebp + 8]
call fcn.00549f00
mov dword [ebp + 0xc], 0x10
mov esi, dword [ebp + 8]
jmp 0x54a8ff
mov esi, ebx
xor ecx, ecx
lea eax, [ebp - 0xa0]
lea edx, [ebp - 0xe0]
lea ebx, [ecx + 1]
cmp ebx, dword [ebp + 0xc]
jg 0x54a928
movzx ebx, byte [esi]
xor bl, 0x36
mov byte [eax], bl
movzx ebx, byte [esi]
xor bl, 0x5c
mov byte [edx], bl
inc esi
jmp 0x54a92e
mov byte [eax], 0x36
mov byte [edx], 0x5c
inc ecx
inc edx
inc eax
cmp ecx, 0x40
jne 0x54a90d
lea eax, [ebp - 0x60]
call fcn.00549e04
lea edx, [ebp - 0xa0]
lea eax, [ebp - 0x60]
mov ecx, 0x40
call fcn.00549e2c
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x60]
mov ecx, dword [ebp - 8]
call fcn.0054a7a0
lea edx, [ebp - 0x60]
mov eax, dword [ebp + 8]
call fcn.00549f00
lea eax, [ebp - 0x60]
call fcn.00549e04
lea edx, [ebp - 0xe0]
lea eax, [ebp - 0x60]
mov ecx, 0x40
call fcn.00549e2c
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x60]
mov ecx, 0x10
call fcn.00549e2c
lea edx, [ebp - 0x60]
mov eax, dword [ebp + 8]
call fcn.00549f00
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5558f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x5558f9
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov byte [ebp - 5], cl
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x555abf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00555c54
xor eax, eax
push ebp
push 0x555a90
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 8
je 0x555949
call fcn.0040541c
jmp 0x555a97
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 8
je 0x555a1e
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 1
je 0x55599e
mov eax, dword [ebp - 4]
cmp word [eax + 0x3a], 0
je 0x55599e
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00555844
push dword [ebp - 0x10]
mov eax, dword [ebp - 4]
push dword [eax + 0x50]
push ebx
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040705c
mov eax, dword [ebp - 0xc]
push eax
mov edi, dword [ebp - 4]
movzx ecx, byte [ebp - 5]
mov edx, esi
mov eax, dword [edi + 0x3c]
call dword [edi + 0x38]
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 4
je 0x5559dd
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00555844
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
push dword [eax + 0x50]
push ebx
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.0040705c
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
call fcn.00406c34
push eax
call sub.kernel32.dll_OutputDebugStringW
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 2
je 0x555a7a
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.00555844
push dword [ebp - 0x24]
mov eax, dword [ebp - 4]
push dword [eax + 0x50]
push ebx
push 0x555adc
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.0040705c
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.00555864
jmp 0x555a7a
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 1
je 0x555a41
mov eax, dword [ebp - 4]
cmp word [eax + 0x3a], 0
je 0x555a41
push ebx
mov edi, dword [ebp - 4]
movzx ecx, byte [ebp - 5]
mov edx, esi
mov eax, dword [edi + 0x3c]
call dword [edi + 0x38]
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 4
je 0x555a57
mov eax, ebx
call fcn.00406c34
push eax
call sub.kernel32.dll_OutputDebugStringW
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 2
je 0x555a7a
lea eax, [ebp - 0x28]
mov ecx, 0x555adc
mov edx, ebx
call fcn.00406f8c
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.00555864
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x555a97
mov eax, dword [ebp - 4]
call fcn.00555c5c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x555ac6
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00406ba0
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.00406ba0
ret
Function at 0x559e28
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, ecx
mov dword [esp], edx
mov ebp, eax
xor esi, esi
mov ebx, dword [esp]
jmp 0x559e3c
inc ebx
mov eax, ebx
mov ecx, 3
cdq
idiv ecx
test edx, edx
jg 0x559e3b
mov eax, ebx
mov ecx, 3
cdq
idiv ecx
add eax, eax
add eax, eax
mov ebx, eax
mov eax, edi
xor ecx, ecx
mov edx, ebx
call fcn.004064dc
xor ebx, ebx
cmp esi, dword [esp]
jge 0x559fa0
inc ebx
mov eax, edi
call fcn.00406270
movzx edx, byte [ebp + esi]
and dl, 0xfc
movzx edx, dl
shr edx, 2
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
lea eax, [esi + 1]
cmp eax, dword [esp]
jge 0x559f59
inc ebx
mov eax, edi
call fcn.00406270
movzx edx, byte [ebp + esi]
and dl, 3
movzx edx, dl
shl edx, 4
movzx ecx, byte [ebp + esi + 1]
and cl, 0xf0
movzx ecx, cl
shr ecx, 4
add edx, ecx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
lea eax, [esi + 2]
cmp eax, dword [esp]
jge 0x559f28
inc ebx
mov eax, edi
call fcn.00406270
movzx edx, byte [ebp + esi + 1]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
movzx ecx, byte [ebp + esi + 2]
and cl, 0xc0
movzx ecx, cl
shr ecx, 6
add edx, ecx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call fcn.00406270
movzx edx, byte [ebp + esi + 2]
and dl, 0x3f
movzx edx, dl
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
jmp 0x559f94
inc ebx
mov eax, edi
call fcn.00406270
movzx edx, byte [ebp + esi + 1]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call fcn.00406270
mov byte [eax + ebx - 1], 0x3d
jmp 0x559f94
inc ebx
mov eax, edi
call fcn.00406270
movzx edx, byte [ebp + esi]
and dl, 3
movzx edx, dl
shl edx, 4
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call fcn.00406270
mov byte [eax + ebx - 1], 0x3d
inc ebx
mov eax, edi
call fcn.00406270
mov byte [eax + ebx - 1], 0x3d
add esi, 3
cmp esi, dword [esp]
jl 0x559e70
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x55b1dc
Capabilities:
Encode data using xor
Encrypt data using des
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffa4
mov dword [esp + 4], ecx
mov dword [esp], edx
mov esi, 0x30
mov edi, 0x68ef10
mov ecx, dword [esp]
lea edx, [esp + 0xc]
movzx ebx, byte [edi]
movzx ebx, byte [eax + ebx - 1]
xor bl, byte [ecx]
mov byte [edx], bl
inc edx
inc ecx
inc edi
dec esi
jne 0x55b1fb
mov esi, 1
mov edx, 0x68f018
mov ecx, esi
dec ecx
mov eax, ecx
add eax, eax
lea eax, [eax + eax*2]
add ecx, ecx
add ecx, ecx
movzx ebx, byte [esp + eax + 0xc]
mov edi, ebx
add edi, edi
movzx ebx, byte [esp + eax + 0x11]
add edi, ebx
movzx ebx, byte [esp + eax + 0xd]
add ebx, ebx
add ebx, ebx
add ebx, ebx
movzx ebp, byte [esp + eax + 0xe]
add ebp, ebp
add ebp, ebp
add ebx, ebp
movzx ebp, byte [esp + eax + 0xf]
add ebp, ebp
add ebx, ebp
movzx eax, byte [esp + eax + 0x10]
add ebx, eax
mov dword [esp + 8], ebx
mov eax, 1
mov ebx, eax
dec ebx
je 0x55b274
dec ebx
je 0x55b296
dec ebx
je 0x55b2b8
dec ebx
je 0x55b2d9
jmp 0x55b2f3
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
movzx ebx, byte [ebx + ebp - 0x40]
and bl, 8
movzx ebx, bl
shr ebx, 3
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
jmp 0x55b2f3
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
movzx ebx, byte [ebx + ebp - 0x40]
and bl, 4
movzx ebx, bl
shr ebx, 2
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
jmp 0x55b2f3
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
movzx ebx, byte [ebx + ebp - 0x40]
and bl, 2
movzx ebx, bl
shr ebx, 1
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
jmp 0x55b2f3
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
movzx ebx, byte [ebx + ebp - 0x40]
and bl, 1
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
inc eax
cmp eax, 5
jne 0x55b264
inc esi
add edx, 0x40
cmp esi, 9
jne 0x55b217
mov esi, 0x20
mov eax, 0x68ef40
mov edx, dword [esp + 4]
movzx ecx, byte [eax]
movzx ecx, byte [esp + ecx + 0x3b]
mov byte [edx], cl
inc edx
inc eax
dec esi
jne 0x55b318
add esp, 0x5c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x55b354
Capabilities:
Encrypt data using des

Disassembly:
push ebx
push esi
push edi
push ecx
mov dword [esp], ecx
mov esi, eax
movzx eax, dl
movzx ebx, byte [eax + 0x68efc7]
test bl, bl
jbe 0x55b385
lea eax, [esi + 0x3e0]
call fcn.0055b330
lea eax, [esi + 0x3fc]
call fcn.0055b330
dec bl
jne 0x55b36b
mov cl, 0x30
mov edi, 0x68ef98
mov eax, dword [esp]
movzx edx, byte [edi]
cmp dl, 0x1c
ja 0x55b3a6
movzx edx, dl
movzx edx, byte [esi + edx + 0x3df]
mov byte [eax], dl
jmp 0x55b3b3
movzx edx, dl
movzx edx, byte [esi + edx + 0x3df]
mov byte [eax], dl
inc eax
inc edi
dec cl
jne 0x55b38f
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x55b3c0
Capabilities:
Encode data using xor
Encrypt data using des
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbdc
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov bl, 1
lea esi, [ebp - 0x421]
mov eax, edi
mov edx, ebx
call fcn.0055b174
mov byte [esi], al
inc ebx
inc esi
cmp bl, 0x41
jne 0x55b3dc
mov bl, 0x1c
mov esi, str.91__
lea edi, [ebp - 0x41]
movzx edx, byte [esi]
mov eax, dword [ebp - 8]
call fcn.0055b174
mov byte [edi], al
movzx edx, byte [esi + 0x1c]
mov eax, dword [ebp - 8]
call fcn.0055b174
mov byte [edi + 0x1c], al
inc edi
inc esi
dec bl
jne 0x55b3f8
mov bl, 1
lea esi, [ebp - 0x3a1]
mov ecx, esi
lea eax, [ebp - 0x421]
mov edx, ebx
call fcn.0055b354
inc ebx
add esi, 0x30
cmp bl, 0x11
jne 0x55b422
mov bl, 1
mov eax, 0x68ee90
lea edx, [ebp - 0xa1]
cmp bl, 0x20
ja 0x55b45b
movzx ecx, byte [eax]
movzx ecx, byte [ebp + ecx - 0x422]
mov byte [edx], cl
jmp 0x55b468
movzx ecx, byte [eax]
movzx ecx, byte [ebp + ecx - 0x422]
mov byte [edx], cl
inc ebx
inc edx
inc eax
cmp bl, 0x41
jne 0x55b447
mov byte [ebp - 9], 1
lea esi, [ebp - 0x3a1]
cmp byte [ebp + 8], 0
je 0x55b492
lea ecx, [ebp - 0x61]
mov edx, esi
lea eax, [ebp - 0x81]
call fcn.0055b1dc
jmp 0x55b4b9
movzx eax, byte [ebp - 9]
mov edx, 0x11
sub edx, eax
mov eax, edx
add eax, eax
lea eax, [eax + eax*2]
lea edx, [ebp + eax*8 - 0x3d1]
lea ecx, [ebp - 0x61]
lea eax, [ebp - 0x81]
call fcn.0055b1dc
mov bl, 0x20
lea eax, [ebp - 0xa1]
movzx edx, byte [eax]
xor byte [eax + 0x40], dl
inc eax
dec bl
jne 0x55b4c1
push esi
lea esi, [ebp - 0x81]
lea edi, [ebp - 0xa1]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop esi
push esi
lea esi, [ebp - 0x61]
lea edi, [ebp - 0x81]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop esi
inc byte [ebp - 9]
add esi, 0x30
cmp byte [ebp - 9], 0x11
jne 0x55b47a
mov bl, 0x40
mov esi, 0x68eed0
lea eax, [ebp - 0x3e1]
movzx edx, byte [esi]
cmp dl, 0x20
ja 0x55b527
movzx edx, dl
movzx edx, byte [ebp + edx - 0x82]
mov byte [eax], dl
jmp 0x55b534
movzx edx, dl
movzx edx, byte [ebp + edx - 0xc2]
mov byte [eax], dl
inc eax
inc esi
dec bl
jne 0x55b510
mov bl, 1
lea esi, [ebp - 0x3e1]
movzx ecx, byte [esi]
mov eax, dword [ebp - 4]
mov edx, ebx
call fcn.0055b19c
inc ebx
inc esi
cmp bl, 0x41
jne 0x55b542
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x55c0a0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, ecx
mov dword [esp], edx
mov esi, eax
movzx edx, byte [esi]
mov byte [esp + 4], dl
shl edx, 7
and dl, 0xff
movzx eax, byte [esi + 1]
movzx ecx, al
shr ecx, 1
or dl, cl
mov byte [esp + 5], dl
shl eax, 6
and al, 0xff
movzx edx, byte [esi + 2]
movzx ecx, dl
shr ecx, 2
or al, cl
mov byte [esp + 6], al
shl edx, 5
and dl, 0xff
movzx eax, byte [esi + 3]
movzx ecx, al
shr ecx, 3
or dl, cl
mov byte [esp + 7], dl
shl eax, 4
and al, 0xff
movzx edx, byte [esi + 4]
shr edx, 4
or al, dl
mov byte [esp + 8], al
movzx eax, byte [esi + 4]
add eax, eax
add eax, eax
add eax, eax
and al, 0xff
movzx edx, byte [esi + 5]
shr edx, 5
or al, dl
mov byte [esp + 9], al
movzx eax, byte [esi + 5]
add eax, eax
add eax, eax
and al, 0xff
movzx edx, byte [esi + 6]
shr edx, 6
or al, dl
mov byte [esp + 0xa], al
movzx eax, byte [esi + 6]
add eax, eax
and al, 0xff
mov byte [esp + 0xb], al
mov ebp, 8
lea eax, [esp + 4]
mov edx, 1
xor esi, esi
mov ecx, edx
movzx ebx, byte [eax]
shl ebx, cl
mov ecx, ebx
xor ecx, esi
and ecx, 1
mov esi, ecx
inc edx
cmp edx, 8
jne 0x55c151
movzx edx, byte [eax]
and dl, 0xfe
mov ecx, esi
or dl, cl
mov byte [eax], dl
inc eax
dec ebp
jne 0x55c14c
mov eax, edi
xor ecx, ecx
mov edx, 8
call fcn.004064dc
push 1
mov eax, edi
call fcn.00406270
mov edx, eax
lea ecx, [esp + 8]
mov eax, dword [esp + 4]
call fcn.0055b3c0
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x593f70
Capabilities:
Encode data using base64
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
add eax, eax
add eax, eax
mov ecx, 3
cdq
idiv ecx
mov edx, eax
add edx, 4
mov ecx, esi
xor eax, eax
call fcn.00406574
cmp byte [ebp - 1], 0
jne 0x593fd0
mov eax, esi
call fcn.00406270
movzx edx, byte [ebp - 0xc]
dec edx
and dl, 0x3f
add dl, 0x21
mov byte [eax], dl
mov eax, dword [ebp - 0xc]
add eax, 2
mov ecx, 3
cdq
idiv ecx
lea eax, [eax + eax*2]
mov dword [ebp - 0xc], eax
mov edi, 2
xor eax, eax
mov dword [ebp - 0x10], eax
xor ebx, ebx
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x593fea
sub al, 2
jb 0x593ff1
jmp 0x593ff6
mov ebx, 2
jmp 0x593ff6
mov ebx, 1
mov eax, esi
call fcn.00406270
mov byte [eax + ebx - 1], 0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jge 0x5940da
test edi, edi
jle 0x594052
mov eax, esi
call fcn.00406270
lea eax, [eax + ebx - 1]
push eax
mov ecx, edi
mov eax, 0x3f
shl eax, cl
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx edx, byte [edx + ecx]
and eax, edx
mov ecx, edi
shr eax, cl
mov edx, dword [esi]
or al, byte [edx + ebx - 1]
pop edx
mov byte [edx], al
sub edi, 6
inc ebx
mov eax, esi
call fcn.00406270
mov byte [eax + ebx - 1], 0
jmp 0x5940ce
test edi, edi
jge 0x594098
mov eax, edi
cdq
xor eax, edx
sub eax, edx
mov edi, eax
mov eax, esi
call fcn.00406270
lea eax, [eax + ebx - 1]
push eax
mov ecx, edi
mov eax, 0x3f
shr eax, cl
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
and al, byte [edx + ecx]
mov ecx, edi
shl al, cl
mov edx, dword [esi]
or al, byte [edx + ebx - 1]
pop edx
mov byte [edx], al
mov eax, 8
sub eax, edi
mov edi, eax
inc dword [ebp - 0x10]
jmp 0x5940ce
mov eax, esi
call fcn.00406270
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx edx, byte [edx + ecx]
and dl, 0x3f
mov ecx, dword [esi]
movzx ecx, byte [ecx + ebx - 1]
or dl, cl
mov byte [eax + ebx - 1], dl
inc ebx
inc dword [ebp - 0x10]
mov eax, esi
call fcn.00406270
mov byte [eax + ebx - 1], 0
mov edi, 2
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jl 0x59400e
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x5940eb
sub al, 2
jb 0x594125
jmp 0x59416d
cmp edi, 2
jne 0x5940f1
dec ebx
mov eax, ebx
sub eax, 2
jl 0x59416d
inc eax
mov dword [ebp - 0x14], eax
mov edi, 2
mov eax, esi
call fcn.00406270
mov edx, dword [esi]
movzx edx, byte [edx + edi - 1]
mov ecx, dword [0x68f3e0]
movzx edx, byte [ecx + edx]
mov byte [eax + edi - 1], dl
inc edi
dec dword [ebp - 0x14]
jne 0x594101
jmp 0x59416d
cmp edi, 2
jne 0x59412b
dec ebx
test ebx, ebx
jle 0x594168
mov dword [ebp - 0x14], ebx
mov edi, 1
mov eax, esi
call fcn.00406270
mov edx, dword [esi]
movzx edx, byte [edx + edi - 1]
mov ecx, dword [0x68f3e4]
movzx edx, byte [ecx + edx]
mov byte [eax + edi - 1], dl
inc edi
dec dword [ebp - 0x14]
jne 0x594137
jmp 0x594168
inc ebx
mov eax, esi
call fcn.00406270
mov byte [eax + ebx - 1], 0x3d
test bl, 3
jne 0x59415b
mov eax, esi
xor ecx, ecx
mov edx, ebx
call fcn.004064dc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5c1680
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x5c16da
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.005c1674
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.005beb40
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.005be6a4
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c16e1
lea eax, [ebp - 4]
call fcn.00406b98
ret
Function at 0x5d4914
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
xor ecx, ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406b90
xor eax, eax
push ebp
push 0x5d4ad4
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov dl, 1
mov eax, dword [0x58b394]
call fcn.0058b8c4
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5d4aa5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x6dc73c], 0
je 0x5d49bf
mov eax, dword [ebp - 0xc]
add eax, 0x90
mov edx, dword [0x6dc73c]
call fcn.00406ba8
lea edx, [ebp - 0x50]
mov eax, dword [0x6dc740]
call fcn.004712b0
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0xc]
add eax, 0x94
call fcn.00406ba8
mov eax, dword [ebp - 0xc]
add eax, 0xa8
mov edx, dword [0x6dc744]
call fcn.00406ba8
mov eax, dword [ebp - 0xc]
add eax, 0xac
mov edx, dword [0x6dc748]
call fcn.00406ba8
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x40
call fcn.00403bd8
push 0x20
lea eax, [ebp - 0x4c]
push eax
push 0x59
push 0x400
call sub.kernel32.dll_GetLocaleInfoW_1
lea eax, [ebp - 8]
lea edx, [ebp - 0x4c]
mov ecx, 0x20
call fcn.00406db8
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x40
call fcn.00403bd8
push 0x20
lea eax, [ebp - 0x4c]
push eax
push 0x5a
push 0x400
call sub.kernel32.dll_GetLocaleInfoW_1
push dword [ebp - 8]
push 0x5d4aec
lea eax, [ebp - 0x54]
lea edx, [ebp - 0x4c]
mov ecx, 0x20
call fcn.00406db8
push dword [ebp - 0x54]
lea eax, [ebp - 8]
mov edx, 3
call fcn.0040705c
mov eax, dword [ebp - 0xc]
add eax, 0x118
mov edx, dword [ebp - 8]
call fcn.00406ba8
xor ecx, ecx
mov dl, 1
mov eax, dword [0x560270]
call fcn.005726a8
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0059478c
mov eax, dword [ebp - 0xc]
call fcn.00594780
call fcn.00576a98
mov eax, dword [ebp - 0xc]
add eax, 0xec
mov edx, dword [ebp - 4]
call fcn.00406ba8
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x188], ebx
mov eax, dword [ebp - 0xc]
call fcn.00593e30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d4aac
mov eax, dword [ebp - 0xc]
call fcn.00404490
ret