joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404970
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1cd8
call fcn.0040ff60
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x4940d8]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [0x4940dc]
push esi
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], edx
call fcn.00404960
mov edi, dword [ebp - 0xc]
mov ecx, dword [0x4940e0]
mov edx, dword [0x4940e4]
add edi, 0x23f
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], 0x20
lea ecx, [ecx]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov esi, dword [ebp - 8]
mov eax, dword [0x49b854]
shl esi, 4
add esi, dword [ebp - 0x24]
cmp eax, 0xfa9
jne 0x4049fc
mov dword [0x49b850], 0xedeb2e40
jmp 0x404a17
cmp eax, 0x3eb
jne 0x404a17
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [0x49b2e0], 0
mov eax, dword [ebp - 8]
lea ecx, [edi + eax]
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x49b854], 0x9e6
mov dword [0x49b84c], 0xf4ea3dee
jne 0x404a50
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x49b854], 0x213
jne 0x404af2
push 0
lea eax, [ebp - 0x8d8]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrencyFormatW]
lea ecx, [ebp - 0x14d8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x10d8]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommBreak]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
push 0
push 0
lea ecx, [ebp - 0x1cd8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
lea edx, [ebp - 0x30]
push edx
push 0
lea eax, [ebp - 0x44]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea ecx, [ebp - 0xd8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
sub ebx, dword [ebp - 4]
cmp dword [0x49b854], 0xc
jne 0x404b06
push 0
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
mov eax, ebx
shr eax, 5
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 4], eax
mov ecx, ebx
shl ecx, 4
add ecx, dword [ebp - 0x1c]
lea edx, [edi + ebx]
xor ecx, edx
xor ecx, dword [ebp - 4]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
sub dword [ebp - 8], eax
add edi, 0x61c88647
sub dword [ebp - 0x10], 1
jne 0x4049d0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov dword [eax + 4], ebx
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404b60
Capabilities:
Connect pipe
Create process on windows
Create reverse shell
Read pipe
Set environment variable
Set thread local storage value
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1408
call fcn.0040ff60
mov eax, dword [0x49b854]
mov ecx, dword [0x49b2e4]
shr eax, 3
test eax, eax
jbe 0x404c78
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edi, edi
cmp dword [0x49b854], 0x959
jne 0x404c5e
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push 0
push 0
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push 0
lea ecx, [ebp - 0xc08]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea edx, [ebp - 0x808]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
lea eax, [ebp - 0x1408]
push eax
push 0
call edi
mov ecx, dword [ebp - 4]
push ecx
call fcn.00404970
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x404ba0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4064f0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4930e8]
jne 0x4064fa
repz ret
jmp fcn.0040a73e

Function at 0x40a369
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.004096ff
and dword [ebp - 4], 0
cmp dword [0x499294], 0
mov ebx, eax
jne 0x40a41a
push 0x402458
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a4cb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40244c
push edi
call esi
test eax, eax
je 0x40a4cb
push eax
call fcn.0040968d
mov dword [esp], 0x40243c
push edi
mov dword [0x499294], eax
call esi
push eax
call fcn.0040968d
mov dword [esp], 0x402428
push edi
mov dword [0x499298], eax
call esi
push eax
call fcn.0040968d
mov dword [esp], 0x40240c
push edi
mov dword [0x49929c], eax
call esi
push eax
call fcn.0040968d
pop ecx
mov dword [0x4992a4], eax
test eax, eax
je 0x40a41a
push 0x4023f4
push edi
call esi
push eax
call fcn.0040968d
pop ecx
mov dword [0x4992a0], eax
mov eax, dword [0x4992a0]
cmp eax, ebx
je 0x40a472
cmp dword [0x4992a4], ebx
je 0x40a472
push eax
call fcn.00409708
push dword [0x4992a4]
mov esi, eax
call fcn.00409708
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a472
test edi, edi
je 0x40a472
call esi
test eax, eax
je 0x40a469
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a469
test byte [ebp - 0xc], 1
jne 0x40a472
or dword [ebp + 0x10], 0x200000
jmp 0x40a4ab
mov eax, dword [0x499298]
cmp eax, ebx
je 0x40a4ab
push eax
call fcn.00409708
pop ecx
test eax, eax
je 0x40a4ab
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a4ab
mov eax, dword [0x49929c]
cmp eax, ebx
je 0x40a4ab
push eax
call fcn.00409708
pop ecx
test eax, eax
je 0x40a4ab
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x499294]
call fcn.00409708
pop ecx
test eax, eax
je 0x40a4cb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a4cd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40741c
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x407528
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
test bl, bl
je 0x40749c
movzx eax, bl
add ax, 0x41
dec eax
mov word [ebp - 0x10], ax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], 0
lea eax, [ebp - 0x420]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
mov edi, eax
cmp edi, 0x104
jbe 0x407493
mov edx, edi
dec edx
lea eax, [ebp - 4]
call fcn.0040ad5c
mov eax, dword [ebp - 4]
call fcn.0040abe8
push eax
push edi
call sub.kernel32.dll_GetCurrentDirectoryW
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [ebp - 0x218]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
cmp esi, 0x104
ja 0x4074cc
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x218]
mov ecx, 0x104
call fcn.0040ac84
jmp 0x4074e8
mov edx, esi
dec edx
mov eax, dword [ebp - 8]
call fcn.0040ad5c
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0040abe8
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x407510
cmp edi, 0x104
jbe 0x407504
mov eax, dword [ebp - 4]
call fcn.0040abe8
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
jmp 0x407510
lea eax, [ebp - 0x420]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40752f
lea eax, [ebp - 4]
call fcn.0040a088
pop eax
jmp eax

Function at 0x407af8
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.0040a088
test esi, esi
jne 0x407b2e
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.0040a220
jmp 0x407b4c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004079d8
mov edi, eax
test esi, esi
je 0x407b4c
cmp dword [ebx], 0
je 0x407b4c
dec esi
jmp 0x407b35
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x408cd0
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.00409190
mov byte [esp], al
cmp byte [esp], 0
jne 0x408e59
test edi, edi
je 0x408e59
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408d99
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408d74
cmp edi, 0xffffffff
je 0x408d35
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408d35
mov byte [esp], 0
jmp 0x408e59
cmp dword [esi], 1
jg 0x408d74
cmp dword [esi], 0
jne 0x408d66
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408d66
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408e59
lea eax, [esp + 0xc]
call fcn.004089a8
dec ebp
test ebp, ebp
jg 0x408d1a
cmp edi, 0xffffffff
je 0x408d99
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408d97
mov byte [esp], 0
jmp 0x408e59
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408cde
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408d99
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408ed4
mov edx, eax
mov ebx, dword [0x5078fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408dfd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408dfb
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408dfd
xor edi, edi
cmp byte [esp], 0
je 0x408e23
mov ebx, dword [esi]
test bl, 1
jne 0x408e39
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408e03
mov byte [esp + 1], 1
jmp 0x408e39
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408e23
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408db0
cmp byte [esp], 0
je 0x408e59
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 0x409d20
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x50705c], 0
je 0x409d87
cmp word [0x507348], 0xd7b2
jne 0x409d49
cmp dword [0x507350], 0
jbe 0x409d49
mov eax, 0x507344
call dword [0x507360]
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, 0x409db4
call fcn.0040a99c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4fe036], 0
jne 0x409da3
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409f48
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 [0x4fe038], 0
je 0x409f73
mov edx, edi
mov eax, esi
call dword [0x4fe038]
mov ebx, eax
jmp 0x409f84
mov eax, 8
call fcn.00407278
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x50705d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409f10
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 0x409fb4
mov eax, ebx
call fcn.00407294
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40da80
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 0x40dbe7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a088
cmp si, word [0x4fea18]
jb 0x40db18
cmp si, word [0x4fec18]
ja 0x40db18
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40db18
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4fea18]
jae 0x40daf2
mov edi, ebx
dec edi
jmp 0x40db13
cmp si, word [ebx*8 + 0x4fea18]
jbe 0x40db02
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40db13
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4fea1c]
call fcn.0040d99c
jmp 0x40db18
cmp edi, dword [ebp - 8]
jae 0x40dadc
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40dbc7
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40dbc7
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.0040ac84
push dword [ebp - 0x160]
push 0x40dc04
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040ac84
push dword [ebp - 0x164]
push 0x40dc14
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040ac84
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040aebc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dbee
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a0e8
pop eax
jmp eax
Function at 0x40dd9c
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 0x40dea2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x509c18
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x509c30]
jne 0x40dde8
mov eax, esi
mov edx, 0x509c32
mov ecx, 0x55
call fcn.0040ac84
push 0x509c18
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40de8a
push 0x509c18
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a088
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40de57
cmp byte [0x509c14], 0
je 0x40de1c
mov edx, esi
mov eax, ebx
call fcn.0040dc80
jmp 0x40de57
mov edx, esi
mov eax, ebx
call fcn.0040da80
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40de57
cmp dword [esi], 0
je 0x40de40
mov eax, esi
mov edx, 0x40debc
call fcn.0040addc
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040da80
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040addc
push 0x509c18
call sub.kernel32.dll_EnterCriticalSection
mov word [0x509c30], bx
mov eax, dword [esi]
call fcn.0040abe8
mov ecx, eax
mov eax, 0x509c32
mov edx, 0xaa
call fcn.0040d8fc
push 0x509c18
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dea9
lea eax, [ebp - 4]
call fcn.0040a088
pop eax
jmp eax
Function at 0x40e0e4
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.0040a17c
xor eax, eax
push ebp
push 0x40e30c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40e12a
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40e144
mov eax, dword [ebp - 4]
call fcn.0040abe8
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040d8fc
cmp word [ebp - 0x21e], 0
je 0x40e2ef
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e31c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e213
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e31c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e213
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e358
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e213
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e358
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e213
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e38c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e213
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e3c0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40e2ef
xor eax, eax
push ebp
push 0x40e2e8
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040dee4
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 0x40e276
mov eax, dword [ebp - 0x14]
call fcn.00407278
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.0040ac48
jmp 0x40e2c1
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40e400
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e2c1
mov eax, dword [ebp - 0x14]
call fcn.00407278
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40e400
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040ac48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e2ef
cmp dword [ebp - 0xc], 0
je 0x40e2dc
mov eax, dword [ebp - 0xc]
call fcn.00407294
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 0x40e313
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a0e8
pop eax
jmp eax
Function at 0x40e620
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.0040a17c
xor eax, eax
push ebp
push 0x40e6e2
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.0040ac84
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ae34
mov eax, dword [ebx]
call fcn.0040e4c8
test al, al
jne 0x40e6bd
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040ac84
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ae34
mov eax, dword [ebx]
call fcn.0040e4c8
test al, al
jne 0x40e6bd
mov eax, ebx
call fcn.0040a088
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e6e9
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a0e8
lea eax, [ebp - 4]
call fcn.0040a088
pop eax
jmp eax

Function at 0x410144
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 0x41fd98
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x41fec8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x218]
push eax
push 0x104
call sub.kernel32.dll_GetLogicalDriveStringsW
mov esi, eax
test esi, esi
jle 0x41fea0
lea ebx, [ebp - 0x218]
lea eax, [ebx + 4]
mov word [eax], 0
push 0x104
lea eax, [ebp - 0x424]
push eax
push ebx
call sub.kernel32.dll_QueryDosDeviceW
mov esi, eax
test esi, esi
jle 0x41fe89
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.0040ac84
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040b160
test eax, eax
jle 0x41fe89
mov eax, dword [ebp - 4]
test eax, eax
je 0x41fe3d
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x41fe4b
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x428]
push eax
mov ecx, edi
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.0040b004
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.0040ac48
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.0040ae34
jmp 0x41fea0
add ebx, 2
cmp word [ebx], 0
jne 0x41fe86
add ebx, 4
test ebx, ebx
je 0x41fe9a
cmp word [ebx], 0
jne 0x41fdea
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41fecf
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.0040a0e8
lea eax, [ebp - 4]
call fcn.0040a088
pop eax
jmp eax
Function at 0x42027c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov byte [ebp - 1], 0
xor edx, edx
mov eax, 6
call fcn.0042963c
test al, al
je 0x420346
xor edx, edx
mov eax, ebx
call fcn.00421af4
test al, al
je 0x420346
mov eax, ebx
call fcn.004216c4
test al, 0x20
je 0x420346
mov eax, ebx
call fcn.0040abe8
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x420346
test ah, 4
je 0x420346
test al, 0x10
je 0x4202e3
mov edi, 0x2000000
jmp 0x4202e5
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.0040abe8
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x420346
xor eax, eax
push ebp
push 0x42033f
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.0041ffc4
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420346
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
pop eax
jmp eax
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4204a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4204f9
test eax, edx
je 0x4204fc
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4204b7
movzx eax, word [eax]
sub eax, ecx
jmp 0x4204de
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 0x4204df
add ecx, 4
js 0x4204cf
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4204dc
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4204de
xor eax, eax
ret
test eax, eax
je 0x420508
test edx, edx
jne 0x4204a8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret