joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404700
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ecx
push esi
push edi
mov edi, eax
mov esi, ebx
mov dword [0x412424], eax
mov dword [0x410658], edx
call fcn.00405020
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsA]
mov dword [0x4106de], eax
xor eax, eax
mov dword [0x412b4c], eax
call dword [sym.imp.KERNEL32.DLL_GetVersion]
mov edx, eax
mov byte [0x4106e4], al
shr eax, 0x10
push 0x104
mov word [0x4106e6], ax
xor eax, eax
mov ebx, 0x208
mov ax, word [0x4106e6]
and edx, 0xffff
mov dword [0x4106e8], eax
xor eax, eax
sar edx, 8
mov al, byte [0x4106e4]
and edx, 0xff
mov dword [0x4106ec], eax
xor eax, eax
mov byte [0x4106e5], dl
mov al, dl
mov edx, dword [0x4106ec]
push 0x412428
shl edx, 8
push 0
or edx, eax
mov dword [0x4106f0], eax
mov dword [0x4106f4], edx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov edx, 0x41252c
xor eax, eax
mov dword [0x4106ac], 0x412428
call fcn.00405150
mov dword [0x4106b8], 0x41252c
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
call fcn.004051f0
mov edx, eax
mov bl, byte [eax]
mov dword [0x412420], eax
cmp bl, 0x22
je 0x4047f4
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x405231], 2
je 0x40480c
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x405231], 2
je 0x404813
inc eax
jmp 0x4047e4
inc eax
cmp bl, byte [eax]
je 0x404804
cmp byte [eax], 0
je 0x404804
inc eax
cmp byte [eax], 0x22
jne 0x4047f9
cmp byte [eax], 0
je 0x4047e4
inc eax
jmp 0x4047e4
test dl, dl
je 0x4047e4
inc eax
jmp 0x4047d7
mov dword [0x4106a8], eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
test eax, eax
je 0x404887
call fcn.00405331
mov edx, eax
mov bx, word [eax]
mov dword [0x41241c], eax
cmp bx, 0x22
je 0x40485a
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x405231], 2
je 0x40487c
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x405231], 2
je 0x40488c
add eax, 2
jmp 0x404848
add eax, 2
cmp bx, word [eax]
je 0x404871
cmp word [eax], 0
je 0x404871
add eax, 2
cmp word [eax], 0x22
jne 0x404862
cmp word [eax], 0
je 0x404848
add eax, 2
jmp 0x404848
cmp word [eax], 0
je 0x404848
add eax, 2
jmp 0x40483b
mov eax, 0x4046c0
mov dword [0x4106b4], eax
test edi, edi
jne 0x40489e
mov eax, 1
pop edi
pop esi
pop ecx
ret
push 0x104
push 0x412734
push esi
mov ebx, 0x208
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov edx, 0x412838
mov eax, esi
mov dword [0x4106b0], 0x412734
call fcn.00405150
mov dword [0x4106bc], 0x412838
mov eax, 1
pop edi
pop esi
pop ecx
ret

Function at 0x4061e0
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ecx
push esi
push edi
sub esp, 8
mov esi, eax
mov edi, edx
xor edx, edx
mov ecx, eax
inc eax
cmp byte [ecx], 0
je 0x4061f7
inc edx
jmp 0x4061ec
push 0
lea eax, [esp + 4]
push eax
push edx
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push 0
lea eax, [esp + 4]
push eax
push 2
lea eax, [esp + 0x10]
push eax
push 0xfffffffffffffff4
mov word [esp + 0x18], 0xa0d
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, edi
jmp 0x4049a0
Function at 0x407050
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push edx
sub esp, 4
mov dword [esp], eax
mov eax, dword [0x410834]
test eax, eax
je 0x40706c
cmp dword [0x4106a4], 0xfffffffe
jne 0x407072
xor eax, eax
add esp, 4
pop edx
pop ecx
ret
mov eax, esp
call fcn.00407000
test eax, eax
je 0x40706c
push 0x40
push 0x1000
mov ecx, dword [esp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov edx, eax
test eax, eax
je 0x40706c
mov eax, dword [esp]
sub eax, 4
cmp eax, dword [esp]
ja 0x40706a
mov dword [esp], eax
cmp eax, 0x38
jb 0x40706a
mov dword [edx], eax
mov eax, edx
call fcn.00406f80
mov ecx, eax
mov eax, dword [eax]
mov dword [esp], eax
or al, 1
mov dword [ecx], eax
mov dword [edx + 0x14], 0
lea eax, [ecx + 4]
inc dword [edx + 0x18]
call fcn.00405360
mov eax, 1
add esp, 4
pop edx
pop ecx
ret

Function at 0x4079d0
Capabilities:
Set environment variable

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
push ebp
sub esp, 0x14
mov ebp, eax
mov dword [esp], 2
mov edx, 0x3d
mov dword [esp + 4], 1
call fcn.00407ec0
mov ebx, eax
test eax, eax
je 0x4079fe
cmp eax, ebp
jne 0x407a0d
mov eax, 0xffffffff
add esp, 0x14
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
sub eax, ebp
mov dword [esp + 0xc], eax
inc eax
call fcn.00406390
mov edx, eax
mov dword [esp + 8], eax
test eax, eax
je 0x4079fe
mov ecx, dword [esp + 0xc]
mov esi, ebp
mov edi, eax
push edi
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov cl, al
and cl, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, dword [esp + 0xc]
lea esi, [ebx + 1]
mov byte [edx + eax], 0
mov eax, esi
call fcn.00407f20
mov ebx, eax
test eax, eax
je 0x407ad3
inc eax
call fcn.00406390
mov dword [esp + 0x10], eax
test eax, eax
je 0x407abd
mov ecx, ebx
mov edi, eax
push edi
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov cl, al
and cl, 3
rep movsb byte es:[edi], byte [esi]
pop edi
add ebx, edi
mov byte [ebx], 0
mov edx, dword [esp + 0x10]
push edx
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
mov edx, eax
mov eax, dword [esp + 8]
call fcn.00405360
mov eax, dword [esp + 0x10]
call fcn.00405360
test edx, edx
jne 0x407ad9
cmp dword [esp + 0x10], 0
jne 0x4079fe
xor eax, eax
add esp, 0x14
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
mov eax, edx
call fcn.00405360
mov eax, 0xffffffff
add esp, 0x14
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
mov dword [esp + 0x10], eax
jmp 0x407a7e
mov eax, ebp
call fcn.00407c60
test eax, eax
jne 0x4079fe
cmp dword [0x412b50], 0
je 0x407a03
mov eax, ebp
call fcn.00407f20
lea ebx, [eax + 1]
mov eax, dword [esp]
imul eax, ebx
call fcn.00406390
mov ecx, eax
test eax, eax
je 0x407b41
imul ebx, dword [esp + 4]
mov edx, ebp
call fcn.00407f50
cmp eax, 0xffffffff
jne 0x407b5a
mov eax, ecx
call fcn.00405360
mov eax, 0xe
call fcn.0040648a
mov eax, 0xffffffff
add esp, 0x14
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
mov eax, 5
call fcn.0040648a
mov eax, 0xffffffff
add esp, 0x14
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
mov eax, ecx
call fcn.004081f0
add esp, 0x14
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46e008]
jne 0x40100a
repz ret
jmp fcn.00401bf2

Function at 0x4068d0
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.004037b4
and dword [ebp - 4], 0
cmp dword [0x470240], 0
mov ebx, eax
jne 0x406981
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406a32
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406a32
push eax
call fcn.00403742
mov dword [esp], 0x46c2dc
push edi
mov dword [0x470240], eax
call esi
push eax
call fcn.00403742
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x470244], eax
call esi
push eax
call fcn.00403742
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x470248], eax
call esi
push eax
call fcn.00403742
pop ecx
mov dword [0x470250], eax
test eax, eax
je 0x406981
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403742
pop ecx
mov dword [0x47024c], eax
mov eax, dword [0x47024c]
cmp eax, ebx
je 0x4069d9
cmp dword [0x470250], ebx
je 0x4069d9
push eax
call fcn.004037bd
push dword [0x470250]
mov esi, eax
call fcn.004037bd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4069d9
test edi, edi
je 0x4069d9
call esi
test eax, eax
je 0x4069d0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4069d0
test byte [ebp - 0xc], 1
jne 0x4069d9
or dword [ebp + 0x10], 0x200000
jmp 0x406a12
mov eax, dword [0x470244]
cmp eax, ebx
je 0x406a12
push eax
call fcn.004037bd
pop ecx
test eax, eax
je 0x406a12
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406a12
mov eax, dword [0x470248]
cmp eax, ebx
je 0x406a12
push eax
call fcn.004037bd
pop ecx
test eax, eax
je 0x406a12
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x470240]
call fcn.004037bd
pop ecx
test eax, eax
je 0x406a32
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406a34
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46a4e0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc2c
mov eax, dword [0x46e008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc0c], eax
cmp ebx, 0x182
jne 0x46a515
lea ecx, [ebp - 0xc2c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
jmp 0x46a525
cmp ebx, 0x19f
jne 0x46a525
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push edi
xor edi, edi
test ebx, ebx
jle 0x46a59f
push esi
lea ecx, [ecx]
lea esi, [ebp - 0xc08]
mov dword [ebp - 0xc08], 0
call fcn.0046a4d0
mov dl, byte [ebp - 0xc08]
mov eax, dword [ebp - 0xc0c]
xor byte [eax + edi], dl
cmp ebx, 0xf
jne 0x46a599
lea eax, [ebp - 0xc10]
push eax
lea ecx, [ebp - 0xc04]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push str.menobetogemarez
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
push 0
lea edx, [ebp - 0x804]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SleepEx]
inc edi
cmp edi, ebx
jl 0x46a530
pop esi
pop edi
cmp ebx, 0x2d
jne 0x46a5b9
mov dword [0x565f18], 0xa62e7790
mov dword [0x565f1c], 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret

Function at 0x46a5d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x46e008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x565de4]
push ebx
push esi
mov esi, dword [0x565c2c]
mov ebx, eax
cmp eax, 0x5dd
jne 0x46a60d
push 0
lea eax, [ebp - 0x404]
push eax
push str.gepavexovaxajay_yatejusiwovogoyo
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov eax, dword [0x46eff0]
call fcn.0046a4a0
cmp dword [0x565de4], 0x2f
jne 0x46a628
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push esi
call fcn.0046a4e0
add esp, 4
cmp dword [0x565de4], 0x568
pop esi
pop ebx
jne 0x46a65a
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov ecx, dword [ebp - 0x408]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetNumaProcessorNode]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret
Function at 0x1001b7c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x1006058]
push esi
xor esi, esi
cmp dword [0x1006db0], 2
mov dword [ebp - 4], eax
mov dword [ebp - 0x408], esi
jne 0x1001cce
push ebx
lea eax, [ebp - 0x40c]
push eax
xor ebx, ebx
inc ebx
push ebx
push esi
push 0x1001248
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001ccd
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x418]
push eax
push esi
push 0x1001230
push dword [ebp - 0x40c]
mov dword [ebp - 0x410], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001cc1
cmp dword [ebp - 0x418], ebx
jne 0x1001cc1
mov esi, dword [sym.imp.KERNEL32.dll_CompareStringW]
push edi
or edi, 0xffffffff
push edi
push 0x100121c
push edi
lea eax, [ebp - 0x404]
push eax
push ebx
push 0x7f
call esi
push 2
pop ecx
cmp eax, ecx
jne 0x1001c3e
mov dword [ebp - 0x408], ecx
jmp 0x1001cc0
push edi
push 0x1001208
push edi
lea eax, [ebp - 0x404]
push eax
push ebx
push 0x7f
call esi
cmp eax, 2
jne 0x1001cc0
push 0x10011f4
mov dword [ebp - 0x408], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x1001cc0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10011e0
push edi
call esi
mov ebx, eax
test ebx, ebx
je 0x1001cb9
push 0x10011cc
push edi
call esi
mov esi, eax
test esi, esi
je 0x1001cb9
lea eax, [ebp - 0x414]
push eax
push 0x65
push 0
call ebx
test eax, eax
jne 0x1001cb9
mov eax, dword [ebp - 0x414]
test byte [eax + 0x10], 0x10
je 0x1001cb6
mov dword [ebp - 0x408], 3
push eax
call esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x408]
pop esi
call fcn.01002b02
leave
ret

Function at 0x1001f24
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
cmp dword [0x10064ec], esi
jne 0x1001f8c
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1001f83
lea eax, [ebp - 0x10]
push eax
push 0x10012dc
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop esi
leave
ret
Function at 0x1001f94
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
xor edi, edi
mov dword [ebp - 4], edi
call sub.FBALIB.DLL_FBAPreInitialize
push 2
lea eax, [ebp - 4]
push eax
push 0x1001458
mov ebx, 0x80000002
push ebx
call sub.FBALIB.DLL_FBABuildDLLOrderList
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x1002096
cmp dword [ebp - 4], edi
je 0x1002096
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push edi
lea eax, [ebp - 0xc]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push 0x10013c0
push ebx
call esi
test eax, eax
jne 0x100208d
push edi
lea eax, [ebp - 8]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push 0x1001310
push ebx
call esi
test eax, eax
jne 0x1002084
mov esi, dword [ebp - 0x10]
cmp dword [esi + 0x18], edi
je 0x1002074
push esi
push 0x1001458
push ebx
call sub.FBALIB.DLL_FBADeleteDLLNodeKey
cmp dword [esi + 0x1c], edi
je 0x100205e
mov eax, dword [esi + 0x20]
cmp eax, edi
je 0x100203e
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
jmp 0x1002041
push 2
pop ecx
mov eax, dword [esi + 0x20]
cmp eax, edi
jne 0x100204d
mov eax, 0x100130c
push ecx
push eax
push 1
push edi
push dword [esi + 0x1c]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 6
push 0x1001304
push 1
push edi
push dword [esi + 0x18]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, dword [esi + 0x54]
cmp esi, edi
jne 0x1002014
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
call sub.FBALIB.DLL_FBADestroyDLLOrderList
pop esi
pop edi
pop ebx
leave
ret
Function at 0x1003165
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x1006058]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1006070]
je 0x100318f
inc eax
cmp eax, 0x12
jb 0x1003180
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1006070]
mov dword [ebp - 0x110], esi
jne 0x100333a
mov eax, dword [0x10061ec]
cmp eax, 1
je 0x1003308
test eax, eax
jne 0x10031c5
cmp dword [0x1006060], 1
je 0x1003308
cmp ecx, 0xfc
je 0x100333a
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1003200
push 5
pop ecx
mov esi, 0x10018c4
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebx, [ebp - 0x10c]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100320b
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x1003243
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003223
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x10018c0
push ebx
call fcn.01003f30
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003248
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 0x1006074]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1003262
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.01002e20
mov edx, esp
push 6
pop ecx
mov esi, 0x10018a4
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100328e
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100329a
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10032b3
mov eax, dword [ebp - 0x110]
mov esi, 0x10018a0
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x1006074]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10032d1
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10032dd
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1001878
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.01003e22
add esp, 0xc
jmp 0x100333a
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x100333a
mov esi, dword [esi + 0x1006074]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x100331f
push 0
sub ecx, edx
lea edx, [ebp - 0x114]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x120]
mov ecx, dword [ebp - 4]
call fcn.01002b02
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1003e22
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x100645c], ebx
push esi
push edi
jne 0x1003ea4
push 0x1001940
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1003edf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001934
push edi
call esi
test eax, eax
mov dword [0x100645c], eax
je 0x1003edf
push 0x1001924
push edi
call esi
push 0x1001910
push edi
mov dword [0x1006460], eax
call esi
cmp dword [0x10061fc], 2
mov dword [0x1006464], eax
jne 0x1003ea4
push 0x10018f4
push edi
call esi
test eax, eax
mov dword [0x100646c], eax
je 0x1003ea4
push 0x10018dc
push edi
call esi
mov dword [0x1006468], eax
mov eax, dword [0x1006468]
test eax, eax
je 0x1003ee9
call eax
test eax, eax
je 0x1003ed0
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x100646c]
test eax, eax
je 0x1003ed0
test byte [ebp - 8], 1
jne 0x1003ee9
cmp dword [0x1006208], 4
jb 0x1003ee3
or byte [ebp + 0x12], 0x20
jmp 0x1003f08
xor eax, eax
jmp 0x1003f18
or byte [ebp + 0x12], 4
jmp 0x1003f08
mov eax, dword [0x1006460]
test eax, eax
je 0x1003f08
call eax
mov ebx, eax
test ebx, ebx
je 0x1003f08
mov eax, dword [0x1006464]
test eax, eax
je 0x1003f08
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x100645c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1004ac6
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x1004af7
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x1004afe
cmp ebx, dword [ebp + 8]
jae 0x1004afe
xor eax, eax
jmp 0x1004cee
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x1004b0f
xor eax, eax
inc eax
jmp 0x1004ced
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x1004b25
cmp ecx, edx
jae 0x1004c6a
cmp dword [eax + 4], 0
je 0x1004b2e
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x1004b16
cmp dword [ebp + 8], 0
je 0x1004b50
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x1004c6a
cmp eax, esi
jae 0x1004c6a
mov eax, dword [0x1006470]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x1004b75
cmp dword [esi*4 + 0x1006478], edi
je 0x1004c6e
inc esi
cmp esi, eax
jl 0x1004b63
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1004cea
cmp dword [ebp - 8], 0x1000000
jne 0x1004cea
test byte [ebp - 0xc], 0xcc
je 0x1004bf3
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x1004cea
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1004cea
cmp word [eax + 0x18], 0x10b
jne 0x1004cea
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x1004cea
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x1004bf3
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x1004bf3
test byte [ecx + 0x27], 0x80
jne 0x1004c6a
push 1
push 0x10064b8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x1004b07
mov ecx, dword [0x1006470]
test ecx, ecx
mov edx, ecx
jle 0x1004c27
lea eax, [ecx*4 + 0x1006474]
cmp dword [eax], edi
je 0x1004c27
dec edx
sub eax, 4
test edx, edx
jg 0x1004c1b
test edx, edx
jne 0x1004c58
push 0xf
pop ebx
cmp ecx, ebx
jg 0x1004c34
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x1004c4c
lea eax, [edx*4 + 0x1006478]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x1004c3a
cmp ecx, 0x10
jge 0x1004c58
inc ecx
mov dword [0x1006470], ecx
push 0
push 0x10064b8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x1004b07
xor eax, eax
jmp 0x1004ced
test esi, esi
jle 0x1004b07
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x10064b8
call ebx
test eax, eax
jne 0x1004b07
cmp dword [esi*4 + 0x1006478], edi
je 0x1004cc4
mov eax, dword [0x1006470]
lea esi, [eax - 1]
test esi, esi
jl 0x1004cb2
cmp dword [esi*4 + 0x1006478], edi
je 0x1004cae
dec esi
jns 0x1004ca2
test esi, esi
jge 0x1004cc2
cmp eax, 0x10
jge 0x1004cbd
inc eax
mov dword [0x1006470], eax
lea esi, [eax - 1]
jmp 0x1004cc4
je 0x1004cdc
xor ecx, ecx
test esi, esi
jl 0x1004cdc
lea eax, [ecx*4 + 0x1006478]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x1004cca
push 0
push 0x10064b8
call ebx
jmp 0x1004b07
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4016f0
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20004
call fcn.00410130
mov eax, dword [0x41a014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push str._sldIM.exe
xor eax, eax
push esi
mov word [ebp - 0x10004], ax
lea eax, [ebp - 0x10004]
push str._s_s
push eax
call fcn.00401a40
xor eax, eax
add esp, 0x10
mov word [ebp - 0x20004], ax
lea eax, [ebp - 0x10004]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
lea eax, [ebp - 0x10004]
jne 0x401792
push eax
push dword [0x41b290]
mov esi, dword [0x41b28c]
lea eax, [ebp - 0x20004]
push eax
call fcn.00401a40
add esp, 0xc
lea eax, [ebp - 0x20004]
push 0x10
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401ca4
mov esp, ebp
pop ebp
ret
push 0
push esi
push edi
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x4017b8
lea eax, [ebp - 0x10004]
push eax
push dword [0x41b294]
jmp 0x401759
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00401ca4
mov esp, ebp
pop ebp
ret