joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cea6c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
call sub.KERNEL32.DLL_GetTickCount
mov ebx, eax
xor edx, edx
xor eax, eax
inc eax
cmp eax, 0xa
jl 0x4cea78
inc edx
cmp edx, 0x7a1200
jl 0x4cea76
call sub.KERNEL32.DLL_GetTickCount
sub eax, ebx
cmp eax, 0x46
jl 0x4cea97
mov al, 1
pop ebx
ret
xor eax, eax
pop ebx
ret

Function at 0x4d3780
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4d37d2
test eax, edx
je 0x4d37d5
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x4d3795
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4d37bb
add ecx, 4
js 0x4d37ab
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4d37b8
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4d37e1
test edx, edx
jne 0x4d3788
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x4d67a8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x74]
sub edi, dword [ebx + 0x6c]
jmp 0x4d67d7
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x4d6856
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.004db498
add esp, 0xc
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], ebp
mov eax, dword [ebx + 0x4c]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x44]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x4d6824
mov cx, word [esp]
sub cx, si
jmp 0x4d6826
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4d680d
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x4d684c
mov cx, word [esp]
sub cx, si
jmp 0x4d684e
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4d6835
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x4d68b3
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.004d647c
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x4d689e
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x6c]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x58]
shl eax, cl
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x6c]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
cmp dword [ebx + 0x74], 0x106
jae 0x4d68b3
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x4d67b2
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4f7938
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4f79d6
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x4f799a
cmp byte [ebx + 0x10], 0
jne 0x4f799a
cmp byte [ebx + 0x3c], 0
jne 0x4f799a
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
cmp eax, 1
je 0x4f79bb
lea edx, [ebp - 4]
mov eax, dword [0x62a128]
call fcn.0053a0f4
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4e7b94]
call fcn.0051fd48
call fcn.00535fbc
jmp 0x4f79bb
lea edx, [ebp - 8]
mov eax, dword [0x62a128]
call fcn.0053a0f4
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4e7b94]
call fcn.0051fd48
call fcn.00535fbc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f79dd
lea eax, [ebp - 8]
mov edx, 2
call fcn.00536844
ret

Function at 0x4f82e4
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4f8332
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.KERNEL32.DLL_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004f7884
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f834b
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4f8354
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004f7884
dec esi
jne 0x4f8376
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x4f9d2c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x62abbc
cmp dword [edi], 0
jne 0x4f9da8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x62abb8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x622630
mov ecx, 2
call fcn.0053444c
mov edx, 0x4f9d04
lea eax, [esi + 5]
call fcn.004f9d24
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004f9d24
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x4f9d7d
mov dword [0x62abb8], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4fd26c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4fd3e7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00536bec
mov eax, dword [ebp - 4]
call fcn.004fcbcc
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x4fd2be
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.005378b0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004fde60
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4fd39d
xor eax, eax
push ebp
push 0x4fd396
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.004fce6c
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.004fd41c
test al, al
je 0x4fd374
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.0053694c
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x4fd374
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.005374a4
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.DLL_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004fcdcc
test al, al
je 0x4fd36e
mov eax, dword [ebp - 8]
call fcn.005374a4
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.005374f4
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.004fd26c
dec ebx
cmp ebx, 0xffffffff
jne 0x4fd31d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fd39d
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004fce6c
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 4]
call fcn.005374a4
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.004fce58
push eax
call sub.ADVAPI32.DLL_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004fcdcc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fd3ee
lea eax, [ebp - 0x3c]
call fcn.005367e4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00536844
ret

Function at 0x4fdd3c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.004fcbe4
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.005374a4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.004fcdcc
test al, al
jne 0x4fdda4
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x62a0fc]
mov dl, 1
mov eax, dword [0x4fb9f0]
call fcn.0051ff4c
call fcn.00535fbc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4fddb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.005374a4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov edx, eax
mov eax, ebx
call fcn.004fcdcc
test al, al
jne 0x4fde11
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x62a0f8]
mov dl, 1
mov eax, dword [0x4fb9f0]
call fcn.0051ff4c
call fcn.00535fbc
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004fcc14
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4fe410
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4fe538
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, esi
call fcn.004fce6c
xor eax, eax
push ebp
push 0x4fe513
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004fd41c
test al, al
je 0x4fe4f7
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004fe2f0
pop ecx
mov ecx, dword [ebp - 0x20]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.0053694c
mov ebx, dword [ebp - 0x24]
dec ebx
test ebx, ebx
jl 0x4fe4f7
inc ebx
xor edi, edi
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.005374a4
push eax
push edi
push esi
call sub.ADVAPI32.DLL_RegEnumValueW
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004fcdcc
test al, al
je 0x4fe4f3
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.005374a4
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.005374f4
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004fe2f0
pop ecx
inc edi
dec ebx
jne 0x4fe49b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fe51a
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x10]
call fcn.004fce6c
ret
Function at 0x4fe548
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4fe796
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 8]
call fcn.004fce6c
xor eax, eax
push ebp
push 0x4fe76c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x44]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004fd41c
test al, al
je 0x4fe750
mov ecx, dword [ebp - 0x40]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.0053694c
mov eax, dword [ebp - 0x44]
dec eax
test eax, eax
jl 0x4fe750
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.005374a4
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004fcdcc
test al, al
je 0x4fe744
mov eax, dword [ebp - 4]
call fcn.005374a4
mov edx, eax
lea eax, [ebp - 0x48]
call fcn.005374f4
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004fde60
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4fe744
xor eax, eax
push ebp
push 0x4fe73d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0xc]
call fcn.004fce6c
xor eax, eax
push ebp
push 0x4fe71f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.005374a4
mov edx, eax
lea eax, [ebp - 0x4c]
call fcn.005374f4
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004fce70
mov eax, dword [ebp - 4]
call fcn.005374a4
mov edx, eax
lea eax, [ebp - 0x50]
call fcn.005374f4
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004fde60
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x4fe6fc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.004fe410
pop ecx
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.004fe548
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fe703
mov eax, dword [ebp - 0x24]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
inc dword [ebp - 0x14]
dec dword [ebp - 0x28]
jne 0x4fe5d3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fe773
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x18]
call fcn.004fce6c
ret
Function at 0x51a9c8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x51aa21
test eax, edx
je 0x51aa24
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x51a9df
movzx eax, word [eax]
sub eax, ecx
jmp 0x51aa06
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x51aa07
add ecx, 4
js 0x51a9f7
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x51aa04
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x51aa06
xor eax, eax
ret
test eax, eax
je 0x51aa30
test edx, edx
jne 0x51a9d0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x51b7e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.005374a4
mov edi, eax
push edi
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x51b84a
test ah, 4
je 0x51b843
test bl, bl
jne 0x51b808
mov al, 1
jmp 0x51b871
test al, 0x10
je 0x51b810
xor eax, eax
jmp 0x51b871
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push edi
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x51b834
push eax
call sub.KERNEL32.DLL_CloseHandle
mov al, 1
jmp 0x51b871
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x51b871
test al, 0x10
sete al
jmp 0x51b871
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x51b86b
cmp ebx, 3
je 0x51b86b
cmp ebx, 0x7b
je 0x51b86b
mov eax, esi
call fcn.0051b7a0
test al, al
jne 0x51b86f
xor eax, eax
jmp 0x51b871
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x51b878
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.005374a4
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x51b91f
test esi, 0x400
jne 0x51b8b4
test esi, 0x10
setne bl
jmp 0x51b939
cmp byte [esp], 0
je 0x51b8e8
push 0
push 0x2000000
push 3
push 0
push 1
push SysReAllocStringLen
push ebp
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x51b939
push eax
call sub.KERNEL32.DLL_CloseHandle
test esi, 0x10
setne bl
jmp 0x51b939
test esi, 0x10
je 0x51b8f4
mov bl, 1
jmp 0x51b939
push 0
push 0x2000000
push 3
push 0
push 1
push SysReAllocStringLen
push ebp
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x51b91b
push eax
call sub.KERNEL32.DLL_CloseHandle
xor ebx, ebx
jmp 0x51b939
mov bl, 1
jmp 0x51b939
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x51b933
cmp eax, 3
je 0x51b933
cmp eax, 0x7b
jne 0x51b937
xor ebx, ebx
jmp 0x51b939
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x51eecc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW
test eax, eax
jle 0x51ef05
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0053694c
jmp 0x51ef0e
mov eax, ebx
mov edx, esi
call fcn.00536ba4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x51ef18
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
test eax, eax
jle 0x51ef3a
movzx eax, word [esp]
jmp 0x51ef3c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x51fbf8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x51fd1d
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0051fa08
mov esi, eax
mov eax, dword [0x62a34c]
cmp byte [eax], 0
je 0x51fcc5
mov eax, dword [0x62a358]
call fcn.005347b0
call fcn.005343c4
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.KERNEL32.DLL_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x51fbd0]
call fcn.00538674
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.KERNEL32.DLL_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x51fd38
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x51fd01
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x62a1ac]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x62a654]
call fcn.00538768
push eax
call sub.USER32.DLL_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.USER32.DLL_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51fd24
lea eax, [ebp - 4]
mov edx, dword [0x51fbd0]
call fcn.00538680
ret
Function at 0x520d78
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x520e4e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00536bec
lea eax, [ebp - 4]
call fcn.00536d54
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.005374a4
push eax
call sub.VERSION.DLL_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x520e38
mov eax, ebx
call fcn.005341c0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x520e31
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.005374a4
push eax
call sub.VERSION.DLL_GetFileVersionInfoW
test eax, eax
je 0x520e1b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x520e60
mov eax, dword [ebp - 0x10]
push eax
call sub.VERSION.DLL_VerQueryValueW
test eax, eax
je 0x520e1b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x520e38
mov eax, dword [ebp - 0x10]
call fcn.005341dc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x520e55
lea eax, [ebp - 4]
call fcn.005367e4
ret

Function at 0x521830
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00536c94
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0053a188
mov edi, eax
cmp edi, 0x104
jbe 0x5217db
mov eax, edi
add eax, eax
call fcn.005341c0
mov esi, eax
jmp 0x5217dd
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0053a188
push esi
call sub.USER32.DLL_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x521816
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x521800
mov eax, esp
cmp esi, eax
je 0x521823
mov eax, esi
call fcn.005341dc
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x52185c
cmp bl, 0
je 0x521858
cmp bl, 0x41
jl 0x521853
cmp bl, 0x5a
jg 0x521853
or bl, 0x20
xor al, bl
inc esi
jmp 0x521837
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x52179c

Function at 0x522090
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.00537548
add esp, 0x800
pop ebx
ret