joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401230
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [0x493918]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0xc], 0
je 0x40128b
cmp dword [ebp + 0x10], 0
jne 0x401297
mov dword [ebp - 8], 4
jmp 0x4013ad
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004019f0
mov esi, esp
lea edx, [ebp - 0x1c]
push edx
push 0x49330c
mov eax, dword [ebp + 0x10]
push eax
call dword [0x495584]
cmp esi, esp
call fcn.00401c80
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40130a
cmp dword [ebp - 0xc], 0xbc2
jne 0x4012dd
push str.____DriverInstall___a_Reboot_is_required._n
call fcn.00401a60
add esp, 4
jmp 0x4012fe
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.00401c80
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push str.____DriverInstall___pfnWdfPreDeviceInstallEx:__0x_08X__GLE:___d_._n
call fcn.00401a60
add esp, 0xc
mov dword [ebp - 8], 6
jmp 0x4013ad
mov esi, esp
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
push 1
push 3
push 2
push 0xf01ff
push 0x493418
push 0x493428
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
cmp esi, esp
call fcn.00401c80
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401385
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.00401c80
cmp eax, 0x431
je 0x401385
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.00401c80
push eax
push str.____DriverInstall___CreateService_failed:___d_._n
call fcn.00401a60
add esp, 8
mov dword [ebp - 8], 7
jmp 0x4013ad
mov esi, esp
push 0x49349c
mov ecx, dword [ebp + 0x10]
push ecx
call dword [0x495580]
cmp esi, esp
call fcn.00401c80
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4013ad
mov dword [ebp - 8], 8
cmp dword [ebp - 0x10], 0
je 0x4013cd
mov esi, esp
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp esi, esp
call fcn.00401c80
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x4013fc]
call fcn.00401c20
pop eax
pop edx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401cc0
add esp, 0x20
cmp ebp, esp
call fcn.00401c80
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401420
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 0xc], 0
je 0x40144f
cmp dword [ebp + 0x10], 0
jne 0x401458
mov dword [ebp - 4], 9
jmp 0x4014bf
mov esi, esp
push 0xf01ff
push 0x4934c8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp esi, esp
call fcn.00401c80
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x401487
mov dword [ebp - 4], 0xb
jmp 0x4014bf
mov esi, esp
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
cmp esi, esp
call fcn.00401c80
test eax, eax
jne 0x4014bf
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.00401c80
push eax
push str.Starting_service_failed_with_error:___d_
call fcn.00401a60
add esp, 8
cmp dword [ebp - 8], 0
je 0x4014df
mov esi, esp
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp esi, esp
call fcn.00401c80
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
pop esi
add esp, 8
cmp ebp, esp
call fcn.00401c80
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4016c0
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
lea edi, [ebp - 0x30]
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x493918]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x2c], 0
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov esi, esp
push 0xf01ff
push 0x49352c
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp esi, esp
call fcn.00401c80
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401739
mov dword [ebp - 8], 0xd
jmp 0x40175d
mov esi, esp
lea edx, [ebp - 0x2c]
push edx
push 1
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
cmp esi, esp
call fcn.00401c80
test eax, eax
jne 0x40175d
mov dword [ebp - 8], 0xe
cmp dword [ebp - 0xc], 0
je 0x40177d
mov esi, esp
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp esi, esp
call fcn.00401c80
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x4017b0]
call fcn.00401c20
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401cc0
add esp, 0x30
cmp ebp, esp
call fcn.00401c80
mov esp, ebp
pop ebp
ret 4
Function at 0x4017e0
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 0xc], 0xcccccccc
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov esi, esp
push 0x49353c
mov eax, dword [ebp + 0xc]
push eax
call dword [0x49557c]
cmp esi, esp
call fcn.00401c80
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40183b
mov dword [ebp - 4], 0xf
jmp 0x4018b2
mov esi, esp
push 0xf01ff
push str.Thunder
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp esi, esp
call fcn.00401c80
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40186a
mov dword [ebp - 4], 0x10
jmp 0x4018b2
mov esi, esp
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
cmp esi, esp
call fcn.00401c80
test eax, eax
jne 0x40188a
mov dword [ebp - 4], 0x11
jmp 0x4018b2
mov esi, esp
push str.Thunder_Device.NT.Wdf
mov eax, dword [ebp + 0xc]
push eax
call dword [0x495578]
cmp esi, esp
call fcn.00401c80
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4018b2
mov dword [ebp - 4], 0x12
cmp dword [ebp - 0xc], 0
je 0x4018d2
mov esi, esp
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp esi, esp
call fcn.00401c80
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
pop esi
add esp, 0xc
cmp ebp, esp
call fcn.00401c80
mov esp, ebp
pop ebp
ret 8

Function at 0x4579dd
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00456ed9

Function at 0x4579e8
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00457213
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x409070
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x40907f
pop dword [ebp - 0x30]
mov eax, 0x40907f
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x38c92
push 0
mov eax, 0x3bf83dc7
sub eax, 0x3bb75cef
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0x735289bf
add ecx, 0x8cadbc95
xor ebx, ebx
add ebx, eax
mov edx, 0x413bc4
add edx, dword [ebp - 0x30]
mov edi, 0x4cd8b370
add edi, 0x19a08fc
xor dword [ebp - 0x18], 0x9eae304d
mov esi, dword [edx]
xor dword [ebp - 0x18], 0x1c22c09c
xor esi, edi
add dword [ebp - 0x2c], edx
mov dword [ebx], esi
add dword [ebp - 0x14], edx
add ebx, 4
add edx, 0xbffdf4a2
sub edx, 0xbffdf49e
loop 0x4090d5
add eax, 0x10c23
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x407368
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040ae10
test esi, esi
jne 0x40739e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040afa8
jmp 0x4073bc
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407248
mov edi, eax
test esi, esi
je 0x4073bc
cmp dword [ebx], 0
je 0x4073bc
dec esi
jmp 0x4073a5
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x409a58
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.00409f18
mov byte [esp], al
cmp byte [esp], 0
jne 0x409be1
test edi, edi
je 0x409be1
mov byte [esp + 1], 0
test ebp, ebp
jle 0x409b21
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x409afc
cmp edi, 0xffffffff
je 0x409abd
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x409abd
mov byte [esp], 0
jmp 0x409be1
cmp dword [esi], 1
jg 0x409afc
cmp dword [esi], 0
jne 0x409aee
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x409aee
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x409be1
lea eax, [esp + 0xc]
call fcn.00409708
dec ebp
test ebp, ebp
jg 0x409aa2
cmp edi, 0xffffffff
je 0x409b21
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x409b1f
mov byte [esp], 0
jmp 0x409be1
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x409a66
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409b21
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00409c5c
mov edx, eax
mov ebx, dword [0x4d38f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x409b85
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x409b83
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x409b85
xor edi, edi
cmp byte [esp], 0
je 0x409bab
mov ebx, dword [esi]
test bl, 1
jne 0x409bc1
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409b8b
mov byte [esp + 1], 1
jmp 0x409bc1
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409bab
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x409b38
cmp byte [esp], 0
je 0x409be1
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 0x40aaa8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d3058], 0
je 0x40ab0f
cmp word [0x4d3344], 0xd7b2
jne 0x40aad1
cmp dword [0x4d334c], 0
jbe 0x40aad1
mov eax, 0x4d3340
call dword [0x4d335c]
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, 0x40ab3c
call fcn.0040b67c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4cf02e], 0
jne 0x40ab2b
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40acd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x4cf030], 0
je 0x40acfb
mov edx, edi
mov eax, esi
call dword [0x4cf030]
mov ebx, eax
jmp 0x40ad0c
mov eax, 8
call fcn.00406f80
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4d3059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40ac98
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x40ad3c
mov eax, ebx
call fcn.00406f9c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40e5d0
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 0x40e737
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040ae10
cmp si, word [0x4cfa08]
jb 0x40e668
cmp si, word [0x4cfc08]
ja 0x40e668
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40e668
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4cfa08]
jae 0x40e642
mov edi, ebx
dec edi
jmp 0x40e663
cmp si, word [ebx*8 + 0x4cfa08]
jbe 0x40e652
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40e663
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4cfa0c]
call fcn.0040e4ec
jmp 0x40e668
cmp edi, dword [ebp - 8]
jae 0x40e62c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40e717
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e717
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.0040b96c
push dword [ebp - 0x160]
push 0x40e754
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040b96c
push dword [ebp - 0x164]
push 0x40e764
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040b96c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040bba4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e73e
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040ae70
pop eax
jmp eax
Function at 0x40e8ec
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 0x40e9f2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4d5c10
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4d5c28]
jne 0x40e938
mov eax, esi
mov edx, 0x4d5c2a
mov ecx, 0x55
call fcn.0040b96c
push 0x4d5c10
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40e9da
push 0x4d5c10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040ae10
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e9a7
cmp byte [0x4d5c0c], 0
je 0x40e96c
mov edx, esi
mov eax, ebx
call fcn.0040e7d0
jmp 0x40e9a7
mov edx, esi
mov eax, ebx
call fcn.0040e5d0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40e9a7
cmp dword [esi], 0
je 0x40e990
mov eax, esi
mov edx, 0x40ea0c
call fcn.0040bac4
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040e5d0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040bac4
push 0x4d5c10
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4d5c28], bx
mov eax, dword [esi]
call fcn.0040b8cc
mov ecx, eax
mov eax, 0x4d5c2a
mov edx, 0xaa
call fcn.0040e44c
push 0x4d5c10
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e9f9
lea eax, [ebp - 4]
call fcn.0040ae10
pop eax
jmp eax
Function at 0x40ec34
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.0040af04
xor eax, eax
push ebp
push 0x40ee5c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40ec7a
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40ec94
mov eax, dword [ebp - 4]
call fcn.0040b8cc
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040e44c
cmp word [ebp - 0x21e], 0
je 0x40ee3f
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ee6c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ed63
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ee6c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ed63
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40eea8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ed63
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40eea8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ed63
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40eedc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ed63
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ef10
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40ee3f
xor eax, eax
push ebp
push 0x40ee38
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040ea34
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 0x40edc6
mov eax, dword [ebp - 0x14]
call fcn.00406f80
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.0040b930
jmp 0x40ee11
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40ef50
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40ee11
mov eax, dword [ebp - 0x14]
call fcn.00406f80
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40ef50
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040b930
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ee3f
cmp dword [ebp - 0xc], 0
je 0x40ee2c
mov eax, dword [ebp - 0xc]
call fcn.00406f9c
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 0x40ee63
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040ae70
pop eax
jmp eax
Function at 0x40f170
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.0040af04
xor eax, eax
push ebp
push 0x40f232
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.0040b96c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040bb1c
mov eax, dword [ebx]
call fcn.0040f018
test al, al
jne 0x40f20d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040b96c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040bb1c
mov eax, dword [ebx]
call fcn.0040f018
test al, al
jne 0x40f20d
mov eax, ebx
call fcn.0040ae10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f239
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040ae70
lea eax, [ebp - 4]
call fcn.0040ae10
pop eax
jmp eax

Function at 0x410d40
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 0x420e5c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x420eb5
test eax, edx
je 0x420eb8
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x420e73
movzx eax, word [eax]
sub eax, ecx
jmp 0x420e9a
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 0x420e9b
add ecx, 4
js 0x420e8b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x420e98
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x420e9a
xor eax, eax
ret
test eax, eax
je 0x420ec4
test edx, edx
jne 0x420e64
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x421e1c
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.0040b8cc
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x421e86
test ah, 4
je 0x421e7f
test bl, bl
jne 0x421e44
mov al, 1
jmp 0x421ead
test al, 0x10
je 0x421e4c
xor eax, eax
jmp 0x421ead
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x421e70
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x421ead
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x421ead
test al, 0x10
sete al
jmp 0x421ead
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x421ea7
cmp ebx, 3
je 0x421ea7
cmp ebx, 0x7b
je 0x421ea7
mov eax, esi
call fcn.00421ddc
test al, al
jne 0x421eab
xor eax, eax
jmp 0x421ead
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x421eb4
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.0040b8cc
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x421f52
test esi, 0x400
jne 0x421ee9
test esi, 0x10
setne bl
jmp 0x421f52
cmp byte [esp], 0
je 0x421f1d
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x421f52
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x421f52
test esi, 0x10
je 0x421f29
mov bl, 1
jmp 0x421f52
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x421f50
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x421f52
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x425dcc
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 0x425e05
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040afa8
jmp 0x425e0e
mov eax, ebx
mov edx, esi
call fcn.0040b200
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4