joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4069d0
Capabilities:
Hash data via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421930
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x42c00c]
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 dword [ebp - 0x28], edx
mov esi, ecx
mov dword [ebp - 0x14], esi
mov ebx, dword [ebp + 0xc]
xorps xmm0, xmm0
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], esi
push 0x800c
test ebx, ebx
jne 0x406a5e
lea ecx, [ebp - 0x24]
movlpd qword [ebp - 0x24], xmm0
call fcn.004066d0
mov ecx, dword [ebp - 0x28]
push ebx
push edi
push ecx
mov dword [ebp - 4], ebx
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x406b10
push esi
lea ecx, [ebp - 0x24]
call fcn.00407660
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x406a56
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x24]
jmp 0x406ae5
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x14], 0
movlpd qword [ebp - 0x1c], xmm0
call fcn.004066d0
push 0
push ebx
push dword [ebp - 0x28]
mov dword [ebp - 4], 1
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x406b32
push 0
push 4
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x406b54
mov ecx, dword [ebp - 0x28]
sub edi, ebx
push 0
add ecx, 4
add ecx, ebx
lea eax, [edi - 4]
push eax
push ecx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x406b76
push esi
lea ecx, [ebp - 0x1c]
call fcn.00407660
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x406ae2
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x406af2
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
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.0040fb5d
mov esp, ebp
pop ebp
ret
push str.Unable_to_update_hash_context_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x38]
call fcn.004064d0
push 0x42a688
lea eax, [ebp - 0x38]
push eax
call fcn.0041158a
push str.Unable_to_update_hash_context_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x38]
call fcn.004064d0
push 0x42a688
lea eax, [ebp - 0x38]
push eax
call fcn.0041158a
push str.Unable_to_update_hash_context_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x38]
call fcn.004064d0
push 0x42a688
lea eax, [ebp - 0x38]
push eax
call fcn.0041158a
push str.Unable_to_update_hash_context_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x38]
call fcn.004064d0
push 0x42a688
lea eax, [ebp - 0x38]
push eax
call fcn.0041158a
int3
Function at 0x4070c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421970
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x42c00c]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], 0
cmp edx, 0x40
jb 0x4071f9
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x4071f9
mov ebx, dword [edi + 0x3c]
test ebx, ebx
js 0x4071f7
cmp edx, ebx
jb 0x4071f7
mov esi, edx
lea ecx, [ebx + edi]
sub esi, ebx
cmp esi, 4
jb 0x4071f7
cmp dword [ecx], 0x4550
jne 0x4071f7
sub esi, 4
cmp esi, 0x14
jb 0x4071f7
movzx eax, word [ecx + 4]
sub esi, 0x14
mov dword [ebp - 0x38], 0x14c
cmp ax, word [ebp - 0x38]
jne 0x407187
cmp esi, 0xe0
jb 0x4071f7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4071f7
mov eax, dword [ecx + 0x98]
mov ecx, dword [ecx + 0x9c]
jmp 0x4071c0
mov dword [ebp - 0x38], 0x8664
cmp ax, word [ebp - 0x38]
je 0x4071a1
mov dword [ebp - 0x38], 0xaa64
cmp ax, word [ebp - 0x38]
jne 0x4071f7
cmp esi, 0xf0
jb 0x4071f7
mov eax, 0x20b
cmp word [ecx + 0x18], ax
jne 0x4071f7
mov eax, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xac]
lea esi, [ecx + eax]
add ebx, 0x58
cmp esi, edx
ja 0x4071f9
cmp esi, eax
jb 0x4071f9
test eax, eax
jne 0x4071d7
test ecx, ecx
cmove eax, edx
dec eax
xor ecx, ecx
nop word [eax + eax]
cmp eax, edx
jae 0x4071f1
cmp byte [eax + edi], 0
jne 0x4071f1
inc ecx
dec eax
cmp ecx, 8
jl 0x4071e0
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x4071f9
xor ebx, ebx
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x2c], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x34]
push eax
mov edx, edi
movq qword [ebp - 0x34], xmm0
call fcn.004067b0
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
push ebx
push dword [ebp - 0x1c]
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
mov edx, edi
movq qword [ebp - 0x28], xmm0
call fcn.004069d0
add esp, 8
push dword [ebp + 8]
lea edx, [ebp - 0x34]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00406c30
mov ecx, dword [ebp - 0x28]
add esp, 4
mov bl, al
test ecx, ecx
je 0x407299
mov edx, dword [ebp - 0x20]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x40727a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4072f1
push edx
push ecx
call fcn.0041008e
add esp, 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x4072c9
mov edx, dword [ebp - 0x2c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x4072bf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4072f6
push edx
push ecx
call fcn.0041008e
add esp, 8
mov al, bl
jmp 0x4072d5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0040fb5d
mov esp, ebp
pop ebp
ret
call fcn.004138b0
call fcn.004138b0
int3
Function at 0x407300
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4219b0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x42c00c]
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, edx
mov esi, ecx
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4073e9
cmp dword [ebp - 0x14], 0
jl 0x407362
jg 0x407353
cmp dword [ebp - 0x18], 0x40000000
jbe 0x407362
push str.Unable_to_process_files_over_1GB_
push 0xdf
jmp 0x4073f5
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
test esi, esi
jne 0x407380
push str.Unable_to_open_file_mapping_
jmp 0x4073ee
mov dword [ebp - 0x2c], esi
push 0
push 0
push 0
push 4
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x4073a6
push str.Unable_to_open_file_mapping_
jmp 0x4073ee
mov dword [ebp - 0x30], edi
mov byte [ebp - 4], 1
mov ecx, edi
mov edx, dword [ebp - 0x18]
push ebx
call fcn.004070c0
add esp, 4
mov bl, al
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
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.0040fb5d
mov esp, ebp
pop ebp
ret
push str.Unable_to_determine_file_size_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x28]
call fcn.004064d0
push 0x42a688
lea eax, [ebp - 0x28]
push eax
call fcn.0041158a
int3
Function at 0x407530
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4219e8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x84
mov eax, dword [0x42c00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x80], esi
mov dword [esi], 0
mov dword [ebp - 4], 0
movups xmm0, xmmword [0x427950]
mov eax, dword [0x427980]
mov dword [ebp - 0x48], eax
mov ax, word [0x427984]
movups xmmword [ebp - 0x78], xmm0
push 0x2a
movups xmm0, xmmword [0x427960]
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x42]
push 0
movups xmmword [ebp - 0x68], xmm0
push eax
movups xmm0, xmmword [0x427970]
movups xmmword [ebp - 0x58], xmm0
call fcn.00411430
add esp, 0xc
call fcn.00406580
cmp eax, 0x5020000
jae 0x4075e3
push str.__Prototype_
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0xf0000040
push 0x18
lea eax, [ebp - 0x78]
push eax
push 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x407631
mov eax, dword [esi]
mov ecx, dword [ebp - 0x7c]
mov dword [esi], ecx
test eax, eax
je 0x407612
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040fb5d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push str.Unable_to_acquire_cryptographic_provider_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x90]
call fcn.004064d0
push 0x42a688
lea eax, [ebp - 0x90]
push eax
call fcn.0041158a
int3

Function at 0x407770
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421a5c
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x42c00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x42d630]
cmp eax, dword [ecx + 4]
jle 0x4077ff
push 0x42d630
call fcn.0040ff9a
add esp, 4
cmp dword [0x42d630], 0xffffffff
jne 0x4077ff
mov dword [ebp - 4], 0
mov ecx, 0x42d634
mov dword [0x42d634], 0
call fcn.00407530
push 0x421df0
call fcn.00410497
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x42d630
call fcn.0040ff50
add esp, 4
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push eax
push 8
push dword [0x42d634]
movlpd qword [ebp - 0x18], xmm0
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x40783c
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040fb5d
mov esp, ebp
pop ebp
ret
push str.Unable_to_generate_random_number_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x28]
call fcn.004064d0
push 0x42a688
lea eax, [ebp - 0x28]
push eax
call fcn.0041158a
int3
Function at 0x407860
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421aa9
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x42c00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x14], esi
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
push 0
push 1
mov dword [ebp - 0x1c], esi
push 0
mov dword [ebp - 0x18], 0
push edi
mov dword [ebp - 0x14], 0
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x407920
push ecx
xorps xmm0, xmm0
mov ecx, esi
movq qword [esi], xmm0
push eax
mov dword [esi + 8], 0
call fcn.00407970
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
push dword [esi]
mov dword [ebp - 0x18], 1
push 1
push 0
push edi
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x407942
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040fb5d
mov esp, ebp
pop ebp
ret
push str.Unable_to_decode_base64_string_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004064d0
push 0x42a688
lea eax, [ebp - 0x2c]
push eax
call fcn.0041158a
push str.Unable_to_decode_base64_string_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004064d0
push 0x42a688
lea eax, [ebp - 0x2c]
push eax
call fcn.0041158a
int3
Function at 0x401a90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
movzx eax, word [str.DOxI]
mov ecx, dword [0x432448]
sub eax, dword [0x432438]
sub ecx, dword [0x432450]
push ebx
push esi
push edi
push 0x432438
push 0x40
push 0x4182
push 0x434bb0
add eax, 0xa564
add ecx, 4
push 0xffffffffffffffff
mov dword [0x432438], eax
mov word [str.DOxI], cx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov edi, dword [esp + 0xc]
mov si, word [str.DOxI]
mov ebx, dword [0x432454]
movzx eax, di
movzx ecx, si
xor edx, edx
sub ecx, eax
cmp eax, ebx
je 0x401b01
add edx, 2
cmp edx, 9
jl 0x401af5
lea edx, [ecx + 4]
sub edx, edi
add edx, 0x13
add si, dx
movzx edx, si
mov word [str.DOxI], si
cmp dword [0x432474], edx
jbe 0x401b24
sub dword [0x43245c], eax
mov edx, dword [str.DOxI]
lea ecx, [ecx + edx*2 + 4]
mov edx, dword [esp + 0xc]
lea edx, [ecx + edx - 0xaa2]
mov word [str.DOxI], dx
movzx edx, dx
sub edx, eax
xor ecx, ecx
add edx, 4
mov dword [0x432438], edx
cmp eax, ebx
je 0x401b5c
add ecx, 2
cmp ecx, 9
jl 0x401b50
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x406437
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x41d05d
call fcn.00408d5a
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x44], ebx
je 0x40652e
cmp byte [esi + 0x4a], bl
je 0x40652e
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 0xc]
movzx eax, ax
cmp di, ax
jne 0x406473
xor al, al
jmp 0x406530
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.004061fd
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4064d1
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
mov ebx, dword [ebp - 0x1c]
add eax, ebx
push eax
push edx
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x18]
sub eax, 0
je 0x4064d6
dec eax
je 0x4064da
dec eax
dec eax
je 0x40652a
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401ff0
mov al, bl
jmp 0x406530
mov edx, dword [ebp - 0x2c]
jmp 0x40649c
mov byte [esi + 0x4a], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4064e6
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x40650c
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4064f9
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.00409ecd
add esp, 0x10
cmp edi, eax
jne 0x4064bf
cmp byte [esi + 0x4a], 0
je 0x40652a
test edi, edi
jne 0x40648e
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00403ea0
jmp 0x40648e
mov bl, 1
jmp 0x4064c1
mov al, 1
call fcn.00408da4
ret
Function at 0x406536
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x41d030
call fcn.00408d5a
mov edi, dword [ebp + 8]
mov eax, 0xffff
mov esi, ecx
cmp ax, di
jne 0x406558
xor eax, eax
jmp 0x4066cb
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
xor ebx, ebx
cmp ecx, ebx
je 0x406586
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x406586
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 2]
mov dword [esi], ecx
mov word [eax], di
mov ax, di
jmp 0x4066cb
cmp dword [esi + 0x54], ebx
je 0x4066c6
mov ecx, esi
call fcn.00405a1a
cmp dword [esi + 0x44], ebx
jne 0x4065b6
push dword [esi + 0x54]
push edi
call fcn.00405b33
pop ecx
test al, al
pop ecx
movzx eax, di
jne 0x4066cb
jmp 0x4066c6
movzx eax, di
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.004061fd
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x406673
lea eax, [ebp - 0x2c]
mov edx, eax
add eax, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
push eax
push edx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2e]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x14]
xor ebx, ebx
inc ebx
test eax, eax
js 0x4066bb
cmp eax, ebx
jg 0x40667b
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x406625
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x34]
sub edi, eax
je 0x40664a
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x406638
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push ebx
push eax
call fcn.00409ecd
add esp, 0x10
cmp edi, eax
jne 0x4066bb
lea eax, [ebp - 0x30]
mov byte [esi + 0x4a], bl
cmp dword [ebp - 0x38], eax
jne 0x4066aa
test edi, edi
jne 0x4065d7
cmp dword [ebp - 0x1c], 0x20
push edi
lea ecx, [ebp - 0x2c]
jae 0x4066c0
push 8
call fcn.00403ea0
jmp 0x4065d7
mov edx, dword [ebp - 0x2c]
jmp 0x4065e9
cmp eax, 3
jne 0x4066bb
push dword [esi + 0x54]
push dword [ebp - 0x30]
call fcn.00405b33
movzx esi, word [ebp + 8]
pop ecx
pop ecx
test al, al
jne 0x40669a
mov esi, 0xffff
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00401ff0
mov ax, si
jmp 0x4066cb
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00401ff0
mov ax, word [ebp + 8]
jmp 0x4066cb
push 0
lea ecx, [ebp - 0x2c]
push ebx
call fcn.00401ff0
mov eax, 0xffff
call fcn.00408da4
ret 4

Function at 0x4073c9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431520]
jne 0x4073d3
repz ret
jmp fcn.0040c300
Function at 0x414dac
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x431520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040d2c0
and dword [ebp - 0x14], 0
cmp dword [0x434484], 0
mov dword [ebp - 0x18], eax
jne 0x414e5f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x414f07
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x414f07
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x434484], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x434488], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x43448c], eax
call edi
push eax
call esi
mov dword [0x434494], eax
test eax, eax
je 0x414e5f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x434490], eax
mov eax, dword [0x434490]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x414eb8
cmp dword [0x434494], ecx
je 0x414eb8
push eax
call esi
push dword [0x434494]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x414eb8
test ebx, ebx
je 0x414eb8
call edi
test eax, eax
je 0x414eaf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x414eaf
test byte [ebp - 8], 1
jne 0x414eb8
or dword [ebp + 0x10], 0x200000
jmp 0x414eeb
mov eax, dword [0x434488]
cmp eax, dword [ebp - 0x18]
je 0x414eeb
push eax
call esi
test eax, eax
je 0x414eeb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x414eeb
mov eax, dword [0x43448c]
cmp eax, dword [ebp - 0x18]
je 0x414eeb
push eax
call esi
test eax, eax
je 0x414eeb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x434484]
call esi
test eax, eax
je 0x414f07
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x414f09
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004073c9
leave
ret
Function at 0x10029e30
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1005bc80
push 0x1003b73d
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x10061008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov dword [ebp - 0x438], esi
mov ecx, 0x100631ab
call fcn.1003d885
mov dword [ebp - 4], 0
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10029e93
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov edx, esi
call fcn.10029f70
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x10029ece
test bl, bl
jne 0x10029f4d
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10029ee3
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
push 0x410
push ecx
lea eax, [ebp - 0x430]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x207
lea eax, [ebp - 0x430]
push eax
push 0x1004bcf8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp - 0x430]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10029f20
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.10003f30
movzx ebx, bl
mov eax, 1
cmp dword [esi + 0x10], 0
cmovne ebx, eax
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1003b6ee
mov esp, ebp
pop ebp
ret
Function at 0x1002a190
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10044bdf
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10061008]
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 esi, edx
mov edi, ecx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x34], edi
mov ecx, 0x100631ab
mov dword [ebp - 0x30], 0
call fcn.1003d885
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x1002a1e0
mov edx, dword [esi]
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x1002a1fe
mov eax, edx
nop dword [eax]
cmp word [eax], 0x25
je 0x1002a232
add eax, 2
sub ecx, 1
jne 0x1002a1f0
push esi
mov ecx, edi
call fcn.100060d0
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 1
mov eax, edi
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.1003b6ee
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x1002a1fe
sub eax, edx
sar eax, 1
cmp eax, 0xffffffff
je 0x1002a1fe
push esi
lea ecx, [ebp - 0x28]
call fcn.100060d0
mov dword [ebp - 4], 1
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x1002a259
mov eax, dword [esi]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test ebx, ebx
jne 0x1002a290
push esi
mov ecx, edi
call fcn.100060d0
mov dword [ebp - 0x30], 1
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.10003e60
mov dword [ebp - 4], ebx
mov dword [ebp - 4], ebx
jmp 0x1002a214
xor ecx, ecx
lea eax, [ebx + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1003bf0f
add esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [esi + 0x14], 8
jb 0x1002a2b7
mov esi, dword [esi]
lea ecx, [ebx + 1]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, dword [ebp - 0x2c]
test eax, eax
je 0x1002a2f9
cmp eax, ebx
ja 0x1002a2f9
xor ecx, ecx
mov word [esi + eax*2], cx
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002a2e0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.10003f30
push esi
call fcn.1003b760
add esp, 4
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.10006c90
mov dword [ebp - 0x30], 1
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.10003e60
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
jmp 0x1002a214