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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [esi + 8]
and eax, dword [esi + 0xc]
push ebx
xor ebx, ebx
mov byte [esp + 0xb], bl
cmp eax, 0xffffffff
je 0x40b427
push dword [esi]
call fcn.0040a4f1
mov dword [esp + 0x18], eax
and eax, edx
mov dword [esp + 0x1c], edx
cmp eax, 0xffffffff
je 0x40b427
push ebx
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi]
call fcn.0040a4d1
test al, al
je 0x40b427
push ebx
lea eax, [esp + 0x10]
push eax
push 5
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40b417
cmp dword [esp + 0xc], 5
jne 0x40b417
or byte [esp + 0x14], 1
push ebx
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi]
call fcn.0040a4d1
test al, al
je 0x40b417
push ebx
lea eax, [esp + 0x10]
push eax
push 5
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b417
cmp dword [esp + 0xc], 5
jne 0x40b417
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov byte [esp + 0xb], 1
push ebx
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esi]
call fcn.0040a4d1
mov al, byte [esp + 0xb]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40b607
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push dword [ebp + 8]
push edi
call esi
test eax, eax
je 0x40b651
xor eax, eax
xor cl, cl
cmp dword [ebp + 8], eax
jbe 0x40b644
movzx edx, cl
mov dl, byte [ebp + edx + 0xc]
xor byte [eax + edi], dl
inc cl
cmp cl, 4
jne 0x40b63e
xor cl, cl
inc eax
cmp eax, dword [ebp + 8]
jb 0x40b62b
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
push edi
call esi
pop esi
leave
ret 8

Function at 0x40bf6f
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor bl, bl
jmp 0x40bf9a
cmp byte [ebp + 0x10], 0
jne 0x40bf89
cmp bl, 0xa
je 0x40bfb3
movzx eax, bl
add eax, 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
inc bl
push 0x20
push edi
call esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call fcn.0040a39d
test al, al
je 0x40bf7e
mov al, 1
jmp 0x40bfb5
xor al, al
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40c077
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call dword [ebp + 8]
test eax, eax
je 0x40c0e4
push edi
push dword [ebp + 0xc]
call fcn.004088d5
mov edi, eax
test edi, edi
je 0x40c0da
push dword [ebp + 0x10]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x40c0d4
push esi
push dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 8]
push 0x403170
push eax
call fcn.00405f54
add esp, 0xc
test eax, eax
jle 0x40c0d3
push dword [ebp + 8]
push esi
call fcn.00406b08
push dword [ebp + 8]
call fcn.004051e6
pop esi
push edi
call fcn.004051e6
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
ret 0x10
Function at 0x40cab3
Capabilities:
Delete registry key
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbe8
push esi
push edi
push 1
lea edi, [esp + 0x574]
call fcn.0041cc9c
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, edi
push eax
call esi
push 2
lea edi, [esp + 0x36c]
call fcn.0041cc9c
mov eax, edi
push eax
call esi
or dword [0x4239b0], 2
push 0
call fcn.0040c041
call fcn.0041be9c
lea ecx, [esp + 0x570]
call fcn.0040a860
mov ecx, edi
call fcn.0040a860
push 3
lea edi, [esp + 0x164]
call fcn.0041cc9c
mov eax, edi
push eax
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov esi, dword [sym.imp.USER32.dll_CharToOemW]
lea eax, [esp + 0x160]
push eax
lea eax, [esp + 0x574]
push eax
call esi
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x36c]
push eax
call esi
push 7
lea edi, [esp + 0xc]
pop eax
call fcn.0040f314
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x164]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x16c]
push eax
mov eax, edi
push eax
mov edi, 0x474
lea esi, [esp + 0x78c]
call fcn.00405f1d
add esp, 0x14
test eax, eax
jle 0x40cb9f
mov eax, esi
push eax
call fcn.00406ca6
cmp dword [0x423e78], 0xffffffff
jne 0x40cbb0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40cc52
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push esi
mov esi, ecx
push edi
mov edi, eax
test si, si
je 0x40cc86
push 2
mov eax, esi
pop edx
call fcn.0040cbb8
test al, al
je 0x40cc86
mov edi, dword [ebp + 8]
push 0x17
mov eax, esi
pop edx
call fcn.0040cbb8
mov ax, si
jmp 0x40ccd4
push 2
xor eax, eax
pop edx
call fcn.0040cbb8
test al, al
je 0x40ccd2
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x8c]
push eax
push dword [edi]
mov dword [ebp - 8], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x40ccc2
mov ax, word [ebp - 0x8a]
rol ax, 8
movzx esi, ax
jmp 0x40cc74
mov esi, dword [edi]
call fcn.00408589
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
leave
ret 4

Function at 0x40cf89
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
push 2
mov dword [ebp - 4], 0x104
call dword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
je 0x40cfda
mov eax, dword [ebp - 4]
test eax, eax
je 0x40cfda
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, esi
cmp word [esi], cx
je 0x40cfe2
movzx ecx, word [eax]
cmp ecx, 0x2f
je 0x40cfc9
cmp ecx, 0x5c
jne 0x40cfcf
push 0x7c
pop ecx
mov word [eax], cx
add eax, 2
cmp word [eax], 0
jne 0x40cfbc
jmp 0x40cfe2
push 6
pop eax
call fcn.0040f34a
pop esi
leave
ret
Function at 0x40deea
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov byte [ebp - 2], 1
test eax, eax
je 0x40df77
push ebx
push esi
push edi
lea edi, [ecx + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40df6c
mov esi, dword [edi - 8]
movzx ebx, byte [edi + 4]
mov eax, esi
mov byte [ebp - 1], 0
call fcn.004099e4
cmp eax, 0x1e
jb 0x40df68
lea eax, [ebp - 8]
push eax
push 0x40
push 0x1e
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x40df68
push 0
add ebx, 0xfffffffb
push ebx
push dword [ebp - 0x10]
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40df50
mov byte [ebp - 1], 1
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 0x1e
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp byte [ebp - 1], 0
jne 0x40df6c
mov byte [ebp - 2], 0
add edi, 0x10
dec dword [ebp - 0xc]
jne 0x40df01
pop edi
pop esi
pop ebx
mov al, byte [ebp - 2]
leave
ret

Function at 0x40dfe1
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
xor ecx, ecx
cmp ebx, esi
jbe 0x40e007
mov eax, dword [ebp + 8]
add eax, 0xc
cmp dword [eax - 0xc], esi
je 0x40e05c
mov dword [eax - 4], esi
mov byte [eax], 0
inc ecx
add eax, 0x10
cmp ecx, ebx
jb 0x40dff4
mov eax, ebx
imul eax, eax, 0x23
push edi
push 0x40
push 0x3000
push eax
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
cmp edi, esi
je 0x40e06a
mov dword [ebp - 4], esi
cmp ebx, esi
jbe 0x40e053
mov esi, dword [ebp + 8]
add esi, 8
mov eax, dword [esi - 4]
push edi
push dword [esi - 8]
call fcn.00409a29
test eax, eax
je 0x40e053
mov dword [esi], edi
add edi, eax
inc dword [ebp - 4]
mov byte [esi + 4], al
add esi, 0x10
cmp dword [ebp - 4], ebx
jb 0x40e031
cmp dword [ebp - 4], ebx
jne 0x40e060
mov al, 1
jmp 0x40e06c
xor al, al
jmp 0x40e06d
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.0040deea
xor al, al
pop edi
pop esi
leave
ret 4
Function at 0x40e9f2
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
sub eax, 0xa1
push ebx
push edi
je 0x40ea4f
push 3
pop ecx
sub eax, ecx
je 0x40ea46
sub eax, ecx
je 0x40ea3d
sub eax, 0x15a
je 0x40ea34
sub eax, ecx
je 0x40ea2b
sub eax, ecx
jne 0x40eac8
mov dword [ebp - 4], 0x209
xor bl, bl
jmp 0x40ea58
mov dword [ebp - 4], 0x206
jmp 0x40ea27
mov dword [ebp - 4], 0x203
jmp 0x40ea27
mov dword [ebp - 4], 0xa9
jmp 0x40ea56
mov dword [ebp - 4], 0xa6
jmp 0x40ea56
mov dword [ebp - 4], 0xa3
mov bl, 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov eax, dword [ebp + 8]
cmp dword [esi + 0x16c], eax
jne 0x40eab3
mov ecx, dword [esi + 0x168]
cmp ecx, dword [ebp + 0xc]
jne 0x40eab3
mov ecx, edi
sub ecx, dword [esi + 0x164]
cmp ecx, 0x3e8
ja 0x40eab3
test bl, bl
jne 0x40ea97
push 0xffffffffffffffe6
push eax
call dword [sym.imp.USER32.dll_GetClassLongW]
test al, 8
je 0x40eab0
xor eax, eax
mov dword [esi + 0x168], eax
mov dword [esi + 0x164], eax
mov dword [esi + 0x16c], eax
mov eax, dword [ebp - 4]
jmp 0x40eacb
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x168], ecx
mov dword [esi + 0x164], edi
mov dword [esi + 0x16c], eax
mov eax, dword [ebp + 0xc]
pop edi
pop ebx
leave
ret 8

Function at 0x40f314
Capabilities:
Encode data using xor

Disassembly:
movzx eax, ax
lea eax, [eax*8 + 0x4025f8]
xor edx, edx
xor ecx, ecx
cmp dx, word [eax + 2]
jae 0x40f341
push esi
mov edx, dword [eax + 4]
movzx esi, cx
mov dl, byte [edx + esi]
xor dl, byte [eax]
xor dl, cl
inc ecx
mov byte [esi + edi], dl
cmp cx, word [eax + 2]
jb 0x40f329
pop esi
movzx eax, word [eax + 2]
mov byte [eax + edi], 0
ret

Function at 0x40f34a
Capabilities:
Encode data using xor

Disassembly:
movzx eax, ax
lea eax, [eax*8 + 0x4025f8]
xor ecx, ecx
xor edx, edx
cmp cx, word [eax + 2]
jae 0x40f389
push ebx
push edi
mov edi, dword [eax + 4]
movzx ebx, byte [eax]
movzx ecx, dx
movsx di, byte [edi + ecx]
xor di, bx
xor di, dx
mov ebx, 0xff
and di, bx
inc edx
mov word [esi + ecx*2], di
cmp dx, word [eax + 2]
jb 0x40f360
pop edi
pop ebx
movzx eax, word [eax + 2]
xor ecx, ecx
mov word [esi + eax*2], cx
ret
Function at 0x40f4e0
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get program files directory
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8ac
push ebx
push esi
push 0x2a
lea esi, [ebp - 0x8c]
pop eax
call fcn.0040f34a
lea eax, [ebp - 0x49c]
push eax
xor ebx, ebx
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x40f661
lea eax, [ebp - 0x49c]
push eax
push eax
mov eax, esi
call fcn.0040aa77
test al, al
je 0x40f661
push 0x2c
lea esi, [ebp - 0x6c]
pop eax
call fcn.0040f34a
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x6a4]
push eax
mov eax, esi
call fcn.0040aa77
test al, al
je 0x40f661
lea eax, [ebp - 0x6a4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f661
push 0x2d
lea esi, [ebp - 0x38]
pop eax
call fcn.0040f34a
push 0x2e
lea esi, [ebp - 0x50]
pop eax
call fcn.0040f34a
push 0x2f
lea esi, [ebp - 0x10]
pop eax
call fcn.0040f34a
mov byte [ebp - 1], bl
push edi
movzx eax, byte [ebp - 1]
push eax
lea eax, [ebp - 0x38]
push eax
push 0xa
pop edx
lea edi, [ebp - 0x24]
call fcn.00405ed9
pop ecx
pop ecx
cmp eax, 1
jl 0x40f660
lea eax, [ebp - 0x6a4]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x50]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40f660
lea eax, [ebp - 0x6a4]
push eax
push 0x104
lea eax, [ebp - 0x294]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x40f653
lea eax, [ebp - 0x294]
cmp word [ebp - 0x294], bx
je 0x40f617
cmp word [eax], 0x2f
jne 0x40f60f
push 0x5c
pop ecx
mov word [eax], cx
add eax, 2
cmp word [eax], bx
jne 0x40f603
cmp esi, 1
jne 0x40f641
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x8ac]
push eax
lea eax, [ebp - 0x294]
call fcn.0040aa77
test al, al
je 0x40f653
lea ecx, [ebp - 0x8ac]
jmp 0x40f647
lea ecx, [ebp - 0x294]
mov edx, dword [ebp + 8]
call fcn.0040f667
test al, al
je 0x40f660
inc byte [ebp - 1]
cmp byte [ebp - 1], 0xfa
jb 0x40f58f
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40f667
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x36c
push esi
push edi
push 0x2b
lea esi, [ebp - 0x1c]
pop eax
mov dword [ebp - 0xc], edx
mov edi, ecx
call fcn.0040f34a
push edi
lea eax, [ebp - 0x36c]
push eax
mov eax, esi
call fcn.0040aa77
test al, al
je 0x40f748
xor esi, esi
push esi
push 0x80
push 2
push esi
push 1
push 0x40000000
lea eax, [ebp - 0x36c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x40f748
push ebx
push 0x30
lea edi, [ebp - 0x164]
pop eax
xor bl, bl
call fcn.0040f314
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 8]
push eax
mov edi, 0x146
push edi
lea eax, [ebp - 0x164]
push eax
push dword [ebp - 4]
call esi
test eax, eax
je 0x40f725
cmp dword [ebp - 8], edi
jne 0x40f725
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x40f71f
call fcn.00405d23
push 0
mov edi, eax
lea eax, [ebp - 8]
push eax
push edi
push ecx
push dword [ebp - 4]
call esi
test eax, eax
je 0x40f723
cmp dword [ebp - 8], edi
jne 0x40f723
mov bl, 1
jmp 0x40f725
xor bl, bl
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
pop ebx
jne 0x40f748
lea eax, [ebp - 0x36c]
push eax
call fcn.0040a548
pop edi
mov al, 1
pop esi
leave
ret

Function at 0x41065f
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
cmp dword [ebp + 0xc], 0xffffffff
je 0x41070f
test byte [ebp + 0x14], 2
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], 0x80
je 0x41069f
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4106a7
or eax, 0xffffffff
jmp 0x410773
call dword [sym.imp.WS2_32.dll_getsockname]
jmp 0x410693
cmp word [ebp - 0xa8], 2
jne 0x4106db
push 4
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp + 0xf], 1
call fcn.00405222
push 2
lea eax, [ebp - 0xa6]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00405222
jmp 0x410733
cmp word [ebp - 0xa8], 0x17
jne 0x410697
push 0x10
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp + 0xf], 4
call fcn.00405222
push 2
lea eax, [ebp - 0xa6]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00405222
jmp 0x410726
push 0x1c
push 0
lea eax, [ebp - 0x20]
push eax
call fcn.00405299
test byte [ebp + 0x14], 1
je 0x41072f
mov byte [ebp + 0xf], 4
mov dword [ebp - 4], 0x12
jmp 0x41073a
mov byte [ebp + 0xf], 1
mov dword [ebp - 4], 6
mov al, byte [ebp + 0x10]
mov byte [ebp + 0xd], al
push 4
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp + 0xc], 5
mov byte [ebp + 0xe], 0
call fcn.00405222
mov eax, dword [ebp - 4]
add eax, 4
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call fcn.00408210
xor ecx, ecx
test al, al
setne cl
mov eax, ecx
leave
ret 0x10
Function at 0x411048
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 0xc], 0xffffffff
je 0x41108f
test byte [ebp + 0x14], 2
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], 0x10
je 0x41107b
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x411083
or eax, 0xffffffff
jmp 0x4110ba
call dword [sym.imp.WS2_32.dll_getsockname]
jmp 0x411072
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov ax, word [ebp - 0x1a]
jmp 0x411095
and dword [ebp - 8], 0
xor eax, eax
mov word [ebp - 0xa], ax
mov al, byte [ebp + 0x10]
mov byte [ebp - 0xb], al
push 8
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov byte [ebp - 0xc], 0
call fcn.00408210
xor ecx, ecx
test al, al
setne cl
mov eax, ecx
leave
ret 0x10
Function at 0x4128cc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push dword [eax + 8]
xor esi, esi
test byte [eax], 2
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], esi
je 0x4128f0
mov edx, dword [eax + 4]
mov eax, dword [ecx + 8]
call fcn.00411368
jmp 0x4128f8
push dword [ecx + 8]
call fcn.0040a27f
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x412938
call fcn.0041c892
push esi
push esi
lea eax, [ebp - 0x10]
push eax
push 0x4126b5
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x412930
lea eax, [ebp - 4]
push eax
call fcn.00408953
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call fcn.004051e6
mov eax, dword [ebp - 8]
pop esi
leave
ret
Function at 0x4130ab
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
push ebx
push esi
mov esi, dword [ebp + 8]
push esi
push 0x4c
mov ebx, eax
pop eax
call fcn.00413058
push esi
push 0x4f
mov dword [ebp - 0x10], eax
pop eax
call fcn.00413058
push esi
push 0x50
mov dword [ebp - 0x14], eax
pop eax
call fcn.00413058
push esi
push 0x4d
mov dword [ebp - 0x18], eax
pop eax
call fcn.00413058
push esi
push 0x4e
mov dword [ebp - 0x20], eax
pop eax
call fcn.00413058
xor ebx, ebx
cmp dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
setne byte [ebp - 1]
cmp byte [ebp - 1], bl
je 0x413231
mov eax, dword [ebp - 0x18]
push edi
xor edi, edi
cmp eax, ebx
jne 0x413118
mov dword [ebp - 0x1c], ebx
jmp 0x413120
call fcn.004058f8
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], ebx
cmp dword [ebp - 0x14], ebx
je 0x41314f
push 0x44
lea esi, [ebp - 0x2c]
pop eax
call fcn.0040f34a
push dword [ebp - 0x14]
mov eax, esi
push eax
push 0xc
pop edx
lea edi, [ebp - 0x5c]
call fcn.00405ed9
pop ecx
pop ecx
mov eax, edi
call fcn.004058f8
mov edi, eax
mov ecx, dword [ebp - 8]
call fcn.00405d35
cmp ecx, ebx
je 0x4131cc
cmp eax, 1
jle 0x4131cc
mov ecx, eax
and ecx, 0x80000001
jns 0x41316f
dec ecx
or ecx, 0xfffffffe
inc ecx
jne 0x4131cc
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x2c], eax
call fcn.004051b6
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x4131cc
mov ecx, eax
mov eax, dword [ebp - 8]
call fcn.00405a23
test al, al
je 0x4131c4
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x2c]
push ebx
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
cmp eax, 1
jne 0x4131c4
push dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
call fcn.004055a2
push dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x28]
call fcn.004051e6
push 0x4b
lea esi, [ebp - 0xc0]
pop eax
call fcn.0040f34a
push 0x54
lea esi, [ebp - 0x44]
pop eax
call fcn.0040f34a
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp edx, ebx
mov eax, 0x4030e8
cmove edx, eax
cmp ecx, ebx
cmove ecx, eax
cmp dword [ebp - 0x1c], ebx
je 0x413201
mov eax, esi
push edx
mov edx, dword [ebp + 0x10]
push ecx
mov ecx, dword [edx]
push eax
push edi
push dword [ebp - 0x10]
lea eax, [ebp - 0xc0]
push dword [ebp + 8]
push eax
call fcn.00405d35
mov ebx, eax
mov eax, edx
call fcn.00405f67
add esp, 0x1c
push dword [ebp - 0xc]
call fcn.004051e6
pop edi
push dword [ebp - 0x10]
call fcn.0040b780
push dword [ebp - 0x14]
call fcn.0040b780
push dword [ebp - 0x18]
call fcn.0040b780
push dword [ebp - 0x20]
call fcn.0040b780
push dword [ebp - 8]
call fcn.0040b780
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret 0xc
Function at 0x413cdb
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x484
push ebx
push esi
push edi
push 8
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
call fcn.00405299
push 0x60
lea esi, [ebp - 0x70]
pop eax
call fcn.0040f34a
push 0x61
lea esi, [ebp - 0x30]
pop eax
call fcn.0040f34a
mov esi, 0x104
push esi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x70]
push eax
lea edi, [ebp - 0x278]
mov eax, 0x80000002
call fcn.0040930a
cmp eax, 0xffffffff
je 0x413d53
cmp eax, ebx
jbe 0x413d53
push esi
lea eax, [ebp - 0x480]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x480]
push eax
call fcn.00413a93
cmp dword [ebp - 4], ebx
jne 0x413dbe
push 0x62
lea esi, [ebp - 0x48]
pop eax
call fcn.0040f34a
mov eax, esi
mov dword [ebp - 0x18], 0x23
mov dword [ebp - 0x14], 0x1a
mov dword [ebp - 0x10], 0x26
mov dword [ebp - 0xc], eax
xor esi, esi
lea eax, [ebp - 0x278]
push eax
push ebx
push ebx
push dword [ebp + esi*4 - 0x18]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x413db5
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push 0x413aed
push 2
push 1
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x278]
call fcn.0040a91b
inc esi
cmp esi, 3
jb 0x413d7f
cmp dword [ebp - 4], ebx
jbe 0x413dd2
mov edi, dword [ebp - 8]
push 0xcb
push 0x63
pop eax
call fcn.0041293e
jmp 0x413dda
push dword [ebp - 8]
call fcn.004051e6
pop edi
pop esi
pop ebx
leave
ret

Function at 0x413ddf
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [ecx]
imul eax, eax, 0x8088405
push 0x20
push 0
push dword [esp + 0xc]
inc eax
push 0
push eax
mov dword [ecx], eax
call fcn.00408a56
push edx
push eax
call fcn.00408a8a
ret 4
Function at 0x413e04
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x108
push ebx
push esi
push edi
call fcn.00405d35
cdq
sub eax, edx
mov esi, eax
sar esi, 1
cmp esi, 0xff
jge 0x413f24
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x108]
call fcn.00405a23
test al, al
je 0x413f24
sub esi, 4
xor ebx, ebx
mov dword [ebp - 4], 0xcf671
test esi, esi
jle 0x413e70
push 8
lea ecx, [ebp - 4]
lea edi, [ebp + ebx - 0x108]
call fcn.00413ddf
movsx ecx, al
mov al, byte [edi]
rol al, cl
inc ebx
mov byte [edi], al
cmp ebx, esi
jl 0x413e51
mov dword [ebp - 4], 0x3039
mov dword [ebp - 8], 0x100
push esi
lea ecx, [ebp - 4]
call fcn.00413ddf
push esi
lea ecx, [ebp - 4]
movsx edi, al
call fcn.00413ddf
dec dword [ebp - 8]
movsx ecx, al
lea ecx, [ebp + ecx - 0x108]
mov bl, byte [ecx]
lea eax, [ebp + edi - 0x108]
mov dl, byte [eax]
mov byte [eax], bl
mov byte [ecx], dl
jne 0x413e7e
xor edi, edi
mov dword [ebp - 4], 0xa564
test esi, esi
jle 0x413ed7
push 0x100
lea ecx, [ebp - 4]
call fcn.00413ddf
xor byte [ebp + edi - 0x108], al
inc edi
cmp edi, esi
jl 0x413ebe
xor edi, edi
mov dword [ebp - 4], 0xd431
test esi, esi
jle 0x413efd
push 0x100
lea ecx, [ebp - 4]
call fcn.00413ddf
sub byte [ebp + edi - 0x108], al
inc edi
cmp edi, esi
jl 0x413ee4
xor eax, eax
test esi, esi
jle 0x413f17
movzx ecx, byte [ebp + eax - 0x108]
mov edx, dword [ebp + 8]
mov word [edx + eax*2], cx
inc eax
cmp eax, esi
jl 0x413f03
mov ecx, dword [ebp + 8]
xor eax, eax
mov word [ecx + esi*2], ax
mov eax, esi
jmp 0x413f26
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4