joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a11ac
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x6960c8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a11ec
cmp byte [ebx], 0xa
jne 0x4a11ec
or byte [eax + edi + 0x28], 4
jmp 0x4a11f1
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a12ef
mov al, byte [edx]
cmp al, 0x1a
je 0x4a12d1
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a1220
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a1245
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a124f
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4a1202
jmp 0x4a12ef
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a12cc
cmp dword [ebp - 0xc], 0
je 0x4a12cc
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x6960c8]
test byte [eax + edi + 0x28], 0x48
je 0x4a12a6
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a1291
mov byte [esi], dl
jmp 0x4a12a2
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x6960c8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a12ef
cmp byte [ebp - 1], 0xa
jne 0x4a12b5
cmp esi, ebx
jne 0x4a12b5
mov byte [esi], 0xa
jmp 0x4a12ee
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040194c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a12ef
mov byte [esi], 0xd
jmp 0x4a12ee
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x6960c8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a12eb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a12ef
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a134b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x6960c8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a138e
cmp word [esi], dx
jne 0x4a138e
or byte [edi + eax + 0x28], 4
jmp 0x4a1393
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4a14e6
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4a14c6
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a13d5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a140b
cmp eax, edx
jae 0x4a1417
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4a13ad
jmp 0x4a14e6
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a14c2
cmp dword [ebp - 0x14], 0
je 0x4a14c2
mov eax, dword [ebx*4 + 0x6960c8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a149a
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a1463
mov word [esi], cx
jmp 0x4a1496
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x6960c8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x6960c8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x6960c8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a14e6
pop ebx
cmp word [ebp - 4], bx
jne 0x4a14ab
cmp esi, dword [ebp + 0xc]
jne 0x4a14ab
mov word [esi], bx
jmp 0x4a14e3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040194c
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a14e6
push 0xd
jmp 0x4a14df
mov ecx, dword [ebx*4 + 0x6960c8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a14dd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a14e6
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
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 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 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