joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402ed4
Capabilities:
Encode data using xor
Hash data with crc32
Packed with generic packer

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x4041a0
sub eax, eax
test esi, esi
je 0x402fac
sub eax, 1
test ecx, ecx
je 0x402faa
test esi, 3
je 0x402f12
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x402ef7
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x402f91
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x402f1c
mov ecx, edx
test ecx, ecx
je 0x402faa
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x402f97
not eax
jmp 0x42cd48
Function at 0x401262
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
lea ecx, [edi + 0xc]
call fcn.0040df41
push dword [ebp + 0xc]
lea ecx, [edi + 0x10]
call fcn.00410584
push 0x5c
lea ecx, [edi + 0x10]
call fcn.004010a2
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push edi
push 0x40148d
push esi
push esi
mov dword [0x42f480], edi
mov dword [0x42f48c], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x42f4d4], 2
mov dword [0x42f488], eax
je 0x4012c3
call fcn.004072de
mov eax, dword [0x42f488]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x42f48c]
mov dword [0x42f564], esi
test eax, eax
je 0x40130d
cmp eax, 1
je 0x401301
cmp eax, 2
je 0x4012fd
cmp eax, 3
je 0x4012f9
cmp eax, 0x67
jle 0x4012f4
cmp eax, 0x6b
jle 0x401371
push eax
push 0x14
jmp 0x401344
push 0x12
jmp 0x401303
push 0x13
jmp 0x401303
push 0x11
push esi
call fcn.00408882
pop ecx
pop ecx
jmp 0x401371
cmp dword [0x42f568], esi
jne 0x401371
lea eax, [ebp + 8]
push eax
push dword [0x42f488]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ecx, dword [ebp + 8]
test eax, eax
je 0x401334
test ecx, ecx
jne 0x401334
xor eax, eax
jmp 0x401376
mov edx, 0x80070000
mov eax, ecx
and eax, edx
cmp eax, edx
je 0x401347
push ecx
push 0x21
push esi
jmp 0x401369
and ecx, 0xffff
cmp ecx, 0xe
jne 0x40135b
cmp dword [0x42f4d8], 0xffffffff
je 0x401371
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.00408882
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 8
Function at 0x401e65
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
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 - 0x1c]
mov edi, eax
mov dword [ebp - 4], eax
call fcn.00410428
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x1c]
call fcn.0040263b
mov esi, eax
mov eax, dword [ebp + 8]
push 0x2f
movzx eax, word [eax + edi*2 - 2]
pop ecx
push 0x5c
pop edx
mov dword [ebp - 8], esi
cmp ax, dx
je 0x401eae
cmp ax, cx
jne 0x401ee2
xor eax, eax
mov word [esi + edi*2 - 2], ax
dec edi
mov dword [ebp - 4], edi
jmp 0x401ee2
test edi, edi
jle 0x401eda
push 0x2f
pop ecx
push 0x5c
pop edx
movzx eax, word [esi + edi*2]
cmp ax, cx
je 0x401ed8
cmp ax, dx
je 0x401ed8
dec edi
test edi, edi
jg 0x401ec5
test edi, edi
je 0x401f34
xor eax, eax
mov word [esi + edi*2], ax
push esi
call fcn.00403b39
pop ecx
test eax, eax
je 0x401ebb
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x401f16
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.0040299c
pop ecx
pop ecx
test eax, eax
jne 0x401fb0
push esi
call fcn.00403b39
pop ecx
test eax, eax
jne 0x401fa6
push esi
push 0xc
push 1
call fcn.00408882
add esp, 0xc
jmp 0x401fb0
cmp dword [ebp - 4], 2
mov ecx, dword [ebp + 8]
jne 0x401f57
mov ax, word [ecx]
or ax, 0x20
cmp ax, 0x61
jb 0x401f57
cmp ax, 0x7a
ja 0x401f57
cmp word [ecx + 2], 0x3a
je 0x401fad
push ecx
jmp 0x401f26
sub eax, edi
inc eax
push eax
mov eax, dword [ebp + 8]
lea esi, [esi + edi*2]
lea eax, [eax + edi*2]
push eax
push esi
call fcn.0041af90
add esp, 0xc
cmp word [esi], bx
je 0x401f77
inc edi
mov esi, dword [ebp - 8]
cmp word [esi + edi*2], bx
je 0x401f9b
push 0x2f
pop ecx
push 0x5c
pop edx
movzx eax, word [esi + edi*2]
cmp ax, dx
je 0x401f9b
cmp ax, cx
je 0x401f9b
inc edi
cmp word [esi + edi*2], bx
jne 0x401f86
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x401f16
mov eax, dword [ebp - 4]
cmp edi, eax
jl 0x401f5a
xor ebx, ebx
inc ebx
push dword [ebp - 0x1c]
call fcn.004196d0
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x4022e5
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.00410428
push 0x425668
lea ecx, [ebp - 0xc]
call fcn.0041071e
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
xor esi, esi
cmp ebx, 0xffffffff
je 0x4023c1
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.00410584
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.004010a2
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0xc]
call fcn.0041071e
test byte [ebp - 0x25c], 0x10
je 0x402389
push 0x425670
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4023a4
push 0x425674
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4023a4
push dword [ebp - 0xc]
call fcn.004022e5
pop ecx
jmp 0x4023a0
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4023df
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4023df
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402325
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4023df
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x4023df
xor esi, esi
inc esi
push dword [ebp - 0xc]
call fcn.004196d0
pop ecx
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4023ee
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
cmp dword [0x42f590], 0
je 0x402405
xor eax, eax
inc eax
leave
ret
lea eax, [ebp - 0x250]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x402400
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x250], 0x10
jne 0x402448
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x402444
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
leave
ret
xor eax, eax
leave
ret
push dword [ebp + 8]
call fcn.004022e5
pop ecx
leave
ret
Function at 0x4027e0
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
cmp dword [0x42e030], esi
je 0x402812
mov eax, 0x42e030
cmp dword [eax], edi
je 0x402812
inc esi
mov eax, esi
shl eax, 4
lea eax, [eax + 0x42e030]
cmp dword [eax], 0
jne 0x4027fd
shl esi, 4
cmp dword [esi + 0x42e030], 0
jne 0x402828
mov eax, 0x4256f8
jmp 0x402998
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 0x64]
push str.7zSfxString_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x64]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
mov dword [ebp - 4], edi
call ebx
push 2
pop edx
test eax, eax
jne 0x4028cd
xor ecx, ecx
lea eax, [edi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041965c
pop ecx
mov ecx, dword [ebp - 4]
inc ecx
mov edi, eax
push ecx
push edi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, dword [ebp - 4]
ja 0x4028c6
call ebx
test eax, eax
jne 0x4028c6
mov eax, dword [esi + 0x42e03c]
test eax, eax
je 0x4028be
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4028c6
push dword [esi + 0x42e03c]
call fcn.004196d0
mov dword [esi + 0x42e03c], edi
jmp 0x4028cc
mov dword [esi + 0x42e03c], edi
jmp 0x4028cd
push edi
call fcn.004196d0
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 0x42e03c]
test eax, eax
jne 0x402997
mov ebx, dword [esi + 0x42e034]
cmp dword [esi + 0x42e038], eax
je 0x402905
call fcn.00402d68
cmp eax, dword [0x425878]
jne 0x402905
mov ebx, dword [esi + 0x42e038]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041965c
pop ecx
mov ecx, dword [0x42e028]
mov dword [esi + 0x42e03c], eax
cmp ecx, 0xffffffff
jne 0x40297c
and dword [0x42e028], 0
push 0x1f
lea eax, [ebp - 0xa4]
push eax
movzx eax, word [0x42f49c]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x402976
lea eax, [ebp - 0xa4]
push eax
call fcn.0041bcde
pop ecx
mov ecx, eax
mov dword [0x42e028], ecx
jmp 0x40297c
mov ecx, dword [0x42e028]
lea eax, [edi + 1]
push eax
push dword [esi + 0x42e03c]
push edi
push ebx
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x42e03c]
pop ebx
pop edi
pop esi
leave
ret
Function at 0x402d68
Capabilities:
Identify system language via api

Disassembly:
push esi
mov si, word [0x42f49c]
test si, si
jne 0x402dd3
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov word [0x42f49c], ax
mov ecx, dword [0x42f49c]
and ecx, 0x3ff
cmp cx, 9
je 0x402d98
movzx eax, ax
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov ecx, 0x409
cmp ax, cx
jne 0x402dcc
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov ecx, dword [0x425878]
movzx esi, word [0x42f49c]
movzx edx, cx
cmp eax, ecx
cmove esi, edx
mov word [0x42f49c], si
jmp 0x402dd3
mov si, word [0x42f49c]
movzx eax, si
pop esi
ret

Function at 0x402e4a
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 dword [ebp - 0x10], ebx
mov word [ebp - 0xc], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x402e9d
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 0x403064
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx ecx, word [0x42f49c]
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceExA]
push ecx
push dword [ebp + 0xc]
mov edi, eax
push dword [ebp + 8]
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x4030a8
push 0x409
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call ebx
mov esi, eax
test esi, esi
je 0x4030ce
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x4030b9
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebx], eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4030ce
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x403146
cmp dword [0x42f4ac], 0
jne 0x403144
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.SetProcessPreferredUILanguages
push str.kernel32
mov dword [0x42f4ac], 1
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
movzx ecx, word [0x42f49c]
push 0
push 0x409
push 0
push ecx
mov esi, eax
lea eax, [ebp - 0x40]
push str._04X_c_04X_c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
test esi, esi
jne 0x40313a
push str.SetThreadPreferredUILanguages
push str.kernel32
call edi
push eax
call ebx
mov esi, eax
test esi, esi
je 0x403144
push 0
lea eax, [ebp - 0x40]
push eax
push 4
call esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40319c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, dword [ebp + 8]
mov edi, eax
call fcn.0041045f
mov ecx, dword [ebp + 8]
lea esi, [edi + 2]
push esi
call fcn.0040263b
lea eax, [edi + 1]
mov edi, dword [ebp + 8]
push eax
push esi
mov ecx, edi
call fcn.0040263b
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, dword [edi]
push esi
call fcn.0040329a
pop ecx
mov dword [edi + 4], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, edi
pop edi
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x403b7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x403b66
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x403b7e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403b7b
test al, 0x10
jne 0x403b7b
push esi
jmp 0x403b5c
xor eax, eax
inc eax
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.0041045f
push 2
mov ecx, edi
call fcn.0040263b
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
mov eax, dword [edi]
xor ebx, ebx
xor ecx, ecx
mov dword [edi + 4], ebx
mov word [eax], cx
test esi, esi
je 0x403ef8
inc esi
push esi
mov ecx, edi
call fcn.0040263b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [edi]
push esi
call fcn.0040329a
pop ecx
xor ecx, ecx
mov dword [edi + 4], eax
mov word [esi + eax*2], cx
mov esi, dword [edi + 4]
mov dword [ebp + 8], esi
lea eax, [esi + 0xf]
push eax
mov ecx, edi
call fcn.0040263b
push ebx
push dword [ebp + 0xc]
lea eax, [eax + esi*2]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [edi]
push esi
call fcn.0040329a
xor ecx, ecx
add esp, 0x10
mov dword [edi + 4], eax
mov word [esi + eax*2], cx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403f47
mov esi, dword [ebp + 8]
inc ebx
lea eax, [esi + 0xf]
cmp ebx, 0xfff
jl 0x403f01
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x403f4e
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, 0x30
push ebx
push edi
push 0x3a
pop edx
cmp word [eax + 2], dx
jne 0x4040d0
movzx ecx, word [eax + 4]
push esi
push 0x5c
pop esi
cmp cx, si
je 0x403f7c
cmp ecx, 0x2f
jne 0x4040cf
mov ax, word [eax]
mov word [ebp - 0xc], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xa], dx
mov word [ebp - 8], si
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4040cc
lea eax, [ebp - 0x24]
push str.7ZSfx_03x.cmd
push eax
call fcn.00403ea1
pop ecx
pop ecx
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4040c3
lea ecx, [ebp - 0x18]
call fcn.0041045f
push str.:Repeat_r_n
lea ecx, [ebp - 0x18]
call fcn.00410584
mov ebx, str.del__
push ebx
lea ecx, [ebp - 0x18]
call fcn.0041071e
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.004106e0
mov esi, 0x426b34
push esi
lea ecx, [ebp - 0x18]
call fcn.0041071e
push str.if_exist__
lea ecx, [ebp - 0x18]
call fcn.0041071e
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.004106e0
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x18]
call fcn.0041071e
push ebx
lea ecx, [ebp - 0x18]
call fcn.0041071e
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
call fcn.004106e0
push esi
lea ecx, [ebp - 0x18]
call fcn.0041071e
mov esi, dword [ebp - 0x14]
push 1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00403c64
add esp, 0xc
xor ebx, ebx
push ebx
lea ecx, [ebp - 4]
push ecx
push esi
push dword [eax]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x30]
mov esi, eax
call fcn.004196d0
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4040db
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x14]
jne 0x4040db
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push ebx
push ebx
push dword [ebp - 0x24]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x18]
call fcn.004196d0
pop ecx
push dword [ebp - 0x24]
call fcn.004196d0
pop ecx
mov eax, dword [ebp + 8]
pop esi
push eax
call fcn.004196d0
pop ecx
pop edi
pop ebx
leave
ret
push dword [ebp - 0x24]
call fcn.004023ee
push dword [ebp - 0x18]
call fcn.004196d0
push dword [ebp - 0x24]
call fcn.004196d0
add esp, 0xc
jmp 0x4040cc
Function at 0x40426f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
lea eax, [ebp - 0x144]
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
mov esi, 0x144
lea eax, [ebp - 0x144]
jbe 0x4042aa
push dword [ebp + 8]
push esi
push eax
call fcn.0041bdc0
add esp, 0xc
jmp 0x4042c9
push 0x426814
push esi
push eax
call fcn.0041be15
push dword [ebp + 8]
lea eax, [ebp - 0x144]
push esi
push eax
call fcn.0041be15
add esp, 0x18
push str..dll
lea eax, [ebp - 0x144]
push esi
push eax
call fcn.0041be15
add esp, 0xc
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
leave
ret
Function at 0x404d2a
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x42f558], esi
jle 0x404d7e
mov eax, dword [0x42f554]
lea ecx, [ebp - 0xc]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
call fcn.004103f7
lea eax, [ebp - 0xc]
push eax
call fcn.00404954
mov eax, dword [0x42f554]
pop ecx
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 fcn.004196d0
inc esi
pop ecx
cmp esi, dword [0x42f558]
jl 0x404d3b
pop esi
leave
ret

Function at 0x404d97
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
lea ecx, [ebp - 0xc]
call fcn.0041045f
lea ecx, [ebp - 0x18]
call fcn.0041045f
push 0x3c
pop edi
push edi
xor esi, esi
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.0041bd30
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x54], edi
xor edi, edi
inc edi
add esp, 0xc
test byte [ebp + 0xc], 1
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], 0x740
mov dword [ebp - 0x38], edi
je 0x404de8
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x50], 0x8740
test byte [ebp + 0xc], 2
mov eax, 0x4267b8
cmove eax, dword [ebp - 0x48]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.004041f5
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00410584
cmp dword [ebp - 8], esi
je 0x404e4b
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 0x404e4d
test dword [ebp + 0xc], 0x10000
jne 0x404e42
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 esi, edi
push dword [ebp - 0x18]
call fcn.004196d0
push dword [ebp - 0xc]
call fcn.004196d0
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x404e65
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
push ebx
push esi
push edi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.004090e6
call fcn.00402d68
push 3
call fcn.004027e0
push 0x28
mov dword [0x42f4b8], eax
call fcn.004027e0
push 2
mov dword [0x42f4f0], eax
call fcn.004027e0
push 5
mov dword [0x42f4b4], eax
call fcn.004027e0
push 0x15
mov dword [0x42f4c0], eax
call fcn.004027e0
push 0x16
mov dword [0x42f4c4], eax
call fcn.004027e0
push 0x17
mov dword [0x42f4c8], eax
call fcn.004027e0
add esp, 0x1c
xor ebx, ebx
mov dword [0x42f4d0], eax
mov dword [0x42f4cc], ebx
mov dword [0x42f4bc], ebx
mov esi, ebx
push ebx
push esi
lea eax, [ebp - 0x2a4]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x404fa1
push esi
lea eax, [ebp - 0x98]
push 0x426490
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.0041045f
lea ecx, [ebp - 0xc]
call fcn.0041045f
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x18]
call fcn.00410584
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0xc]
call fcn.00410584
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x42f554
call fcn.00401ba8
mov edi, ebx
cmp dword [edi + 0x42e2f0], esi
jne 0x404f87
push dword [edi + 0x42e2f4]
lea ecx, [ebp - 0x18]
call fcn.00410584
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0xc]
call fcn.00410584
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x42f554
call fcn.00401ba8
add edi, 8
cmp edi, 0x28
jb 0x404f54
push dword [ebp - 0xc]
call fcn.004196d0
push dword [ebp - 0x18]
call fcn.004196d0
pop ecx
pop ecx
inc esi
cmp esi, 0x40
jl 0x404ee8
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406b59
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 + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call fcn.0041c113
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.00406b21
add esp, 0x1c
leave
ret