joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403e57
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
cmp byte [edi], 0x25
jne 0x403ed4
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x104]
push eax
call fcn.00403093
lea eax, [ebp + eax - 0x105]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x25
jne 0x403ebc
and byte [eax], 0
push dword [ebp + 0x1c]
lea eax, [ebp - 0x104]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push eax
push 0x4016ec
call esi
pop edi
pop esi
leave
ret 0x18

Function at 0x4041d7
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0xc]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40422c
push esi
push esi
push esi
lea eax, [ebp - 4]
push esi
push eax
push esi
lea eax, [ebp + 8]
push esi
push eax
push esi
push esi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x404223
cmp dword [ebp + 8], esi
jne 0x404223
cmp dword [ebp - 4], esi
jne 0x404223
push 1
pop esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 8

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

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
mov esi, 0x4bb1754b
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x6e0466da
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x408073
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00407d33
Function at 0x40d5b8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040803b
mov dword [ebp - 0x14], eax
cmp dword [0x437300], esi
jne 0x40d6ab
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d638
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d78b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d78b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d78b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x437300], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x437304], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x437308], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x437310], eax
test eax, eax
je 0x40d6a8
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43730c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d6d0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d6c3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d6e5
push 4
pop eax
jmp 0x40d78d
cmp dword [ebp - 0x14], esi
je 0x40d6e5
push dword [0x437300]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d6ca
mov eax, dword [0x43730c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d743
cmp dword [0x437310], edi
je 0x40d743
push eax
call ebx
push dword [0x437310]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d743
test eax, eax
je 0x40d743
call ecx
test eax, eax
je 0x40d738
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d738
test byte [ebp - 8], 1
jne 0x40d743
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d773
mov eax, dword [0x437304]
cmp eax, edi
je 0x40d770
push eax
call ebx
test eax, eax
je 0x40d770
call eax
mov esi, eax
test esi, esi
je 0x40d770
mov eax, dword [0x437308]
cmp eax, edi
je 0x40d770
push eax
call ebx
test eax, eax
je 0x40d770
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x437300]
call ebx
test eax, eax
je 0x40d78b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d78d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040433c
mov esp, ebp
pop ebp
ret
Function at 0x401090
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], str.VirtualProtect
push 0x6d
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
mov dword [ebp - 0x10], str.kernel32.dll
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x43c9c0], eax
lea eax, [ebp - 4]
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [0x43c9c0]
xor eax, eax
xor edx, edx
mov esp, ebp
pop ebp
ret
Function at 0x4075d4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43c320]
jne 0x4075de
repz ret
jmp fcn.0040b4dc

Function at 0x407e5c
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.004054b6
and dword [ebp - 4], 0
cmp dword [0x43d058], 0
mov ebx, eax
jne 0x407f0d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407fbe
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407fbe
push eax
call fcn.00405444
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43d058], eax
call esi
push eax
call fcn.00405444
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43d05c], eax
call esi
push eax
call fcn.00405444
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43d060], eax
call esi
push eax
call fcn.00405444
pop ecx
mov dword [0x43d068], eax
test eax, eax
je 0x407f0d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405444
pop ecx
mov dword [0x43d064], eax
mov eax, dword [0x43d064]
cmp eax, ebx
je 0x407f65
cmp dword [0x43d068], ebx
je 0x407f65
push eax
call fcn.004054bf
push dword [0x43d068]
mov esi, eax
call fcn.004054bf
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407f65
test edi, edi
je 0x407f65
call esi
test eax, eax
je 0x407f5c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407f5c
test byte [ebp - 0xc], 1
jne 0x407f65
or dword [ebp + 0x10], 0x200000
jmp 0x407f9e
mov eax, dword [0x43d05c]
cmp eax, ebx
je 0x407f9e
push eax
call fcn.004054bf
pop ecx
test eax, eax
je 0x407f9e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407f9e
mov eax, dword [0x43d060]
cmp eax, ebx
je 0x407f9e
push eax
call fcn.004054bf
pop ecx
test eax, eax
je 0x407f9e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43d058]
call fcn.004054bf
pop ecx
test eax, eax
je 0x407fbe
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407fc0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001b60
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
lea eax, [ebx + 1]
mov edi, ecx
push eax
call fcn.10009d56
mov esi, eax
add esp, 4
test esi, esi
jne 0x10001b84
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret 8
test ebx, ebx
jle 0x10001ba1
mov ecx, dword [esp + 0x10]
push ebp
mov eax, esi
sub ecx, esi
mov ebp, ebx
mov dl, byte [ecx + eax]
xor dl, byte [edi + 0x10]
inc eax
dec ebp
mov byte [eax - 1], dl
jne 0x10001b93
pop ebp
mov eax, dword [edi + 0x44]
push 0
push ebx
push esi
push eax
call dword [0x10014538]
push esi
mov edi, eax
call fcn.10009d50
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
ret 8

Function at 0x100041c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x120
mov ecx, 0x41
xor eax, eax
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x2c]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x30]
push eax
call dword [0x1000e130]
or ecx, 0xffffffff
mov edi, 0x10014024
xor eax, eax
lea edx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x2c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x100126e4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x2c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x1001401c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x2c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [0x1000e080]
cmp eax, 0xffffffff
jne 0x10004332
push 0
push 0x80
push 2
push 0
push 0
lea ecx, [esp + 0x40]
push 0x40000000
push ecx
call dword [0x1000e148]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x10004332
push 0x1900
call fcn.10009d56
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100042fa
mov ecx, 0x640
mov esi, 0x10012718
mov edi, ebx
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov cl, byte [eax + ebx]
xor cl, 0xac
mov byte [eax + ebx], cl
inc eax
cmp eax, 0x1900
jl 0x100042cc
lea edx, [esp + 0x18]
push 0
push edx
push 0x1900
push ebx
push ebp
call dword [0x1000e128]
push ebx
call fcn.10009d50
add esp, 4
lea eax, [esp + 0x24]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
call fcn.10003350
add esp, 0xc
test eax, eax
je 0x1000432b
lea eax, [esp + 0x24]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
push ebp
call dword [0x1000e144]
push ebp
call dword [0x1000e16c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret
Function at 0x100044b0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x10012474
xor eax, eax
mov dl, byte [ecx + eax]
xor dl, 0x41
mov byte [ecx + eax], dl
inc eax
cmp eax, 0x40
jb 0x100044b7
add ecx, 0x40
cmp ecx, 0x10012674
jl 0x100044b5
ret
Function at 0x10001020
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x1000e4b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [0x1000fb54], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 0x2777
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
xor eax, 0x840fc33b
je 0x10001065
push 0
call fcn.10005071
mov ecx, section..text
sub ecx, dword [ebp - 4]
sub ecx, 5
mov dword [ebp - 0x94], ecx
mov byte [ebp - 0xa4], 0x56
mov byte [ebp - 0xa3], 0x69
mov byte [ebp - 0xa2], 0x72
mov byte [ebp - 0xa1], 0x74
mov byte [ebp - 0xa0], 0x75
mov byte [ebp - 0x9f], 0x61
mov byte [ebp - 0x9e], 0x6c
mov byte [ebp - 0x9d], 0
mov byte [ebp - 0x9c], 0x50
mov byte [ebp - 0x9b], 0x72
mov byte [ebp - 0x9a], 0x6f
mov byte [ebp - 0x99], 0x74
mov byte [ebp - 0x98], 0x65
mov byte [ebp - 0x97], 0x63
mov byte [ebp - 0x96], 0x74
mov byte [ebp - 0x95], 0
lea edx, [ebp - 0xa4]
push edx
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x9c]
push ecx
lea edx, [ebp - 0x90]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x90]
push eax
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
lea ecx, [ebp - 0xc]
push ecx
push 4
push 0xa
mov edx, dword [ebp - 4]
push edx
call dword [ebp - 8]
test eax, eax
jne 0x10001144
push 0
call fcn.10005071
mov eax, dword [ebp - 4]
mov byte [eax], 0xe8
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x94]
mov dword [edx], eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 0x10
mov eax, dword [ebp - 4]
push eax
call dword [ebp - 8]
test eax, eax
jne 0x1000117a
push 0
call fcn.10005071
xor eax, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10004dc2
mov esp, ebp
pop ebp
ret 4

Function at 0x10004dc2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000e4b8]
jne 0x10004dcc
repz ret
jmp fcn.10005348
Function at 0x10007d77
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.100054c0
and dword [ebp - 4], 0
cmp dword [0x1000fa70], 0
mov ebx, eax
jne 0x10007e28
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10007ed9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10007ed9
push eax
call fcn.1000544e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1000fa70], eax
call esi
push eax
call fcn.1000544e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1000fa74], eax
call esi
push eax
call fcn.1000544e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1000fa78], eax
call esi
push eax
call fcn.1000544e
pop ecx
mov dword [0x1000fa80], eax
test eax, eax
je 0x10007e28
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000544e
pop ecx
mov dword [0x1000fa7c], eax
mov eax, dword [0x1000fa7c]
cmp eax, ebx
je 0x10007e80
cmp dword [0x1000fa80], ebx
je 0x10007e80
push eax
call fcn.100054c9
push dword [0x1000fa80]
mov esi, eax
call fcn.100054c9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10007e80
test edi, edi
je 0x10007e80
call esi
test eax, eax
je 0x10007e77
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10007e77
test byte [ebp - 0xc], 1
jne 0x10007e80
or dword [ebp + 0x10], 0x200000
jmp 0x10007eb9
mov eax, dword [0x1000fa74]
cmp eax, ebx
je 0x10007eb9
push eax
call fcn.100054c9
pop ecx
test eax, eax
je 0x10007eb9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10007eb9
mov eax, dword [0x1000fa78]
cmp eax, ebx
je 0x10007eb9
push eax
call fcn.100054c9
pop ecx
test eax, eax
je 0x10007eb9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1000fa70]
call fcn.100054c9
pop ecx
test eax, eax
je 0x10007ed9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10007edb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401120
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4024a9
mov eax, dword fs:[0]
push eax
mov eax, dword [0x405028]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
cmp dword [esp + 0x2c], 0x10
mov eax, dword [esp + 0x18]
jae 0x40114f
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or ecx, 0xffffffff
mov dword [esp + 0xc], ecx
cmp eax, ecx
lea ecx, [esp + 0x14]
jne 0x40117d
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor al, al
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, 1
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret

Function at 0x4011a0
Capabilities:
Create directory
Create process on windows
Extract resource via kernel32 functions
Write and execute a file
Write file on windows

Disassembly:
push ecx
push ebx
push esi
push edi
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x40555c
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
call fcn.00401120
add esp, 0x1c
test al, al
je 0x4011e2
mov eax, dword [0x405580]
push 1
push 0
push 0
push eax
push 0x403640
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
pop ebx
pop ecx
ret
mov ecx, dword [0x405578]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x92
push 0x90
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [0x405580]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
mov esi, eax
lea eax, [esp + 0x10]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x405580]
push 1
push 0
push 0
push ecx
push 0x403640
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x401280
Capabilities:
Create directory
Create process on windows
Extract resource via kernel32 functions
Write and execute a file
Write file on windows

Disassembly:
push ecx
push ebx
push esi
push edi
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x405540
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
call fcn.00401120
add esp, 0x1c
push 0
test al, al
je 0x4012c2
mov eax, dword [0x40557c]
push 0
push 0
push eax
push 0x403640
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
pop ebx
pop ecx
ret
mov ecx, dword [0x405578]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x93
push 0x91
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [0x40557c]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
mov esi, eax
lea eax, [esp + 0x10]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x40557c]
push 0
push 0
push 0
push ecx
push 0x403640
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x401d98
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x405028]
jne 0x401da2
repz ret
jmp fcn.004022be
Function at 0x100021f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
cmp word [ebx], 0
mov esi, dword [ecx + 4]
je 0x10002229
movss xmm1, dword [0x100286d0]
xor eax, eax
nop
mov edx, dword [ecx]
movss xmm0, dword [edx + eax*4]
xorps xmm0, xmm1
movss dword [esi + eax*4], xmm0
movzx edx, word [ebx]
add eax, 1
cmp edx, eax
ja 0x10002210
pop ebx
pop esi
pop ebp
ret

Function at 0x10002390
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
cmp word [ebx], 0
mov esi, dword [ecx + 4]
je 0x100023e3
movups xmm1, xmmword [0x100286f0]
xor eax, eax
lea esi, [esi]
mov edx, dword [ecx]
movups xmm2, xmm1
movups xmm3, xmm1
movss xmm0, dword [edx + eax*4]
cmpleps xmm2, xmm0
andps xmm3, xmm2
pslld xmm2, 0x1f
subps xmm0, xmm3
cvttps2dq xmm0, xmm0
pxor xmm0, xmm2
movss dword [esi + eax*4], xmm0
movzx edx, word [ebx]
add eax, 1
cmp edx, eax
ja 0x100023b0
pop ebx
pop esi
pop ebp
ret
Function at 0x1001c290
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x1c
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test byte [0x1001fdf0], 8
jne 0x1001c330
test edi, edi
sete dl
test ebx, ebx
sete al
or dl, al
jne 0x1001c383
test esi, esi
je 0x1001c383
lea eax, [esi + 0xf]
sub eax, ebx
cmp eax, 0x1e
jbe 0x1001c365
lea eax, [edi + 0xf]
sub eax, ebx
cmp eax, 0x1e
jbe 0x1001c365
xor eax, eax
lea esi, [esi]
movdqu xmm0, xmmword [esi + eax]
movdqu xmm1, xmmword [edi + eax]
pxor xmm0, xmm1
movups xmmword [ebx + eax], xmm0
add eax, 0x10
cmp eax, 0x40
jne 0x1001c2f0
mov eax, 0x10
nop
mov edx, dword [esi + eax*4]
xor edx, dword [edi + eax*4]
mov dword [ebx + eax*4], edx
add eax, 1
cmp eax, 0x13
jne 0x1001c310
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.mask_x__p__mask_y__p__result__p._n
mov dword [esp + 8], str.D3D10StateBlockMaskDifference
mov dword [esp + 4], 0x1001fdf0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x1001c2b2
xor eax, eax
mov esi, esi
lea edi, [edi]
mov edx, dword [esi + eax*4]
xor edx, dword [edi + eax*4]
mov dword [ebx + eax*4], edx
add eax, 1
cmp eax, 0x13
jne 0x1001c370
jmp 0x1001c321
mov eax, 0x80070057
jmp 0x1001c323

Function at 0x1001df20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x1001df78
cmp byte [esi + ebx - 1], 0xa
je 0x1001df4c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x100332a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret