joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10035e80
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xfffffffffffffffe
push 0x100772f0
push 0x100477f6
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x1007f008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], esi
mov ecx, 0x10084fe6
call fcn.10048d85
mov dword [ebp - 4], 0
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10035ef0
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov edx, esi
mov ecx, edi
call fcn.10035fd0
mov bl, al
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x10035f27
test bl, bl
jne 0x10035f9c
cmp edi, 0x1a
jne 0x10035f9c
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10035f41
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
push 0x410
push ecx
lea eax, [ebp]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x207
lea eax, [ebp]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10035f72
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.100082e0
movzx ebx, bl
mov eax, 1
cmp dword [esi + 0x10], 0
cmovne ebx, eax
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.10046cee
lea esp, [ebp + 0x414]
pop ebp
ret
Function at 0x1003f670
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x120]
sub esp, 0x120
push 0xffffffffffffffff
push 0x10058275
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x1007f008]
xor eax, ebp
mov dword [ebp + 0x11c], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ecx, 0x10084fe6
mov dword [ebp - 0x10], esi
call fcn.10048d85
mov dword [ebp - 4], 0
push 1
call fcn.10046cff
mov dword [esi], eax
push pe_nt_image_headers32
push 0
mov byte [eax], 0
lea eax, [ebp + 4]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [ebp], 0x11c
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1003f6fd
cmp dword [ebp + 4], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x11c]
xor ecx, ebp
call fcn.10046cee
lea esp, [ebp + 0x120]
pop ebp
ret
Function at 0x10013a40
Capabilities:
Delete file
Get common file path
Move file
Query environment variable

Disassembly:
sub esp, 0x32c
mov eax, dword [0x1001a4bc]
push esi
push edi
push str.PPPPPP
mov edi, ecx
push eax
call fcn.10004e40
add esp, 8
mov esi, eax
lea ecx, [esp + 0x230]
add esi, 6
push 0x104
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push esi
call main
add esp, 4
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x22]
mov edx, dword [esp + 0x20]
and eax, 0xffff
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x22]
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x22]
push edx
mov edx, dword [esp + 0x24]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x40]
push str._d_d_d_d_d_d.bak
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
lea ecx, [esp + 0x28]
lea edx, [esp + 0x230]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 4
lea eax, [esp + 0x2c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea ecx, [esp + 0x12c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x12c]
push str._flyboy.log
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, 0x6f
mov cl, 0x6e
mov byte [esp + 0xc], al
mov byte [esp + 0xe], al
mov al, 0x65
mov byte [esp + 8], 0x77
mov byte [esp + 9], 0x69
mov byte [esp + 0xa], cl
mov byte [esp + 0xb], 0x6c
mov byte [esp + 0xd], 0x67
mov byte [esp + 0xf], cl
mov byte [esp + 0x10], 0x2e
mov byte [esp + 0x11], al
mov byte [esp + 0x12], 0x78
mov byte [esp + 0x13], al
mov byte [esp + 0x14], 0
cmp dword [edi + 0x9e54], 0x120
je 0x10013b93
lea ecx, [edi + 0x10]
lea edx, [esp + 8]
push ecx
push edx
call fcn.10005f80
add esp, 8
jmp 0x10013b9f
lea eax, [edi + 0x10]
push eax
call fcn.10004cb0
add esp, 4
add edi, 0x110
push edi
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
pop edi
pop esi
add esp, 0x32c
ret
Function at 0x401834
Capabilities:
Hide graphical window

Disassembly:
push esi
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
cmp dword [0x423804], 0
mov esi, dword [esp + 8]
mov dword [0x42397c], eax
jne 0x401868
push 0
push 0x66
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x4237d0]
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
push dword [0x423978]
push 0x64
push esi
call fcn.0040a9ea
add esp, 0xc
push dword [0x4237c8]
push 0x65
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov eax, dword [0x4242ec]
push 0
dec eax
push eax
push 0xc5
push 0x65
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push esi
call fcn.0040121c
push esi
call fcn.00401287
pop ecx
pop ecx
pop esi
ret

Function at 0x401998
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
lea eax, [ebp - 4]
push ebx
push eax
mov al, byte [ebp + 0x18]
xor ebx, ebx
neg al
sbb eax, eax
mov dword [ebp - 8], ebx
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [0x41c078]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401aa7
cmp byte [ebp + 0x14], bl
lea eax, [ebp + 0x18]
push esi
push eax
lea eax, [ebp - 0x10c]
mov dword [ebp + 8], 1
push eax
lea eax, [ebp + 8]
push eax
mov dword [ebp + 0x18], 0x103
push ebx
je 0x401a6f
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push str.IniFileName
push dword [ebp - 4]
call esi
test eax, eax
jne 0x401a2b
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 0xc]
call fcn.00413500
pop ecx
xor eax, eax
pop ecx
mov ecx, dword [ebp + 0xc]
cmp byte [ecx], bl
setne al
mov dword [ebp - 8], eax
cmp dword [ebp + 0x10], ebx
je 0x401a9d
lea eax, [ebp + 0x18]
mov dword [ebp + 8], 1
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp + 8]
push eax
push ebx
push str.FtpIniName
mov dword [ebp + 0x18], 0x103
push dword [ebp - 4]
call esi
test eax, eax
jne 0x401a9d
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 0x10]
call fcn.00413500
pop ecx
pop ecx
jmp 0x401a9d
push str.InstallDir
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401a9d
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x10c]
push eax
push esi
call fcn.00413500
xor eax, eax
cmp byte [esi], bl
pop ecx
setne al
pop ecx
mov dword [ebp - 8], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, dword [ebp - 8]
pop ebx
leave
ret
Function at 0x401aad
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, 0x103
push edi
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.0040c63d
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.00405302
add esp, 0x14
cmp byte [ebp - 0x103], 0x3a
je 0x401aef
cmp byte [ebp - 0x103], 0x5c
jne 0x401b4e
cmp byte [ebp - 0x104], 0
je 0x401b19
lea eax, [ebp - 0x104]
push eax
call fcn.00413210
cmp byte [ebp + eax - 0x105], 0x5c
lea eax, [ebp + eax - 0x105]
pop ecx
jne 0x401b19
and byte [eax], 0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edi, eax
xor eax, 0x20
push eax
lea eax, [ebp - 0x104]
push eax
call esi
test eax, eax
je 0x401b4e
lea eax, [ebp - 0x104]
push edi
push eax
call esi
push 1
pop eax
jmp 0x401b50
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x40288a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
push edi
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edi, dword [ebp + 8]
mov dword [0x42397c], eax
push edi
call fcn.0040121c
xor ebx, ebx
pop ecx
cmp dword [0x423800], ebx
je 0x4028cf
push dword [0x4240a8]
push 0xa
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
jmp 0x4028f9
push 0x3ff
lea eax, [ebp - 0x400]
push dword [0x4240a8]
push eax
call fcn.0040c7db
add esp, 0xc
lea eax, [ebp - 0x400]
push eax
push 0xa
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push edi
call fcn.00401287
mov eax, dword [0x422bf0]
pop ecx
dec eax
je 0x40297a
dec eax
je 0x402954
dec eax
je 0x402932
dec eax
je 0x402919
push 1
pop eax
jmp 0x4029b4
push 2
push 1
push edi
call fcn.0040a9ea
push 3
push 4
push edi
call fcn.0040a9ea
add esp, 0x18
jmp 0x4029a2
push 0x17
push 6
push edi
call fcn.0040a9ea
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
add esp, 0xc
push ebx
push 7
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x402973
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
push 6
push edi
call esi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
push 0
push 7
push edi
call esi
push eax
call ebx
push 1
push edi
call esi
jmp 0x4029ab
xor eax, eax
cmp dword [0x423970], ebx
mov esi, dword [sym.imp.USER32.dll_CheckDlgButton]
setne al
push eax
push 6
push edi
call esi
xor eax, eax
cmp dword [0x423970], ebx
sete al
push eax
push 7
push edi
call esi
push 1
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403b88
Capabilities:
Acquire debug privileges
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
and dword [ebp - 0xc], 0
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
and dword [ebp + 8], 0
mov dword [ebp - 4], eax
lea eax, [ebp + 8]
push edi
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
mov edi, str.SeDebugPrivilege
je 0x403bcd
push 1
push edi
push dword [ebp + 8]
call fcn.004037e2
add esp, 0xc
push esi
push 0x103
mov esi, 0x423300
push 0x423b40
push esi
call fcn.0040c63d
push 0x104
push esi
call fcn.00403901
add esp, 0x14
lea eax, [ebp - 0xc]
push eax
push 0x40397b
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [ebp + 8], 0
pop esi
je 0x403c1e
push 0
push edi
push dword [ebp + 8]
call fcn.004037e2
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
pop edi
leave
ret
Function at 0x403c24
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
and dword [ebp - 8], 0
push ebx
push esi
push edi
inc dword [ebp - 8]
lea eax, [ebp - 0x214]
push 0xa
push eax
push dword [ebp - 8]
call fcn.00413472
push 2
lea eax, [ebp - 0x110]
push 0x103
push eax
lea eax, [ebp - 0x214]
push 0x420b98
push eax
push str.Not_running
call fcn.0040105a
add esp, 0x24
cmp byte [ebp - 0x110], 0
je 0x403e17
mov esi, 0x41c328
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.00413697
xor edi, edi
push esi
push edi
mov dword [ebp - 4], eax
call fcn.00413697
mov ebx, eax
add esp, 0x10
cmp ebx, edi
mov dword [ebp - 0xc], ebx
je 0x403cb1
push esi
push edi
call fcn.00413697
pop ecx
mov edi, eax
pop ecx
cmp dword [ebp - 4], 0
jne 0x403cc0
lea eax, [ebp - 0x110]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x110]
push ebx
push eax
call fcn.00403b88
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x403daa
cmp dword [ebp + 8], 0
jne 0x403d2a
push 0x20
call dword [sym.imp.USER32.dll_MessageBeep]
test edi, edi
jne 0x403cf4
test ebx, ebx
mov edi, ebx
jne 0x403cf4
mov edi, dword [ebp - 4]
push 0x1ff
push edi
lea eax, [ebp - 0x81c]
push 8
push eax
call fcn.0040ab9f
push 0
lea eax, [ebp - 0x81c]
push 2
push eax
push dword [0x422bf8]
call fcn.00402acc
add esp, 0x20
cmp eax, 1
jne 0x403e1a
push 0
push 0xf060
push 0x112
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov edi, esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call section..text
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0xc]
lea eax, [ebp - 0x110]
push eax
call fcn.00403b88
mov esi, eax
pop ecx
cmp esi, edi
pop ecx
jne 0x403d85
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
push eax
call fcn.00413bbe
cmp eax, 0x2710
pop ecx
jl 0x403d47
cmp esi, edi
je 0x403db8
test esi, esi
jne 0x403d2a
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov esi, eax
call section..text
call edi
sub eax, esi
push eax
call fcn.00413bbe
cmp eax, 0xbb8
pop ecx
jle 0x403d93
cmp byte [ebp - 0x110], 0
je 0x403e17
jmp 0x403c34
cmp dword [ebp + 8], 0
jne 0x403e13
cmp dword [0x420b1c], 0
jne 0x403e13
push 0x1ff
lea eax, [ebp - 0x81c]
push dword [ebp - 0xc]
push 9
push eax
call fcn.0040ab9f
push 0x103
lea eax, [ebp - 0x41c]
push dword [0x41c030]
push eax
call fcn.0040c7b3
add esp, 0x1c
lea eax, [ebp - 0x41c]
push 0x30
push eax
lea eax, [ebp - 0x81c]
push eax
push dword [0x422bf8]
call dword [sym.imp.USER32.dll_MessageBoxW]
push 2
jmp 0x403e19
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404099
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
push ebx
push esi
push edi
call fcn.00403e1f
test eax, eax
jne 0x4040b5
xor eax, eax
jmp 0x40426b
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
xor eax, eax
cmp dword [ebp + 0xc], eax
jne 0x404114
cmp dword [0x423800], eax
je 0x40413c
lea eax, [ebp - 4]
push eax
mov eax, esi
neg eax
sbb eax, eax
and eax, 2
add eax, 0x17
push eax
push dword [0x422bf8]
call dword [0x420b48]
test eax, eax
jl 0x4040ae
lea eax, [ebp - 0x620]
push eax
push dword [ebp - 4]
call dword [0x420b58]
test eax, eax
je 0x4040ae
lea eax, [ebp - 0x620]
push ebx
push eax
push dword [ebp + 8]
call fcn.0040c67c
jmp 0x404265
cmp dword [0x423800], eax
je 0x40413c
cmp dword [0x422bf4], eax
jne 0x40413c
push ebx
push dword [ebp + 8]
push esi
push dword [ebp + 0xc]
call fcn.00403eb0
add esp, 0x10
test eax, eax
jne 0x404268
neg esi
sbb esi, esi
lea eax, [ebp - 4]
and esi, 0xe
push eax
inc esi
inc esi
push esi
push dword [0x422bf8]
call dword [0x420b48]
test eax, eax
jl 0x4040ae
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call dword [0x420b54]
test eax, eax
je 0x4040ae
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x101
push eax
lea eax, [ebp - 0x10b]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov esi, 0x103
lea eax, [ebp - 0x418]
push esi
push dword [ebp + 0xc]
push eax
call fcn.0040c7db
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x10b]
push eax
call fcn.004139a0
add esp, 0x14
test eax, eax
je 0x404255
push esi
lea eax, [ebp - 0x10c]
push 0x41c534
push eax
mov byte [ebp - 0x10c], 0x5c
call fcn.0040c6bc
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00413290
mov edi, eax
add esp, 0x14
test edi, edi
je 0x404255
and byte [edi + 1], 0
lea eax, [ebp - 0x10c]
push eax
call fcn.00413210
lea edi, [edi + eax - 1]
lea eax, [ebp - 0x210]
push esi
push eax
lea eax, [ebp - 0x314]
push eax
call fcn.0040c63d
lea eax, [ebp - 0x418]
push esi
push eax
lea eax, [ebp - 0x314]
push eax
call fcn.0040c6bc
push esi
lea eax, [ebp - 0x314]
push edi
push eax
call fcn.0040c6bc
lea eax, [ebp - 0x314]
push ebx
push eax
push dword [ebp + 8]
call fcn.0040c7b3
add esp, 0x34
jmp 0x404268
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp + 8]
call fcn.0040c7b3
add esp, 0xc
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404270
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
push ebx
lea eax, [ebp - 0x454]
push 0x423b40
push eax
call fcn.00413500
lea eax, [ebp - 0x454]
push eax
call fcn.0040919c
xor ebx, ebx
lea eax, [ebp - 0x108]
push ebx
push 0x101
push eax
call fcn.00404034
add esp, 0x18
test eax, eax
je 0x404430
push esi
mov esi, 0x103
push edi
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00405302
lea eax, [ebp - 0x108]
push eax
call fcn.0040919c
push 0x102
lea eax, [ebp - 0x108]
push dword [ebp + 8]
push eax
call fcn.0040c6bc
add esp, 0x18
lea eax, [ebp - 0x108]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x108]
push eax
call fcn.0040919c
lea eax, [ebp - 0x108]
push eax
call fcn.00413210
pop ecx
lea edi, [ebp + eax - 0x108]
pop ecx
mov dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
inc dword [ebp + 8]
lea eax, [ebp - 0x148]
push 0xa
push eax
push dword [ebp + 8]
call fcn.00413472
lea eax, [ebp - 0x350]
push esi
push eax
lea eax, [ebp - 0x148]
push 0x420b98
push eax
push 0x422c00
call fcn.00403881
add esp, 0x20
cmp byte [ebp - 0x350], bl
je 0x40440d
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.00413500
lea eax, [ebp - 0x350]
push esi
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.0040c6bc
lea eax, [ebp - 0x24c]
push 0x22
push eax
call fcn.00413320
add esp, 0x1c
cmp eax, ebx
je 0x404401
mov byte [eax], bl
add eax, 3
push esi
push eax
lea eax, [ebp - 0x108]
mov byte [edi], bl
push eax
call fcn.0040c6bc
push esi
lea eax, [ebp - 0x108]
push 0x41c74c
push eax
call fcn.0040c6bc
lea eax, [ebp - 0x24c]
push eax
call fcn.0040929a
add esp, 0x1c
test eax, eax
je 0x404401
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.0040ac9c
add esp, 0xc
test eax, eax
je 0x404401
mov dword [ebp - 4], 1
cmp byte [ebp - 0x350], bl
jne 0x404322
cmp dword [ebp - 4], ebx
pop edi
pop esi
jne 0x404430
cmp dword [0x420b1c], ebx
jne 0x404430
push 0x30
push 7
push 0xa
push dword [0x422bf8]
call fcn.0040ab69
add esp, 0x10
pop ebx
leave
ret
Function at 0x404de0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
je 0x404dff
push dword [0x420b04]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call fcn.0040b831
add esp, 0xc
pop ebp
ret
push dword [ebp + 0x14]
call fcn.00413210
pop ecx
inc eax
push eax
push dword [ebp + 0x14]
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop ebp
ret

Function at 0x404e1f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
je 0x404e3e
push dword [0x420b04]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call fcn.0040b8fa
add esp, 0xc
pop ebp
ret
lea eax, [ebp + 0x14]
push 4
push eax
push 4
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop ebp
ret
Function at 0x405302
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x614
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 8], esi
jmp 0x405319
mov esi, dword [ebp + 8]
push esi
call fcn.00413210
add eax, esi
pop ecx
cmp dword [ebp - 8], eax
jbe 0x405333
push esi
call fcn.00413210
add eax, esi
pop ecx
mov dword [ebp - 8], eax
push 0x25
push dword [ebp - 8]
call fcn.00413320
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x405358
lea ebx, [edi + 1]
push 0x25
push ebx
call fcn.00413320
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
jne 0x40535a
xor esi, esi
xor ebx, ebx
cmp esi, ebx
je 0x4054f8
and byte [esi], bl
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00413500
lea eax, [ebp - 0x214]
push str.TotalcmdDefaultDir
push eax
mov byte [esi], 0x25
call fcn.004139a0
add esp, 0x10
test eax, eax
jne 0x40541a
cmp dword [0x423800], ebx
je 0x405405
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea eax, [ebp - 0x110]
push 0x102
push eax
push 0x41c908
call ebx
test eax, eax
jne 0x4053d9
cmp dword [0x423800], eax
je 0x405405
lea eax, [ebp - 0x110]
push 0x102
push eax
push 0x41c8f8
call ebx
test eax, eax
je 0x405405
lea eax, [ebp - 0x110]
push eax
call fcn.0040919c
mov dword [esp], 0x103
lea eax, [ebp - 0x110]
push str.totalcmd
push eax
call fcn.0040c6bc
add esp, 0xc
jmp 0x405492
lea eax, [ebp - 0x110]
push str.c:_totalcmd
push eax
call fcn.00413500
pop ecx
pop ecx
jmp 0x405492
lea eax, [ebp - 0x110]
push 0x103
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x405492
call fcn.00403e1f
test eax, eax
je 0x40549b
cmp dword [0x423804], ebx
mov dword [ebp - 4], ebx
je 0x4054f0
lea eax, [ebp - 0x214]
push 0x41c8d8
push eax
call fcn.004139a0
pop ecx
test eax, eax
pop ecx
jne 0x4054f0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
push 0x1a
push ebx
call dword [0x420b48]
test eax, eax
jl 0x4054f0
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0xc]
call dword [0x420b54]
test eax, eax
je 0x4054f0
lea eax, [ebp - 0x110]
mov dword [ebp - 4], eax
xor ebx, ebx
cmp dword [ebp - 4], ebx
je 0x4054f0
push dword [ebp + 8]
and byte [edi], bl
lea eax, [ebp - 0x614]
push eax
call fcn.00413500
mov edi, 0x3ff
lea eax, [ebp - 0x614]
push edi
push dword [ebp - 4]
push eax
call fcn.00413d10
lea eax, [esi + 1]
push edi
push eax
lea eax, [ebp - 0x614]
push eax
call fcn.00413d10
push dword [ebp + 0xc]
lea eax, [ebp - 0x614]
push eax
push dword [ebp + 8]
call fcn.00413ac0
add esp, 0x2c
jmp 0x4054fa
lea eax, [esi + 1]
mov dword [ebp - 8], eax
jmp 0x4054fa
xor esi, esi
cmp esi, ebx
jne 0x405316
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405507
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc1c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 8], esi
jmp 0x40551e
mov esi, dword [ebp + 8]
push esi
call fcn.00413733
lea eax, [esi + eax*2]
pop ecx
cmp dword [ebp - 8], eax
jbe 0x40553a
push esi
call fcn.00413733
lea eax, [esi + eax*2]
pop ecx
mov dword [ebp - 8], eax
push 0x25
push dword [ebp - 8]
call fcn.00413ce4
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x40555f
lea ebx, [edi + 2]
push 0x25
push ebx
call fcn.00413ce4
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
jne 0x405561
xor esi, esi
test esi, esi
je 0x405699
and word [esi], 0
lea eax, [edi + 2]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.00413eda
pop ecx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
pop ecx
lea eax, [ebp - 0x214]
push 0x103
push eax
lea eax, [ebp - 0x41c]
mov word [esi], 0x25
push eax
call ebx
test eax, eax
jne 0x405632
lea eax, [ebp - 0x41c]
push str.ProgramW6432
push eax
call fcn.0041951d
pop ecx
test eax, eax
pop ecx
jne 0x4055d5
lea eax, [ebp - 0x214]
push 0x103
push eax
push str.ProgramFiles
call ebx
test eax, eax
jne 0x405632
call fcn.00403e1f
test eax, eax
je 0x40563b
xor ebx, ebx
cmp dword [0x423804], ebx
mov dword [ebp - 4], ebx
je 0x405691
lea eax, [ebp - 0x41c]
push str.APPDATA
push eax
call fcn.0041951d
pop ecx
test eax, eax
pop ecx
jne 0x405691
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
push 0x1a
push ebx
call dword [0x420b48]
test eax, eax
jl 0x405691
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0xc]
call dword [0x420b58]
test eax, eax
je 0x405691
lea eax, [ebp - 0x214]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x405691
push dword [ebp + 8]
and word [edi], 0
lea eax, [ebp - 0xc1c]
push eax
call fcn.00413eda
mov edi, 0x7ff
lea eax, [ebp - 0xc1c]
push edi
push dword [ebp - 4]
push eax
call fcn.00413e70
lea eax, [esi + 2]
push edi
push eax
lea eax, [ebp - 0xc1c]
push eax
call fcn.00413e70
push dword [ebp + 0xc]
lea eax, [ebp - 0xc1c]
push eax
push dword [ebp + 8]
call fcn.00413e33
add esp, 0x2c
jmp 0x40569b
lea eax, [esi + 2]
mov dword [ebp - 8], eax
jmp 0x40569b
xor esi, esi
test esi, esi
jne 0x40551b
pop edi
pop esi
pop ebx
leave
ret