joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4074ec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x42b260]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x18
xor ebx, ebx
push ebx
push 0x42d400
call fcn.0040e8e0
push dword [0x42d220]
mov esi, 0x80000001
push esi
mov byte [0x42d260], bl
call fcn.00407479
mov edi, eax
add esp, 0x14
cmp edi, ebx
jne 0x407565
push dword [0x42d220]
push 0x80000002
call fcn.00407479
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
jne 0x4075cf
mov eax, dword [0x42d244]
cmp eax, ebx
je 0x40756b
push eax
push esi
call fcn.00407479
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
je 0x4075b7
mov dword [0x42d388], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
push str.InstallLocation
push edi
mov dword [ebp - 0x10c], 0x104
call esi
test eax, eax
je 0x4075df
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
push str.UninstallString
push edi
call esi
test eax, eax
je 0x4075df
xor esi, esi
jmp 0x4075e2
push dword [0x42d244]
push 0x80000002
call fcn.00407479
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
je 0x4075db
mov dword [0x42d388], 1
jmp 0x40756b
xor eax, eax
jmp 0x407657
xor esi, esi
inc esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x4075db
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x40760b
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [ebp - 0x108]
push eax
push 0x42d400
call fcn.004047e7
pop ecx
pop ecx
test eax, eax
je 0x4075db
cmp dword [0x42d6c0], ebx
jne 0x407637
mov eax, dword [0x42d3e8]
cmp eax, dword [0x42d408]
jne 0x407655
lea eax, [ebp - 0x108]
push eax
mov esi, 0x42d260
xor ebx, ebx
push esi
inc ebx
call fcn.0040e750
push esi
call fcn.00406fb7
add esp, 0xc
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e67e
leave
ret
Function at 0x4082a5
Capabilities:
Persist via lnk shortcut
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4083ac
mov eax, dword [ebp + 0x10]
push ebx
movzx ecx, ax
push edi
mov edi, dword [ebp + 0x18]
inc eax
mov dword [ebp + 0xc], ecx
lea ebx, [edi + 8]
mov dword [ebp - 4], eax
push 0x1400
push 0
push edi
call fcn.0040e8e0
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp eax, 0x10
jg 0x408318
je 0x40830a
sub eax, 0
je 0x40830a
dec eax
je 0x408351
dec eax
je 0x40831d
dec eax
jne 0x408378
mov eax, dword [esi + 0x10]
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str..lnk
jmp 0x408371
mov eax, dword [esi + 0x10]
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x408378
sub eax, 0x11
jmp 0x4082eb
mov eax, dword [esi + 0x10]
cmp dword [eax + 0xc], 3
jae 0x408378
cmp dword [eax + 8], 0
mov ecx, str._s__s__s
jne 0x408336
mov ecx, str._s__s
push dword [eax + 8]
push dword [eax + 4]
mov eax, dword [eax]
push dword [eax*4 + 0x42b018]
push ecx
push ebx
call fcn.0040f37b
add esp, 0x14
jmp 0x408378
mov eax, dword [esi + 0x10]
push dword [eax + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, dword [esi + 0x10]
push dword [eax]
call fcn.00404d8f
pop ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 4]
push 0
mov dword [edi], ecx
lea ecx, [ebp - 8]
push ecx
add eax, 8
push eax
push edi
push dword [ebp + 8]
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 0x14]
inc dword [eax]
mov esi, dword [esi]
test esi, esi
jne 0x4082cb
pop edi
pop ebx
pop esi
leave
ret
Function at 0x408870
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x42b260]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x7c], eax
xor esi, esi
lea eax, [ebp - 0x74]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], 0x64
push esi
jmp 0x408901
inc dword [ebp - 0x6c]
lea eax, [ebp - 0x80]
push eax
push 0xf003f
push esi
lea eax, [ebp - 0x68]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4088ef
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x80]
push edi
call fcn.00408870
add esp, 0xc
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], 0x64
lea eax, [ebp - 0x74]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x6c]
push edi
call ebx
cmp eax, 0x103
jne 0x4088b9
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x7c]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [ebp - 4]
neg eax
pop edi
sbb eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.0040e67e
leave
ret
Function at 0x409579
Capabilities:
Create process on windows
Get common file path
Resume thread
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x770
mov eax, dword [0x42b260]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [ebp + 8]
push 0x4090cf
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
push 0x6b
push dword [0x42d374]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
xor esi, esi
mov dword [ebp - 0x714], eax
cmp dword [ebp + 8], esi
jne 0x409780
cmp eax, 0xffffffff
je 0x409780
push ebx
push edi
lea eax, [ebp - 0x310]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea eax, [ebp - 0x310]
push eax
call edi
push str.CroRmBat.bat
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
mov ebx, 0x80
push ebx
push 2
push esi
push 2
push 0x40000000
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x718], eax
cmp eax, 0xffffffff
je 0x40977e
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x42d420
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
push eax
call dword [sym.imp.USER32.dll_CharToOemA]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push eax
mov eax, 0x4236ac
push eax
lea ecx, [ebp - 0x20c]
push ecx
push eax
mov eax, ecx
push eax
push dword [0x42b214]
lea eax, [ebp - 0x710]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
xor edi, edi
push edi
lea eax, [ebp - 0x714]
push eax
lea eax, [ebp - 0x710]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x710]
push eax
push dword [ebp - 0x718]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x718]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x71c], eax
call esi
cmp dword [ebp - 0x71c], edi
je 0x40977e
push 0x44
lea eax, [ebp - 0x770]
push edi
push eax
call fcn.0040e8e0
add esp, 0xc
push 0x44
pop eax
xor ecx, ecx
mov word [ebp - 0x740], cx
lea ecx, [ebp - 0x72c]
push ecx
lea ecx, [ebp - 0x770]
push ecx
push 0x422774
push edi
push eax
push edi
push edi
mov dword [ebp - 0x770], eax
push edi
lea eax, [ebp - 0x310]
push eax
push edi
mov dword [ebp - 0x744], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40977e
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xfffffffffffffff1
push dword [ebp - 0x728]
call edi
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push dword [ebp - 0x72c]
call esi
push dword [ebp - 0x728]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0x728]
call esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x714]
xor ecx, ebp
pop esi
call fcn.0040e67e
leave
ret
Function at 0x409886
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x42b260]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 4
push edi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRootA]
mov esi, dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x4098d2
lea eax, [ebp - 0x108]
push eax
call esi
test eax, eax
je 0x409930
push ebx
push edi
mov ebx, edi
call esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFindNextComponentA]
test eax, eax
je 0x409925
push edi
call esi
push eax
call esi
mov ebx, eax
jmp 0x409925
mov eax, ebx
sub eax, edi
inc eax
push eax
push edi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x409925
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x409925
cmp eax, 5
jne 0x40993e
push ebx
call esi
mov ebx, eax
test ebx, ebx
jne 0x4098ec
inc eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040e67e
leave
ret
xor eax, eax
jmp 0x40992f
Function at 0x4099a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x42b260]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x220], 0
and dword [ebp - 0x21c], 0
push esi
mov dword [ebp - 0x218], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x214]
push eax
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x214], edi
call fcn.0040810d
pop ecx
test eax, eax
je 0x409a26
mov esi, dword [ebp - 0x214]
inc dword [ebp - 0x214]
lea eax, [ebp - 0x214]
push eax
call fcn.004080d1
push 4
push str.wait
push dword [ebp - 0x214]
call fcn.0041ea02
add esp, 0x10
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x21c], eax
jmp 0x409a35
push edi
call fcn.0040e850
mov esi, eax
add esi, dword [ebp - 0x210]
pop ecx
lea eax, [ebp - 0x210]
push eax
call fcn.004080d1
cmp dword [ebp - 0x210], 0x22
pop ecx
jne 0x409a62
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x210], 0x23
call fcn.0040812a
pop ecx
lea eax, [ebp - 0x210]
push eax
call fcn.004080f0
mov eax, dword [ebp - 0x210]
pop ecx
cmp eax, esi
jbe 0x409a81
mov eax, esi
mov dword [ebp - 0x210], eax
push ebx
sub eax, edi
mov ebx, eax
push ebx
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0040f400
sub esi, edi
sub esi, ebx
add esp, 0xc
dec esi
mov byte [ebp + ebx - 0x20c], 0
pop ebx
test esi, esi
jg 0x409ab2
mov byte [ebp - 0x108], 0
jmp 0x409ad2
mov eax, dword [ebp - 0x210]
inc eax
push esi
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0040f400
add esp, 0xc
mov byte [ebp + esi - 0x108], 0
cmp dword [ebp - 0x21c], 0
jne 0x409b09
push dword [ebp + 0x10]
lea eax, [ebp - 0x108]
push dword [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x409ba3
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x25c]
push 0
push eax
call fcn.0040e8e0
add esp, 0xc
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x258], 0x40
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x248], eax
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x244], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x25c]
push eax
mov dword [ebp - 0x250], str.open
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x409ba3
push 0xffffffffffffffff
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x220]
pop edi
xor ecx, ebp
pop esi
call fcn.0040e67e
leave
ret
Function at 0x409c20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [0x42b25c], ebx
jbe 0x409d97
push dword [esi*4 + 0x42b218]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne case.default.0x409c4f
cmp esi, 0xd
ja case.default.0x409c4f
jmp dword [esi*4 + 0x409d9c]
inc esi
cmp esi, dword [0x42b25c]
jb 0x409c36
jmp 0x409d97
push dword [ebp + 0xc]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
jmp 0x409d97
push 0x42d420
jmp 0x409d8e
lea eax, [ebp - 4]
push eax
push 0x26
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov eax, dword [0x42d384]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
jmp 0x409d97
lea eax, [ebp - 4]
push eax
mov eax, dword [0x42d388]
neg eax
sbb eax, eax
and eax, 0x15
add eax, 2
push eax
jmp 0x409c87
lea eax, [ebp - 4]
push eax
mov eax, dword [0x42d388]
neg eax
sbb eax, eax
and eax, 9
add eax, 0x10
jmp 0x409cc0
push 0x104
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x409d97
push 0x104
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x409d97
push dword [ebp + 0xc]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x409d97
mov ecx, dword [ebp + 0xc]
mov byte [ecx], bl
cmp dword [0x42d23c], ebx
je 0x409d97
mov eax, dword [0x42d3e0]
lea edx, [eax - 1]
cmp edx, 2
ja 0x409d97
push dword [eax*4 + 0x42b24c]
push ecx
jmp 0x409d91
push 0xa
push dword [ebp + 0xc]
push dword [0x42d3e4]
call fcn.004103ff
add esp, 0xc
jmp 0x409d97
push 0xa
push dword [ebp + 0xc]
push dword [0x42d3e8]
call fcn.00410450
jmp 0x409d45
push 0x42d3ec
jmp 0x409d8e
lea eax, [ebp - 4]
push eax
mov eax, dword [0x42d388]
neg eax
sbb eax, eax
and eax, 9
add eax, 0x1a
jmp 0x409cc0
mov eax, str.HKLM
cmp dword [0x42d388], ebx
jne 0x409d8d
mov eax, str.HKCU
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop esi
pop ebx
leave
ret
Function at 0x40e67e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b260]
jne 0x40e688
repz ret
jmp fcn.0041191a

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x40ed09
call fcn.0041230c
mov dword [eax], esi
call fcn.004122f9
push 0x16
pop esi
mov dword [eax], esi
call fcn.004124cc
mov eax, esi
jmp 0x40ed5e
test dword [ebp + 0xc], 0xfffffff9
jne 0x40ecef
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40ed36
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041231f
pop ecx
call fcn.004122f9
mov eax, dword [eax]
jmp 0x40ed5e
test al, 0x10
jne 0x40ed5c
test al, 1
je 0x40ed5c
test byte [ebp + 0xc], 2
je 0x40ed5c
call fcn.0041230c
mov dword [eax], 5
call fcn.004122f9
mov dword [eax], 0xd
jmp 0x40ed2d
xor eax, eax
pop esi
pop ebp
ret
Function at 0x41ecb3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42b260]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00411a20
and dword [ebp - 0x14], 0
cmp dword [0x42d0e0], 0
mov dword [ebp - 0x18], eax
jne 0x41ed66
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41ee0e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41ee0e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42d0e0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42d0e4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42d0e8], eax
call edi
push eax
call esi
mov dword [0x42d0f0], eax
test eax, eax
je 0x41ed66
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42d0ec], eax
mov eax, dword [0x42d0ec]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41edbf
cmp dword [0x42d0f0], ecx
je 0x41edbf
push eax
call esi
push dword [0x42d0f0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41edbf
test ebx, ebx
je 0x41edbf
call edi
test eax, eax
je 0x41edb6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41edb6
test byte [ebp - 8], 1
jne 0x41edbf
or dword [ebp + 0x10], 0x200000
jmp 0x41edf2
mov eax, dword [0x42d0e4]
cmp eax, dword [ebp - 0x18]
je 0x41edf2
push eax
call esi
test eax, eax
je 0x41edf2
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41edf2
mov eax, dword [0x42d0e8]
cmp eax, dword [ebp - 0x18]
je 0x41edf2
push eax
call esi
test eax, eax
je 0x41edf2
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42d0e0]
call esi
test eax, eax
je 0x41ee0e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41ee10
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e67e
leave
ret
Function at 0x401037
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebp - 0xc], eax
mov eax, dword [0x42f368]
push ebx
mov dword [ebp - 0x2c], eax
mov eax, dword [0x42f36c]
push esi
mov esi, dword [edx + 4]
xor ebx, ebx
mov dword [ebp - 0x24], eax
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
call fcn.00401030
mov eax, dword [0x42f370]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [0x42f374]
add edi, 0x23f
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov eax, dword [ebp - 0xc]
shl eax, 4
cmp dword [0x1a1ff24], 0xc
mov dword [ebp - 4], eax
jne 0x4010c2
push ebx
lea eax, [ebp - 0x34]
push eax
push ebx
lea eax, [ebp - 0x438]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
add eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
mov eax, dword [0x1a1ff24]
cmp eax, 0xfa9
jne 0x4010de
mov dword [0x1a1ff20], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010f9
push ebx
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov edx, dword [ebp + 8]
mov dword [0x1a1fe74], ebx
mov eax, dword [ebp - 0xc]
add eax, edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [0x1a1ff1c], 0xf4ea3dee
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x14]
sub esi, eax
mov dword [ebp - 8], eax
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
lea eax, [edi + esi]
mov dword [ebp - 0x18], eax
mov eax, esi
shr eax, cl
add eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
add edi, 0x61c88647
dec dword [ebp - 0x20]
jne 0x40108b
mov eax, dword [ebp - 0xc]
pop edi
mov dword [edx + 4], esi
pop esi
mov dword [edx], eax
pop ebx
leave
ret 4
Function at 0x4057ba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e788]
jne 0x4057c4
repz ret
jmp fcn.0040938f

Function at 0x408c7a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004058bc
and dword [ebp - 4], 0
cmp dword [0x4383bc], 0
mov ebx, eax
jne 0x408d2b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408ddc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408ddc
push eax
call fcn.0040584a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4383bc], eax
call esi
push eax
call fcn.0040584a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4383c0], eax
call esi
push eax
call fcn.0040584a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4383c4], eax
call esi
push eax
call fcn.0040584a
pop ecx
mov dword [0x4383cc], eax
test eax, eax
je 0x408d2b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040584a
pop ecx
mov dword [0x4383c8], eax
mov eax, dword [0x4383c8]
cmp eax, ebx
je 0x408d83
cmp dword [0x4383cc], ebx
je 0x408d83
push eax
call fcn.004058c5
push dword [0x4383cc]
mov esi, eax
call fcn.004058c5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408d83
test edi, edi
je 0x408d83
call esi
test eax, eax
je 0x408d7a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408d7a
test byte [ebp - 0xc], 1
jne 0x408d83
or dword [ebp + 0x10], 0x200000
jmp 0x408dbc
mov eax, dword [0x4383c0]
cmp eax, ebx
je 0x408dbc
push eax
call fcn.004058c5
pop ecx
test eax, eax
je 0x408dbc
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408dbc
mov eax, dword [0x4383c4]
cmp eax, ebx
je 0x408dbc
push eax
call fcn.004058c5
pop ecx
test eax, eax
je 0x408dbc
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4383bc]
call fcn.004058c5
pop ecx
test eax, eax
je 0x408ddc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408dde
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret