joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405a50
Capabilities:
Create process on windows
Query environment variable

Disassembly:
sub esp, 0x3d0
mov eax, dword [0x59a024]
xor eax, esp
mov dword [esp + 0x3cc], eax
push ebx
push ebp
mov ebp, dword [esp + 0x3dc]
push edi
xor ebx, ebx
push 0x3f
lea eax, [esp + 0x8d]
push ebx
push eax
mov byte [esp + 0x94], bl
call fcn.00412eb0
push 0x3f
lea ecx, [esp + 0x59]
push ebx
push ecx
mov byte [esp + 0x60], bl
call fcn.00412eb0
push 0x38
lea edx, [esp + 0x2c]
push ebx
push edx
mov dword [esp + 0x30], 0x3c
call fcn.00412eb0
lea edx, [esp + 0xec]
add esp, 0x24
mov eax, esi
sub edx, esi
jmp 0x405ac0
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x405ac0
lea edi, [esp + 0xc8]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x405ad2
mov ax, word [0x59656c]
mov word [edi], ax
lea eax, [esp + 0xc8]
dec eax
jmp 0x405af0
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x405af0
mov ecx, dword [str.iNodeCmd.exe]
mov edx, dword [0x596cf8]
mov dword [eax], ecx
mov ecx, dword [0x596cfc]
mov dword [eax + 4], edx
mov dl, byte [0x596d00]
mov dword [eax + 8], ecx
mov byte [eax + 0xc], dl
lea eax, [esp + 0xc8]
push eax
push str.path_of_inode_cmd:__s
call fcn.00402730
lea ecx, [esp + 0xd0]
push ebx
push ecx
call fcn.0040a89a
add esp, 0x10
cmp eax, 0xffffffff
jne 0x405b60
pop edi
pop ebp
mov eax, 0xfffffffd
pop ebx
mov ecx, dword [esp + 0x3cc]
xor ecx, esp
call fcn.00409b58
add esp, 0x3d0
ret
lea edx, [esp + 0x88]
push edx
mov ecx, ebp
call fcn.00407b50
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x405b95
pop edi
pop ebp
mov eax, 0xfffffffc
pop ebx
mov ecx, dword [esp + 0x3cc]
xor ecx, esp
call fcn.00409b58
add esp, 0x3d0
ret
push 0x104
lea eax, [esp + 0x2d4]
push eax
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea ecx, [esp + 0x48]
push ecx
lea ebx, [esp + 0x8c]
call fcn.00408160
lea edx, [esp + 0x2d4]
push edx
lea eax, [esp + 0x50]
push eax
push str.iNodeCmd.exe
lea ecx, [esp + 0x1e0]
push str._c__s__h_1__u__s__f___sconfig.ini_
push ecx
call fcn.00409b67
lea edx, [esp + 0x1e8]
push edx
push str.cmd:__s
call fcn.00402730
add esp, 0x20
call fcn.00407730
test eax, eax
je 0x405c21
push 0
push esi
lea eax, [esp + 0x1d8]
push eax
push 0x596d54
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edi, eax
jmp 0x405c94
lea edx, [esp + 0xc]
lea ecx, [esp + 0x1d0]
push edx
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x1c], str.runas
mov dword [esp + 0x20], str.iNodeCmd.exe
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x405c8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
jne 0x405c7b
push str.failed_to_granted_elevated.
call fcn.00402730
add esp, 4
jmp 0x405c94
cmp eax, 2
jne 0x405c94
push str.faild_to_find_file.
call fcn.00402730
add esp, 4
jmp 0x405c94
mov edi, 0x29
mov ecx, dword [esp + 0x3d8]
mov eax, edi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00409b58
add esp, 0x3d0
ret
Function at 0x406ec0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x130
mov eax, dword [0x59a024]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
xor ebx, ebx
push esi
test edi, edi
jne 0x406ef8
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.00409b58
mov esp, ebp
pop ebp
ret
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x406ee2
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x406f47
nop
lea ecx, [esp + 0x2c]
push edi
push ecx
call fcn.00419585
add esp, 8
test eax, eax
je 0x406f43
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x406f20
jmp 0x406f47
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x134]
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00409b58
mov esp, ebp
pop ebp
ret

Function at 0x406f70
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
mov dword [esp + 4], 0
test eax, eax
je 0x40704f
test ebp, ebp
je 0x40704f
push ebx
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x406fb8
pop ebx
mov eax, 0xfffffffe
pop ebp
pop ecx
ret
push esi
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x406fde
push ebx
mov edi, 0xfffffffd
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret
lea eax, [edi + 1]
push eax
call fcn.00409d81
mov esi, eax
add esp, 4
test esi, esi
jne 0x407002
push ebx
lea edi, [eax - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret
push 0
lea ecx, [esp + 0x14]
push ecx
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x407032
cmp dword [esp + 0x10], edi
jne 0x407032
push ebx
mov byte [edi + esi], 0
mov dword [ebp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
pop ecx
ret
push esi
mov edi, 0xfffffffb
call fcn.00409ca4
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret
or eax, 0xffffffff
pop ebp
pop ecx
ret
Function at 0x407130
Capabilities:
Create directory

Disassembly:
sub esp, 0x10c
mov eax, dword [0x59a024]
xor eax, esp
mov dword [esp + 0x108], eax
push ebp
mov ebp, dword [esp + 0x114]
push esi
lea eax, [ebp + 3]
push 0x5c
push eax
call fcn.00409ef0
mov esi, eax
add esp, 8
test esi, esi
je 0x4071a5
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push edi
lea esp, [esp]
mov edi, esi
sub edi, ebp
push edi
lea ecx, [esp + 0x14]
push ebp
push ecx
call fcn.0040dc50
add esp, 0xc
push 0
lea edx, [esp + 0x14]
push edx
mov byte [esp + edi + 0x18], 0
call ebx
push 0x5c
inc esi
push esi
call fcn.00409ef0
mov esi, eax
add esp, 8
test esi, esi
jne 0x407170
pop edi
pop ebx
mov ecx, dword [esp + 0x110]
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.00409b58
add esp, 0x10c
ret

Function at 0x4071d0
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
sub esp, 0x25c
mov eax, dword [0x59a024]
xor eax, esp
mov dword [esp + 0x254], eax
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], 0xffffffff
test esi, esi
jne 0x4071fe
or eax, 0xffffffff
jmp 0x4072c4
push 0x597234
push esi
push str._s_s
lea eax, [esp + 0x164]
push 0x104
push eax
call fcn.0040a6a1
add esp, 0x14
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x15c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x407242
mov eax, 0xfffffffe
jmp 0x4072c4
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, edi
lea eax, [esp + 0x44]
push eax
push esi
push str._s_s
lea ecx, [esp + 0x164]
push 0x104
push ecx
call fcn.0040a6a1
mov eax, dword [esp + 0x2c]
add esp, 0x14
test al, 0x10
jne 0x40729c
test al, 1
je 0x40728a
and eax, 0xfffffffe
push eax
lea edx, [esp + 0x15c]
push edx
call ebx
lea eax, [esp + 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4072b7
lea ecx, [esp + 0x18]
push ecx
push edi
call ebp
test eax, eax
jne 0x407250
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x4072b7
xor esi, esi
jmp 0x4072bb
mov esi, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
mov ecx, dword [esp + 0x264]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00409b58
add esp, 0x25c
ret
Function at 0x4072e0
Capabilities:
Enumerate files on windows
Move file

Disassembly:
sub esp, 0x364
mov eax, dword [0x59a024]
xor eax, esp
mov dword [esp + 0x35c], eax
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], 0xffffffff
test esi, esi
je 0x407427
test edi, edi
je 0x407427
push 0x597234
push esi
push str._s_s
lea eax, [esp + 0x15c]
push 0x104
push eax
call fcn.0040a6a1
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x154]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x407366
mov eax, 0xfffffffe
pop esi
pop ebp
mov ecx, dword [esp + 0x35c]
xor ecx, esp
call fcn.00409b58
add esp, 0x364
ret
lea eax, [esp + 0x3c]
push eax
push esi
push str._s_s
lea ecx, [esp + 0x15c]
push 0x104
push ecx
call fcn.0040a6a1
lea edx, [esp + 0x50]
push edx
push edi
push str._s_s
lea eax, [esp + 0x278]
push 0x104
push eax
call fcn.0040a6a1
add esp, 0x28
test byte [esp + 0x10], 0x10
jne 0x4073c6
push 1
lea ecx, [esp + 0x25c]
push ecx
lea edx, [esp + 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x407403
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407366
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x407403
push ebp
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x35c]
xor ecx, esp
call fcn.00409b58
add esp, 0x364
ret
mov esi, dword [esp + 0xc]
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x35c]
xor ecx, esp
call fcn.00409b58
add esp, 0x364
ret
mov ecx, dword [esp + 0x364]
pop esi
pop ebp
xor ecx, esp
or eax, 0xffffffff
call fcn.00409b58
add esp, 0x364
ret

Function at 0x407730
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x59a024]
xor eax, esp
mov dword [esp + 0x9c], eax
push esi
push 0x9c
lea eax, [esp + 8]
push 0
push eax
call fcn.00412eb0
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x9c
call esi
test eax, eax
jne 0x407785
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x94
call esi
test eax, eax
je 0x4077ae
cmp dword [esp + 0x14], 2
jne 0x4077ae
cmp dword [esp + 8], 5
ja 0x4077ae
mov eax, 1
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.00409b58
add esp, 0xa0
ret
mov ecx, dword [esp + 0xa0]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00409b58
add esp, 0xa0
ret
Function at 0x4077d0
Capabilities:
Create process on windows
Set registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x59a024]
xor eax, esp
mov dword [esp + 0x10c], eax
call fcn.00407730
test eax, eax
jne 0x40780c
push eax
push str.CheckNetIsolation_LoopbackExempt__a__nMicrosoft.MicrosoftEdge_8wekyb3d8bbwe
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
jg 0x40780c
push eax
push str.WinExec_CheckNetIsolation_failed__error__d
call fcn.00402730
add esp, 8
push 0x105
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x407888
lea ecx, [esp + 4]
push 0x5c
push ecx
call fcn.0040aec0
add esp, 8
test eax, eax
je 0x407888
mov byte [eax + 1], 0
lea eax, [esp + 4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407840
sub eax, edx
cmp byte [esp + eax + 3], 0x5c
lea eax, [esp + eax + 3]
jne 0x407856
mov byte [eax], cl
lea edx, [esp]
push edx
push str.SOFTWARESSL_VPN_CLIENT
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4078a0
mov eax, 0xfffffffe
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00409b58
add esp, 0x110
ret
or eax, 0xffffffff
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00409b58
add esp, 0x110
ret
lea eax, [esp + 4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4078a7
mov ecx, dword [esp]
sub eax, edx
inc eax
push eax
lea eax, [esp + 8]
push eax
push 2
push 0
push str.INSTALL_DIR
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4078f2
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xfffffffd
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00409b58
add esp, 0x110
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10c]
xor ecx, esp
xor eax, eax
call fcn.00409b58
add esp, 0x110
ret
Function at 0x407a40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, eax
mov dword [esp + 8], 1
call fcn.00407920
mov edx, dword [esp + 0x14]
lea ecx, [esp + 4]
push ecx
push 0x20119
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
je 0x407a99
cmp esi, 2
jne 0x407a83
push str.No_such_key_in_RegOpenKeyEx.
call fcn.00402730
add esp, 4
push esi
push str.Open_reg_key_failed._Return:__d.
call fcn.00402730
add esp, 8
or eax, 0xffffffff
pop esi
add esp, 0xc
ret
push str.Open_reg_key_success.
call fcn.00402730
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 4
lea eax, [esp + 0xc]
push eax
push 0
lea ecx, [esp + 0x10]
push ecx
push 0
push edi
push edx
call esi
test eax, eax
jne 0x407b0a
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push edi
push eax
call esi
test eax, eax
jne 0x407b02
push str.Query_reg_key_value_success.
call fcn.00402730
mov ecx, dword [esp + 8]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
add esp, 0xc
ret
push eax
push str.Failed_to_get_reg_key_value._code:__d
jmp 0x407b11
push 0
push str.Failed_to_get_reg_key_length._code:__d
call fcn.00402730
mov ecx, dword [esp + 0xc]
add esp, 8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
add esp, 0xc
ret
Function at 0x408000
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
push esi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x408049
push str.GetNativeSystemInfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x408035
lea ecx, [esp + 4]
push ecx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x408054
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x408054
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [esp + 4]
pop esi
cmp ax, 9
je 0x40806f
cmp ax, 6
je 0x40806f
mov eax, 1
add esp, 0x24
ret
xor eax, eax
add esp, 0x24
ret

Function at 0x408080
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
push esi
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x4080ae
push str.Open_service_manager_failed.
call fcn.00402730
add esp, 4
or eax, 0xffffffff
pop esi
add esp, 0x1c
ret
push edi
push 4
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x4080dc
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push str.Open_service_handle_failed.
call fcn.00402730
add esp, 4
lea eax, [edi - 2]
pop edi
pop esi
add esp, 0x1c
ret
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x408111
call esi
push edi
call esi
push ebx
push str.Failed_to_get__s_status.
call fcn.00402730
add esp, 8
pop edi
mov eax, 0xfffffffd
pop esi
add esp, 0x1c
ret
cmp dword [esp + 0x10], 4
jne 0x408133
call esi
push edi
call esi
push ebx
push str._s_serivce_status_is_running.
call fcn.00402730
add esp, 8
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret
call esi
push edi
call esi
mov ecx, dword [esp + 0xc]
push ecx
push ebx
push str._s_serivce_status_is_not_running._code:__d
call fcn.00402730
add esp, 0xc
pop edi
mov eax, 0xfffffffc
pop esi
add esp, 0x1c
ret
Function at 0x4081d0
Capabilities:
Query environment variable
Write file on windows

Disassembly:
sub esp, 0x50c
mov eax, dword [0x59a024]
xor eax, esp
mov dword [esp + 0x508], eax
push ebx
push esi
push 0x3ff
xor ebx, ebx
lea eax, [esp + 0x115]
push ebx
push eax
mov esi, ecx
mov byte [esp + 0x11c], 0x30
call fcn.00412eb0
push 0x5969f8
push esi
call fcn.0040a750
mov esi, eax
add esp, 0x14
test esi, esi
je 0x408250
lea esp, [esp]
push 7
push str.cookie
push esi
call fcn.004196c9
add esp, 0xc
test eax, eax
jne 0x408237
lea ebx, [esi + 7]
push 0x5969f8
push 0
call fcn.0040a750
mov esi, eax
add esp, 8
test esi, esi
jne 0x408220
test ebx, ebx
jne 0x408277
push str.Cookie_is_NULL.
call fcn.00402730
add esp, 4
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.00409b58
add esp, 0x50c
ret
lea ecx, [esp + 0x110]
push ecx
call fcn.00408160
mov eax, str._AuthPara__r_n__ConnTypeSSLVPN_r_n__Cookie_s_r_n
add esp, 4
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408290
sub eax, edx
push edi
mov edi, eax
xor eax, eax
cmp byte [esp + 0x114], al
je 0x4082bb
jmp 0x4082b0
inc eax
cmp byte [esp + eax + 0x114], 0
jne 0x4082b0
add edi, eax
push edi
push str.Cookie_file_length:__d
call fcn.00402730
lea ebx, [edi + 1]
push ebx
call fcn.00409d81
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4082f5
pop edi
lea eax, [esi - 2]
pop esi
pop ebx
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.00409b58
add esp, 0x50c
ret
push ebx
push 0
push esi
call fcn.00412eb0
lea edx, [esp + 0x120]
push edx
push str._AuthPara__r_n__ConnTypeSSLVPN_r_n__Cookie_s_r_n
push esi
call fcn.00409b67
push esi
push str.cookie_file:__s
call fcn.00402730
add esp, 0x20
push 0x104
lea eax, [esp + 0x10]
push eax
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea eax, [esp + 0xc]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x408340
mov ecx, dword [str.cookie.ini]
mov edx, dword [0x5970ac]
mov dword [eax], ecx
mov ecx, dword [0x5970b0]
mov dword [eax + 4], edx
lea edx, [esp + 0xc]
push edx
push str.cookie_file_location:__s
mov dword [eax + 8], ecx
call fcn.00402730
lea eax, [esp + 0x14]
push 0x597550
push eax
call fcn.0040aea0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4083b7
push esi
call fcn.00409ca4
push str.open_file_failed.
call fcn.00402730
add esp, 8
pop edi
pop esi
lea eax, [ebx - 3]
pop ebx
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.00409b58
add esp, 0x50c
ret
push ebx
push 1
push edi
push esi
call fcn.0040b251
add esp, 0x10
cmp eax, 1
je 0x4083ff
push esi
call fcn.00409ca4
push str.write_config_failed.
call fcn.00402730
push ebx
call fcn.0040b073
add esp, 0xc
pop edi
pop esi
mov eax, 0xfffffffc
pop ebx
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.00409b58
add esp, 0x50c
ret
push ebx
call fcn.0040b073
push esi
call fcn.00409ca4
push str.create_cookie_file_success.
call fcn.00402730
mov ecx, dword [esp + 0x520]
add esp, 0xc
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00409b58
add esp, 0x50c
ret
Function at 0x409320
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x59a024]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
push ebx
push ebp
mov ebp, dword [esp + 0x40]
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov edi, ecx
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40937b
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00409b58
add esp, 0x30
ret
push esi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x40942b
push esi
mov dword [ebp], esi
call fcn.00409d81
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40942b
push 0
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x409422
cmp dword [esp + 0x10], esi
jne 0x409422
push 0x10
lea ecx, [esp + 0x1c]
push ecx
push esi
push ebp
call dword [sym.imp.SHLWAPI.dll_HashData]
test eax, eax
jl 0x409422
xor esi, esi
movzx edx, byte [esp + esi + 0x18]
push edx
push str._.2x
push edi
call fcn.00409b67
inc esi
add esp, 0xc
add edi, 2
cmp esi, 0x10
jl 0x4093d5
mov eax, dword [esp + 0x14]
push ebp
mov byte [eax + esi*2], 0
call fcn.00409ca4
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00409b58
add esp, 0x30
ret
push ebp
call fcn.00409ca4
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x3c]
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00409b58
add esp, 0x30
ret

Function at 0x409b58
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x59a024]
jne 0x409b62
repz ret
jmp fcn.0040b546

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x40a842
call fcn.0040c5a0
mov dword [eax], esi
call fcn.0040c58d
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0040c525
add esp, 0x14
push 0x16
pop eax
jmp 0x40a897
test dword [ebp + 0xc], 0xfffffff9
jne 0x40a81e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40a86f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040c5b3
pop ecx
call fcn.0040c58d
mov eax, dword [eax]
jmp 0x40a897
test al, 0x10
jne 0x40a895
test al, 1
je 0x40a895
test byte [ebp + 0xc], 2
je 0x40a895
call fcn.0040c5a0
mov dword [eax], 5
call fcn.0040c58d
mov dword [eax], 0xd
jmp 0x40a866
xor eax, eax
pop esi
pop ebp
ret
Function at 0x413870
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040f244
and dword [ebp - 4], 0
cmp dword [0x59fb64], 0
mov ebx, eax
jne 0x413921
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4139d2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4139d2
push eax
call fcn.0040f1d2
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x59fb64], eax
call esi
push eax
call fcn.0040f1d2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x59fb68], eax
call esi
push eax
call fcn.0040f1d2
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x59fb6c], eax
call esi
push eax
call fcn.0040f1d2
pop ecx
mov dword [0x59fb74], eax
test eax, eax
je 0x413921
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040f1d2
pop ecx
mov dword [0x59fb70], eax
mov eax, dword [0x59fb70]
cmp eax, ebx
je 0x413979
cmp dword [0x59fb74], ebx
je 0x413979
push eax
call fcn.0040f24d
push dword [0x59fb74]
mov esi, eax
call fcn.0040f24d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x413979
test edi, edi
je 0x413979
call esi
test eax, eax
je 0x413970
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x413970
test byte [ebp - 0xc], 1
jne 0x413979
or dword [ebp + 0x10], 0x200000
jmp 0x4139b2
mov eax, dword [0x59fb68]
cmp eax, ebx
je 0x4139b2
push eax
call fcn.0040f24d
pop ecx
test eax, eax
je 0x4139b2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4139b2
mov eax, dword [0x59fb6c]
cmp eax, ebx
je 0x4139b2
push eax
call fcn.0040f24d
pop ecx
test eax, eax
je 0x4139b2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x59fb64]
call fcn.0040f24d
pop ecx
test eax, eax
je 0x4139d2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4139d4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret