joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411842
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
xor esi, esi
push edi
lea eax, [ebp - 0x44]
mov dword [ebp - 8], esi
call fcn.0040ae26
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x5b0]
call fcn.0040da05
mov edi, eax
dec edi
js 0x411968
push edi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x5b0]
call fcn.0040e22c
test eax, eax
je 0x4118a7
mov ebx, dword [ebp - 8]
add ebx, 0xc
cmp byte [ebx], 0
je 0x4118a7
push ebx
call sub.msvcrt.dll_strlen
pop ecx
push 0xffffffffffffffff
lea esi, [esi + eax + 1]
push ebx
lea eax, [ebp - 0x44]
call fcn.0040ae6e
dec edi
jns 0x41186f
test esi, esi
jle 0x411968
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x14
stosd dword es:[edi], eax
pop ebx
add esi, 0x15
push esi
stosd dword es:[edi], eax
and dword [ebp - 0x14], 0
push 0x2042
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov edi, eax
push ebx
lea eax, [ebp - 0x24]
push eax
push edi
call sub.msvcrt.dll_memcpy
xor ebx, ebx
add esp, 0xc
xor esi, esi
cmp dword [ebp - 0x28], ebx
jle 0x41192a
mov eax, ebx
lea ecx, [ebp - 0x44]
call fcn.0040af11
push eax
mov dword [ebp - 0xc], eax
call sub.msvcrt.dll_strlen
push dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
lea eax, [esi + edi + 0x14]
push eax
call sub.msvcrt.dll_strcpy
mov eax, dword [ebp - 0x10]
add esp, 0xc
inc ebx
cmp ebx, dword [ebp - 0x28]
lea esi, [esi + eax + 1]
jl 0x4118f7
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov eax, dword [ebp + 8]
push dword [eax + 0x108]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x41195f
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [ebp - 8]
push 0xf
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x411968
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
lea esi, [ebp - 0x44]
call fcn.0040ae48
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x411a3c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
push ebx
mov ebx, eax
cmp dword [ebx + 0x184], 0
jne 0x411b4b
push esi
push edi
mov edi, 0x104
push edi
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x108]
push eax
call fcn.00409f2f
lea eax, [ebp - 0x108]
push 0x2e
push eax
call sub.msvcrt.dll__mbsrchr
add esp, 0x18
test eax, eax
je 0x411a96
mov byte [eax], 0
lea eax, [ebp - 0x108]
push 0x4204f0
push eax
call sub.msvcrt.dll_strcat
mov esi, dword [ebx + 0x628]
pop ecx
pop ecx
push str._cfg
call fcn.0040b46f
test eax, eax
jl 0x411ad8
push edi
lea ecx, [ebp - 0x108]
push ecx
mov ecx, dword [ebx + 0x628]
inc eax
call fcn.0040b45f
push eax
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsA]
mov edi, dword [ebp + 8]
push str.General
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x31c]
mov dword [ebp - 0x31c], 0x420b34
mov byte [ebp - 0x314], 0
mov byte [ebp - 0x20f], 0
call fcn.00417560
lea edi, [ebx + 0x5ac]
mov eax, dword [edi]
lea esi, [ebp - 0x31c]
call fcn.004031af
mov eax, dword [edi]
cmp dword [eax + 0x38], 0
je 0x411b2f
mov dword [ebx + 0x140], 1
lea esi, [ebp - 0x31c]
mov eax, ebx
call fcn.0040183a
mov ebx, dword [ebx + 0x5b0]
mov edi, esi
call fcn.0040da3c
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x411c88
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
mov eax, dword [eax + 0x5b0]
push ebx
push esi
push edi
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 4], eax
call fcn.0040e286
test eax, eax
je 0x411d92
mov ebx, 0x104
push ebx
xor edi, edi
lea eax, [ebp - 0x26f]
push edi
push eax
mov byte [ebp - 0x270], 0
call sub.msvcrt.dll_memset
push ebx
lea eax, [ebp - 0x167]
push edi
push eax
mov byte [ebp - 0x168], 0
call sub.msvcrt.dll_memset
mov esi, 0x3ff
push esi
lea eax, [ebp - 0x66f]
push edi
push eax
mov byte [ebp - 0x670], 0
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 8]
add eax, 0xc
push eax
lea edi, [ebp - 0x270]
call fcn.00409d78
add esp, 0x28
push ebx
lea eax, [ebp - 0x168]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov eax, edi
push eax
lea eax, [ebp - 0x168]
push eax
push eax
push str.__s_rundll32.exe___s_shell32.dll_OpenAs_RunDLL__s
lea eax, [ebp - 0x670]
push esi
push eax
call sub.msvcrt.dll__snprintf
push 0x40
xor ebx, ebx
lea eax, [ebp - 0x5c]
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x18], ebx
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
add esp, 0x24
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x60]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x670]
push eax
push ebx
mov dword [ebp - 0x60], 0x44
mov word [ebp - 0x30], 5
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
je 0x411d92
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
mov eax, dword [ebp - 4]
call fcn.0040da12
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413652
Capabilities:
Delete file
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4118
call fcn.0041dff0
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
xor ebx, ebx
push 0x104
lea eax, [ebp - 0x117]
push ebx
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 0x118], bl
call sub.msvcrt.dll_memset
push str.gzip
push dword [ebp + 0x14]
call sub.msvcrt.dll__mbsicmp
add esp, 0x14
test eax, eax
jne 0x4136b3
push 0x420734
lea edi, [ebp - 0x118]
mov dword [ebp - 0xc], 1
call fcn.00409df3
pop ecx
mov esi, edi
push dword [ebp + 0xc]
call fcn.00409a84
mov edi, eax
cmp edi, 0xffffffff
pop ecx
mov dword [ebp - 8], edi
je 0x41379a
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
cmp eax, 4
jbe 0x41378f
lea eax, [ebp - 4]
push eax
push edi
mov dword [ebp - 4], ebx
call fcn.004149a3
test eax, eax
je 0x41378f
mov eax, dword [ebp + 0x18]
cmp eax, ebx
jne 0x4136fe
push esi
call fcn.00409a9d
pop ecx
cmp eax, 0xffffffff
mov dword [ebp + 0x14], eax
je 0x41378f
mov esi, dword [ebp + 8]
add esi, 0x14
mov ebx, 0x10000
push ebx
mov eax, esi
call fcn.0040b6cc
mov edi, dword [ebp - 4]
shr edi, 0x10
mov dword [ebp + 0xc], 0
je 0x413754
mov eax, dword [ebp + 0xc]
push ebx
push dword [esi]
shl eax, 0x10
push eax
push dword [ebp - 8]
call fcn.0040a8cd
push ebx
push dword [esi]
push dword [ebp + 0x14]
call fcn.0040a8ae
add esp, 0x1c
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], edi
jb 0x41372c
movzx ebx, word [ebp - 4]
test ebx, ebx
jbe 0x413779
push ebx
push dword [esi]
shl edi, 0x10
push edi
push dword [ebp - 8]
call fcn.0040a8cd
push ebx
push dword [esi]
push dword [ebp + 0x14]
call fcn.0040a8ae
add esp, 0x1c
cmp dword [ebp + 0x18], 0
mov dword [ebp - 0x10], 1
jne 0x41378f
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor ebx, ebx
cmp dword [ebp - 0xc], ebx
je 0x413811
push dword [ebp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.DLL_DeleteFileA]
call ebx
lea eax, [ebp - 0x118]
push eax
call fcn.00419716
mov esi, eax
test esi, esi
pop ecx
je 0x413808
push 0x41f51c
push dword [ebp + 0x10]
call sub.msvcrt.dll_fopen
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x413801
jmp 0x4137e9
je 0x4137fa
push edi
push eax
lea eax, [ebp - 0x4118]
push 1
push eax
call sub.msvcrt.dll_fwrite
add esp, 0x10
lea eax, [ebp - 0x4118]
mov ecx, esi
call fcn.0041995f
test eax, eax
jge 0x4137d4
push edi
call sub.msvcrt.dll_fclose
pop ecx
mov eax, esi
call fcn.00419bab
lea eax, [ebp - 0x118]
push eax
call ebx
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x4149a3
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
cmp esi, 4
jbe 0x414a6b
and dword [ebp - 4], 0
push ebx
push 4
lea eax, [ebp - 4]
push eax
lea ebx, [esi - 4]
push ebx
push dword [ebp + 8]
call fcn.0040a8cd
mov ecx, dword [ebp - 4]
add esp, 0x10
call fcn.004134fd
cmp eax, ebx
mov dword [ebp - 4], eax
jbe 0x414a59
push 4
lea eax, [ebp - 4]
push eax
lea eax, [esi - 5]
push eax
push dword [ebp + 8]
call fcn.0040a8cd
mov ecx, dword [ebp - 4]
add esp, 0x10
call fcn.004134fd
cmp eax, ebx
mov dword [ebp - 4], eax
jbe 0x414a59
push edi
xor eax, eax
mov byte [ebp - 0x14], 0
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x10
lea eax, [ebp - 0x14]
push eax
add esi, 0xfffffff0
push esi
push dword [ebp + 8]
call fcn.0040a8cd
add esp, 0x10
push 9
pop esi
pop edi
lea eax, [ebp + esi - 0x13]
cmp byte [eax - 1], 0xd
jne 0x414a56
cmp byte [eax], 0xa
jne 0x414a56
cmp byte [eax + 1], 0
jne 0x414a56
mov ecx, dword [eax + 2]
call fcn.004134fd
mov dword [ebp - 4], eax
dec esi
jns 0x414a36
mov eax, dword [ebp - 4]
cmp eax, ebx
pop ebx
jae 0x414a6b
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0x414a6d
xor eax, eax
pop esi
leave
ret 8

Function at 0x414a72
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push dword [ebp + 8]
call fcn.00409a84
mov edi, eax
cmp edi, 0xffffffff
pop ecx
mov dword [ebp - 8], edi
je 0x414afc
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
cmp esi, 4
mov dword [ebp - 0xc], esi
jbe 0x414af3
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push edi
call fcn.004149a3
test eax, eax
je 0x414af3
sub esi, dword [ebp - 4]
lea edi, [ebx + 0x24]
sub esi, 4
lea eax, [esi + 2]
push eax
mov eax, edi
call fcn.0040b6cc
push esi
push dword [edi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0040a8cd
mov eax, dword [edi]
add esp, 0x10
push dword [ebp - 0xc]
mov byte [esi + eax], 0
mov eax, dword [edi]
push esi
push dword [ebp + 8]
mov byte [eax + esi + 1], 0
mov edi, dword [edi]
push ebx
call fcn.0041490a
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
leave
ret 4
Function at 0x414bb0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push esi
xor eax, eax
push edi
mov esi, 0x104
push esi
push eax
mov dword [ebx + 0x44], eax
mov dword [ebp - 0xc], eax
mov dword [ebx + 0x20], eax
mov byte [ebp - 0x12c], al
lea eax, [ebp - 0x12b]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
push str._CACHE_MAP_
push dword [ebp + 8]
lea eax, [ebp - 0x12c]
call fcn.0040a12c
lea eax, [ebp - 0x12c]
add esp, 0xc
push eax
call fcn.00409a84
mov edi, eax
cmp edi, 0xffffffff
pop ecx
mov dword [ebx + 0x10], edi
je 0x414d4f
push 0x11f
lea eax, [ebp - 0x143]
push 0
push eax
mov byte [ebp - 0x144], 0
call sub.msvcrt.dll_memset
add esp, 0xc
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
push 0x120
lea eax, [ebp - 0x144]
push eax
push 0
push dword [ebx + 0x10]
call fcn.0040a8cd
movzx eax, byte [ebp - 0x141]
add esp, 0x10
cmp byte [ebp - 0x141], 8
mov dword [ebx + 0x20], eax
jae 0x414c87
cmp byte [ebp - 0x30], 0
jne 0x414c87
cmp byte [ebp - 0x2f], 0
jne 0x414c87
cmp byte [ebp - 0x2e], 0
jne 0x414c87
cmp byte [ebp - 0x2d], 0
jne 0x414c87
mov dword [ebp - 0xc], 1
push dword [ebp + 8]
mov eax, ebx
call fcn.00413521
mov esi, dword [ebp - 0xc]
neg esi
sbb esi, esi
push 0
and esi, 0xeec
push 0
add esi, 0x114
push esi
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
and dword [ebp - 8], 0
sub edi, esi
shr edi, 4
test edi, edi
mov dword [ebp - 0x20], edi
jle 0x414d33
call fcn.00416f0a
cmp dword [ebx + 0x44], 0
jne 0x414d33
and dword [ebp - 0x1c], 0
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x10
lea eax, [ebp - 0x1c]
push eax
push dword [ebx + 0x10]
xor esi, esi
call fcn.0040a886
add esp, 0xc
test eax, eax
je 0x414d33
cmp dword [ebp - 0x1c], esi
je 0x414d28
cmp dword [ebp - 0xc], esi
jne 0x414d1b
mov ecx, dword [ebp - 0x10]
call fcn.004134fd
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
call fcn.004134fd
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
call fcn.004134fd
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
push ebx
call fcn.00413daa
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x20]
jl 0x414cc2
mov eax, ebx
call fcn.004135a7
mov eax, dword [ebx + 0x10]
cmp eax, 0xffffffff
je 0x414d49
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
or dword [ebx + 0x10], 0xffffffff
jmp 0x414da3
push esi
lea eax, [ebp - 0x12b]
push 0
push eax
mov byte [ebp - 0x12c], 0
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
push str.entries
push dword [ebp + 8]
lea eax, [ebp - 0x12c]
call fcn.0040a12c
lea eax, [ebp - 0x12c]
add esp, 0xc
push eax
call fcn.00409f03
test eax, eax
pop ecx
je 0x414d99
lea eax, [ebp - 0x12c]
push eax
jmp 0x414d9c
push dword [ebp + 8]
mov eax, ebx
call fcn.00414b02
pop edi
pop esi
leave
ret 4
Function at 0x416c92
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x378
push ebx
mov ebx, dword [ebp + 8]
push esi
add ebx, 0x28
push edi
mov esi, ebx
call fcn.00416ef1
xor edi, edi
push edi
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
push 0x124
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x370]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x374]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x374], 0x128
call sub.KERNEL32.DLL_Process32First
jmp 0x416e4c
mov eax, dword [ebp - 0x36c]
mov ecx, dword [ebp - 0x35c]
push eax
push edi
push 0x410
mov byte [ebp - 0x140], 0
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x38], ecx
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
cmp eax, edi
mov dword [ebp - 8], eax
je 0x416dfe
mov esi, 0x104
push esi
lea eax, [ebp - 0x24b]
push edi
push eax
mov byte [ebp - 0x24c], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 8]
mov eax, dword [ebp + 8]
call fcn.00416e73
cmp byte [ebp - 0x24c], 0
je 0x416d78
cmp byte [ebp - 0x24c], 0x3f
jne 0x416dc7
cmp dword [0x427a10], edi
mov dword [ebp - 0x10], esi
jne 0x416dad
push str.kernel32.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
cmp eax, edi
je 0x416dad
push str.QueryFullProcessImageNameA
push eax
mov dword [0x427a10], 1
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x427a14], eax
mov eax, dword [0x427a14]
cmp eax, edi
je 0x416dc7
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x24c]
push ecx
push edi
push dword [ebp - 8]
call eax
lea esi, [ebp - 0x24c]
lea edi, [ebp - 0x140]
call fcn.00416675
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 8]
call fcn.00416bea
add esp, 0x14
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor edi, edi
mov esi, dword [ebx + 0xc]
cmp esi, edi
jl 0x416e4c
cmp esi, 0xffffffff
mov eax, dword [ebx + 8]
jne 0x416e16
push dword [ebx]
call sub.msvcrt.dll_free
jmp 0x416e29
push eax
push 0x130
lea eax, [ebx + 4]
mov edx, esi
mov edi, ebx
call fcn.00409da2
pop ecx
lea eax, [esi + 1]
cmp dword [ebx + 0xc], eax
pop ecx
jge 0x416e35
mov dword [ebx + 0xc], eax
mov edi, esi
imul edi, edi, 0x130
add edi, dword [ebx]
push 0x4c
pop ecx
lea esi, [ebp - 0x144]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
lea eax, [ebp - 0x374]
push eax
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x416ceb
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x416e9b
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi], 0
jne 0x416ef0
push edi
push str.psapi.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.GetModuleBaseNameA
push eax
mov dword [esi], eax
call edi
push str.EnumProcessModules
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.GetModuleFileNameExA
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.EnumProcesses
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.GetModuleInformation
push dword [esi]
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0xc], eax
pop edi
ret
Function at 0x41737e
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0041dff0
xor eax, eax
cmp dword [ebp + 8], eax
push ebx
push esi
mov byte [ebp - 0x2004], al
je 0x4173d5
push 0x2000
push eax
lea eax, [ebp - 0x2003]
push eax
call sub.msvcrt.dll_memset
push dword [edi]
lea ebx, [ebp - 0x2004]
push dword [ebp + 0x14]
call fcn.0040a925
add esp, 0x14
push dword [ebp + 0x18]
mov eax, ebx
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
mov esi, eax
jmp 0x417420
mov esi, 0x2000
push esi
push eax
lea eax, [ebp - 0x2003]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 0x18]
lea eax, [ebp - 0x2004]
push esi
push eax
push 0x41f4f3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
push dword [ebp + 0x14]
xor ecx, ecx
cmp ecx, eax
sbb esi, esi
push edi
lea ebx, [ebp - 0x2004]
neg esi
call fcn.0040a9a0
pop ecx
pop ecx
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x417426
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push dword [ebp + 0x18]
je 0x417444
push dword [esi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00417332
add esp, 0x10
pop ebp
ret
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
mov dword [esi], eax
pop ebp
ret

Function at 0x417b90
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
mov esi, eax
call fcn.00417ae3
xor ebx, ebx
cmp dword [0x427634], ebx
je 0x417bd5
call fcn.0040a084
cmp dword [eax + 0x10], 1
jne 0x417bc6
cmp esi, 0x19
je 0x417bd5
cmp esi, 0x17
je 0x417bd5
cmp esi, 0x16
je 0x417bd5
push ebx
push esi
push edi
push ebx
call dword [0x427634]
jmp 0x417c6b
push 0x103
lea eax, [ebp - 0x127]
push ebx
push eax
mov byte [ebp - 0x128], bl
call sub.msvcrt.dll_memset
add esp, 0xc
cmp esi, 0x19
je 0x417bff
cmp esi, 0x17
je 0x417bff
cmp esi, 0x16
jne 0x417c0f
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push CreateStatusWindowA
jmp 0x417c1d
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call fcn.00417457
add esp, 0xc
cmp eax, ebx
jne 0x417c55
lea ecx, [ebp - 0x24]
mov eax, esi
call fcn.00417b12
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
mov eax, 0x104
lea esi, [ebp - 0x128]
call fcn.00417471
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x128]
push eax
push edi
call sub.msvcrt.dll_strcpy
xor eax, eax
cmp byte [edi], bl
pop ecx
pop ecx
setne al
pop esi
pop ebx
leave
ret
Function at 0x417e4c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push 0x104
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x108]
call fcn.00417d70
test eax, eax
je 0x417ea6
push 1
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
push 0
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov eax, ecx
leave
ret
xor eax, eax
leave
ret

Function at 0x41868a
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xfa10
call fcn.0041dff0
push esi
push dword [ebp + 0xc]
xor esi, esi
push esi
push 0x40
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x41878e
push 2
push esi
push 0x80000000
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], esi
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
cmp dword [ebp + 0xc], esi
je 0x418785
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 1
push esi
push esi
push dword [ebp + 0xc]
call ebx
push esi
push esi
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov dword [ebp + 0x10], esi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x418771
push edi
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp + 8], esi
mov dword [ebp - 4], esi
call ebx
mov edi, 0xfa00
jmp 0x418734
add dword [ebp + 8], edi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebp + 0xc]
call ebx
push esi
lea eax, [ebp + 0x10]
push eax
push edi
lea eax, [ebp - 0xfa10]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0xfa10]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
cmp dword [ebp + 0x10], edi
jae 0x418724
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
push esi
push esi
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
leave
ret 0xc
Function at 0x41971b
Capabilities:
Read file on windows

Disassembly:
cmp dword [esi + 0x3c], 0
je 0x419725
or eax, 0xffffffff
ret
cmp dword [esi + 4], 0
jne 0x41976e
call sub.msvcrt.dll__errno
and dword [eax], 0
push dword [esi + 0x40]
push 0x4000
push 1
push dword [esi + 0x44]
call sub.msvcrt.dll_fread
add esp, 0x10
test eax, eax
mov dword [esi + 4], eax
jne 0x419769
push dword [esi + 0x40]
mov dword [esi + 0x3c], 1
call sub.msvcrt.dll_ferror
test eax, eax
pop ecx
je 0x419721
or dword [esi + 0x38], 0xffffffff
jmp 0x419721
mov eax, dword [esi + 0x44]
mov dword [esi], eax
mov eax, dword [esi]
dec dword [esi + 4]
mov cl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, cl
ret

Function at 0x41977c
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, eax
xor ebx, ebx
push edi
mov edi, dword [esi + 4]
inc ebx
cmp edi, 2
jae 0x4197ec
test edi, edi
je 0x419799
mov eax, dword [esi]
mov ecx, dword [esi + 0x44]
mov al, byte [eax]
mov byte [ecx], al
call sub.msvcrt.dll__errno
and dword [eax], 0
push dword [esi + 0x40]
mov ecx, edi
mov eax, 0x4000
sar eax, cl
push eax
mov eax, dword [esi + 0x44]
add eax, edi
push ebx
push eax
call sub.msvcrt.dll_fread
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4197d4
push dword [esi + 0x40]
call sub.msvcrt.dll_ferror
test eax, eax
pop ecx
je 0x4197d4
or dword [esi + 0x38], 0xffffffff
add dword [esi + 4], edi
mov eax, dword [esi + 4]
cmp eax, 2
mov ecx, dword [esi + 0x44]
mov dword [esi], ecx
jae 0x4197ec
mov dword [esi + 0x58], eax
jmp 0x4198a5
mov eax, dword [esi]
cmp byte [eax], 0x1f
jne 0x4198a2
cmp byte [eax + 1], 0x8b
jne 0x4198a2
add dword [esi + 4], 0xfffffffe
add eax, 2
mov dword [esi], eax
call fcn.0041971b
mov edi, eax
call fcn.0041971b
cmp edi, 8
mov ebx, eax
jne 0x419899
test bl, 0xe0
jne 0x419899
push 6
pop edi
call fcn.0041971b
dec edi
jne 0x419825
test bl, 4
je 0x419854
call fcn.0041971b
mov edi, eax
call fcn.0041971b
shl eax, 8
add edi, eax
mov eax, edi
dec edi
test eax, eax
je 0x419854
call fcn.0041971b
cmp eax, 0xffffffff
jne 0x419843
test bl, 8
je 0x419867
call fcn.0041971b
test eax, eax
je 0x419867
cmp eax, 0xffffffff
jne 0x419859
test bl, 0x10
je 0x41987a
call fcn.0041971b
test eax, eax
je 0x41987a
cmp eax, 0xffffffff
jne 0x41986c
test bl, 2
je 0x41988a
push 2
pop edi
call fcn.0041971b
dec edi
jne 0x419882
mov eax, dword [esi + 0x3c]
neg eax
sbb eax, eax
and eax, 0xfffffffd
mov dword [esi + 0x38], eax
jmp 0x4198a5
mov dword [esi + 0x38], 0xfffffffd
jmp 0x4198a5
mov dword [esi + 0x58], ebx
pop edi
pop esi
pop ebx
ret