joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457310
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movsd xmm1, qword [0x463718]
xorps xmm3, xmm3
movsd xmm4, qword [0x46ab50]
xorps xmm2, xmm2
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], 2
nop dword [eax]
mov eax, dword [esi]
cmp eax, 0x270
jne 0x45738d
lea edx, [esi + 8]
mov edi, eax
nop
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x457350
mov eax, dword [esi]
jmp 0x45746e
cmp eax, 0x4e0
jb 0x45746e
mov ebx, dword [esi + 0x9c4]
lea edi, [esi + 0x9c4]
mov esi, 0xe3
nop dword [eax]
mov eax, ebx
lea edi, [edi + 4]
mov ebx, dword [edi]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub esi, 1
jne 0x4573b0
mov edi, dword [ebp + 8]
mov esi, 0x18c
add edi, 0xd50
mov ebx, dword [edi]
mov eax, ebx
lea edi, [edi + 4]
mov ebx, dword [edi]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd50]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub esi, 1
jne 0x4573f8
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
xor eax, eax
mov dword [esi], 0
mov ecx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov eax, ecx
shr eax, 0xb
and eax, dword [esi + 0x1384]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
sub dword [ebp - 4], 1
addsd xmm0, qword [eax*8 + 0x463790]
subsd xmm0, xmm3
mulsd xmm0, xmm1
mulsd xmm1, xmm4
addsd xmm2, xmm0
jne 0x457340
pop edi
movsd qword [ebp - 8], xmm2
fld qword [ebp - 8]
pop esi
movsd qword [ebp - 0x10], xmm1
fdiv qword [ebp - 0x10]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4574f0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
mov dword [ecx + 0x1384], 0xffffffff
lea edi, [ecx + 8]
mov dword [ecx + 4], edx
mov esi, 1
nop dword [eax]
mov eax, edx
lea edi, [edi + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi - 4], edx
cmp esi, 0x270
jb 0x457510
pop edi
pop esi
mov dword [ecx], 0x270
mov eax, ecx
pop ebp
ret 4
Function at 0x458180
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45bf6d
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x48e080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
push 0
push 2
mov dword [ebp - 0x150], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
test edi, edi
je 0x4582cf
cmp edi, 0xffffffff
je 0x4582cf
lea eax, [ebp - 0x150]
push eax
push edi
call sub.KERNEL32.dll_Process32First
lea ecx, [ebp - 0x12c]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4581f0
sub ecx, edx
mov eax, esi
cmp dword [esi + 0x14], 0xf
jbe 0x458203
mov eax, dword [esi]
push ecx
lea ecx, [ebp - 0x12c]
push ecx
push dword [esi + 0x10]
push eax
call fcn.00457fe0
add esp, 0x10
test al, al
jne 0x45827e
lea eax, [ebp - 0x150]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x4582f0
lea eax, [ebp - 0x12c]
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x458240
sub eax, edx
mov ecx, esi
cmp dword [esi + 0x14], 0xf
jbe 0x458253
mov ecx, dword [esi]
push eax
lea eax, [ebp - 0x12c]
push eax
push dword [esi + 0x10]
push ecx
call fcn.00457fe0
add esp, 0x10
test al, al
jne 0x45827e
lea eax, [ebp - 0x150]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x4582f0
jmp 0x458230
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x148]
push eax
push 0
push 0x410
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x45832f
cmp eax, 0xffffffff
je 0x45832f
mov dword [ebx], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00458f01
mov esp, ebp
pop ebp
ret 4
push str.failed_to_get_process_list
lea ecx, [ebp - 0x174]
call fcn.0040a230
push 0x48a5d8
lea eax, [ebp - 0x174]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0x1a
lea eax, [ebp - 0x28]
push str.couldnt_find_process_
push eax
call fcn.004580e0
add esp, 0x10
push eax
lea ecx, [ebp - 0x15c]
mov dword [ebp - 4], 0
call fcn.00452380
push 0x48a5d8
lea eax, [ebp - 0x15c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.failed_opening_handle_to_process
lea ecx, [ebp - 0x168]
call fcn.0040a230
push 0x48a5d8
lea eax, [ebp - 0x168]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x459819
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x459858
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x459858
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x459858
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x459858
cmp dword [ecx + 0x74], 0xe
jbe 0x459858
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10006b80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002d8a8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x100411cc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor bl, bl
cmp dword [edi], 0
je 0x10006c61
mov ecx, dword [ebp + 8]
call fcn.10008e40
lea ecx, [ebp + 8]
mov dword [ebp - 0x14], eax
push ecx
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10006c56
mov eax, dword [ebp - 0x10]
cmp eax, 1
je 0x10006be6
cmp eax, 2
jne 0x10006c56
mov eax, dword [ebp + 8]
mov bl, 1
add eax, 2
push eax
call fcn.1001c012
mov esi, eax
add esp, 4
test esi, esi
je 0x10006c54
lea eax, [ebp + 8]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp - 0x14]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10006c56
mov eax, dword [ebp + 8]
cmp word [esi + eax - 2], 0
je 0x10006c28
xor ecx, ecx
mov word [esi + eax], cx
push esi
lea ecx, [ebp - 0x1c]
call fcn.10007e60
mov ecx, dword [ebp + 0xc]
push eax
mov dword [ebp - 4], 0
call fcn.10007ef0
lea ecx, [ebp - 0x1c]
call fcn.10007f70
push esi
call fcn.1001c381
add esp, 4
jmp 0x10006c56
xor bl, bl
push dword [ebp - 0x14]
call fcn.1001c381
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10006c80
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100411cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp esi, 0x80000000
je 0x10006d04
cmp esi, 0x80000005
je 0x10006d04
cmp esi, 0x80000001
je 0x10006d0c
cmp esi, 0x80000002
je 0x10006d04
cmp esi, 0x80000004
je 0x10006d04
cmp esi, 0x80000003
je 0x10006d04
test esi, esi
je 0x10006cec
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
push 0
push edi
push eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x10006d8b
mov dword [edi], 0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001bb62
mov esp, ebp
pop ebp
ret 4
cmp esi, 0x80000001
jne 0x10006d89
mov esi, dword [edi + 4]
lea eax, [ebp - 0x104]
push 0x80
push eax
push str.Client_SID
mov dword [ebp - 0x108], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x10006d70
lea eax, [ebp - 0x108]
or esi, 0x20006
push eax
push esi
push 0
lea eax, [ebp - 0x104]
push eax
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x108]
mov dword [edi], eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001bb62
mov esp, ebp
pop ebp
ret 4
mov eax, 0x80000001
mov dword [edi], eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001bb62
mov esp, ebp
pop ebp
ret 4
mov dword [edi], esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1001bb62
mov esp, ebp
pop ebp
ret 4
Function at 0x10007a90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002db2a
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x100411cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test ecx, ecx
je 0x10007c73
call fcn.10008210
mov edi, eax
test edi, edi
je 0x10007c75
xor ebx, ebx
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x10007b1a
push 8
call fcn.1001bb73
add esp, 4
mov dword [ebp - 0x424], eax
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], 4
push ecx
mov ecx, eax
call fcn.10007e60
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x420]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x10007b6a
push 8
call fcn.1001bb73
add esp, 4
mov dword [ebp - 0x424], eax
lea ecx, [ebp - 0x420]
mov dword [ebp - 4], 0x1b
push ecx
mov ecx, eax
call fcn.10007e60
mov dword [ebp - 0x42c], eax
mov dword [ebp - 4], 0xffffffff
push 0x14
mov dword [ebp - 0x430], 0
mov esi, 9
call fcn.1001c012
add esp, 4
mov dword [ebp - 0x428], eax
push 0xffffffffffffffff
push str._DESKTOP_
push 0xa
push eax
lea eax, [ebp - 0x430]
push eax
call fcn.10021c0c
xor ecx, ecx
add esp, 0x14
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x424], esi
push ebx
lea eax, [ebp - 0x428]
mov dword [ebp - 4], 0x20
push eax
mov ecx, edi
call fcn.10009090
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x10007be1
push 2
push eax
call fcn.1001c004
add esp, 8
push 0xe
mov dword [ebp - 0x424], 0
mov esi, 6
call fcn.1001c012
add esp, 4
mov dword [ebp - 0x434], eax
push 0xffffffffffffffff
push str._TEMP_
push 7
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.10021c0c
xor ecx, ecx
add esp, 0x14
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x430], esi
mov esi, dword [ebp - 0x42c]
lea eax, [ebp - 0x434]
push esi
push eax
mov ecx, edi
mov dword [ebp - 4], 0x21
call fcn.10009090
mov eax, dword [ebp - 0x434]
test eax, eax
je 0x10007c57
push 2
push eax
call fcn.1001c004
add esp, 8
test ebx, ebx
je 0x10007c63
push ecx
mov ecx, ebx
call fcn.100043f0
test esi, esi
je 0x10007c6f
push ecx
mov ecx, esi
call fcn.100043f0
mov eax, edi
jmp 0x10007c75
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001bb62
mov esp, ebp
pop ebp
ret
Function at 0x47e7c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16000]
push edi
or ebp, 0xffffffff
jmp 0x47e7e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x47e7e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47e7d8
mov eax, 1
add ebx, ebx
jne 0x47e7fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x47e7f0
jne 0x47e80c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47e7f0
xor ecx, ecx
sub eax, 3
jb 0x47e820
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x47e892
mov ebp, eax
add ebx, ebx
jne 0x47e82b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x47e838
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x47e85c
inc ecx
add ebx, ebx
jne 0x47e848
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x47e83d
jne 0x47e859
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47e83d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x47e87c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x47e86d
jmp 0x47e7de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x47e87c
add edi, ecx
jmp 0x47e7de
pop esi
lea edi, [esi + 0x7c000]
mov eax, dword [edi]
or eax, eax
je 0x47e8db
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7e000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7e058]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x47e899
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7e060]
or eax, eax
je 0x47e8d5
mov dword [ebx], eax
add ebx, 4
jmp 0x47e8b6
call dword [esi + 0x7e05c]
mov ebp, dword [esi + 0x7e064]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x47e90f
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x40724b
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x38], edi
mov eax, dword [edi]
mov dword [ebp - 8], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x34], eax
call fcn.0040718f
mov ebx, dword [ebp - 0x14]
mov eax, dword [esi + 8]
add ebx, 0x23f
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0xc]
push 0x20
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], eax
pop edi
mov dword [ebp - 0x20], 2
add dword [ebp - 0x20], 3
mov esi, dword [ebp - 8]
mov eax, esi
mov ecx, dword [0x713f94]
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x4072d6
push 0x401130
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [0x713f94]
mov edx, dword [ebp - 0x1c]
add eax, dword [ebp - 0x28]
cmp ecx, 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x713fd8]
mov dword [ebp - 0x24], 0xedeb2e40
cmove eax, dword [ebp - 0x24]
and dword [ebp - 0x24], 0
cmp ecx, 0x3eb
mov dword [0x713fd8], eax
mov eax, dword [0x713fe0]
cmove eax, dword [ebp - 0x24]
mov dword [0x713fe0], eax
lea eax, [ebx + esi]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x18], 0
mov dword [0x713fdc], 0xf4ea3dee
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x1c]
sub edx, eax
mov dword [ebp - 0x10], eax
mov eax, edx
mov dword [ebp - 0x1c], edx
shl eax, 4
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
nop
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
mov eax, edx
shr eax, cl
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
xor eax, dword [ebp - 0x24]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 8], eax
add ebx, 0x61c88647
mov dword [ebp - 0x14], ebx
dec edi
jne 0x40729b
mov edi, dword [ebp - 0x38]
mov eax, dword [ebp - 8]
mov dword [edi], eax
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4073b5
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
shr esi, 3
push edi
mov edi, ecx
test esi, esi
je 0x4073f3
cmp dword [0x713f94], 0x959
jne 0x4073e3
push 0
call dword [sym.imp.KERNEL32.dll_AttachConsole]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.0040724b
add edi, 8
dec esi
jne 0x4073c5
pop edi
pop esi
pop ebp
ret 4
Function at 0x410baf
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4352d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040a7e3
mov dword [ebp - 0x14], eax
cmp dword [0x714d74], esi
jne 0x410ca2
push 0x800
push esi
push 0x40512c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x410c2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x410d82
push esi
push esi
push 0x40512c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x410d82
push 0x405144
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x410d82
push eax
call ebx
push 0x405150
push edi
mov dword [0x714d74], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x405160
push edi
mov dword [0x714d78], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x405174
push edi
mov dword [0x714d7c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x714d84], eax
test eax, eax
je 0x410c9f
push 0x405190
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x714d80], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x410cc7
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x410cba
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x410cdc
push 4
pop eax
jmp 0x410d84
cmp dword [ebp - 0x14], esi
je 0x410cdc
push dword [0x714d74]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x410cc1
mov eax, dword [0x714d80]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x410d3a
cmp dword [0x714d84], edi
je 0x410d3a
push eax
call ebx
push dword [0x714d84]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x410d3a
test eax, eax
je 0x410d3a
call ecx
test eax, eax
je 0x410d2f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x410d2f
test byte [ebp - 8], 1
jne 0x410d3a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x410d6a
mov eax, dword [0x714d78]
cmp eax, edi
je 0x410d67
push eax
call ebx
test eax, eax
je 0x410d67
call eax
mov esi, eax
test esi, esi
je 0x410d67
mov eax, dword [0x714d7c]
cmp eax, edi
je 0x410d67
push eax
call ebx
test eax, eax
je 0x410d67
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x714d74]
call ebx
test eax, eax
je 0x410d82
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x410d84
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409e1e
mov esp, ebp
pop ebp
ret
Function at 0x62174b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 0x44]
xor ebx, ebx
cmp eax, ebx
je 0x6217a6
cmp eax, 0xffffffff
je 0x6217a6
cmp dword [ebp + 8], ebx
je 0x6217a6
push esi
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [edi + 0x44]
push ebx
mov esi, eax
lea eax, [ebp - 4]
push eax
add esi, esi
push esi
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x62f302
cmp esi, dword [ebp - 4]
jne 0x62f31d
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret 4
mov ebx, 0x80070057
jmp 0x62179e

Function at 0x62227c
Capabilities:
Query environment variable

Disassembly:
push 0x20
mov eax, 0x63621c
call fcn.00621350
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
push ebx
push 0x20019
push dword [0x63b458]
lea ecx, [ebp - 0x2c]
push 0x80000002
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
call fcn.00622097
test eax, eax
jne 0x6223c4
lea eax, [ebp - 0x20]
push eax
push dword [0x63b45c]
lea ecx, [ebp - 0x2c]
push ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
call fcn.006223dc
test eax, eax
jne 0x6223c4
mov eax, dword [ebp - 0x20]
xor ecx, ecx
push 2
add eax, eax
pop edx
mul edx
seto cl
mov byte [ebp - 4], 1
neg ecx
or ecx, eax
push ecx
call fcn.006213e0
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
cmp esi, ebx
je 0x6223c4
lea eax, [ebp - 0x20]
push eax
push dword [0x63b45c]
lea ecx, [ebp - 0x2c]
push esi
call fcn.006223dc
test eax, eax
jne 0x6223bb
push ebx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call esi
mov edi, eax
cmp edi, ebx
je 0x6223bb
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.006213e0
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x6223bb
push edi
push eax
push dword [ebp - 0x1c]
call esi
mov esi, eax
cmp esi, ebx
je 0x6223b2
cmp dword [ebp + 8], ebx
je 0x62ea08
push dword [0x63b460]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + esi + 1]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.006213e0
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x6223b2
push dword [ebp - 0x14]
push esi
push eax
call fcn.006221cb
push dword [0x63b460]
push edi
push dword [ebp - 0x18]
call fcn.00622436
push dword [ebp - 0x14]
call fcn.006213c0
pop ecx
push dword [ebp - 0x1c]
call fcn.006213c0
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.00621f10
mov eax, dword [ebp - 0x18]
call fcn.00621390
ret 4