joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404ee0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov edx, 0x6d
push edi
push 0xb96f
push 0x474f576c
lea ecx, [edx - 0x6c]
call fcn.00402800
mov ebp, dword [esp + 0x34]
add esp, 8
push ebp
call eax
xor ecx, ecx
mov edx, 2
lea esi, [eax + 0x32]
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040b1b0
add esp, 4
lea ecx, [esi + esi]
mov ebx, eax
mov edx, 0x3c
xor al, al
mov edi, ebx
rep stosb byte es:[edi], al
push 0xb88a
push 0xccf576c
lea ecx, [edx - 0x3b]
call fcn.00402800
add esp, 8
push ebp
push ebx
call eax
mov byte [esp + 0x11], 0x74
mov byte [esp + 0x12], 0x3c
mov byte [esp + 0x13], 0x66
mov byte [esp + 0x14], 0x3c
mov byte [esp + 0x15], 0x46
mov byte [esp + 0x16], 0x3c
mov byte [esp + 0x17], 0x1d
mov byte [esp + 0x18], 0x3c
mov byte [esp + 0x19], 0x30
mov byte [esp + 0x1a], 0x3c
mov byte [esp + 0x1b], 0x7c
mov byte [esp + 0x1c], 0x3c
mov byte [esp + 0x1d], 0x49
mov byte [esp + 0x1e], 0x3c
mov byte [esp + 0x1f], 0x5c
mov byte [esp + 0x20], 0x3c
mov byte [esp + 0x21], 0x69
mov byte [esp + 0x22], 0x3c
mov byte [esp + 0x23], 0x13
mov byte [esp + 0x24], 0x3c
mov byte [esp + 0x25], 0x3c
mov byte [esp + 0x26], 0x3c
mov al, byte [esp + 0x11]
mov byte [esp + 0x27], 0
cmp byte [esp + 0x27], 0
jne 0x404ff9
xor esi, esi
lea edi, [esi + 0x7f]
mov al, byte [esp + esi + 0x11]
mov ecx, 0x3c
movzx eax, al
sub ecx, eax
lea eax, [ecx + ecx*4]
shl eax, 3
cdq
idiv edi
lea eax, [edx + 0x7f]
cdq
idiv edi
mov byte [esp + esi + 0x11], dl
inc esi
cmp esi, 0x16
jb 0x404fd2
mov edx, 0x63
push 0xb88e
push 0x4a4f576c
lea ecx, [edx - 0x62]
call fcn.00402800
add esp, 8
lea ecx, [esp + 0x11]
push ecx
push ebx
call eax
mov edx, 0x22
push 0x161b
push 0x3631574d
lea ecx, [edx - 0x21]
call fcn.00402800
add esp, 8
push ebx
push ebp
call eax
test eax, eax
jne 0x405059
push 0x161b
push 0x3631574d
lea edx, [eax + 0x22]
lea ecx, [eax + 1]
call fcn.00402800
add esp, 8
push ebx
push ebp
call eax
push ebx
call fcn.0040b1d0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
Function at 0x405f40
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ebx
push ebp
push esi
push edi
mov ebp, ecx
nop dword [eax]
mov eax, dword [0x455ee4]
test eax, eax
jne 0x405f8d
push 0xc8
call fcn.0040b1b0
add esp, 4
test eax, eax
je 0x405f86
mov word [eax], 0x101
mov dword [eax + 4], 0x1e
mov dword [eax + 8], 5
mov dword [eax + 0x10], 3
jmp 0x405f88
xor eax, eax
mov dword [0x455ee4], eax
test byte [eax + 0x10], 1
je 0x405f9f
cmp dword [ebp + 0x98], 1
sete cl
jmp 0x405fa1
mov cl, 1
mov eax, dword [eax + 0x10]
shr eax, 1
test al, 1
je 0x405fb6
cmp dword [ebp + 0x9c], 2
sete al
jmp 0x405fb8
mov al, 1
test cl, cl
je 0x405fc0
test al, al
jne 0x405fe3
mov edx, 0x61
push 0x5264
push 0x8e577053
lea ecx, [edx - 0x60]
call fcn.00402800
add esp, 8
push 0xa
call eax
jmp 0x405f50
xor eax, eax
mov ecx, dword [eax + 0x413638]
cmp ecx, 0xffffffff
je 0x405ff8
test ecx, ecx
jne 0x40608a
add eax, 0x110
cmp eax, 0x42680
jl 0x405fe5
mov esi, dword [0x455c80]
mov eax, dword [0x455c84]
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
lea ebx, [esi + eax*4]
cmp esi, ebx
je 0x40604b
nop dword [eax]
push 0
push dword [esi]
call edi
mov edx, 0x61
push 0x5264
push 0x8e577053
lea ecx, [edx - 0x60]
call fcn.00402800
add esp, 8
push 0xa
call eax
add esi, 4
cmp esi, ebx
jne 0x406020
push 0
push dword [ebp + 0x20]
call edi
push 0
push dword [ebp + 0x24]
call edi
push 0
push dword [ebp + 0x28]
call edi
mov esi, dword [ebp + 0x1c]
mov edx, 0x13
push 0x85cc
push 0x3d6a6543
lea ecx, [edx - 0x12]
call fcn.00402800
add esp, 8
push esi
call eax
pop edi
mov al, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, 0x61
push 0x5264
push 0x8e577053
lea ecx, [edx - 0x60]
call fcn.00402800
add esp, 8
push 0x64
call eax
jmp 0x405fe3
Function at 0x40ab90
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [0x455ee0]
push ebp
mov ebp, ecx
test eax, eax
jne 0x40abfe
push edi
push 0x427
call fcn.0040b1b0
mov edi, eax
add esp, 4
mov dword [0x455ee0], edi
test edi, edi
jne 0x40abbb
pop edi
pop ebp
pop ecx
ret
push ebx
push esi
mov ebx, 0x40e0d0
mov dword [esp + 0x10], 0x1a
xor esi, esi
sub ebx, edi
nop
mov eax, esi
lea ecx, [edi + esi]
xor edx, edx
inc esi
div dword [esp + 0x10]
mov al, byte [edx + 0x40e0b0]
xor al, byte [ebx + ecx]
mov byte [ecx], al
cmp esi, 0x427
jb 0x40abd0
pop esi
pop ebx
mov eax, edi
mov dword [ebp + 0xc4], 0x427
pop edi
pop ebp
pop ecx
ret
Function at 0x401024
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x422740]
sub esp, 0x904
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x40105d
cmp word [0x422742], bx
je 0x40104b
call eax
mov dword [0x422740], eax
push eax
call fcn.004025fa
push eax
call fcn.00408d69
pop ecx
jmp 0x4010f0
push 0x27
call fcn.004025fa
mov esi, dword [ebp + 8]
push dword [esi + 0xc]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push dword [esi]
push eax
lea eax, [ebp - 0x904]
push eax
call edi
add esp, 0x14
cmp dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
jbe 0x4010c1
lea ebx, [esi + 0x14]
push dword [ebx]
lea eax, [ebp - 0x104]
push str._t0x_p_n
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x904]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add ebx, 4
cmp eax, dword [esi + 0x10]
jb 0x40108a
xor ebx, ebx
cmp byte [str.___Install__UTF_8_], 0x3b
je 0x4010e4
push ebx
push 3
call fcn.004025fa
pop ecx
push eax
lea eax, [ebp - 0x904]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4010f1
lea eax, [ebp - 0x904]
push eax
call fcn.00408d69
pop ecx
call fcn.004045a0
push 0xa
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40145e
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 + 0xc]
call fcn.004145d5
push dword [ebp + 0xc]
lea edi, [esi + 0x10]
mov ecx, edi
call fcn.004143d1
push 0x5c
mov ecx, edi
call fcn.004011ce
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x401361
push edi
push edi
mov dword [0x422744], esi
mov dword [0x42274c], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [0x422748], eax
je 0x4014d2
cmp dword [0x4227b0], 2
je 0x4014c4
call fcn.00408cbb
mov eax, dword [0x422748]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x422748]
mov ecx, dword [0x42274c]
cmp ecx, edi
mov dword [0x422850], edi
je 0x401518
cmp ecx, 1
je 0x40150c
cmp ecx, 2
je 0x401508
cmp ecx, 3
je 0x401504
cmp ecx, 0x67
jle 0x4014ff
cmp ecx, 0x6b
jle 0x401581
push ecx
push 0x14
jmp 0x401552
push 0x12
jmp 0x40150e
push 0x13
jmp 0x40150e
push 0x11
push edi
call fcn.00408e4d
pop ecx
pop ecx
jmp 0x401581
cmp dword [0x422858], edi
mov dword [ebp + 8], edi
jne 0x401581
cmp eax, edi
je 0x40153f
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x40153f
cmp dword [ebp + 8], edi
jne 0x40153f
xor eax, eax
jmp 0x401586
mov ecx, dword [ebp + 8]
mov eax, 0x80070000
and ecx, eax
cmp ecx, eax
je 0x401555
push dword [ebp + 8]
push 0x21
push edi
jmp 0x401579
mov eax, dword [ebp + 8]
and eax, 0xffff
cmp eax, 0xe
jne 0x40156b
cmp dword [0x4227b4], 0xffffffff
je 0x401581
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.00408e4d
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 8
Function at 0x401dc0
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 0x401e01
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x401deb
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 0x401e01
test al, 0x10
jne 0x401e01
push esi
jmp 0x401de1
xor eax, eax
inc eax
pop esi
ret

Function at 0x40223f
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]
movzx ecx, word [0x422764]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceExA]
push ecx
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
push eax
call esi
mov ebx, eax
test ebx, ebx
mov edi, 0x409
jne 0x402287
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call esi
mov ebx, eax
test ebx, ebx
je 0x4022b1
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x40229a
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4022b1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x40231b
cmp dword [0x422774], 0
jne 0x402319
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetProcessPreferredUILanguages
push dword [0x422778]
mov dword [0x422774], 1
call esi
push 0
mov ebx, eax
movzx eax, word [0x422764]
push edi
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
test ebx, ebx
jne 0x40230f
push str.SetThreadPreferredUILanguages
push dword [0x422778]
call esi
mov ebx, eax
test ebx, ebx
je 0x402319
push 0
lea eax, [ebp - 0x44]
push eax
push 4
call ebx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4025fa
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 [0x4220b0], ebx
je 0x40262d
mov eax, 0x4220b0
mov ecx, dword [ebp + 8]
cmp dword [eax], ecx
je 0x40262d
inc esi
mov eax, esi
shl eax, 4
lea eax, [eax + 0x4220b0]
cmp dword [eax], ebx
jne 0x402616
shl esi, 4
cmp dword [esi + 0x4220b0], ebx
jne 0x402642
mov eax, 0x41d650
jmp 0x4027b4
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 0x4026f2
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 0x4026e9
call edi
test eax, eax
jne 0x4026e9
mov eax, dword [esi + 0x4220bc]
test eax, eax
je 0x4026de
mov edi, dword [ebp - 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4026db
push dword [esi + 0x4220bc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov dword [esi + 0x4220bc], edi
jmp 0x4026f1
push edi
jmp 0x4026ec
mov eax, dword [ebp - 8]
mov dword [esi + 0x4220bc], eax
jmp 0x4026f2
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 + 0x4220bc]
test eax, eax
jne 0x4027b3
mov ebx, dword [esi + 0x4220b4]
lea edi, [esi + 0x4220b8]
cmp dword [edi], eax
je 0x402728
call fcn.004025a4
cmp eax, dword [0x41e4bc]
jne 0x402728
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 [0x422084], 0xffffffff
pop ecx
mov dword [esi + 0x4220bc], eax
jne 0x402793
and dword [0x422084], 0
push 0x1f
lea eax, [ebp - 0xa4]
push eax
movzx eax, word [0x422764]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x402793
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x422084], eax
lea eax, [edi + 1]
push eax
push dword [esi + 0x4220bc]
push edi
push ebx
push 0
push dword [0x422084]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x4220bc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4028af
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 0x40290c
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 0x402a6a
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.004143a2
push 0x41d764
lea ecx, [ebp - 0xc]
call fcn.00414429
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402b46
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.004143d1
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.004011ce
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0xc]
call fcn.00414429
test byte [ebp - 0x25c], 0x10
je 0x402b11
push 0x41d760
lea eax, [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x402b29
push 0x41d758
lea eax, [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x402b29
push dword [ebp - 0xc]
call fcn.00402a6a
pop ecx
jmp 0x402b25
push 0
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x402b77
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x402b77
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402ab5
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [0x4227e0]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x402b77
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x402b77
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x402b81
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402b87
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
cmp dword [0x422864], 0
je 0x402b9e
xor eax, eax
inc eax
leave
ret
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x402bba
xor eax, eax
inc eax
jmp 0x402beb
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x250], 0x10
jne 0x402be4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x402be0
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x402beb
xor eax, eax
jmp 0x402beb
push esi
call fcn.00402a6a
pop ecx
pop esi
leave
ret

Function at 0x403450
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp - 0x18]
mov edi, eax
mov dword [ebp - 4], eax
call fcn.004143a2
push 0
lea ecx, [ebp - 0x18]
call fcn.00403045
mov esi, eax
movzx eax, word [ebx + edi*2 - 2]
cmp ax, 0x5c
je 0x40348e
cmp ax, 0x2f
jne 0x4034bc
and word [esi + edi*2 - 2], 0
dec edi
mov dword [ebp - 4], edi
jmp 0x4034bc
movzx eax, word [esi + edi*2]
cmp ax, 0x2f
je 0x4034af
cmp ax, 0x5c
je 0x4034af
dec edi
test edi, edi
jg 0x40349a
test edi, edi
je 0x403560
and word [esi + edi*2], 0
push esi
call fcn.00401dc0
test eax, eax
pop ecx
je 0x4034ab
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x4034f3
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.0040314d
test eax, eax
pop ecx
pop ecx
je 0x4034f3
xor esi, esi
jmp 0x403583
push esi
call fcn.00401dc0
test eax, eax
pop ecx
jne 0x40354d
push esi
push 0xc
push 1
call fcn.00408e4d
add esp, 0xc
jmp 0x4034ec
mov eax, dword [ebp - 4]
sub eax, edi
inc eax
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + edi*2]
push eax
lea ebx, [esi + edi*2]
push ebx
call sub.MSVCRT.dll_memcpy
xor ecx, ecx
add esp, 0xc
cmp word [ebx], cx
je 0x403541
jmp 0x403540
movzx eax, word [esi + edi*2]
cmp ax, 0x5c
je 0x403547
cmp ax, 0x2f
je 0x403547
inc edi
cmp word [esi + edi*2], cx
jne 0x403530
mov word [esi + edi*2], cx
jmp 0x4034f3
cmp edi, dword [ebp - 4]
jl 0x40350d
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x4035a7
cmp dword [ebp - 4], 2
jne 0x403590
mov ax, word [ebx]
or ax, 0x20
cmp ax, 0x61
jb 0x403590
cmp ax, 0x7a
ja 0x403590
cmp word [ebx + 2], 0x3a
jne 0x403590
xor esi, esi
inc esi
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x4035a7
push ebx
push 0xc
push 1
call fcn.00408e4d
push dword [ebp - 0x18]
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 0x4038b8
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.00413fb5
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
jle 0x4038f6
lea eax, [esi + 1]
push eax
push eax
mov ecx, edi
call fcn.00403045
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi]
mov dword [edi + 4], esi
and word [eax + esi*2], 0
mov eax, edi
pop edi
pop esi
ret

Function at 0x403ac2
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call edi
mov esi, dword [ebp + 8]
mov ecx, esi
mov ebx, eax
call fcn.00413fb5
lea eax, [ebx + 2]
push eax
mov ecx, esi
mov dword [ebp + 8], eax
call fcn.00403045
inc ebx
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.00403045
push eax
push dword [ebp + 0xc]
call edi
mov edi, dword [esi]
push edi
call fcn.00401d2d
pop ecx
mov dword [esi + 4], eax
and word [edi + eax*2], 0
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x403f3e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push ebx
push esi
push edi
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x422778], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.0041b4f0
call fcn.004025a4
push 3
call fcn.004025fa
push 0x28
mov dword [0x4227a0], eax
call fcn.004025fa
push 2
mov dword [0x42279c], eax
call fcn.004025fa
push 5
mov dword [0x422798], eax
call fcn.004025fa
push 0x15
mov dword [0x422794], eax
call fcn.004025fa
push 0x16
mov dword [0x422790], eax
call fcn.004025fa
push 0x17
mov dword [0x42278c], eax
call fcn.004025fa
xor ebx, ebx
add esp, 0x1c
mov dword [0x422788], eax
mov dword [0x422780], ebx
mov dword [0x422784], ebx
xor edi, edi
push ebx
push edi
lea eax, [ebp - 0x268]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x404032
push edi
lea eax, [ebp - 0x5c]
push 0x41e578
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 1
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00403b76
add esp, 0x18
xor esi, esi
cmp dword [esi + 0x4223b4], edi
jne 0x40402a
push ebx
lea eax, [ebp - 0x268]
push eax
push dword [esi + 0x4223b8]
call fcn.00403b76
add esp, 0xc
add esi, 8
cmp esi, 0x28
jb 0x40400c
inc edi
cmp edi, 0x40
jl 0x403fd1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404a7f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push edi
lea ecx, [ebp - 0xc]
call fcn.00413fb5
lea ecx, [ebp - 0x18]
call fcn.00413fb5
push 0x3c
xor edi, edi
lea eax, [ebp - 0x54]
push edi
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 0x10]
xor ebx, ebx
inc ebx
add esp, 0xc
test byte [ebp + 0xc], bl
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], 0x740
mov dword [ebp - 0x38], ebx
je 0x404ad1
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x50], 0x8740
test byte [ebp + 0xc], 2
je 0x404ade
mov dword [ebp - 0x48], str.runas
mov eax, dword [0x422760]
push 5
push eax
mov dword [ebp - 0x4c], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x4c]
call dword [sym.imp.USER32.dll_BringWindowToTop]
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.0040463c
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.004143d1
cmp dword [ebp - 8], edi
jne 0x404b28
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__
mov eax, ebx
jmp 0x404b73
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x404b61
test dword [ebp + 0xc], 0x10000
jne 0x404b56
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, ebx
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__
mov eax, edi
pop ecx
pop ecx
pop edi
pop ebx
leave
ret
Function at 0x404e3f
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.00413fb5
push 2
mov ecx, esi
call fcn.00403045
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
push 1
call edi
and dword [esi + 4], 0
mov ecx, dword [esi]
and word [ecx], 0
test eax, eax
jbe 0x404e92
lea ebx, [eax + 1]
push ebx
mov ecx, esi
call fcn.00403045
push eax
push ebx
call edi
mov edi, dword [esi]
push edi
call fcn.00401d2d
mov dword [esi + 4], eax
and word [edi + eax*2], 0
pop ecx
mov eax, dword [esi + 4]
and dword [ebp + 8], 0
lea ecx, [eax + 0xf]
mov dword [ebp - 4], ecx
lea ebx, [eax + eax]
push dword [ebp - 4]
mov ecx, esi
call fcn.00403045
push dword [ebp + 8]
add eax, ebx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [esi]
push edi
call fcn.00401d2d
add esp, 0x10
mov dword [esi + 4], eax
and word [edi + eax*2], 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404ee7
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xfff
jl 0x404ea2
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x404eee
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x42282c], esi
jle 0x404f42
mov eax, dword [0x422828]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
lea ecx, [ebp - 0xc]
call fcn.00413fd8
lea eax, [ebp - 0xc]
push eax
call fcn.00404071
mov eax, dword [0x422828]
mov eax, dword [eax + esi*4]
pop ecx
push dword [ebp - 0xc]
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 [0x42282c]
pop ecx
jl 0x404eff
pop esi
leave
ret