joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405121
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, eax
dec eax
test ecx, ecx
je 0x40515b
mov ecx, dword [ebp + 8]
push esi
lea edx, [eax + 1]
mov eax, dword [ebp + 0x10]
movzx esi, byte [ecx]
and eax, 0xff
xor eax, esi
mov esi, dword [0x4152e0]
inc ecx
mov eax, dword [esi + eax*4]
mov esi, dword [ebp + 0x10]
shr esi, 8
xor esi, eax
dec edx
mov dword [ebp + 0x10], esi
jne 0x405135
pop esi
mov eax, dword [ebp + 0x10]
pop ebp
ret

Function at 0x405445
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov byte [ebp - 4], 0x13
mov byte [ebp - 3], 0x35
mov byte [ebp - 2], 0x86
mov byte [ebp - 1], 7
call dword [0x41214c]
mov ebx, eax
push ebx
call fcn.00407c8f
mov esi, eax
pop ecx
test esi, esi
je 0x405493
xor edx, edx
test ebx, ebx
jbe 0x405493
sub edi, esi
mov eax, edx
lea ecx, [edx + esi]
and eax, 3
mov al, byte [ebp + eax - 4]
xor al, byte [edi + ecx]
inc edx
cmp edx, ebx
mov byte [ecx], al
jb 0x40547d
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40edbe
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov eax, dword [esp + 0x10]
mov ebp, esp
push esi
push edi
mov esi, dword [ebp + 0xc]
shr esi, 2
mov edx, dword [ebp + 8]
mov ecx, esi
dec esi
test ecx, ecx
jle 0x40edff
movzx edi, byte [edx]
inc edx
movzx ecx, byte [edx]
shl ecx, 8
inc edx
or edi, ecx
movzx ecx, byte [edx]
shl ecx, 0x10
inc edx
or edi, ecx
movzx ecx, byte [edx]
shl ecx, 0x18
inc edx
or edi, ecx
mov ecx, esi
xor eax, edi
dec esi
test ecx, ecx
jg 0x40edd7
xor esi, esi
mov ecx, dword [ebp + 0xc]
and ecx, 3
cmp ecx, 1
je 0x40ee26
cmp ecx, 2
je 0x40ee1d
cmp ecx, 3
jne 0x40ee2b
movzx esi, byte [edx]
shl esi, 0x10
inc edx
movzx ecx, byte [edx]
shl ecx, 8
inc edx
or esi, ecx
movzx ecx, byte [edx]
or esi, ecx
xor eax, esi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x401000
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push edi
push 9
push 0x408100
push 1
push dword [ebp + 8]
call esi
push 0x19
push 0x4087e4
push 0xe
push dword [ebp + 8]
call esi
call fcn.00401bff
call fcn.00401c50
lea ecx, [ebp - 0x44]
push 0xa
push ecx
push eax
mov dword [0x408838], eax
call fcn.00404ef6
add esp, 0xc
lea eax, [ebp - 0x1a8]
push 0x64
push eax
push 3
push dword [ebp + 8]
call esi
mov ebx, 0x4085dc
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ebx
lea eax, [ebp - 0x20c]
push 0x64
push eax
lea eax, [ebp - 0x1a8]
push eax
push 0x40704c
push str.Message
call edi
push ebx
lea eax, [ebp - 0x144]
push 0x64
push eax
mov ebx, str.NONE
lea eax, [ebp - 0x44]
push ebx
push eax
push str.Message
call edi
lea eax, [ebp - 0x144]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
lea eax, [ebp - 0x144]
jne 0x4010bd
lea eax, [ebp - 0x20c]
push eax
push 0x40850c
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0xac]
push 0x32
push eax
push 2
push dword [ebp + 8]
call esi
mov esi, 0x4085dc
lea eax, [ebp - 0xe0]
push esi
push 0x32
push eax
lea eax, [ebp - 0xac]
push eax
push 0x40704c
push str.TitleBar
call edi
push esi
lea eax, [ebp - 0x78]
push 0x32
push eax
lea eax, [ebp - 0x44]
push ebx
push eax
push str.Message
call edi
lea eax, [ebp - 0x78]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
lea eax, [ebp - 0x78]
jne 0x401126
lea eax, [ebp - 0xe0]
push eax
push 0x408800
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 8]
mov esi, 0x408100
xor edi, edi
push esi
push eax
mov dword [ebp - 0x30], 0x30
mov dword [ebp - 4], edi
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x28], 0x401361
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f02
push edi
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x10], 0x10
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_RegisterClassExA]
pop edi
pop esi
test ax, ax
pop ebx
jne 0x4011a9
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
jne 0x4011a9
xor eax, eax
leave
ret
push 1
pop eax
leave
ret
Function at 0x401676
Capabilities:
Create directory
Get common file path
Get disk size
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
push ebx
and dword [ebp - 0xc], 0
push esi
push edi
mov edi, 0x100
mov esi, 0x4086e0
push edi
push 0
push esi
call fcn.004025e0
add esp, 0xc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, 0x40883c
push edi
call ebx
cmp eax, 2
jle 0x4016ca
push edi
call fcn.00401db0
test eax, eax
pop ecx
je 0x4016ca
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call ebx
cmp byte [eax + 0x4086df], 0x5c
je 0x4016e2
push 0x4070c0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call fcn.00401e65
test eax, eax
pop ecx
je 0x401772
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
and dword [ebp - 4], 0
push 0
push esi
lea eax, [ebp - 0x1b8]
push str._ssetuptmp_d
push eax
call edi
lea eax, [ebp - 0x1b8]
push eax
call fcn.00401e65
add esp, 0x14
test eax, eax
je 0x401753
cmp dword [ebp - 4], 0x64
jge 0x401772
inc dword [ebp - 4]
lea eax, [ebp - 0x1b8]
push dword [ebp - 4]
push esi
push str._ssetuptmp_d
push eax
call edi
lea eax, [ebp - 0x1b8]
push eax
call fcn.00401e65
add esp, 0x14
test eax, eax
jne 0x40171f
cmp dword [ebp - 4], 0x64
jge 0x401772
lea eax, [ebp - 0x1b8]
push eax
call fcn.00401db0
test eax, eax
pop ecx
je 0x401772
lea eax, [ebp - 0x1b8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call edi
test eax, eax
jne 0x401794
push str.c:_temp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
call edi
test eax, eax
jne 0x4017dd
lea eax, [ebp - 0xb4]
push 0x96
push eax
push 7
push dword [0x4085d4]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x10
lea eax, [ebp - 0xb4]
push esi
push eax
push dword [0x4080fc]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 3
mov dword [0x407ff0], 1
pop eax
jmp 0x40188d
push esi
call ebx
cmp byte [eax + 0x4086df], 0x5c
je 0x4017f5
push 0x4070c0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov al, byte [0x4086e0]
and byte [ebp - 5], 0
mov byte [ebp - 8], al
mov al, byte [0x4086e1]
mov byte [ebp - 7], al
mov al, byte [0x4086e2]
mov byte [ebp - 6], al
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x401849
mov eax, dword [ebp - 0x14]
xor ecx, ecx
imul eax, dword [ebp - 0x10]
imul eax, dword [ebp - 0x18]
test ecx, ecx
jg 0x40188a
jl 0x401849
cmp eax, 0x1e8480
jae 0x40188a
lea eax, [ebp - 0xb4]
push 0x96
push eax
push 8
push dword [0x4085d4]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x10
lea eax, [ebp - 0xb4]
push esi
push eax
push dword [0x4080fc]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [0x407ff0], 1
mov dword [ebp - 0xc], 2
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401db0
Capabilities:
Create directory
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 1
push edi
call esi
cmp byte [eax + edi - 1], 0x5c
je 0x401de2
push 0x4070c0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
call esi
mov ebx, eax
xor esi, esi
push 0x104
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.004025e0
add esp, 0xc
cmp ebx, 2
jle 0x401e5a
cmp byte [edi + 1], 0x3a
jne 0x401e5a
test ebx, ebx
jle 0x401e5d
lea eax, [ebp - 0x108]
sub edi, eax
cmp dword [ebp - 4], 0
je 0x401e5d
lea eax, [ebp + esi - 0x108]
mov cl, byte [edi + eax]
cmp cl, 0x5c
mov byte [eax], cl
jne 0x401e53
cmp esi, 2
je 0x401e53
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x401e53
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 4], eax
inc esi
cmp esi, ebx
jl 0x401e15
jmp 0x401e5d
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401e65
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + esi - 1], 0x5c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x401e92
push 0x4070c0
push esi
call edi
lea eax, [ebp - 0x104]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x104]
push str.irsetup.exe
push eax
call edi
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.004027dd
pop ecx
test eax, eax
pop ecx
jne 0x401ed6
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x401ed6
push 1
pop ebx
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x401ee0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 0xc]
push esi
mov ecx, dword [esp + 0xc]
mov eax, dword [eax]
mov esi, dword [ecx]
mov edx, esi
dec esi
test edx, edx
je 0x401f1a
mov edx, dword [esp + 8]
xor ecx, ecx
mov cl, byte [edx]
inc edx
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x407190]
xor ecx, eax
mov eax, ecx
mov ecx, esi
dec esi
test ecx, ecx
jne 0x401ef8
pop esi
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4027fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00403200
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40281e
test byte [esp + 8], 2
je 0x40281e
mov dword [0x408944], 0xd
mov dword [0x408948], 5
jmp 0x4027f9
xor eax, eax
ret
Function at 0x403c31
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x407c48
cmp edx, dword [eax]
je 0x403c53
add eax, 8
inc ecx
cmp eax, 0x407cd8
jl 0x403c44
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x407c48]
jne 0x403d81
mov eax, dword [0x408998]
cmp eax, 1
je 0x403d5b
test eax, eax
jne 0x403c84
cmp dword [0x407a34], 1
je 0x403d5b
cmp edx, 0xfc
je 0x403d81
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403cbb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004044f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004045e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x403cfe
lea eax, [ebp - 0x1a4]
push eax
call fcn.004045e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x406458
push edi
call fcn.00404a20
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004044f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404500
lea eax, [ebp - 0xa0]
push 0x406438
push eax
call fcn.00404500
push dword [esi + 0x407c4c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404500
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00404995
add esp, 0x2c
pop edi
jmp 0x403d81
lea eax, [ebp + 8]
lea esi, [esi + 0x407c4c]
push 0
push eax
push dword [esi]
call fcn.004045e0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401f8f
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
lea ebx, [ecx + 4]
push edi
mov edi, edx
test ebx, ebx
je 0x401fc5
lea esi, [edi + 4]
test esi, esi
je 0x401fc5
call fcn.00401ef1
test al, al
je 0x401fc5
mov ecx, edi
call fcn.00401ef1
test al, al
je 0x401fc5
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
jmp 0x401fc7
xor al, al
pop edi
pop esi
pop ebx
ret

Function at 0x4068e6
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 8], 0
jne 0x406967
mov byte [esi + 8], 1
call main
cmp dword [esi + 0x10], 0
je 0x406967
test al, al
je 0x406906
mov byte [esi + 0xa], 1
mov ecx, esi
call fcn.00406f01
test al, al
jne 0x40692d
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.00408829
add esp, 0xc
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
pop esi
ret
mov ecx, esi
call main
cmp dword [esi + 0x18], 0
jne 0x406954
push dword [esi + 0x14]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_create_logging_file__s_n
call fcn.00408829
add esp, 0xc
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
cmp dword [esi + 0x10], 0
mov byte [esi + 9], 1
je 0x406967
push dword [esi + 0x10]
call dword [sym.imp.kernel32.dll_ReleaseMutex]
pop esi
ret

Function at 0x406f01
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x406f0e
xor al, al
pop esi
ret
push 0x1f4
push dword [esi + 0x10]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
test eax, eax
je 0x406f47
cmp eax, 0x80
je 0x406f47
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.00408829
add esp, 0xc
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov byte [esi + 9], 0
jmp 0x406f0a
mov al, 1
pop esi
ret

Function at 0x40913a
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push edi
mov edi, ecx
push edi
call dword [sym.imp.kernel32.dll_lstrlenW]
push 0
mov ebx, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4091a9
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ebx, [ebx*2 + 2]
push ebx
push 0x2002
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.kernel32.dll_GlobalLock]
test eax, eax
je 0x409185
push ebx
push edi
push eax
call fcn.00417e60
add esp, 0xc
push esi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x4091a0
push esi
call dword [sym.imp.kernel32.dll_GlobalFree]
pop esi
pop edi
pop ebx
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
ret
Function at 0x40bf30
Capabilities:
Get system information on windows

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x78
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x74]
push 9
pop ecx
xor eax, eax
mov dword [ebp - 0xc], esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x30]
and dword [esi + 8], eax
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [ebp - 0x30]
push eax
push 0
jmp 0x40c036
cmp dword [ebp - 0x20], 0x1000
jne 0x40c027
mov eax, dword [ebp - 0xc]
lea esi, [ebp - 0x30]
push 7
pop ecx
lea edi, [ebp - 0x50]
add eax, 0xc
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x30]
lea ecx, [ebp - 4]
push ecx
mov ecx, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], edi
call main
mov esi, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
cmp esi, eax
je 0x40bfc2
cmp edi, dword [esi + 0x10]
jae 0x40c004
push 0x30
call main
mov edx, eax
xor eax, eax
pop ecx
mov ecx, dword [ebp - 4]
push 7
lea edi, [edx + 0x10]
mov dword [edi], ecx
add edi, 4
pop ecx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
lea eax, [edx + 0x10]
push edx
push eax
push esi
lea eax, [ebp - 0x14]
mov word [edx + 0xc], 0
push eax
call main
mov esi, dword [ebp - 0x14]
lea edi, [esi + 0x14]
push 7
pop ecx
lea esi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
test byte [ebp - 0x1c], 0x70
je 0x40c027
mov ecx, dword [ebp - 0x24]
xor edx, edx
mov eax, ecx
div dword [ebp - 0x70]
mov edx, dword [ebp - 0xc]
add dword [edx + 8], eax
jmp 0x40c02a
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x30]
add eax, ecx
lea ecx, [ebp - 0x30]
push 0x1c
push ecx
push eax
push dword [ebx + 8]
call dword [sym.imp.kernel32.dll_VirtualQueryEx]
cmp eax, 0x1c
je 0x40bf7d
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x40f22e
Capabilities:
Create pipe

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x84], edi
jne 0x40f2cb
push edi
xor ebx, ebx
mov dword [esi + 0x84], 2
inc ebx
push ebx
push edi
call dword [sym.imp.kernel32.dll_CreateMutexW]
mov dword [esi + 0x44], eax
test eax, eax
je 0x40f2cb
push edi
push edi
push ebx
push edi
call dword [sym.imp.kernel32.dll_CreateEventW]
mov dword [esi + 0x9c], eax
test eax, eax
je 0x40f2cb
push 4
push 0xffffffffffffffff
push esi
push 0x40f9e5
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.kernel32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x40f2cb
lea eax, [esi + 0x20]
cmp dword [eax + 0x14], 8
jb 0x40f296
mov eax, dword [eax]
push dword [esi + 0x38]
push edi
push 0x40
push 0x40
push ebx
push 6
push 0x40080003
push eax
call dword [sym.imp.kernel32.dll_CreateNamedPipeW]
mov dword [esi + 0x3c], eax
cmp eax, 0xffffffff
je 0x40f2cb
push dword [esi + 0x9c]
call dword [sym.imp.kernel32.dll_SetEvent]
test eax, eax
jne 0x40f2d1
mov dword [esi + 0x84], ebx
xor al, al
pop edi
pop esi
pop ebx
ret
mov al, bl
jmp 0x40f2cd

Function at 0x413ca1
Capabilities:
Identify system language via api

Disassembly:
push ebx
mov ebx, ecx
push esi
test dl, dl
je 0x413cb1
call dword [sym.imp.kernel32.dll_GetSystemDefaultLangID]
jmp 0x413cb7
call dword [sym.imp.kernel32.dll_GetUserDefaultLangID]
xor edx, edx
movzx esi, ax
mov ecx, 0x409
push edi
mov edi, edx
mov eax, ecx
cmp si, ax
je 0x413cdf
inc edi
imul eax, edi, 0x1a
movzx eax, word [eax + 0x438830]
test ax, ax
jne 0x413cc6
mov esi, ecx
jmp 0x413ce2
movzx esi, si
pop edi
cmp cx, si
je 0x413cff
inc edx
imul eax, edx, 0x1a
movzx ecx, word [eax + 0x438830]
test cx, cx
jne 0x413ce3
mov eax, 0x437338
jmp 0x413d07
imul eax, edx, 0x1a
add eax, 0x438832
push eax
mov ecx, ebx
call main
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x428d4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x428d59
pop dword [ebp - 8]
mov eax, 0x262f7046
sub eax, 0x25ece2ed
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x444af
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0xc4e433f4
add ecx, 0x3b1c18d3
mov esi, eax
mov edi, 0x448800
add edi, dword [ebp - 8]
mov edx, 0x7cd253dc
mov dword [ebp - 4], 0x87d10f00
mov ebx, dword [edi]
add dword [ebp - 4], esi
add ebx, edx
xor dword [ebp - 4], 0x4807f20f
mov dword [esi], ebx
xor dword [ebp - 4], 0x3e30ce3c
add esi, 4
add edi, 4
loop 0x428da7
add eax, 0x273278d4
add eax, 0xd8cead1b
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x402b08
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040420c
test esi, esi
jne 0x402b3e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004042fc
jmp 0x402b5c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a1c
mov edi, eax
test esi, esi
je 0x402b5c
cmp dword [ebx], 0
je 0x402b5c
dec esi
jmp 0x402b45
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4032a8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4b1020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403340
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403320
xor eax, eax
push ebp
push 0x403319
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40335c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403320
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4b1020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4b1020], ax
mov esp, ebp
pop ebp
ret

Function at 0x40400c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b504c], 0
je 0x40406d
cmp word [0x4b5220], 0xd7b2
jne 0x404035
cmp dword [0x4b5228], 0
jbe 0x404035
mov eax, 0x4b521c
call dword [0x4b5238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4b106c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404094
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4b1030], 0
jne 0x404089
push 0
push 0x4b1064
push 0x4b106c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4041c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004027e0
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4b504d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404188
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc