joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40716c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004041b2
and dword [ebp - 4], 0
cmp dword [0x40e714], 0
mov ebx, eax
jne 0x40721d
push 0x40b268
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4072ce
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40b25c
push edi
call esi
test eax, eax
je 0x4072ce
push eax
call fcn.00404140
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40e714], eax
call esi
push eax
call fcn.00404140
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40e718], eax
call esi
push eax
call fcn.00404140
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40e71c], eax
call esi
push eax
call fcn.00404140
pop ecx
mov dword [0x40e724], eax
test eax, eax
je 0x40721d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404140
pop ecx
mov dword [0x40e720], eax
mov eax, dword [0x40e720]
cmp eax, ebx
je 0x407275
cmp dword [0x40e724], ebx
je 0x407275
push eax
call fcn.004041bb
push dword [0x40e724]
mov esi, eax
call fcn.004041bb
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407275
test edi, edi
je 0x407275
call esi
test eax, eax
je 0x40726c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40726c
test byte [ebp - 0xc], 1
jne 0x407275
or dword [ebp + 0x10], 0x200000
jmp 0x4072ae
mov eax, dword [0x40e718]
cmp eax, ebx
je 0x4072ae
push eax
call fcn.004041bb
pop ecx
test eax, eax
je 0x4072ae
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4072ae
mov eax, dword [0x40e71c]
cmp eax, ebx
je 0x4072ae
push eax
call fcn.004041bb
pop ecx
test eax, eax
je 0x4072ae
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40e714]
call fcn.004041bb
pop ecx
test eax, eax
je 0x4072ce
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4072d0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40a020
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424c28
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x42d520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x18]
push 0x464318
xor ebx, ebx
push eax
xor esi, esi
mov dword [ebp - 4], ebx
call fcn.0040a4c0
add esp, 8
mov edi, dword [ebp - 0x18]
cmp dword [edi - 0xc], ebx
je 0x40a126
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
lea ebx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.0040a200
mov ebx, dword [ebp - 0x24]
test eax, eax
jne 0x40a119
test ebx, ebx
je 0x40a124
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x429aa8
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00406f80
mov edi, dword [ebp - 0x14]
mov eax, edi
add esp, 8
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a0d0
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
mov eax, dword [ebp + 8]
push edx
push edi
push 2
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb esi, esi
lea eax, [edi - 0x10]
inc esi
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a119
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x40a124
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a16c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405c94
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00406154
mov byte [esp], al
cmp byte [esp], 0
jne 0x405e1d
test edi, edi
je 0x405e1d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405d5d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x405d38
cmp edi, 0xffffffff
je 0x405cf9
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405cf9
mov byte [esp], 0
jmp 0x405e1d
cmp dword [esi], 1
jg 0x405d38
cmp dword [esi], 0
jne 0x405d2a
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x405d2a
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405e1d
lea eax, [esp + 0xc]
call fcn.00405948
dec ebp
test ebp, ebp
jg 0x405cde
cmp edi, 0xffffffff
je 0x405d5d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405d5b
mov byte [esp], 0
jmp 0x405e1d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405ca2
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405d5d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405e98
mov edx, eax
mov ebx, dword [0x4238f4]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405dc1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405dbf
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405dc1
xor edi, edi
cmp byte [esp], 0
je 0x405de7
mov ebx, dword [esi]
test bl, 1
jne 0x405dfd
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405dc7
mov byte [esp + 1], 1
jmp 0x405dfd
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405de7
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405d74
cmp byte [esp], 0
je 0x405e1d
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406910
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x425b98
cmp dword [ebp + 0xc], 2
jl 0x406924
mov ebx, 0x425bc8
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x40695c
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x402750
mov dword [0x42301c], eax
mov eax, 0x402758
mov dword [0x423020], eax
mov eax, ebx
call fcn.004067f4
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x406991
cmp al, 3
jge 0x406991
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x4069a2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x4069ad
call dword [ecx + eax*4]
cmp dword [0x42303c], 0
jne 0x4069c3
mov byte [0x423044], 1
fnstcw word [0x42101c]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.00406c60
call fcn.004068a4
ret 4

Function at 0x406bc8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x423054], 0
je 0x406c2f
cmp word [0x423340], 0xd7b2
jne 0x406bf1
cmp dword [0x423348], 0
jbe 0x406bf1
mov eax, 0x42333c
call dword [0x423358]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x406c5c
call fcn.004072fc
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x421026], 0
jne 0x406c4b
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409818
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40997f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406e4c
cmp si, word [0x4219f8]
jb 0x4098b0
cmp si, word [0x421bf8]
ja 0x4098b0
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x4098b0
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4219f8]
jae 0x40988a
mov edi, ebx
dec edi
jmp 0x4098ab
cmp si, word [ebx*8 + 0x4219f8]
jbe 0x40989a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x4098ab
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4219fc]
call fcn.00409734
jmp 0x4098b0
cmp edi, dword [ebp - 8]
jae 0x409874
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40995f
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40995f
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407428
push dword [ebp - 0x160]
push 0x40999c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407428
push dword [ebp - 0x164]
push 0x4099ac
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407428
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004075e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409986
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406eac
pop eax
jmp eax
Function at 0x409b34
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409c3a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x425c10
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x425c28]
jne 0x409b80
mov eax, esi
mov edx, 0x425c2a
mov ecx, 0x55
call fcn.00407428
push 0x425c10
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409c22
push 0x425c10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406e4c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409bef
cmp byte [0x425c0c], 0
je 0x409bb4
mov edx, esi
mov eax, ebx
call fcn.00409a18
jmp 0x409bef
mov edx, esi
mov eax, ebx
call fcn.00409818
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409bef
cmp dword [esi], 0
je 0x409bd8
mov eax, esi
mov edx, 0x409c54
call fcn.00407500
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00409818
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407500
push 0x425c10
call sub.kernel32.dll_EnterCriticalSection
mov word [0x425c28], bx
mov eax, dword [esi]
call fcn.0040739c
mov ecx, eax
mov eax, 0x425c2a
mov edx, 0xaa
call fcn.00409694
push 0x425c10
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409c41
lea eax, [ebp - 4]
call fcn.00406e4c
pop eax
jmp eax
Function at 0x409e7c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406f40
xor eax, eax
push ebp
push 0x40a0a4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409ec2
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409edc
mov eax, dword [ebp - 4]
call fcn.0040739c
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.00409694
cmp word [ebp - 0x21e], 0
je 0x40a087
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40a0b4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409fab
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40a0b4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409fab
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40a0f0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409fab
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40a0f0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409fab
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40a124
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409fab
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40a158
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40a087
xor eax, eax
push ebp
push 0x40a080
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.00409c7c
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40a00e
mov eax, dword [ebp - 0x14]
call fcn.004044b0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.004073ec
jmp 0x40a059
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40a198
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40a059
mov eax, dword [ebp - 0x14]
call fcn.004044b0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40a198
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.004073ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a087
cmp dword [ebp - 0xc], 0
je 0x40a074
mov eax, dword [ebp - 0xc]
call fcn.004044cc
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a0ab
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406eac
pop eax
jmp eax
Function at 0x40a3b8
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406f40
xor eax, eax
push ebp
push 0x40a47a
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407428
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407558
mov eax, dword [ebx]
call fcn.0040a260
test al, al
jne 0x40a455
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407428
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407558
mov eax, dword [ebx]
call fcn.0040a260
test al, al
jne 0x40a455
mov eax, ebx
call fcn.00406e4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a481
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406eac
lea eax, [ebp - 4]
call fcn.00406e4c
pop eax
jmp eax

Function at 0x40be40
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x4160d4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41612d
test eax, edx
je 0x416130
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4160eb
movzx eax, word [eax]
sub eax, ecx
jmp 0x416112
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 [eax + ecx]
xor ebx, dword [edx + ecx]
jne 0x416113
add ecx, 4
js 0x416103
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x416110
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x416112
xor eax, eax
ret
test eax, eax
je 0x41613c
test edx, edx
jne 0x4160dc
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x418350
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 pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x418389
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406f98
jmp 0x418392
mov eax, ebx
mov edx, esi
call fcn.00407114
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41839c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, ecx
mov esi, edx
mov ebx, eax
push 3
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x4183c0
movzx eax, word [esp]
jmp 0x4183c2
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x419ae0
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 0x419c07
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004198e8
mov esi, eax
mov eax, dword [0x422720]
cmp byte [eax], 0
je 0x419bad
mov eax, dword [0x422628]
call fcn.00404c20
call fcn.00404604
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 [0x419ab0]
call fcn.00408fa8
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 0x419c20
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x419be9
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x422600]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x426634]
call fcn.00409338
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 0x419c0e
lea eax, [ebp - 4]
mov edx, dword [0x419ab0]
call fcn.004090cc
pop eax
jmp eax

Function at 0x41ba60
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.00407208
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040be20
mov edi, eax
cmp edi, 0x104
jbe 0x41ba0b
mov eax, edi
add eax, eax
call fcn.004044b0
mov esi, eax
jmp 0x41ba0d
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040be20
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x41ba46
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 0x41ba30
mov eax, esp
cmp esi, eax
je 0x41ba53
mov eax, esi
call fcn.004044cc
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 0x41ba8c
cmp bl, 0
je 0x41ba88
cmp bl, 0x41
jl 0x41ba83
cmp bl, 0x5a
jg 0x41ba83
or bl, 0x20
xor al, bl
inc esi
jmp 0x41ba67
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41b9cc

Function at 0x41bdec
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.00407428
add esp, 0x800
pop ebx
ret
Function at 0x41c628
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x41c648
sub eax, 4
mov eax, dword [eax]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x41c662
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x41c65d
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41c667
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x41c6d5
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x41c71e
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x41c693
inc dword [ebp - 0xc]
jmp 0x41c6ab
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x41c6ab
cmp dword [ebp - 0xc], 0
jle 0x41c6ab
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x41c6cd
xor eax, eax
jmp 0x41c6c9
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x41c6c8
mov eax, esi
jmp 0x41c721
inc eax
cmp eax, ecx
jle 0x41c6b5
inc esi
cmp esi, dword [ebp - 8]
jl 0x41c67f
jmp 0x41c71e
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x41c71e
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x41c6f6
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x41c718
xor eax, eax
jmp 0x41c714
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x41c713
mov eax, esi
jmp 0x41c721
inc eax
cmp eax, ecx
jle 0x41c700
inc esi
cmp esi, dword [ebp - 8]
jl 0x41c6de
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10