joyce8/EMBER2024-capa huggingface dataset:
Function at 0x710c7f
Capabilities:
Encode data using xor

Disassembly:
push 0x7109ec
pop eax
sub esi, 0xe704a7bc
sub ebx, ebx
mov ebx, esi
call fcn.00710cb5
add ebx, 0x81e42344
mov esi, 0xb8e3767b
xor dword [edx], eax
sub esi, ebx
inc edx
and ebx, esi
add ebx, ebx
cmp edx, edi
jne fcn.00710c7f
add esi, ebx
ret

Function at 0x4d2cf0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xcd000]
push edi
jmp 0x4d2d0a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4d2d11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d2d00
mov eax, 1
add ebx, ebx
jne 0x4d2d23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4d2d18
jne 0x4d2d34
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4d2d18
xor ecx, ecx
sub eax, 3
jb 0x4d2d48
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4d2dba
mov ebp, eax
add ebx, ebx
jne 0x4d2d53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4d2d60
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4d2d84
inc ecx
add ebx, ebx
jne 0x4d2d70
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4d2d65
jne 0x4d2d81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4d2d65
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4d2da4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4d2d95
jmp 0x4d2d06
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4d2da4
add edi, ecx
jmp 0x4d2d06
pop esi
mov edi, esi
mov ecx, 0x6600
jmp 0x4d2df5
mov al, byte [edi]
inc edi
cmp al, 0x80
jb 0x4d2dd5
cmp al, 0x8f
ja 0x4d2dd5
cmp byte [edi - 2], 0xf
je 0x4d2ddb
sub al, 0xe8
cmp al, 1
ja 0x4d2dff
cmp ecx, 4
jb 0x4d2e04
mov eax, dword [edi]
sub al, 1
jne 0x4d2dff
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
sub ecx, 4
stosd dword es:[edi], eax
sub ecx, 1
jb 0x4d2e04
mov al, byte [edi]
inc edi
jmp 0x4d2dd5
sub ecx, 1
jae 0x4d2dc4
lea edi, [esi + 0xd0000]
mov eax, dword [edi]
or eax, eax
je 0x4d2e55
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x154884]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x15493c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4d2e0a
mov ecx, edi
jns 0x4d2e39
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x154944]
or eax, eax
je 0x4d2e4f
mov dword [ebx], eax
add ebx, 4
jmp 0x4d2e27
call dword [esi + 0x154940]
mov ebp, dword [esi + 0x154948]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4d2e89
sub esp, 0xffffff80
jmp 0x4034a5
Function at 0x401690
Capabilities:
Clear file content
Parse pe header
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 4], 0
test eax, eax
je 0x4017a3
push 0
lea ecx, [ebp - 4]
push ecx
call fcn.004011a0
mov edi, eax
test edi, edi
je 0x4017a3
mov edx, 0x5a4d
cmp word [edi], dx
jne 0x401781
mov esi, dword [edi + 0x3c]
cmp dword [esi + edi], 0x4550
jne 0x401781
rdtsc
xor dword [0x426f70], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor dword [0x426f70], eax
push 0x4031fc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x401718
push 0x403208
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401718
push 0x426f70
call eax
mov ecx, dword [0x426f70]
or ebx, 0xffffffff
xor edx, edx
mov eax, ecx
div ebx
add eax, ecx
mov dword [esi + edi + 0x58], eax
mov eax, dword [ebp - 4]
mov ebx, eax
test eax, eax
je 0x401781
mov eax, dword [ebp + 8]
push 0
push 0x80
push 2
push 0
push 7
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401781
push 0
lea ecx, [ebp + 8]
push ecx
push ebx
push edi
push esi
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40177a
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x4017a3
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x401820
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push str._globalroot_systemroot_system32drivers_ntfs.sys
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x4018a0
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
mov eax, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x4018a0
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4013ec
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
lea ecx, [esi + 8]
call fcn.0040175e
push dword [ebp + 0xc]
lea edi, [esi + 0xc]
mov ecx, edi
call fcn.00401556
push 0x5c
mov ecx, edi
call fcn.004015f3
lea eax, [ebp - 4]
xor edi, edi
push eax
push edi
push esi
push 0x4014c1
push edi
push edi
mov dword [0x4181e8], esi
mov dword [0x4181f0], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x41824c], 2
mov dword [0x4181ec], eax
je 0x401449
call fcn.0040749d
push 0xffffffffffffffff
push dword [0x4181ec]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x4181f0]
mov dword [0x418258], edi
cmp eax, edi
je 0x40149c
mov ecx, eax
dec ecx
je 0x401490
dec ecx
je 0x40148c
dec ecx
je 0x401488
push eax
push 0x14
push edi
call fcn.0040734f
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 8
push 0x12
jmp 0x401492
push 0x13
jmp 0x401492
push 0x11
push edi
call fcn.0040734f
pop ecx
pop ecx
jmp 0x40147d
cmp dword [0x41825c], edi
jne 0x40147d
lea eax, [ebp + 8]
push eax
push dword [0x4181ec]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x40147d
cmp dword [ebp + 8], edi
jne 0x40147d
xor eax, eax
jmp 0x401482

Function at 0x40194f
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x40196b
xor eax, eax
jmp 0x4019ba
mov eax, dword [0x418250]
test eax, eax
je 0x4019a7
cmp eax, 2
jne 0x4019b7
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4019a7
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 0xc]
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jge 0x4019b7
push esi
call fcn.004023bf
neg eax
sbb eax, eax
pop ecx
neg eax
dec eax
jmp 0x4019ba
push 1
pop eax
pop esi
leave
ret

Function at 0x4019bd
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4019f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4019ed
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4019f0
test al, 0x10
jne 0x4019f0
xor eax, eax
ret
push 1
pop eax
ret
Function at 0x4019f4
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x411430
call fcn.00410ff0
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
push 0xf
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.004016bb
cmp dword [ebp - 0x10], 1
mov dword [ebp - 4], ebx
jg 0x401a2c
push 2
lea ecx, [ebp - 0x18]
call fcn.004016bb
mov edi, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 1
push dword [ebp - 0x18]
mov eax, dword [edi]
push eax
call esi
cmp eax, ebx
je 0x401a88
lea ebx, [eax + 1]
cmp ebx, dword [ebp - 0x10]
jl 0x401a57
lea eax, [ebx + 1]
lea ecx, [ebp - 0x18]
push eax
call fcn.004016bb
mov eax, dword [edi]
push ebx
push dword [ebp - 0x18]
push eax
call esi
mov ecx, dword [ebp - 0x18]
xor esi, esi
xor eax, eax
cmp word [ecx], si
je 0x401a76
mov edx, ecx
inc eax
inc edx
inc edx
cmp word [edx], si
jne 0x401a6e
mov word [ecx + eax*2], si
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.004015b5
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x402137
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x41151c
call fcn.00410ff0
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], esi
call fcn.00402ba8
and dword [ebp - 4], 0
cmp dword [ebp - 0x1c], 0
jg 0x402173
push 1
lea ecx, [ebp - 0x24]
call fcn.004016bb
mov ax, word [edi + esi*2 - 2]
mov ebx, dword [ebp - 0x24]
cmp ax, 0x5c
je 0x402187
cmp ax, 0x2f
jne 0x402191
and word [ebx + esi*2 - 2], 0
dec esi
mov dword [ebp - 0x10], esi
push ebx
call fcn.004019bd
test eax, eax
pop ecx
jne 0x4021f0
test esi, esi
jle 0x4021bb
lea eax, [ebx + esi*2]
mov cx, word [eax]
cmp cx, 0x2f
je 0x4021b9
cmp cx, 0x5c
je 0x4021b9
dec esi
dec eax
dec eax
test esi, esi
jg 0x4021a3
test esi, esi
je 0x4021c4
and word [ebx + esi*2], 0
jmp 0x402191
cmp dword [ebp - 0x10], 2
jne 0x4021e6
mov ax, word [edi]
or al, 0x20
cmp ax, 0x61
jb 0x4021e6
cmp ax, 0x7a
ja 0x4021e6
cmp word [edi + 2], 0x3a
je 0x40227a
push edi
push 0xc
push 0
jmp 0x402270
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x402260
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.0040194f
pop ecx
test eax, eax
pop ecx
je 0x402260
xor esi, esi
jmp 0x40227d
cmp esi, dword [ebp - 0x10]
jge 0x40227a
mov eax, dword [ebp - 0x10]
lea edi, [ebx + esi*2]
sub eax, esi
inc eax
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + esi*2]
push eax
push edi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp word [edi], 0
je 0x40223f
inc esi
lea ecx, [ebx + esi*2]
mov ax, word [ecx]
test ax, ax
je 0x40225b
cmp ax, 0x5c
je 0x40225b
cmp word [ecx], 0x2f
je 0x40225b
inc esi
inc ecx
inc ecx
jmp 0x402242
and word [ebx + esi*2], 0
push ebx
call fcn.004019bd
test eax, eax
pop ecx
jne 0x402219
push ebx
push 0xc
push 1
call fcn.0040734f
add esp, 0xc
jmp 0x402215
push 1
pop esi
push dword [ebp - 0x24]
or dword [ebp - 4], 0xffffffff
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40229b
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov eax, 0x411530
call fcn.00410ff0
sub esp, 0x25c
push ebx
push esi
push edi
lea ecx, [ebp - 0x18]
push dword [ebp + 8]
call fcn.00402ba8
and dword [ebp - 4], 0
push 0x417080
lea ecx, [ebp - 0x18]
call fcn.00402c09
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
je 0x402382
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.00401556
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.004015f3
lea eax, [ebp - 0x23c]
lea ecx, [ebp - 0x18]
push eax
call fcn.00402c09
test byte [ebp - 0x268], 0x10
je 0x40234d
lea eax, [ebp - 0x23c]
push 0x41707c
push eax
call ebx
test eax, eax
je 0x402365
lea eax, [ebp - 0x23c]
push 0x417074
push eax
call ebx
test eax, eax
je 0x402365
push dword [ebp - 0x18]
call fcn.0040229b
pop ecx
jmp 0x402361
push 0
push dword [ebp - 0x18]
call esi
test eax, eax
je 0x40239f
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40239f
lea eax, [ebp - 0x268]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4022f1
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x40239f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40239f
push 1
pop esi
jmp 0x4023a1
xor esi, esi
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

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

Disassembly:
cmp dword [0x418278], 0
push esi
jne 0x4023d9
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4023de
push 1
pop eax
pop esi
ret
test al, 0x10
jne 0x4023fc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4023f8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret
xor eax, eax
pop esi
ret
push esi
call fcn.0040229b
pop ecx
pop esi
ret
Function at 0x402fee
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4170e0]
push edi
xor edi, edi
test eax, eax
je 0x403012
mov ecx, 0x4170e0
cmp eax, dword [ebp + 8]
je 0x403012
mov eax, dword [ecx + 0x10]
add ecx, 0x10
inc edi
test eax, eax
jne 0x403002
shl edi, 4
mov eax, dword [edi + 0x4170ec]
test eax, eax
jne 0x4030d6
cmp dword [0x4172c4], 0xffffffff
jne 0x403037
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [0x4172c4], eax
cmp word [0x4172c0], 0xffff
jne 0x40304e
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov word [0x4172c0], ax
mov ax, word [0x4172c8]
cmp ax, 0xffff
jne 0x403065
call fcn.00402b52
mov word [0x4172c8], ax
mov ecx, dword [edi + 0x4170e8]
and dword [ebp + 8], 0
push ebx
mov ebx, dword [edi + 0x4170e4]
test ecx, ecx
push esi
je 0x4030a1
mov edx, 0x419
cmp dword [0x4172c4], edx
je 0x403096
cmp word [0x4172c0], dx
je 0x403096
cmp ax, dx
jne 0x4030a1
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [ebp + 8], eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi + 4]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [edi + 0x4170ec], eax
lea ecx, [esi + 1]
push ecx
push eax
push esi
push ebx
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [edi + 0x4170ec]
pop esi
pop ebx
pop edi
pop ebp
ret
Function at 0x4031c4
Capabilities:
Get common file path

Disassembly:
mov eax, 0x411614
call fcn.00410ff0
sub esp, 0x2a4
push ebx
push esi
push edi
push 3
call fcn.00402fee
push 2
mov dword [0x418248], eax
call fcn.00402fee
push 5
mov dword [0x418244], eax
call fcn.00402fee
push 0x15
mov dword [0x418240], eax
call fcn.00402fee
push 0x16
mov dword [0x41823c], eax
call fcn.00402fee
push 0x17
mov dword [0x418238], eax
call fcn.00402fee
xor edi, edi
add esp, 0x18
mov dword [0x418234], eax
mov dword [0x41822c], edi
mov dword [0x418230], edi
xor ebx, ebx
mov esi, 0x4181f8
push edi
lea eax, [ebp - 0x2b0]
push ebx
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4032f1
push ebx
lea eax, [ebp - 0xa4]
push str.7zSfxFolder_02d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x24]
call fcn.0040330a
lea eax, [ebp - 0xa4]
lea ecx, [ebp - 0x24]
push eax
mov dword [ebp - 4], edi
call fcn.00401556
lea eax, [ebp - 0x2b0]
lea ecx, [ebp - 0x18]
push eax
call fcn.00401556
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.00402d71
mov edi, 0x417964
cmp dword [edi - 4], ebx
jne 0x4032c7
push dword [edi]
lea ecx, [ebp - 0x24]
call fcn.00401556
lea eax, [ebp - 0x2b0]
lea ecx, [ebp - 0x18]
push eax
call fcn.00401556
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.00402d71
add edi, 8
cmp edi, str.MyDocs
jb 0x40329e
push dword [ebp - 0x18]
mov dword [ebp - 4], 1
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x24]
or dword [ebp - 4], 0xffffffff
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
xor edi, edi
pop ecx
inc ebx
cmp ebx, 0x40
jl 0x403237
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x403352
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov eax, 0x411653
call fcn.00410ff0
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
push 0xf
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call fcn.004016bb
cmp dword [ebp - 0x1c], 2
push 1
pop edi
mov dword [ebp - 4], edi
jg 0x403390
push 3
lea ecx, [ebp - 0x24]
call fcn.004016bb
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
call esi
mov ecx, dword [ebp - 0x24]
mov word [ecx], bx
xor ecx, ecx
cmp eax, ebx
mov dword [ebp - 0x20], ecx
jbe 0x4033e3
lea edi, [eax + 1]
cmp edi, dword [ebp - 0x1c]
jl 0x4033bf
lea eax, [edi + 1]
lea ecx, [ebp - 0x24]
push eax
call fcn.004016bb
push dword [ebp - 0x24]
push edi
call esi
mov eax, dword [ebp - 0x24]
xor ecx, ecx
cmp word [eax], bx
je 0x4033d9
mov edx, eax
inc ecx
inc edx
inc edx
cmp word [edx], bx
jne 0x4033d1
push 1
mov word [eax + ecx*2], bx
mov dword [ebp - 0x20], ecx
pop edi
lea eax, [ecx + 0xf]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], eax
lea esi, [ecx + ecx]
jmp 0x4033f4
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
jl 0x403403
inc eax
lea ecx, [ebp - 0x24]
push eax
call fcn.004016bb
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
add eax, esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 0x24]
add esp, 0xc
xor eax, eax
cmp word [ecx], bx
je 0x40342c
mov edx, ecx
inc eax
inc edx
inc edx
cmp word [edx], bx
jne 0x403424
mov word [ecx + eax*2], bx
push dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40344d
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0xfff
jl 0x4033f1
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call fcn.0040151c
mov dword [ebp - 0x18], edi
push dword [ebp - 0x24]
mov byte [ebp - 4], bl
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 8]
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4034b0
Capabilities:
Set environment variable

Disassembly:
mov eax, 0x411668
call fcn.00410ff0
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x418200], esi
jle 0x403514
mov eax, dword [0x418204]
lea ecx, [ebp - 0x18]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
call fcn.0040151c
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
call fcn.00403495
mov eax, dword [0x418204]
pop ecx
push dword [ebp - 0x18]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
inc esi
pop ecx
cmp esi, dword [0x418200]
jl 0x4034c8
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x405db7
Capabilities:
Inspect load icon resource

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi + 8]
and eax, 3
sub eax, ebx
je 0x405e41
dec eax
je 0x405e1d
dec eax
je 0x405df0
dec eax
jne 0x405e6b
push 0x19
call fcn.00402fee
pop ecx
push eax
push 0x4b3
mov ecx, esi
call fcn.00406107
push 0x1a
jmp 0x405e58
push 0x1a
call fcn.00402fee
pop ecx
mov edi, 0x4b4
push eax
push edi
mov ecx, esi
call fcn.00406107
push ebx
push 0x4b3
mov ecx, esi
call fcn.00405ffb
push edi
mov ecx, esi
call fcn.00405bfc
jmp 0x405e6b
push 0x19
call fcn.00402fee
pop ecx
push eax
push 0x4b3
mov ecx, esi
call fcn.00406107
push ebx
push 0x4b4
mov ecx, esi
call fcn.00405ffb
jmp 0x405e6b
push 0x1b
call fcn.00402fee
pop ecx
push eax
push 0x4b3
mov ecx, esi
call fcn.00406107
push 0x1c
call fcn.00402fee
pop ecx
push eax
push 0x4b4
mov ecx, esi
call fcn.00406107
mov eax, dword [esi + 8]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [sym.imp.USER32.dll_LoadIconW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
and eax, 0x1c
cmp eax, 4
je 0x405eae
cmp eax, 8
je 0x405ea5
cmp eax, 0xc
je 0x405e9e
cmp eax, 0x10
jne 0x405ee4
push 0x7f04
jmp 0x405eaa
push 0x7f01
jmp 0x405eaa
push 0x7f02
push 0
jmp 0x405eb5
push 0x65
push 0
call ebx
push eax
call edi
test eax, eax
mov dword [esp + 0x10], eax
je 0x405ee4
push 0x4b1
mov dword [esi + 0x30], 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push dword [esp + 0x10]
push 1
push 0x172
push eax
call ebp
jmp 0x405ef6
and dword [esi + 0x30], 0
push 0
push 0x4b1
mov ecx, esi
call fcn.00405ffb
test byte [0x41794d], 2
jne 0x405f51
push 0x65
push 0
call ebx
push eax
call edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
push 0x32
mov dword [esp + 0x18], eax
call edi
push eax
push 0x31
call edi
push eax
push 1
push 0x65
push 0
call ebx
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov ebx, eax
test ebx, ebx
jne 0x405f37
mov ebx, dword [esp + 0x10]
push dword [esp + 0x10]
mov edi, 0x80
push 1
push edi
push dword [esi + 4]
call ebp
push ebx
push 0
push edi
push dword [esi + 4]
call ebp
push dword [esi + 0xc]
mov ecx, esi
call fcn.00406564
push dword [esi + 0x10]
push 0x4b2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
test byte [0x41794c], 8
jne 0x405f7c
mov ecx, esi
call fcn.00406451
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret