joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d387
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x455834]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x4437c0
push esi
push eax
call fcn.0042095c
mov ecx, dword [ebp - 0x18]
add esp, 0xc
test eax, eax
jne 0x40d4f1
test ecx, ecx
je 0x40d4f1
push ecx
xor edi, edi
lea eax, [ebp - 0x14]
push 2
inc edi
push edi
push eax
call fcn.0042682c
add esp, 0x10
cmp eax, 2
jne 0x40d4de
cmp byte [ebp - 0x14], 0x4d
jne 0x40d4de
cmp byte [ebp - 0x13], 0x5a
jne 0x40d4de
push 0
push 0x3c
push dword [ebp - 0x18]
call fcn.00426bcf
add esp, 0xc
push dword [ebp - 0x18]
test eax, eax
je 0x40d423
call fcn.00420ac8
push esi
push str.no_PE32_file_2__S
call fcn.0040f3f5
add esp, 0xc
jmp 0x40d501
push edi
lea eax, [ebp - 0x20]
push 4
push eax
call fcn.0042682c
add esp, 0x10
cmp eax, edi
je 0x40d446
push dword [ebp - 0x18]
call fcn.00420ac8
push esi
push str.no_PE32_file_3__S
jmp 0x40d416
push 0
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call fcn.00426bcf
add esp, 0xc
push dword [ebp - 0x18]
test eax, eax
je 0x40d46a
call fcn.00420ac8
push esi
push str.no_PE32_file_4__S
jmp 0x40d416
push 4
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.0042682c
add esp, 0x10
cmp eax, 4
jne 0x40d4cb
cmp byte [ebp - 0x14], 0x50
jne 0x40d4cb
cmp byte [ebp - 0x13], 0x45
jne 0x40d4cb
cmp byte [ebp - 0x12], 0
jne 0x40d4cb
cmp byte [ebp - 0x11], 0
jne 0x40d4cb
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push edi
push 2
push eax
call fcn.0042682c
add esp, 0x10
push dword [ebp - 0x18]
cmp eax, edi
je 0x40d4bf
call fcn.00420ac8
push esi
push str.no_PE32_file_6__S
jmp 0x40d416
call fcn.00420ac8
movzx eax, word [ebp - 0x1c]
pop ecx
jmp 0x40d503
push dword [ebp - 0x18]
call fcn.00420ac8
push esi
push str.no_PE32_file_5__S
jmp 0x40d416
push dword [ebp - 0x18]
call fcn.00420ac8
push esi
push str.no_PE32_file__S
jmp 0x40d416
push ecx
push eax
push esi
push str.could_not_open__S__d__p
call fcn.0040f3f5
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00413c4b
leave
ret
Function at 0x40d91b
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1788
call fcn.00413d20
mov eax, dword [0x455834]
xor eax, esp
mov dword [esp + 0x1784], eax
mov eax, dword [esp + 0x178c]
push ebx
push ebp
mov ebp, dword [esp + 0x17a4]
xor bl, bl
push esi
mov esi, dword [esp + 0x17a4]
push str.SOFTWAREej_technologiesexe4jjvms2_
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040d33b
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
lea eax, [esp + 0x2c]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40da8d
and dword [ebp], eax
lea eax, [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x14], 8
push eax
lea eax, [esp + 0x20]
push eax
push 0
push str.LastWriteTime
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x40da82
cmp dword [esp + 0x10], 8
jne 0x40da82
push 8
lea eax, [esp + 0x17a4]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00415a8d
add esp, 0xc
test eax, eax
jne 0x40da82
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x1770
push eax
push esi
lea eax, [esp + 0x20]
push eax
push 0
push str.Version
push dword [esp + 0x28]
call edi
test eax, eax
sete bl
test eax, eax
jne 0x40da82
mov eax, dword [esp + 0x10]
xor ebx, ebx
inc ebx
cmp eax, ebx
jae 0x40da1d
mov byte [esi], 0
jmp 0x40da28
cmp byte [esi + eax - 1], 0
je 0x40da28
mov byte [esi + eax], 0
lea eax, [esp + 0x10]
push eax
push ebp
lea eax, [esp + 0x20]
push eax
push 0
push str.Machine
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x40da4b
cmp dword [esp + 0x10], 4
je 0x40da4d
xor bl, bl
push str.1.7.
push esi
call fcn.00420470
pop ecx
pop ecx
test eax, eax
je 0x40da80
push str.1.6.
push esi
call fcn.00420470
pop ecx
pop ecx
test eax, eax
je 0x40da80
push str.1.5.
push esi
call fcn.00420470
pop ecx
pop ecx
test eax, eax
jne 0x40da82
xor bl, bl
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [esp + 0x1790]
mov al, bl
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00413c4b
add esp, 0x1788
ret
Function at 0x40dcc4
Capabilities:
Query environment variable
Set environment variable

Disassembly:
sub esp, 0xdc
mov eax, dword [0x455834]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xf0]
push 0x7d0
call fcn.004137f4
mov ebp, eax
push edi
mov dword [esp + 0x18], ebp
call fcn.0040c121
mov esi, eax
push esi
push edi
push ebp
call fcn.0041f860
xor ebx, ebx
push ebp
mov dword [esp + 0x2c], ebx
mov byte [esi + ebp], bl
call fcn.00411406
push ebp
mov dword [esp + 0x38], eax
call fcn.0040e0d0
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
add esp, 0x1c
push ebx
push ebx
push 0x442444
call edi
xor ecx, ecx
test eax, eax
cmovs eax, ecx
mov dword [esp + 0x18], eax
lea esi, [eax + 0x1770]
push esi
call fcn.004137f4
push ebp
mov ebx, eax
call fcn.0041f750
mov ecx, dword [esp + 0x20]
add ecx, 0x1771
add ecx, eax
push ecx
call fcn.004137f4
push dword [esp + 0x1c]
mov ebp, eax
push ebp
call fcn.0041f650
push 0x4410e4
push ebp
call fcn.0041f660
add esp, 0x1c
push esi
push ebx
mov esi, 0x442444
push esi
call edi
test eax, eax
je 0x40dd92
push ebx
push ebp
call fcn.0041f660
pop ecx
pop ecx
jmp 0x40dd96
xor eax, eax
mov byte [ebx], al
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x40ddae
push ebp
push dword [esp + 0x1c]
push str.Setting_PATH__d__S
jmp 0x40ddbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebp
push str.Setting_PATH__S_failed_with_error__d
call fcn.0040f3f5
add esp, 0xc
push 0x5dc6
call fcn.004137f4
push ebp
mov esi, eax
push str.PATH_s
push esi
call fcn.00403394
push esi
call fcn.00426ead
push 0xc8
lea eax, [esp + 0x38]
push eax
push 0x98
call fcn.00401668
lea eax, [esp + 0x40]
push eax
call fcn.0041f750
add esp, 0x24
test eax, eax
je 0x40de1c
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x14]
call fcn.0040db99
pop ecx
pop ecx
mov dword [esp + 0x14], eax
jmp 0x40de1e
xor eax, eax
mov edi, 0x4431fc
test eax, eax
jne 0x40de9a
push dword [edi]
push dword [esp + 0x14]
call fcn.0040db99
add edi, 4
mov dword [esp + 0x1c], eax
pop ecx
pop ecx
cmp edi, 0x443210
jl 0x40de23
test eax, eax
jne 0x40de9a
push dword [esp + 0x1c]
call fcn.0041222e
pop ecx
push ebx
push 0x442444
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x40de70
push ebx
push str.Setting_PATH__S
call fcn.0040f3f5
pop ecx
pop ecx
jmp 0x40de85
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.Setting_PATH__S_failed_with_error__d
call fcn.0040f3f5
add esp, 0xc
push ebx
push str.PATH_s
push esi
call fcn.00403394
push esi
call fcn.00426ead
add esp, 0x10
xor edi, edi
inc edi
push edi
push ebp
call fcn.004137e6
push edi
push ebx
call fcn.004137e6
push edi
push esi
call fcn.004137e6
push edi
push dword [esp + 0x2c]
call fcn.004137e6
mov ecx, dword [esp + 0x108]
add esp, 0x20
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00413c4b
add esp, 0xdc
ret
Function at 0x40e0d0
Capabilities:
Check os version
Get common file path
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x1788]
mov eax, 0x1808
call fcn.00413d20
mov eax, dword [0x455834]
xor eax, ebp
mov dword [ebp + 0x1784], eax
push esi
push edi
mov edi, dword [ebp + 0x1790]
lea eax, [ebp - 0x80]
mov esi, 0x94
push esi
push 0
push eax
call fcn.00415560
add esp, 0xc
mov dword [ebp - 0x80], esi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x7c], 6
jb 0x40e12e
jne 0x40e1c2
cmp dword [ebp - 0x78], 4
jae 0x40e1c2
push edi
call fcn.0041f750
add eax, 0x64
push eax
call fcn.004137f4
push edi
mov esi, eax
push str._sucrtbase.dll
push esi
call fcn.00403394
push esi
call fcn.00403e71
add esp, 0x18
test al, al
je 0x40e1b8
push str.Preloading_ucrtbase.dll_4
call fcn.0040f3f5
pop ecx
lea eax, [ebp + 0x14]
mov byte [ebp + 0x14], 0
push eax
push 0x1770
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.ucrtbase.dll
call edi
test eax, eax
jne 0x40e1a0
push esi
call edi
test eax, eax
jne 0x40e1a0
push str.Could_not_preload_ucrtbase.dll
call fcn.0040f3f5
pop ecx
lea eax, [ebp + 0x14]
push eax
call fcn.0041f750
pop ecx
test eax, eax
je 0x40e1b8
lea eax, [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 1
push esi
call fcn.004137e6
pop ecx
pop ecx
mov ecx, dword [ebp + 0x1784]
pop edi
xor ecx, ebp
pop esi
call fcn.00413c4b
add ebp, 0x1788
leave
ret

Function at 0x40e215
Capabilities:
Set environment variable

Disassembly:
cmp dword [esp + 8], 0
je 0x40e237
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 1
push dword [esp + 0xc]
call fcn.004137e6
pop ecx
pop ecx
ret

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

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
xor esi, esi
test ebx, ebx
jle 0x40e711
push ebx
call fcn.004137f4
pop ecx
mov esi, eax
push ebx
push esi
push edi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea ecx, [ebx - 1]
cmp eax, ecx
je 0x40e6f9
push 1
push esi
call fcn.004137e6
push edi
push str.error_reading__S
xor esi, esi
call fcn.0040f3f5
add esp, 0x10
jmp 0x40e708
push esi
push edi
push str._S_is__S
call fcn.0040f3f5
add esp, 0xc
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x40e75d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1778
call fcn.00413d20
mov eax, dword [0x455834]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, dword [ebp + 0x14]
push str.SOFTWAREej_technologiesexe4jjvms2_
push eax
lea eax, [ebp - 0x1774]
push eax
call fcn.0040d33b
add esp, 0xc
lea eax, [ebp - 0x1778]
xor ebx, ebx
push ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea eax, [ebp - 0x1774]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40e813
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp + 0xc]
push 8
push eax
push 3
push ebx
push str.LastWriteTime
push dword [ebp - 0x1778]
call esi
push edi
call fcn.0041f750
pop ecx
push eax
push edi
push 1
push ebx
push str.Version
push dword [ebp - 0x1778]
call esi
push 4
lea eax, [ebp + 0x18]
push eax
push 4
push ebx
push str.Machine
push dword [ebp - 0x1778]
call esi
push dword [ebp - 0x1778]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00413c4b
leave
ret

Function at 0x40ea2b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 0xc]
test edx, edx
jle 0x40ea5b
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
movsx eax, byte [esi]
mov ecx, dword [edi]
xor eax, ecx
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x455018]
inc esi
mov dword [edi], ecx
sub edx, 1
jne 0x40ea3d
pop edi
pop esi
ret

Function at 0x40ea5c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x455010]
mov esi, 0x455010
jmp 0x40eab6
mov ebx, dword [esi]
push ebx
call fcn.0041f750
mov edi, eax
lea ecx, [edi + 1]
push ecx
call fcn.004137f4
pop ecx
pop ecx
mov ecx, eax
test edi, edi
jle 0x40ea9b
mov edx, ecx
sub ebx, ecx
mov ebp, edi
mov al, byte [ebx + edx]
xor al, 0xbb
mov byte [edx], al
inc edx
sub ebp, 1
jne 0x40ea8e
push edi
push ecx
push dword [esp + 0x1c]
mov byte [ecx + edi], 0
call fcn.0041f7e0
add esp, 0xc
test eax, eax
je 0x40eac7
add esi, 4
push dword [esi]
call fcn.0041f750
pop ecx
test eax, eax
jne 0x40ea6d
xor al, al
pop edi
pop esi
pop ebp
pop ebx
ret
mov al, 1
jmp 0x40eac2
Function at 0x40f172
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x465c
call fcn.00413d20
mov eax, dword [0x455834]
xor eax, esp
mov dword [esp + 0x4658], eax
mov eax, dword [0x46235c]
push edi
test eax, eax
jne 0x40f1c1
push 0x18
call fcn.004137b6
mov edx, eax
pop ecx
test edx, edx
je 0x40f1ad
push 6
pop ecx
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
jmp 0x40f1af
xor edx, edx
push edx
mov dword [0x46235c], edx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [0x46235c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x462358]
test eax, eax
je 0x40f1ec
cmp dword [0x462354], 0
jne 0x40f1ec
push str.a_ccsUTF_8
push eax
call fcn.00420945
pop ecx
pop ecx
mov dword [0x462354], eax
cmp byte [0x462350], 0
jne 0x40f399
push ebx
mov bl, byte [0x463b20]
xor eax, eax
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
inc eax
mov byte [0x462350], al
mov ebp, 0x1770
push ebp
lea eax, [esp + 0x1c]
push eax
push str.EXE4J_LOG
call esi
mov edi, 0x444094
test eax, eax
je 0x40f243
lea eax, [esp + 0x18]
push edi
push eax
call fcn.00420470
pop ecx
pop ecx
test eax, eax
movzx ebx, bl
push 1
pop eax
cmove ebx, eax
push ebp
lea eax, [esp + 0x1c]
push eax
push str.INSTALL4J_LOG
call esi
test eax, eax
je 0x40f265
lea eax, [esp + 0x18]
push edi
push eax
call fcn.00420470
pop ecx
pop ecx
test eax, eax
je 0x40f26d
test bl, bl
je 0x40f396
mov edi, 0x2ee0
push edi
call fcn.004137f4
mov esi, eax
xor eax, eax
push eax
push esi
mov word [esi], ax
call fcn.00404bd4
push esi
call fcn.0041f337
add esp, 0x10
test eax, eax
jne 0x40f2a0
push 0x4440a8
push esi
call fcn.0041f1f3
jmp 0x40f2ba
movzx eax, word [esi + eax*2 - 2]
cmp eax, 0x5c
je 0x40f2bc
cmp eax, 0x2f
je 0x40f2bc
push 0x442130
push esi
call fcn.0042017e
pop ecx
pop ecx
push edi
call fcn.004137f4
pop ecx
mov dword [0x462358], eax
xor edi, edi
inc edi
push edi
push esi
push str._si4j_nlog__d.log
push eax
call fcn.0040f3d8
push dword [0x462358]
call fcn.00403f2b
add esp, 0x14
test al, al
je 0x40f2f9
cmp edi, 0x3e8
jge 0x40f2f9
mov eax, dword [0x462358]
jmp 0x40f2ca
push 2
push esi
call fcn.004137e6
mov esi, str.w_ccsUTF_8
push esi
push dword [0x462358]
call fcn.00420945
add esp, 0x10
mov dword [0x462354], eax
test eax, eax
jne 0x40f33a
mov eax, str.c:i4j_nlog
push esi
push eax
mov dword [0x462358], eax
call fcn.00420945
mov dword [0x462354], eax
pop ecx
pop ecx
test eax, eax
je 0x40f396
push ebp
lea eax, [esp + 0x178c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x10]
push eax
call fcn.004201af
lea eax, [esp + 0x14]
push eax
call fcn.00427426
push eax
lea eax, [esp + 0x1794]
push eax
push str.Started_executable__s_at__S_n
push dword [0x462354]
call fcn.0040f473
push dword [0x462354]
call fcn.0041fe14
add esp, 0x1c
call fcn.0040f13b
mov dword [0x462360], eax
mov dword [0x462364], edx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x465c]
pop edi
xor ecx, esp
call fcn.00413c4b
add esp, 0x465c
ret
Function at 0x40f885
Capabilities:
Create mailslot
Create thread

Disassembly:
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.0040f8e5
pop ecx
xor ebx, ebx
mov esi, eax
push ebx
push 0xffffffffffffffff
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_CreateMailslotA]
push 1
push esi
mov edi, eax
call fcn.004137e6
pop ecx
pop ecx
cmp edi, 0xffffffff
jne 0x40f8c6
push str.creating_mailslot_failed
call fcn.0040f3f5
pop ecx
jmp 0x40f8e1
push str.creating_mailslot_successful
call fcn.0040f3f5
pop ecx
push ebx
push ebx
push edi
push 0x40f9d0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ebx
ret

Function at 0x40f920
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1704]
mov eax, 0x1784
call fcn.00413d20
mov eax, dword [0x455834]
xor eax, ebp
mov dword [ebp + 0x1700], eax
push esi
xor esi, esi
push esi
call fcn.00404641
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00404568
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
push 0x20019
push esi
push str.SOFTWAREej_technologiesexe4jpids_
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40f9a9
lea eax, [ebp - 0x74]
mov dword [ebp - 0x74], 4
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40f9a0
cmp dword [ebp - 0x74], 4
cmove esi, dword [ebp - 0x7c]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x1700]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00413c4b
add ebp, 0x1704
leave
ret

Function at 0x40fc0a
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push dword [esp + 0x18]
call fcn.0040f8e5
push dword [esp + 0x20]
mov ebp, eax
call fcn.0041f337
pop ecx
pop ecx
push 0
push 0x80
push 3
push 0
push 1
test eax, eax
mov ebx, str.__i4j_empty_command_line
push 0x40000000
cmovne ebx, dword [esp + 0x34]
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
xor esi, esi
jmp 0x40fc77
mov eax, esi
inc esi
cmp eax, 0x32
jge 0x40fcb2
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40fc4e
push ebx
call fcn.0041f337
pop ecx
push 0
mov esi, eax
lea eax, [esp + 0x14]
push eax
add esi, esi
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40fcc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.error_mailslot_WriteFile__d
call fcn.0040f3f5
pop ecx
pop ecx
jmp 0x40fcdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.error_mailslot_CreateFile__d
call fcn.0040f3f5
pop ecx
pop ecx
jmp 0x40fce6
cmp dword [esp + 0x10], esi
je 0x40fcdf
push esi
push dword [esp + 0x14]
push str.error_mailslot_WriteFile_length__d__d
call fcn.0040f3f5
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push ebp
call fcn.004137e6
pop ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x40fd31
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x16fc]
mov eax, 0x177c
call fcn.00413d20
mov eax, dword [0x455834]
xor eax, ebp
mov dword [ebp + 0x16f8], eax
push esi
xor esi, esi
push esi
call fcn.00404641
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00404568
add esp, 0xc
lea eax, [ebp - 0x7c]
push esi
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push str.SOFTWAREej_technologiesexe4jpids_
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40fdb0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 4
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x80]
push eax
push 4
push esi
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x16f8]
xor ecx, ebp
pop esi
call fcn.00413c4b
add ebp, 0x16fc
leave
ret
Function at 0x411519
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebx
push esi
push edi
mov esi, 0xbb80
push esi
call fcn.004137f4
mov edi, eax
mov dword [esp], 0x2ee0
call fcn.004137f4
mov ebx, eax
mov dword [esp], 0x1770
push ebx
push 0x2714
call fcn.00401668
push ebx
push str.native_lib_dir_is__S
call fcn.0040f3f5
push ebx
call fcn.00407a3b
push 0x412190
push ebx
push edi
call fcn.004044a4
push edi
call fcn.0041f750
add esp, 0x28
test eax, eax
je 0x41158e
push edi
call fcn.0041f750
pop ecx
cmp byte [eax + edi - 1], 0x3b
je 0x41158e
push 0x4410e4
push edi
call fcn.0041f660
pop ecx
pop ecx
push edi
call fcn.0041f750
pop ecx
sub esi, eax
push esi
push edi
call fcn.0041f750
pop ecx
add eax, edi
mov esi, 0x442444
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x4115c9
push edi
push str.Setting_PATH__native_libs___S
call fcn.0040f3f5
pop ecx
pop ecx
jmp 0x4115de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Setting_PATH__native_libs___S_failed_with_error__d
call fcn.0040f3f5
add esp, 0xc
push edi
call fcn.0041f750
add eax, 6
push eax
call fcn.004137f4
push edi
mov esi, eax
push str.PATH_s
push esi
call fcn.00403394
push esi
call fcn.00426ead
push 1
push esi
call fcn.004137e6
push 1
push edi
call fcn.004137e6
push 1
push ebx
call fcn.004137e6
add esp, 0x30
pop edi
pop esi
pop ebx
ret
Function at 0x411620
Capabilities:
Get common file path
Query environment variable
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x224]
sub esp, 0x224
push 0xffffffffffffffff
push 0x43f6bd
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, dword [0x455834]
xor eax, ebp
mov dword [ebp + 0x220], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x271a
call fcn.004015c7
pop ecx
test eax, eax
je 0x41181a
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0
push 0
push str.PATH
call edi
mov esi, eax
test esi, esi
jle 0x41181a
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004137f4
pop ecx
push esi
mov ebx, eax
push ebx
push str.PATH
call edi
test eax, eax
je 0x411810
push 0x104
lea eax, [ebp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x411810
lea eax, [ebp + 0x18]
push eax
call fcn.0041f337
pop ecx
test eax, eax
je 0x411810
lea eax, [ebp + 0x18]
push eax
call fcn.0041f337
mov ecx, eax
lea edi, [ebp]
xor eax, eax
mov dword [ebp - 0x10], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
xor edi, edi
mov dword [ebp + 0x14], 7
mov dword [ebp + 0x10], edi
mov word [ebp], ax
push ebx
push esi
push ecx
push str.reducing_PATH__d__d__s
mov dword [ebp - 4], edi
call fcn.0040f3f5
push edi
push 0x4412fc
push ebx
call fcn.004202a7
mov esi, eax
add esp, 0x20
test esi, esi
je 0x41178b
mov edi, dword [ebp - 0x10]
push esi
call fcn.0041f337
pop ecx
test eax, eax
je 0x41178b
push edi
lea eax, [ebp + 0x18]
push eax
push esi
call fcn.00427e2b
add esp, 0xc
test eax, eax
jne 0x411774
cmp dword [ebp + 0x10], eax
jbe 0x411763
push 0x4412fc
call fcn.0041f337
pop ecx
push eax
push 0x4412fc
lea ecx, [ebp]
call fcn.004114be
push esi
call fcn.0041f337
pop ecx
push eax
push esi
lea ecx, [ebp]
call fcn.004114be
push 0
push 0x4412fc
push 0
call fcn.004202a7
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x411728
cmp dword [ebp + 0x14], 8
lea eax, [ebp]
cmovae eax, dword [ebp]
push eax
push dword [ebp + 0x10]
push str.reduced_PATH__d_to__s
call fcn.0040f3f5
add esp, 0xc
cmp dword [ebp + 0x10], 0
jbe 0x4117d3
cmp dword [ebp + 0x14], 8
lea eax, [ebp]
cmovae eax, dword [ebp]
push eax
push str.PATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
jne 0x4117d3
push str.ERROR_setting_path
call fcn.0040f3f5
pop ecx
mov eax, dword [ebp + 0x14]
cmp eax, 8
jb 0x411810
mov ecx, dword [ebp]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
cmp eax, 0x1000
jb 0x411807
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004013fa
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
push eax
push ecx
call fcn.004137e6
pop ecx
pop ecx
push 2
push ebx
call fcn.004137e6
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x220]
xor ecx, ebp
call fcn.00413c4b
add ebp, 0x224
leave
ret