joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4866b0
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_CharNextA]
push edi
mov edi, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edi
mov ebx, edi
mov al, byte [edi]
test al, al
je 0x4866e3
cmp al, 0x2e
je 0x486729
push ebx
call esi
mov ebx, eax
mov al, byte [ebx]
test al, al
jne 0x4866d4
mov ebx, edi
mov dword [esp + 0xc], edi
mov al, byte [ebx]
test al, al
je 0x486703
nop
cmp al, 0x2f
je 0x486709
push ebx
call esi
mov ebx, eax
mov dword [esp + 0xc], ebx
mov al, byte [ebx]
test al, al
jne 0x4866f0
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov al, byte [edi]
mov ecx, edi
test al, al
je 0x486720
cmp al, 0x2f
je 0x486730
push ecx
call esi
mov ecx, eax
mov al, byte [ecx]
test al, al
jne 0x486711
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
inc ebx
mov dword [esp + 0xc], ebx
jmp 0x4866e9
mov esi, dword [0x540b24]
lea eax, [ecx + 2]
mov edi, dword [0x540b20]
push 0
push 3
push esi
push edi
mov dword [esp + 0x20], eax
call fcn.00504260
add eax, dword [0x540b28]
mov ecx, eax
mov dword [esp + 0x14], eax
adc edx, dword [0x540b2c]
xor ecx, edi
mov dword [0x540b28], eax
mov eax, edx
xor eax, esi
mov dword [0x540b2c], edx
or ecx, eax
je 0x486787
sub edi, dword [esp + 0x14]
mov dword [0x540b20], edi
sbb esi, edx
mov dword [0x540b24], esi
test esi, esi
jg 0x48679f
jl 0x48679f
cmp edi, 0x10f5
ja 0x48679f
test esi, esi
jg 0x4867b3
jl 0x48679f
test edi, edi
jae 0x4867b3
mov dword [0x540b20], 0
mov dword [0x540b24], 0
test ebx, ebx
jne 0x4867c5
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
jmp 0x4867c9
sub ebx, dword [esp + 0x10]
lea esi, [ebx + 1]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea eax, [esi + 1]
push eax
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push esi
push dword [esp + 0x14]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [esp + 0x1c]
mov edx, edi
push 0x7530
push str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_117.0.0.0_Safari_537.36_Edg_117.0.2045.36
push dword [esp + 0x20]
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.004864d0
add esp, 0x14
mov esi, eax
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
test esi, esi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x486d10
Capabilities:
Hash data with md5

Disassembly:
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov byte [ecx + 0x9c], 0
ret
Function at 0x487c50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
mov esi, ecx
test esi, esi
je 0x487e28
cmp dword [esi + 0x20], 0
je 0x487e28
cmp dword [esi + 0x24], 0
je 0x487e28
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x487e28
cmp dword [eax], esi
jne 0x487e28
mov eax, dword [eax + 4]
cmp eax, 0x2a
je 0x487cb4
cmp eax, 0x39
je 0x487cb4
cmp eax, 0x45
je 0x487cb4
cmp eax, 0x49
je 0x487cb4
cmp eax, 0x5b
je 0x487cb4
cmp eax, 0x67
je 0x487cb4
cmp eax, 0x71
je 0x487cb4
cmp eax, 0x29a
jne 0x487e28
push edi
mov edi, dword [esi + 0x1c]
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 2
mov eax, dword [edi + 8]
mov dword [edi + 0x10], eax
mov eax, dword [edi + 0x18]
mov dword [edi + 0x14], 0
test eax, eax
jns 0x487ced
neg eax
mov dword [edi + 0x18], eax
cmp eax, 2
jne 0x487cfd
mov dword [edi + 4], 0x39
xor eax, eax
jmp 0x487d18
neg eax
push 0
sbb eax, eax
xor edx, edx
and eax, 0xffffffb9
xor ecx, ecx
add eax, 0x71
mov dword [edi + 4], eax
call fcn.00487500
add esp, 4
mov dword [esi + 0x30], eax
mov ecx, edi
lea eax, [edi + 0x94]
mov dword [edi + 0x28], 0
mov dword [edi + 0xb18], eax
lea eax, [edi + 0x988]
mov dword [edi + 0xb24], eax
lea eax, [edi + 0xa7c]
mov dword [edi + 0xb30], eax
xor eax, eax
mov dword [edi + 0xb20], 0x524d34
mov dword [edi + 0xb2c], 0x525258
mov dword [edi + 0xb38], 0x524d48
mov word [edi + 0x16b8], ax
mov dword [edi + 0x16bc], eax
call fcn.0048c950
mov esi, dword [esi + 0x1c]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x4c]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.004e1ab0
mov eax, dword [esi + 0x84]
add esp, 0xc
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x52356a]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x523568]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x52356c]
mov dword [esi + 0x90], eax
xor eax, eax
movzx ecx, word [ecx*4 + 0x52356e]
pop edi
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x16b4], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [esi + 0x48], 0
pop esi
pop ebx
ret
pop esi
mov eax, 0xfffffffe
pop ebx
ret
Function at 0x48fce0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x100ac], 0
je 0x48fd89
cmp dword [esi + 0x7c], 0
jbe 0x48fd89
mov eax, 0xffffff5c
push ebx
sub eax, esi
lea ebx, [esi + 0xa4]
push edi
mov dword [ebp - 4], eax
movzx eax, byte [ebx]
mov ecx, dword [esi + 0x100d0]
xor eax, ecx
mov edx, dword [esi + 0x100dc]
movzx eax, al
mov edi, dword [esi + 0x100d8]
shr ecx, 8
and edi, 0xfffd
or edi, 2
xor ecx, dword [edx + eax*4]
movzx eax, cl
add eax, dword [esi + 0x100d4]
imul eax, eax, 0x8088405
mov dword [esi + 0x100d0], ecx
mov ecx, dword [esi + 0x100d8]
inc eax
mov dword [esi + 0x100d4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [edx + eax*4]
mov eax, edi
xor eax, 1
mov dword [esi + 0x100d8], ecx
imul eax, edi
shr eax, 8
xor byte [ebx], al
inc ebx
mov eax, dword [ebp - 4]
add eax, ebx
cmp eax, dword [esi + 0x7c]
jb 0x48fd10
pop edi
pop ebx
push dword [esi + 0x7c]
lea eax, [esi + 0xa4]
push eax
push dword [esi + 0x2c]
mov eax, dword [esi + 8]
push dword [esi + 0x1c]
call eax
mov ecx, dword [esi + 0x7c]
add esp, 0x10
sub eax, ecx
mov dword [esi + 0x7c], 0
neg eax
sbb eax, eax
add dword [esi + 0x100c0], ecx
mov ecx, dword [esi + 0x48]
adc dword [esi + 0x100c4], 0
add dword [esi + 0x100c8], ecx
mov dword [esi + 0x48], 0
adc dword [esi + 0x100cc], 0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4944e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, ecx
mov dword [ebp - 8], edx
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [eax + 0xc], 0
je 0x494534
push ebx
push esi
xor esi, esi
mov ebx, edx
push edi
mov edi, ecx
test ecx, ecx
jle 0x494524
movzx eax, byte [ebx]
lea ecx, [esi*8]
dec edi
lea ebx, [ebx + 1]
movzx edx, byte [eax + 0x5265d8]
xor edx, ecx
xor esi, edx
test edi, edi
jg 0x494504
mov ecx, dword [ebp + 8]
mov eax, esi
xor edx, edx
mov esi, dword [ebp - 4]
pop edi
div dword [esi]
mov eax, esi
pop esi
pop ebx
jmp 0x494536
xor edx, edx
push edx
mov edx, dword [ebp - 8]
push ecx
mov ecx, eax
call fcn.00494430
add esp, 8
test eax, eax
je 0x494550
mov eax, dword [eax + 8]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x495160
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5441c4]
sub esp, 0x31c
push ebx
mov ebx, edx
push esi
push edi
test eax, eax
je 0x495196
push eax
push 0x51fca8
lea eax, [ebp - 0x110]
push eax
push 0xe6
call fcn.00492e00
add esp, 0x10
jmp 0x495233
mov eax, dword [0x544530]
test eax, eax
jne 0x4951c8
lea eax, [ebp - 0x1a8]
mov dword [ebp - 0x1a8], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor eax, eax
cmp dword [ebp - 0x198], 2
sete al
inc eax
mov dword [0x544530], eax
cmp eax, 2
jne 0x4951ec
lea eax, [ebp - 0x318]
push eax
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x318]
call fcn.004948e0
jmp 0x495209
lea eax, [ebp - 0x218]
push eax
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x218]
call fcn.00494950
mov esi, eax
test esi, esi
je 0x495338
push esi
push 0x51fca8
lea eax, [ebp - 0x110]
push eax
push 0xe6
call fcn.00492e00
push esi
call fcn.004edd96
add esp, 0x14
cmp byte [ebp - 0x110], 0
lea eax, [ebp - 0x110]
je 0x495248
inc eax
cmp byte [eax], 0
jne 0x495242
lea ecx, [ebp - 0x110]
sub eax, ecx
and eax, 0x3fffffff
jbe 0x49526b
lea ecx, [ebp + eax - 0x111]
mov edi, edi
cmp byte [ecx], 0x5c
jne 0x49526b
dec ecx
sub eax, 1
jne 0x495260
mov byte [ebp + eax - 0x110], 0
lea eax, [ebp - 0x110]
push eax
push str._setilqs_
push ebx
push 0xe7
call fcn.00492e00
add esp, 0x10
mov edi, ebx
test ebx, ebx
je 0x4952a6
cmp byte [ebx], 0
je 0x49529e
inc edi
cmp byte [edi], 0
jne 0x495298
sub edi, ebx
and edi, 0x3fffffff
lea esi, [edi + ebx]
mov ecx, 0x14
mov edx, esi
call fcn.00492f20
add esi, 2
mov dword [ebp - 4], 0x3e
mov ecx, 4
movzx eax, byte [esi - 2]
lea esi, [esi + 5]
xor edx, edx
div dword [ebp - 4]
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
xor edx, edx
mov byte [esi - 7], al
movzx eax, byte [esi - 6]
div dword [ebp - 4]
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
xor edx, edx
mov byte [esi - 6], al
movzx eax, byte [esi - 5]
div dword [ebp - 4]
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
xor edx, edx
mov byte [esi - 5], al
movzx eax, byte [esi - 4]
div dword [ebp - 4]
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
xor edx, edx
mov byte [esi - 4], al
movzx eax, byte [esi - 3]
div dword [ebp - 4]
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [esi - 3], al
sub ecx, 1
jne 0x4952c4
mov byte [edi + ebx + 0x14], cl
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 7
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ae9a0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov eax, edx
mov dword [esp + 4], eax
push esi
push edi
mov edi, ecx
test eax, eax
je 0x4aeb35
test edi, edi
je 0x4aea0e
cmp byte [edi + 0x1e], 0
jne 0x4aeb35
cmp byte [edi + 0xe2], 0
je 0x4aea0e
mov eax, 0x44
cmp ax, word [edi + 0xe0]
ja 0x4aea0e
mov ebx, dword [edi + 0xec]
test ebx, ebx
je 0x4aea0e
mov eax, dword [ebx]
mov dword [edi + 0xec], eax
mov eax, dword [edi + 0xe4]
inc eax
mov dword [edi + 0xe4], eax
cmp eax, dword [edi + 0xe8]
jle 0x4aea2e
mov dword [edi + 0xe8], eax
jmp 0x4aea2e
push 0x44
call fcn.00491390
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4aea2e
test edi, edi
je 0x4aea26
mov byte [edi + 0x1e], 1
test ebx, ebx
je 0x4aeb35
mov edx, dword [esp + 0xc]
mov ecx, edi
mov esi, dword [ebp + 8]
push esi
mov edx, dword [edx]
call fcn.004ae3b0
mov dword [ebx], eax
add esp, 4
mov eax, dword [esp + 0xc]
mov ecx, edi
push esi
mov edx, dword [eax + 8]
call fcn.004ae600
mov dword [ebx + 8], eax
add esp, 4
mov eax, dword [esp + 0xc]
mov ecx, edi
push esi
mov edx, dword [eax + 0xc]
call fcn.004ae390
mov dword [ebx + 0xc], eax
add esp, 4
mov eax, dword [esp + 0xc]
mov ecx, edi
push esi
mov edx, dword [eax + 0x10]
call fcn.004ae3b0
mov dword [ebx + 0x10], eax
add esp, 4
mov eax, dword [esp + 0xc]
mov ecx, edi
push esi
mov edx, dword [eax + 0x14]
call fcn.004ae390
mov dword [ebx + 0x14], eax
add esp, 4
mov eax, dword [esp + 0xc]
mov ecx, edi
push esi
mov edx, dword [eax + 0x18]
call fcn.004ae3b0
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [ebx + 0x18], eax
mov al, byte [ecx + 4]
mov byte [ebx + 4], al
mov edx, dword [ecx + 0x1c]
mov ecx, edi
push esi
call fcn.004ae9a0
mov dword [ebx + 0x1c], eax
add esp, 4
mov eax, dword [esp + 0xc]
mov ecx, edi
push esi
mov edx, dword [eax + 0x28]
call fcn.004ae390
add esp, 4
mov dword [ebx + 0x28], eax
mov ecx, edi
push esi
mov esi, dword [esp + 0x10]
mov edx, dword [esi + 0x2c]
call fcn.004ae390
mov dword [ebx + 0x2c], eax
add esp, 4
mov dword [ebx + 0x30], 0
mov eax, 0xfff7
mov dword [ebx + 0x34], 0
mov cx, word [esi + 6]
and cx, ax
mov dword [ebx + 0x24], 0
mov word [ebx + 6], cx
mov eax, ebx
mov dword [ebx + 0x38], 0xffffffff
mov dword [ebx + 0x3c], 0xffffffff
mov dword [ebx + 0x40], 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b36f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
je 0x4b3875
test edi, edi
je 0x4b3875
movzx ecx, word [esi + 2]
push ebx
test ecx, 0x1000
jne 0x4b386c
movzx eax, word [edi + 2]
test eax, 0x1000
jne 0x4b386c
xor al, cl
test al, 0x10
jne 0x4b386c
mov al, byte [esi]
cmp al, byte [edi]
jne 0x4b386c
mov edx, dword [edi + 8]
mov ecx, dword [esi + 8]
call fcn.004b36f0
test eax, eax
je 0x4b386c
mov edx, dword [edi + 0xc]
mov ecx, dword [esi + 0xc]
call fcn.004b36f0
test eax, eax
je 0x4b386c
mov eax, dword [esi + 0x10]
mov ecx, dword [edi + 0x10]
test eax, eax
je 0x4b37bf
test ecx, ecx
je 0x4b386c
mov edx, dword [eax]
cmp edx, dword [ecx]
jne 0x4b386c
xor ebx, ebx
test edx, edx
jle 0x4b37c7
xor edx, edx
mov dword [ebp - 4], edx
jmp 0x4b3790
mov eax, dword [eax + 0xc]
mov ecx, dword [edx + eax]
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 0xc]
mov edx, dword [edx + eax]
call fcn.004b36f0
test eax, eax
je 0x4b386c
mov eax, dword [esi + 0x10]
inc ebx
mov edx, dword [ebp - 4]
add edx, 0x14
mov dword [ebp - 4], edx
cmp ebx, dword [eax]
jl 0x4b3790
jmp 0x4b37c7
test ecx, ecx
jne 0x4b386c
mov eax, dword [esi + 0x18]
cmp eax, dword [edi + 0x18]
jne 0x4b386c
mov eax, dword [esi + 0x20]
cmp eax, dword [edi + 0x20]
jne 0x4b386c
mov eax, dword [esi + 0x24]
cmp eax, dword [edi + 0x24]
jne 0x4b386c
mov eax, 0x800
test word [esi + 2], ax
je 0x4b3804
test word [edi + 2], ax
je 0x4b386c
mov eax, dword [esi + 4]
cmp eax, dword [edi + 4]
jmp 0x4b385e
cmp byte [esi], 0x98
je 0x4b3860
mov esi, dword [esi + 4]
test esi, esi
je 0x4b3860
test word [edi + 2], ax
jne 0x4b386c
mov edx, dword [edi + 4]
test edx, edx
je 0x4b386c
mov bl, byte [esi]
test bl, bl
je 0x4b3848
mov al, bl
sub esi, edx
movzx ecx, byte [edx]
mov bl, al
movzx eax, al
mov al, byte [eax + 0x5265d8]
cmp al, byte [ecx + 0x5265d8]
jne 0x4b3848
mov al, byte [esi + edx + 1]
inc edx
mov bl, al
test al, al
jne 0x4b3827
movzx eax, bl
movzx ecx, byte [eax + 0x5265d8]
movzx eax, byte [edx]
movzx eax, byte [eax + 0x5265d8]
sub ecx, eax
jne 0x4b386c
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp edi, esi
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b5e90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], ecx
mov eax, edx
xor ecx, ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], ecx
test edx, edx
jne 0x4b5eac
mov dword [ebp - 8], ecx
jmp 0x4b5ebf
cmp byte [edx], cl
je 0x4b5eb5
inc eax
cmp byte [eax], cl
jne 0x4b5eb0
sub eax, edx
and eax, 0x3fffffff
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push esi
mov esi, 1
mov dword [ebp - 0x10], esi
cmp dword [eax + 4], esi
jle 0x4b5f96
push ebx
mov ebx, dword [ebp + 8]
push edi
lea esp, [esp]
mov edi, esi
cmp esi, 2
jge 0x4b5eea
xor edi, 1
test ebx, ebx
je 0x4b5f55
mov eax, dword [eax + 8]
mov ecx, edi
add ecx, ecx
mov edx, dword [eax + ecx*8]
mov ecx, dword [ebp + 8]
mov bl, byte [ecx]
test bl, bl
je 0x4b5f34
sub ecx, edx
mov al, bl
mov dword [ebp - 0x18], ecx
mov esi, ecx
lea ebx, [ebx]
movzx ecx, byte [edx]
mov bl, al
movzx eax, al
mov al, byte [eax + 0x5265d8]
cmp al, byte [ecx + 0x5265d8]
jne 0x4b5f31
mov al, byte [esi + edx + 1]
inc edx
mov bl, al
test al, al
jne 0x4b5f10
mov esi, dword [ebp - 0x10]
movzx eax, byte [edx]
movzx ecx, byte [eax + 0x5265d8]
movzx eax, bl
mov ebx, dword [ebp + 8]
movzx eax, byte [eax + 0x5265d8]
sub eax, ecx
jne 0x4b5f77
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add edi, edi
push dword [ebp - 8]
mov ecx, dword [eax + edi*8 + 0xc]
add ecx, 4
call fcn.004944e0
mov ecx, eax
add esp, 4
mov dword [ebp - 0xc], ecx
test ecx, ecx
jne 0x4b5f8d
jmp 0x4b5f7a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
inc esi
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], esi
cmp esi, dword [eax + 4]
jl 0x4b5ee0
pop edi
pop ebx
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b5fa0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], eax
push edi
mov edi, edx
test edx, edx
je 0x4b5fcd
cmp byte [edx], al
je 0x4b5fc5
jmp 0x4b5fc0
inc edi
cmp byte [edi], al
jne 0x4b5fc0
sub edi, edx
and edi, 0x3fffffff
mov ebx, dword [ecx + 4]
mov esi, 1
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], ebx
cmp ebx, esi
jle 0x4b608c
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x14], ecx
lea esp, [esp]
mov eax, esi
cmp esi, 2
jge 0x4b5ffa
xor eax, 1
add eax, eax
mov ecx, dword [ecx + eax*8 + 0xc]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4b6062
mov edx, dword [ebp - 0x14]
mov bl, byte [ecx]
mov edx, dword [edx + eax*8]
test bl, bl
je 0x4b6044
sub ecx, edx
mov al, bl
mov dword [ebp - 0x18], ecx
mov edi, ecx
nop
movzx ecx, byte [edx]
mov bl, al
movzx eax, al
mov al, byte [eax + 0x5265d8]
cmp al, byte [ecx + 0x5265d8]
jne 0x4b6041
mov al, byte [edi + edx + 1]
inc edx
mov bl, al
test al, al
jne 0x4b6020
mov edi, dword [ebp - 4]
movzx eax, byte [edx]
movzx ecx, byte [eax + 0x5265d8]
movzx eax, bl
mov ebx, dword [ebp - 0xc]
movzx eax, byte [eax + 0x5265d8]
sub eax, ecx
jne 0x4b607a
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
push edi
add ecx, 0x14
call fcn.004944e0
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
jne 0x4b608c
jmp 0x4b607d
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
inc esi
mov ecx, dword [ebp - 0x14]
cmp esi, ebx
jl 0x4b5ff0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ddf9f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x4ddfc6
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x4ddfc9
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.004ddf7b
pop esi
leave
ret 8

Function at 0x4e03ef
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4e042e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4e042e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4e042e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4e042e
cmp dword [ecx + 0x74], 0xe
jbe 0x4e042e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4e526e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004e0840
mov eax, dword [0x540080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004f62f2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4e52b0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4e540c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00504260
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x543bf0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004ee6df
mov ecx, dword [esi*4 + 0x543bf0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x4e5405
cmp eax, dword [ecx + edi + 0x24]
jne 0x4e5405
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4e5405
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004ee6df
add esp, 0x14
test edx, edx
jl 0x4e5405
jg 0x4e537b
test eax, eax
jb 0x4e5405
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4e5405
jl 0x4e5395
cmp dword [ebp - 0x1008], eax
ja 0x4e5405
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4e53b3
test ebx, ebx
je 0x4e53ec
cmp ecx, edi
jae 0x4e53ec
mov al, byte [ecx]
cmp al, 0xd
jne 0x4e53cd
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4e53d9
cmp byte [ecx + 1], 0xa
jne 0x4e53d9
inc ecx
jmp 0x4e53d9
movzx eax, al
movsx eax, byte [eax + 0x540220]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4e53b3
cmp edx, ebx
jne 0x4e53b3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4e540a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004dfe97
leave
ret
Function at 0x4f439f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x543bf0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4f43df
cmp byte [ebx], 0xa
jne 0x4f43df
or byte [edi + eax + 0x28], 4
jmp 0x4f43e4
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4f44e3
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4f44c6
inc eax
cmp dl, 0xd
je 0x4f4410
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4f4436
cmp eax, ecx
jae 0x4f4444
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4f43f8
jmp 0x4f44e3
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4f44c1
cmp dword [ebp - 0x10], 0
je 0x4f44c1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x543bf0]
test byte [eax + edi + 0x28], 0x48
je 0x4f449b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4f4486
mov byte [esi], dl
jmp 0x4f4497
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x543bf0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4f44e3
cmp byte [ebp - 1], 0xa
jne 0x4f44aa
cmp esi, ebx
jne 0x4f44aa
mov byte [esi], 0xa
jmp 0x4f44e2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004ee6fd
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4f44e3
mov byte [esi], 0xd
jmp 0x4f44e2
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x543bf0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4f44e0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4f44e3
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret