joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439c85
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00439c01
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x439df4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x439df4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x439da9
jg 0x439ce1
test eax, eax
je 0x439d9f
push 1
push 0x1000
call fcn.0042faf6
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x439d04
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x439d96
push 0x8000
push ebx
call fcn.0042cd79
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x439d2d
jg 0x439d28
cmp ecx, 0x1000
jb 0x439d2d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004321b5
add esp, 0x10
cmp eax, 0xffffffff
je 0x439d72
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x439d28
jl 0x439d59
test ecx, ecx
jne 0x439d1a
push dword [ebp - 0xc]
push ebx
call fcn.0042cd79
push esi
call fcn.0042d92b
add esp, 0xc
xor ebx, ebx
jmp 0x439e02
cmp byte [edi + 0x24], 0
je 0x439d89
cmp dword [edi + 0x20], 5
jne 0x439d89
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x439d94
mov ebx, dword [edi + 0x18]
jmp 0x439d96
xor ebx, ebx
push esi
call fcn.0042d92b
pop ecx
jmp 0x439e02
test ecx, ecx
jg 0x439d6b
jl 0x439da9
test eax, eax
jae 0x439d6b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004312fa
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x439dc9
cmp byte [edi + 0x1c], 0
je 0x439d6b
jmp 0x439dfa
push ebx
call fcn.00434426
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x439d6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x439e02
cmp byte [edi + 0x1c], 0
je 0x439dff
mov ebx, dword [edi + 0x18]
jmp 0x439e02
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004312fa
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43b180
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43b1ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43b1ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10008ec6
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x10008f28
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, ecx
test edx, edx
jne 0x10008f38
push 0xd
pop eax
jmp 0x10008f6e
push ebp
push esi
push edi
xor esi, esi
mov edi, edx
mov ecx, edi
lea ebp, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10008f44
sub ecx, ebp
lea eax, [ecx + 1]
add edi, eax
add esi, eax
cmp eax, 1
jne 0x10008f3f
push esi
push edx
push 7
push 0
push dword [esp + 0x24]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x1000b667
Capabilities:
Encode data using xor

Disassembly:
mov ebx, dword [edi]
xor dword [ebp - 0x18], 0x7cc4dc4a
xor ebx, esi
mov dword [ebp - 0x24], 0x33509084
mov dword [edx], ebx
xor dword [ebp - 8], esi
add edx, 0x961cb24c
add edx, 0x69e34db8
add edi, 0x5353872e
sub edi, 0x5353872a
push ebx
loop 0x1000b661
add eax, 0x9d7fdf2f
add eax, 0x62812214
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x100010e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x124
lea eax, [ebp - 0x12c]
push 0
push eax
call fcn.10008660
add esp, 0xc
xor edi, edi
push edi
push 2
mov dword [ebp - 0x130], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [ebp - 0x130]
mov esi, eax
push ecx
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1000117a
lea edx, [ebp - 0x10c]
push str.lsass.exe
push edx
call fcn.10005bee
add esp, 8
test eax, eax
jne 0x10001150
mov edi, dword [ebp - 0x128]
lea eax, [ebp - 0x130]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10001132
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
jne 0x1000117d
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10002322
mov esp, ebp
pop ebp
ret

Function at 0x10001190
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 4]
push eax
push 0x20
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x100011bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10001212
lea ecx, [ebp - 0x10]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x100011de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10001212
mov eax, dword [ebp - 4]
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
push eax
mov dword [ebp - 8], 2
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x10001210
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10001212
xor esi, esi
mov eax, dword [ebp - 4]
test eax, eax
je 0x10001220
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10002110
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, eax
lea eax, [ebp - 8]
push eax
push 0
push esi
push edi
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
jne 0x100021b9
cmp dword [0x10010970], 0
mov eax, dword [0x1001096c]
mov dword [ebp - 4], 0
jne 0x10002179
test eax, eax
jne 0x1000216f
push str.RtlCreateUserThread
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1001096c], eax
mov dword [0x10010970], 1
test eax, eax
je 0x100021b1
push 0
lea ecx, [ebp - 4]
push ecx
push esi
push edi
push 0
push 0
push 0
push 0
push 0
push ebx
call eax
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x100021b9
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetThreadId]
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100021d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp edi, esi
jbe 0x10002214
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, edi
sub eax, esi
cmp eax, 0x2000
jbe 0x100021f5
mov eax, 0x2000
mov edx, dword [ebp + 0xc]
push 0
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
push eax
lea eax, [esi + edx]
push eax
push ecx
call ebx
test eax, eax
je 0x1000221f
add esi, dword [ebp - 4]
cmp esi, edi
jb 0x100021e5
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10002322
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x1000232c
repz ret
jmp fcn.100029bf
Function at 0x100076f6
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.10005cb2
and dword [ebp - 4], 0
cmp dword [0x10010838], 0
mov ebx, eax
jne 0x100077a7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10007858
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10007858
push eax
call fcn.10005c40
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10010838], eax
call esi
push eax
call fcn.10005c40
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1001083c], eax
call esi
push eax
call fcn.10005c40
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10010840], eax
call esi
push eax
call fcn.10005c40
pop ecx
mov dword [0x10010848], eax
test eax, eax
je 0x100077a7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10005c40
pop ecx
mov dword [0x10010844], eax
mov eax, dword [0x10010844]
cmp eax, ebx
je 0x100077ff
cmp dword [0x10010848], ebx
je 0x100077ff
push eax
call fcn.10005cbb
push dword [0x10010848]
mov esi, eax
call fcn.10005cbb
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100077ff
test edi, edi
je 0x100077ff
call esi
test eax, eax
je 0x100077f6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100077f6
test byte [ebp - 0xc], 1
jne 0x100077ff
or dword [ebp + 0x10], 0x200000
jmp 0x10007838
mov eax, dword [0x1001083c]
cmp eax, ebx
je 0x10007838
push eax
call fcn.10005cbb
pop ecx
test eax, eax
je 0x10007838
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10007838
mov eax, dword [0x10010840]
cmp eax, ebx
je 0x10007838
push eax
call fcn.10005cbb
pop ecx
test eax, eax
je 0x10007838
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10010838]
call fcn.10005cbb
pop ecx
test eax, eax
je 0x10007858
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000785a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001f5b
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1001f78
push 0
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
jmp 0x1001f7b
and eax, 0x10
ret 4

Function at 0x100264f
Capabilities:
Shutdown system

Disassembly:
test byte [esp + 4], 2
jne 0x1002660
call fcn.01002623
cmp eax, 2
jne 0x100269e
test byte [esp + 4], 4
jne 0x1002683
push 4
push 0x40
push 0
push 0x1001251
push 0x522
push 0
call fcn.010079de
cmp eax, 6
jne 0x100269e
cmp word [0x100aa64], 0
jne 0x1002699
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x100269e
call fcn.010079de
ret 4

Function at 0x1002b44
Capabilities:
Create directory

Disassembly:
push edi
mov edi, dword [esp + 8]
mov cl, byte [edi]
test cl, cl
je 0x1002ba9
push ebx
push esi
lea esi, [edi + 1]
mov al, byte [esi]
xor ebx, ebx
cmp al, 0x3a
jne 0x1002b67
cmp byte [edi + 2], 0x5c
jne 0x1002b67
lea esi, [edi + 3]
jmp 0x1002ba2
cmp cl, 0x5c
jne 0x1002ba2
cmp al, cl
jne 0x1002ba2
push 2
lea esi, [edi + 2]
pop ebx
jmp 0x1002ba2
cmp byte [esi], 0x5c
jne 0x1002b99
cmp byte [esi - 1], 0x3a
je 0x1002b99
test ebx, ebx
je 0x1002b8a
dec ebx
jmp 0x1002b99
and byte [esi], 0
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
cmp byte [esi], 0
jne 0x1002b78
pop esi
pop ebx
pop edi
ret 4

Function at 0x1002ebf
Capabilities:
Delete file
Set current directory
Set file attributes

Disassembly:
sub esp, 0x104
push ebp
push esi
mov esi, dword [0x100ac40]
xor ebp, ebp
cmp esi, ebp
push edi
mov edi, esi
je 0x1002f13
push ebx
mov ebx, dword [sym.imp.kernel32.dll_LocalFree]
cmp dword [0x100b884], ebp
jne 0x1002f02
cmp dword [0x100b490], ebp
jne 0x1002f02
push 0x80
push dword [esi]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
push dword [esi]
call dword [sym.imp.kernel32.dll_DeleteFileA]
push dword [edi]
mov esi, dword [esi + 4]
call ebx
push edi
call ebx
cmp esi, ebp
mov edi, esi
jne 0x1002edd
pop ebx
cmp dword [0x100b880], ebp
je 0x1002f63
cmp dword [0x100b884], ebp
jne 0x1002f63
cmp dword [0x100b490], ebp
jne 0x1002f63
push 0x100ac44
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.kernel32.dll_lstrcpyA]
test byte [0x100b494], 0x20
je 0x1002f4e
lea eax, [esp + 0xc]
push eax
call fcn.01005bf7
push 0x1001284
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
lea eax, [esp + 0xc]
push eax
call fcn.010079de
cmp word [0x100aa64], 1
je 0x1002f7a
cmp dword [0x100b880], ebp
je 0x1002f7a
call fcn.010079de
pop edi
pop esi
mov dword [0x100b880], ebp
pop ebp
add esp, 0x104
ret
Function at 0x1002f8a
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get common file path
Get file attributes

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
mov esi, dword [esp + 0x118]
push edi
xor edi, edi
xor ebp, ebp
push edi
lea eax, [esp + 0x14]
push 0x1001348
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esp + 0x118]
inc edi
push esi
call dword [sym.imp.kernel32.dll_lstrcpyA]
lea eax, [esp + 0x10]
push eax
push esi
call fcn.01005bb8
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov ebx, dword [sym.imp.kernel32.dll_CreateDirectoryA]
je 0x1003025
cmp edi, 0x190
jl 0x1002f9f
push esi
push 0
push 0x1001344
push dword [esp + 0x124]
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
test eax, eax
je 0x1003016
xor ebp, ebp
push esi
inc ebp
call dword [sym.imp.kernel32.dll_DeleteFileA]
push 0
push esi
call ebx
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x104
ret 8
xor ebp, ebp
push ebp
push esi
call ebx
test eax, eax
je 0x1002fee
xor eax, eax
inc eax
mov dword [0x100b880], eax
mov ebp, eax
jmp 0x1003016

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

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push ebx
call dword [sym.imp.kernel32.dll_lstrlenA]
add eax, 0x14
push eax
push 0x40
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
jne 0x1003ecc
push ebp
push 0x10
push ebp
push ebp
push 0x4b5
push ebp
call fcn.010079de
call fcn.01003573
mov dword [0x100aa5c], eax
xor eax, eax
jmp 0x1003f33
push edi
push ebx
push esi
call dword [sym.imp.kernel32.dll_lstrcpyA]
push 0x10013c4
push esi
call fcn.01005bb8
push ebp
push 0x4000080
push 1
push ebp
push ebp
push 0x40000000
push esi
call dword [sym.imp.kernel32.dll_CreateFileA]
push esi
mov edi, eax
call dword [sym.imp.kernel32.dll_LocalFree]
cmp edi, 0xffffffff
je 0x1003f26
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
push ebx
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1003f26
test al, 0x10
je 0x1003f26
xor eax, eax
mov dword [0x100aa5c], ebp
inc eax
jmp 0x1003f32
call fcn.01003573
mov dword [0x100aa5c], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x1004835
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
xor ebx, ebx
inc ebx
push esi
mov edi, ebx
call fcn.01005c50
test eax, eax
jne 0x100484f
mov eax, ebx
jmp 0x10048aa
cmp dword [0x100ac3c], 0
jne 0x100489c
test byte [0x100b898], bl
jne 0x100489c
push 6
push 0
push 0x1003869
push dword [0x100aa4c]
mov dword [0x100ae64], esi
push 0x7d3
push dword [0x100b4a4]
call fcn.010079de
sub eax, 6
je 0x100489a
dec eax
je 0x10048b0
sub eax, 0x832
jne 0x100489c
mov dword [0x100ac3c], ebx
mov edi, ebx
push 0x80
push esi
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
xor edi, edi
jmp 0x10048a8

Function at 0x1005ae4
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x1005b0b
inc esi
mov al, byte [esi]
test al, al
je 0x1005b04
cmp al, 0x22
jne 0x1005af9
cmp byte [esi], 0x22
jne 0x1005b1c
jmp 0x1005b1b
cmp al, 0x20
jle 0x1005b1c
inc esi
cmp byte [esi], 0x20
jg 0x1005b0f
jmp 0x1005b1c
cmp al, 0x20
jg 0x1005b22
inc esi
mov al, byte [esi]
test al, al
jne 0x1005b17
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
test byte [ebp - 0x18], 1
je 0x1005b3c
movzx eax, word [ebp - 0x14]
jmp 0x1005b3f
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
push eax
call main
push eax
call dword [sym.imp.kernel32.dll_ExitProcess]

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1005c63
xor eax, eax
jmp 0x1005c6b
shr eax, 4
not eax
and eax, 1
ret 4
Function at 0x4060a5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40b9c8
cmp edx, dword [eax]
je 0x4060c7
add eax, 8
inc ecx
cmp eax, 0x40ba58
jl 0x4060b8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40b9c8]
jne 0x4061f5
mov eax, dword [0x40c160]
cmp eax, 1
je 0x4061cf
test eax, eax
jne 0x4060f8
cmp dword [0x40b81c], 1
je 0x4061cf
cmp edx, 0xfc
je 0x4061f5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40612f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004074a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00407590
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x406172
lea eax, [ebp - 0x1a4]
push eax
call fcn.00407590
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x408508
push edi
call fcn.004055a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004074a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004074b0
lea eax, [ebp - 0xa0]
push 0x4084e8
push eax
call fcn.004074b0
push dword [esi + 0x40b9cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004074b0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040760b
add esp, 0x2c
pop edi
jmp 0x4061f5
lea eax, [ebp + 8]
lea esi, [esi + 0x40b9cc]
push 0
push eax
push dword [esi]
call fcn.00407590
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 0x1000b1b9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10023030]
jne 0x1000b1c3
repz ret
jmp fcn.1000c217

Function at 0x1000c895
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x100231b8]
je 0x1000c8b0
inc edi
cmp edi, 0x17
jb 0x1000c8a1
cmp edi, 0x17
jae 0x1000ca30
push ebp
push 3
call fcn.1001166e
cmp eax, 1
pop ecx
je 0x1000c9fc
push 3
call fcn.1001166e
test eax, eax
pop ecx
jne 0x1000c8e4
cmp dword [0x10025444], 1
je 0x1000c9fc
cmp ebx, 0xfc
je 0x1000ca2f
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x10025778
push ebp
call fcn.1000e3d5
add esp, 0xc
test eax, eax
je 0x1000c91a
push esi
push esi
push esi
push esi
push esi
call fcn.1000b5c5
add esp, 0x14
push 0x104
mov esi, 0x10025791
push esi
push 0
mov byte [0x10025895], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000c95e
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.1000e3d5
add esp, 0xc
test eax, eax
je 0x1000c95e
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1000b5c5
add esp, 0x14
push esi
call fcn.1000bbb0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1000c9a3
push esi
call fcn.1000bbb0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x10025a8c
push 0x1001b7b4
sub ecx, eax
push ecx
push eax
call fcn.100115bb
add esp, 0x14
test eax, eax
je 0x1000c9a3
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1000b5c5
add esp, 0x14
jmp 0x1000c9a5
xor esi, esi
push 0x1001b7b0
push ebx
push ebp
call fcn.1001154a
add esp, 0xc
test eax, eax
je 0x1000c9c5
push esi
push esi
push esi
push esi
push esi
call fcn.1000b5c5
add esp, 0x14
push dword [edi*8 + 0x100231bc]
push ebx
push ebp
call fcn.1001154a
add esp, 0xc
test eax, eax
je 0x1000c9e7
push esi
push esi
push esi
push esi
push esi
call fcn.1000b5c5
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.1001138d
add esp, 0xc
jmp 0x1000ca2f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1000ca2f
cmp ebp, 0xffffffff
je 0x1000ca2f
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x100231bc]
push dword [esi]
call fcn.1000bbb0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1001138d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1000cb48
xor ebx, ebx
cmp dword [0x10025dc4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10011463
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10011543
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x10011543
push eax
call fcn.1000cada
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10025dc4], eax
call esi
push eax
call fcn.1000cada
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10025dc8], eax
call esi
push eax
call fcn.1000cada
mov dword [0x10025dcc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1000e5e1
test eax, eax
pop ecx
pop ecx
je 0x10011431
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000b5c5
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10011463
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1000cada
cmp eax, ebx
pop ecx
mov dword [0x10025dd4], eax
je 0x10011463
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000cada
pop ecx
mov dword [0x10025dd0], eax
mov eax, dword [0x10025dd0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x100114e8
cmp dword [0x10025dd4], ecx
je 0x100114e8
push eax
call fcn.1000cb51
push dword [0x10025dd4]
mov esi, eax
call fcn.1000cb51
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x100114e8
cmp edi, ebx
je 0x100114e8
call esi
cmp eax, ebx
je 0x100114b5
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100114b5
test byte [ebp - 0x18], 1
jne 0x100114e8
lea eax, [ebp - 0x10]
push eax
call fcn.1000e618
test eax, eax
pop ecx
je 0x100114d0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000b5c5
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x100114df
or dword [ebp + 0x10], 0x200000
jmp 0x10011523
or dword [ebp + 0x10], 0x40000
jmp 0x10011523
mov eax, dword [0x10025dc8]
cmp eax, dword [ebp - 8]
je 0x10011523
push eax
call fcn.1000cb51
cmp eax, ebx
pop ecx
je 0x10011523
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10011523
mov eax, dword [0x10025dcc]
cmp eax, dword [ebp - 8]
je 0x10011523
push eax
call fcn.1000cb51
cmp eax, ebx
pop ecx
je 0x10011523
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10025dc4]
call fcn.1000cb51
cmp eax, ebx
pop ecx
je 0x10011543
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10011545
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret