joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006035
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1009018]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [0x1009034], ebx
push edi
mov dword [ebp - 4], eax
mov edi, 0x400
jne 0x100608d
push 0x103
lea eax, [ebp - 0x108]
push eax
push 0x11
push edi
mov dword [0x1009034], 1
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea eax, [ebp - 0x108]
push eax
call sub.cmutil.dll_CmAtolA
mov dword [0x1009030], eax
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push 0x1001d20
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [ebp + 0x10]
add esp, 0xc
dec eax
push eax
push esi
push ebx
lea eax, [ebp - 0x108]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
mov eax, dword [0x1009030]
cmp eax, ebx
je 0x10060ef
cmp edi, eax
jbe 0x10060ef
mov ecx, esi
sub ecx, eax
lea eax, [ecx + edi - 1]
push eax
call sub.cmutil.dll_CmIsDigitA
test eax, eax
jne 0x10060ef
sub esi, dword [0x1009030]
mov byte [esi + edi - 1], bl
jmp 0x10060f5
mov dword [0x1009034], ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100617c
leave
ret 0xc

Function at 0x1006699
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi], edi
jne 0x1006753
cmp dword [esi + 4], edi
jne 0x1006753
push ebx
xor ebx, ebx
call sub.cmutil.dll_GetOSVersion
cmp eax, 2
jne 0x10066d0
call sub.cmutil.dll_GetOSMajorVersion
cmp eax, 5
jb 0x10066d0
push 0x1001dac
jmp 0x10066d5
push 0x1001d88
push edi
push 6
call dword [0x1009170]
cmp eax, edi
mov dword [esi], eax
je 0x1006736
push edi
push edi
push edi
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 4], eax
jne 0x1006703
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
jmp 0x1006736
call sub.cmutil.dll_GetOSVersion
cmp eax, 2
jne 0x100671e
call sub.cmutil.dll_GetOSMajorVersion
cmp eax, 5
jb 0x100671e
push 0x1001d58
jmp 0x1006723
push 0x1001d34
push edi
push 0xe0000000
call dword [0x100917c]
cmp eax, edi
mov dword [esi + 0xc], eax
jne 0x100674e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, edi
jle 0x100674e
and ebx, 0xffff
or ebx, 0x80070000
mov eax, ebx
pop ebx
jmp 0x1006758
mov eax, 0x80070005
pop edi
pop esi
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402610
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
lea ecx, [ebp - 0xc]
call fcn.004013d0
lea ecx, [ebp - 0x18]
call fcn.004013d0
push 0x3c
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.00421430
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x50], 0x740
mov dword [ebp - 0x38], 0xa
test al, 1
je 0x402666
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x50], 0x8740
test al, 2
je 0x402671
mov dword [ebp - 0x48], str.runas
push esi
mov esi, eax
and esi, 0x10000
jne 0x402683
or dword [ebp - 0x50], 0x100
mov eax, dword [0x431248]
push 5
push eax
mov dword [ebp - 0x4c], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push ecx
call fcn.00403e30
add esp, 8
push eax
lea ecx, [ebp - 0x18]
call fcn.00401000
lea ecx, [ebp - 0xc]
call fcn.0040e180
test eax, eax
je 0x402701
lea ecx, [ebp - 0xc]
call fcn.00414870
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x44], eax
call fcn.00414870
lea edx, [ebp - 0x54]
push edx
mov dword [ebp - 0x40], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40271b
test esi, esi
jne 0x4026f7
mov eax, dword [ebp - 0x1c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x18]
call fcn.00412b60
lea ecx, [ebp - 0xc]
call fcn.00412b60
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x18]
call fcn.00412b60
lea ecx, [ebp - 0xc]
call fcn.00412b60
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403230
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
push eax
mov esi, ecx
call fcn.00402c20
lea ecx, [ebp - 4]
push ecx
push 0
push esi
push 0x402fc0
push 0
push 0
mov dword [0x43123c], esi
mov dword [0x431244], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x431240], eax
pop esi
test eax, eax
je 0x403291
cmp dword [0x43128c], 2
je 0x403283
call fcn.0040bc30
mov eax, dword [0x431240]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x431240]
mov ecx, dword [0x431244]
mov dword [0x4313e4], 0
test ecx, ecx
je 0x403318
lea eax, [ecx - 1]
cmp eax, 0x6a
ja case.0x4032b4.4
movzx edx, byte [eax + 0x4033bc]
jmp dword [edx*4 + 0x4033a8]
push 0x11
push 0
call fcn.0040bf20
add esp, 8
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 4
push 0x12
push 0
call fcn.0040bf20
add esp, 8
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 4
push 0x13
push 0
call fcn.0040bf20
add esp, 8
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 4
push ecx
push 0x14
push 0
call fcn.0040bf20
add esp, 0xc
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 4
xor ecx, ecx
mov dword [ebp + 8], ecx
cmp dword [0x4313ec], ecx
jne case.0x4032b4.104
test eax, eax
je 0x403347
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ecx, dword [ebp + 8]
test eax, eax
je 0x403347
test ecx, ecx
jne 0x403347
xor eax, eax
mov esp, ebp
pop ebp
ret 4
mov edx, ecx
and edx, 0x80070000
cmp edx, 0x80070000
je 0x40336f
push ecx
push 0x21
push 0
call fcn.0040bf20
add esp, 0xc
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 4
and ecx, 0xffff
cmp ecx, 0xe
jne 0x403383
cmp dword [0x431290], 0xffffffff
je case.0x4032b4.104
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 8]
push eax
push 0x22
push 1
call fcn.0040bf20
add esp, 0xc
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x403f1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x403efd
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403f1d
test al, 0x10
jne 0x403f1d
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
pop ebp
ret
mov eax, 1
pop esi
pop ebp
ret
Function at 0x4044a0
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]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edi, eax
movzx eax, word [0x43124c]
push eax
push ebx
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov esi, eax
test esi, esi
jne 0x4044e7
mov edx, dword [ebp + 8]
push 0x409
push ebx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov esi, eax
test esi, esi
je 0x404512
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x4044f8
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 0x404512
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x431250], 0
jne 0x40457e
mov eax, dword [0x431258]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetProcessPreferredUILanguages
push eax
mov dword [0x431250], 1
call edi
movzx ecx, word [0x43124c]
push 0
push 0x409
push 0
push ecx
lea edx, [ebp - 0x40]
push str._04X_c_04X_c
push edx
mov esi, eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
test esi, esi
jne 0x404574
mov eax, dword [0x431258]
push str.SetThreadPreferredUILanguages
push eax
call edi
mov esi, eax
test esi, esi
je 0x40457e
push 0
lea ecx, [ebp - 0x40]
push ecx
push 4
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4048c0
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
cmp dword [0x4300c0], esi
je 0x4048f9
mov eax, 0x4300c0
lea ecx, [ecx]
cmp dword [eax], edi
je 0x4048f9
inc esi
mov eax, esi
shl eax, 4
cmp dword [eax + 0x4300c0], 0
lea eax, [eax + 0x4300c0]
jne 0x4048e0
shl esi, 4
cmp dword [esi + 0x4300c0], 0
jne 0x404910
pop edi
mov eax, 0x4299a8
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push edi
lea ecx, [ebp - 0x5c]
push str.SfxString_d
push ecx
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
push 0
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
call ebx
test eax, eax
jne 0x4049bb
xor ecx, ecx
lea eax, [edi + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042125e
add esp, 4
mov ebx, eax
lea eax, [edi + 1]
push eax
push ebx
lea ecx, [ebp - 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, edi
ja 0x4049b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4049b2
mov eax, dword [esi + 0x4300cc]
test eax, eax
je 0x4049aa
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4049b2
mov edx, dword [esi + 0x4300cc]
push edx
call fcn.004211da
mov dword [esi + 0x4300cc], ebx
jmp 0x4049b8
mov dword [esi + 0x4300cc], ebx
jmp 0x4049bb
push ebx
call fcn.004211da
add esp, 4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 0x4300cc]
test eax, eax
jne 0x404a89
mov ebx, dword [esi + 0x4300c4]
cmp dword [esi + 0x4300c8], eax
je 0x4049f4
call fcn.00404860
cmp eax, dword [0x42a8f8]
jne 0x4049f4
mov ebx, dword [esi + 0x4300c8]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
xor ecx, ecx
lea eax, [edi + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042125e
add esp, 4
cmp dword [0x430088], 0xffffffff
mov dword [esi + 0x4300cc], eax
jne 0x404a67
movzx ecx, word [0x43124c]
push 0x1f
lea eax, [ebp - 0x9c]
push eax
push 0x1004
push ecx
mov dword [0x430088], 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x404a67
lea edx, [ebp - 0x9c]
push edx
call fcn.00421418
add esp, 4
mov dword [0x430088], eax
mov ecx, dword [esi + 0x4300cc]
mov edx, dword [0x430088]
lea eax, [edi + 1]
push eax
push ecx
push edi
push ebx
push 0
push edx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x4300cc]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404b20
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 ecx, [ebp - 0x10]
push ecx
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
jne 0x404b5e
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405010
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
mov esi, dword [ebp + 8]
push edi
push esi
lea ecx, [ebp - 0xc]
call fcn.00401bd0
push 0x429c78
lea ecx, [ebp - 0xc]
call fcn.00416460
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0xc]
call fcn.00414870
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405107
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea esp, [esp]
push esi
lea ecx, [ebp - 0xc]
call fcn.00401000
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.00401b30
lea ecx, [ebp - 0x230]
push ecx
lea ecx, [ebp - 0xc]
call fcn.00416460
test byte [ebp - 0x25c], 0x10
je 0x4050c2
push 0x429c74
lea edx, [ebp - 0x230]
push edx
call edi
test eax, eax
je 0x4050ea
push 0x429c6c
lea eax, [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x4050ea
lea ecx, [ebp - 0xc]
call fcn.00414870
push eax
call fcn.00405010
add esp, 4
jmp 0x4050e6
push 0
lea ecx, [ebp - 0xc]
call fcn.00414870
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x405144
lea ecx, [ebp - 0xc]
call fcn.00414870
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405144
lea ecx, [ebp - 0x25c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405060
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, 0x4312bc
call fcn.00414870
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x405144
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x405144
lea ecx, [ebp - 0xc]
call fcn.00412b60
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0xc]
call fcn.00412b60
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405160
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
cmp dword [0x4313f8], 0
je 0x40517b
mov eax, 1
mov esp, ebp
pop ebp
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 0x40519c
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x250], 0x10
jne 0x4051cc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4051c5
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push esi
call fcn.00405010
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.004013d0
push 2
mov ecx, esi
call fcn.00405710
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
push 1
call ebx
push 0
mov ecx, esi
mov edi, eax
call fcn.00401bf0
test edi, edi
je 0x405837
inc edi
push edi
mov ecx, esi
call fcn.00405710
push eax
push edi
call ebx
mov ecx, esi
call fcn.004056f0
mov ecx, esi
call fcn.0040e180
mov ebx, eax
xor edi, edi
lea eax, [ebx + 0xf]
push eax
mov ecx, esi
call fcn.00405710
mov ecx, dword [ebp + 0xc]
push edi
push ecx
lea edx, [eax + ebx*2]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, esi
call fcn.004056f0
mov ecx, esi
call fcn.00414870
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405882
inc edi
cmp edi, 0xfff
jl 0x405842
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x405ca0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
lea ecx, [ebp - 0x18]
mov ebx, eax
mov dword [ebp - 4], eax
call fcn.00401bd0
push 0
lea ecx, [ebp - 0x18]
call fcn.00405710
mov edi, eax
movzx eax, word [esi + ebx*2 - 2]
cmp eax, 0x5c
je 0x405cdc
cmp eax, 0x2f
jne 0x405ce7
xor eax, eax
mov word [edi + ebx*2 - 2], ax
dec ebx
mov dword [ebp - 4], ebx
push edi
mov esi, ebx
call fcn.00403ed0
add esp, 4
test eax, eax
jne 0x405d2e
test esi, esi
jle 0x405d15
lea ebx, [ebx]
movzx eax, word [edi + esi*2]
cmp eax, 0x2f
je 0x405d13
cmp eax, 0x5c
je 0x405d13
dec esi
test esi, esi
jg 0x405d00
test esi, esi
je 0x405de2
xor ecx, ecx
push edi
mov word [edi + esi*2], cx
call fcn.00403ed0
add esp, 4
test eax, eax
je 0x405cf6
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x405d58
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.004059a0
add esp, 8
test eax, eax
jne 0x405e25
push edi
call fcn.00403ed0
add esp, 4
test eax, eax
jne 0x405d6b
push edi
jmp 0x405e19
cmp esi, ebx
jge 0x405e04
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
sub ecx, esi
inc ecx
push ecx
lea eax, [edx + esi*2]
push eax
lea ebx, [edi + esi*2]
push ebx
call fcn.00421820
add esp, 0xc
cmp word [ebx], 0
je 0x405d94
inc esi
cmp word [edi + esi*2], 0
je 0x405db6
jmp 0x405da0
movzx eax, word [edi + esi*2]
cmp eax, 0x5c
je 0x405db6
cmp eax, 0x2f
je 0x405db6
inc esi
cmp word [edi + esi*2], 0
jne 0x405da0
xor ecx, ecx
push edi
mov word [edi + esi*2], cx
call fcn.00403ed0
add esp, 4
test eax, eax
je 0x405d65
cmp esi, dword [ebp - 4]
jl 0x405d73
lea ecx, [ebp - 0x18]
call fcn.00412b60
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
cmp ebx, 2
jne 0x405e18
mov ax, word [ecx]
or ax, 0x20
cmp ax, 0x61
jb 0x405e18
cmp ax, 0x7a
ja 0x405e18
cmp word [ecx + 2], 0x3a
jne 0x405e18
lea ecx, [ebp - 0x18]
call fcn.00412b60
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
push 0xc
push 1
call fcn.0040bf20
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.00412b60
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4064d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
push 1
lea eax, [ebp - 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, dword [ebp + 8]
mov ecx, esi
mov edi, eax
call fcn.004013d0
lea ebx, [edi + 2]
push ebx
mov ecx, esi
call fcn.00405710
inc edi
push edi
push ebx
mov ecx, esi
call fcn.00405710
mov edx, dword [ebp + 0xc]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, esi
call fcn.004056f0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406bf0
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 [0x431258], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.0040c480
call fcn.00404860
push 3
call fcn.004048c0
push 0x28
mov dword [0x431280], eax
call fcn.004048c0
push 2
mov dword [0x43127c], eax
call fcn.004048c0
push 5
mov dword [0x431278], eax
call fcn.004048c0
push 0x15
mov dword [0x431274], eax
call fcn.004048c0
push 0x16
mov dword [0x431270], eax
call fcn.004048c0
push 0x17
mov dword [0x43126c], eax
call fcn.004048c0
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
xor edi, edi
mov dword [0x431268], eax
mov dword [0x431260], edi
mov dword [0x431264], edi
push 0
push edi
lea eax, [ebp - 0x268]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x406ce8
push edi
lea ecx, [ebp - 0x5c]
push 0x42a9e0
push ecx
call ebx
push 1
lea edx, [ebp - 0x268]
push edx
lea eax, [ebp - 0x5c]
push eax
call fcn.00406530
add esp, 0x18
xor esi, esi
cmp dword [esi + 0x4303c4], edi
jne 0x406ce0
mov edx, dword [esi + 0x4303c8]
push 0
lea ecx, [ebp - 0x268]
push ecx
push edx
call fcn.00406530
add esp, 0xc
add esi, 8
cmp esi, 0x28
jb 0x406cc0
inc edi
cmp edi, 0x40
jl 0x406c87
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4077d0
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
sub esp, 0x30
lea ecx, [ebp + 8]
call fcn.00414870
cmp word [eax + 2], 0x3a
jne 0x407816
movzx ecx, word [eax + 4]
cmp ecx, 0x5c
je 0x4077f3
cmp ecx, 0x2f
jne 0x407816
mov ax, word [eax]
mov word [ebp - 0xc], ax
lea ecx, [ebp - 0xc]
xor eax, eax
push ecx
mov dword [ebp - 0xa], 0x5c003a
mov word [ebp - 6], ax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x407822
lea ecx, [ebp + 8]
call fcn.00412b60
mov esp, ebp
pop ebp
ret
push esi
lea edx, [ebp - 0x24]
push str.7ZSfx_03x.cmd
push edx
call fcn.004057f0
add esp, 8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x24]
call fcn.00414870
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x407983
push edi
lea ecx, [ebp - 0x18]
call fcn.004013d0
push str.:Repeat_r_n
lea ecx, [ebp - 0x18]
call fcn.00401000
push str.del__
lea ecx, [ebp - 0x18]
call fcn.00416460
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.00415ec0
push 0x42ab00
lea ecx, [ebp - 0x18]
call fcn.00416460
push str.if_exist__
lea ecx, [ebp - 0x18]
call fcn.00416460
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00415ec0
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x18]
call fcn.00416460
push str.del__
lea ecx, [ebp - 0x18]
call fcn.00416460
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x18]
call fcn.00415ec0
push 0x42ab00
lea ecx, [ebp - 0x18]
call fcn.00416460
push 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040e180
push eax
push 1
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x30]
push edx
call fcn.004058f0
add esp, 0xc
mov ecx, eax
call fcn.00404e10
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x30]
mov edi, eax
call fcn.00412b60
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
pop edi
je 0x40796a
lea ecx, [ebp - 0x18]
call fcn.0040e180
cmp dword [ebp - 4], eax
jne 0x40796a
push 0
lea ecx, [ebp + 8]
call fcn.00414870
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0
push 0
lea ecx, [ebp - 0x24]
call fcn.00414870
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x40797b
lea ecx, [ebp - 0x24]
call fcn.00414870
push eax
call fcn.00405160
add esp, 4
lea ecx, [ebp - 0x18]
call fcn.00412b60
lea ecx, [ebp - 0x24]
call fcn.00412b60
lea ecx, [ebp + 8]
call fcn.00412b60
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408f00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push 0
push ecx
push edx
push 0
push 0
call fcn.0042215c
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.00408e90
add esp, 0x1c
mov esp, ebp
pop ebp
ret

Function at 0x409020
Capabilities:
Create thread

Disassembly:
add ecx, 0x38
jmp 0x40af30
push esi
mov esi, ecx
call fcn.004096d0
test eax, eax
jne 0x40af4e
push eax
push eax
push esi
push 0x40af00
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
ret
mov eax, dword [0x431278]
push eax
mov ecx, esi
call fcn.0040e180
push eax
mov ecx, esi
call fcn.00409b00
push 0x2d
call fcn.004048c0
add esp, 4
push eax
push 0x4b2
mov ecx, esi
call fcn.0040a4c0
pop esi
ret

Function at 0x4090e0
Capabilities:
Set current directory

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x4312bc
call fcn.00414870
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
add esi, 4
mov ecx, esi
call fcn.0040ffd0
test al, al
jne 0x409124
push 0x4312bc
push esi
call fcn.00409050
add esp, 8
test al, al
je 0x409124
mov ecx, esi
call fcn.00414870
push eax
call fcn.00405160
add esp, 4
mov ecx, esi
call fcn.004021d0
mov al, 1
pop esi
ret