joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47fd90
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 0x480d90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
mov esi, ecx
test esi, esi
je 0x480f6d
cmp dword [esi + 0x20], 0
je 0x480f6d
cmp dword [esi + 0x24], 0
je 0x480f6d
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x480f6d
cmp dword [eax], esi
jne 0x480f6d
mov eax, dword [eax + 4]
cmp eax, 0x2a
je 0x480df4
cmp eax, 0x39
je 0x480df4
cmp eax, 0x45
je 0x480df4
cmp eax, 0x49
je 0x480df4
cmp eax, 0x5b
je 0x480df4
cmp eax, 0x67
je 0x480df4
cmp eax, 0x71
je 0x480df4
cmp eax, 0x29a
jne 0x480f6d
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 ecx, dword [edi + 0x18]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], eax
test ecx, ecx
jns 0x480e2d
neg ecx
mov dword [edi + 0x18], ecx
cmp ecx, 2
jne 0x480e3d
mov dword [edi + 4], 0x39
xor eax, eax
jmp 0x480e5d
test ecx, ecx
mov edx, 0x2a
mov eax, 0x71
cmovne eax, edx
xor edx, edx
push 0
xor ecx, ecx
mov dword [edi + 4], eax
call fcn.004805d0
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], 0x51bd8c
mov dword [edi + 0xb2c], 0x51bf14
mov dword [edi + 0xb38], 0x51be14
mov word [edi + 0x16b8], ax
mov dword [edi + 0x16bc], eax
call fcn.004858f0
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.004dde70
mov eax, dword [esi + 0x84]
add esp, 0xc
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x51a72a]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x51a728]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x51a72c]
mov dword [esi + 0x90], eax
xor eax, eax
movzx ecx, word [ecx*4 + 0x51a72e]
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 0x488c30
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x100ac], ebx
je 0x488cd9
cmp dword [esi + 0x7c], ebx
jbe 0x488cd9
mov eax, 0xffffff5c
lea ebx, [esi + 0xa4]
sub eax, esi
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 0x488c60
xor ebx, ebx
mov edi, dword [esi + 0x7c]
lea eax, [esi + 0xa4]
push edi
push eax
push dword [esi + 0x2c]
mov eax, dword [esi + 8]
push dword [esi + 0x1c]
call eax
add esp, 0x10
mov dword [esi + 0x7c], 0
or ecx, 0xffffffff
cmp eax, edi
cmovne ebx, ecx
add dword [esi + 0x100c0], edi
mov ecx, dword [esi + 0x48]
mov eax, ebx
adc dword [esi + 0x100c4], 0
add dword [esi + 0x100c8], ecx
pop edi
adc dword [esi + 0x100cc], 0
mov dword [esi + 0x48], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48d8e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [edx*8]
mov ebx, ecx
cmp eax, 0x400
mov dword [ebp - 4], ebx
mov esi, 0x80
cmovbe esi, edx
push edi
cmp esi, dword [ebx]
je 0x48da9a
mov eax, dword [0x535404]
test eax, eax
je 0x48d915
call eax
lea eax, [esi*8]
push eax
call fcn.0048a4e0
mov ecx, dword [0x535408]
add esp, 4
mov edi, eax
mov dword [ebp - 0xc], edi
test ecx, ecx
je 0x48d936
call ecx
test edi, edi
je 0x48da9a
mov esi, dword [ebx + 0xc]
test esi, esi
je 0x48d9b0
cmp dword [0x532cd8], 0
je 0x48d9a6
mov eax, dword [0x535520]
test eax, eax
je 0x48d961
push eax
call dword [0x532d20]
add esp, 4
push esi
call dword [0x532cfc]
mov ecx, dword [0x5353a8]
neg eax
add ecx, eax
add esp, 4
mov eax, dword [0x5353cc]
cmp ecx, eax
mov dword [0x5353a8], ecx
cmovg eax, ecx
push esi
mov dword [0x5353cc], eax
call dword [0x532cf4]
mov eax, dword [0x535520]
add esp, 4
test eax, eax
je 0x48d9b0
push eax
call dword [0x532d28]
jmp 0x48d9ad
push esi
call dword [0x532cf4]
add esp, 4
push edi
mov dword [ebx + 0xc], edi
call dword [0x532cfc]
shr eax, 3
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebx], eax
lea ecx, [eax*8]
push ecx
push 0
push edi
call fcn.004dde70
mov ecx, dword [ebx + 8]
add esp, 0xc
mov dword [ebx + 8], 0
test ecx, ecx
je 0x48da8e
nop word [eax + eax]
mov esi, dword [ecx + 0x10]
xor edi, edi
mov ebx, dword [ecx + 0xc]
test esi, esi
jle 0x48da1d
nop dword [eax]
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
dec esi
movzx edx, byte [eax + 0x51d778]
lea eax, [edi*8]
xor edx, eax
xor edi, edx
test esi, esi
jg 0x48da00
xor edx, edx
mov ebx, dword [ecx]
mov eax, edi
div dword [ebp - 8]
mov eax, dword [ebp - 0xc]
lea esi, [eax + edx*8]
test esi, esi
je 0x48da68
mov eax, dword [esi]
test eax, eax
je 0x48da3b
mov edx, dword [esi + 4]
jmp 0x48da3d
xor edx, edx
inc eax
mov dword [esi + 4], ecx
mov dword [esi], eax
test edx, edx
je 0x48da68
mov dword [ecx], edx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 4]
test eax, eax
je 0x48da5d
mov dword [eax], ecx
mov dword [edx + 4], ecx
jmp 0x48da84
mov eax, dword [ebp - 4]
mov dword [eax + 8], ecx
mov dword [edx + 4], ecx
jmp 0x48da84
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov eax, dword [edx + 8]
test eax, eax
je 0x48da7a
mov dword [eax + 4], ecx
mov dword [ecx + 4], 0
mov dword [edx + 8], ecx
mov ecx, ebx
test ebx, ebx
jne 0x48d9f0
mov eax, 1
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 0x48db60
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 0x48dbb4
push ebx
push esi
xor esi, esi
mov ebx, edx
push edi
mov edi, ecx
test ecx, ecx
jle 0x48dba4
movzx eax, byte [ebx]
lea ecx, [esi*8]
dec edi
lea ebx, [ebx + 1]
movzx edx, byte [eax + 0x51d778]
xor edx, ecx
xor esi, edx
test edi, edi
jg 0x48db84
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 0x48dbb6
xor edx, edx
push edx
mov edx, dword [ebp - 8]
push ecx
mov ecx, eax
call fcn.0048dab0
add esp, 8
test eax, eax
je 0x48dbd0
mov eax, dword [eax + 8]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x48e740
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x535000]
sub esp, 0x31c
push ebx
mov ebx, edx
push esi
push edi
test eax, eax
je 0x48e776
push eax
push 0x5217e8
lea eax, [ebp - 0x110]
push eax
push 0xe6
call fcn.0048c050
add esp, 0x10
jmp 0x48e813
mov eax, dword [0x53529c]
test eax, eax
jne 0x48e7a8
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 [0x53529c], eax
cmp eax, 2
jne 0x48e7cc
lea eax, [ebp - 0x318]
push eax
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x318]
call fcn.0048dec0
jmp 0x48e7e9
lea eax, [ebp - 0x218]
push eax
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x218]
call fcn.0048df30
mov esi, eax
test esi, esi
je 0x48e918
push esi
push 0x5217e8
lea eax, [ebp - 0x110]
push eax
push 0xe6
call fcn.0048c050
push esi
call fcn.004ea156
add esp, 0x14
cmp byte [ebp - 0x110], 0
lea eax, [ebp - 0x110]
je 0x48e828
inc eax
cmp byte [eax], 0
jne 0x48e822
lea ecx, [ebp - 0x110]
sub eax, ecx
and eax, 0x3fffffff
jbe 0x48e84b
lea ecx, [ebp + eax - 0x111]
nop
cmp byte [ecx], 0x5c
jne 0x48e84b
dec ecx
sub eax, 1
jne 0x48e840
mov byte [ebp + eax - 0x110], 0
lea eax, [ebp - 0x110]
push eax
push str._setilqs_
push ebx
push 0xe7
call fcn.0048c050
add esp, 0x10
mov edi, ebx
test ebx, ebx
je 0x48e886
cmp byte [ebx], 0
je 0x48e87e
inc edi
cmp byte [edi], 0
jne 0x48e878
sub edi, ebx
and edi, 0x3fffffff
lea esi, [edi + ebx]
mov ecx, 0x14
mov edx, esi
call fcn.0048c170
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 0x48e8a4
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 0x4a8860
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 0x4a89f5
test edi, edi
je 0x4a88ce
cmp byte [edi + 0x1e], 0
jne 0x4a89f5
cmp byte [edi + 0xe2], 0
je 0x4a88ce
mov eax, 0x44
cmp ax, word [edi + 0xe0]
ja 0x4a88ce
mov ebx, dword [edi + 0xec]
test ebx, ebx
je 0x4a88ce
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 0x4a88ee
mov dword [edi + 0xe8], eax
jmp 0x4a88ee
push 0x44
call fcn.0048a4e0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4a88ee
test edi, edi
je 0x4a88e6
mov byte [edi + 0x1e], 1
test ebx, ebx
je 0x4a89f5
mov edx, dword [esp + 0xc]
mov ecx, edi
mov esi, dword [ebp + 8]
push esi
mov edx, dword [edx]
call fcn.004a82b0
mov dword [ebx], eax
add esp, 4
mov eax, dword [esp + 0xc]
mov ecx, edi
push esi
mov edx, dword [eax + 8]
call fcn.004a84e0
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.004a8290
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.004a82b0
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.004a8290
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.004a82b0
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.004a8860
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.004a8290
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.004a8290
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 0x4ad980
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 0x4adb05
test edi, edi
je 0x4adb05
movzx ecx, word [esi + 2]
push ebx
test ecx, 0x1000
jne 0x4adafc
movzx eax, word [edi + 2]
test eax, 0x1000
jne 0x4adafc
xor al, cl
test al, 0x10
jne 0x4adafc
mov al, byte [esi]
cmp al, byte [edi]
jne 0x4adafc
mov edx, dword [edi + 8]
mov ecx, dword [esi + 8]
call fcn.004ad980
test eax, eax
je 0x4adafc
mov edx, dword [edi + 0xc]
mov ecx, dword [esi + 0xc]
call fcn.004ad980
test eax, eax
je 0x4adafc
mov eax, dword [esi + 0x10]
mov ecx, dword [edi + 0x10]
test eax, eax
je 0x4ada4f
test ecx, ecx
je 0x4adafc
mov edx, dword [eax]
cmp edx, dword [ecx]
jne 0x4adafc
xor ebx, ebx
test edx, edx
jle 0x4ada57
xor edx, edx
mov dword [ebp - 4], edx
nop dword [eax + eax]
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.004ad980
test eax, eax
je 0x4adafc
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 0x4ada20
jmp 0x4ada57
test ecx, ecx
jne 0x4adafc
mov eax, dword [esi + 0x18]
cmp eax, dword [edi + 0x18]
jne 0x4adafc
mov eax, dword [esi + 0x20]
cmp eax, dword [edi + 0x20]
jne 0x4adafc
mov eax, dword [esi + 0x24]
cmp eax, dword [edi + 0x24]
jne 0x4adafc
mov eax, 0x800
test word [esi + 2], ax
je 0x4ada94
test word [edi + 2], ax
je 0x4adafc
mov eax, dword [esi + 4]
cmp eax, dword [edi + 4]
jmp 0x4adaee
cmp byte [esi], 0x98
je 0x4adaf0
mov esi, dword [esi + 4]
test esi, esi
je 0x4adaf0
test word [edi + 2], ax
jne 0x4adafc
mov edx, dword [edi + 4]
test edx, edx
je 0x4adafc
mov bl, byte [esi]
test bl, bl
je 0x4adad8
mov al, bl
sub esi, edx
movzx ecx, byte [edx]
mov bl, al
movzx eax, al
mov al, byte [eax + 0x51d778]
cmp al, byte [ecx + 0x51d778]
jne 0x4adad8
mov al, byte [esi + edx + 1]
inc edx
mov bl, al
test al, al
jne 0x4adab7
movzx eax, bl
movzx ecx, byte [eax + 0x51d778]
movzx eax, byte [edx]
movzx eax, byte [eax + 0x51d778]
sub ecx, eax
jne 0x4adafc
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 0x4afee0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, edx
mov edx, ecx
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], ecx
push edi
mov edi, eax
test eax, eax
je 0x4aff0d
cmp byte [eax], cl
je 0x4aff05
inc edi
cmp byte [edi], cl
jne 0x4aff00
sub edi, eax
and edi, 0x3fffffff
mov eax, 1
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], eax
cmp dword [edx + 4], eax
jle 0x4affd5
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, eax
xor esi, 1
cmp eax, 2
cmovge esi, eax
test ebx, ebx
je 0x4aff93
mov eax, dword [edx + 8]
mov ecx, esi
add ecx, ecx
mov edx, dword [eax + ecx*8]
mov ecx, dword [ebp + 8]
mov bl, byte [ecx]
test bl, bl
je 0x4aff75
sub ecx, edx
mov al, bl
mov dword [ebp - 0x14], ecx
mov edi, ecx
movzx ecx, byte [edx]
mov bl, al
movzx eax, al
mov al, byte [eax + 0x51d778]
cmp al, byte [ecx + 0x51d778]
jne 0x4aff72
mov al, byte [edi + edx + 1]
inc edx
mov bl, al
test al, al
jne 0x4aff51
mov edi, dword [ebp - 4]
movzx eax, byte [edx]
movzx ecx, byte [eax + 0x51d778]
movzx eax, bl
mov ebx, dword [ebp + 8]
movzx eax, byte [eax + 0x51d778]
sub eax, ecx
jne 0x4affb6
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
add esi, esi
mov edx, dword [ebp - 0x18]
push edi
mov ecx, dword [eax + esi*8 + 0xc]
add ecx, 4
call fcn.0048db60
mov ecx, eax
add esp, 4
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0x4affcc
jmp 0x4affb9
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, dword [edx + 4]
jl 0x4aff26
pop esi
pop ebx
mov eax, ecx
pop edi
mov esp, ebp
pop ebp
ret
mov eax, ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4affe0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, edx
xor edx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edx
push esi
mov esi, eax
push edi
test eax, eax
je 0x4b000d
cmp byte [eax], dl
je 0x4b0005
nop dword [eax]
inc esi
cmp byte [esi], dl
jne 0x4b0000
sub esi, eax
and esi, 0x3fffffff
mov eax, dword [ecx + 4]
mov edi, 1
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
cmp eax, edi
jle 0x4b00d5
push ebx
mov ebx, dword [ecx + 8]
mov dword [ebp - 0x18], ebx
nop word [eax + eax]
mov eax, edi
xor eax, 1
cmp edi, 2
cmovge eax, edi
add eax, eax
mov ecx, dword [ebx + eax*8 + 0xc]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4b009c
mov edx, dword [ebx + eax*8]
mov bl, byte [ecx]
test bl, bl
je 0x4b0084
mov edi, ecx
mov al, bl
sub edi, edx
nop word [eax + eax]
movzx ecx, byte [edx]
mov bl, al
movzx eax, al
mov al, byte [eax + 0x51d778]
cmp al, byte [ecx + 0x51d778]
jne 0x4b0081
mov al, byte [edi + edx + 1]
inc edx
mov bl, al
test al, al
jne 0x4b0060
mov edi, dword [ebp - 8]
movzx eax, byte [edx]
movzx ecx, byte [eax + 0x51d778]
movzx eax, bl
movzx eax, byte [eax + 0x51d778]
sub eax, ecx
jne 0x4b00b9
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
add ecx, 0x14
push esi
call fcn.0048db60
mov edx, eax
add esp, 4
mov dword [ebp - 4], edx
test edx, edx
jne 0x4b00cc
jmp 0x4b00bc
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x18]
inc edi
mov dword [ebp - 8], edi
cmp edi, dword [ebp - 0x14]
jl 0x4b0030
pop ebx
pop edi
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4da5e2
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.004da5be
pop esi
leave
ret 8

Function at 0x4dc795
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004dcbf0
mov eax, dword [0x532048]
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.004f2902
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4e1670
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4e17cc
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.005013a0
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 + 0x534a30]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004eaa9f
mov ecx, dword [esi*4 + 0x534a30]
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 0x4e17c5
cmp eax, dword [ecx + edi + 0x24]
jne 0x4e17c5
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 0x4e17c5
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004eaa9f
add esp, 0x14
test edx, edx
jl 0x4e17c5
jg 0x4e173b
test eax, eax
jb 0x4e17c5
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4e17c5
jl 0x4e1755
cmp dword [ebp - 0x1008], eax
ja 0x4e17c5
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4e1773
test ebx, ebx
je 0x4e17ac
cmp ecx, edi
jae 0x4e17ac
mov al, byte [ecx]
cmp al, 0xd
jne 0x4e178d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4e1799
cmp byte [ecx + 1], 0xa
jne 0x4e1799
inc ecx
jmp 0x4e1799
movzx eax, al
movsx eax, byte [eax + 0x5321b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4e1773
cmp edx, ebx
jne 0x4e1773
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4e17ca
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004dc235
leave
ret
Function at 0x4f09ae
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 + 0x534a30]
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 0x4f09ee
cmp byte [ebx], 0xa
jne 0x4f09ee
or byte [edi + eax + 0x28], 4
jmp 0x4f09f3
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 0x4f0af2
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4f0ad5
inc eax
cmp dl, 0xd
je 0x4f0a1f
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4f0a45
cmp eax, ecx
jae 0x4f0a53
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 0x4f0a07
jmp 0x4f0af2
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 0x4f0ad0
cmp dword [ebp - 0x10], 0
je 0x4f0ad0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x534a30]
test byte [eax + edi + 0x28], 0x48
je 0x4f0aaa
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4f0a95
mov byte [esi], dl
jmp 0x4f0aa6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x534a30]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4f0af2
cmp byte [ebp - 1], 0xa
jne 0x4f0ab9
cmp esi, ebx
jne 0x4f0ab9
mov byte [esi], 0xa
jmp 0x4f0af1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004eaabd
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4f0af2
mov byte [esi], 0xd
jmp 0x4f0af1
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x534a30]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4f0aef
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4f0af2
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret