joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f705
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x7f9c]
mov eax, 0x801c
call fcn.0041d7b0
mov eax, dword [0x450970]
xor eax, ebp
mov dword [ebp + 0x7f98], eax
mov eax, dword [ebp + 0x7fa4]
push ebx
push esi
mov esi, dword [ebp + 0x7fa8]
push edi
push dword [ebp + 0x7fac]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x7fb0]
push esi
push str.extracting__S__size__d_
mov dword [ebp - 0x7c], eax
call fcn.0040b684
push 0x43c484
push esi
call fcn.00421948
xor edi, edi
add esp, 0x14
mov dword [ebp - 0x6c], eax
cmp eax, edi
jne 0x40f78e
push 0x2ee0
call fcn.0041d128
push esi
mov ebx, eax
push str.Could_not_open_file__S_n
push ebx
call fcn.0040b3b0
push ebx
call fcn.0040b625
push ebx
call fcn.00403f42
add esp, 0x18
cmp dword [ebp + 0x7fac], edi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x70], edi
jle 0x40f85f
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, 0x8000
mov eax, dword [ebp + 0x7fac]
sub eax, dword [ebp - 0x70]
cmp eax, edi
jle 0x40f7ba
mov eax, edi
push eax
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x74]
call fcn.004128ca
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x40f85f
push dword [ebp - 0x6c]
add dword [ebp - 0x70], esi
push esi
lea eax, [ebp - 0x68]
push 1
push eax
call fcn.00422463
add esp, 0x10
cmp eax, esi
jne 0x40f85f
push dword [ebp - 0x6c]
call fcn.00422d31
pop ecx
test eax, eax
jne 0x40f85f
call ebx
mov ecx, dword [ebp - 0x78]
add ecx, 0xc8
cmp ecx, eax
jae 0x40f850
call ebx
cmp dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], eax
je 0x40f850
push dword [ebp - 0x74]
call fcn.00411df0
mov dword [ebp - 0x80], eax
fild dword [ebp - 0x80]
pop ecx
fidiv dword [ebp + 0x7fb4]
fmul qword [0x43d2b8]
call fcn.00421fe6
push 0x64
pop ecx
push 0
sub ecx, eax
push ecx
push 0x402
push 0x3e9
push dword [ebp - 0x7c]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov eax, dword [ebp + 0x7fac]
cmp dword [ebp - 0x70], eax
jl 0x40f7ab
push dword [ebp - 0x6c]
call fcn.00422d31
pop ecx
test eax, eax
je 0x40f89a
push 0x43d29c
call fcn.0040b625
push dword [ebp - 0x6c]
call fcn.0041f6b2
pop ecx
pop ecx
xor al, al
mov ecx, dword [ebp + 0x7f98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d798
add ebp, 0x7f9c
leave
ret
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp + 0x7fac]
jge 0x40f8c8
push dword [ebp + 0x7fac]
push eax
push str.sizes_dont_match:__d___d
call fcn.0040b625
add esp, 0xc
xor bl, bl
push dword [ebp - 0x6c]
call fcn.0041f6b2
pop ecx
mov al, bl
jmp 0x40f882
mov bl, 1
jmp 0x40f8bb
Function at 0x40fc2c
Capabilities:
Check if file exists
Create process on windows
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x462c]
mov eax, 0x46ac
call fcn.0041d7b0
mov eax, dword [0x450970]
xor eax, ebp
mov dword [ebp + 0x4628], eax
mov eax, dword [ebp + 0x4634]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x4638]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.0041d6a0
push str..pack
call fcn.0041d280
lea esi, [ebp - 0x28]
sub esi, eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041d280
xor ebx, ebx
push edi
mov byte [eax + esi], bl
call fcn.0040470e
add esp, 0x14
test al, al
jne 0x40fca0
push str.pack_path_doesnt_exists
call fcn.0040b684
jmp 0x40fda0
push dword [ebp - 0x2c]
lea eax, [ebp + 0x2eb8]
push str._s_binunpack200.exe
push eax
call fcn.0041e231
lea eax, [ebp - 0x28]
push eax
push edi
lea eax, [ebp + 0x1748]
push str._r___s____s_
push eax
call fcn.0041e231
lea eax, [ebp + 0x2eb8]
push eax
mov esi, 0x438ce0
push esi
call fcn.0040b684
lea eax, [ebp + 0x1748]
push eax
push esi
call fcn.0040b684
push 0x10
lea eax, [ebp - 0x3c]
push ebx
push eax
call fcn.00420080
push 0x44
pop esi
push esi
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.00420080
add esp, 0x44
xor ecx, ecx
mov word [ebp - 0x50], cx
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x80]
push ecx
push ebx
push ebx
xor eax, eax
push 0x20
inc eax
push eax
push ebx
mov dword [ebp - 0x54], eax
push ebx
lea eax, [ebp + 0x1748]
push eax
lea eax, [ebp + 0x2eb8]
push eax
mov dword [ebp - 0x80], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40fd59
push str.could_not_create_unpack_process
call fcn.0040b684
mov dword [esp], 0x43d5c0
push 0x3f1
call fcn.00403fa8
pop ecx
pop ecx
push str.waiting_for_unpack200_to_finish
call fcn.0040b684
pop ecx
push 0xffffffffffffffff
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.unpack_done
call fcn.0040b684
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40fda1
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x40fda1
call esi
push eax
push str.could_not_delete_packed_file__error__d_
call fcn.0040b684
pop ecx
pop ecx
mov ecx, dword [ebp + 0x4628]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d798
add ebp, 0x462c
leave
ret
Function at 0x40fdb9
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x2fa8]
mov eax, 0x3028
call fcn.0041d7b0
mov eax, dword [0x450970]
xor eax, ebp
mov dword [ebp + 0x2fa4], eax
mov eax, dword [ebp + 0x2fb0]
push ebx
push edi
push esi
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x1834]
push str._s_s.jar.pack
push eax
call fcn.0041e231
add esp, 0x10
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x1834]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40fef2
lea eax, [ebp - 0x50]
push eax
push eax
call fcn.0041d280
pop ecx
sub eax, 5
push eax
push edi
push esi
lea eax, [ebp + 0x1834]
push str._s_s_.s
push eax
call fcn.0041e231
lea eax, [ebp + 0x1834]
push eax
push str.checking__S
call fcn.0040b684
lea eax, [ebp + 0x1834]
push eax
call fcn.0040470e
add esp, 0x24
test al, al
jne 0x40fed8
mov eax, dword [ebp - 0x80]
cmp byte [eax], 0
jne 0x40fe8e
push str.Unpacking_JRE
call fcn.0040b684
mov dword [esp], str.Preparing_JRE_..._n
call fcn.00422c6c
call fcn.0041e74f
add eax, 0x20
push eax
call fcn.0041e5d7
mov eax, dword [ebp - 0x80]
pop ecx
pop ecx
mov byte [eax], 1
lea eax, [ebp - 0x50]
push eax
push eax
call fcn.0041d280
pop ecx
sub eax, 5
push eax
push edi
lea eax, [ebp + 0x1834]
push str._s_.s
push eax
call fcn.0041e231
lea eax, [ebp + 0x1834]
push eax
push esi
lea eax, [ebp + 0xc4]
push str._s_s.pack
push eax
call fcn.0041e231
lea eax, [ebp + 0xc4]
push eax
push esi
call fcn.0040fc2c
add esp, 0x2c
lea eax, [ebp - 0x7c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40fe14
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x2fa4]
xor ecx, ebp
pop ebx
call fcn.0041d798
add ebp, 0x2fa8
leave
ret
Function at 0x410735
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
mov dword [ebp - 8], edi
cmp eax, ecx
jb 0x4107c2
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.0041ec60
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x410782
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x4107a4
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x4108f1
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
cmp ecx, edx
jbe 0x4107ea
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x4107f5
xor eax, eax
jmp 0x410841
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x410812
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.0040ffac
jmp 0x410822
cmp ecx, 2
jne 0x41082b
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.0041043a
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
push dword [ebp - 4]
push dword [edi]
push eax
call fcn.0041ec60
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edx, dword [esi + 0x74]
cmp edx, 3
jb 0x41086c
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edi, [eax + ecx]
movzx eax, byte [edi]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edi + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edx, 0x106
jae 0x410880
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x410740
mov ecx, dword [esi + 0x16c0]
mov eax, dword [esi + 0x3c]
cmp ecx, eax
jae 0x4108f1
mov edi, dword [esi + 0x6c]
add edi, edx
cmp ecx, edi
jae 0x4108c0
sub eax, edi
mov ebx, eax
mov eax, 0x102
cmp ebx, eax
jbe 0x4108a5
mov ebx, eax
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call fcn.00420080
add esp, 0xc
add ebx, edi
mov dword [esi + 0x16c0], ebx
jmp 0x4108f1
lea edx, [edi + 0x102]
cmp ecx, edx
jae 0x4108f1
sub edi, ecx
add edi, 0x102
sub eax, ecx
cmp edi, eax
jbe 0x4108da
mov edi, eax
mov eax, dword [esi + 0x38]
push edi
add eax, ecx
push 0
push eax
call fcn.00420080
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebx
leave
ret
Function at 0x4121c4
Capabilities:
Read file on windows

Disassembly:
and dword [esi], 0
mov eax, dword [esi]
mov ecx, dword [esp + 8]
sub ecx, eax
push ecx
mov ecx, dword [esp + 8]
add eax, ecx
push eax
push dword [edi + 4]
call fcn.004315b1
add esp, 0xc
test eax, eax
jle 0x4121f2
add dword [esi], eax
mov ecx, dword [esi]
cmp ecx, dword [esp + 8]
jb 0x4121c7
test eax, eax
jge 0x412210
call fcn.00422e3b
push dword [eax]
call fcn.00422d8d
push eax
push 0xffffffffffffffff
push edi
call fcn.00411e1f
add esp, 0x10
or eax, 0xffffffff
ret
test eax, eax
jne 0x41221b
mov dword [edi + 0x28], 1
xor eax, eax
ret
Function at 0x416ddd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xff8c]
mov eax, 0x1000c
call fcn.0041d7b0
mov eax, dword [0x450970]
xor eax, ebp
mov dword [ebp + 0xff88], eax
mov eax, dword [ebp + 0xff9c]
push ebx
push esi
mov esi, dword [ebp + 0xff94]
push edi
push eax
push esi
xor edi, edi
call fcn.0041b8f7
pop ecx
pop ecx
mov ebx, eax
lea eax, [ebp - 0x7c]
push eax
push 1
push edi
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x416e5e
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push edi
push edi
push ebx
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 0x7fff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x416e55
lea edi, [ebp - 0x78]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.0041d558
pop ecx
test edi, edi
je 0x416e7d
push edi
call fcn.0041da4b
pop ecx
mov ecx, dword [esi]
push eax
push edi
push esi
call dword [ecx + 0x28c]
jmp 0x416e7f
xor eax, eax
mov ecx, dword [ebp + 0xff88]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d798
add ebp, 0xff8c
leave
ret 0xc

Function at 0x416f8b
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0041b8f7
pop ecx
pop ecx
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor esi, esi
sub eax, esi
je 0x416fdb
dec eax
je 0x416fd3
dec eax
je 0x416fce
dec eax
je 0x416fca
dec eax
je 0x416fc6
dec eax
je 0x416fc2
dec eax
jne 0x416fd8
push 6
jmp 0x416fd0
push 5
jmp 0x416fd0
push 4
jmp 0x416fd0
push 3
jmp 0x416fd0
push 2
pop esi
jmp 0x416fdb
xor esi, esi
inc esi
jmp 0x416fdb
mov esi, dword [ebp + 0x10]
push edi
call fcn.0041d558
pop ecx
pop edi
mov eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x417231
Capabilities:
Shutdown system

Disassembly:
push 1
push str.SeShutdownPrivilege
call fcn.004171cb
pop ecx
pop ecx
test al, al
je 0x41724d
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
ret 8
Function at 0x4172b9
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [0x4658b0], 1
mov eax, dword [edi]
push edi
call dword [eax + 0x2ac]
xor ebx, ebx
push ebx
push dword [ebp + 0x10]
mov dword [0x4658a8], eax
mov eax, dword [edi]
push edi
call dword [eax + 0x2ec]
mov dword [0x4638a0], eax
cmp byte [ebp + 0x14], bl
je 0x417353
cmp dword [0x4658a8], ebx
mov dword [ebp + 0x14], ebx
jle 0x41746e
mov eax, dword [0x4638a0]
mov ecx, dword [ebp + 0x14]
push dword [eax + ecx*4]
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x41733a
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x417331
mov dword [0x4658b0], ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x417340
mov dword [0x4658b0], ebx
inc dword [ebp + 0x14]
mov eax, dword [ebp + 0x14]
cmp eax, dword [0x4658a8]
jl 0x417305
jmp 0x41746e
push dword [0x4658a8]
call fcn.0041d128
push dword [0x4658a8]
mov dword [0x4658ac], eax
push ebx
push eax
call fcn.00420080
add esp, 0x10
push ebx
push 0x417250
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [0x4658a8]
mov ecx, dword [0x4658ac]
xor edx, edx
cmp eax, ebx
jle 0x4173a0
cmp byte [ecx + edx], bl
jne 0x41739b
mov dword [0x4658b0], ebx
inc edx
cmp edx, eax
jl 0x417390
push ecx
call fcn.0041d558
pop ecx
cmp dword [0x4658b0], ebx
je 0x41746e
mov eax, dword [0x4658a8]
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041d128
xor esi, esi
cmp dword [0x4658a8], ebx
pop ecx
mov edi, eax
jle 0x417407
mov eax, dword [0x4638a0]
push dword [eax + esi*4]
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [edi + esi*4], eax
cmp eax, ebx
jne 0x4173fe
mov dword [0x4658b0], 2
inc esi
cmp esi, dword [0x4658a8]
jl 0x4173d9
cmp dword [0x4658b0], 1
jne 0x417443
push dword [ebp + 0x18]
push 1
push edi
push dword [0x4658a8]
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
jne 0x417435
mov dword [0x4658b0], 3
jmp 0x417443
cmp eax, ebx
je 0x417443
mov dword [0x4658b0], 2
xor esi, esi
cmp dword [0x4658a8], ebx
jle 0x417464
mov eax, dword [edi + esi*4]
cmp eax, ebx
je 0x41745b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [0x4658a8]
jl 0x41744d
push edi
call fcn.0041d558
mov edi, dword [ebp + 8]
pop ecx
mov eax, dword [edi]
push 2
push dword [0x4638a0]
push dword [ebp + 0x10]
push edi
call dword [eax + 0x30c]
mov eax, dword [0x4658b0]
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x4174b9
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
push str.Kernel32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x41752a
push str.GlobalMemoryStatusEx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x417523
lea ecx, [ebp - 0x60]
push ecx
mov dword [ebp - 0x60], 0x40
call eax
test eax, eax
je 0x417501
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
jmp 0x417539
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.error__d_n
call fcn.00422c6c
call fcn.0041e74f
add eax, 0x20
push eax
call fcn.0041e5d7
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x18]
xor edx, edx
pop esi
leave
ret 8

Function at 0x4176e1
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, dword [esp + 0xc]
push esi
push 0x439440
mov esi, 0x4638a8
push esi
mov dword [0x4638a4], eax
call fcn.0041dfba
pop ecx
pop ecx
push 0
push 0x41765f
call dword [sym.imp.USER32.dll_EnumWindows]
push esi
call fcn.0041da4b
pop ecx
mov ecx, dword [esp + 8]
mov edx, dword [ecx]
push eax
push esi
push ecx
call dword [edx + 0x28c]
pop esi
ret 0xc

Function at 0x417724
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0041b8f7
push dword [ebp + 0x14]
mov ebx, eax
push dword [ebp + 8]
call fcn.0041b8f7
push 0x10
mov dword [ebp + 8], eax
xor esi, esi
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00420080
push 0x44
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.00420080
add esp, 0x28
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x20
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x54], 0x44
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x417790
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push ebx
call fcn.0041d558
push dword [ebp + 8]
call fcn.0041d558
pop ecx
pop ecx
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x417f31
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp byte [ebp + 0x10], 0
push esi
sete al
movzx eax, al
push eax
push str.SeDebugPrivilege
call fcn.004171cb
pop ecx
pop ecx
lea ecx, [ebp - 0x18]
call fcn.00417a42
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.00417ce1
mov eax, dword [ebp - 8]
pop ecx
pop ecx
mov ecx, eax
sub ecx, dword [ebp - 0xc]
test ecx, 0xfffffffc
jne 0x417f85
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.00417b2a
mov eax, dword [ebp - 8]
pop ecx
pop ecx
sub eax, dword [ebp - 0xc]
test eax, 0xfffffffc
jne 0x417fa4
lea ecx, [ebp - 0x18]
call fcn.00406cf9
push dword [ebp - 0x18]
call fcn.0041d558
pop ecx
xor eax, eax
jmp 0x417fca
mov eax, dword [esi]
push edi
push str.java_lang_String
push esi
call dword [eax + 0x18]
xor edi, edi
cmp eax, edi
jne 0x417fcf
lea ecx, [ebp - 0x18]
call fcn.00406cf9
push dword [ebp - 0x18]
call fcn.0041d558
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret 0xc
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0xc]
mov edx, dword [esi]
push ebx
push edi
push eax
sar ecx, 2
push ecx
push esi
call dword [edx + 0x2b0]
mov ebx, eax
cmp ebx, edi
jne 0x418003
xor ebx, ebx
lea ecx, [ebp - 0x18]
call fcn.00406cf9
push dword [ebp - 0x18]
call fcn.0041d558
pop ecx
mov eax, ebx
pop ebx
jmp 0x417fc9
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0xc]
sar eax, 2
test eax, eax
jbe 0x417fed
push edi
lea ecx, [ebp - 0x18]
call fcn.00406931
mov eax, dword [eax]
mov ecx, dword [esi]
push eax
push edi
push ebx
push esi
call dword [ecx + 0x2b8]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0xc]
inc edi
sar eax, 2
cmp edi, eax
jb 0x418010
jmp 0x417fed
Function at 0x418037
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
lea ecx, [ebp - 0x1c]
call fcn.00417a42
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp word [eax], 0
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov edi, eax
je 0x418092
push edi
call fcn.0041da4b
mov ebx, eax
pop ecx
test ebx, ebx
jle 0x41808a
mov eax, dword [esi]
push ebx
push edi
push esi
call dword [eax + 0x28c]
mov dword [ebp + 8], eax
test eax, eax
je 0x418087
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00417ad7
lea edi, [edi + ebx*2]
inc edi
inc edi
cmp word [edi], 0
jne 0x41805c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, dword [esi]
push str.java_lang_String
push esi
call dword [eax + 0x18]
test eax, eax
jne 0x4180c4
lea ecx, [ebp - 0x1c]
call fcn.00406cf9
push dword [ebp - 0x1c]
call fcn.0041d558
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x10]
mov edx, dword [esi]
push 0
push eax
sar ecx, 2
push ecx
push esi
call dword [edx + 0x2b0]
mov ebx, eax
test ebx, ebx
jne 0x4180f5
lea ecx, [ebp - 0x1c]
call fcn.00406cf9
push dword [ebp - 0x1c]
call fcn.0041d558
pop ecx
mov eax, ebx
jmp 0x4180bd
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x10]
xor edi, edi
sar eax, 2
test eax, eax
jbe 0x4180e0
push edi
lea ecx, [ebp - 0x1c]
call fcn.00406931
mov eax, dword [eax]
mov ecx, dword [esi]
push eax
push edi
push ebx
push esi
call dword [ecx + 0x2b8]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x10]
inc edi
sar eax, 2
cmp edi, eax
jb 0x418104
jmp 0x4180e0

Function at 0x418143
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8004
call fcn.0041d7b0
mov eax, dword [0x450970]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x450940], 1
jne 0x4181dd
and dword [0x450940], 0
push 0x2000
lea eax, [ebp - 0x8004]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
test eax, eax
je 0x4181dd
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x4004]
push 0x441c2c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
add esp, 0x10
lea eax, [ebp - 0x4004]
push eax
call esi
test eax, eax
je 0x4181dc
push 0x28
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x4004]
push eax
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [0x450940], eax
lea eax, [ebp - 0x8004]
push eax
call esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d798
leave
ret
Function at 0x4186ea
Capabilities:
Connect pipe

Disassembly:
push edi
mov edi, dword [esp + 0x10]
cmp edi, 0xffffffff
jne 0x4186f8
xor al, al
jmp 0x41873c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
xor ebx, ebx
push ebx
push edi
call esi
test eax, eax
jne 0x418737
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 0x217
je 0x418737
inc ebx
cmp ebx, 0x258
jg 0x418740
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push edi
call esi
test eax, eax
je 0x418711
mov al, 1
pop esi
pop ebp
pop ebx
pop edi
ret 0x10
call ebp
push eax
push str.could_not_connect_named_pipe__d_n
call fcn.00422c6c
pop ecx
pop ecx
xor al, al
jmp 0x418739

Function at 0x418825
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 0x10], 0xffffffff
push ebx
push esi
jne 0x418839
xor eax, eax
jmp 0x4188d4
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4188d1
cmp dword [ebp - 4], 4
jb 0x4188d1
push dword [ebp - 8]
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push esi
call dword [eax + 0x2c0]
mov dword [ebp + 8], eax
cmp eax, edi
je 0x4188d1
mov ecx, dword [esi]
push edi
push eax
push esi
call dword [ecx + 0x2e0]
mov ebx, eax
mov eax, dword [ebp - 8]
test eax, eax
jle 0x4188ae
push 0
lea ecx, [ebp - 4]
push ecx
sub eax, edi
push eax
lea eax, [edi + ebx]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4188c2
add edi, dword [ebp - 4]
mov eax, dword [ebp - 8]
cmp edi, eax
jl 0x41888a
mov eax, dword [esi]
push 0
push ebx
push dword [ebp + 8]
push esi
call dword [eax + 0x300]
mov eax, dword [ebp + 8]
jmp 0x4188d3
mov eax, dword [esi]
push 0
push ebx
push dword [ebp + 8]
push esi
call dword [eax + 0x300]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10