joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4012b6
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x414470
call fcn.004014c4
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x4012f1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4012f1
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x401309
cmp eax, 0x20b
je 0x4012f6
mov dword [ebp - 0x1c], edi
jmp 0x40131d
cmp dword [ecx + 0x84], 0xe
jbe 0x4012f1
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x401317
cmp dword [ecx + 0x74], 0xe
jbe 0x4012f1
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x41a0c4], 0xffffffff
or dword [0x41a0c8], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x41844c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x418448]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x41a0c0], eax
call fcn.00401019
cmp dword [section..data], edi
jne 0x40137a
push fcn.00401019
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.004014b2
push 0x414444
push 0x414440
call sub.msvcrt.dll__initterm
mov eax, dword [0x418444]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x418440]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x30], eax
push 0x41443c
push 0x414408
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x4013e0
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x40149a
mov dword [ebp - 0x34], esi
cmp word [esi], 0x22
jne 0x40142e
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x4013fc
cmp ax, 0x22
jne 0x4013e9
cmp word [esi], 0x22
jne 0x401407
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x401415
cmp ax, 0x20
jbe 0x401402
mov dword [ebp - 0x4c], edi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x4c], 1
je 0x40143b
movzx eax, word [ebp - 0x48]
jmp 0x40143e
cmp word [esi], 0x20
jbe 0x401407
add esi, ebx
mov dword [ebp - 0x34], esi
jmp 0x40142e
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], edi
jne 0x40145f
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x401494
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.004014fd
ret

Function at 0x401e8c
Capabilities:
Encode data using xor

Disassembly:
push edi
mov eax, esi
mov edi, esi
imul eax, esi
xor edx, edx
shr edi, 2
je 0x401eba
push ebx
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + edx*4]
mov ebx, ecx
imul ebx, edx
imul ebx, esi
imul ebx, ebx, 0x11
add ecx, eax
xor ebx, ecx
inc edx
cmp edx, edi
mov eax, ebx
jb 0x401e9c
pop ebx
pop edi
ret
Function at 0x401f6e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [esi], 0
jne 0x401fec
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, eax
xor eax, eax
test ecx, ecx
mov dword [esi], ecx
je 0x401fef
push edi
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
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
lea eax, [ebp - 0x14]
push eax
push ecx
mov byte [ebp - 0x14], 0x4e
mov byte [ebp - 0x13], 0x74
mov byte [ebp - 9], 0x65
mov byte [ebp - 8], 0x61
mov byte [ebp - 0xe], 0x74
mov byte [ebp - 0xd], 0x65
mov byte [ebp - 0x12], 0x43
mov byte [ebp - 0xa], 0x72
mov byte [ebp - 7], 0x64
mov byte [ebp - 0x11], 0x72
mov byte [ebp - 6], 0x45
mov byte [ebp - 5], 0x78
mov byte [ebp - 0x10], 0x65
mov byte [ebp - 0xf], 0x61
mov byte [ebp - 0xc], 0x54
mov byte [ebp - 0xb], 0x68
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 4], eax
pop edi
xor eax, eax
inc eax
leave
ret

Function at 0x401ff1
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x110], 6
sbb eax, eax
inc eax
leave
ret

Function at 0x40202a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, eax
call fcn.00401ff1
test eax, eax
je 0x4020bb
call fcn.00401f6e
mov ebx, dword [esi + 4]
xor edx, edx
xor eax, eax
cmp ebx, edx
je 0x4020d3
push edi
push 8
pop esi
mov ecx, esi
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0xc], edx
lea edi, [ebp - 8]
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
push edx
push edx
push edx
push 1
push dword [ebp + 0x10]
lea eax, [ebp + 0x14]
push dword [ebp + 0xc]
mov dword [ebp - 0x30], 0x24
push dword [ebp + 8]
mov dword [ebp - 0x2c], 0x10003
push edx
push 0x1fffff
push eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], 0x10004
mov dword [ebp - 0x18], 4
mov dword [ebp + 0x14], edx
call ebx
neg eax
sbb eax, eax
not eax
and eax, dword [ebp + 0x14]
pop edi
jmp 0x4020d3
push dword [ebp + 0x14]
xor edx, edx
push 4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edx
push edx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
pop esi
pop ebx
leave
ret 0x10
Function at 0x402403
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
call fcn.00402128
push dword [esp + 0x10]
call fcn.0040cc78
mov edi, eax
cmp edi, 0xffffffff
pop ecx
je 0x402459
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [esi + 4], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
push dword [esi + 4]
mov dword [esi], eax
push eax
push edi
call fcn.0040c0de
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x402452
mov eax, dword [esi]
cmp dword [eax], 0x66676572
je 0x402452
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
ret 4

Function at 0x4027ea
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0xc]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x4027f1
sub eax, ecx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push 1
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret

Function at 0x402839
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 0x402872
mov ecx, dword [ebp - 4]
cmp ecx, 2
jb 0x40286e
shr ecx, 1
and word [esi + ecx*2], ax
leave
ret
and word [esi], 0
leave
ret

Function at 0x402bf7
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push dword [ebp + 0x18]
je 0x402c15
push dword [esi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004028b6
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 0x402c28
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20000
call fcn.004133a0
cmp dword [ebp + 8], 0
je 0x402c8d
test esi, esi
je 0x402c7b
push 0x22
push esi
call sub.msvcrt.dll_wcschr
test eax, eax
pop ecx
pop ecx
je 0x402c7b
and word [ebp - 0x20000], 0
push esi
push str.__s_
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 0x402c7f
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 0x402dd8
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4004
call fcn.004133a0
push esi
xor eax, eax
cmp dword [ebp + 8], eax
push 0x4000
push eax
mov word [ebp - 0x4004], ax
lea eax, [ebp - 0x4002]
push eax
je 0x402e34
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x4004]
push eax
push dword [edi]
push dword [ebp + 0x14]
call fcn.0040bfc2
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 0x402e77
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 0x18]
lea eax, [ebp - 0x4004]
push 0x2000
push eax
push 0x4144cc
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
lea eax, [ebp - 0x4004]
sbb esi, esi
push edi
push eax
neg esi
call fcn.0040cfb3
add esp, 0xc
mov eax, esi
pop esi
leave
ret
Function at 0x403e91
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi], 0
jne 0x403ef3
push edi
push str.psapi.dll
call fcn.0040cd66
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.EnumProcessModulesEx
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.GetModuleFileNameExW
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.EnumProcesses
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.GetModuleInformation
push dword [esi]
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x10], eax
pop edi
ret

Function at 0x403f1c
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
push ebx
push esi
mov esi, dword [ebp + 8]
add esi, 0x2c
call fcn.00401000
xor ebx, ebx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x228
mov dword [ebp - 4], eax
lea eax, [ebp - 0x670]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x674]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x674], 0x22c
call sub.KERNEL32.dll_Process32FirstW
lea eax, [ebp - 0x674]
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x404096
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
lea eax, [ebp - 0x23c]
call fcn.0040116e
mov eax, dword [ebp - 0x66c]
mov ecx, dword [ebp - 0x65c]
push eax
push ebx
push 0x410
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x2c], ecx
call edi
mov esi, eax
cmp esi, ebx
jne 0x403fdf
call fcn.0040d3df
test eax, eax
je 0x40406c
push dword [ebp - 0x23c]
push ebx
push 0x1000
call edi
mov esi, eax
cmp esi, ebx
je 0x40406c
push 0x208
lea eax, [ebp - 0x446]
push ebx
push eax
mov word [ebp - 0x448], bx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x448]
push eax
mov eax, dword [ebp + 8]
push esi
call fcn.00403ef4
cmp word [ebp - 0x448], bx
je 0x40401e
cmp word [ebp - 0x448], 0x3f
jne 0x404039
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x448]
push eax
push esi
mov dword [ebp - 8], 0x104
call fcn.00403b27
add esp, 0xc
lea eax, [ebp - 0x448]
lea ebx, [ebp - 0x238]
call fcn.00403d3b
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.00403ad1
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
lea eax, [ebp - 0x23c]
push eax
mov eax, dword [ebp + 8]
add eax, 0x2c
call fcn.004011ad
lea eax, [ebp - 0x674]
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x403f8b
pop edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
leave
ret 4

Function at 0x40472c
Capabilities:
Terminate process

Disassembly:
cmp dword [0x418724], 2
jne 0x40473d
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
ret
Function at 0x406082
Capabilities:
Delete file
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
mov esi, eax
push esi
call fcn.00404b8c
test eax, eax
je 0x4060a6
lea edi, [esi + 0x6b0]
call fcn.0040d7ae
jmp 0x40610a
lea edi, [ebp - 0x208]
call fcn.0040c863
mov eax, dword [esi + 0x69c]
push 1
push 1
push 2
mov ecx, edi
push ecx
push eax
call fcn.00405add
test eax, eax
je 0x40610a
push dword [esi + 0x208]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4060e5
mov eax, edi
push eax
call fcn.0040d540
pop ecx
jmp 0x4060eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4060fd
push dword [esi + 0x208]
mov ecx, eax
call fcn.0040d5e6
pop ecx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
leave
ret
Function at 0x40786d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.004133a0
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]
lea eax, [ebp - 0x2004]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4078ba
push ebx
lea ecx, [ebp - 4]
push ecx
sub eax, esi
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 0x4078dd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8004
call fcn.004133a0
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]
lea eax, [ebp - 0x8004]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40792e
push ebx
lea ecx, [ebp - 4]
push ecx
sub eax, esi
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 0x4084a6
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x4c4
push ebx
push ebp
xor ebx, ebx
cmp dword [esi + 0x2bc], ebx
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov ebp, 0x1003
je 0x408576
cmp dword [esi + 0x2c4], ebx
je 0x408539
push 0x2b0
lea eax, [esp + 0x224]
push ebx
push eax
mov dword [esp + 0x228], ebx
call sub.msvcrt.dll_memset
push 0x208
lea eax, [esp + 0x22]
push ebx
push eax
mov word [esp + 0x28], bx
call sub.msvcrt.dll_memset
add esp, 0x18
push 0x104
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x4001
push 0x2b4
lea eax, [esp + 0x224]
push eax
push ebx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov dword [esi + 0x2b0], eax
push eax
jmp 0x40856b
call fcn.0040bd08
push 0x60
pop ecx
shl eax, 4
xor edx, edx
div ecx
push 1
push 1
push 0x19
push eax
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push 1
push eax
mov dword [esi + 0x2b0], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push dword [esi + 0x2b0]
push 1
push ebp
push dword [esi + 0x2a8]
call edi
cmp dword [esi + 0x2c0], ebx
je 0x40862f
cmp dword [esi + 0x2c4], ebx
je 0x4085f3
push 0x2b0
lea eax, [esp + 0x224]
push ebx
push eax
mov dword [esp + 0x228], ebx
call sub.msvcrt.dll_memset
push 0x208
lea eax, [esp + 0x22]
push ebx
push eax
mov word [esp + 0x28], bx
call sub.msvcrt.dll_memset
add esp, 0x18
push 0x104
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x4000
push 0x2b4
lea eax, [esp + 0x224]
push eax
push ebx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov dword [esi + 0x2b4], eax
push eax
jmp 0x408625
call fcn.0040bd08
push 0x60
pop ecx
shl eax, 5
xor edx, edx
div ecx
push 1
push 1
push 0x19
push eax
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push 1
push eax
mov dword [esi + 0x2b4], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push dword [esi + 0x2b4]
push ebx
push ebp
push dword [esi + 0x2a8]
call edi
call fcn.0040bd08
push 0x60
pop ecx
shl eax, 4
xor edx, edx
div ecx
push 1
push 1
push 0x19
mov edi, eax
push edi
push edi
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
mov dword [esi + 0x2ac], eax
call ebp
push 0x1000
push edi
push edi
push ebx
push 0x85
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
push ebx
mov dword [esp + 0x10], eax
call ebp
push 0x1000
push edi
push edi
push ebx
push 0x86
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
push ebx
push dword [esi + 0x2ac]
mov ebp, eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov edi, dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
mov ebx, eax
push ebx
push dword [esp + 0x10]
push dword [esi + 0x2ac]
call edi
push ebx
push ebp
push dword [esi + 0x2ac]
call edi
push dword [esp + 0xc]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
call edi
push ebp
call edi
push dword [esi + 0x2ac]
push dword [esi + 0x2a8]
call fcn.0040e39b
pop ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x4c4
ret
Function at 0x4096d8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x10], eax
mov eax, edi
call fcn.004081a3
and dword [ebp - 4], 0
test eax, eax
mov dword [ebp - 8], eax
jle 0x409766
cmp dword [ebp + 8], 0
je 0x409723
mov eax, dword [ebp - 4]
push 0x64
cdq
pop ecx
idiv ecx
test edx, edx
jne 0x409723
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x10]
cmp eax, 0x1f4
ja 0x409766
mov ebx, dword [esi + 0xc]
add ebx, dword [ebp - 4]
cmp ebx, dword [ebp - 8]
jl 0x409737
test byte [esi + 0x10], 0x20
je 0x409766
sub ebx, dword [ebp - 8]
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
mov edx, ebx
mov eax, edi
call fcn.004091c0
test eax, eax
je 0x40975b
push dword [ebp + 8]
push dword [ebp - 0xc]
call fcn.00407e16
test eax, eax
jne 0x409770
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jl 0x409700
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 4
mov eax, ebx
jmp 0x409769

Function at 0x40a22a
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.004133a0
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, 0x418cf8
push edi
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x4144cc
push dword [ebp + 8]
mov esi, 0x418f08
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x40a291
cmp dword [ebp + 0x10], 0
jne 0x40a291
xor eax, eax
jmp 0x40a29f
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 0x40a2a3
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.004133a0
and word [ebp - 0x2004], 0
push 0x2000
lea eax, [ebp - 0x2002]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x418cf8
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x4144cc
push dword [ebp + 8]
push 0x418f08
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x40a31c
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x2004]
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x40a309
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x40a320
Capabilities:
Read .ini file

Disassembly:
and word [esi], 0
push 0x418cf8
push dword [esp + 0xc]
push esi
push 0x4144cc
push dword [esp + 0x14]
push 0x418f08
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, esi
ret
Function at 0x40b61a
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push edi
push dword [ebp + 0xc]
mov ebx, eax
call fcn.0040cc78
mov edi, eax
cmp edi, 0xffffffff
pop ecx
je 0x40b681
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test ebx, ebx
mov esi, eax
je 0x40b648
mov dword [ebx], esi
mov ebx, dword [ebp + 8]
push esi
mov eax, ebx
call fcn.0040b3f0
test eax, eax
je 0x40b673
mov eax, dword [ebx]
push esi
push eax
push edi
call fcn.0040c0de
add esp, 0xc
test eax, eax
jne 0x40b677
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x40b677
or dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
jmp 0x40b68a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret 8

Function at 0x40b8d2
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, eax
mov eax, dword [esi]
cmp eax, 0xffffffff
push edi
jne 0x40b90f
lea edi, [esi + 4]
mov ecx, edi
call fcn.0040c6ea
mov dword [esi + 0x28c], eax
lea eax, [esi + 0x290]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi], eax
mov dword [ebp - 4], ecx
jmp 0x40b929
lea ecx, [esi + 0x290]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov dword [ebp - 4], eax
jne 0x40b92f
call fcn.0040b4d9
cmp dword [ebp - 4], 0
je 0x40b987
lea edx, [esi + 0x768]
push ebx
lea ebx, [esi + 0x4e0]
lea ecx, [esi + 0x2bc]
mov dword [ebp - 8], edx
lea esi, [edx + 2]
mov ax, word [edx]
inc edx
inc edx
test ax, ax
jne 0x40b948
sub edx, esi
mov esi, ecx
sar edx, 1
lea edi, [esi + 2]
mov ax, word [esi]
inc esi
inc esi
test ax, ax
jne 0x40b95b
sub esi, edi
sar esi, 1
lea eax, [esi + edx + 1]
cmp eax, 0x143
jae 0x40b982
push ecx
mov ecx, dword [ebp - 8]
mov eax, ebx
call fcn.0040d37e
pop ecx
jmp 0x40b986
and word [ebx], 0
pop ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret

Function at 0x40bd2d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x30], str.RunAs
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x20], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
leave
ret