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

Disassembly:
push ecx
push ecx
mov eax, dword [0x43eaa4]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x415405
call ebp
mov esi, eax
cmp esi, ebx
je 0x4153eb
mov dword [0x43eaa4], 1
jmp 0x41540a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x415400
push 2
pop eax
mov dword [0x43eaa4], eax
jmp 0x415405
mov eax, dword [0x43eaa4]
cmp eax, 1
jne 0x415462
cmp esi, ebx
jne 0x41541d
call ebp
mov esi, eax
cmp esi, ebx
jne 0x41541d
xor eax, eax
jmp 0x415509
cmp word [esi], bx
mov eax, esi
je 0x415432
inc eax
inc eax
cmp word [eax], bx
jne 0x415424
inc eax
inc eax
cmp word [eax], bx
jne 0x415424
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.0041387c
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x415455
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x415509
push ebp
push esi
push edi
call fcn.004139c0
add esp, 0xc
jmp 0x415447
cmp eax, 2
je 0x41546b
cmp eax, ebx
jne 0x415416
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x415416
cmp byte [ebp], bl
mov esi, ebp
je 0x4154a1
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x415416
push esi
add edi, eax
call fcn.00413d20
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x41547e
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.0041387c
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x41551a
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x4154fb
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x415510
push edi
call fcn.00413d20
push esi
lea edi, [edi + eax + 1]
call fcn.00412e78
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x4154c1
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.00412e07
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x415416
Function at 0x415526
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x43eaa8]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x415566
call esi
test eax, eax
je 0x41554b
mov dword [0x43eaa8], 1
jmp 0x41556b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x415562
mov dword [0x43eaa8], 2
jmp 0x415574
xor eax, eax
jmp 0x4155c2
cmp eax, 1
jne 0x41556f
call esi
jmp 0x4155c2
cmp eax, 2
jne 0x415562
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x4155ba
lea eax, [esi + esi]
push eax
call fcn.0041387c
mov ebp, eax
test ebp, ebp
pop ecx
je 0x4155ba
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x4155be
push ebp
call fcn.00412e07
pop ecx
xor eax, eax
jmp 0x4155c0
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x415b83
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x415bb1
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x415bb8
cmp ebx, dword [eax + 4]
jae 0x415bb8
xor eax, eax
jmp 0x415da8
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x415bc9
xor eax, eax
inc eax
jmp 0x415da7
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x415bdf
cmp ecx, edx
jae 0x415d24
cmp dword [eax + 4], 0
je 0x415be8
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x415bd0
cmp dword [ebp + 8], 0
je 0x415c0a
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x415d24
cmp eax, esi
jae 0x415d24
mov eax, dword [0x43eac0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x415c2f
cmp dword [esi*4 + 0x43eac8], edi
je 0x415d28
inc esi
cmp esi, eax
jl 0x415c1d
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x415da4
cmp dword [ebp - 8], 0x1000000
jne 0x415da4
test byte [ebp - 0xc], 0xcc
je 0x415cad
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x415da4
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x415da4
cmp word [eax + 0x18], 0x10b
jne 0x415da4
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x415da4
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x415cad
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x415cad
test byte [ecx + 0x27], 0x80
jne 0x415d24
push 1
push 0x43eb08
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x415bc1
mov ecx, dword [0x43eac0]
test ecx, ecx
mov edx, ecx
jle 0x415ce1
lea eax, [ecx*4 + 0x43eac4]
cmp dword [eax], edi
je 0x415ce1
dec edx
sub eax, 4
test edx, edx
jg 0x415cd5
test edx, edx
jne 0x415d12
push 0xf
pop ebx
cmp ecx, ebx
jg 0x415cee
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x415d06
lea eax, [edx*4 + 0x43eac8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x415cf4
cmp ecx, 0x10
jge 0x415d12
inc ecx
mov dword [0x43eac0], ecx
push 0
push 0x43eb08
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x415bc1
xor eax, eax
jmp 0x415da7
test esi, esi
jle 0x415bc1
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x43eb08
call ebx
test eax, eax
jne 0x415bc1
cmp dword [esi*4 + 0x43eac8], edi
je 0x415d7e
mov eax, dword [0x43eac0]
lea esi, [eax - 1]
test esi, esi
jl 0x415d6c
cmp dword [esi*4 + 0x43eac8], edi
je 0x415d68
dec esi
jns 0x415d5c
test esi, esi
jge 0x415d7c
cmp eax, 0x10
jge 0x415d77
inc eax
mov dword [0x43eac0], eax
lea esi, [eax - 1]
jmp 0x415d7e
je 0x415d96
xor ecx, ecx
test esi, esi
jl 0x415d96
lea eax, [ecx*4 + 0x43eac8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x415d84
push 0
push 0x43eb08
call ebx
jmp 0x415bc1
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a392
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x43ed58], ebx
push esi
push edi
jne 0x41a412
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41a44d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x43ed58], eax
je 0x41a44d
push 0x433074
push edi
call esi
push 0x433060
push edi
mov dword [0x43ed5c], eax
call esi
cmp dword [0x43e84c], 2
mov dword [0x43ed60], eax
jne 0x41a412
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x43ed68], eax
je 0x41a412
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x43ed64], eax
mov eax, dword [0x43ed64]
test eax, eax
je 0x41a457
call eax
test eax, eax
je 0x41a43e
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x43ed68]
test eax, eax
je 0x41a43e
test byte [ebp - 8], 1
jne 0x41a457
cmp dword [0x43e858], 4
jb 0x41a451
or byte [ebp + 0x12], 0x20
jmp 0x41a476
xor eax, eax
jmp 0x41a486
or byte [ebp + 0x12], 4
jmp 0x41a476
mov eax, dword [0x43ed5c]
test eax, eax
je 0x41a476
call eax
mov ebx, eax
test ebx, ebx
je 0x41a476
mov eax, dword [0x43ed60]
test eax, eax
je 0x41a476
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x43ed58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41b565
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x43b630]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x41b5a1
xor eax, eax
jmp 0x41b70b
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x440140]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x41b5df
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.0041d8ed
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41b679
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x41b6dc
jmp 0x41b603
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x41b63e
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41b62f
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x41b60f
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41b69d
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x41b6a6
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x41b601
jmp 0x41b6a6
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41b69d
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x41b6a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x41b706
cmp dword [ebp - 0x68], eax
je 0x41b6d9
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x41b6ce
call fcn.004147d1
mov dword [eax], 9
call fcn.004147da
mov dword [eax], esi
jmp 0x41b701
push dword [ebp - 0x68]
call fcn.004147e3
pop ecx
jmp 0x41b701
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41b6ee
cmp byte [edi], 0x1a
jne 0x41b6ee
xor eax, eax
jmp 0x41b709
call fcn.004147d1
mov dword [eax], 0x1c
call fcn.004147da
and dword [eax], 0
or eax, 0xffffffff
jmp 0x41b709
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.004138fe
add ebp, 0x3a4
leave
ret
Function at 0x41e689
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x41e85f
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x440140]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x41e85f
test cl, 0x48
je 0x41e6f4
cmp byte [eax + 5], 0xa
je 0x41e6f4
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41e746
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x41e72e
call fcn.004147d1
mov dword [eax], 9
call fcn.004147da
mov dword [eax], esi
jmp 0x41e73e
cmp eax, 0x6d
je 0x41e85f
push eax
call fcn.004147e3
pop ecx
or eax, 0xffffffff
jmp 0x41e861
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x41e85a
test eax, eax
je 0x41e76d
cmp byte [ebx], 0xa
jne 0x41e76d
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x41e776
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x41e854
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x41e844
cmp al, 0xd
je 0x41e7a8
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x41e836
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x41e7c2
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x41e7bd
add dword [ebp + 0x10], 2
jmp 0x41e816
mov dword [ebp + 0x10], eax
jmp 0x41e832
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41e7ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41e832
cmp dword [ebp - 0xc], 0
je 0x41e832
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41e80b
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x41e816
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x41e835
cmp ebx, dword [ebp + 0xc]
jne 0x41e81b
cmp byte [ebp - 1], 0xa
jne 0x41e81b
mov byte [ebx], 0xa
jmp 0x41e835
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041d8ed
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41e836
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x41e78c
jmp 0x41e854
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x41e854
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x41e861
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41edd5
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x41edee
or eax, 0xffffffff
jmp 0x41ee4f
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x41ee4b
push 0x3d
push esi
call fcn.0041f11f
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x41ee4b
cmp esi, eax
je 0x41ee4b
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x43e86c]
sete cl
cmp eax, dword [0x43e870]
mov dword [ebp - 4], ecx
jne 0x41ee31
mov edi, eax
call fcn.0041ed74
mov dword [0x43e86c], eax
cmp eax, ebx
jne 0x41ee8a
cmp dword [ebp + 0xc], ebx
je 0x41ee53
cmp dword [0x43e874], ebx
je 0x41ee53
call fcn.0041e1dc
test eax, eax
je 0x41ee8a
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x41ee5c
xor eax, eax
jmp 0x41ee4e
push 4
call fcn.0041387c
cmp eax, ebx
pop ecx
mov dword [0x43e86c], eax
je 0x41ee4b
mov dword [eax], ebx
cmp dword [0x43e874], ebx
jne 0x41ee8a
push 4
call fcn.0041387c
cmp eax, ebx
pop ecx
mov dword [0x43e874], eax
je 0x41ee4b
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x43e86c]
sub edi, esi
push esi
call fcn.0041ed27
mov edi, eax
test edi, edi
pop ecx
jl 0x41eef1
cmp dword [ebx], 0
je 0x41eef1
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00412e07
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x41eed1
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x41ef32
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x41eec8
mov eax, edi
shl eax, 2
push eax
push dword [0x43e86c]
call fcn.00413623
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x41ef32
jmp 0x41ef2d
cmp dword [ebp - 4], 0
jne 0x41ef99
test edi, edi
jge 0x41ef01
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x43e86c]
call fcn.00413623
test eax, eax
pop ecx
pop ecx
je 0x41ee4b
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x43e86c], eax
cmp dword [ebp + 0xc], 0
je 0x41ef84
push esi
call fcn.00413d20
inc eax
inc eax
push eax
call fcn.0041387c
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x41ef84
push esi
push edi
call fcn.00417420
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x41ef7d
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.00412e07
pop ecx
cmp dword [ebp - 4], 0
je 0x41ef91
push esi
call fcn.00412e07
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x41ee4e
push esi
call fcn.00412e07
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x41ee58
Function at 0x42081d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x54], 0
mov eax, dword [edi + 0x58]
mov esi, dword [edi + 0x5c]
mov dword [ebp - 4], eax
je 0x420854
call fcn.00429243
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x420865
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x42089e
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x420883
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x42088b
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x42089c
test ax, ax
jne 0x42089c
test si, si
je 0x42089e
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x4208ad
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x420aff
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x42d330
call fcn.004139a0
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x58]
mov ebx, dword [esi + 0x5c]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
call fcn.00429243
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x420b4d
call fcn.00429243
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x420b5e
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x420b6a
or eax, 0xffffffff
jmp 0x420c6d
mov ecx, esi
call fcn.00420641
mov dword [ebp - 0x14], eax
call fcn.00422d1f
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x420bad
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x420bad
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x420bad
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
and dword [ebp - 4], 0
push esi
call fcn.00423f18
push dword [ebp - 0x14]
call fcn.00422c77
push edi
push eax
push ebx
mov ecx, esi
call fcn.004208f2
xor ebx, ebx
cmp eax, ebx
je 0x420c21
test byte [esi + 0x38], 0x10
je 0x420bef
push 4
pop edi
mov ecx, esi
call fcn.00420eaf
test ah, 1
je 0x420be7
push 5
pop edi
push edi
mov ecx, esi
call fcn.0042271b
cmp dword [esi + 0x1c], ebx
je 0x420c21
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.004210cb
jmp 0x420c21
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x420c35
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x420c4e
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x420c4e
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0042067b
cmp dword [esi + 0x54], ebx
je 0x420c6a
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x421576
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x42d392
call fcn.004139a0
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x421590
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4215dc
call fcn.00424b3e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401260
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x424885
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x4248c8
call fcn.00429243
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4248c8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4248e3
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004239f9
test ebx, ebx
mov esi, eax
je 0x4248e1
test edi, edi
je 0x4248e1
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x426563
Capabilities:
Get disk information

Disassembly:
mov eax, 0x42d668
call fcn.004139a0
sub esp, 0x264
mov eax, dword [0x43b630]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor eax, ebp
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x268]
push eax
push edi
mov esi, 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x4265aa
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x4265ae
cmp eax, esi
jb 0x4265b5
xor eax, eax
jmp 0x42669d
call fcn.00424b3e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x264], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x264]
push eax
push edi
call fcn.00426521
push dword [ebp - 0x264]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x42668a
push eax
push eax
lea ecx, [ebp - 0x26c]
push ecx
lea ecx, [ebp - 0x270]
push ecx
push eax
push eax
push eax
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x426616
xor esi, esi
jmp 0x42668d
test byte [ebp - 0x26c], 2
jne 0x426626
push edi
call dword [sym.imp.USER32.dll_CharUpperW]
test byte [ebp - 0x26c], 4
jne 0x42668a
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x42668a
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x268], 0
je 0x426612
cmp dword [ebp - 0x268], edi
jbe 0x426612
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x268]
sub ecx, edi
sar ecx, 1
add ecx, eax
cmp ecx, esi
jge 0x426612
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x264]
add ecx, 0xfffffff0
call fcn.00401260
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.004138fe
leave
ret 8