joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ea20
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
cmp dword [0x45a1b0], ebx
jne 0x44ea6f
call esi
cmp eax, ebx
mov edi, eax
je 0x44ea4d
mov dword [0x45a1b0], 1
jmp 0x44ea6f
call dword [sym.imp.kernel32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x44ea65
mov dword [0x45a1b0], 2
jmp 0x44ea6f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x45a1b0], 1
jne 0x44eb1e
test edi, edi
jne 0x44ea92
call esi
mov edi, eax
test edi, edi
jne 0x44ea92
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x44eaac
add esi, 2
cmp word [esi], 0
jne 0x44ea9a
add esi, 2
cmp word [esi], 0
jne 0x44ea9a
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x44eb0d
push ebp
call fcn.0044c950
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x44eb0d
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
test eax, eax
jne 0x44eafc
push ebx
call fcn.0044c900
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x45a1b0], 2
jne 0x44eba2
test ebx, ebx
jne 0x44eb41
call dword [sym.imp.kernel32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x44eb41
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x44eb56
inc ebp
cmp byte [ebp], 0
jne 0x44eb48
inc ebp
cmp byte [ebp], 0
jne 0x44eb48
sub ebp, ebx
inc ebp
push ebp
call fcn.0044c950
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x44eb7b
push ebx
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x44f180
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x45a3d8
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x44f1a7
add eax, 8
inc ecx
cmp eax, 0x45a468
jb 0x44f198
cmp dword [ecx*8 + 0x45a3d8], edx
lea ebx, [ecx*8]
jne 0x44f36b
cmp dword [0x4594dc], 1
je 0x44f327
cmp dword [0x4594dc], 0
jne 0x44f1de
cmp dword [0x4594e0], 1
je 0x44f327
cmp edx, 0xfc
je 0x44f36b
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.kernel32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x44f21b
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x44f25f
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x453608
push ebp
call fcn.0044c060
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4535e8
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x45a3dc]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.004509f0
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x4655b0], 0
je 0x44f33d
mov eax, dword [0x4655b0]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x44f347
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x45a3dc]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.kernel32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x44fff0
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x418
cmp dword [0x4656b0], edx
push ebx
push esi
push edi
push ebp
jbe 0x4501f7
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x4655b0
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ecx, dword [esp + 0x18]
shl eax, 3
mov ebx, dword [ecx]
mov ebp, eax
mov dword [esp + 0x1c], eax
mov al, byte [ebx + ebp + 4]
test al, 1
je 0x4501f7
xor esi, esi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], esi
cmp ebp, esi
jne 0x450059
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
test al, 0x20
je 0x45006a
push 2
push 0
push edx
call fcn.00450e80
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x450106
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x430]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x45013f
lea edi, [esp + 0x24]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x4500cd
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x4500bb
mov byte [edi], 0xd
inc esi
inc edi
mov byte [edi], al
inc edi
mov eax, edi
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x4500a2
lea eax, [esp + 0x24]
push 0
sub edi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push edi
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x450135
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, edi
jge 0x45008d
jmp 0x45013f
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x450135
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x45013f
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x4501e6
cmp dword [esp + 0x10], 0
je 0x450198
cmp dword [esp + 0x10], 5
jne 0x45017b
mov dword [0x45a0d4], 9
mov eax, dword [esp + 0x10]
pop ebp
pop edi
mov dword [0x45a0d8], eax
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.0044d700
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x4501c2
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x4501c2
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x45a0d4], 0x1c
mov dword [0x45a0d8], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, esi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x45a0d4], 9
mov dword [0x45a0d8], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x450fc0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.0044c890
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [esp + 0x1014]
push ebp
cmp dword [0x4656b0], esi
jbe 0x45110d
mov eax, esi
mov ecx, esi
and eax, 0xffffffe7
and ecx, 0x1f
sar eax, 3
mov edx, dword [eax + 0x4655b0]
test byte [edx + ecx*8 + 4], 1
je 0x45110d
push 1
push ebx
push esi
call fcn.00450e80
mov dword [esp + 0x1c], eax
add esp, 0xc
cmp eax, 0xffffffff
je 0x4510fd
push 2
push ebx
push esi
call fcn.00450e80
add esp, 0xc
cmp eax, 0xffffffff
je 0x4510fd
mov ecx, dword [esp + 0x101c]
mov ebp, ecx
sub ebp, eax
test ebp, ebp
jle 0x4510a3
lea edi, [esp + 0x14]
xor eax, eax
mov ecx, 0x400
push 0x8000
rep stosd dword es:[edi], eax
push esi
call fcn.00451200
add esp, 8
mov edi, eax
mov eax, 0x1000
cmp ebp, eax
jge 0x451066
mov eax, ebp
push eax
lea eax, [esp + 0x18]
push eax
push esi
call fcn.0044fff0
add esp, 0xc
cmp eax, 0xffffffff
je 0x451082
sub ebp, eax
test ebp, ebp
jg 0x45105b
jmp 0x451097
cmp dword [0x45a0d8], 5
jne 0x451095
mov dword [0x45a0d4], 0xd
mov ebx, eax
push edi
push esi
call fcn.00451200
add esp, 8
jmp 0x4510e0
jge 0x4510e0
push 0
push ecx
push esi
call fcn.00450e80
add esp, 0xc
push esi
call fcn.0044ff30
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_SetEndOfFile]
cmp eax, 1
sbb ebx, ebx
cmp ebx, 0xffffffff
jne 0x4510e0
mov dword [0x45a0d4], 0xd
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [0x45a0d8], eax
mov eax, dword [esp + 0x10]
push 0
push eax
push esi
call fcn.00450e80
add esp, 0xc
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x45a0d4], 9
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
Function at 0x4515a0
Capabilities:
Set environment variable

Disassembly:
sub esp, 4
cmp dword [esp + 8], 0
push ebx
push esi
push edi
push ebp
je 0x4517de
mov edx, dword [esp + 0x18]
push 0x3d
push edx
call fcn.00451a80
add esp, 8
mov ebp, eax
test ebp, ebp
je 0x4517de
cmp ebp, dword [esp + 0x18]
je 0x4517de
cmp byte [ebp + 1], 1
sbb eax, eax
mov ecx, dword [0x45a0fc]
neg eax
mov dword [esp + 0x10], eax
cmp dword [0x45a100], ecx
jne 0x4515fd
push ecx
call fcn.00451850
add esp, 4
mov dword [0x45a0fc], eax
cmp dword [0x45a0fc], 0
jne 0x4516ad
cmp dword [esp + 0x1c], 0
je 0x451634
cmp dword [0x45a104], 0
je 0x451634
call fcn.00451170
test eax, eax
je 0x4516ad
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [esp + 0x10], 0
je 0x451645
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x45a0fc], 0
jne 0x451679
push 4
call fcn.0044c950
add esp, 4
mov dword [0x45a0fc], eax
test eax, eax
jne 0x45166e
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x45a0fc]
mov dword [eax], 0
cmp dword [0x45a104], 0
jne 0x4516ad
push 4
call fcn.0044c950
add esp, 4
mov dword [0x45a104], eax
test eax, eax
jne 0x4516a2
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x45a104]
mov dword [eax], 0
mov esi, dword [0x45a0fc]
sub ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x18]
push ebp
push edx
call fcn.004517f0
add esp, 8
mov edi, eax
test edi, edi
jl 0x451715
cmp dword [esi], 0
je 0x451715
cmp dword [esp + 0x10], 0
je 0x45170c
lea ebx, [esi + edi*4]
mov eax, dword [ebx]
push eax
call fcn.0044c900
add esp, 4
cmp dword [ebx], 0
je 0x4516f9
mov eax, dword [ebx + 4]
add ebx, 4
inc edi
mov dword [ebx - 4], eax
cmp dword [ebx], 0
jne 0x4516ea
shl edi, 2
push edi
push esi
call fcn.004518d0
add esp, 8
test eax, eax
je 0x45175d
jmp 0x451758
mov edx, dword [esp + 0x18]
mov dword [esi + edi*4], edx
jmp 0x45175d
cmp dword [esp + 0x10], 0
jne 0x4517d4
test edi, edi
jge 0x451726
neg edi
lea eax, [edi*4 + 8]
push eax
push esi
call fcn.004518d0
add esp, 8
test eax, eax
jne 0x451748
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
lea ecx, [eax + edi*4]
mov edx, dword [esp + 0x18]
mov dword [ecx], edx
mov dword [ecx + 4], 0
mov dword [0x45a0fc], eax
cmp dword [esp + 0x1c], 0
je 0x4517ca
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.0044c950
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x4517ca
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [esp + 0x10], 1
sbb eax, eax
lea ecx, [ebp + ebx]
mov byte [ecx], 0
lea ecx, [ecx + 1]
and eax, ecx
push eax
push ebx
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableA]
push ebx
call fcn.0044c900
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x401eac
Capabilities:
Get common file path
Query environment variable

Disassembly:
mov eax, 0x1d5c
call fcn.0040bac0
mov eax, dword [0x41a174]
xor eax, esp
mov dword [esp + 0x1d58], eax
mov eax, dword [esp + 0x1d64]
push ebx
push esi
mov esi, dword [esp + 0x1d68]
mov ebx, 0x1000
push edi
push ebx
mov dword [esp + 0x14], eax
lea eax, [esp + 0xd68]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov edi, 0x800
lea eax, [esp + 0x570]
push edi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [esp + 0x564]
push edi
push eax
push 0x40e544
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x401f3a
cmp eax, edi
jae 0x401f3a
lea eax, [esp + 0x564]
push eax
lea eax, [esp + 0xd68]
push eax
call dword [sym.imp.kernel32.dll_lstrcpyA]
jmp 0x401f4c
push ebx
lea eax, [esp + 0xd68]
push eax
push esi
call fcn.004062cb
add esp, 0xc
lea eax, [esp + 0xd64]
push 0x40e554
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsstr]
pop ecx
pop ecx
test eax, eax
jne 0x4020e2
push ebp
mov ebx, 0x104
push ebx
push eax
lea eax, [esp + 0x46c]
push eax
call sub.VCRUNTIME140.dll_memset
push ebx
lea eax, [esp + 0x26c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [esp + 0x464]
push ebx
push eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x464]
push eax
lea eax, [esp + 0x260]
push 0x40e568
push eax
call fcn.00402f35
mov edi, dword [sym.imp.kernel32.dll_FindFirstFileA]
lea eax, [esp + 0x24]
add esp, 0xc
push eax
lea eax, [esp + 0x260]
push eax
call edi
push ebx
mov ebp, eax
lea eax, [esp + 0x364]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push ebx
lea eax, [esp + 0x168]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [esp + 0x360]
push ebx
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
lea eax, [esp + 0x360]
push 0x5c
push eax
call sub.VCRUNTIME140.dll_strrchr
pop ecx
pop ecx
test eax, eax
je 0x402020
mov byte [eax], 0
lea eax, [esp + 0x360]
push eax
lea eax, [esp + 0x15c]
push 0x40e58c
push eax
call fcn.00402f35
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x15c]
push eax
call edi
mov ebx, eax
cmp ebp, 0xffffffff
jne 0x40207a
cmp ebx, ebp
je 0x4020e1
lea eax, [esp + 0x158]
mov edi, 0x41a438
push eax
push esi
push 0x40e5d8
push edi
call fcn.00402f35
add esp, 0x10
push ebx
jmp 0x4020c9
mov edi, 0x41a438
cmp ebx, 0xffffffff
je 0x4020b1
lea eax, [esp + 0x158]
push eax
lea eax, [esp + 0x260]
push eax
push esi
push 0x40e594
push edi
call fcn.00402f35
mov esi, dword [sym.imp.kernel32.dll_FindClose]
add esp, 0x14
push ebp
call esi
push ebx
call esi
jmp 0x4020cf
lea eax, [esp + 0x25c]
push eax
push esi
push 0x40e5b8
push edi
call fcn.00402f35
add esp, 0x10
push ebp
call dword [sym.imp.kernel32.dll_FindClose]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], edi
call fcn.00402d2c
pop ebp
mov ecx, dword [esp + 0x1d64]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040baa8
add esp, 0x1d5c
ret
Function at 0x4020fa
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x210
mov eax, dword [0x41a174]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push esi
mov esi, dword [esp + 0x220]
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0x220]
mov ebx, 0x104
push ebx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0
lea eax, [esp + 0x20]
push eax
push edi
call fcn.00401dba
add esp, 0x18
test eax, eax
jne 0x402159
push edi
push str.Error_during_getting_jre_home..._jp2launcherpath__s_n
call fcn.00401a09
pop ecx
pop ecx
xor eax, eax
jmp 0x402215
push ebp
lea eax, [esp + 0x14]
mov edi, 0x41a748
push eax
push eax
push eax
push str._Xbootclasspath_a:__slibdeploy.jar____slibjavaws.jar____slibplugin.jar_
push 0x410
push edi
call fcn.00402e32
add esp, 0x18
mov dword [esp + 0x10], edi
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.00402d2c
lea eax, [esp + 0x14]
mov ebp, 0x208
push eax
push str._Djava.class.path__sclasses_
push ebp
mov edi, 0x41ab58
push edi
call fcn.00402e32
add esp, 0x10
mov dword [esp + 0x10], edi
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.00402d2c
push ebx
lea eax, [esp + 0x11c]
push eax
push 0x40e6a0
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x402204
cmp eax, ebx
jae 0x402204
lea eax, [esp + 0x118]
mov edi, 0x41ad60
push eax
push 0x40e6b8
push 0x40e6d0
push ebp
push edi
call fcn.00402e32
add esp, 0x14
mov dword [esp + 0x10], edi
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.00402d2c
lea eax, [esp + 0x14]
push esi
push eax
call fcn.00401eac
pop ecx
pop ecx
xor eax, eax
inc eax
pop ebp
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040baa8
add esp, 0x210
ret

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

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbslen]
push 0x40e770
call edi
lea esi, [eax + 0x105]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x4027b0
push esi
push ebx
push dword [esp + 0x18]
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
jne 0x4027b4
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xcb
je 0x4027a5
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40278a
mov esi, str.JavaLow
push ebx
push dword [esp + 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableA]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
inc eax
pop ecx
pop edi
pop esi
pop ebx
ret
cmp esi, 0x104
jbe 0x402787
push 0x40e77c
call edi
inc eax
add eax, esi
push eax
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
add esp, 0xc
xor ebx, ebx
push esi
push ebx
push dword [esp + 0x18]
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x402787
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
jmp 0x4027af
Function at 0x405b2e
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x405b3d
mov eax, dword [esi]
cmp byte [eax], 0x2d
je 0x405b46
xor al, al
pop esi
ret
push str._Dsun.plugin2.jvm.args
push 0x16
push 0
mov ecx, esi
call fcn.0040433b
test eax, eax
jne 0x405b72
push str.Invalid_argument_1_n
call fcn.00401a09
pop ecx
call fcn.004019e9
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x405b7c
mov eax, dword [esi]
push dword [esp + 0xc]
push eax
call fcn.0040d04b
pop ecx
pop ecx
test al, al
jne 0x405b99
push str.Invalid_argument_2_n
call fcn.00401a09
pop ecx
jmp 0x405b42
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x405ba3
mov eax, dword [esi]
push eax
call fcn.0040606c
pop ecx
test al, al
je 0x405bcf
cmp dword [esi + 0x14], 0x10
jb 0x405bb6
mov esi, dword [esi]
push esi
call fcn.0040600b
push eax
call fcn.0040d04b
pop ecx
pop ecx
test al, al
jne 0x405bcf
push str.Invalid_argument_3_n
jmp 0x405b5f
mov al, 1
pop esi
ret
Function at 0x405ebf
Capabilities:
Query environment variable

Disassembly:
push 0x24
mov eax, 0x40d655
call fcn.0040bb8e
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x30]
push eax
call fcn.00404e7d
mov esi, dword [ebp - 0x30]
xor ebx, ebx
mov dword [ebp - 4], ebx
jmp 0x405f3d
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x405ef1
mov eax, dword [esi]
push eax
push str._Dsun.java2d.noddraw
call fcn.00406fbb
pop ecx
pop ecx
cmp eax, 1
je 0x405f44
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x405f0d
mov eax, dword [esi]
push eax
push str._Dsun.java2d.d3d
call fcn.00406fbb
pop ecx
pop ecx
test eax, eax
je 0x405f44
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x405f28
mov eax, dword [esi]
push eax
push str._Dsun.java2d.opengl
call fcn.00406fbb
pop ecx
pop ecx
cmp eax, 1
je 0x405f44
add esi, 0x18
cmp esi, dword [ebp - 0x2c]
jne 0x405ee7
jmp 0x405f4a
mov dword [0x419ce0], ebx
cmp dword [0x419ce0], ebx
je 0x405fe6
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
push 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
push eax
push str.J2D_D3D
call edi
mov esi, dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
test eax, eax
je 0x405f98
cmp eax, 0x10
jae 0x405f98
lea eax, [ebp - 0x20]
push 0x40f7a0
push eax
call esi
neg eax
pop ecx
sbb eax, eax
and dword [0x419ce0], eax
pop ecx
push 0x10
lea eax, [ebp - 0x20]
push eax
push str.J2D_D3D_PRELOAD
call edi
test eax, eax
je 0x405fcc
cmp eax, 0x10
jae 0x405fcc
lea eax, [ebp - 0x20]
push 0x40f7b8
push eax
call esi
neg eax
pop ecx
sbb eax, eax
and eax, dword [0x419ce0]
pop ecx
mov dword [0x419ce0], eax
jmp 0x405fd1
mov eax, dword [0x419ce0]
test eax, eax
je 0x405fe6
push dword [ebp - 0x24]
push str.preloadD3D
call fcn.00406fff
pop ecx
pop ecx
mov ebx, eax
lea ecx, [ebp - 0x30]
call fcn.0040422a
mov eax, ebx
call fcn.0040bb49
ret

Function at 0x406b16
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xffffffffffffffff
push 0x40d6f8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x41a174]
xor eax, ebp
mov dword [ebp + 0x104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x110]
lea eax, [ebp]
mov edi, dword [ebp + 0x114]
mov ebx, 0x104
push ebx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp]
push ebx
push eax
push esi
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x406bb4
cmp eax, ebx
jae 0x406bb4
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004060ea
pop ecx
pop ecx
and dword [ebp - 4], 0
mov esi, dword [ebp - 0x18]
jmp 0x406ba7
push esi
lea ecx, [edi + 0x18]
call fcn.00403db8
add esi, 0x18
cmp esi, dword [ebp - 0x14]
jne 0x406b9b
lea ecx, [ebp - 0x18]
call fcn.0040422a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.0040baa8
add ebp, 0x108
leave
ret