joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c532
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x6390
call fcn.0044ddb0
push ebx
push edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40c67b
push 0x20
lea eax, [ebp - 0x90]
push eax
push ebx
push edi
call fcn.0040a8ec
add esp, 0x10
cmp byte [ebp - 0x78], 0x34
je 0x40c674
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
mov eax, 0x5000
cmp dword [ebp - 8], eax
mov dword [ebp + 0xc], eax
jbe 0x40c674
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
lea esi, [ebp - 0x2190]
push edi
call fcn.0040c4a1
test eax, eax
je 0x40c660
push 4
lea eax, [ebp - 0x215c]
push eax
lea eax, [ebp - 4]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp dword [ebp - 4], 0x100
jbe 0x40c5e1
mov dword [ebp - 4], 0x68
mov eax, dword [ebp - 4]
lea eax, [ebp + eax - 0x2190]
push 0x40
push eax
call sub.msvcrt.dll_strchr
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x40c655
inc esi
push 0x3f
push esi
call sub.msvcrt.dll_strchr
cmp eax, ebx
pop ecx
pop ecx
je 0x40c60c
mov byte [eax], bl
push esi
call sub.msvcrt.dll__strlwr
mov dword [esp], 0x41fe
lea eax, [ebp - 0x638e]
push ebx
push eax
mov word [ebp - 0x6390], bx
call sub.msvcrt.dll_memset
push 0x2000
lea eax, [ebp - 0x6390]
push eax
push esi
call fcn.0040acda
add esp, 0x18
push ebx
lea eax, [ebp - 0x6390]
push eax
mov eax, dword [ebp + 8]
add eax, 8
call fcn.0040aed1
mov eax, dword [ebp - 0xc]
shl eax, 7
add dword [ebp + 0xc], eax
jmp 0x40c667
add dword [ebp + 0xc], 0x80
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 8]
jb 0x40c59d
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
leave
ret 8
Function at 0x40c722
Capabilities:
Enumerate internet cache

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
push ebx
push esi
push edi
xor esi, esi
push 0x208
mov edi, eax
lea eax, [ebp - 0x22e]
push esi
push eax
mov word [ebp - 0x230], si
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x22
pop eax
lea ebx, [ebp - 0x230]
call fcn.00416b94
mov ebx, dword [edi + 0x24]
lea eax, [ebp - 0x230]
push eax
mov ecx, edi
call fcn.0040c681
lea eax, [edi + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x4542c4
call fcn.0040c34b
cmp ebx, dword [edi + 0x24]
jne 0x40c86c
mov edi, 0xfa00
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0x1388
mov ebx, edi
call fcn.0040b5f5
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
mov edi, dword [ebp - 0x18]
push eax
push edi
push str.visited:
call dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryW]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x40c864
mov eax, dword [edi + 4]
push 0x40
push eax
call sub.msvcrt.dll_wcschr
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40c80c
mov eax, dword [ebp - 0xc]
inc esi
push 0
inc esi
push esi
call fcn.0040aed1
mov eax, dword [edi + 4]
push 0x3f
push eax
call sub.msvcrt.dll_wcschr
test eax, eax
pop ecx
pop ecx
je 0x40c80c
and word [eax], 0
mov eax, dword [ebp - 0xc]
push 0
push esi
call fcn.0040aed1
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
test eax, eax
jne 0x40c7cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40c85b
mov ebx, dword [ebp - 4]
add ebx, 0x2710
mov edi, ebx
lea eax, [ebp - 0x18]
call fcn.0040b5f5
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
test eax, eax
jne 0x40c7cc
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
lea esi, [ebp - 0x18]
call fcn.0040b671
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c871
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push ebx
mov ebx, dword [ebp + 8]
push esi
lea esi, [ebx + 0x28]
push edi
mov dword [ebp - 0x20], esi
call fcn.0040b7d1
push 0xe7
call fcn.00406cd0
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [ebx + 4]
call fcn.00416466
add esp, 0xc
test eax, eax
jne 0x40c9bc
add ebx, 0x68
mov esi, 0x2000
xor edi, edi
mov edx, esi
mov eax, ebx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x1c], ebx
call fcn.0040aff4
push 0x1fe
lea eax, [ebp - 0x222]
push edi
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], 0xff
mov dword [ebp - 8], esi
mov word [ebp - 0x224], di
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
mov eax, ebx
call fcn.0040b043
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x224]
push eax
push edi
push dword [ebp - 0x10]
call ebx
test eax, eax
jne 0x40c9b3
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp + 8], eax
lea eax, [ebp - 0x224]
push eax
call sub.msvcrt.dll__wcsupr
pop ecx
push 0xffffffffffffffff
lea eax, [ebp - 0x224]
push eax
mov eax, dword [ebp - 0x20]
call fcn.0040aef6
push dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
call fcn.0040b043
push eax
mov eax, dword [ebp + 8]
call fcn.0040aef6
inc dword [ebp - 0xc]
push 0x1fe
lea eax, [ebp - 0x222]
push edi
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], 0xff
mov dword [ebp - 8], esi
mov word [ebp - 0x224], di
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.0040b043
push eax
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call ebx
test eax, eax
je 0x40c928
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40d0d4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push dword [ebp + 0xc]
call fcn.00409c82
cmp eax, 0xffffffff
pop ecx
mov dword [ebp + 0xc], eax
je 0x40d15c
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea edi, [esi + 5]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], 0x1388
call fcn.0040b5f5
mov edi, dword [ebp - 0xc]
push esi
push edi
push dword [ebp + 0xc]
call fcn.0040a8ae
lea eax, [edi + esi]
mov byte [eax], bl
add esp, 0xc
mov byte [eax + 1], bl
mov byte [eax + 2], bl
mov eax, dword [ebp + 8]
push 0xfde9
push 0xffffffffffffffff
mov dword [eax + 0x34], ebx
push edi
lea ebx, [eax + 0x20]
call fcn.0040b170
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0xc]
call fcn.0040b671
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
jmp 0x40d15e
xor eax, eax
leave
ret 8
Function at 0x40db0b
Capabilities:
Read .ini file

Disassembly:
and word [esi], 0
push 0x45e458
push dword [esp + 0xc]
push esi
push 0x44f4cc
push dword [esp + 0x14]
push 0x45e668
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, esi
ret

Function at 0x40db30
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0044ddb0
and word [ebp - 0x2004], 0
push 0x2000
lea eax, [ebp - 0x2002]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x45e458
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x44f4cc
push dword [ebp + 8]
push 0x45e668
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x40db9f
lea eax, [ebp - 0x2004]
push eax
push dword [ebp + 0xc]
call sub.msvcrt.dll_wcscpy
pop ecx
xor eax, eax
pop ecx
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x40dba3
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0044ddb0
and word [ebp - 0x2004], 0
push esi
push edi
push 0x2000
lea eax, [ebp - 0x2002]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x45e458
push edi
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x44f4cc
push dword [ebp + 8]
mov esi, 0x45e668
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x40dc0a
cmp dword [ebp + 0x10], 0
jne 0x40dc0a
xor eax, eax
jmp 0x40dc18
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
pop edi
pop esi
leave
ret

Function at 0x40df8f
Capabilities:
Read .ini file

Disassembly:
push dword [esp + 4]
call fcn.0040a157
test eax, eax
pop ecx
je 0x40e016
push esi
push edi
push dword [esp + 0xc]
mov edi, 0x45e458
push edi
call sub.msvcrt.dll_wcscpy
push str.general
mov esi, 0x45e668
push esi
call sub.msvcrt.dll_wcscpy
add esp, 0x10
push edi
push 0
push 0x454390
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
dec eax
neg eax
sbb eax, eax
inc eax
push 0x3f
push str.charset
mov esi, 0x45e6f8
mov dword [0x45e6f0], eax
call fcn.0040db0b
push 0x3f
push str.TranslatorName
mov esi, 0x45e778
call fcn.0040db0b
push 0xff
push str.TranslatorURL
mov esi, 0x45e7f8
call fcn.0040db0b
add esp, 0x18
pop edi
pop esi
ret

Function at 0x40f187
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8004
call fcn.0044ddb0
push ebx
push esi
mov esi, 0x7fff
xor ebx, ebx
push esi
lea eax, [ebp - 0x8003]
push ebx
push eax
mov byte [ebp - 0x8004], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
push ebx
push esi
lea eax, [ebp - 0x8004]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x8004]
push eax
call sub.msvcrt.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x8004]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
leave
ret
Function at 0x40f1f6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0044ddb0
push ebx
push esi
mov esi, 0x1fff
xor ebx, ebx
push esi
lea eax, [ebp - 0x2003]
push ebx
push eax
mov byte [ebp - 0x2004], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
push ebx
push esi
lea eax, [ebp - 0x2004]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2004]
push eax
call sub.msvcrt.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x2004]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
leave
ret
Function at 0x410381
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x4cc
push ebx
push ebp
mov ebp, dword [sym.imp.COMCTL32.dll_ImageList_Create]
push esi
mov esi, eax
xor ebx, ebx
cmp dword [esi + 0x2a8], ebx
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
je 0x410448
cmp dword [esi + 0x2b0], ebx
je 0x410418
push 0x2b0
lea eax, [esp + 0x230]
push ebx
push eax
mov dword [esp + 0x234], ebx
call sub.msvcrt.dll_memset
push 0x208
lea eax, [esp + 0x2e]
push ebx
push eax
mov word [esp + 0x34], bx
call sub.msvcrt.dll_memset
add esp, 0x18
push 0x104
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x4001
push 0x2b4
lea eax, [esp + 0x230]
push eax
push ebx
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov dword [esi + 0x29c], eax
push eax
jmp 0x410439
push 1
push 1
push 0x19
push 0x10
push 0x10
call ebp
push 0xa
push eax
mov dword [esi + 0x29c], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push dword [esi + 0x29c]
push 1
push 0x1003
push dword [esi + 0x294]
call edi
cmp dword [esi + 0x2ac], ebx
je 0x41047f
push 1
push 1
push 0x19
push 0x20
push 0x20
call ebp
push 0xa
push eax
mov dword [esi + 0x2a0], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push dword [esi + 0x2a0]
push ebx
push 0x1003
push dword [esi + 0x294]
call edi
push 1
push 1
push 0x19
push 0x10
push 0x10
call ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
mov dword [esi + 0x298], eax
call ebp
push 0x1000
push 0x10
push 0x10
push ebx
push 0x85
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
push ebx
mov dword [esp + 0x14], eax
call ebp
push 0x1000
push 0x10
push 0x10
push ebx
push 0x86
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
push ebx
push dword [esi + 0x298]
mov dword [esp + 0x1c], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov ebp, dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
push eax
push dword [esp + 0x14]
mov dword [esp + 0x20], eax
push dword [esi + 0x298]
call ebp
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esi + 0x298]
call ebp
push dword [esp + 0x10]
mov ebp, dword [sym.imp.GDI32.dll_DeleteObject]
call ebp
push dword [esp + 0x14]
call ebp
mov eax, dword [esi + 0x298]
mov esi, dword [esi + 0x294]
push eax
push ebx
push 0x1208
push esi
call fcn.00405613
pop ecx
push eax
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4cc
ret
Function at 0x41138d
Capabilities:
Delete file
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
push 0x454bc0
lea edi, [ebp - 0x208]
mov esi, eax
call fcn.0040a004
mov eax, dword [esi + 0x694]
pop ecx
push 1
push 1
mov ecx, edi
push ecx
push eax
push 2
pop edx
call fcn.00411346
test eax, eax
je 0x411405
push dword [esi + 0x208]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4113e0
mov eax, edi
push eax
call fcn.00409ea1
pop ecx
jmp 0x4113e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4113f8
push dword [esi + 0x208]
mov ecx, eax
call fcn.00409cfb
pop ecx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
leave
ret

Function at 0x4114c6
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, eax
mov eax, dword [esi + 0x690]
xor dword [eax + 0xa80], 1
mov eax, esi
call fcn.0041147c
xor eax, eax
mov ecx, esi
call fcn.004108e2
mov eax, dword [esi + 0x690]
mov eax, dword [eax + 0xa80]
neg eax
sbb eax, eax
and eax, 5
push eax
push dword [esi + 0x6b8]
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00410d08
mov eax, dword [esi + 0x690]
cmp dword [eax + 0xa80], 0
je 0x411533
mov esi, dword [esi + 0x6b8]
push 0x40b
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
pop esi
ret

Function at 0x411535
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push edi
mov edi, dword [esi + 0x694]
lea eax, [ebp - 4]
push eax
mov eax, edi
call fcn.0040ec7a
test eax, eax
je 0x411572
push dword [esi + 0x208]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x411572
mov eax, dword [ebp - 4]
add eax, 0x210
push eax
call fcn.00409e39
pop ecx
mov eax, edi
call fcn.0040e525
pop edi
leave
ret
Function at 0x415799
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x678
push ebx
mov ebx, dword [ebp + 8]
push esi
add ebx, 0x28
push edi
mov esi, ebx
call fcn.00408d81
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x228
mov dword [ebp - 4], eax
lea eax, [ebp - 0x468]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x46c]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x46c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x41594d
mov eax, dword [ebp - 0x464]
mov ecx, dword [ebp - 0x454]
push eax
push edi
push 0x410
mov word [ebp - 0x23c], di
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 - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x30], ecx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
mov dword [ebp - 8], esi
je 0x4158fd
push 0x208
lea eax, [ebp - 0x676]
push edi
push eax
mov word [ebp - 0x678], di
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x678]
push eax
mov eax, dword [ebp + 8]
push esi
call fcn.00415974
cmp word [ebp - 0x678], di
jne 0x4158c6
cmp dword [0x45f284], edi
mov dword [ebp - 0xc], 0x104
jne 0x4158ae
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, edi
je 0x4158ae
push str.QueryFullProcessImageNameW
push eax
mov dword [0x45f284], 1
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x45f288], eax
mov eax, dword [0x45f288]
cmp eax, edi
je 0x4158c6
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x678]
push ecx
push edi
push esi
call eax
lea esi, [ebp - 0x678]
lea edi, [ebp - 0x23c]
call fcn.004153a6
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call fcn.004156f1
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 0x41594d
cmp esi, 0xffffffff
mov eax, dword [ebx + 8]
jne 0x415915
push dword [ebx]
call sub.msvcrt.dll_free
jmp 0x415928
push eax
push 0x234
lea eax, [ebx + 4]
mov edx, esi
mov edi, ebx
call fcn.00409fb3
pop ecx
lea eax, [esi + 1]
cmp dword [ebx + 0xc], eax
pop ecx
jge 0x415934
mov dword [ebx + 0xc], eax
mov edi, esi
imul edi, edi, 0x234
add edi, dword [ebx]
mov ecx, 0x8d
lea esi, [ebp - 0x240]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
lea eax, [ebp - 0x46c]
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4157f2
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41599c
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi], 0
jne 0x4159f2
push edi
push str.psapi.dll
call fcn.0040ae2a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp], str.GetModuleBaseNameW
push eax
mov dword [esi], eax
call edi
push str.EnumProcessModules
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.GetModuleFileNameExW
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 0x416312
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20000
call fcn.0044ddb0
cmp dword [ebp + 8], 0
je 0x416377
test esi, esi
je 0x416365
push 0x22
push esi
call sub.msvcrt.dll_wcschr
test eax, eax
pop ecx
pop ecx
je 0x416365
and word [ebp - 0x20000], 0
push esi
push 0x4552a4
lea eax, [ebp - 0x20000]
push 0xfffe
push eax
call sub.msvcrt.dll__snwprintf
add esp, 0x10
push dword [ebp + 0x1c]
lea eax, [ebp - 0x20000]
push eax
jmp 0x416369
push dword [ebp + 0x1c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
leave
ret
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
leave
ret

Function at 0x41638f
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4004
call fcn.0044ddb0
push esi
push edi
xor eax, eax
cmp dword [ebp + 8], eax
push 0x4000
push eax
mov word [ebp - 0x4004], ax
lea eax, [ebp - 0x4002]
mov edi, ecx
push eax
je 0x4163ee
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x4004]
push eax
push dword [edi]
push dword [ebp + 0x14]
call fcn.0040a912
add esp, 0x18
push dword [ebp + 0x18]
lea eax, [ebp - 0x4004]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov esi, eax
jmp 0x41642f
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 0x18]
lea eax, [ebp - 0x4004]
push 0x2000
push eax
push 0x44f4cc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [ebp + 0x14]
xor ecx, ecx
cmp ecx, eax
sbb esi, esi
push edi
lea edi, [ebp - 0x4004]
neg esi
call fcn.0040a99b
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x416435
Capabilities:
Read .ini file

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

Function at 0x416480
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4164b9
mov ecx, dword [ebp - 4]
cmp ecx, 2
jb 0x4164b5
shr ecx, 1
and word [esi + ecx*2], ax
leave
ret
and word [esi], 0
leave
ret
Function at 0x4167d1
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi + 4], 0
push edi
jne 0x41686a
push 0x65
call fcn.00406cd0
push eax
call fcn.0040ae2a
pop ecx
push 0x67
mov dword [esi + 4], eax
call fcn.00406c77
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop ecx
push eax
push dword [esi + 4]
call edi
push 0x6a
mov dword [esi + 0x14], eax
call fcn.00406c77
pop ecx
push eax
push dword [esi + 4]
call edi
push 0x6b
mov dword [esi + 0x20], eax
call fcn.00406c77
pop ecx
push eax
push dword [esi + 4]
call edi
push 0x66
mov dword [esi + 8], eax
call fcn.00406c77
pop ecx
push eax
push dword [esi + 4]
call edi
push 0x68
mov dword [esi + 0x10], eax
call fcn.00406c77
pop ecx
push eax
push dword [esi + 4]
call edi
push 0x69
mov dword [esi + 0x18], eax
call fcn.00406c77
pop ecx
push eax
push dword [esi + 4]
call edi
push 0x6c
mov dword [esi + 0x1c], eax
call fcn.00406c77
pop ecx
push eax
push dword [esi + 4]
call edi
mov dword [esi + 0xc], eax
pop edi
ret

Function at 0x416b94
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push esi
push edi
mov esi, eax
call fcn.00416ae7
xor edi, edi
cmp dword [0x45ea88], edi
je 0x416bd9
call fcn.0040a2a9
cmp dword [eax + 0x10], 1
jne 0x416bca
cmp esi, 0x19
je 0x416bd9
cmp esi, 0x17
je 0x416bd9
cmp esi, 0x16
je 0x416bd9
push edi
push esi
push ebx
push edi
call dword [0x45ea88]
jmp 0x416c71
push 0x206
lea eax, [ebp - 0x24a]
push edi
push eax
mov word [ebp - 0x24c], di
call sub.msvcrt.dll_memset
add esp, 0xc
cmp esi, 0x19
je 0x416c04
cmp esi, 0x17
je 0x416c04
cmp esi, 0x16
jne 0x416c14
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000002
jmp 0x416c22
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call fcn.00416466
add esp, 0xc
cmp eax, edi
jne 0x416c5a
lea ecx, [ebp - 0x44]
mov eax, esi
call fcn.00416b16
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 4]
mov eax, 0x104
lea esi, [ebp - 0x24c]
call fcn.00416480
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x24c]
push eax
push ebx
call sub.msvcrt.dll_wcscpy
xor eax, eax
cmp word [ebx], di
pop ecx
pop ecx
setne al
pop edi
pop esi
leave
ret

Function at 0x41903a
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
jle 0x419063
push esi
movzx edx, byte [ecx]
movzx edx, byte [edx + 0x44faf0]
mov esi, eax
shl esi, 3
xor edx, esi
xor eax, edx
inc ecx
dec dword [esp + 8]
cmp dword [esp + 8], 0
jg 0x419043
pop esi
ret