joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e40e8
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 0x4e4116
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4e4134
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004e404e
jmp 0x4e4134
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4e4134
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004e404e
test edi, edi
mov eax, edi
jne 0x4e411e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x30003459
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x3000d0a8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x105
push dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x210]
push eax
xor ebx, ebx
mov dword [esi], 9
call fcn.3000a9a3
lea eax, [ebp - 0x210]
push eax
call fcn.30002dd2
mov edi, eax
add esp, 0x10
cmp edi, ebx
je 0x300034bd
push ebx
push edi
call fcn.30009f04
pop ecx
pop ecx
push edi
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x300034bd
test al, 0x10
jne 0x300034bd
inc ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
pop ebx
call fcn.3000b5e5
leave
ret

Function at 0x300034cc
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x3000d0a8]
push esi
push edi
xor esi, esi
push esi
mov dword [ebp + 0x190], eax
push 0x20
lea eax, [ebp - 0x7c]
push eax
push esi
xor edi, edi
mov dword [ebp - 0x80], esi
mov word [ebp - 0x7c], si
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x3000356d
cmp word [ebp - 0x7c], si
je 0x3000356d
lea eax, [ebp - 0x7c]
push eax
call fcn.3000a3e6
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [ebp + 0x19c]
call fcn.3000a989
add esp, 0x10
test eax, eax
je 0x3000356d
push esi
push 0x10
lea eax, [ebp - 0x80]
push 0x300026e7
push eax
call fcn.3000ab23
push dword [ebp - 0x80]
push dword [ebp + 0x19c]
call fcn.3000289f
mov edi, eax
add esp, 0x18
cmp edi, esi
jne 0x30003560
push dword [ebp + 0x19c]
call fcn.30002a74
pop ecx
mov edi, eax
cmp dword [ebp - 0x80], esi
je 0x3000356d
push dword [ebp - 0x80]
call sub.USER32.dll_DdeUninitialize
mov ecx, dword [ebp + 0x190]
mov eax, edi
pop edi
pop esi
call fcn.3000b5e5
add ebp, 0x194
leave
ret
Function at 0x30009190
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x28], 0
jne 0x300091b8
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
test eax, eax
setg cl
jmp 0x300091d1
push dword [ebp + 0x14]
mov eax, dword [eax + 0x28]
push dword [ebp + 0x10]
mov ecx, dword [eax]
push dword [ebp + 0xc]
push eax
call dword [ecx + 0xc]
xor ecx, ecx
test eax, eax
setge cl
mov eax, ecx
test eax, eax
jne 0x300091dc
mov ecx, dword [ebp + 0x14]
and dword [ecx], eax
pop ebp
ret

Function at 0x3000931b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x3000d0a8]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x4c], ebx
lea edi, [ebp - 0x48]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
push 1
push ebx
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x14], 0xc558834c
mov word [ebp - 0x10], 0x7f86
mov word [ebp - 0xe], 0x11d0
mov byte [ebp - 0xc], 0x82
mov byte [ebp - 0xb], 0x52
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], 0xc0
mov byte [ebp - 8], 0x4f
mov byte [ebp - 7], 0xd8
mov byte [ebp - 6], 0x5a
mov byte [ebp - 5], 0xb4
mov dword [ebp - 0x24], 0xfd853ce3
mov word [ebp - 0x20], 0x7f86
mov word [ebp - 0x1e], 0x11d0
mov byte [ebp - 0x1c], 0x82
mov byte [ebp - 0x1b], 0x52
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x19], 0xc0
mov byte [ebp - 0x18], 0x4f
mov byte [ebp - 0x17], 0xd8
mov byte [ebp - 0x16], 0x5a
mov byte [ebp - 0x15], 0xb4
mov dword [ebp - 0x34], 0xfd853cd5
mov word [ebp - 0x30], 0x7f86
mov word [ebp - 0x2e], 0x11d0
mov byte [ebp - 0x2c], 0x82
mov byte [ebp - 0x2b], 0x52
mov byte [ebp - 0x2a], bl
mov byte [ebp - 0x29], 0xc0
mov byte [ebp - 0x28], 0x4f
mov byte [ebp - 0x27], 0xd8
mov byte [ebp - 0x26], 0x5a
mov byte [ebp - 0x25], 0xb4
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x30009464
mov eax, dword [ebp - 0x38]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, eax
cmp esi, ebx
jl 0x30009464
cmp esi, 0xcce3a
je 0x30009464
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x40]
push edx
lea edx, [ebp - 0x4c]
push edx
mov dword [ebp - 0x4c], 0x3000225c
mov dword [ebp - 0x48], 0x30002254
mov ecx, dword [eax]
push eax
call dword [ecx + 0x5c]
mov esi, eax
cmp esi, ebx
jl 0x30009464
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
lea edx, [ebp - 0x3c]
push edx
lea edx, [ebp - 0x14]
push edx
push dword [ebp - 0x40]
push eax
call dword [ecx + 0x40]
mov esi, eax
cmp esi, ebx
jl 0x30009464
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
push 0xa
push eax
call dword [ecx + 0x90]
mov esi, eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x38]
cmp eax, ebx
je 0x30009471
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.3000b5e5
leave
ret
Function at 0x3000ac58
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop ebp
ret

Function at 0x3000ac94
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x3c
pop esi
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.3000a766
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
xor eax, eax
cmp dword [ebp + 0x14], eax
pop ecx
sete al
pop ecx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x18]
or al, 0x40
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
test esi, esi
je 0x3000acf1
cmp dword [ebp - 4], 0
je 0x3000acf1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret

Function at 0x3000ad01
Capabilities:
Query environment variable

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
ret
Function at 0x3000b5e5
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x3000d0a8]
push edi
mov dword [ebp + 0x2a4], eax
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x80], 0xc0000409
lea eax, [ebp + 0x2ac]
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp - 0x28], 0x10001
mov eax, dword [eax]
mov dword [ebp + 0x90], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp + 0x9c], eax
push ss
pop dword [ebp + 0xa0]
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.3000b5e5
pop edi
add ebp, 0x2a8
leave
ret
cmp ecx, dword [0x3000d0a8]
jne 0x3000b4d0
ret
Function at 0x3000b67b
Capabilities:
Parse pe header

Disassembly:
push 0x74
push 0x30002658
call fcn.3000b62f
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x3000b6bb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x3000b6bb
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x3000b6d3
cmp eax, 0x20b
je 0x3000b6c0
mov dword [ebp - 0x1c], ebx
jmp 0x3000b6e7
cmp dword [ecx + 0x84], 0xe
jbe 0x3000b6bb
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x3000b6e1
cmp dword [ecx + 0x74], 0xe
jbe 0x3000b6bb
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x3000d748], 0xffffffff
or dword [0x3000d74c], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x3000d740]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x3000d73c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x3000d744], eax
call fcn.3000b896
call fcn.3000b94b
cmp dword [0x3000d0ac], ebx
jne 0x3000b747
push 0x3000b948
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.3000b936
push 0x3000d010
push 0x3000d00c
call sub.MSVCRT.dll__initterm
push 0x3000b8da
call fcn.3000b884
mov eax, dword [0x3000d738]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x3000d734]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x3000b79b
push 8
call sub.MSVCRT.dll__amsg_exit
pop ecx
push 0x3000d008
push section..data
call sub.MSVCRT.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCRT.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x3000b800
cmp al, bl
je 0x3000b7c5
cmp dword [ebp - 0x20], ebx
jne 0x3000b800
mov al, byte [esi]
cmp al, bl
je 0x3000b7d5
cmp al, 0x20
ja 0x3000b7d5
inc esi
mov dword [ebp - 0x24], esi
jmp 0x3000b7c5
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x3000b7f1
movzx eax, word [ebp - 0x54]
jmp 0x3000b7f4
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.3000b1af
cmp al, 0x22
jne 0x3000b80f
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCRT.dll__ismbblead]
pop ecx
test eax, eax
je 0x3000b822
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x3000b7b3
Function at 0x407de0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f0b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd4
push ebx
push esi
push edi
mov esi, ecx
mov ecx, 0x31
xor eax, eax
lea edi, [ebp - 0xdf]
mov byte [ebp - 0xe0], 0
rep stosd dword es:[edi], eax
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x10], esp
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 0x188]
push 2
push 0xffffffffffffffff
push 0x100c
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0
call ebx
inc eax
jne 0x407e68
push 0x30
push 0x41344c
push 0x413424
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0xb90]
test ecx, ecx
jne 0x407e80
push 0x10
push 0x413078
push 0x413414
jmp 0x407e50
mov edi, dword [ebp - 0x14]
mov ecx, dword [esi + 0x188]
inc edi
push 2
mov dword [ebp - 0x14], edi
lea edi, [eax - 1]
push edi
push 0x100c
push ecx
call ebx
inc eax
jne 0x407e80
mov eax, dword [ebp - 0x14]
cmp eax, 1
jne 0x407f3e
lea edx, [ebp - 0xe0]
push 0xc8
push edx
push 3
push edi
lea ecx, [esi + 0x168]
mov dword [ebp - 4], 0
call sub.MFC42.DLL_CListCtrl::GetItemText
lea eax, [ebp - 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x407f13
lea ecx, [ebp - 0xe0]
push ecx
push 0x4133fc
push esi
call fcn.00408060
mov edx, dword [esi + 0x188]
add esp, 0xc
push 0
push edi
push 0x1008
push edx
call ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10
push 0x41344c
push 0x4133c4
jmp 0x407e50
push eax
lea eax, [ebp - 0xe0]
push str.
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0xe0]
push 0x24
push 0x4130a8
push ecx
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
cmp eax, 6
jne 0x407e57
mov edx, dword [esi + 0x188]
push 2
push 0xffffffffffffffff
push 0x100c
push edx
mov dword [ebp - 4], 2
call ebx
mov edi, eax
inc edi
test edi, edi
je 0x407fef
mov eax, dword [esi + 0x188]
lea ebx, [edi - 1]
push 2
push ebx
push 0x100c
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0xe0]
push 0xc8
push ecx
inc eax
push 3
push ebx
lea ecx, [esi + 0x168]
mov edi, eax
call sub.MFC42.DLL_CListCtrl::GetItemText
lea edx, [ebp - 0xe0]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x407f8e
lea eax, [ebp - 0xe0]
push eax
push 0x4133fc
push esi
call fcn.00408060
add esp, 0xc
jmp 0x407f8e
mov ecx, esi
call fcn.00407620
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408060
Capabilities:
Check if file exists
Create directory
Get file attributes
Write file on windows

Disassembly:
sub esp, 0x408
lea eax, [esp + 0x14]
push esi
push edi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4080a0
mov al, 0x5c
mov dl, byte [esp + ecx + 0x1b]
dec ecx
cmp dl, al
je 0x40809b
test ecx, ecx
ja 0x40808c
jmp 0x4080a0
mov byte [esp + ecx + 0x1c], 0
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x214]
push str._sSysLogs
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4080d4
test al, 0x10
jne 0x4080e4
lea ecx, [esp + 0x210]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esp + 0x12]
mov ecx, dword [esp + 0xe]
mov edx, dword [esp + 0xc]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
lea eax, [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x220]
push str._sSysLogs_.4d_.2d_.2d.log
push ecx
call edi
add esp, 0x18
lea edx, [esp + 0x210]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4081e7
mov ecx, dword [esp + 0x418]
lea eax, [esp + 0x41c]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov dword [esp + 0x14], 0
call dword [sym.imp.MSVCRT.dll_vsprintf]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x22]
lea eax, [esp + 0x28]
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x24]
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
lea ecx, [esp + 0x22c]
push str._.2d:_.2d:_.2d__s_r_n
push ecx
call edi
add esp, 0x24
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edi, [esp + 0x210]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 8]
repne scasb al, byte es:[edi]
not ecx
push 0
dec ecx
push edx
lea eax, [esp + 0x218]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
add esp, 0x408
ret
Function at 0x40a100
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40f118
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
mov eax, dword [esi + 0xb94]
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
cmp dword [esi + edx*8 + 0xdac], 0xffffffff
je 0x40a1eb
lea ecx, [esp + 4]
call fcn.0040e2a2
mov eax, dword [esi + 0xb94]
mov dword [esp + 0x20], 0
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
lea ecx, [esp + 4]
mov eax, dword [esi + edx*8 + 0xde4]
push eax
push 0x413130
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 8
mov ecx, esp
mov dword [esp + 0xc], esp
push 0x413a9c
call sub.MFC42.DLL_CString::CString_1
push ecx
lea edx, [esp + 0xc]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [esp + 0x2c], 2
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x413a9c
call sub.MFC42.DLL_CString::CString_1
push ecx
mov byte [esp + 0x30], 3
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x413a9c
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
mov byte [esp + 0x30], 0
call fcn.004070b0
lea ecx, [esp + 4]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop esi
add esp, 0x20
ret
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4130fc
call sub.MFC42.DLL_CString::CString_1
push ecx
mov dword [esp + 0x28], 4
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4130e4
call sub.MFC42.DLL_CString::CString_1
push ecx
mov byte [esp + 0x2c], 5
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4130cc
call sub.MFC42.DLL_CString::CString_1
push ecx
mov byte [esp + 0x30], 6
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x413a9c
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
mov dword [esp + 0x30], 0xffffffff
call fcn.004070b0
mov ecx, dword [esp + 0x18]
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x10011a0
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a4
push esi
push edi
xor eax, eax
push 0x40
pop ecx
mov byte [ebp - 0x108], 0
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
mov byte [ebp - 0x2a0], 0
lea edi, [ebp - 0x29f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
mov byte [ebp - 0x3a4], 0
pop ecx
lea edi, [ebp - 0x3a3]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x19c]
push eax
mov dword [ebp - 4], 2
mov dword [ebp - 0x19c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push 0x10010c4
push 0x10010bc
mov edi, 0x10010b0
push edi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x3a4]
push 0x10010a4
push eax
call esi
add esp, 0x18
cmp dword [ebp - 0x198], 6
lea eax, [ebp - 0x108]
jb 0x1001264
push 0x1001098
jmp 0x1001269
push 0x100108c
push edi
push eax
lea eax, [ebp - 0x2a0]
push 0x1001080
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x2a0]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x10012b1
push 0x100106c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp + 8]
lea ecx, [ebp - 0x3a4]
push ecx
call eax
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 4
Function at 0x1001391
Capabilities:
Accept command line arguments
Delete registry value
Set registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x39c
push ebx
push edi
xor eax, eax
push 0x40
pop ecx
xor ebx, ebx
mov byte [ebp - 0x39c], bl
lea edi, [ebp - 0x39b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
mov byte [ebp - 0x194], bl
lea edi, [ebp - 0x193]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
mov byte [ebp - 0x298], bl
xor eax, eax
pop ecx
lea edi, [ebp - 0x297]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea edx, [ebp - 0x39c]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
cmp cl, bl
jne 0x10013ec
push ebx
lea eax, [ebp - 0x194]
push eax
push 0x20
lea eax, [ebp - 0x39c]
push eax
call fcn.010012ba
lea eax, [ebp - 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, ebx
jne 0x1001425
pop edi
xor eax, eax
pop ebx
leave
ret 0x10
cmp byte [ebp - 0x194], 0x20
push esi
lea edi, [ebp - 0x298]
jne 0x1001440
lea ecx, [eax - 3]
lea esi, [ebp - 0x192]
jmp 0x1001449
lea ecx, [eax - 2]
lea esi, [ebp - 0x193]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x1f
xor eax, eax
mov byte [ebp - 0x90], bl
pop ecx
lea edi, [ebp - 0x8f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x90]
push 0x1001120
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
pop ecx
lea eax, [ebp - 8]
push eax
mov edi, 0x20006
push edi
push ebx
lea eax, [ebp - 0x90]
push eax
mov esi, 0x80000002
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10014ba
push 0x100110c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x298]
push eax
call fcn.010011a0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
push ebx
push ebx
push ebx
lea eax, [ebp - 0x90]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
pop esi
jne 0x100151f
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push ebx
push 0x100110c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1001516
push ebx
push 0x1001104
push 0x10010d0
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]