joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405780
Capabilities:
Delete file

Disassembly:
mov dx, word [0x40f238]
sub esp, 0x50
mov eax, 0x40f238
push esi
lea ecx, [esp + 4]
push edi
mov word [ecx], dx
mov al, byte [eax + 2]
mov byte [ecx + 2], al
mov byte [esp + 0xb], 0
cmp byte [esp + 0xa], 0x5c
je 0x4057b5
mov eax, 1
pop edi
pop esi
add esp, 0x50
ret
lea eax, [esp + 8]
push str.TEST_TST.TST
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 8]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll__lcreat]
cmp eax, 0xffffffff
mov edi, eax
jne 0x4057e1
xor eax, eax
pop edi
pop esi
add esp, 0x50
ret
lea eax, [esp + 8]
push 0x50
push eax
push edi
call dword [sym.imp.KERNEL32.dll__lwrite]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
cmp esi, 1
sbb eax, eax
pop esi
inc eax
add esp, 0x50
ret

Function at 0x4063c0
Capabilities:
Create thread

Disassembly:
sub esp, 4
mov ecx, dword [0x40def8]
mov dword [0x40df10], 0
lea eax, [esp]
push eax
push 0
push ecx
push 0x406390
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
add esp, 4
mov dword [0x40f22c], eax
ret

Function at 0x406c10
Capabilities:
Create thread

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 4
lea eax, [esp]
push eax
push 0
push ecx
push 0x406b70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
add esp, 4
mov dword [0x40f3c0], eax
ret

Function at 0x407230
Capabilities:
Shutdown system

Disassembly:
cmp dword [0x40df04], 0
je 0x40726f
mov eax, dword [0x40def8]
push eax
call fcn.00406eb0
add esp, 4
push 0x40d478
push 0
push str.RESTART
push 0x40f340
call fcn.00401070
add esp, 0x10
test eax, eax
je 0x407298
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
ret
mov eax, dword [esp + 4]
push 0x406fa0
push eax
mov ecx, dword [0x40d328]
push 0x75
push ecx
call fcn.00407940
add esp, 0x10
test eax, eax
je 0x407298
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
ret

Function at 0x407500
Capabilities:
Create thread

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 4
lea eax, [esp]
push eax
push 0
push ecx
push 0x407400
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
add esp, 4
mov dword [0x40df1c], eax
ret

Function at 0x4078d0
Capabilities:
Create thread

Disassembly:
sub esp, 4
lea eax, [esp]
push eax
push 0
push 0
push 0x407860
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
add esp, 4
mov dword [0x40df24], eax
ret
mov eax, dword [esp + 4]
push 0
push 0x407690
mov ecx, dword [0x40d328]
mov dword [0x40df28], 0
push eax
push 0x7b
push ecx
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [0x40df34], 0x4077b0
mov dword [0x40df38], 0x407810
mov dword [0x40df30], eax
jmp 0x407890
Function at 0x4079f0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x1c
mov ecx, dword [esp + 0x28]
push ebx
mov edx, dword [esp + 0x28]
push esi
push edi
push ebp
push 0
push eax
mov eax, dword [esp + 0x38]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov esi, eax
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0x111
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
lea eax, [esp + 0x10]
push 0
push 0
mov ebp, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push eax
call ebp
test eax, eax
je 0x407a8b
mov edi, dword [sym.imp.USER32.dll_IsWindow]
mov ebx, dword [sym.imp.USER32.dll_IsDialogMessageA]
push esi
call edi
test eax, eax
je 0x407a64
lea eax, [esp + 0x10]
push eax
push esi
call ebx
test eax, eax
jne 0x407a7a
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [esp + 0x10]
push 0
push 0
push 0
push eax
call ebp
test eax, eax
jne 0x407a51
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esp + 0x18]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x407ac0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x1c
mov ecx, dword [esp + 0x28]
push ebx
mov edx, dword [esp + 0x28]
push esi
push edi
push ebp
push 0
push eax
mov eax, dword [esp + 0x38]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov esi, eax
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0x111
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
lea eax, [esp + 0x10]
push 0
push 0
mov ebp, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push eax
call ebp
test eax, eax
je 0x407b5b
mov edi, dword [sym.imp.USER32.dll_IsWindow]
mov ebx, dword [sym.imp.USER32.dll_IsDialogMessageA]
push esi
call edi
test eax, eax
je 0x407b34
lea eax, [esp + 0x10]
push eax
push esi
call ebx
test eax, eax
jne 0x407b4a
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [esp + 0x10]
push 0
push 0
push 0
push eax
call ebp
test eax, eax
jne 0x407b21
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esp + 0x18]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x408815
Capabilities:
Encode data using xor

Disassembly:
push dword fs:[0]
mov dword fs:[0], esp
mov dword [0x408809], ebp
jmp 0x408829
stc
xor edx, edx
push edx
push Ordinal_2
push 0x40
push edx
push edx
push edx
push Ordinal_2
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor eax, eax
push Ordinal_2
push eax
push eax
push Ordinal_2
push eax
push Ordinal_2
push Ordinal_2
push eax
push 4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]

Function at 0x4096e0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x40e098], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x4096fe
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x40e094], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x40e090], bl
jne 0x409758
cmp dword [0x40f5e8], 0
je 0x409746
mov edi, dword [0x40f5e4]
sub edi, 4
cmp edi, dword [0x40f5e8]
jb 0x409746
mov eax, dword [edi]
test eax, eax
je 0x40973b
call eax
sub edi, 4
cmp edi, dword [0x40f5e8]
jae 0x409733
push 0x40d01c
push 0x40d018
call fcn.00409790
add esp, 8
push 0x40d024
push 0x40d020
call fcn.00409790
add esp, 8
test ebx, ebx
jne 0x40977f
mov dword [0x40e098], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret
Function at 0x40a4b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x40e360
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x40a4d7
add eax, 8
inc ecx
cmp eax, 0x40e3f0
jb 0x40a4c8
cmp dword [ecx*8 + 0x40e360], edx
lea ebx, [ecx*8]
jne 0x40a69b
cmp dword [0x40e02c], 1
je 0x40a657
cmp dword [0x40e02c], 0
jne 0x40a50e
cmp dword [0x40e030], 1
je 0x40a657
cmp edx, 0xfc
je 0x40a69b
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x40a54b
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x40a58f
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x40c7cc
push ebp
call fcn.0040b220
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40c7ac
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x40e364]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.0040b180
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x40f4e0], 0
je 0x40a66d
mov eax, dword [0x40f4e0]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x40a677
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x40e364]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x47d4a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4d000]
mov dword [edi + 0x65118], 0x51887df
push edi
jmp 0x47d4ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x47d4d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47d4c0
mov eax, 1
add ebx, ebx
jne 0x47d4e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x47d4f4
jne 0x47d513
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47d513
dec eax
add ebx, ebx
jne 0x47d500
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x47d4d8
add ebx, ebx
jne 0x47d50f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x47d565
xor ecx, ecx
sub eax, 3
jb 0x47d52b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x47d59a
sar eax, 1
mov ebp, eax
jmp 0x47d536
add ebx, ebx
jne 0x47d536
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47d504
inc ecx
add ebx, ebx
jne 0x47d544
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47d504
add ebx, ebx
jne 0x47d551
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x47d546
jne 0x47d562
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47d546
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x47d584
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x47d576
jmp 0x47d4c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x47d584
add edi, ecx
jmp 0x47d4c6
pop esi
mov edi, esi
mov ecx, 0x21ae
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x47d5a2
cmp byte [edi], 0x11
jne 0x47d5a2
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 0x47d5a7
lea edi, [esi + 0x78000]
mov eax, dword [edi]
or eax, eax
je 0x47d61f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8894c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x88a64]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x47d5d4
mov ecx, edi
jns 0x47d603
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 + 0x88a68]
or eax, eax
je 0x47d619
mov dword [ebx], eax
add ebx, 4
jmp 0x47d5f1
call dword [esi + 0x88a78]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x47d650
cmp al, 0xef
ja 0x47d643
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x47d625
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x47d632
mov ebp, dword [esi + 0x88a6c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x47d684
sub esp, 0xffffff80
jmp 0x41308c
Function at 0x401280
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5c7423
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push esi
call edi
mov dword [esp + 0x14], 0
lea eax, [esi + 0x18]
push eax
call edi
mov byte [esp + 0x14], 1
push 0
push 1
push 1
push 0
mov dword [esi + 0x30], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x34], eax
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x403dd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403de7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403e18
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x403e14
cmp esi, eax
jae 0x403e18
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x403e04
cmp esi, eax
jb 0x403e1e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x4046d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5d0b6a
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x38]
push eax
call fcn.004bb1b0
mov dword [esp + 0x2c], esi
mov ebp, dword [esp + 0x34]
mov ebx, dword [esp + 0x3c]
add ebp, 0x78
mov eax, ebp
mov dword [esp + 0x14], 1
call fcn.0040ddc0
mov edi, eax
mov dword [esp + 0x1c], edi
cmp ebp, esi
jne 0x404738
call fcn.0059471a
mov esi, dword [ebp]
mov dword [esp + 0x18], esi
nop
mov ebx, dword [esp + 0x3c]
mov eax, ebp
call fcn.0040de20
mov ebx, eax
test ebp, ebp
jne 0x404756
call fcn.0059471a
mov eax, dword [ebp]
test esi, esi
je 0x404761
cmp esi, eax
je 0x404766
call fcn.0059471a
cmp edi, ebx
je 0x4047bc
test esi, esi
jne 0x4047b8
call fcn.0059471a
cmp edi, dword [esi + 0x18]
jne 0x40477d
call fcn.0059471a
mov ecx, dword [esp + 0x38]
mov esi, dword [ecx + 0x14]
mov edx, dword [esi + 4]
lea eax, [edi + 0x28]
push eax
push edx
push esi
call fcn.0049ffb0
mov ecx, dword [esp + 0x38]
mov edi, eax
call fcn.0040fdc0
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
lea esi, [esp + 0x18]
mov dword [eax], edi
call fcn.0049cf90
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
jmp 0x404740
mov esi, dword [esi]
jmp 0x404773
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0xc
Function at 0x406480
Capabilities:
Check for peb beingdebugged flag
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x5d0a19
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x6d26f8]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x5c], ebx
mov ebp, dword [esp + 0x64]
mov dword [esp + 0x10], ebx
xor eax, eax
mov word [esp + 0x38], ax
mov eax, ebp
mov dword [esp + 0x30], edi
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebx
lea ecx, [eax + 2]
jmp 0x4064e0
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x4064e0
sub eax, ecx
sar eax, 1
push eax
mov eax, ebp
lea esi, [esp + 0x38]
call fcn.0040d4e0
mov dword [esp + 0x5c], 1
push ebx
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
xor ecx, ecx
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
add esi, 2
mov word [edi + 4], cx
mov eax, esi
mov edx, 2
mul edx
seto cl
mov dword [esp + 0x10], 1
neg ecx
or ecx, eax
push ecx
call fcn.005928f7
add esp, 4
push esi
mov ebx, eax
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebp, 7
test eax, eax
je 0x4065b3
xor eax, eax
mov word [esp + 0x18], ax
push esi
mov eax, ebx
lea esi, [esp + 0x18]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], 0
call fcn.0040d4e0
mov byte [esp + 0x5c], 2
push 0xffffffffffffffff
push 0
mov eax, esi
mov ecx, edi
call fcn.0040d430
mov byte [esp + 0x5c], 1
cmp dword [esp + 0x2c], 8
jb 0x4065a0
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0059392f
add esp, 4
xor edx, edx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], 0
mov word [esp + 0x18], dx
push ebx
call fcn.0059478b
add esp, 4
mov byte [esp + 0x5c], 0
cmp dword [esp + 0x4c], 8
jb 0x4065d5
mov eax, dword [esp + 0x38]
push eax
call fcn.0059392f
add esp, 4
xor ecx, ecx
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], 0
mov word [esp + 0x38], cx
mov eax, edi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0059393a
add esp, 0x50
ret
Function at 0x4069d0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x5d4039
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push edi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x10], ebx
lea ebp, [esi + 4]
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
mov dword [esp + 0x30], esi
mov word [ebp], ax
mov dword [esp + 0x40], ebx
mov eax, ecx
mov dword [esp + 0x10], 1
lea edi, [eax + 2]
jmp 0x406a30
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x406a30
sub eax, edi
sar eax, 1
je 0x406ae5
push ecx
lea edi, [esp + 0x18]
call fcn.00406480
add esp, 4
mov dword [esp + 0x40], 1
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.0040d430
mov byte [esp + 0x40], bl
mov edi, 8
cmp dword [esp + 0x2c], edi
jb 0x406a80
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0059392f
add esp, 4
xor edx, edx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], dx
cmp dword [esi + 0x18], edi
jb 0x406a9b
mov ebp, dword [ebp]
lea eax, [esp + 0x14]
push ebp
push eax
call fcn.00406610
add esp, 8
mov dword [esp + 0x40], 2
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.0040d430
mov byte [esp + 0x40], bl
cmp dword [esp + 0x2c], edi
jb 0x406ad2
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0059392f
add esp, 4
xor edx, edx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], dx
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x34
ret
Function at 0x408580
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x6d26f8]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebx
push 0x114
lea eax, [esp + 8]
push 0
push eax
xor bl, bl
call fcn.005985f0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40862f
cmp dword [esp + 8], 6
jb 0x408610
push 0
push 0
push 0
push 3
push 6
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jge 0x4085ec
cmp eax, 0x80010119
jne 0x40862f
push 0x692fe8
push esi
call fcn.00407670
add esp, 8
pop ebx
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0059393a
add esp, 0x120
ret
push esi
call fcn.00407170
add esp, 4
pop ebx
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0059393a
add esp, 0x120
ret
mov ecx, dword [esp + 0x120]
mov al, bl
pop ebx
xor ecx, esp
call fcn.0059393a
add esp, 0x120
ret
Function at 0x409c50
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x5d093d
mov eax, dword fs:[0]
push eax
mov eax, 0x2028
call fcn.00598dc0
mov eax, dword [0x6d26f8]
xor eax, esp
mov dword [esp + 0x2024], eax
push ebx
push ebp
push esi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0x2038]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x2040], ebx
mov dword [esp + 0x10], ebx
xor eax, eax
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
mov dword [esp + 0x14], edi
mov word [edi + 4], ax
mov dword [esp + 0x2040], ebx
mov ebp, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push ebx
push ecx
lea edx, [esp + 0x3c]
push edx
push ebx
mov dword [esp + 0x20], 1
call ebp
test eax, eax
je 0x409d95
push 0x1000
lea eax, [esp + 0x38]
push eax
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x409d95
lea eax, [esp + 0x34]
lea edx, [eax + 2]
jmp 0x409d00
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x409d00
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x38]
mov esi, edi
call fcn.0040d4e0
push ebx
push 0x28
lea edx, [esp + 0x3c]
push edx
push ebx
call ebp
test eax, eax
je 0x409d8e
push 0x1000
lea eax, [esp + 0x38]
push eax
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x409d8e
lea edx, [esp + 0x34]
push 0x104
push edx
call fcn.00594167
mov ecx, dword [edi + 0x14]
sub ecx, eax
add esp, 8
lea edx, [eax + 1]
lea eax, [esp + 0x18]
push eax
dec ecx
push edi
call fcn.0040b590
mov dword [esp + 0x2040], 1
push 0xffffffffffffffff
push ebx
mov ecx, edi
call fcn.0040d430
mov byte [esp + 0x2040], bl
lea esi, [esp + 0x18]
call fcn.00440d90
jmp 0x409d95
mov eax, edi
call fcn.0040b510
mov eax, edi
mov ecx, dword [esp + 0x2038]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2024]
xor ecx, esp
call fcn.0059393a
add esp, 0x2034
ret

Function at 0x409dc0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x5d08e2
mov eax, dword fs:[0]
push eax
mov eax, 0x200c
call fcn.00598dc0
mov eax, dword [0x6d26f8]
xor eax, esp
mov dword [esp + 0x2008], eax
push esi
push edi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0x2018]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x2020], edi
mov esi, edx
mov dword [esp + 0xc], edi
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov dword [esp + 0x10], esi
mov word [esi + 4], ax
mov dword [esp + 0x2020], edi
push edi
push ecx
lea edx, [esp + 0x1c]
push edx
push edi
mov dword [esp + 0x1c], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x409e79
push 0x1000
lea eax, [esp + 0x18]
push eax
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x409e79
lea eax, [esp + 0x14]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x409e60
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x18]
call fcn.0040d4e0
mov eax, esi
mov ecx, dword [esp + 0x2018]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x2008]
xor ecx, esp
call fcn.0059393a
add esp, 0x2018
ret