joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007e481
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.1007e3fd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1007e5f0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1007e5f0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1007e5a5
jg 0x1007e4dd
test eax, eax
je 0x1007e59b
push 1
push 0x1000
call fcn.1006f63b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1007e500
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1007e592
push 0x8000
push ebx
call fcn.1007e32e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1007e529
jg 0x1007e524
cmp ecx, 0x1000
jb 0x1007e529
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100745f4
add esp, 0x10
cmp eax, 0xffffffff
je 0x1007e56e
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 0x1007e524
jl 0x1007e555
test ecx, ecx
jne 0x1007e516
push dword [ebp - 0xc]
push ebx
call fcn.1007e32e
push esi
call fcn.1006f698
add esp, 0xc
xor ebx, ebx
jmp 0x1007e5fe
cmp byte [edi + 0x24], 0
je 0x1007e585
cmp dword [edi + 0x20], 5
jne 0x1007e585
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1007e590
mov ebx, dword [edi + 0x18]
jmp 0x1007e592
xor ebx, ebx
push esi
call fcn.1006f698
pop ecx
jmp 0x1007e5fe
test ecx, ecx
jg 0x1007e567
jl 0x1007e5a5
test eax, eax
jae 0x1007e567
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1007558c
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1007e5c5
cmp byte [edi + 0x1c], 0
je 0x1007e567
jmp 0x1007e5f6
push ebx
call fcn.10078c17
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1007e567
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 0x1007e5fe
cmp byte [edi + 0x1c], 0
je 0x1007e5fb
mov ebx, dword [edi + 0x18]
jmp 0x1007e5fe
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1007558c
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10080230
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1008025d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1008025d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40173c
Capabilities:
Get graphical window text

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
mov ecx, 0x20
push edi
push esi
push ebx
lea edi, [ebp - 0x98]
sub esp, 0x11c
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x98]
mov dword [esp + 4], edi
mov dword [esp], 0x18
call fcn.0040206e
test eax, eax
jne 0x401778
xor eax, eax
jmp 0x4017fb
mov dword [esp + 0xc], 0
lea esi, [ebp - 0x118]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.user32.dll_FindWindowExA
sub esp, 0x10
mov ebx, eax
test ebx, ebx
je 0x401771
mov dword [esp + 8], 0x7f
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.user32.dll_GetWindowTextA
sub esp, 0xc
mov dword [esp + 4], edi
mov dword [esp], esi
call sub.msvcrt.dll_strstr
test eax, eax
jne 0x4017f9
mov dword [esp + 4], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], 0
call sub.user32.dll_FindWindowExA
sub esp, 0x10
mov ebx, eax
jmp 0x4017a7
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401d3a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov eax, 0x801c
mov ebp, esp
push edi
push esi
push ebx
call fcn.0040b3d0
mov ecx, 0x7fff
sub esp, eax
xor eax, eax
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x8017]
mov esi, dword [ebp + 0xc]
rep stosb byte es:[edi], al
lea edi, [ebp - 0x8017]
mov dword [esp + 8], 0x7fff
mov dword [esp + 4], edi
mov dword [esp], str.Launch4j
call sub.kernel32.dll_GetEnvironmentVariableA
sub esp, 0xc
mov dword [esp + 4], str.__l4j_debug
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
test eax, eax
jne 0x401daa
mov dword [esp + 4], str.debug
mov dword [esp], edi
call sub.msvcrt.dll_strstr
test eax, eax
je 0x401df8
mov eax, dword [ebp + 0x10]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00401cc3
test eax, eax
mov dword [0x410a2c], eax
je 0x401e3c
mov dword [esp + 4], str.__l4j_debug_all
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
mov edx, 1
test eax, eax
jne 0x401df2
mov dword [esp + 4], str.debug_all
mov dword [esp], edi
call sub.msvcrt.dll_strstr
xor edx, edx
test eax, eax
setne dl
mov dword [0x410024], edx
mov eax, dword [0x410a2c]
test eax, eax
je 0x401e19
mov dword [esp + 8], str.3.50
mov dword [esp + 4], str._n_nVersion:_t_s_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [0x410a2c]
test eax, eax
je 0x401e40
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], str.CmdLine:_t_s__s_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x401e40
xor eax, eax
jmp 0x401e45
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x401f36
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, dword [0x410a2c]
test eax, eax
je 0x401f65
mov dword [esp + 8], 0x419168
mov dword [esp + 4], str.Error_msg:_t_s_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
test ebx, ebx
je 0x401ff7
lea eax, [ebp - 0xc]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0x1300
call sub.kernel32.dll_FormatMessageA
mov eax, dword [0x410a2c]
sub esp, 0x1c
test eax, eax
je 0x401fc7
mov edx, dword [ebp - 0xc]
mov dword [esp + 4], str.Error:_t_t_s_n
mov dword [esp], eax
mov dword [esp + 8], edx
call sub.msvcrt.dll_fprintf
mov dword [esp + 4], 0x40d13f
mov dword [esp], 0x419168
call sub.msvcrt.dll_strcat
mov ebx, dword [ebp - 0xc]
mov dword [esp], 0x419168
mov dword [esp + 4], ebx
call sub.msvcrt.dll_strcat
mov dword [esp], ebx
call sub.kernel32.dll_LocalFree
push ecx
mov dword [esp], 0x419168
call fcn.00401ed3
cmp byte [0x419568], 0
je 0x402064
mov eax, dword [0x410a2c]
test eax, eax
je 0x40202d
mov dword [esp + 8], 0x419568
mov dword [esp + 4], str.Open_URL:_t_s_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x419568
mov dword [esp + 4], str.open
mov dword [esp], 0
call sub.shell32.dll_ShellExecuteA
sub esp, 0x18
call fcn.00401d21
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x40206e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
cmp dword [0x410024], 0
mov ebx, dword [ebp + 0xc]
je 0x4020a2
mov eax, dword [0x410a2c]
test eax, eax
je 0x4020a2
mov dword [esp + 8], esi
mov dword [esp + 4], str.Resource__d:_t
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [0x4190e4]
movzx esi, si
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], esi
mov dword [esp + 4], 0xa
mov dword [esp], eax
call sub.kernel32.dll_FindResourceExA
sub esp, 0x10
test eax, eax
je 0x40212b
mov dword [esp + 4], eax
mov eax, dword [0x4190e4]
mov dword [esp], eax
call sub.kernel32.dll_LoadResource
test eax, eax
push ecx
push ecx
je 0x40213b
mov dword [esp], eax
call sub.kernel32.dll_LockResource
test eax, eax
push edx
je 0x40213b
xor edx, edx
mov cl, byte [eax + edx]
mov byte [ebx + edx], cl
inc edx
test cl, cl
jne 0x4020f3
cmp dword [0x410024], 0
mov esi, 1
je 0x40215f
mov eax, dword [0x410a2c]
test eax, eax
je 0x40215f
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x40d163
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x40215f
mov dword [esp], 0
call sub.kernel32.dll_SetLastError
push esi
mov byte [ebx], 0
xor esi, esi
cmp dword [0x410024], 0
je 0x40215f
mov eax, dword [0x410a2c]
test eax, eax
je 0x40215f
mov dword [esp + 4], eax
mov dword [esp], str._NULL__n
call sub.msvcrt.dll_fputs
lea esp, [ebp - 8]
mov eax, esi
pop ebx
pop esi
pop ebp
ret
Function at 0x4021de
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [ebp + 8]
mov dword [esp + 4], str.HKEY_CLASSES_ROOT
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
cmp eax, ebx
je 0x40225b
mov dword [esp + 4], str.HKEY_CURRENT_USER
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
cmp eax, ebx
je 0x402262
mov dword [esp + 4], str.HKEY_LOCAL_MACHINE
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
cmp eax, ebx
je 0x402269
mov dword [esp + 4], str.HKEY_USERS
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
cmp eax, ebx
je 0x402270
mov dword [esp + 4], str.HKEY_CURRENT_CONFIG
xor esi, esi
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
cmp eax, ebx
jne 0x40234c
mov esi, 0x80000005
jmp 0x402275
mov esi, 0x80000000
jmp 0x402275
mov esi, 0x80000001
jmp 0x402275
mov esi, 0x80000002
jmp 0x402275
mov esi, 0x80000003
mov dword [esp], ebx
mov dword [esp + 4], 0x5c
call sub.msvcrt.dll_strchr
mov dword [esp], ebx
mov dword [esp + 4], 0x5c
lea edi, [eax + 1]
call sub.msvcrt.dll_strrchr
lea edx, [ebp - 0x20]
mov byte [eax], 0
mov ebx, eax
cmp dword [0x41001c], 0
jne 0x4022d4
mov dword [esp], esi
xor esi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], edi
call sub.advapi32.dll_RegOpenKeyExA
sub esp, 0x14
test eax, eax
jne 0x402349
jmp 0x402301
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x20119
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [ebp - 0x2c], edx
call sub.advapi32.dll_RegOpenKeyExA
mov edx, dword [ebp - 0x2c]
sub esp, 0x14
test eax, eax
jne 0x4022a9
lea eax, [ebp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
lea eax, [ebx + 1]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.advapi32.dll_RegQueryValueExA
sub esp, 0x18
test eax, eax
sete al
movzx eax, al
mov esi, eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
push edi
mov byte [ebx], 0x5c
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40293e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
mov ecx, 0x41
push edi
push esi
push ebx
sub esp, 0x24c
mov edx, dword [ebp + 0xc]
lea edi, [ebp - 0x220]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x22c]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x220]
and edx, 0x100
or edx, 0x20019
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
sub esp, 0x14
test eax, eax
jne 0x402a38
lea edi, [ebp - 0x11c]
mov ecx, 0x41
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x228]
xor ebx, ebx
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x224]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x22c]
lea edi, [ebp - 0x11c]
mov dword [esp + 0x10], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.JavaHome
mov dword [esp], eax
mov dword [ebp - 0x228], 0x104
call sub.advapi32.dll_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x402a13
mov dl, byte [edi + eax]
mov byte [esi + eax], dl
inc eax
test dl, dl
jne 0x4029fe
mov dword [esp], esi
call fcn.00402657
mov ebx, eax
mov eax, dword [ebp - 0x22c]
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
test ebx, ebx
push eax
je 0x402a38
mov dword [esp + 4], esi
mov dword [esp], 0x418edc
call sub.msvcrt.dll_strcpy
jmp 0x402a44
mov dword [0x418c58], 1
xor ebx, ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402e1f
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x64
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x48]
mov dword [esp], eax
mov dword [ebp - 0x48], 0x40
call sub.kernel32.dll_GlobalMemoryStatusEx
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
push ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov dword [esp], ebx
mov dword [esp + 0x14], str._Xms
mov dword [esp + 8], 0x1a
mov dword [esp + 4], 0x19
call fcn.00402cce
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
mov dword [esp], ebx
mov dword [esp + 0x14], str._Xmx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0x1c
mov dword [esp + 4], 0x1b
call fcn.00402cce
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x402e9d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x12c
mov eax, dword [ebp + 8]
mov dword [esp], 0xc
mov ebx, dword [ebp + 0xc]
mov dword [esp + 4], eax
call fcn.0040206e
test eax, eax
je 0x402ed6
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x40d349
mov dword [esp], eax
call sub.msvcrt.dll_strcat
xor eax, eax
mov ecx, 0x41
lea edi, [ebp - 0x11c]
rep stosd dword es:[edi], eax
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
mov dword [esp + 4], ebx
lea ebx, [ebp - 0x11c]
mov dword [esp], ebx
not ecx
sub ecx, 4
mov dword [esp + 8], ecx
call sub.msvcrt.dll_strncpy
mov dword [esp + 4], str.l4j.ini
mov dword [esp], ebx
call sub.msvcrt.dll_strcat
mov dword [esp + 4], 0
mov dword [esp], ebx
call sub.msvcrt.dll__open
mov dword [ebp - 0x12c], eax
inc eax
je 0x402ff6
mov eax, dword [0x410a2c]
test eax, eax
je 0x402f51
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Loading:_t_s_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov edi, dword [ebp + 8]
xor eax, eax
or ecx, 0xffffffff
xor ebx, ebx
mov esi, 1
repne scasb al, byte es:[edi]
mov eax, 0x7c00
mov edi, dword [ebp + 8]
not ecx
dec ecx
sub eax, ecx
add edi, ecx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x12c]
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll__read
mov edx, edi
cmp ebx, eax
jge 0x402fc8
mov cl, byte [edi + ebx]
cmp cl, 0x23
je 0x402fc3
cmp cl, 0xa
je 0x402f9f
cmp cl, 0xd
jne 0x402fb5
cmp edx, dword [ebp + 8]
mov esi, 1
jbe 0x402fc5
cmp byte [edx - 1], 0x20
je 0x402fc5
mov byte [edx], 0x20
inc edx
jmp 0x402fc5
test esi, esi
je 0x402fc5
mov byte [edx], cl
mov esi, 1
inc edx
jmp 0x402fc5
xor esi, esi
inc ebx
jmp 0x402f89
test eax, eax
mov byte [edx], 0
jle 0x402fe8
cmp byte [edx - 1], 0x20
je 0x402fe8
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x40d349
mov dword [esp], eax
call sub.msvcrt.dll_strcat
mov eax, dword [ebp - 0x12c]
mov dword [esp], eax
call sub.msvcrt.dll__close
add esp, 0x12c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x403001
Capabilities:
Check mutex on windows

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
mov ecx, 0x20
push edi
lea edi, [ebp - 0x88]
sub esp, 0xa4
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x88]
mov dword [esp + 4], edi
mov dword [esp], 0x17
call fcn.0040206e
mov edx, 1
cmp byte [ebp - 0x88], 0
je 0x4030ce
mov eax, dword [0x410a2c]
test eax, eax
je 0x40305f
mov dword [esp + 8], edi
mov dword [esp + 4], str.Create_mutex:_t_s_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
lea eax, [ebp - 0x94]
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [ebp - 0x94], 0xc
mov dword [ebp - 0x8c], 1
mov dword [ebp - 0x90], 0
call sub.kernel32.dll_CreateMutexA
sub esp, 0xc
call sub.kernel32.dll_GetLastError
mov edx, 1
cmp eax, 0xb7
jne 0x4030ce
mov eax, dword [0x410a2c]
test eax, eax
je 0x4030cc
mov dword [esp + 8], str.Instance_already_exists.
mov dword [esp + 4], str.Error:_t_t_s_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
xor edx, edx
mov eax, edx
mov edi, dword [ebp - 4]
leave
ret

Function at 0x4032b9
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov eax, 0x801c
mov ebp, esp
push edi
push esi
push ebx
call fcn.0040b3d0
xor esi, esi
mov ecx, 0x7fff
sub esp, eax
mov eax, esi
lea edi, [ebp - 0x8017]
rep stosb byte es:[edi], al
lea ebx, [ebp - 0x8017]
mov dword [esp + 8], 0x7fff
mov dword [esp + 4], ebx
mov dword [esp], str.Path
call sub.kernel32.dll_GetEnvironmentVariableA
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
mov edx, eax
mov eax, esi
repne scasb al, byte es:[edi]
mov esi, 0x7ffe
sub esp, 0xc
sub esi, edx
xor eax, eax
not ecx
dec ecx
cmp esi, ecx
jb 0x40334a
mov dword [esp + 4], 0x40d277
mov dword [esp], ebx
call sub.msvcrt.dll_strcat
mov eax, dword [ebp + 8]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_strcat
mov dword [esp + 4], ebx
mov dword [esp], str.Path
call sub.kernel32.dll_SetEnvironmentVariableA
push esi
push esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4033d0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov eax, 0x1001c
mov ebp, esp
push edi
push esi
push ebx
call fcn.0040b3d0
mov ecx, 0x2000
sub esp, eax
xor eax, eax
lea edi, [ebp - 0x8018]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x10017]
lea ebx, [ebp - 0x10017]
mov cx, 0x7fff
rep stosb byte es:[edi], al
mov dword [esp + 4], ebx
mov dword [esp], 0x13
call fcn.0040206e
mov dword [esp], ebx
lea ebx, [ebp - 0x8018]
mov dword [esp + 4], 0x40d3ce
call sub.msvcrt.dll_strtok
mov esi, eax
test esi, esi
je 0x4034ab
mov dword [esp + 4], 0x3d
mov dword [esp], esi
call sub.msvcrt.dll_strchr
mov edx, dword [ebp + 0xc]
mov byte [eax], 0
inc eax
mov dword [esp + 0xc], edx
mov edx, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], ebx
mov byte [ebp - 0x8018], 0
mov dword [esp + 8], edx
call fcn.00402a7b
mov eax, dword [0x410a2c]
test eax, eax
je 0x403485
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], str.Set_var:_t_s___s_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], esi
mov dword [esp + 4], ebx
call sub.kernel32.dll_SetEnvironmentVariableA
push edi
push edi
mov dword [esp + 4], 0x40d3ce
mov dword [esp], 0
call sub.msvcrt.dll_strtok
mov esi, eax
jmp 0x40342b
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x403a11
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov eax, 0x808c
mov ebp, esp
push edi
push esi
push ebx
call fcn.0040b3d0
mov edx, 0x418c38
mov ecx, 4
mov edi, edx
sub esp, eax
xor eax, eax
mov esi, dword [ebp + 0xc]
rep stosd dword es:[edi], eax
lea ebx, [ebp - 0x805c]
mov edi, ebx
mov cl, 0x11
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x8018]
mov dword [ebp - 0x805c], 0x44
mov cx, 0x2000
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x8018]
mov dword [esp + 4], 0x40d451
mov dword [esp], edi
call sub.msvcrt.dll_strcpy
mov dword [esp + 4], 0x410b34
mov dword [esp], edi
call sub.msvcrt.dll_strcat
mov dword [esp + 4], 0x40d447
mov dword [esp], edi
call sub.msvcrt.dll_strcat
mov dword [esp + 4], 0x410c38
mov dword [esp], edi
call sub.msvcrt.dll_strcat
mov eax, dword [0x418c48]
mov dword [esp + 0x24], 0x418c38
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], 0
call sub.kernel32.dll_CreateProcessA
sub esp, 0x28
test eax, eax
je 0x403b36
cmp dword [ebp + 8], 0
je 0x403b29
mov eax, dword [0x418c38]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sub.kernel32.dll_WaitForSingleObject
push eax
push eax
mov eax, dword [0x418c38]
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.kernel32.dll_GetExitCodeProcess
push eax
push eax
call fcn.004039ed
jmp 0x403b2f
mov dword [esi], 0
mov eax, 1
jmp 0x403b3e
mov dword [esi], 0xffffffff
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x403b64
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ecx, 0x100
mov ebp, esp
xor eax, eax
push edi
push esi
mov esi, 0x400
push ebx
lea edi, [ebp - 0x418]
sub esp, 0x43c
lea ebx, [ebp - 0x41c]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x418]
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.kernel32.dll_ReadFile
sub esp, 0x14
test eax, eax
je 0x403bc6
mov eax, dword [ebp - 0x41c]
test eax, eax
je 0x403bc6
add edi, eax
sub esi, eax
jne 0x403b90
cmp dword [0x410024], 0
lea ebx, [ebp - 0x418]
je 0x403bf2
mov eax, dword [0x410a2c]
test eax, eax
je 0x403bf2
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Java_version_output:__s_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
mov dword [esp + 4], 0x22
mov dword [esp], ebx
call sub.msvcrt.dll_strchr
test eax, eax
jne 0x403c26
mov eax, dword [0x410a2c]
test eax, eax
je 0x403cb8
mov dword [esp + 4], eax
mov dword [esp], str.Cannot_get_version_string:_cannot_find_quote_n
jmp 0x403c6e
lea esi, [eax + 1]
mov dword [esp + 4], 0x22
mov dword [esp], esi
call sub.msvcrt.dll_strchr
test eax, eax
jne 0x403c53
mov eax, dword [0x410a2c]
test eax, eax
je 0x403cb8
mov dword [esp + 4], eax
mov dword [esp], str.Cannot_get_version_string:_missing_end_quote_n
jmp 0x403c6e
sub eax, esi
cmp eax, dword [ebp + 0x10]
jb 0x403c75
mov eax, dword [0x410a2c]
test eax, eax
je 0x403cb8
mov dword [esp + 4], eax
mov dword [esp], str.Cannot_get_version_string:_data_too_large_n
call sub.msvcrt.dll_fputs
jmp 0x403cb8
mov edi, dword [ebp + 0xc]
mov ecx, eax
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp + 0xc]
mov byte [edx + eax], 0
mov dword [esp + 4], str.64_Bit
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
mov edx, 1
test eax, eax
jne 0x403cb3
mov dword [esp + 4], str.64_bit
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
xor edx, edx
test eax, eax
setne dl
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x403cc0
Capabilities:
Create process on windows

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
mov ecx, 4
push edi
push esi
lea edx, [ebp - 0x6c]
push ebx
mov edi, edx
sub esp, 0x9c
mov ebx, dword [ebp + 8]
rep stosd dword es:[edi], eax
lea esi, [ebp - 0x5c]
mov edi, esi
cmp dword [0x410024], 0
mov cl, 0x11
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x5c], 0x44
mov dword [ebp - 0x30], 0x100
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
je 0x403d29
mov eax, dword [0x410a2c]
test eax, eax
je 0x403d29
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Create_process:__s_n
mov dword [esp], eax
mov dword [ebp - 0x7c], edx
call sub.msvcrt.dll_fprintf
mov edx, dword [ebp - 0x7c]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x8000000
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0
call sub.kernel32.dll_CreateProcessA
sub esp, 0x28
test eax, eax
mov esi, eax
jne 0x403d99
mov eax, dword [0x410a2c]
test eax, eax
je 0x403db1
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Cannot_create_process__s_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x403db1
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call sub.kernel32.dll_CloseHandle
push eax
mov eax, dword [ebp - 0x68]
mov dword [esp], eax
call sub.kernel32.dll_CloseHandle
push edx
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.kernel32.dll_CloseHandle
push eax
mov eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret