joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a490
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43a4c3
push esi
call fcn.0043d580
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43a4bc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43a549
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43a532
mov eax, dword [esi + 8]
test eax, eax
je 0x43a4e7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43a52e
cmp eax, 2
je 0x43a532
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43a4da
cmp eax, 3
je 0x43a50d
cmp eax, 1
jne 0x43a4da
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43a4da
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43a4da
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043a570
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43a558
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043a570
add esp, 4
pop esi
ret

Function at 0x458aaa
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x458ae2
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00456b5e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00456b36
jmp 0x458aee
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45a198
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x45a1da
call fcn.0045fc51
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45a1da
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45a1d1
xor eax, eax
jmp 0x45a1e2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045a1e8
pop edi
pop esi
pop ebx
ret 4

Function at 0x460181
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4601af
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4601cd
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004600e7
jmp 0x4601cd
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4601cd
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004600e7
test edi, edi
mov eax, edi
jne 0x4601b7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x404553
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41c35c]
jne 0x40455d
repz ret
jmp fcn.004072d1

Function at 0x40e37c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41c35c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004075e9
and dword [ebp - 0x14], 0
cmp dword [0x41e59c], 0
mov dword [ebp - 0x18], eax
jne 0x40e42f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40e4d7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40e4d7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41e59c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41e5a0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41e5a4], eax
call edi
push eax
call esi
mov dword [0x41e5ac], eax
test eax, eax
je 0x40e42f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41e5a8], eax
mov eax, dword [0x41e5a8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40e488
cmp dword [0x41e5ac], ecx
je 0x40e488
push eax
call esi
push dword [0x41e5ac]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40e488
test ebx, ebx
je 0x40e488
call edi
test eax, eax
je 0x40e47f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40e47f
test byte [ebp - 8], 1
jne 0x40e488
or dword [ebp + 0x10], 0x200000
jmp 0x40e4bb
mov eax, dword [0x41e5a0]
cmp eax, dword [ebp - 0x18]
je 0x40e4bb
push eax
call esi
test eax, eax
je 0x40e4bb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40e4bb
mov eax, dword [0x41e5a4]
cmp eax, dword [ebp - 0x18]
je 0x40e4bb
push eax
call esi
test eax, eax
je 0x40e4bb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41e59c]
call esi
test eax, eax
je 0x40e4d7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40e4d9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404553
leave
ret
Function at 0x40f27c
Capabilities:
Encode data using xor
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x41c35c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, ecx
cmp dword [ebp + 8], ebx
jle 0x40f2d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.0040f250
xor byte [edi + esi - 0x200], al
push ebx
call dword [sym.imp.KERNEL32.dll_FindAtomA]
push ebx
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
lea eax, [ebp - 0x804]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
inc esi
cmp esi, dword [ebp + 8]
jl 0x40f29d
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404553
leave
ret 4
Function at 0x404978
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.0040723c
test esi, esi
jne 0x4049ae
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.004073c4
jmp 0x4049cc
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004048bc
mov edi, eax
test esi, esi
je 0x4049cc
cmp dword [ebx], 0
je 0x4049cc
dec esi
jmp 0x4049b5
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405fb8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.004063b0
mov byte [esp], al
cmp byte [esp], 0
jne 0x406144
test edi, edi
je 0x406144
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40607b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x406056
cmp edi, 0xffffffff
je 0x406017
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406017
mov byte [esp], 0
jmp 0x406144
mov ebx, dword [esi]
cmp ebx, 1
jg 0x406056
test ebx, ebx
jne 0x40604c
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402830
test eax, eax
jne 0x40604c
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x406144
call 0x4064d4
dec ebp
test ebp, ebp
jg 0x405ffc
cmp edi, 0xffffffff
je 0x40607b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406079
mov byte [esp], 0
jmp 0x406144
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405fc6
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402830
cmp ebx, eax
jne 0x40607b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004061b4
mov edx, eax
mov ebx, dword [0x5cc8f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4060e2
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4060e0
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4060e2
xor edi, edi
cmp byte [esp], 0
je 0x40610b
mov ebx, dword [esi]
test bl, 1
jne 0x406124
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402830
cmp ebx, eax
jne 0x4060e8
mov byte [esp + 1], 1
jmp 0x406124
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402830
cmp ebx, eax
jne 0x40610b
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x406095
cmp byte [esp], 0
je 0x406144
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406ed4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5cc058], 0
je 0x406f3b
cmp word [0x5cc344], 0xd7b2
jne 0x406efd
cmp dword [0x5cc34c], 0
jbe 0x406efd
mov eax, 0x5cc340
call dword [0x5cc35c]
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, 0x406f68
call fcn.00407afc
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5c2032], 0
jne 0x406f57
push 0
push 0x5c29e2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4070f8
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 [0x5c2034], 0
je 0x407123
mov edx, edi
mov eax, esi
call dword [0x5c2034]
mov ebx, eax
jmp 0x407134
mov eax, 8
call fcn.004045ec
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5cc059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4070c0
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 0x407169
mov edx, 8
mov eax, ebx
call fcn.00404608
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x409950
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 0x409ab5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040723c
cmp si, word [0x5c2a20]
jb 0x4099e8
cmp si, word [0x5c2c20]
ja 0x4099e8
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x4099e8
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x5c2a20]
jae 0x4099c2
mov edi, ebx
dec edi
jmp 0x4099e3
cmp si, word [ebx*8 + 0x5c2a20]
jbe 0x4099d2
inc ebx
mov dword [ebp - 8], ebx
jmp 0x4099e3
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5c2a24]
call fcn.00409860
jmp 0x4099e8
cmp edi, dword [ebp - 8]
jae 0x4099ac
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x409a97
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409a97
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.00407fcc
push dword [ebp - 0x160]
push 0x409ad0
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407fcc
push dword [ebp - 0x164]
push 0x409ae0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407fcc
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00408204
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409abc
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040729c
ret
Function at 0x409c68
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 0x409d6b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5ceb88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5ceba0]
jne 0x409cb4
mov eax, esi
mov edx, 0x5ceba2
mov ecx, 0x55
call fcn.00407fcc
push 0x5ceb88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409d55
push 0x5ceb88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040723c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409d23
cmp byte [0x5ceb84], 0
je 0x409ce8
mov edx, esi
mov eax, ebx
call fcn.00409b4c
jmp 0x409d23
mov edx, esi
mov eax, ebx
call fcn.00409950
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409d23
cmp dword [esi], 0
je 0x409d0c
mov eax, esi
mov edx, 0x409d84
call fcn.00408124
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00409950
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00408124
push 0x5ceb88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5ceba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407f38
push eax
push 0x5ceba2
call sub.kernel32.dll_lstrcpynW
push 0x5ceb88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409d72
lea eax, [ebp - 4]
call fcn.0040723c
ret
Function at 0x409fa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407320
xor eax, eax
push ebp
push 0x40a1c5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409fe0
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409ffa
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407f38
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40a1af
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a1d4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a0c9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a1d4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a0c9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a210
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a0c9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a210
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a0c9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a244
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a0c9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a278
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40a1af
xor eax, eax
push ebp
push 0x40a1a8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409dac
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40a138
mov eax, dword [ebp - 0x10]
call fcn.004045ec
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407f90
jmp 0x40a183
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40a2b8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40a183
mov eax, dword [ebp - 0x10]
call fcn.004045ec
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40a2b8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407f90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a1af
cmp dword [ebp - 8], 0
je 0x40a19e
mov eax, dword [ebp - 8]
call fcn.00404608
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a1cc
lea eax, [ebp - 4]
call fcn.0040723c
ret
Function at 0x40a4a8
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.00407320
xor eax, eax
push ebp
push 0x40a568
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.00407fcc
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040817c
mov eax, dword [ebx]
call fcn.0040a370
test al, al
jne 0x40a545
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407fcc
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040817c
mov eax, dword [ebx]
call fcn.0040a370
test al, al
jne 0x40a545
mov eax, ebx
call fcn.0040723c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a56f
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040729c
lea eax, [ebp - 4]
call fcn.0040723c
ret

Function at 0x41eee0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41ef39
test eax, edx
je 0x41ef3c
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41eef7
movzx eax, word [eax]
sub eax, ecx
jmp 0x41ef1e
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 0x41ef1f
add ecx, 4
js 0x41ef0f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41ef1c
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41ef1e
xor eax, eax
ret
test eax, eax
je 0x41ef48
test edx, edx
jne 0x41eee8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x41f5bc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, edx
mov ebp, eax
mov byte [esp], 0
mov eax, ebp
test eax, eax
je 0x41f5d4
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x41f5dc
mov al, 1
jmp 0x41f5f9
movzx esi, word [ebp]
mov eax, esi
call fcn.00410124
test al, al
jne 0x41f5f5
cmp si, 0x5f
je 0x41f5f5
xor eax, eax
jmp 0x41f5f7
mov al, 1
xor al, 1
test al, al
jne 0x41f689
test bl, bl
je 0x41f649
mov eax, ebp
test eax, eax
je 0x41f610
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x41f685
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.004101b0
test al, al
jne 0x41f63d
cmp di, 0x5f
je 0x41f63d
cmp di, 0x2e
je 0x41f63d
xor eax, eax
jmp 0x41f63f
mov al, 1
test al, al
je 0x41f689
inc esi
dec ebx
jne 0x41f61d
jmp 0x41f685
mov eax, ebp
test eax, eax
je 0x41f654
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x41f685
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.004101b0
test al, al
jne 0x41f67b
cmp di, 0x5f
je 0x41f67b
xor eax, eax
jmp 0x41f67d
mov al, 1
test al, al
je 0x41f689
inc esi
dec ebx
jne 0x41f661
mov byte [esp], 1
movzx eax, byte [esp]
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x420234
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.00407f38
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42029e
test ah, 4
je 0x420297
test bl, bl
jne 0x42025c
mov al, 1
jmp 0x4202c5
test al, 0x10
je 0x420264
xor eax, eax
jmp 0x4202c5
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x420288
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x4202c5
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x4202c5
test al, 0x10
sete al
jmp 0x4202c5
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x4202bf
cmp ebx, 3
je 0x4202bf
cmp ebx, 0x7b
je 0x4202bf
mov eax, esi
call fcn.004201f4
test al, al
jne 0x4202c3
xor eax, eax
jmp 0x4202c5
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x4202cc
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.00407f38
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x420373
test esi, 0x400
jne 0x420308
test esi, 0x10
setne bl
jmp 0x420392
cmp byte [esp], 0
je 0x42033c
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x420392
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x420392
test esi, 0x10
je 0x420348
mov bl, 1
jmp 0x420392
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x42036f
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x420392
mov bl, 1
jmp 0x420392
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x42038c
cmp eax, 3
je 0x42038c
cmp eax, 0x7b
je 0x42038c
cmp eax, 0x35
jne 0x420390
xor ebx, ebx
jmp 0x420392
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42039c
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.00407f38
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4203f1
call sub.kernel32.dll_GetLastError_2
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4203eb
test ah, 4
je 0x4203eb
test al, 0x10
je 0x4203eb
mov eax, esi
call fcn.00407f38
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x4203f1
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42438c
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_1
test eax, eax
jle 0x4243c5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004073c4
jmp 0x4243ce
mov eax, ebx
mov edx, esi
call fcn.0040761c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4243d8
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_1
test eax, eax
jle 0x4243fa
movzx eax, word [esp]
jmp 0x4243fc
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret