joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403169
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi], 0
jne 0x40320b
push edi
push 0x412990
call fcn.004074f2
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [esp], str.CryptAcquireContextW
push eax
mov dword [esi], eax
call edi
push str.CryptReleaseContext
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.CryptCreateHash
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.CryptGetHashParam
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.CryptHashData
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.CryptDestroyHash
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.CryptDecrypt
push dword [esi]
mov dword [esi + 0x18], eax
call edi
push str.CryptDeriveKey
push dword [esi]
mov dword [esi + 0x1c], eax
call edi
push str.CryptDuplicateKey
push dword [esi]
mov dword [esi + 0x20], eax
call edi
push str.CryptImportKey
push dword [esi]
mov dword [esi + 0x24], eax
call edi
push str.CryptDestroyKey
push dword [esi]
mov dword [esi + 0x28], eax
call edi
mov dword [esi + 0x2c], eax
pop edi
ret

Function at 0x403808
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x300
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
call fcn.00403610
mov edi, dword [ebp + 0x10]
cmp edi, dword [ebp + 0x18]
jae 0x403827
mov dword [ebp + 0x18], edi
mov esi, 0xff
xor ebx, ebx
push esi
lea eax, [ebp - 0xff]
push ebx
push eax
mov byte [ebp - 0x100], bl
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x1ff]
push ebx
push eax
mov byte [ebp - 0x200], bl
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x2ff]
push ebx
push eax
mov byte [ebp - 0x300], bl
call sub.msvcrt.dll_memset
push dword [ebp + 0x18]
lea eax, [ebp - 0x100]
push dword [ebp + 0x14]
push eax
call sub.msvcrt.dll_memcpy
push dword [ebp + 0x18]
lea eax, [ebp - 0x200]
push dword [ebp + 0x14]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0x3c
xor eax, eax
cmp edi, ebx
jbe 0x4038ac
xor byte [ebp + eax - 0x100], 0x5c
xor byte [ebp + eax - 0x200], 0x36
inc eax
cmp eax, edi
jb 0x403897
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x300]
push eax
push dword [ebp + 0x20]
lea eax, [ebp - 0x200]
push dword [ebp + 0x1c]
push edi
push eax
mov eax, dword [ebp + 8]
push esi
call fcn.004036f3
cmp esi, 0x8003
jne 0x4038da
push 0x10
pop eax
jmp 0x4038e1
mov eax, esi
call fcn.00403643
push dword [ebp + 0x24]
push eax
lea eax, [ebp - 0x300]
push eax
push edi
lea eax, [ebp - 0x100]
push eax
mov eax, dword [ebp + 8]
push esi
call fcn.004036f3
pop edi
pop esi
pop ebx
leave
ret 0x20
Function at 0x403b4b
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x304
push esi
push edi
mov edi, dword [ebp + 8]
push 0x14
pop esi
mov dword [ebp - 4], esi
call fcn.00403610
mov edi, dword [ebp + 0x10]
cmp edi, esi
jae 0x403b6e
mov dword [ebp - 4], edi
push ebx
mov esi, 0xff
xor ebx, ebx
push esi
lea eax, [ebp - 0x203]
push ebx
push eax
mov byte [ebp - 0x204], bl
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x103]
push ebx
push eax
mov byte [ebp - 0x104], bl
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x303]
push ebx
push eax
mov byte [ebp - 0x304], bl
call sub.msvcrt.dll_memset
push dword [ebp - 4]
lea eax, [ebp - 0x204]
push dword [ebp + 0x14]
push eax
call sub.msvcrt.dll_memcpy
push dword [ebp - 4]
lea eax, [ebp - 0x104]
push dword [ebp + 0x14]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0x3c
xor eax, eax
cmp edi, ebx
pop ebx
jbe 0x403bf5
xor byte [ebp + eax - 0x204], 0x5c
xor byte [ebp + eax - 0x104], 0x36
inc eax
cmp eax, edi
jb 0x403be0
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x304]
push eax
push dword [ebp + 0x1c]
lea eax, [ebp - 0x104]
push dword [ebp + 0x18]
push edi
push eax
mov eax, dword [ebp + 8]
push esi
call fcn.004036f3
cmp esi, 0x8003
jne 0x403c23
push 0x10
pop eax
jmp 0x403c2a
mov eax, esi
call fcn.00403643
push dword [ebp + 0x20]
push eax
lea eax, [ebp - 0x304]
push eax
push edi
lea eax, [ebp - 0x204]
push eax
mov eax, dword [ebp + 8]
push esi
call fcn.00403790
pop edi
pop esi
leave
ret 0x1c
Function at 0x403cd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0x88
push ebx
push edi
mov edi, dword [ebp + 0x6c]
call fcn.00403610
xor ebx, ebx
push 0x3f
lea eax, [ebp - 0x23]
push ebx
push eax
mov dword [ebp + 0x5c], ebx
mov byte [ebp - 0x24], bl
call sub.msvcrt.dll_memset
push 0x3f
lea eax, [ebp + 0x1d]
push ebx
push eax
mov byte [ebp + 0x1c], bl
call sub.msvcrt.dll_memset
add esp, 0x18
cmp esi, 0x8003
jne 0x403d18
push 0x10
pop edi
jmp 0x403d21
mov eax, esi
call fcn.00403643
mov edi, eax
cmp esi, 0x800e
mov dword [ebp + 0x60], 0x40
jne 0x403d37
mov dword [ebp + 0x60], 0x80
lea eax, [ebp - 0x24]
push eax
push 0x14
push dword [ebp + 0x74]
push 0x14
push dword [ebp + 0x70]
push dword [ebp + 0x60]
push esi
push dword [ebp + 0x6c]
call fcn.00403808
cmp dword [ebp + 0x78], 1
jne 0x403d68
push edi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x1c]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 0x78]
dec eax
cmp eax, ebx
jbe 0x403db9
mov dword [ebp + 0x78], eax
lea eax, [ebp + 0x1c]
push eax
push edi
lea eax, [ebp - 0x24]
push eax
push 0x14
push dword [ebp + 0x70]
push dword [ebp + 0x60]
push esi
push dword [ebp + 0x6c]
call fcn.00403808
mov dword [ebp + 0x5c], eax
xor eax, eax
cmp edi, ebx
jbe 0x403da3
mov cl, byte [ebp + eax - 0x24]
xor byte [ebp + eax + 0x1c], cl
inc eax
cmp eax, edi
jb 0x403d96
push edi
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
dec dword [ebp + 0x78]
jne 0x403d73
push edi
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0x7c]
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0x5c]
add esp, 0xc
pop edi
pop ebx
add ebp, 0x64
leave
ret 0x14

Function at 0x404003
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0x10]
mov ebx, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00403f21
mov edi, eax
test edi, edi
je 0x404083
push dword [ebp + 0xc]
call fcn.004061f2
cmp eax, 0xffffffff
pop ecx
mov dword [ebp + 0xc], eax
je 0x404081
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
lea esi, [ebx + 0xa4]
push edi
mov eax, esi
call fcn.00407baa
cmp edi, 0x32
jbe 0x404074
mov eax, dword [esi]
push edi
push eax
push dword [ebp + 0xc]
call fcn.00406f3a
add esp, 0xc
push 0xa0
push dword [esi]
add ebx, 4
push ebx
mov edi, eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x404076
xor edi, edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x404083
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4040bb
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
mov eax, 0x21a8
call fcn.00411350
and dword [ebp + 0x64], 0
push ebx
push esi
mov esi, dword [ebp + 0x74]
mov ebx, dword [esi + 0xa4]
push edi
mov edi, 0xfff
push edi
lea eax, [ebp - 0x213b]
push 0
push eax
mov byte [ebp - 0x213c], 0
call sub.msvcrt.dll_memset
push edi
lea eax, [ebp - 0x113b]
push 0
push eax
mov byte [ebp - 0x113c], 0
call sub.msvcrt.dll_memset
mov eax, dword [ebx + 0x68]
add esp, 0x18
cmp eax, 0xbb8
jae 0x4042e1
push eax
lea edi, [ebx + 0xa0]
lea eax, [ebp - 0x213c]
push edi
push eax
call sub.msvcrt.dll_memcpy
push dword [ebx + 0x68]
lea eax, [ebp - 0x113c]
push edi
push eax
call sub.msvcrt.dll_memcpy
xor eax, eax
mov byte [ebp + 0x50], 0
lea edi, [ebp + 0x51]
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
push 0x3f
stosb byte es:[edi], al
lea eax, [ebp - 0x3b]
push 0
push eax
mov byte [ebp - 0x3c], 0
call sub.msvcrt.dll_memset
push 0x10
lea eax, [ebx + 0x84]
push eax
lea eax, [ebp + 0x50]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0x30
lea eax, [ebp - 0x3c]
push eax
mov byte [ebp + 0x63], 1
push dword [ebx + 0x94]
lea eax, [ebp + 0x50]
push eax
push dword [ebp + 0x7c]
push esi
mov esi, dword [ebx + 0x98]
call fcn.00403cd0
push 0x20
pop eax
push eax
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp + 0x10]
push eax
mov byte [ebp + 4], 8
mov dword [ebp + 8], 0x6610
mov byte [ebp + 5], 2
call sub.msvcrt.dll_memcpy
mov esi, dword [ebp + 0x74]
add esp, 0xc
lea eax, [ebp + 0x68]
push eax
push 0x2c
lea eax, [ebp + 4]
push eax
push dword [esi]
mov eax, dword [esi + 0xb4]
xor edi, edi
mov dword [ebp + 0x68], edi
call fcn.00403334
cmp dword [ebp + 0x68], edi
je 0x4042dc
mov eax, dword [ebx + 0x68]
mov dword [ebp + 0x74], eax
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp - 0x113c]
push eax
push dword [ebp + 0x68]
mov eax, dword [esi + 0xb4]
call fcn.004032e5
push dword [ebp + 0x68]
mov eax, dword [esi + 0xb4]
call fcn.00403361
xor eax, eax
mov cl, byte [ebp + eax - 0x1c]
xor byte [ebp + eax - 0x113c], cl
inc eax
cmp eax, 0x10
jl 0x404214
push 0x7f
lea eax, [ebp - 0x13b]
push edi
push eax
mov byte [ebp - 0x13c], 0
call sub.msvcrt.dll_memset
push 0x7f
lea eax, [ebp - 0xbb]
push edi
push eax
mov byte [ebp - 0xbc], 0
call sub.msvcrt.dll_memset
add esp, 0x18
lea eax, [ebp - 0x13c]
push eax
push 0x10
lea eax, [ebp - 0x113c]
push eax
push 0x14
push dword [ebp + 0x7c]
mov edi, 0x80
push edi
push dword [ebx + 0x98]
push esi
call fcn.00403808
lea eax, [ebp - 0xbc]
push eax
push 0x40
lea eax, [ebp - 0x10ec]
push eax
push 0x40
lea eax, [ebp - 0x13c]
push eax
push edi
push dword [ebx + 0x98]
push esi
call fcn.00403808
push 0x40
lea eax, [ebp - 0x112c]
push eax
lea eax, [ebp - 0xbc]
push eax
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x4042dc
push dword [ebp + 0x78]
lea eax, [ebp - 0x10ec]
push 0x40
push eax
push 0x8004
mov eax, esi
call fcn.0040366e
mov dword [ebp + 0x64], 1
mov eax, dword [ebp + 0x64]
jmp 0x4042ed
mov dword [esi + 0x31c], 0xfffffffe
xor eax, eax
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret 0xc
Function at 0x406224
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call sub.msvcrt.dll_wcslen
pop ecx
add eax, eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
leave
ret

Function at 0x4063d3
Capabilities:
Get file size
Read file on windows
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [ebp + 8]
call fcn.004061f2
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 8], eax
je 0x406465
push ebx
push esi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
lea eax, [esi + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x40644e
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push 0
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push esi
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x40644e
shr esi, 1
and word [edi + esi*2], 0
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x406457
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
jmp 0x40646e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 4]
leave
ret

Function at 0x4067b9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x406983
Capabilities:
Get common file path

Disassembly:
cmp word [0x4172e8], 0
push esi
mov esi, 0x4172e8
jne 0x4069a4
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
mov dword [0x4174f4], eax
push esi
push dword [esp + 0xc]
call sub.msvcrt.dll_wcscpy
mov eax, dword [0x4174f4]
pop ecx
pop ecx
pop esi
ret

Function at 0x4069b7
Capabilities:
Get common file path

Disassembly:
cmp word [0x4174f8], 0
push esi
mov esi, 0x4174f8
jne 0x4069d8
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
mov dword [0x417704], eax
push esi
push dword [esp + 0xc]
call sub.msvcrt.dll_wcscpy
mov eax, dword [0x417704]
pop ecx
pop ecx
pop esi
ret

Function at 0x4069eb
Capabilities:
Get common file path

Disassembly:
cmp word [0x417708], 0
push esi
mov esi, 0x417708
jne 0x406a40
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call fcn.004072ca
test eax, eax
pop ecx
je 0x406a2f
push ebx
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
call fcn.00406248
mov ebx, esi
call fcn.00406f78
push esi
call sub.msvcrt.dll_wcslen
pop ecx
pop ebx
jmp 0x406a3b
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
mov dword [0x417914], eax
push esi
push dword [esp + 0xc]
call sub.msvcrt.dll_wcscpy
mov eax, dword [0x417914]
pop ecx
pop ecx
pop esi
ret
Function at 0x406da1
Capabilities:
Create process on windows

Disassembly:
push 5
mov eax, 0x4124b4
push eax
push eax
push dword [esp + 0x14]
push 0x412c60
push dword [esp + 0x18]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x20
pop ecx
cmp ecx, eax
sbb eax, eax
neg eax
ret

Function at 0x407362
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
push esi
push edi
lea eax, [ebp - 0x250]
push eax
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4073e3
lea eax, [ebp - 0x224]
push 0x412c58
push eax
call sub.msvcrt.dll_wcscmp
test eax, eax
pop ecx
pop ecx
je 0x4073b5
lea eax, [ebp - 0x224]
push 0x412c50
push eax
call sub.msvcrt.dll_wcscmp
test eax, eax
pop ecx
pop ecx
jne 0x4073c9
lea eax, [ebp - 0x250]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x407387
jmp 0x4073dc
mov edi, dword [ebp + 0xc]
mov ecx, 0x94
lea esi, [ebp - 0x250]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
inc esi
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4079f3
Capabilities:
Enumerate files on windows

Disassembly:
push ecx
push esi
mov esi, eax
mov eax, dword [esi]
cmp eax, 0xffffffff
push edi
jne 0x407a2d
lea edi, [esi + 4]
mov ecx, edi
call fcn.00406881
mov dword [esi + 0x408], eax
lea eax, [esi + 0x40c]
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 [esp + 8], ecx
jmp 0x407a48
lea ecx, [esi + 0x40c]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
mov dword [esp + 8], eax
jne 0x407a4f
call fcn.00407a99
cmp dword [esp + 8], 0
je 0x407a91
push ebx
lea edi, [esi + 0x65c]
lea ebx, [esi + 0x438]
push ebp
add esi, 0xa5e
push esi
call sub.msvcrt.dll_wcslen
push ebx
mov ebp, eax
call sub.msvcrt.dll_wcslen
lea eax, [eax + ebp + 1]
cmp eax, 0x200
pop ecx
pop ecx
jae 0x407a8b
push ebx
push esi
mov eax, edi
call fcn.0040695f
pop ecx
pop ecx
jmp 0x407a8f
and word [edi], 0
pop ebp
pop ebx
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret
Function at 0x407c22
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push edi
push dword [ebp + 8]
mov edi, eax
call fcn.004061f2
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
je 0x407ca0
push esi
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x407c53
mov dword [eax], esi
lea eax, [esi + 4]
push eax
mov eax, edi
call fcn.00407baa
test eax, eax
je 0x407c92
mov eax, dword [edi]
mov byte [esi + eax], 0
mov eax, dword [edi]
mov byte [eax + esi + 1], 0
mov eax, dword [edi]
mov byte [eax + esi + 2], 0
mov edi, dword [edi]
push esi
push edi
push ebx
call fcn.00406f3a
add esp, 0xc
test eax, eax
jne 0x407c96
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
jmp 0x407c96
or dword [ebp - 4], 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
jmp 0x407ca9
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 0x408337
Capabilities:
Read .ini file

Disassembly:
and word [esi], 0
push 0x416c08
push dword [esp + 0xc]
push esi
push 0x4124b4
push dword [esp + 0x14]
push 0x416e18
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
mov eax, esi
ret

Function at 0x40835c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00411350
and word [ebp - 0x2004], 0
push 0x2000
lea eax, [ebp - 0x2002]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x416c08
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x4124b4
push dword [ebp + 8]
push 0x416e18
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x4083cb
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 0x4083cf
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00411350
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, 0x416c08
push edi
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x4124b4
push dword [ebp + 8]
mov esi, 0x416e18
push esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x408436
cmp dword [ebp + 0x10], 0
jne 0x408436
xor eax, eax
jmp 0x408444
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 0x4087bb
Capabilities:
Read .ini file

Disassembly:
push dword [esp + 4]
call fcn.004067b9
test eax, eax
pop ecx
je 0x408842
push esi
push edi
push dword [esp + 0xc]
mov edi, 0x416c08
push edi
call sub.msvcrt.dll_wcscpy
push str.general
mov esi, 0x416e18
push esi
call sub.msvcrt.dll_wcscpy
add esp, 0x10
push edi
push 0
push 0x412d50
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, 0x416ea8
mov dword [0x416ea0], eax
call fcn.00408337
push 0x3f
push str.TranslatorName
mov esi, 0x416f28
call fcn.00408337
push 0xff
push str.TranslatorURL
mov esi, 0x416fa8
call fcn.00408337
add esp, 0x18
pop edi
pop esi
ret

Function at 0x40978a
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.00408d7e
and dword [ebp - 4], 0
test eax, eax
mov dword [ebp - 8], eax
jle 0x409818
cmp dword [ebp + 8], 0
je 0x4097d5
mov eax, dword [ebp - 4]
push 0x64
cdq
pop ecx
idiv ecx
test edx, edx
jne 0x4097d5
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [ebp - 0x10]
cmp eax, 0x1f4
ja 0x409818
mov ebx, dword [esi + 0xc]
add ebx, dword [ebp - 4]
cmp ebx, dword [ebp - 8]
jl 0x4097e9
test byte [esi + 0x10], 0x20
je 0x409818
sub ebx, dword [ebp - 8]
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
mov eax, ebx
mov ecx, edi
call fcn.00409507
test eax, eax
je 0x40980d
push dword [ebp + 8]
push dword [ebp - 0xc]
call fcn.004096fb
test eax, eax
jne 0x409822
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jl 0x4097b2
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 4
mov eax, ebx
jmp 0x40981b

Function at 0x409d62
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8004
call fcn.00411350
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 0x409dd1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00411350
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 0x40d005
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push 1
push edi
call fcn.0040d473
and word [ebp - 0x250], 0
push 0x208
lea eax, [ebp - 0x24e]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x250]
add esp, 0xc
push eax
call fcn.004067e8
pop ecx
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call sub.msvcrt.dll_memset
and dword [ebp - 0x28], 0
lea eax, [ebp - 0x250]
mov dword [ebp - 0x2c], 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]
test eax, eax
je 0x40d094
push dword [edi + 0x208]
call dword [sym.imp.USER32.dll_DestroyWindow]
leave
ret

Function at 0x40d219
Capabilities:
Delete file
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push edi
push esi
call fcn.0040d201
test eax, eax
je 0x40d23a
lea edi, [esi + 0x6b0]
call fcn.004060df
jmp 0x40d29e
lea edi, [ebp - 0x208]
call fcn.00406664
mov eax, dword [esi + 0x69c]
push 1
push 1
push 2
mov ecx, edi
push ecx
push esi
call fcn.0040cfd2
test eax, eax
je 0x40d29e
push dword [esi + 0x208]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40d279
mov eax, edi
push eax
call fcn.004063d3
pop ecx
jmp 0x40d27f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x40d291
push dword [esi + 0x208]
mov ecx, eax
call fcn.0040626b
pop ecx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
pop edi
leave
ret

Function at 0x40e744
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
mov eax, esi
call fcn.0040e70d
test eax, eax
jne 0x40e76f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x40e7e3
call fcn.0040e6ed
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
xor ebx, ebx
test eax, eax
je 0x40e799
push str.LookupPrivilegeValueW
push dword [esi]
call edi
cmp eax, ebx
je 0x40e799
lea ecx, [ebp - 0x14]
push ecx
push str.SeDebugPrivilege
push ebx
call eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 2
mov dword [ebp - 8], eax
call fcn.0040e6ed
test eax, eax
je 0x40e7d0
push str.AdjustTokenPrivileges
push dword [esi]
call edi
cmp eax, ebx
je 0x40e7d0
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x18]
push ecx
push ebx
push dword [ebp - 8]
call eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret