joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a3cb0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9e000]
push edi
jmp 0x4a3cca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4a3cd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a3cc0
mov eax, 1
add ebx, ebx
jne 0x4a3ce3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4a3cd8
jne 0x4a3cf4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4a3cd8
xor ecx, ecx
sub eax, 3
jb 0x4a3d08
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4a3d7a
mov ebp, eax
add ebx, ebx
jne 0x4a3d13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4a3d20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4a3d44
inc ecx
add ebx, ebx
jne 0x4a3d30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4a3d25
jne 0x4a3d41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4a3d25
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4a3d64
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4a3d55
jmp 0x4a3cc6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4a3d64
add edi, ecx
jmp 0x4a3cc6
pop esi
mov edi, esi
mov ecx, 0x6600
jmp 0x4a3db5
mov al, byte [edi]
inc edi
cmp al, 0x80
jb 0x4a3d95
cmp al, 0x8f
ja 0x4a3d95
cmp byte [edi - 2], 0xf
je 0x4a3d9b
sub al, 0xe8
cmp al, 1
ja 0x4a3dbf
cmp ecx, 4
jb 0x4a3dc4
mov eax, dword [edi]
sub al, 1
jne 0x4a3dbf
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 0x4a3dc4
mov al, byte [edi]
inc edi
jmp 0x4a3d95
sub ecx, 1
jae 0x4a3d84
lea edi, [esi + 0xa1000]
mov eax, dword [edi]
or eax, eax
je 0x4a3e15
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf937c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf9434]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4a3dca
mov ecx, edi
jns 0x4a3df9
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 + 0xf943c]
or eax, eax
je 0x4a3e0f
mov dword [ebx], eax
add ebx, 4
jmp 0x4a3de7
call dword [esi + 0xf9438]
mov ebp, dword [esi + 0xf9440]
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 0x4a3e49
sub esp, 0xffffff80
jmp 0x4034a5
Function at 0x40155e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, eax
test esi, esi
je 0x401571
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [ebx + 8]
test eax, eax
je 0x40157e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebx + 8], esi
lea esi, [ebx + 0xc]
mov eax, esi
call fcn.00401821
push 0x5c
call fcn.004018b2
xor esi, esi
lea eax, [ebp - 8]
push eax
push esi
push ebx
push 0x401681
push esi
push esi
mov dword [0x418d30], ebx
mov dword [0x418e68], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x418e78], 2
mov dword [0x418d34], eax
je 0x4015c6
call fcn.00408f48
push 0xffffffffffffffff
push dword [0x418d34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x418e68]
mov dword [0x418ea4], esi
cmp eax, esi
je 0x401615
cmp eax, 1
je 0x401609
cmp eax, 2
je 0x401605
cmp eax, 3
je 0x401601
cmp eax, 0x67
jle 0x4015fc
cmp eax, 0x6a
jle 0x401679
push eax
push 0x14
jmp 0x40164c
push 0x12
jmp 0x40160b
push 0x13
jmp 0x40160b
push 0x11
push esi
call fcn.00408e4b
pop ecx
pop ecx
jmp 0x401679
cmp dword [0x418eac], esi
jne 0x401679
lea eax, [ebp - 4]
push eax
push dword [0x418d34]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ecx, dword [ebp - 4]
test eax, eax
je 0x40163c
cmp ecx, esi
jne 0x40163c
xor eax, eax
jmp 0x40167e
mov eax, 0x80070000
mov edx, ecx
and edx, eax
cmp edx, eax
je 0x40164f
push ecx
push 0x21
push esi
jmp 0x401671
and ecx, 0xffff
cmp ecx, 0xe
jne 0x401663
cmp dword [0x418e7c], 0xffffffff
je 0x401679
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 4]
push 0x22
push 1
call fcn.00408e4b
add esp, 0xc
mov eax, 0x80004005
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push esi
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401be8
xor eax, eax
jmp 0x401c3b
test al, 0x10
je 0x401bf9
push 0x10
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x401c3b
mov eax, dword [0x418e80]
test eax, eax
jne 0x401c09
call fcn.00401b9d
jmp 0x401c3b
cmp eax, 2
jne 0x401c38
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x401c02
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jl 0x401c02
xor eax, eax
inc eax
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push esi
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401c81
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x401c6b
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401c81
test al, 0x10
jne 0x401c81
push esi
jmp 0x401c61
xor eax, eax
inc eax
pop esi
ret
Function at 0x4024ff
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov dword [ebp - 8], eax
mov edi, ebx
lea eax, [ebp - 0x1c]
call fcn.00403b39
xor ecx, ecx
lea eax, [ebp - 0x1c]
call fcn.00403b8c
mov edi, eax
movzx eax, word [ebx + esi*2 - 2]
cmp ax, 0x5c
je 0x40253e
cmp ax, 0x2f
jne 0x40256e
xor eax, eax
mov word [edi + esi*2 - 2], ax
dec esi
mov dword [ebp - 8], esi
jmp 0x40256e
movzx eax, word [edi + esi*2]
cmp ax, 0x2f
je 0x402560
cmp ax, 0x5c
je 0x402560
dec esi
test esi, esi
jg 0x40254b
test esi, esi
je 0x402614
xor eax, eax
mov word [edi + esi*2], ax
push edi
call fcn.00401c40
pop ecx
test eax, eax
je 0x40255c
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x4025a5
lea eax, [ebp - 0x10]
push eax
mov eax, edi
call fcn.00401bc9
pop ecx
test eax, eax
je 0x4025a5
xor esi, esi
jmp 0x402637
push edi
call fcn.00401c40
pop ecx
test eax, eax
jne 0x402601
push edi
push 0xc
push 1
call fcn.00408e4b
add esp, 0xc
jmp 0x40259e
mov eax, dword [ebp - 8]
sub eax, esi
inc eax
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + esi*2]
push eax
lea ebx, [edi + esi*2]
push ebx
call sub.msvcrt.dll_memcpy
xor ecx, ecx
add esp, 0xc
cmp word [ebx], cx
je 0x4025f3
jmp 0x4025f2
movzx eax, word [edi + esi*2]
cmp ax, 0x5c
je 0x4025f9
cmp ax, 0x2f
je 0x4025f9
inc esi
cmp word [edi + esi*2], cx
jne 0x4025e2
xor eax, eax
mov word [edi + esi*2], ax
jmp 0x4025a5
cmp esi, dword [ebp - 8]
jl 0x4025bf
push dword [ebp - 0x1c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x40265b
cmp dword [ebp - 8], 2
jne 0x402644
mov ax, word [ebx]
or ax, 0x20
cmp ax, 0x61
jb 0x402644
cmp ax, 0x7a
ja 0x402644
cmp word [ebx + 2], 0x3a
jne 0x402644
xor esi, esi
inc esi
push dword [ebp - 0x1c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x40265b
push ebx
push 0xc
push 1
call fcn.00408e4b
push dword [ebp - 0x1c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402660
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [esp + 0x14]
call fcn.00403b39
mov eax, 0x4145f0
lea esi, [esp + 0x14]
call fcn.00403bc8
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x40273b
mov edi, dword [ebp + 8]
lea eax, [esp + 0x14]
call fcn.00401821
push 0x5c
lea esi, [esp + 0x18]
call fcn.004018b2
lea eax, [esp + 0x4c]
call fcn.00403bc8
test byte [esp + 0x20], 0x10
mov edi, dword [esp + 0x14]
je 0x402706
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x4145f8
lea eax, [esp + 0x50]
push eax
call esi
test eax, eax
je 0x40271a
push 0x4145fc
lea eax, [esp + 0x50]
push eax
call esi
test eax, eax
je 0x40271a
push edi
call fcn.00402660
pop ecx
jmp 0x402716
push 0
push edi
call ebx
test eax, eax
je 0x40275e
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40275e
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4026ac
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push dword [ebp + 8]
call ebx
test eax, eax
je 0x40275e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40275e
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x402766
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
cmp dword [0x418eb4], 0
je 0x40277b
xor eax, eax
inc eax
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402777
test al, 0x10
jne 0x4027a3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4027a0
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
ret
xor eax, eax
ret
push esi
call fcn.00402660
pop ecx
ret
Function at 0x402e22
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40
cmp dword [ebp + 8], 0
jne 0x402e35
xor eax, eax
jmp 0x402e8f
test byte [0x418e7c], 2
mov dword [esp], 0x40
jne 0x402e8c
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x402e8c
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, eax
ja 0x402e8c
jb 0x402e68
mov eax, dword [esp + 0x10]
cmp eax, dword [ebp + 8]
jae 0x402e8c
push 0x2b
call fcn.00403592
push eax
call fcn.00408dd6
pop ecx
pop ecx
cmp eax, 1
je 0x402e85
or dword [0x418e7c], 0xffffffff
jmp 0x402e31
or dword [0x418e7c], 2
xor eax, eax
inc eax
mov esp, ebp
pop ebp
ret

Function at 0x4031b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push edi
push 1
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call esi
mov edi, eax
mov eax, ebx
call fcn.00401a43
lea ecx, [edi + 2]
mov eax, ebx
mov dword [ebp - 4], ecx
call fcn.00403b8c
mov ecx, dword [ebp - 4]
inc edi
push edi
mov eax, ebx
call fcn.00403b8c
push eax
push dword [ebp + 8]
call esi
mov edx, ebx
call fcn.00403ba8
pop edi
mov eax, ebx
pop esi
leave
ret

Function at 0x4031fd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov ebx, eax
movzx eax, word [0x418e6c]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x403241
push 0x409
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
mov edi, eax
test edi, edi
je 0x403267
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x403252
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403267
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x4032e1
cmp dword [0x418f34], 0
jne 0x4032df
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.SetProcessPreferredUILanguages
mov ebx, str.kernel32
push ebx
mov dword [0x418f34], 1
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0
mov dword [ebp - 4], eax
movzx eax, word [0x418e6c]
push 0x409
push 0
push eax
lea eax, [ebp - 0x44]
push str._04X_c_04X_c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
cmp dword [ebp - 4], 0
jne 0x4032d4
push str.SetThreadPreferredUILanguages
push ebx
call esi
push eax
call edi
mov dword [ebp - 4], eax
test eax, eax
je 0x4032df
push 0
lea eax, [ebp - 0x44]
push eax
push 4
call dword [ebp - 4]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403592
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [0x418578], ebx
je 0x4035c5
mov eax, 0x418578
mov ecx, dword [ebp + 8]
cmp dword [eax], ecx
je 0x4035c5
inc esi
mov eax, esi
shl eax, 4
lea eax, [eax + 0x418578]
cmp dword [eax], ebx
jne 0x4035ae
shl esi, 4
cmp dword [esi + 0x418578], ebx
jne 0x4035da
mov eax, 0x414680
jmp 0x40374b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x64]
push str.SfxString_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x64]
push eax
call ebx
mov dword [ebp - 4], eax
call edi
test eax, eax
jne 0x40368a
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
add eax, 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, dword [ebp - 4]
inc ecx
push ecx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x64]
push eax
call ebx
cmp eax, dword [ebp - 4]
ja 0x403681
call edi
test eax, eax
jne 0x403681
mov eax, dword [esi + 0x418584]
test eax, eax
je 0x403676
mov edi, dword [ebp - 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x403673
push dword [esi + 0x418584]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov dword [esi + 0x418584], edi
jmp 0x403689
push edi
jmp 0x403684
mov eax, dword [ebp - 8]
mov dword [esi + 0x418584], eax
jmp 0x40368a
push dword [ebp - 8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 0x418584]
test eax, eax
jne 0x40374a
mov ebx, dword [esi + 0x41857c]
lea edi, [esi + 0x418580]
cmp dword [edi], eax
je 0x4036bf
call fcn.00403577
cmp eax, 0x419
jne 0x4036bf
mov ebx, dword [edi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp dword [0x418864], 0xffffffff
pop ecx
mov dword [esi + 0x418584], eax
jne 0x40372a
and dword [0x418864], 0
push 0x1f
lea eax, [ebp - 0xa4]
push eax
movzx eax, word [0x418e6c]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x40372a
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.msvcrt.dll__wtol]
pop ecx
mov dword [0x418864], eax
lea eax, [edi + 1]
push eax
push dword [esi + 0x418584]
push edi
push ebx
push 0
push dword [0x418864]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x418584]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403851
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4038ae
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
pop ebx
leave
ret

Function at 0x404068
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
push ebx
push esi
push edi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.00409338
call fcn.00403577
push 3
call fcn.00403592
pop ecx
push 0x28
mov dword [0x418d5c], eax
call fcn.00403592
pop ecx
push 2
mov dword [0x418d58], eax
call fcn.00403592
pop ecx
push 5
mov dword [0x418d54], eax
call fcn.00403592
pop ecx
push 0x15
mov dword [0x418d50], eax
call fcn.00403592
pop ecx
push 0x16
mov dword [0x418d4c], eax
call fcn.00403592
pop ecx
push 0x17
mov dword [0x418d48], eax
call fcn.00403592
xor ebx, ebx
pop ecx
mov dword [0x418d44], eax
mov dword [0x418d3c], ebx
mov dword [0x418d40], ebx
xor edi, edi
push ebx
push edi
lea eax, [ebp - 0x270]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x404153
push edi
lea eax, [ebp - 0x60]
push str.SfxFolder_02d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 1
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00401a76
add esp, 0xc
xor esi, esi
cmp dword [esi + 0x418550], edi
jne 0x40414b
push ebx
lea eax, [ebp - 0x270]
push eax
push dword [esi + 0x418554]
call fcn.00401a76
add esp, 0xc
add esi, 8
cmp esi, 0x28
jb 0x40412d
inc edi
cmp edi, 0x40
jl 0x4040ef
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40415e
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebx
push ebp
push edi
mov eax, esi
call fcn.00401a43
push 2
pop ecx
mov eax, esi
call fcn.00403b8c
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
push 1
call edi
mov ecx, dword [esi]
xor edx, edx
xor ebp, ebp
mov word [ecx], dx
mov dword [esi + 4], ebp
cmp eax, ebp
jbe 0x4041a4
lea ebx, [eax + 1]
mov ecx, ebx
mov eax, esi
call fcn.00403b8c
push eax
push ebx
call edi
mov edx, esi
call fcn.00403ba8
mov eax, dword [esi + 4]
lea ebx, [eax + 0xf]
lea edi, [eax + eax]
mov ecx, ebx
mov eax, esi
call fcn.00403b8c
push ebp
push dword [esp + 0x14]
add eax, edi
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov edx, esi
call fcn.00403ba8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4041e4
inc ebp
cmp ebp, 0xfff
jl 0x4041ad
pop edi
pop ebp
mov eax, esi
pop ebx
ret
Function at 0x404225
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x418834], esi
jle 0x404278
push edi
mov eax, dword [0x418838]
mov edi, dword [eax + esi*4]
add edi, 0xc
lea eax, [ebp - 0xc]
call fcn.004017ea
lea eax, [ebp - 0xc]
call fcn.0040420e
mov eax, dword [0x418838]
push dword [ebp - 0xc]
mov eax, dword [eax + esi*4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
inc esi
cmp esi, dword [0x418834]
pop ecx
jl 0x404237
pop edi
pop esi
leave
ret

Function at 0x404ced
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
call fcn.00401a43
lea eax, [ebp - 0x18]
call fcn.00401a43
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x54]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 0x10]
xor ebx, ebx
inc ebx
add esp, 0xc
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], 0x740
mov dword [ebp - 0x38], ebx
test byte [ebp + 0xc], bl
je 0x404d3e
and dword [ebp - 0x38], 0
mov dword [ebp - 0x50], 0x8740
test byte [ebp + 0xc], 2
je 0x404d4b
mov dword [ebp - 0x48], 0x415660
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xc]
call fcn.0040448b
mov edi, eax
lea eax, [ebp - 0x18]
call fcn.00401821
cmp dword [ebp - 8], 0
jne 0x404d7f
push dword [ebp - 0x18]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x404dbf
test dword [ebp + 0xc], 0x10000
jne 0x404dad
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push esi
jmp 0x404d71
xor ebx, ebx
jmp 0x404db6
Function at 0x4069ef
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x38
cmp word [eax + 2], 0x3a
push ebx
push esi
push edi
jne 0x406b70
movzx ecx, word [eax + 4]
cmp cx, 0x5c
je 0x406a1a
cmp cx, 0x2f
jne 0x406b70
mov ax, word [eax]
push 0x3a
mov word [ebp - 0x14], ax
pop eax
mov word [ebp - 0x12], ax
push 0x5c
pop eax
mov word [ebp - 0x10], ax
xor eax, eax
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x406a4c
push dword [ebp + 8]
jmp 0x406b71
push 0x41593c
lea esi, [ebp - 0x2c]
call fcn.0040415e
pop ecx
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x406b4e
lea eax, [ebp - 0x20]
call fcn.00401a43
mov edi, str.:Repeat_r_n
lea eax, [ebp - 0x20]
call fcn.00401821
mov eax, str.del__
lea esi, [ebp - 0x20]
call fcn.00403bc8
lea edi, [ebp + 8]
call fcn.00401946
mov ebx, 0x415978
mov eax, ebx
call fcn.00403bc8
mov eax, str.if_exist__
call fcn.00403bc8
call fcn.00401946
mov eax, str.__goto_Repeat_r_n
call fcn.00403bc8
mov eax, str.del__
call fcn.00403bc8
lea edi, [ebp - 0x2c]
call fcn.00401946
mov eax, ebx
call fcn.00403bc8
push 1
mov eax, esi
lea ecx, [ebp - 0x38]
call fcn.00401b40
mov ebx, dword [ebp - 0x1c]
mov eax, dword [eax]
pop ecx
xor edi, edi
push edi
lea ecx, [ebp - 0xc]
push ecx
push ebx
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x38]
mov esi, eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
je 0x406b53
cmp dword [ebp - 0xc], ebx
jne 0x406b53
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push edi
push edi
push dword [ebp - 0x2c]
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x2c]
jmp 0x406b65
mov esi, dword [ebp - 0x2c]
call fcn.0040276e
push dword [ebp - 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x406a44
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406eef
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0xc]
push 0x4100d9
push eax
push eax
call dword [sym.imp.msvcrt.dll__beginthreadex]
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.00406eb8
add esp, 0x1c
leave
ret