joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419710
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5fae30]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x24], esi
test ebx, ebx
je 0x4198a4
test esi, esi
je 0x4198a4
cmp dword [ebp + 0x14], 0
jne 0x4197e6
push 0x5aecf4
lea ecx, [ebp - 0x20]
mov dword [esi], 0
call fcn.00406802
cmp dword [ebp + 0x10], 0
je 0x419771
push 2
push 0x5aecfc
lea ecx, [ebp - 0x20]
call fcn.00403594
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x41977d
lea eax, [ebp - 0x20]
push eax
push ebx
call fcn.0054009f
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4197bb
mov ecx, dword [edi + 0x28]
test ecx, ecx
je 0x4197b2
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x4197b2
push ebx
push eax
push 1
push ecx
call fcn.0053ff67
xor ecx, ecx
add esp, 0x10
cmp eax, dword [edi + 0x2c]
sete cl
mov dword [esi], ecx
push ebx
call fcn.0053fd9c
add esp, 4
cmp dword [ebp - 0xc], 8
jb 0x41988f
mov edx, dword [ebp - 0x20]
push edx
call fcn.0053ed60
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053fd20
mov esp, ebp
pop ebp
ret 0x14
push 0x28
call fcn.0053f7d7
xor esi, esi
add esp, 4
cmp eax, esi
je 0x419808
mov dword [eax + 0x18], esi
xor ecx, ecx
mov dword [eax + 0x1c], 7
mov word [eax + 8], cx
mov esi, eax
cmp dword [ebp + 0x10], 0
mov eax, ebx
setne dl
mov byte [esi + 0x24], dl
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x419817
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esi + 8]
call fcn.00403594
cmp dword [edi + 0x28], 0
je 0x41985e
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x41985e
push eax
call fcn.0053e9b3
mov dword [esi], eax
mov ecx, dword [edi + 0x2c]
mov edx, dword [edi + 0x28]
push ecx
push edx
push eax
call fcn.0053f0e0
mov eax, dword [edi + 0x2c]
add esp, 0x10
mov dword [esi + 4], eax
jmp 0x41986b
mov dword [esi], 0
mov dword [esi + 4], 0
push 0
push esi
push 0x4022fc
call fcn.00404449
mov ecx, eax
call fcn.00407ecd
mov ecx, eax
call fcn.00533460
mov ecx, dword [ebp - 0x24]
mov dword [ecx], 1
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053fd20
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 0x80004003
pop ebx
call fcn.0053fd20
mov esp, ebp
pop ebp
ret 0x14
Function at 0x434d30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588c42
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x5fae30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x114]
xor ebx, ebx
push eax
mov dword [ebp - 0x134], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [ebp - 0x114]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x434d82
mov cx, word [0x5b1578]
lea eax, [ebp - 0x114]
mov word [edi], cx
dec eax
jmp 0x434da0
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x434da0
mov edx, dword [0x5b157c]
mov ecx, dword [0x5b1580]
mov dword [eax], edx
mov edx, dword [0x5b1584]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
lea eax, [ebp - 0x114]
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x434de1
sub eax, edx
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x130]
call fcn.00402a36
lea ecx, [ebp - 0x130]
push ecx
push esi
mov dword [ebp - 4], ebx
call fcn.00405097
add esp, 8
cmp dword [ebp - 0x11c], 0x10
jb 0x434e28
mov edx, dword [ebp - 0x130]
push edx
call fcn.0053ed60
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053fd20
mov esp, ebp
pop ebp
ret 4

Function at 0x434e50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588c75
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x5fae30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x134], ebx
cmp byte [ecx + 0x4a9], bl
jne 0x434e9b
push esi
call fcn.00406d20
jmp 0x434f3b
push 0x104
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x114]
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x434ed0
sub eax, edx
push eax
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x130]
call fcn.00402a36
push 0xa
push 0x5b1588
lea ecx, [ebp - 0x130]
mov dword [ebp - 4], ebx
call fcn.00403dd2
push 0xb
push str.ASProxy.ini
lea ecx, [ebp - 0x130]
call fcn.00403dd2
lea edx, [ebp - 0x130]
push edx
push esi
call fcn.00405097
add esp, 8
cmp dword [ebp - 0x11c], 0x10
jb 0x434f3b
mov eax, dword [ebp - 0x130]
push eax
call fcn.0053ed60
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053fd20
mov esp, ebp
pop ebp
ret 4
Function at 0x435b60
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5fae30]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov esi, ecx
mov byte [ebp - 0x108], 0
call fcn.005409b0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x435bce
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x435bb2
sub eax, edx
push eax
lea edx, [ebp - 0x108]
push edx
lea ecx, [esi + 0x4f4]
call fcn.00402a36
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0053fd20
mov esp, ebp
pop ebp
ret
Function at 0x436060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588f64
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x5fae30]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov ebx, ecx
xor eax, eax
mov ecx, 0x5fd6e8
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], eax
call fcn.00407eeb
mov esi, eax
test esi, esi
jne 0x4360d3
push 0x36
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], eax
push str.CDataManager::SaveStatistics___Failed_getting_the_data
mov ecx, edi
mov word [edi], ax
call fcn.00403594
mov eax, edi
jmp 0x436225
lea ecx, [ebp - 0x5c]
call fcn.0053cdb0
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00528b10
lea ecx, [ebp - 0x5c]
call fcn.0053cce0
test eax, eax
je 0x4361de
lea ecx, [ebp - 0x5c]
call fcn.0053ccf0
test eax, eax
je 0x4361de
lea ecx, [ebp - 0x5c]
call fcn.0053cce0
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x38], eax
call fcn.0053ccf0
lea edx, [ebp - 0x30]
push edx
mov ecx, ebx
mov dword [ebp - 0x3c], eax
call fcn.004078dd
cmp dword [eax + 0x14], 8
jb 0x436133
mov eax, dword [eax]
push 0x5b1690
push eax
call fcn.0054009f
add esp, 8
mov esi, eax
test esi, esi
sete bl
cmp dword [ebp - 0x1c], 8
jb 0x43615a
mov eax, dword [ebp - 0x30]
push eax
call fcn.0053ed60
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], cx
test bl, bl
je 0x4361a9
mov ecx, dword [ebp - 0x40]
lea edx, [ebp - 0x30]
push edx
call fcn.004078dd
push eax
push str.CDataManager::SaveStatistics___Failed_to_open_file:
push edi
mov byte [ebp - 4], 2
call fcn.0040858f
add esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.00406dfc
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0
call fcn.0053cdd0
mov eax, edi
jmp 0x436225
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
push esi
push eax
push 1
push ecx
call fcn.0053ff67
push esi
call fcn.0053fd9c
add esp, 0x14
push 0x5b1704
mov ecx, edi
call fcn.00406802
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0
call fcn.0053cdd0
mov eax, edi
jmp 0x436225
push 0x37
xor edx, edx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push str.CDataManager::SaveStatistics___Failed_serializing_data_
mov ecx, edi
mov word [edi], dx
call fcn.00403594
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0
call fcn.0053cdd0
mov eax, edi
jmp 0x436225
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0053fd20
mov esp, ebp
pop ebp
ret 4
Function at 0x456bc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5fae30]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5fcfd0], 0
mov dword [ebp - 0x230], str.getaddrinfo
mov dword [ebp - 0x22c], 0x403e68
mov dword [ebp - 0x228], str.getnameinfo
mov dword [ebp - 0x224], 0x406e38
mov dword [ebp - 0x220], str.freeaddrinfo
mov dword [ebp - 0x21c], fcn.0040276b
je 0x456c33
movzx eax, word [ebp + 8]
mov eax, dword [eax*8 + 0x5f76bc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053fd20
mov esp, ebp
pop ebp
ret 4
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x456d42
push ebx
push esi
push edi
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x110]
push 0x10c
push eax
call fcn.00541321
push str.ws2_32
lea ecx, [ebp - 0x110]
push 0x10c
push ecx
call fcn.00542803
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [ebp - 0x110]
push edx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x456caf
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x456cfb
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x110]
push 0x10c
push ecx
call fcn.00541321
push str.wship6
lea edx, [ebp - 0x110]
push 0x10c
push edx
call fcn.00542803
add esp, 0x18
lea eax, [ebp - 0x110]
push eax
call edi
mov esi, eax
test esi, esi
je 0x456d3f
push str.getaddrinfo
push esi
call ebx
test eax, eax
je 0x456d67
xor edi, edi
lea ecx, [ecx]
mov ecx, dword [ebp + edi*8 - 0x230]
push ecx
push esi
call ebx
mov dword [ebp + edi*8 - 0x22c], eax
test eax, eax
je 0x456d67
inc edi
cmp edi, 3
jl 0x456d00
mov edx, dword [ebp - 0x22c]
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x21c]
mov dword [0x5f76bc], edx
mov dword [0x5f76c4], eax
mov dword [fcn.0040276b], ecx
pop edi
pop esi
pop ebx
movzx edx, word [ebp + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [edx*8 + 0x5f76bc]
xor ecx, ebp
mov dword [0x5fcfd0], 1
call fcn.0053fd20
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x456d3f
Function at 0x4a1fb0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x593712
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x5fae30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xac], 0
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov dword [ebp - 0xb0], edi
mov byte [edi], 0
push 0xf0000020
push 1
push 0
push 0
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0xac], 1
mov dword [ebp - 0xa8], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4a20f9
mov edx, dword [ebp - 0xa4]
lea ecx, [ebp - 0xa0]
push ecx
push 0
push 0
push 0x8003
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4a20f0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xa0]
push 0
push eax
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4a20e7
mov ecx, dword [ebp - 0xa0]
push 0
lea edx, [ebp - 0xa8]
push edx
lea eax, [ebp - 0x9c]
push eax
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x4a20de
xor esi, esi
movzx edx, byte [ebp + esi - 0x9c]
push edx
lea eax, [ebp - 0x1c]
push str._02x
push eax
call fcn.0054264a
lea eax, [ebp - 0x1c]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a20c1
sub eax, edx
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, edi
call fcn.00403dd2
inc esi
cmp esi, 0x10
jl 0x4a20a1
jmp 0x4a2107
push 0x18
push str.Error_getting_hash_param
jmp 0x4a2100
push 0x12
push str.Error_hashing_data
jmp 0x4a2100
push 0x13
push str.Error_creating_hash
jmp 0x4a2100
push 0x17
push str.Error_acquiring_context
mov ecx, edi
call fcn.00402a36
mov edx, dword [ebp - 0xa0]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0xa4]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053fd20
mov esp, ebp
pop ebp
ret
Function at 0x4a4f70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x593ba8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5fae30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.0053cdb0
mov byte [ebp - 4], 1
xor esi, esi
cmp esi, 9
jae 0x4a4fcd
lea eax, [esi + esi*4]
mov edx, dword [edi + eax*4 + 4]
mov edx, dword [edx]
lea ecx, [edi + eax*4 + 4]
lea eax, [ebp - 0x2c]
push eax
call edx
inc esi
jmp 0x4a4fb2
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4a4fd8
mov eax, dword [eax]
push 0x5b6d44
push eax
call fcn.0054009f
mov esi, eax
add esp, 8
lea ecx, [ebp - 0x2c]
test esi, esi
jne 0x4a500d
mov byte [ebp - 4], al
call fcn.0053cdd0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.0053ccf0
lea ecx, [ebp - 0x2c]
mov dword [ebp + 8], eax
call fcn.0053cce0
lea ecx, [ebp - 0x2c]
mov ebx, eax
call fcn.0053ccf0
mov edi, eax
mov eax, dword [ebp + 8]
push esi
push eax
push 1
push ebx
call fcn.0053ff67
cmp eax, edi
push esi
sete bl
call fcn.0053fd9c
add esp, 0x14
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.0053cdd0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4a5070
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5fae30]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x210], 0
mov word [ebp - 0x20c], ax
push 0x104
cmp byte [ebp + 0xc], al
jne 0x4a50b3
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x4a5108
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x20c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4a50d0
mov ecx, dword [str.SysWOW64]
mov edx, dword [0x5b6d58]
mov dword [eax], ecx
mov ecx, dword [0x5b6d5c]
mov dword [eax + 4], edx
mov edx, dword [0x5b6d60]
mov dword [eax + 8], ecx
mov ecx, dword [0x5b6d64]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ecx
push esi
push edi
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a5113
mov edx, dword [0x5b6d68]
mov dword [edi], edx
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a5130
mov ecx, 7
mov esi, 0x5b6d6c
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
lea eax, [ebp - 0x20c]
pop edi
lea edx, [eax + 2]
pop esi
jmp 0x4a5170
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a5170
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, ebx
call fcn.00403594
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0053fd20
mov esp, ebp
pop ebp
ret 8
Function at 0x4a6920
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x593e75
mov eax, dword fs:[0]
push eax
sub esp, 0x410
mov eax, dword [0x5fae30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x41c], esi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
push 0x3ff
push eax
mov dword [ebp - 4], eax
mov byte [ebp - 0x410], al
lea eax, [ebp - 0x40f]
push eax
mov dword [ebp - 0x418], 1
call fcn.005409b0
add esp, 0xc
lea ecx, [ebp - 0x410]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
cmp byte [ebp - 0x410], 0
lea ebx, [ebp - 0x410]
mov dword [ebp - 0x414], ebx
je 0x4a6a8b
cmp byte [ebx], 0x41
je 0x4a6a6a
mov eax, dword [esi + 4]
cmp ebx, eax
jae 0x4a6a24
mov edx, dword [esi]
cmp edx, ebx
ja 0x4a6a24
mov ecx, dword [esi + 8]
mov edi, ebx
sub edi, edx
cmp eax, ecx
jne 0x4a6a14
sub eax, edx
cmp eax, 0xfffffffe
ja 0x4a6aab
inc eax
sub ecx, edx
cmp eax, ecx
jbe 0x4a6a14
mov edx, ecx
shr edx, 1
or ebx, 0xffffffff
sub ebx, edx
cmp ebx, ecx
jae 0x4a69fe
xor ecx, ecx
jmp 0x4a6a00
add ecx, edx
cmp ecx, eax
jae 0x4a6a06
mov ecx, eax
push ecx
mov ecx, esi
call fcn.00407e5a
mov ebx, dword [ebp - 0x414]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
test ecx, ecx
je 0x4a6a67
mov dl, byte [eax + edi]
mov byte [ecx], dl
jmp 0x4a6a67
mov ecx, dword [esi + 8]
cmp eax, ecx
jne 0x4a6a5c
mov edx, dword [esi]
sub eax, edx
cmp eax, 0xfffffffe
ja 0x4a6aab
inc eax
sub ecx, edx
cmp eax, ecx
jbe 0x4a6a5c
mov edx, ecx
shr edx, 1
or edi, 0xffffffff
sub edi, edx
cmp edi, ecx
jae 0x4a6a4c
xor ecx, ecx
jmp 0x4a6a4e
add ecx, edx
cmp ecx, eax
jae 0x4a6a54
mov ecx, eax
push ecx
mov ecx, esi
call fcn.00407e5a
mov eax, dword [esi + 4]
test eax, eax
je 0x4a6a67
mov cl, byte [ebx]
mov byte [eax], cl
inc dword [esi + 4]
mov eax, ebx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a6a70
sub eax, edx
lea ebx, [ebx + eax + 1]
mov dword [ebp - 0x414], ebx
cmp byte [ebx], cl
jne 0x4a69ba
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053fd20
mov esp, ebp
pop ebp
ret 4
push str.vector_T__too_long
call fcn.0053e79c
int3
Function at 0x4a6f20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x593f3d
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x5fae30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [str.ASProxy.log]
mov edx, dword [0x5b701c]
mov esi, ecx
mov ecx, dword [0x5b7018]
xor ebx, ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x128], 0xf
mov dword [ebp - 0x12c], ebx
mov byte [ebp - 0x13c], bl
lea eax, [ebp - 0x120]
push eax
push 0x104
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x120]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4a6fa0
sub eax, edx
push eax
lea ecx, [ebp - 0x120]
push ecx
lea ecx, [ebp - 0x13c]
call fcn.00402a36
lea eax, [ebp - 0x1c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4a6fc2
sub eax, edx
push eax
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x13c]
call fcn.00403dd2
push 0x38
call fcn.0053f7d7
add esp, 4
mov dword [ebp - 0x140], eax
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x4a6ffc
mov ecx, eax
call fcn.00537f30
jmp 0x4a6ffe
xor eax, eax
push 1
mov ecx, eax
mov byte [ebp - 4], bl
mov dword [esi + 0x10], eax
call fcn.00535300
mov ecx, dword [esi + 0x10]
lea eax, [ebp - 0x13c]
push eax
call fcn.00538090
cmp dword [ebp - 0x128], 0x10
jb 0x4a7034
mov ecx, dword [ebp - 0x13c]
push ecx
call fcn.0053ed60
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053fd20
mov esp, ebp
pop ebp
ret

Function at 0x4a72f0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594014
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x5fae30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x23c], eax
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], eax
mov dword [ebp - 0x240], esi
mov word [esi], cx
lea edx, [ebp - 0x238]
mov dword [ebp - 4], eax
push edx
lea eax, [ebp - 0x218]
push eax
push 2
mov dword [ebp - 0x23c], 1
mov dword [ebp - 0x238], 0x104
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x4a73a9
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x234]
push edx
call fcn.004042eb
add esp, 8
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.00403265
cmp dword [ebp - 0x220], 8
jb 0x4a73a9
mov eax, dword [ebp - 0x234]
push eax
call fcn.0053ed60
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053fd20
mov esp, ebp
pop ebp
ret 4
Function at 0x4a8d60
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594477
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x5fae30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
push edi
push 0x5b6de0
mov ecx, ebx
mov dword [ebp - 0x440], edi
call fcn.00403594
lea eax, [ebp - 0x440]
push eax
push esi
call fcn.00407de7
mov ecx, eax
xor esi, esi
add esp, 8
mov dword [ebp - 0x444], ecx
cmp ecx, esi
jne 0x4a8e23
push 0x2a
push str.GetProviders:_Unable_to_enumerate_catalog_
lea ecx, [ebp - 0x43c]
mov dword [ebp - 0x428], 0xf
mov dword [ebp - 0x42c], esi
mov byte [ebp - 0x43c], 0
call fcn.00402a36
push esi
lea ecx, [ebp - 0x43c]
push ecx
mov ecx, 0x5fd478
mov dword [ebp - 4], esi
call fcn.00403bd4
cmp dword [ebp - 0x428], 0x10
jb 0x4a8ef6
mov edx, dword [ebp - 0x43c]
push edx
call fcn.0053ed60
jmp 0x4a8ef3
mov eax, dword [ebp - 0x440]
cmp eax, esi
jle 0x4a8eed
lea esi, [ecx + 0x74]
mov dword [ebp - 0x440], eax
lea ebx, [ebx]
cmp dword [esi - 0x4c], 0
jne 0x4a8ed5
push 0x5b6e10
push esi
call fcn.00543260
add esp, 8
test eax, eax
jne 0x4a8ed2
lea eax, [ebp - 0x44c]
push eax
lea ecx, [ebp - 0x448]
push ecx
lea edx, [ebp - 0x420]
push edx
lea eax, [esi - 0x60]
push eax
or edi, 1
mov dword [ebp - 0x448], 0x103
call sub.WS2_32.dll_WSCGetProviderPath
cmp eax, 0xffffffff
je 0x4a8ed5
push 0x104
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4a8ed5
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a8eb2
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, ebx
call fcn.00403594
jmp 0x4a8ed5
or edi, 2
add esi, 0x274
dec dword [ebp - 0x440]
jne 0x4a8e40
mov ecx, dword [ebp - 0x444]
push ecx
call fcn.00540856
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053fd20
mov esp, ebp
pop ebp
ret