joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40462c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4047e8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40468d
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404804
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4046ff
xor eax, eax
push ebp
push 0x4046f8
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00404484
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4046e1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404824
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4046ff
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4047e0
cmp byte [ebp - 0xd], 0
jne 0x404741
cmp byte [ebp - 0x12], 0
je 0x4047e0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40475a
dec ebx
cmp byte [ebx], 0x2e
je 0x404769
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404759
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4047e0
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404796
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4047e0
cmp byte [ebp - 0xd], 0
je 0x4047e0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4047e0
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407044
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40707d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004033ac
jmp 0x407086
mov eax, ebx
mov edx, esi
call fcn.00403318
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x407090
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4070b1
mov al, byte [esp]
jmp 0x4070b3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40d56c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d656
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x40d639
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x40d606
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
call sub.shell32.dll_SHGetMalloc
call fcn.0040c8c8
lea eax, [ebp - 8]
push eax
push ebx
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.0040c8c8
lea eax, [ebp - 0x111]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x40d5f4
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x111]
mov ecx, 0x105
call fcn.004034f4
jmp 0x40d5fc
mov eax, dword [ebp - 4]
call fcn.004032c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40d618
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d640
cmp dword [ebp - 8], 0
je 0x40d638
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
ret
Function at 0x1002897
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ebx, ecx
test esi, esi
jne 0x10028b2
push 0x80004005
call fcn.01002327
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x10028b4
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x10035b9
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x100906c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, ecx
mov ecx, dword [ebp + 8]
push 0x2001f
push ecx
push dword [eax]
xor esi, esi
mov dword [ebp - 0x21c], ecx
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.010027f5
mov edi, eax
cmp edi, esi
je 0x100362b
lea ecx, [ebp - 0x214]
call fcn.01002782
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0100748c
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1003649
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.010035b9
cmp eax, esi
jne 0x1003694
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x208], 0x100
call edi
test eax, eax
je 0x1003633
lea ecx, [ebp - 0x214]
call fcn.01002782
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x218]
call fcn.010026fc
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.01002782
mov eax, esi
jmp 0x100361b

Function at 0x10045b0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x30], eax
cmp eax, esi
jne 0x10045d1
xor eax, eax
jmp 0x10045f7
push ebx
lea eax, [ebp - 4]
push eax
push esi
push edi
push 0x1003b47
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp ebx, esi
jne 0x10045f4
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x100546c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x100906c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
push 2
push edi
push eax
mov dword [ebp - 0x410], edi
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x418], edi
mov dword [ebp - 0x408], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x40c], eax
cmp eax, edi
jne 0x10054c7
call fcn.01002489
mov esi, eax
jmp 0x10055a8
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
jne 0x10054e0
call fcn.01002489
jmp 0x100559a
push esi
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, edi
je 0x10054d6
push esi
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x1005545
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x1005522
lea ecx, [ebp - 0x408]
call fcn.01003443
mov esi, 0x8007000e
lea ecx, [ebp - 0x410]
call fcn.01003352
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100748c
leave
ret 0x10
push eax
lea ecx, [ebp - 0x408]
call fcn.01004497
cmp dword [ebp - 0x408], edi
jne 0x1005560
mov esi, 0x8007000e
jmp 0x100559c
push esi
push dword [ebp - 0x408]
push esi
push ebx
push edi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
je 0x10054d6
mov edx, dword [ebp - 0x408]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x408]
lea ecx, [ebp - 0x418]
call fcn.01005270
mov esi, eax
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x1005527
lea ecx, [ebp - 0x408]
call fcn.01003443
jmp 0x1005527

Function at 0x1006fae
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x100906c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.01006f43
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x1007021
cmp dword [ebp - 0x94], 5
jb 0x1007042
jmp 0x100703e
cmp dword [ebp - 0x88], 1
jne 0x1007042
cmp dword [ebp - 0x94], 4
ja 0x100703e
jne 0x1007042
cmp dword [ebp - 0x90], 0
jbe 0x1007042
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1001e74
call fcn.01002439
test eax, eax
jge 0x1007063
mov byte [0x10090a0], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0100748c
leave
ret
Function at 0x100739f
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1007f10
call fcn.01007404
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1009544
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x100715a
cmp eax, esi
jne 0x100714d
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100715d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1007134
xor esi, esi
inc esi
mov eax, dword [0x1009540]
cmp eax, esi
jne 0x1007170
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x100719f
mov eax, dword [0x1009540]
test eax, eax
jne 0x1007199
mov dword [0x1009540], esi
push 0x10012a4
push 0x1001298
call fcn.01007096
pop ecx
pop ecx
test eax, eax
je 0x100719f
jmp 0x10072c3
mov dword [0x100920c], esi
mov eax, dword [0x1009540]
cmp eax, esi
jne 0x10071c3
push 0x1001294
push 0x100127c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1009540], 2
cmp dword [ebp - 0x20], ebx
jne 0x10071d0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1009550], ebx
je 0x10071f1
push 0x1009550
call fcn.01007799
pop ecx
test eax, eax
je 0x10071f1
push ebx
push 2
push ebx
call dword [0x1009550]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x10072c3
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x100725b
cmp cx, bx
je 0x1007216
cmp dword [ebp - 0x1c], ebx
jne 0x100725b
movzx ecx, word [eax]
cmp cx, bx
je 0x100722b
cmp cx, 0x20
ja 0x100722b
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1007216
test byte [ebp - 0x40], 1
je 0x1007237
movzx ecx, word [ebp - 0x3c]
jmp 0x100723a
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1009208], eax
cmp dword [0x10091fc], ebx
jne 0x10072a0
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x100726c
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1007200
cmp dword [0x100920c], ebx
jne 0x10072ae
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1009208]
jmp 0x10072cf
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01007449
ret
call fcn.010078e6
jmp 0x10070f7
Function at 0x1007b7b
Capabilities:
Query service status
Start service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push 6
pop ecx
push 1
xor ebx, ebx
push 0x1002068
xor eax, eax
mov dword [ebp - 0x24], ebx
lea edi, [ebp - 0x20]
push ebx
rep stosd dword es:[edi], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x1007bc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jg 0x1007bba
mov ebx, eax
jmp 0x1007c89
and eax, 0xffff
or eax, 0x80070000
jmp 0x1007bb3
push esi
push 0x14
push 0x1002058
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x1007be8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jg 0x1007c59
jmp 0x1007c63
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [ebp - 0x24]
push ecx
push eax
call esi
test eax, eax
jne 0x1007c03
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jmp 0x1007be4
cmp dword [ebp - 0x20], 4
je 0x1007c72
xor edi, edi
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1007c29
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x1007c72
jmp 0x1007bff
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
call esi
test eax, eax
je 0x1007c4f
cmp dword [ebp - 0x20], 2
jne 0x1007c67
inc edi
cmp edi, 0x19
jl 0x1007c29
jmp 0x1007c6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1007c63
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x1007c72
cmp dword [ebp - 0x20], 4
je 0x1007c72
mov ebx, 0x8007041d
cmp dword [ebp - 4], 0
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x1007c83
push dword [ebp - 4]
call esi
push dword [ebp - 8]
call esi
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret
Function at 0x401b5a
Capabilities:
Delete file

Disassembly:
sub esp, 0x48
mov eax, dword [esp + 0x4c]
push ebx
push ebp
mov ebp, dword [eax + 4]
push esi
push edi
mov edi, dword [eax]
xor esi, esi
cmp dword [0xc3f34c], 0xc1a
mov dword [esp + 0x14], edi
jne 0x401b83
push esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [0xc3f34c], 0x114e
mov dword [esp + 0x1c], 0xc6ef3720
jne 0x401b9f
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
cmp dword [0xc3f34c], 0xb54
mov eax, dword [0x423000]
mov dword [esp + 0x30], eax
mov eax, dword [0x423004]
mov dword [esp + 0x34], eax
jne 0x401bc6
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp dword [0xc3f34c], 0x6c2
mov eax, dword [0x423008]
mov dword [esp + 0x24], eax
mov eax, dword [0x42300c]
mov dword [esp + 0x28], eax
jne 0x401beb
push esi
call dword [sym.imp.KERNEL32.dll_RequestDeviceWakeup]
mov dword [esp + 0x20], 0x20
jmp 0x401bf9
mov edi, dword [esp + 0x14]
mov ebx, edi
shl ebx, 4
cmp dword [0xc3f34c], 0x4c3
jne 0x401c15
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [0xc3f34c]
add ebx, dword [esp + 0x24]
cmp eax, 0xfa9
jne 0x401c2f
mov dword [0xc3c8b4], 0xedeb2e40
mov ecx, dword [esp + 0x1c]
add ecx, edi
shr edi, 5
add edi, dword [esp + 0x28]
mov dword [esp + 0x2c], ecx
mov dword [0xc3c8b0], 0x9150ce2e
cmp eax, 0x912
jne 0x401c66
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
mov dword [0xc3c728], esi
xor edi, dword [esp + 0x2c]
xor edi, ebx
sub ebp, edi
cmp dword [0xc3f34c], 0x5b6
jne 0x401c81
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [esp + 0x18], esi
and eax, 0x4dd0071b
sub dword [esp + 0x18], 0x2273eb88
mov ebx, 0x3a7cd587
add dword [esp + 0x18], 0x2273eb8c
mov ecx, dword [esp + 0x18]
mov eax, ebp
shl eax, cl
mov ecx, ebp
shr ecx, 5
add ecx, dword [esp + 0x34]
add eax, dword [esp + 0x30]
mov dword [0x426ae0], esi
xor eax, ecx
mov ecx, dword [esp + 0x1c]
add ecx, ebp
xor eax, ecx
sub dword [esp + 0x14], eax
cmp dword [0xc3f34c], 0x1d5
jne 0x401d2b
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteTapemark]
lea eax, [esp + 0x38]
push eax
push esi
lea eax, [esp + 0x48]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
call dword [sym.imp.KERNEL32.dll_GetACP]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseActCtx]
push esi
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
lea eax, [esp + 0x1c]
call fcn.00401b53
dec dword [esp + 0x20]
jne 0x401bf5
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword [eax + 4], ebp
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x48
ret 4
Function at 0x401dd9
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41ce35
push eax
mov dword fs:[0], esp
sub esp, 0xb8
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, 0x425368
push esi
call edi
xor ebx, ebx
cmp eax, 0x280a7
jne 0x401e51
push ebx
call fcn.004047dc
pop ecx
lea eax, [esp + 0x1c]
push eax
call fcn.004022a5
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0xd0], ebx
call fcn.0040230e
lea eax, [esp + 0x38]
call fcn.00401fc9
or dword [esp + 0xcc], 0xffffffff
lea eax, [esp + 0x1c]
push eax
call fcn.004022e1
push esi
call edi
cmp eax, 0x35d85
jne 0x401e91
lea eax, [esp + 0x1c]
call fcn.00402a66
push 0x86ef
push 0x27d0c10a
mov dword [esp + 0xd4], 1
call fcn.00404675
or dword [esp + 0xd4], 0xffffffff
pop ecx
pop ecx
lea edi, [esp + 0x1c]
call fcn.00402a8b
mov eax, dword [0x4245b8]
mov dword [0xc3f34c], eax
call fcn.00401dc3
xor edi, edi
cmp edi, 0x656289
jne 0x401eb4
call fcn.00401db7
mov dword [0xc3c8a8], eax
inc edi
cmp edi, 0x66d056
jl 0x401ea2
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetGeoInfoA]
cmp edi, 0xdf7aa8
jle 0x401eec
cmp dword [esp + 0x14], 0x56982
je 0x401eec
cmp dword [esp + 0x14], 0x2bc49b6
jne 0x401efe
inc edi
mov eax, edi
cdq
cmp edx, 1
jl 0x401ebf
jg 0x401efe
cmp eax, 0x54ca73ed
jb 0x401ebf
push dword [0xc3f34c]
mov eax, dword [0x422ff8]
push ebx
mov dword [0xc3f350], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
xor ecx, ecx
mov dword [0xc3c72c], eax
cmp dword [0xc3f34c], ebx
jbe 0x401f32
call fcn.00401d92
inc ecx
cmp ecx, dword [0xc3f34c]
jb 0x401f24
xor edi, edi
cmp edi, 0x1095b
jne 0x401f8e
push str.Virtual
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.Protect
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
push dword [0xc3c8a8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x426ae4], eax
mov dword [esp + 0x10], 0x20
add dword [esp + 0x10], 0x20
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
push dword [0xc3f34c]
push dword [0xc3c72c]
call dword [0x426ae4]
inc edi
cmp edi, 0x2846a
jl 0x401f34
call fcn.00401d55
xor ecx, ecx
cmp ecx, 0x156cae
jne 0x401fab
call fcn.00401dce
inc ecx
cmp ecx, 0x24c129
jl 0x401f9e
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405688
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422268]
jne 0x405692
repz ret
jmp fcn.0040b3ac
Function at 0x40f3b3
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.00408a1c
and dword [ebp - 4], 0
cmp dword [0x425294], 0
mov ebx, eax
jne 0x40f464
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40f515
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40f515
push eax
call fcn.004089aa
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x425294], eax
call esi
push eax
call fcn.004089aa
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x425298], eax
call esi
push eax
call fcn.004089aa
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42529c], eax
call esi
push eax
call fcn.004089aa
pop ecx
mov dword [0x4252a4], eax
test eax, eax
je 0x40f464
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004089aa
pop ecx
mov dword [0x4252a0], eax
mov eax, dword [0x4252a0]
cmp eax, ebx
je 0x40f4bc
cmp dword [0x4252a4], ebx
je 0x40f4bc
push eax
call fcn.00408a25
push dword [0x4252a4]
mov esi, eax
call fcn.00408a25
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40f4bc
test edi, edi
je 0x40f4bc
call esi
test eax, eax
je 0x40f4b3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40f4b3
test byte [ebp - 0xc], 1
jne 0x40f4bc
or dword [ebp + 0x10], 0x200000
jmp 0x40f4f5
mov eax, dword [0x425298]
cmp eax, ebx
je 0x40f4f5
push eax
call fcn.00408a25
pop ecx
test eax, eax
je 0x40f4f5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40f4f5
mov eax, dword [0x42529c]
cmp eax, ebx
je 0x40f4f5
push eax
call fcn.00408a25
pop ecx
test eax, eax
je 0x40f4f5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x425294]
call fcn.00408a25
pop ecx
test eax, eax
je 0x40f515
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40f517
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402c80
Capabilities:
Check mutex on windows

Disassembly:
push 0x4d1630
push 1
push 0
call dword [sym.imp.kernel32.dll_CreateMutexA]
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xb7
sete al
movzx eax, al
ret

Function at 0x4067e0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x4c13a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x3c]
push edi
mov ecx, ebx
mov dword [esp + 0xc], ebx
call dword [sym.imp.engine.dll_public:_void___thiscall_CriticalSection::enterCriticalSection_void_]
mov al, byte [esi + 0x34]
test al, al
je 0x40684a
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jbe 0x406826
mov edi, dword [esp + 0x28]
mov eax, 1
rep stosd dword es:[edi], eax
mov ecx, ebx
mov dword [esp + 0x1c], 0xffffffff
call dword [sym.imp.engine.dll_public:_void___thiscall_CriticalSection::leaveCriticalSection_void_]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc
mov eax, dword [esi + 0x30]
mov edx, dword [esp + 0x2c]
push ebp
mov ebp, dword [esp + 0x28]
xor ecx, ecx
xor eax, ebp
test edx, edx
jbe 0x406883
mov edi, edi
mov ebx, dword [esi + 0x28]
mov ebp, dword [esi + 0x20]
mov edi, eax
shr edi, 3
mov edi, dword [ebx + edi*4]
xor edi, dword [ebp + eax*4]
mov ebx, dword [esp + 0x2c]
mov dword [ebx + ecx*4], edi
inc ecx
inc eax
cmp ecx, edx
jb 0x406860
mov ebx, dword [esp + 0x10]
mov ecx, ebx
mov dword [esp + 0x20], 0xffffffff
call dword [sym.imp.engine.dll_public:_void___thiscall_CriticalSection::leaveCriticalSection_void_]
mov ecx, dword [esp + 0x18]
pop ebp
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc