joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414a04
Capabilities:
Create process on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff90
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x68], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405050
mov eax, dword [ebp - 8]
call fcn.00405050
xor eax, eax
push ebp
push 0x414b6c
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x414b3a
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x54]
xor ecx, ecx
mov edx, 0x44
call fcn.004036a8
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], bx
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 8]
call fcn.004079a8
cmp dword [ebp - 0x68], 0
jne 0x414a87
xor ebx, ebx
jmp 0x414a91
mov eax, dword [ebp - 8]
call fcn.00405060
mov ebx, eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push 0
push 0x30
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405060
mov esi, eax
push esi
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x414ae0
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0xc], eax
cmp byte [ebp + 8], 0
je 0x414b16
push 0xffffffffffffffff
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_GetExitCodeProcess
jmp 0x414b16
xor eax, eax
mov dword [ebp - 0xc], eax
push esi
call sub.kernel32.dll_OutputDebugStringA
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x70]
call fcn.00414f00
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
mov edx, 0x414b88
call fcn.00404ee8
mov eax, dword [ebp - 0x6c]
call fcn.00405060
push eax
call sub.kernel32.dll_OutputDebugStringA
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x414b23
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x414b30
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414b44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414b73
lea eax, [ebp - 0x70]
mov edx, 3
call fcn.00404c18
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404c18
ret

Function at 0x415060
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4150cf
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.00404e64
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.0040be08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4150d6
lea eax, [ebp - 0x10c]
call fcn.00404bf4
ret
Function at 0x4150dc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41519d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x41ab98]
cmp byte [eax], 0
je 0x415142
lea eax, [ebp - 4]
mov edx, 0x104
call fcn.0040528c
lea eax, [ebp - 8]
push eax
push 0x29
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x415187
lea eax, [ebp - 0x103]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov edx, ebx
lea eax, [ebp - 0x103]
call fcn.00408340
jmp 0x415187
lea eax, [ebp - 4]
mov edx, 0x90
call fcn.0040528c
push 0x90
mov eax, dword [ebp - 4]
call fcn.00405060
push eax
call sub.kernel32.dll_GetSystemDirectoryA
test eax, eax
je 0x415187
mov eax, dword [ebp - 4]
call fcn.00405060
call fcn.00408220
mov edx, eax
lea eax, [ebp - 4]
call fcn.0040528c
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004079a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4151a4
lea eax, [ebp - 4]
call fcn.00404bf4
ret

Function at 0x415248
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x415338
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404bf4
mov eax, ebx
call fcn.00415a30
mov ebx, eax
xor esi, esi
mov edi, 0x41fa65
cmp bl, byte [edi]
jne 0x41530d
lea eax, [ebp - 0x1c]
lea edx, [edi + 1]
mov ecx, 0x104
call fcn.00404e64
cmp dword [ebp - 0x1c], 0
jne 0x4152f5
lea edx, [ebp - 0x18]
mov eax, esi
call fcn.00415a34
test al, al
je 0x41531d
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [edi + 1]
push eax
call dword [0x41fa20]
mov ebx, eax
test ebx, ebx
je 0x4152f5
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.00414f00
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov edx, 0x415350
call fcn.00404ee8
mov eax, dword [ebp - 0x20]
call fcn.00405060
push eax
call sub.kernel32.dll_OutputDebugStringA
jmp 0x41531d
lea edx, [ebp - 0x28]
lea eax, [edi + 1]
call fcn.00408340
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 4]
call fcn.004079a8
jmp 0x41531d
inc esi
add edi, 0x105
cmp esi, 4
jne 0x41528a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41533f
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.00404c18
ret
Function at 0x415a34
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x415af0
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 8]
mov ecx, 0xcc
mov edx, 8
call fcn.004036a8
push esi
lea eax, [ebp - 0x10]
push eax
call dword [0x41fa04]
mov esi, eax
test esi, esi
je 0x415aa6
lea edx, [ebp - 0x28]
mov eax, esi
call fcn.00414f00
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x415b08
call fcn.00404ee8
mov eax, dword [ebp - 0x24]
call fcn.00405060
push eax
call sub.kernel32.dll_OutputDebugStringA
jmp 0x415ad5
lea edx, [ebp - 8]
lea eax, [ebp - 0x20]
mov ecx, 8
call fcn.00406a88
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x18]
mov ecx, 8
call fcn.00406a88
push edi
push 0x10
lea eax, [ebp - 0x20]
push eax
call dword [0x41fa44]
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415af7
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00404c18
ret
Function at 0x415b18
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], eax
xor eax, eax
push ebp
push 0x415cac
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
mov eax, 0x41fa64
xor ecx, ecx
mov edx, 0x415
call fcn.004036a8
lea eax, [ebp - 9]
mov ecx, 0xcc
mov edx, 8
call fcn.004036a8
xor esi, esi
mov edi, 0x41fa65
push esi
lea eax, [ebp - 0x11]
push eax
call dword [0x41fa04]
mov ebx, eax
test ebx, ebx
je 0x415ba9
lea edx, [ebp - 0x54]
mov eax, ebx
call fcn.00414f00
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x50]
mov edx, 0x415cc8
call fcn.00404ee8
mov eax, dword [ebp - 0x50]
call fcn.00405060
push eax
call sub.kernel32.dll_OutputDebugStringA
jmp 0x415c91
lea edx, [ebp - 9]
lea eax, [ebp - 0x4c]
mov ecx, 8
call fcn.00406a88
lea edx, [ebp - 0x11]
lea eax, [ebp - 0x44]
mov ecx, 8
call fcn.00406a88
lea eax, [ebp - 0x2c]
push eax
push 0x10
lea eax, [ebp - 0x4c]
push eax
call dword [0x41fa44]
lea eax, [ebp - 0x1c]
xor ecx, ecx
mov edx, 8
call fcn.004036a8
push esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [0x41fa14]
mov ebx, eax
test ebx, ebx
jne 0x415c7d
lea edx, [ebp - 0x11]
lea eax, [ebp - 0x4c]
mov ecx, 8
call fcn.00406a88
lea edx, [ebp - 9]
lea eax, [ebp - 0x44]
mov ecx, 8
call fcn.00406a88
lea eax, [ebp - 0x2c]
push eax
push 0x10
lea eax, [ebp - 0x4c]
push eax
call dword [0x41fa44]
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x3c]
mov ecx, 0x10
call fcn.004077d8
test al, al
jne 0x415c77
lea edx, [ebp - 0x5c]
mov eax, 0x54f
call fcn.00414f00
mov ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0x58]
mov edx, 0x415ce0
call fcn.00404ee8
mov eax, dword [ebp - 0x58]
call fcn.00405060
push eax
call sub.kernel32.dll_OutputDebugStringA
call fcn.00404b00
jmp 0x415c7d
movzx eax, byte [ebp - 0x1c]
mov byte [edi], al
inc esi
add edi, 0x105
cmp esi, 4
jne 0x415b6b
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415cb3
lea eax, [ebp - 0x5c]
mov edx, 4
call fcn.00404c18
ret
Function at 0x4161f8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x416200
push ecx
push ebx
xor eax, eax
push ebp
push 0x4163fb
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00417620
xor ebx, ebx
mov eax, dword [0x41ab98]
cmp byte [eax], 0
je 0x416306
lea eax, [ebp - 0xc]
call fcn.00414988
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.0040bdbc
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, 0x416414
call fcn.00404ee8
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x41642c
mov edx, 0x41643c
mov eax, dword [0x41d7f0]
call fcn.0041488c
test eax, eax
je 0x4163e0
xor eax, eax
push ebp
push 0x4162ff
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00408080
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.00414a04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4163e0
lea eax, [ebp - 0x14]
call fcn.004150dc
lea eax, [ebp - 0x14]
mov edx, 0x416450
call fcn.00404e9c
mov eax, dword [ebp - 0x14]
call fcn.00405060
push eax
mov eax, dword [0x41fed8]
call fcn.00405060
pop edx
call sym.ClientDrvCtrlXE.dll_instdriverfile
push 0x1f4
call sub.kernel32.dll_Sleep_1
mov eax, dword [ebp - 4]
call fcn.00405060
mov edx, eax
lea eax, [ebp - 0x18]
call fcn.00404dec
mov eax, dword [ebp - 0x18]
call fcn.00405060
push eax
call sub.kernel32.dll_DeleteFileA
mov bl, 1
ret
lea eax, [ebp - 0x20]
call fcn.00414988
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.0040bdbc
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 4]
mov ecx, 0x416470
call fcn.00404ee8
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x416488
mov edx, 0x416498
mov eax, dword [0x41d7f0]
call fcn.0041488c
test eax, eax
je 0x4163e0
xor eax, eax
push ebp
push 0x4163d9
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.00408080
mov edx, dword [ebp - 0x24]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.00414a04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4163e0
lea eax, [ebp - 0x28]
call fcn.004150dc
lea eax, [ebp - 0x28]
mov edx, 0x416450
call fcn.00404e9c
mov eax, dword [ebp - 0x28]
call fcn.00405060
push eax
mov eax, dword [0x41fed8]
call fcn.00405060
pop edx
call sym.ClientDrvCtrlXE.dll_instdriverfile
push 0x1f4
call sub.kernel32.dll_Sleep_1
mov eax, dword [ebp - 4]
call fcn.00405060
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00404dec
mov eax, dword [ebp - 0x2c]
call fcn.00405060
push eax
call sub.kernel32.dll_DeleteFileA
mov bl, 1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416402
lea eax, [ebp - 0x2c]
mov edx, 0xb
call fcn.00404c18
ret
Function at 0x4164ac
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x4164b5
mov eax, dword [ebp - 4]
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x2020], eax
mov dword [ebp - 0x201c], eax
mov dword [ebp - 0x2018], eax
xor eax, eax
push ebp
push 0x41664c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
mov dword [ebp - 8], 0xffffffff
xor eax, eax
push ebp
push 0x416627
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x20000080
push 3
push 0
push 3
push 0xc0000000
push 0x41665c
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x416555
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
lea edx, [ebp - 0x2018]
mov eax, ebx
call fcn.00414f00
mov eax, dword [ebp - 0x2018]
call fcn.00405060
push eax
call sub.kernel32.dll_OutputDebugStringA
call fcn.00404660
jmp 0x41662e
mov dword [ebp - 0x10], 0x4000
mov dword [ebp - 0xc], 0
push 0
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x10]
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetFilePointerEx
test eax, eax
jne 0x4165a9
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
lea edx, [ebp - 0x201c]
mov eax, ebx
call fcn.00414f00
mov eax, dword [ebp - 0x201c]
call fcn.00405060
push eax
call sub.kernel32.dll_OutputDebugStringA
call fcn.00404660
jmp 0x41662e
lea eax, [ebp - 0x2014]
xor ecx, ecx
mov edx, 0x2000
call fcn.004036a8
push 0
lea eax, [ebp - 0x14]
push eax
push 0x2000
lea eax, [ebp - 0x2014]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x416606
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
lea edx, [ebp - 0x2020]
mov eax, ebx
call fcn.00414f00
mov eax, dword [ebp - 0x2020]
call fcn.00405060
push eax
call sub.kernel32.dll_OutputDebugStringA
call fcn.00404660
jmp 0x41662e
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41662e
cmp dword [ebp - 8], 0xffffffff
je 0x416626
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416653
lea eax, [ebp - 0x2020]
mov edx, 3
call fcn.00404c18
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401960
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x18
push ebx
push esi
mov esi, dword [esp + 0x24]
push edi
lea eax, [esp + 0xc]
push eax
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
mov dword [0x404100], ecx
mov ecx, dword [esp + 0x10]
mov dword [0x4040f4], esi
mov dword [0x4040f0], eax
mov dword [0x4040f8], ecx
mov dword [0x4040fc], edx
lea esi, [ecx + 2]
lea edi, [edx + 2]
test eax, eax
je 0x4019b8
mov eax, dword [section..data]
add esi, eax
add edi, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edx, dword [str.TabSiSplashClass]
push edx
mov ebx, eax
call fcn.00401900
mov eax, dword [str.TabSi_Splash]
mov ecx, dword [str.TabSiSplashClass]
add esp, 4
push 0
push 0
push 0
push ebx
push edi
push esi
push 0
push 0
push 0x90000000
push eax
push ecx
push 8
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x18
ret
Function at 0x402020
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4020a0
lea ecx, [esp + 4]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x40205e
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x1c
ret
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push 0
push 0
push 0x10
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
push 0
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x1c
ret
Function at 0x402730
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebx
push ebp
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
movzx eax, ax
push eax
push ebx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov esi, eax
test esi, esi
jne 0x402785
push eax
push ebx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov esi, eax
test esi, esi
jne 0x402785
push ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x402785
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x402797
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebx], eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40277e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x402840
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x20]
xor esi, esi
push esi
lea ecx, [esp + 0xc]
push ecx
push esi
push 0xf003f
push esi
mov eax, 4
push esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
push esi
mov dword [edi], eax
mov eax, dword [0x4040bc]
push edx
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4028b4
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edi
lea edx, [esp + 0x18]
push edx
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4028a9
lea esi, [eax + 1]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
add esp, 0xc
ret

Function at 0x4028c0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x184
mov eax, dword [0x4040e4]
xor eax, esp
mov dword [esp + 0x180], eax
push esi
mov esi, dword [esp + 0x18c]
push 0x80
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClassNameA]
test eax, eax
je 0x402964
push 0x100
lea ecx, [esp + 0x88]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x402964
mov eax, dword [str.si_Frame]
lea edx, [esp + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x402964
mov ecx, dword [str.Source_Insight]
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrA]
push ecx
lea edx, [esp + 0x88]
push edx
call esi
test eax, eax
je 0x402964
mov eax, dword [str._with_TabSiPlus]
push eax
lea ecx, [esp + 0x88]
push ecx
call esi
neg eax
sbb eax, eax
inc eax
pop esi
mov ecx, dword [esp + 0x180]
xor ecx, esp
call fcn.00402a5e
add esp, 0x184
ret
mov ecx, dword [esp + 0x184]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00402a5e
add esp, 0x184
ret

Function at 0x402a5e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4040e4]
jne 0x402a68
repz ret
jmp fcn.00402aa2
Function at 0x167dbdc
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
je 0x167cb85
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x167cb85
mov eax, 0x5a4d
test dx, cx
cmp edi, ecx
cmp word [ecx], ax
je 0x2052cbb
xor eax, eax
bswap esi
pop esi
mov esp, ebp
pop ebp
ret
push ebp
mov ebp, esp
sar cx, 0xfa
mov ecx, dword [ebp + 8]
cmp sp, dx
stc
lea esp, [esp - 0x114]
push esi
clc
test ecx, ecx
jmp 0x167cb61
mov dword [ebp - 0xc], eax
jmp 0x2069524
je 0x206cfc8
mov eax, dword [edx + ecx + 0x20]
jmp 0x1f99ec5
jne 0x167cb85
mov edx, dword [eax + ecx + 0x78]
cmp edi, esi
mov dword [ebp - 4], edx
test si, 0x43cc
test edx, edx
jmp 0x1b00f8a
je 0x167cb85
mov eax, dword [eax + ecx + 0x7c]
cmp dx, cx
jmp 0x1ebe646
mov edi, dword [edx + ecx + 0x18]
clc
test bp, bx
test edi, edi
jmp 0x17390f8
push ebx
cmp dx, si
push edi
test eax, 0x32f7766b
cmp si, 0x7597
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0xffffffff
stc
cmp dl, 0xb4
cmp esi, 0xffff
jmp 0x2037000
jmp 0x206cfc8
mov dword [ebp - 8], eax
jmp 0x1f57c9e
add eax, ecx
cmc
xor ebx, ebx
dec edi
jmp 0x16b65d8
ja 0x1b070d8
mov eax, esi
test cl, 0xde
cmc
sub eax, dword [edx + ecx + 0x10]
jmp 0x1f94111
mov eax, dword [ecx + 0x3c]
clc
cmp dword [eax + ecx], 0x4550
jmp 0x1aecbef
js 0x206cfc8
jmp 0x1f3cd8b
Function at 0x40cb2f
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov edx, 0x1505
jmp 0x40cb50
lea eax, [ecx - 0x61]
cmp eax, 0x19
ja 0x40cb48
and ecx, 0xffffffdf
imul edx, edx, 0x21
xor edx, ecx
add esi, 2
movzx ecx, word [esi]
test ecx, ecx
jne 0x40cb3d
mov eax, dword [ebp + 0x10]
movzx ecx, dl
mov edx, ecx
shr edx, 5
mov dword [eax], edx
mov eax, dword [ebp + 0x14]
xor edx, edx
and ecx, 0x1f
inc edx
shl edx, cl
pop esi
mov dword [eax], edx
pop ebp
ret 0x10

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40147e
Capabilities:
Execute command

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x324
call sym.___main
mov dword [esp + 4], sym._handle_sigint
mov dword [esp], 2
call sym._signal
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x110]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
lea eax, [ebp - 0x110]
mov dword [esp + 8], eax
mov dword [esp + 4], str.copy___s__C:cakal.c
lea eax, [ebp - 0x210]
mov dword [esp], eax
call sym._sprintf
lea eax, [ebp - 0x210]
mov dword [esp], eax
call sym._system
mov dword [ebp - 0xc], str.spotify:track:1a9CYYvZHorDJpCICeo9VV
mov dword [esp], str.taskkill__IM_spotify.exe__F
call sym._system
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], str.start__s
lea eax, [ebp - 0x310]
mov dword [esp], eax
call sym._sprintf
lea eax, [ebp - 0x310]
mov dword [esp], eax
call sym._system
mov dword [esp], 0x3c
call sym._sleep
jmp 0x401501