joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4da2b7
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 0x4da2d0
or eax, 0xffffffff
jmp 0x4da331
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x4da32d
push 0x3d
push esi
call fcn.004d3edf
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4da32d
cmp esi, eax
je 0x4da32d
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x57f8e0]
sete cl
cmp eax, dword [0x57f8e4]
mov dword [ebp - 8], ecx
jne 0x4da313
mov edi, eax
call fcn.004da256
mov dword [0x57f8e0], eax
cmp eax, ebx
jne 0x4da36c
cmp dword [ebp + 0xc], ebx
je 0x4da335
cmp dword [0x57f8e8], ebx
je 0x4da335
call fcn.004d9ff5
test eax, eax
je 0x4da36c
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x4da33e
xor eax, eax
jmp 0x4da330
push 4
call fcn.004d262c
cmp eax, ebx
pop ecx
mov dword [0x57f8e0], eax
je 0x4da32d
mov dword [eax], ebx
cmp dword [0x57f8e8], ebx
jne 0x4da36c
push 4
call fcn.004d262c
cmp eax, ebx
pop ecx
mov dword [0x57f8e8], eax
je 0x4da32d
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x57f8e0]
call fcn.004da209
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x4da3cd
cmp dword [esi], ebx
je 0x4da3cd
lea esi, [esi + edi*4]
push dword [esi]
call fcn.004d2514
cmp dword [ebp - 8], ebx
pop ecx
jne 0x4da3b0
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x4da40e
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x4da3a7
mov eax, edi
shl eax, 2
push eax
push dword [0x57f8e0]
call fcn.004d3482
cmp eax, ebx
pop ecx
pop ecx
je 0x4da40e
jmp 0x4da409
cmp dword [ebp - 8], ebx
jne 0x4da479
cmp edi, ebx
jge 0x4da3dc
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x57f8e0]
call fcn.004d3482
cmp eax, ebx
pop ecx
pop ecx
je 0x4da32d
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x57f8e0], eax
cmp dword [ebp + 0xc], ebx
je 0x4da463
push dword [ebp - 4]
call fcn.004d40f0
inc eax
inc eax
push eax
call fcn.004d262c
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4da463
push dword [ebp - 4]
push esi
call fcn.004da490
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4da45c
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.004d2514
pop ecx
cmp dword [ebp - 8], ebx
je 0x4da471
push dword [ebp - 4]
call fcn.004d2514
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4da330
push dword [ebp - 4]
call fcn.004d2514
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x4da33a
Function at 0x4db6b5
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004d22d0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4db750
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x57f8c0]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4db750
cmp eax, 1
je 0x4db771
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4db750
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4db71d
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4db74c
xor eax, eax
inc eax
jmp 0x4db790
cmp edi, eax
jae 0x4db754
xor eax, eax
jmp 0x4db790
cmp eax, esi
jae 0x4db75b
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x57f8c0]
jmp 0x4db774
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4dd387
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x53df94]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x4dd3b8
xor eax, eax
jmp 0x4dd541
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x583820]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4dd3f4
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.004e14cd
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4dd4cf
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x4dd50d
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x4dd458
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4dd449
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x4dd429
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4dd498
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x4dd4a1
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x4dd41a
jmp 0x4dd4a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x4dd53c
cmp dword [ebp - 0x6c], edi
je 0x4dd50d
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x4dd502
call fcn.004d2ee2
mov dword [eax], 9
call fcn.004d2eeb
mov dword [eax], esi
jmp 0x4dd537
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4dd4f7
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x4dd4a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x4dd4a3
push dword [ebp - 0x6c]
call fcn.004d2ef4
pop ecx
jmp 0x4dd537
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4dd525
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x4dd525
xor eax, eax
jmp 0x4dd53f
call fcn.004d2ee2
mov dword [eax], 0x1c
call fcn.004d2eeb
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x4dd53f
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.004db7c9
add ebp, 0x3a0
leave
ret
Function at 0x4dd6bc
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 0x4dd890
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x583820]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4dd890
test cl, 0x48
je 0x4dd727
cmp byte [eax + 5], 0xa
je 0x4dd727
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 0x4dd779
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4dd761
call fcn.004d2ee2
mov dword [eax], 9
call fcn.004d2eeb
mov dword [eax], esi
jmp 0x4dd771
cmp eax, 0x6d
je 0x4dd890
push eax
call fcn.004d2ef4
pop ecx
or eax, 0xffffffff
jmp 0x4dd892
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x4dd88b
test eax, eax
je 0x4dd7a0
cmp byte [ebx], 0xa
jne 0x4dd7a0
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4dd7a9
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 0x4dd885
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4dd875
cmp al, 0xd
je 0x4dd7db
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4dd867
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4dd7f5
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4dd7f0
add dword [ebp + 0x10], 2
jmp 0x4dd849
mov dword [ebp + 0x10], eax
jmp 0x4dd863
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 0x4dd81d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4dd863
cmp dword [ebp - 0xc], 0
je 0x4dd863
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4dd83e
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4dd849
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4dd866
cmp ebx, dword [ebp + 0xc]
jne 0x4dd84e
cmp byte [ebp - 1], 0xa
jne 0x4dd84e
mov byte [ebx], 0xa
jmp 0x4dd866
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004de7ed
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4dd867
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4dd7bf
jmp 0x4dd885
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4dd885
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 0x4dd892
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4de90c
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 0x4de93a
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 0x4de941
cmp ebx, dword [eax + 4]
jae 0x4de941
xor eax, eax
jmp 0x4deb31
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4de952
xor eax, eax
inc eax
jmp 0x4deb30
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4de968
cmp ecx, edx
jae 0x4deaad
cmp dword [eax + 4], 0
je 0x4de971
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4de959
cmp dword [ebp + 8], 0
je 0x4de993
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4deaad
cmp eax, esi
jae 0x4deaad
mov eax, dword [0x57fbb8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4de9b8
cmp dword [esi*4 + 0x57fbc0], edi
je 0x4deab1
inc esi
cmp esi, eax
jl 0x4de9a6
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4deb2d
cmp dword [ebp - 8], 0x1000000
jne 0x4deb2d
test byte [ebp - 0xc], 0xcc
je 0x4dea36
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4deb2d
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4deb2d
cmp word [eax + 0x18], 0x10b
jne 0x4deb2d
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4deb2d
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4dea36
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4dea36
test byte [ecx + 0x27], 0x80
jne 0x4deaad
push 1
push 0x57fc00
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4de94a
mov ecx, dword [0x57fbb8]
test ecx, ecx
mov edx, ecx
jle 0x4dea6a
lea eax, [ecx*4 + 0x57fbbc]
cmp dword [eax], edi
je 0x4dea6a
dec edx
sub eax, 4
test edx, edx
jg 0x4dea5e
test edx, edx
jne 0x4dea9b
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4dea77
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4dea8f
lea eax, [edx*4 + 0x57fbc0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4dea7d
cmp ecx, 0x10
jge 0x4dea9b
inc ecx
mov dword [0x57fbb8], ecx
push 0
push 0x57fc00
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4de94a
xor eax, eax
jmp 0x4deb30
test esi, esi
jle 0x4de94a
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x57fc00
call ebx
test eax, eax
jne 0x4de94a
cmp dword [esi*4 + 0x57fbc0], edi
je 0x4deb07
mov eax, dword [0x57fbb8]
lea esi, [eax - 1]
test esi, esi
jl 0x4deaf5
cmp dword [esi*4 + 0x57fbc0], edi
je 0x4deaf1
dec esi
jns 0x4deae5
test esi, esi
jge 0x4deb05
cmp eax, 0x10
jge 0x4deb00
inc eax
mov dword [0x57fbb8], eax
lea esi, [eax - 1]
jmp 0x4deb07
je 0x4deb1f
xor ecx, ecx
test esi, esi
jl 0x4deb1f
lea eax, [ecx*4 + 0x57fbc0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4deb0d
push 0
push 0x57fc00
call ebx
jmp 0x4de94a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4df89d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x57fcf0], ebx
push esi
push edi
jne 0x4df91d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4df958
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x51a244
push edi
call esi
test eax, eax
mov dword [0x57fcf0], eax
je 0x4df958
push 0x51a234
push edi
call esi
push 0x51a220
push edi
mov dword [0x57fcf4], eax
call esi
cmp dword [0x57f8c0], 2
mov dword [0x57fcf8], eax
jne 0x4df91d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x57fd00], eax
je 0x4df91d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x57fcfc], eax
mov eax, dword [0x57fcfc]
test eax, eax
je 0x4df962
call eax
test eax, eax
je 0x4df949
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x57fd00]
test eax, eax
je 0x4df949
test byte [ebp - 8], 1
jne 0x4df962
cmp dword [0x57f8cc], 4
jb 0x4df95c
or byte [ebp + 0x12], 0x20
jmp 0x4df981
xor eax, eax
jmp 0x4df991
or byte [ebp + 0x12], 4
jmp 0x4df981
mov eax, dword [0x57fcf4]
test eax, eax
je 0x4df981
call eax
mov ebx, eax
test ebx, ebx
je 0x4df981
mov eax, dword [0x57fcf8]
test eax, eax
je 0x4df981
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x57fcf0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4e1da5
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004d22d0
mov eax, dword [0x53df94]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.004de7ed
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x4e1ed8
push 2
push esi
push dword [ebp + 8]
call fcn.004de7ed
add esp, 0xc
cmp eax, ebx
je 0x4e1ed8
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4e1e78
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.004d3f60
push 0x8000
push dword [ebp + 8]
call fcn.004e1ee6
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x4e1e2e
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.004dd387
add esp, 0xc
cmp eax, 0xffffffff
je 0x4e1e4e
sub edi, eax
test edi, edi
jg 0x4e1e26
jmp 0x4e1e66
call fcn.004d2eeb
cmp dword [eax], 5
jne 0x4e1e63
call fcn.004d2ee2
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.004e1ee6
pop ecx
pop ecx
jmp 0x4e1ec0
jge 0x4e1ec0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004de7ed
push dword [ebp + 8]
call fcn.004d5a1e
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x4e1ec0
call fcn.004d2ee2
mov dword [eax], 0xd
call fcn.004d2eeb
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.004de7ed
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4e1eda
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.004db7c9
leave
ret

Function at 0x4e7291
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4e72c9
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004e531b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004e52f3
jmp 0x4e72d5
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4e897f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4e89c1
call fcn.004ee73c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4e89c1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4e89b8
xor eax, eax
jmp 0x4e89c9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004e89cf
pop edi
pop esi
pop ebx
ret 4
Function at 0x4eec6c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4eec9a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4eecb8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004eebd2
jmp 0x4eecb8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4eecb8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004eebd2
test edi, edi
mov eax, edi
jne 0x4eeca2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x41304a
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x414c30
push 1
xor ebx, ebx
push ebx
push 0x414ce0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x41311b
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x414cd0
push eax
call dword [ecx]
test eax, eax
jl 0x413112
cmp byte [ebp + 8], bl
je 0x41309d
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 2
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x18], ebx
je 0x4130ba
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
cmp dword [ebp + 0x1c], ebx
jne 0x4130cc
push 0x41437c
jmp 0x4130cf
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x4130e4
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x4130f5
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x413109
mov bl, 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, bl
pop ebx
leave
ret 0x1c

Function at 0x413135
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40701c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x407028
push 0x407024
push 0x407020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x407028]
push dword [0x407024]
push dword [0x407020]
mov dword [0x407014], esp
call fcn.004014e0
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x403351
Capabilities:
Delete directory
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi]
mov eax, dword [edi + 4]
xor ebx, ebx
cmp dword [0x2420900], 0x594
mov dword [ebp - 0x18], esi
mov dword [ebp - 8], eax
jne 0x40339e
push 0x402df8
push 0x402e04
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push 0x402e18
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov eax, dword [str._n_z]
mov dword [ebp - 0x28], eax
mov eax, dword [0x4284ac]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.00403347
mov eax, dword [0x4284b0]
add dword [ebp - 0x10], 0x23f
mov dword [ebp - 0x2c], eax
mov eax, dword [0x4284b4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x20
jmp 0x4033dc
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, esi
shl eax, 4
cmp dword [0x2420900], 0xc
mov dword [ebp - 4], eax
jne 0x403441
push ebx
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc4c]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [0x2420900]
cmp eax, 0xfa9
jne 0x40345d
mov dword [0x241fe9c], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40346a
mov dword [0x241f84c], ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
add eax, esi
shr esi, cl
mov dword [ebp - 0x14], eax
mov dword [0x241fe98], 0xf4ea3dee
add esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor esi, dword [ebp - 4]
cmp dword [0x2420900], 0x213
mov dword [ebp - 0x14], esi
jne 0x4034a7
push 0x402e30
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [ebp - 0x14]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov eax, dword [ebp - 8]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
lea esi, [eax + edx]
mov eax, edx
shr eax, cl
add eax, dword [ebp - 0x30]
xor eax, esi
xor dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x18]
call fcn.0040334e
add dword [ebp - 0x10], 0x61c88647
dec dword [ebp - 0x20]
jne 0x4033d9
cmp dword [0x2420900], 0xa6d
mov eax, dword [ebp - 0x18]
mov dword [edi], eax
jne 0x403513
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov edx, dword [ebp - 8]
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
leave
ret 4