joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405531
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
push 4
pop eax
mov word [ebp - 0x1e], ax
mov eax, 0x407684
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov byte [ebp - 0x20], 1
mov byte [ebp - 0x1f], 0
mov dword [ebp - 0x10], 0x407674
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x405582
xor eax, eax
jmp 0x4055af
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x4055ae
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
je 0x4055ac
xor eax, eax
jmp 0x4055ae
call esi
pop esi
leave
ret 4

Function at 0x4055d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x439a00
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x439a00], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40560b
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405752
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40576f
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405772
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x4057a1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4057e5
test edi, edi
jne 0x4057ac
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4057df
Function at 0x4057e9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40585a
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x2000
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405849
cmp dword [ebp + 0x14], 1
je 0x40584b
cmp dword [ebp + 0x14], 2
je 0x40584b
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x405aa0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x405ac4
xor eax, eax
test eax, eax
je 0x405ad6
cmp byte [ebp + eax - 0x121], 0x5c
je 0x405ad6
xor ecx, ecx
jmp 0x405ad9
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x407298]
push ecx
lea eax, [ebp + eax - 0x120]
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 8
push 0
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x405be7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x439a48
push esi
call fcn.004059bd
push esi
call fcn.004056db
mov edi, eax
test edi, edi
jne 0x405c08
xor eax, eax
jmp 0x405c60
push edi
call fcn.004059df
test byte [0x446c68], 0x80
je 0x405c21
mov al, byte [edi]
test al, al
je 0x405c04
cmp al, 0x5c
je 0x405c04
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, esi
jmp 0x405c41
push esi
call fcn.00405a79
test eax, eax
je 0x405c3b
test byte [eax], 0x10
je 0x405c65
push esi
call fcn.00405bc0
push esi
call ebx
cmp eax, edi
jg 0x405c2c
push esi
call fcn.00405b93
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x405c5f
Function at 0x405f1d
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 2
call fcn.00405b0e
mov esi, dword [esp + 0x18]
test eax, eax
je 0x405f41
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x40607a
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x43ba48], 0x4c554e
mov edi, 0x400
mov ebp, 0x43ba48
test esi, esi
je 0x405f85
push 1
push 0
push esi
call fcn.00405772
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406080
cmp eax, edi
jg 0x406080
push edi
mov esi, 0x43c388
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406080
cmp eax, edi
jg 0x406080
push esi
push ebp
push str._s_s_r_n
push 0x43be48
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x446c0c]
push dword [eax + 0x128]
push esi
call fcn.00405cbf
push 4
push 0xc0000000
push esi
call fcn.00405772
mov ebp, eax
mov dword [esp + 0x14], ebp
cmp ebp, 0xffffffff
je 0x40607a
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x406073
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406073
cmp edi, dword [esp + 0x18]
jne 0x406073
push str._Rename__r_n
push esi
call fcn.00405c69
test eax, eax
jne 0x406087
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call fcn.004059bd
add edi, 0xa
mov eax, edi
push ebx
push 0x43be48
add eax, esi
push eax
call fcn.0040572e
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
push eax
add edi, ebx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x446cd0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0x407724
add eax, 0xa
push eax
call fcn.00405c69
test eax, eax
je 0x40603e
inc eax
lea ecx, [esi + edi]
mov ebp, eax
cmp eax, ecx
jae 0x4060ae
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x4060a3
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x406040
Function at 0x4060b6
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00405be7
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x4060eb
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x446cc8], eax
jmp 0x40627d
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x406106
test eax, eax
je 0x406228
test cl, 2
je 0x406228
push edi
push ebx
mov esi, 0x43c788
push esi
call fcn.004059bd
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x406129
push str..
push esi
call edi
jmp 0x40612f
push ebx
call fcn.00405bc0
cmp byte [ebx], 0
jne 0x40613d
cmp byte [0x43c788], 0x5c
jne 0x406145
push 0x407298
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x40621d
lea esi, [ebp - 0x11c]
push 0x3f
mov eax, esi
push eax
call fcn.00405697
cmp byte [eax], 0
je 0x406188
cmp byte [ebp - 0x18], 0
je 0x406188
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x40619e
mov al, byte [esi + 1]
test al, al
je 0x4061fc
cmp al, 0x2e
jne 0x40619e
cmp byte [esi + 2], 0
je 0x4061fc
push esi
push edi
call fcn.004059bd
test byte [ebp - 0x148], 0x10
je 0x4061c3
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4061fc
push dword [ebp + 0xc]
push ebx
call fcn.004060b6
jmp 0x4061fc
push ebx
call fcn.00405752
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4061f4
test byte [ebp + 0xc], 4
je 0x4061ec
push ebx
push 0xfffffffffffffff1
call fcn.0040490d
push 0
push ebx
call fcn.00405f1d
jmp 0x4061fc
inc dword [0x446cc8]
jmp 0x4061fc
push ebx
push 0xfffffffffffffff2
call fcn.0040490d
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40616a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x406227
mov byte [edi - 1], 0
pop edi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40627c
cmp dword [ebp - 8], esi
je 0x40626c
push ebx
call fcn.00405a79
test eax, eax
je 0x40627c
push ebx
call fcn.00405b93
push ebx
call fcn.00405752
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x406274
test byte [ebp + 0xc], 4
je 0x40626c
push ebx
push 0xfffffffffffffff1
call fcn.0040490d
push esi
push ebx
call fcn.00405f1d
jmp 0x40627c
inc dword [0x446cc8]
jmp 0x40627c
push ebx
push 0xffffffffffffffe5
call fcn.0040490d
pop esi
pop ebx
leave
ret 8
Function at 0x427b60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x21000]
push edi
or ebp, 0xffffffff
jmp 0x427b82
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x427b89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x427b78
mov eax, 1
add ebx, ebx
jne 0x427b9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x427b90
jne 0x427bac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x427b90
xor ecx, ecx
sub eax, 3
jb 0x427bc0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x427c32
mov ebp, eax
add ebx, ebx
jne 0x427bcb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x427bd8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x427bfc
inc ecx
add ebx, ebx
jne 0x427be8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x427bdd
jne 0x427bf9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x427bdd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x427c1c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x427c0d
jmp 0x427b7e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x427c1c
add edi, ecx
jmp 0x427b7e
pop esi
mov edi, esi
mov ecx, 0x43b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x427c3a
cmp byte [edi], 0
jne 0x427c3a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x427c3f
lea edi, [esi + 0x25000]
Function at 0x43534b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042708b
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x435383
xor eax, eax
jmp 0x4353af
cmp esi, dword [ebp - 4]
je 0x4353ac
cmp dword [ebp + 0xc], 0
je 0x4353ac
push dword [edi + 0x9c]
call fcn.00434f59
push dword [edi + 0x9c]
mov esi, eax
call fcn.00424fcd
pop ecx
pop ecx
cmp esi, eax
je 0x43537f
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x405dfb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 2
jne 0x405e47
mov eax, dword [esi + 4]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp + 8]
push eax
push 0x20
push dword [ebp + 0xc]
call fcn.004058d9
xor edx, edx
mov dword [esi + 4], edx
xor eax, eax
push ebx
movzx ebx, byte [ebp + eax - 0x20]
mov ecx, eax
and ecx, 3
shl ecx, 3
shl ebx, cl
xor edx, ebx
inc eax
cmp eax, 0x20
jb 0x405e2c
mov dword [esi + 4], edx
pop ebx
cmp dword [esi], 3
jne 0x405e6f
lea eax, [ebp - 0x20]
push eax
push 0x20
add esi, 4
push esi
push 0x20
push dword [ebp + 0xc]
call fcn.004058d9
push 0x20
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.0041be00
add esp, 0xc
pop esi
leave
ret 8

Function at 0x40824f
Capabilities:
Move file

Disassembly:
mov eax, 0x429493
call fcn.0041a050
mov eax, 0x5028
call fcn.0041a660
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, 0x800
push esi
lea eax, [ebp - 0x5034]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x40840c
cmp eax, esi
jae 0x40840c
push esi
lea eax, [ebp - 0x4034]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x40840c
cmp eax, esi
jae 0x40840c
lea eax, [ebp - 0x5034]
push eax
call fcn.0040a0d8
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x4034]
push eax
call fcn.0040a0d8
mov edi, eax
cmp word [edi], 0
je 0x40840c
push edi
push dword [ebp - 0x10]
call fcn.004119d2
test eax, eax
je 0x40840c
push edi
push ebx
call fcn.0040a0d8
push eax
call fcn.004119d2
test eax, eax
jne 0x40840c
mov word [ebp - 0x1010], ax
xor edi, edi
cmp word [ebp - 0x1010], 0
jne 0x408368
push esi
push ebx
lea eax, [ebp - 0x1010]
push eax
call fcn.0041077e
push edi
push str.rtmp_d
push esi
lea eax, [ebp - 0x1010]
push eax
call fcn.0040a0d8
push eax
call fcn.0040b8f5
add esp, 0x10
lea eax, [ebp - 0x1010]
push eax
call fcn.00408ffc
test al, al
je 0x40834f
xor eax, eax
mov word [ebp - 0x1010], ax
add edi, 0x7b
cmp edi, 0x2710
jl 0x408302
cmp word [ebp - 0x1010], 0
je 0x40840c
push esi
push ebx
lea eax, [ebp - 0x3034]
push eax
call fcn.0041077e
push esi
push dword [ebp - 0x10]
lea eax, [ebp - 0x3034]
push eax
call fcn.0040a242
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x3034]
push eax
call esi
test eax, eax
je 0x40840c
lea ecx, [ebp - 0x2034]
call fcn.004084ed
push dword [ebp + 8]
and dword [ebp - 4], 0
xor bl, bl
call fcn.00408ffc
test al, al
jne 0x4083cf
push 0x12
push dword [ebp + 8]
lea ecx, [ebp - 0x2034]
call fcn.0040868a
mov bl, al
lea eax, [ebp - 0x3034]
push eax
lea eax, [ebp - 0x1010]
push eax
call esi
test bl, bl
je 0x4083f9
lea ecx, [ebp - 0x2034]
call fcn.00408799
lea ecx, [ebp - 0x2034]
call fcn.004087e7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2034]
call fcn.004089d4
mov al, 1
jmp 0x40840e
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40cbd4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
cmp dword [0x437808], ebx
jne 0x40cbed
mov ecx, 0x437800
call fcn.0040cb95
mov esi, dword [ebp + 0xc]
mov ecx, esi
and ecx, 0xf
mov eax, esi
xor edx, edx
sub eax, ecx
cmp byte [ebp + 0x14], bl
setne dl
cmp byte [ebp + 0x10], bl
je 0x40cc3f
mov ecx, dword [0x437808]
cmp ecx, ebx
je 0x40cc5b
push edx
push eax
push dword [ebp + 8]
call ecx
test eax, eax
jne 0x40cc7c
push str.CryptProtectMemory_failed
mov esi, 0x4325ac
push esi
call fcn.00406345
pop ecx
pop ecx
mov ecx, esi
call fcn.0041d471
push 2
mov ecx, esi
call fcn.00406293
jmp 0x40cc7c
mov ecx, dword [0x43780c]
cmp ecx, ebx
je 0x40cc5b
push edx
push eax
push dword [ebp + 8]
call ecx
test eax, eax
jne 0x40cc7c
push str.CryptUnprotectMemory_failed
jmp 0x40cc20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor ecx, ecx
cmp esi, ebx
jbe 0x40cc7c
mov dl, al
add dl, 0x4b
mov eax, dword [ebp + 8]
add eax, ecx
mov bl, dl
add bl, cl
xor byte [eax], bl
inc ecx
cmp ecx, esi
jb 0x40cc6c
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x40cf75
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x68
push dword [0x440844]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x440848], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov dword [ebp - 4], edi
mov ebx, 0xb1
jne 0x40cfd7
mov ecx, dword [0x437814]
call fcn.00418cff
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x42a724
push 0
push 0xc2
push edi
call esi
mov byte [0x440848], 1
mov edi, 0x5f5e100
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x60]
push eax
push 0
push 0x43a
push dword [ebp - 4]
mov dword [ebp - 0x60], 0x5c
call esi
xor eax, eax
inc eax
cmp byte [ebp + 8], 0
mov byte [ebp - 0x47], 0
mov dword [ebp - 0x5c], eax
je 0x40d027
mov ecx, dword [ebp - 0x58]
and ecx, 0xbfffffff
or ecx, eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x4c], 0xa0
mov dword [ebp - 0x5c], 0x40000001
lea ecx, [ebp - 0x60]
push ecx
push eax
push 0x444
push dword [ebp - 4]
call esi
push dword [ebp + 0xc]
push 0
push 0xc2
push dword [ebp - 4]
call esi
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
cmp byte [ebp + 8], 0
je 0x40d071
mov eax, dword [ebp - 0x58]
and eax, 0xfffffffe
or eax, 0x40000000
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x60]
push eax
push 1
push 0x444
push dword [ebp - 4]
call esi
push 0x42a7f8
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40d45e
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0041a660
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x40d479
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40d483
mov byte [eax], 0
test edi, edi
je 0x40d52c
movzx eax, word [edi]
test ax, ax
je 0x40d52c
push esi
xor esi, esi
xor ecx, ecx
movzx eax, ax
inc edi
inc edi
cmp ax, 0x3d
jne 0x40d4bc
cmp dword [ebp + 0xc], 0
je 0x40d4c8
test esi, esi
jne 0x40d4c8
test ebx, ebx
je 0x40d4b8
mov byte [ebx], 1
mov esi, edx
jmp 0x40d4d7
cmp ax, 0xd
je 0x40d4ea
cmp ax, 0xa
je 0x40d4ec
mov word [edx], ax
mov eax, dword [ebp + 0x14]
inc edx
add eax, 0xfffffffe
inc edx
cmp ecx, eax
jge 0x40d4e2
movzx eax, word [edi]
inc ecx
test ax, ax
jne 0x40d49c
jmp 0x40d4ec
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x40d4ec
inc edi
inc edi
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov word [edx], ax
test ebx, ebx
je 0x40d527
mov word [ebx], ax
test esi, esi
je 0x40d527
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp + 0x14]
lea eax, [ebp - 0x2000]
push eax
push ebx
call fcn.0041077e
xor eax, eax
mov word [esi], ax
mov eax, edi
pop esi
jmp 0x40d52e
xor eax, eax
pop edi
pop ebx
leave
ret 0x10

Function at 0x40d573
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.0041a660
push 0x800
lea eax, [ebp - 0x1020]
push eax
call fcn.0041980f
cmp byte [0x440849], 0
jne 0x40d608
push 6
push dword [0x42f0c8]
lea eax, [ebp - 0x1020]
push eax
call fcn.0040a0d8
push eax
call fcn.004119f3
test eax, eax
jne 0x40d608
push 0x42a644
call fcn.004197fc
lea eax, [ebp - 0x1020]
push eax
call fcn.0041a323
xor ecx, ecx
push 0x1e
mov word [ebp + eax*2 - 0x101e], cx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0041a390
add esp, 0x10
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x1020]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
leave
ret
Function at 0x40df60
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x40df24
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x40df42
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x40dfa0
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x40df87
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x40df90
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x40df9a
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x40df7c
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x40df06
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x40dfed
dec eax
je 0x40dfe4
sub eax, 3
je 0x40dfdb
mov dword [ebp - 4], 0x40
jmp 0x40e00a
mov dword [ebp - 4], 4
jmp 0x40dff0
mov dword [ebp - 4], 0x20
jmp 0x40dff0
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x40e03c
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x40dfbc
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0040d84d
in al, dx
pop edi
or edx, ebx
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x40e048
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410df2
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
cmp dword [esi], ebp
jbe 0x410e6d
push ebx
push edi
lea edi, [esi + 4]
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x410d94
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
jne 0x410e49
push str.CreateThread_failed
push 0x4325ac
call fcn.00406345
pop ecx
pop ecx
mov ecx, 0x4325ac
call fcn.0041d471
push 2
mov ecx, 0x4325ac
call fcn.00406293
mov dword [edi], ebx
inc dword [esi + 0x84]
mov eax, dword [0x44e58c]
test eax, eax
je 0x410e63
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc ebp
add edi, 4
cmp ebp, dword [esi]
jb 0x410e02
pop edi
pop ebx
pop esi
pop ebp
pop ecx
ret