joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4028fd
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x410040]
xor eax, ebp
mov dword [ebp + 0x394], eax
push esi
push edi
xor edi, edi
push 0x40e
lea eax, [ebp - 0x7a]
push edi
push eax
mov esi, ecx
mov word [ebp - 0x7c], di
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push 0x1a
push edi
mov dword [ebp - 0x80], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x40294c
xor al, al
jmp 0x402985
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x40296d
cmp dword [ebp - 0x80], edi
je 0x402948
push dword [ebp - 0x80]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x402948
lea eax, [ebp - 0x7c]
call fcn.004019dd
cmp dword [ebp - 0x80], edi
je 0x402983
push dword [ebp - 0x80]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
mov ecx, dword [ebp + 0x394]
pop edi
xor ecx, ebp
pop esi
call fcn.0040b47e
add ebp, 0x398
leave
ret

Function at 0x40419d
Capabilities:
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x410040]
xor eax, ebp
mov dword [ebp + 0x190], eax
push esi
xor esi, esi
mov dword [edi], esi
cmp dword [0x41012c], esi
jne 0x404204
push 0x208
lea eax, [ebp - 0x7a]
push esi
push eax
mov word [ebp - 0x7c], si
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x80], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov word [ebp + 0x18a], si
lea eax, [ebp - 0x7c]
mov esi, 0x410118
call fcn.004019dd
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
mov eax, edi
pop esi
call fcn.0040b47e
add ebp, 0x194
leave
ret
Function at 0x404587
Capabilities:
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x410040]
xor eax, ebp
mov dword [ebp + 0x19c], eax
push ebx
xor ebx, ebx
cmp dword [0x410960], ebx
push esi
mov esi, ecx
jle 0x4045bd
inc dword [0x410960]
mov al, 1
jmp 0x404681
push edi
lea eax, [ebp - 0x78]
push eax
mov byte [ebp - 0x71], bl
mov dword [ebp - 0x78], ebx
call fcn.00404221
test al, al
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x404673
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [ebp - 0x80], eax
je 0x404673
push str.ImpersonateLoggedOnUser
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp - 0x78]
call eax
test eax, eax
je 0x40466a
mov eax, dword [esi]
inc dword [0x410960]
cmp eax, ebx
je 0x404617
push eax
call edi
mov dword [esi], ebx
mov eax, dword [ebp - 0x78]
mov dword [esi], eax
cmp dword [0x410148], ebx
mov dword [ebp - 0x78], ebx
mov byte [ebp - 0x71], 1
jne 0x40466a
push 0x208
lea eax, [ebp - 0x6e]
push ebx
push eax
mov word [ebp - 0x70], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x7c], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x70]
mov esi, 0x410134
mov word [ebp + 0x196], bx
call fcn.004019dd
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x78], ebx
je 0x40467d
push dword [ebp - 0x78]
call edi
mov al, byte [ebp - 0x71]
pop edi
mov ecx, dword [ebp + 0x19c]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b47e
add ebp, 0x1a0
leave
ret
Function at 0x404e8c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x410040]
xor eax, ebp
mov dword [ebp + 0x94], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x7c]
push 0
push eax
mov dword [ebp - 0x80], 0x114
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x404ee1
cmp dword [ebp - 0x7c], 5
jbe 0x404ed9
mov al, 1
jmp 0x404ee3
jne 0x404ee1
cmp dword [ebp - 0x78], 0
ja 0x404ed5
xor al, al
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.0040b47e
add ebp, 0x98
leave
ret

Function at 0x405990
Capabilities:
Create directory

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x4059a8
mov eax, dword [eax + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
ret
add eax, 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x40c5e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x410040]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
mov eax, dword [0x410040]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3c]
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
xor esi, esi
push ecx
xor ebx, ebx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], esi
mov word [esp + 0x18], si
call fcn.00401955
push 0x24
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], esi
call fcn.00405280
mov eax, dword [esp + 0x14]
mov esi, 8
add esp, 4
cmp dword [esp + 0x24], esi
jae 0x405e7a
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405e9d
cmp dword [esp + 0x24], esi
jb 0x405e99
mov edx, dword [esp + 0x10]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, 1
jmp 0x405eb2
cmp dword [esp + 0x24], esi
jb 0x405eb0
mov eax, dword [esp + 0x10]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0040b47e
add esp, 0x2c
ret
Function at 0x405ed0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x40c5e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x410040]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
mov eax, dword [0x410040]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3c]
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
xor esi, esi
push ecx
xor ebx, ebx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], esi
mov word [esp + 0x18], si
call fcn.00401955
push 0x24
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], esi
call fcn.00405280
mov eax, dword [esp + 0x14]
mov esi, 8
add esp, 4
cmp dword [esp + 0x24], esi
jae 0x405f4a
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405f71
test al, 0x10
jne 0x405f71
cmp dword [esp + 0x24], esi
jb 0x405f6d
mov edx, dword [esp + 0x10]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, 1
jmp 0x405f86
cmp dword [esp + 0x24], esi
jb 0x405f84
mov eax, dword [esp + 0x10]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0040b47e
add esp, 0x2c
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x40c5e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x410040]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
mov eax, dword [0x410040]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3c]
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
xor esi, esi
push ecx
xor ebx, ebx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], esi
mov word [esp + 0x18], si
call fcn.00401955
push 0x24
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], esi
call fcn.00405280
mov eax, dword [esp + 0x14]
mov esi, 8
add esp, 4
cmp dword [esp + 0x24], esi
jae 0x40602a
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406051
test al, 0x10
je 0x406051
cmp dword [esp + 0x24], esi
jb 0x40604d
mov edx, dword [esp + 0x10]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, 1
jmp 0x406066
cmp dword [esp + 0x24], esi
jb 0x406064
mov eax, dword [esp + 0x10]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0040b47e
add esp, 0x2c
ret
Function at 0x406090
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x40c7e8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x410040]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x410040]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x48]
mov eax, dword [ebp + 0x14]
xor edi, edi
test eax, eax
mov dword [esp + 0x14], eax
jbe 0x4061c3
cmp edi, dword [ebp + 0x14]
jbe 0x4060e2
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, 8
cmp dword [ebp + 0x18], ebx
lea esi, [ebp + 4]
jb 0x4060f3
mov eax, dword [esi]
jmp 0x4060f5
mov eax, esi
cmp word [eax + edi*2], 0x2f
je 0x40611d
cmp edi, dword [ebp + 0x14]
jbe 0x406107
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [ebp + 0x18], ebx
jb 0x406110
mov eax, dword [esi]
jmp 0x406112
mov eax, esi
cmp word [eax + edi*2], 0x5c
jne 0x4061b6
push edi
push ebp
xor ebx, ebx
lea esi, [esp + 0x20]
call fcn.00402259
xor esi, esi
mov dword [esp + 0x40], esi
cmp dword [esp + 0x2c], esi
jne 0x406145
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x30], 8
jmp 0x406196
lea ecx, [esp + 0x18]
push ecx
call fcn.00405e00
add esp, 4
test al, al
mov ebx, 8
jne 0x40618a
cmp dword [esp + 0x30], ebx
mov eax, dword [esp + 0x1c]
jae 0x406169
lea eax, [esp + 0x1c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40618a
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x30], ebx
jb 0x4061a5
mov edx, dword [esp + 0x1c]
push edx
jmp 0x40619d
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x30], ebx
jb 0x4061a5
mov eax, dword [esp + 0x1c]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], esi
mov word [esp + 0x1c], si
add edi, 1
cmp edi, dword [esp + 0x14]
jb 0x4060d7
push ebp
call fcn.00405e00
add esp, 4
test al, al
jne 0x4061ef
cmp dword [ebp + 0x18], 8
jb 0x4061db
mov eax, dword [ebp + 4]
jmp 0x4061de
lea eax, [ebp + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4061ef
xor al, al
jmp 0x4061f8
push ebp
call fcn.00405fb0
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0040b47e
add esp, 0x30
ret

Function at 0x406620
Capabilities:
Set file attributes

Disassembly:
and ecx, 0xffffb1af
cmp dword [eax + 0x18], 8
jb 0x40663d
mov eax, dword [eax + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret
add eax, 4
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret
Function at 0x406650
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x1c
push ebp
mov ebp, dword [esp + 0x24]
push esi
mov esi, 8
cmp dword [ebp + 0x18], esi
push edi
lea edi, [ebp + 4]
jb 0x40666b
mov eax, dword [edi]
jmp 0x40666d
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x406681
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x1c
ret
cmp dword [ebp + 0x18], esi
jb 0x40668a
mov eax, dword [edi]
jmp 0x40668c
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [esp + 0x2c], eax
je 0x406766
cmp dword [ebp + 0x18], esi
jb 0x4066a9
mov eax, dword [edi]
jmp 0x4066ab
mov eax, edi
push ebx
xor ebx, ebx
lea esi, [esp + 0x10]
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], bx
call fcn.004019dd
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x4066d7
lea eax, [esp + 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
test al, al
mov esi, 8
sete bl
cmp dword [esp + 0x28], esi
jb 0x406701
mov eax, dword [esp + 0x14]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
test bl, bl
pop ebx
jne 0x406766
cmp dword [ebp + 0x18], esi
jb 0x40670f
mov eax, dword [edi]
jmp 0x406711
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x406678
cmp dword [ebp + 0x18], esi
jb 0x406729
mov eax, dword [edi]
jmp 0x40672b
mov eax, edi
xor ecx, ecx
lea esi, [esp + 0xc]
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], ecx
mov word [esp + 0x10], cx
call fcn.004019dd
mov ecx, dword [esp + 0x2c]
mov eax, esi
call fcn.00406620
cmp dword [esp + 0x24], 8
jb 0x406766
mov ecx, dword [esp + 0x10]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x1c
ret

Function at 0x406770
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x410040]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push esi
mov esi, dword [esp + 0x21c]
push edi
push 0x20a
lea eax, [esp + 0x12]
push 0
push eax
mov ebx, ecx
mov edi, edx
mov word [esp + 0x18], 0
call sub.MSVCR80.dll_memset
mov eax, 8
add esp, 0xc
cmp dword [edi + 0x18], eax
jb 0x4067bc
mov edi, dword [edi + 4]
jmp 0x4067bf
add edi, 4
cmp dword [ebx + 0x18], eax
jb 0x4067c9
mov ebx, dword [ebx + 4]
jmp 0x4067cc
add ebx, 4
lea ecx, [esp + 0xc]
push ecx
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jbe 0x40680c
lea eax, [esp + 0xc]
mov word [esp + 0x216], 0
call fcn.004019dd
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0040b47e
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebx
xor ecx, esp
xor al, al
call fcn.0040b47e
add esp, 0x210
ret
Function at 0x406919
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x20], 8
mov esi, ecx
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
jae 0x406938
lea eax, [ebp + 0xc]
lea ecx, [ebp - 8]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
cmp ebx, edi
jne 0x40695a
push edi
push 1
lea esi, [ebp + 8]
call fcn.00401a4c
xor al, al
pop edi
pop esi
pop ebx
leave
ret
push ebx
call dword [sym.imp.MSVCR80.dll_malloc]
mov edi, eax
test edi, edi
pop ecx
jne 0x40696b
push eax
jmp 0x406949
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x406977
lea eax, [ebp + 0xc]
push edi
push ebx
push dword [ebp - 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x4069a0
xor bl, bl
push edi
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
push 0
push 1
lea esi, [ebp + 8]
call fcn.00401a4c
mov al, bl
jmp 0x406955
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x40d95c
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x406986
mov eax, dword [ebp - 4]
mov cx, word [eax + 0xa]
mov word [esi], cx
mov cx, word [eax + 8]
mov word [esi + 2], cx
mov cx, word [eax + 0xe]
mov word [esi + 4], cx
mov ax, word [eax + 0xc]
mov word [esi + 6], ax
mov bl, 1
jmp 0x406988

Function at 0x4069dd
Capabilities:
Check os version

Disassembly:
push 0x134
mov eax, 0x40c187
call fcn.0040b91d
push pe_nt_image_headers32
xor ebx, ebx
lea eax, [ebp - 0x13c]
push ebx
push eax
mov dword [ebp - 0x140], 0x114
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x140]
push eax
mov word [ebp - 0x12c], bx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp eax, ebx
je 0x406a8d
cmp dword [ebp - 0x13c], 5
jne 0x406a8d
cmp dword [ebp - 0x138], 1
jne 0x406a8d
lea eax, [ebp - 0x12c]
lea ecx, [ebp - 0x2c]
call fcn.00401789
lea esi, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.004050e0
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x406a5c
lea ecx, [ebp - 0x28]
cmp ecx, ebx
je 0x406a7d
mov eax, 0x40d960
call fcn.00404f40
cmp al, bl
je 0x406a7d
push ebx
push 1
lea esi, [ebp - 0x2c]
call fcn.00401a4c
mov al, 1
jmp 0x406a8f
cmp dword [ebp - 0x18], ebx
push ebx
lea esi, [ebp - 0x2c]
push 1
je 0x406a74
call fcn.00401a4c
xor al, al
call fcn.0040b9a0
ret
Function at 0x407460
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x40c151
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x410040]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
mov eax, dword [0x410040]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x10], esi
mov dword [esi + 0x1048], ebx
mov dword [esi + 0x104c], ebx
mov dword [esi + 0x1050], ebx
push 0x410
push ebx
push esi
mov dword [esp + 0x144], ebx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x410
lea eax, [esi + 0x410]
push ebx
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x400
lea ecx, [esi + 0x820]
push ebx
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x410
lea edx, [esi + 0xc20]
push ebx
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
push pe_nt_image_headers32
lea eax, [esp + 0x1c]
push ebx
push eax
mov byte [esi + 0x1030], bl
mov byte [esi + 0x1031], bl
mov dword [esi + 0x1034], ebx
mov byte [esi + 0x1032], bl
mov byte [esi + 0x1038], 1
mov dword [esp + 0x20], 0x114
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40755f
cmp dword [esp + 0x18], 6
jb 0x40755f
mov byte [esi + 0x1032], 1
call fcn.00407620
mov ecx, esi
call fcn.00408720
mov eax, esi
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.0040b47e
add esp, 0x130
ret
Function at 0x408720
Capabilities:
Get hostname
Get session user name

Disassembly:
sub esp, 0x434
mov eax, dword [0x410040]
xor eax, esp
mov dword [esp + 0x430], eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00408430
lea ecx, [esi + 0xc20]
mov eax, ecx
lea ebx, [eax + 2]
xor edi, edi
lea esp, [esp]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x408750
sub eax, ebx
sar eax, 1
je 0x40876d
lea eax, [esi + 0x1044]
push eax
call fcn.004088f0
push 0x208
lea ecx, [esp + 0x232]
push edi
push ecx
mov word [esp + 0x238], di
call sub.MSVCR80.dll_memset
add esp, 0xc
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x230]
mov ebx, 0x104
push eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0x208
lea ecx, [esp + 0x22]
push edi
push ecx
mov word [esp + 0x43e], di
mov word [esp + 0x28], di
call sub.MSVCR80.dll_memset
add esp, 0xc
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, dword [esi + 0x1048]
add esi, 0x1044
cmp eax, edi
mov word [esp + 0x222], di
je 0x40880d
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x9ad70599
imul ecx
add edx, ecx
sar edx, 0xa
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x408842
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x408814
sub eax, edx
sar eax, 1
push 1
add eax, 1
push eax
lea edx, [esp + 0x234]
push edx
push edi
mov edx, esi
lea ecx, [esp + 0x2c]
call fcn.004081c0
jmp 0x4088d4
mov eax, dword [esi + 4]
cmp eax, edi
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
je 0x408869
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x9ad70599
imul ecx
add edx, ecx
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x40886b
call ebx
mov edi, dword [esi + 4]
cmp byte [edi + 0x69c], 1
je 0x40887e
mov ebp, dword [esi + 8]
cmp edi, ebp
jmp 0x4088b1
mov ebp, dword [sym.imp.MSVCR80.dll__wcsicmp]
lea ecx, [esp + 0x22c]
push ecx
push edi
call ebp
add esp, 8
test eax, eax
jne 0x4088ab
lea edx, [esp + 0x1c]
push edx
add edi, 0x280
push edi
call ebp
add esp, 8
test eax, eax
je 0x4088d4
mov ebp, dword [esi + 8]
cmp dword [esi + 4], ebp
jbe 0x4088b5
call ebx
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
jbe 0x4088bf
call ebx
cmp edi, ebp
je 0x4088d4
mov ebx, dword [esi + 8]
push edi
mov eax, ebp
call fcn.0040a160
mov dword [esi + 8], eax
add esp, 4
mov ecx, dword [esp + 0x440]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040b47e
add esp, 0x434
ret
Function at 0x4088f0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x40c120
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov eax, dword [0x410040]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
cmp esi, edi
je 0x408af5
push edi
push 0x80
push 3
push edi
push edi
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x408af5
push edi
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x7c], edi
push esi
lea edx, [esp + 0x18]
lea ecx, [esp + 0x28]
lea esi, [esp + 0x20]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call fcn.00408100
test al, al
je 0x4089fd
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov ecx, esi
add ecx, 0xffffffff
mov eax, ebp
adc eax, 0xffffffff
cmp eax, edi
ja 0x4089fd
jb 0x4089ac
cmp ecx, 0xffffe
ja 0x4089fd
mov eax, esi
lea ecx, [esp + 0x30]
call fcn.00409740
mov eax, dword [esp + 0x34]
cmp eax, edi
mov dword [esp + 0x14], edi
je 0x4089cb
mov ecx, dword [esp + 0x38]
sub ecx, eax
jne 0x4089d5
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x34]
push edi
lea edx, [esp + 0x18]
push edx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
xor ecx, ecx
cmp ecx, ebp
ja 0x4089fd
jb 0x4089f4
cmp eax, esi
jae 0x4089fd
lea ecx, [esp + 0x30]
call fcn.00409740
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x34]
cmp esi, edi
je 0x408af5
mov ebx, dword [esp + 0x38]
sub ebx, esi
jne 0x408a26
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x408af5
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
lea eax, [esp + 0x50]
mov byte [esp + 0x7c], 1
call fcn.0040a300
cmp ebx, edi
ja 0x408a4e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x40]
push eax
push esi
lea ecx, [esp + 0x58]
push ecx
mov ecx, ebx
call fcn.0040a380
test al, al
je 0x408ae3
mov ebx, dword [esp + 0x44]
cmp ebx, edi
mov ecx, dword [esp + 0x48]
jne 0x408a74
xor esi, esi
jmp 0x408a78
mov esi, ecx
sub esi, ebx
mov eax, 0x35ae0b31
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0xa
imul eax, eax, 0x69d
sub esi, eax
jne 0x408ae3
cmp ebx, edi
jne 0x408a9c
xor ecx, ecx
jmp 0x408a9e
sub ecx, ebx
mov eax, 0x35ae0b31
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 0xa
mov esi, ecx
je 0x408ae3
mov ebx, dword [esp + 0x84]
push esi
push ebx
call fcn.00409590
imul esi, esi, 0x69d
push esi
lea esi, [esp + 0x44]
call fcn.00409810
push eax
xor edi, edi
mov esi, ebx
call fcn.00409660
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
lea esi, [esp + 0x40]
call fcn.00409560
lea esi, [esp + 0x30]
call fcn.00409560
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 4