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

Disassembly:
sub esp, 0x1c
push esi
mov esi, ecx
mov eax, dword [esi + 0x48]
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 0x18], esi
je 0x4d38eb
lea ecx, [esp + 0xc]
push ecx
push eax
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0xc], 0x103
je 0x4d38eb
mov edx, dword [esi + 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x48], edi
cmp dword [esi + 0x48], edi
jne 0x4d3a59
mov eax, dword [esi + 0x3c]
push ebp
mov ebp, dword [eax]
cmp ebp, eax
mov dword [esp + 0xc], ebp
je 0x4d3a58
push ebx
jmp 0x4d3910
mov ebp, dword [esp + 0x10]
lea ecx, [ecx]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 0xc]
test eax, eax
ja 0x4d3946
jb 0x4d3925
cmp dword [ebx + 8], 0x40000
ja 0x4d3946
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x14]
add ecx, 0x7530
cmp eax, ecx
jae 0x4d3946
lea ecx, [esp + 0x10]
call fcn.004454c0
jmp 0x4d3a4a
mov edi, dword [ebx]
mov edx, dword [ebx + 4]
mov eax, edi
mov cl, 0x20
call fcn.0057c2c0
push 0
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x58]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebx + 8]
push ecx
call fcn.004a2c90
mov ecx, eax
call fcn.0048c8b0
mov edi, eax
mov eax, dword [ebx + 0x10]
test eax, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], 0
je 0x4d39ec
nop
mov ebp, dword [ebx + 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x10], edx
mov ecx, dword [ebp + 4]
mov esi, dword [ebp]
mov edx, ecx
add edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov edi, dword [esp + 0x14]
mov ecx, dword [ebp]
add edi, eax
push ecx
mov dword [esp + 0x18], edi
call fcn.004a2c90
mov ecx, eax
call fcn.0048c9d0
push ebp
call fcn.005abee6
mov eax, dword [ebx + 0x10]
mov edi, dword [esp + 0x1c]
add esp, 4
test eax, eax
jne 0x4d3990
mov esi, dword [esp + 0x20]
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x58]
push 0
lea edx, [esp + 0x28]
push edx
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call fcn.004a2c90
mov ecx, eax
call fcn.0048c9d0
mov edx, dword [ebx + 8]
mov edi, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
sub edi, edx
mov dword [esi + 0x30], edi
mov eax, dword [ebx + 0xc]
sbb ecx, eax
push ebx
mov dword [esi + 0x34], ecx
call fcn.005abee6
add esp, 4
push ebp
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esi + 0x38]
call fcn.004a3580
mov edx, dword [eax]
mov eax, dword [esi + 0x28]
dec eax
mov dword [esp + 0x10], edx
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 0x3c]
jne 0x4d3909
pop ebx
pop ebp
pop edi
pop esi
add esp, 0x1c
ret
Function at 0x4d3ea0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5d4cc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x6613ec]
push ebx
push esi
push edi
push 1
add eax, 4
mov esi, ecx
push eax
lea ecx, [esp + 0x20]
call fcn.005789d4
xor ebx, ebx
mov dword [esp + 0x2c], ebx
cmp dword [esi + 0x48], ebx
jne 0x4d3efa
cmp dword [esi + 0x18], ebx
jne 0x4d3efa
lea ecx, [esp + 0xc]
push ecx
push ebx
push esi
push 0x4d3060
push ebx
push ebx
call fcn.0057c9ce
add esp, 0x18
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x48]
cmp eax, ebx
je 0x4d3f28
lea edx, [esp + 0xc]
push edx
push eax
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0xc], 0x103
je 0x4d3f28
mov eax, dword [esi + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x48], ebx
mov edi, dword [esp + 0x48]
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov ecx, dword [esi + 0x58]
or eax, 0xffffffff
cmp ecx, eax
je 0x4d3f40
cmp dword [esi + 0x5c], ebx
jne 0x4d3f63
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x18]
call fcn.0057897a
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0x18
mov edx, dword [esp + 0x44]
push ebp
mov ebp, dword [esp + 0x44]
mov ecx, ebp
or ecx, edx
jne 0x4d3f99
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x1c]
call fcn.0057897a
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0x18
mov ecx, esi
call fcn.004d38b0
mov ecx, dword [0x6613bc]
mov ebx, dword [ecx + 0x524]
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x30]
xor ecx, ecx
cmp eax, ecx
jb 0x4d4020
ja 0x4d3fbe
cmp edx, ebx
jb 0x4d4020
mov eax, dword [esi + 0x48]
test eax, eax
jne 0x4d4020
mov ecx, dword [0x6613ec]
push esi
call fcn.004d2f40
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov cl, 0x20
call fcn.0057c2c0
mov ecx, dword [esi + 0x58]
push 0
lea edx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x40]
mov ecx, dword [esi + 0x58]
push 0
lea edx, [esp + 0x1c]
push edx
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x18]
mov esi, eax
mov dword [edi], edx
mov dword [edi + 4], 0
jmp 0x4d4056
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x3c]
push ecx
push ebp
push edx
push eax
lea ecx, [esi + 0x28]
call fcn.004a3e80
mov dword [edi], eax
mov eax, edx
test eax, eax
mov dword [edi + 4], edx
ja 0x4d404d
cmp dword [edi], 0
jbe 0x4d4054
mov esi, 1
jmp 0x4d4056
xor esi, esi
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0057897a
mov ecx, dword [esp + 0x28]
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0x18
Function at 0x4d4420
Capabilities:
Terminate thread

Disassembly:
push ecx
push ebp
push edi
mov edi, ecx
mov eax, dword [edi + 0x18]
xor ebp, ebp
cmp eax, ebp
je 0x4d44bb
push ebx
push esi
push ebp
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [edi + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x1e
mov eax, dword [edi + 0x18]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x4d447a
cmp dword [esp + 0x10], 0x103
jne 0x4d447a
push 0x64
call ebx
dec esi
cmp esi, ebp
jg 0x4d4454
cmp esi, ebp
jne 0x4d448d
mov ecx, dword [edi + 0x18]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x64
call ebx
mov dword [edi + 0x18], ebp
mov eax, dword [0x6613c0]
cmp eax, ebp
pop esi
pop ebx
je 0x4d44a7
mov dword [eax + 0xc], ebp
mov edx, dword [0x6613c0]
mov dword [edx + 0x10], ebp
mov eax, dword [0x6613c4]
cmp eax, ebp
je 0x4d44bb
mov dword [eax + 4], ebp
mov eax, dword [0x6613c4]
mov dword [eax + 8], ebp
pop edi
pop ebp
pop ecx
ret

Function at 0x4d4bd0
Capabilities:
Create udp socket

Disassembly:
sub esp, 0x14
mov eax, dword [0x64aa84]
push esi
push 0x11
push 2
push 2
mov dword [esp + 0x20], eax
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0xf4], eax
pop esi
jne 0x4d4c06
xor eax, eax
mov ecx, dword [esp + 0x10]
call fcn.0057981f
add esp, 0x14
ret
xor ecx, ecx
mov dword [esp], ecx
push 0x10
mov dword [esp + 8], ecx
lea edx, [esp + 4]
mov dword [esp + 0xc], ecx
push edx
push eax
mov dword [esp + 0x18], ecx
mov word [esp + 0xc], 2
mov word [esp + 0xe], cx
mov dword [esp + 0x10], ecx
call dword [sym.imp.WS2_32.dll_bind]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
mov ecx, dword [esp + 0x10]
call fcn.0057981f
add esp, 0x14
ret

Function at 0x4d4c50
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [esp + 0x114]
push esi
cdq
mov esi, 0x3e8
idiv esi
mov ecx, dword [esp + 0x114]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 1
imul edx, edx, 0x3e8
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
push 0
mov dword [esp + 0x10], edx
push 0
lea edx, [esp + 0x18]
push edx
inc ecx
push ecx
call dword [sym.imp.WS2_32.dll_select]
xor ecx, ecx
test eax, eax
setg cl
pop esi
mov eax, ecx
add esp, 0x10c
ret 8
Function at 0x4d5930
Capabilities:
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x5d4e5a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push 0x100
call fcn.005abebb
add esp, 4
mov dword [esp + 4], eax
xor esi, esi
mov dword [esp + 0x10], esi
cmp eax, esi
je 0x4d5975
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
mov ecx, eax
call fcn.004d5610
mov esi, eax
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esi + 0x28]
push eax
mov dword [esi + 0xf0], 0x2000000
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4d59b0
Capabilities:
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x5d4e5a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push 0x100
call fcn.005abebb
add esp, 4
mov dword [esp + 4], eax
xor esi, esi
mov dword [esp + 0x10], esi
cmp eax, esi
je 0x4d59f5
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
mov ecx, eax
call fcn.004d5610
mov esi, eax
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esi + 0x28]
push eax
mov dword [esi + 0xf0], 0x3000000
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4d5a30
Capabilities:
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x5d4e5a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push 0x100
call fcn.005abebb
add esp, 4
mov dword [esp + 4], eax
mov dword [esp + 0x10], 0
test eax, eax
je 0x4d5a79
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
mov ecx, eax
call fcn.004d5610
mov esi, eax
jmp 0x4d5a7b
xor esi, esi
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esi + 0x28]
push eax
mov dword [esi + 0xf0], 0
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4d5ab0
Capabilities:
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x5d4e5a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push 0x100
call fcn.005abebb
add esp, 4
mov dword [esp + 4], eax
xor esi, esi
mov dword [esp + 0x10], esi
cmp eax, esi
je 0x4d5af5
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
mov ecx, eax
call fcn.004d5610
mov esi, eax
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esi + 0x28]
push eax
mov dword [esi + 0xf0], 0x1000000
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4d5d40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5d4f21
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x24]
mov dword [esp + 0x10], esi
mov dword [esi], 0x5fb8b0
mov dword [esp + 0x14], edi
call fcn.005afeed
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x20], 1
lea ebx, [esi + 0x28]
mov dword [esp + 0x14], ebx
call fcn.005afeed
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov byte [esp + 0x20], 3
lea ebp, [esi + 0x44]
push 0xa
mov ecx, ebp
call fcn.005a9fc7
mov byte [esp + 0x20], 4
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x14]
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x30]
test ecx, ecx
jne 0x4d5dcc
xor eax, eax
jmp 0x4d5dd9
push ecx
call fcn.0057a0fd
mov ecx, dword [esp + 0x34]
add esp, 4
push eax
push ecx
mov ecx, edi
call fcn.004053c0
mov edi, dword [esp + 0x34]
test edi, edi
jne 0x4d5dee
xor eax, eax
jmp 0x4d5df7
push edi
call fcn.0057a0fd
add esp, 4
push eax
push edi
mov ecx, ebx
call fcn.004053c0
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0x30], edx
mov dword [esi + 0x34], eax
xor eax, eax
xor edx, edx
cmp ecx, edx
setne al
cmp eax, edx
mov dword [esi + 0xc], eax
je 0x4d5e41
mov edi, dword [ecx]
lea eax, [esi + 0x10]
mov dword [eax], edi
mov edi, dword [ecx + 4]
mov dword [eax + 4], edi
mov edi, dword [ecx + 8]
mov dword [eax + 8], edi
mov edi, dword [ecx + 0xc]
mov dword [eax + 0xc], edi
mov ecx, dword [ecx + 0x10]
mov dword [eax + 0x10], ecx
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], edx
mov edx, dword [esp + 0x28]
push edx
mov ecx, ebp
call fcn.005aa075
mov dword [esp + 0x20], 0xffffffff
mov ecx, dword [esp + 0x18]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x18
Function at 0x4d8a60
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5d51c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
push 0xa
lea ecx, [esi + 0x58]
mov dword [esp + 0xc], esi
mov dword [esi], 0x5fbb78
call fcn.005a9fc7
xor edi, edi
mov dword [esp + 0x14], edi
push edi
push edi
push edi
lea ecx, [esi + 0x74]
call fcn.005788a0
mov byte [esp + 0x14], 1
mov eax, 0x2000
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esp + 0x14], 0xffffffff
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4dff40
Capabilities:
Resume thread

Disassembly:
push esi
push edi
push 0
mov esi, ecx
push 1
lea edi, [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x4dff89
lea eax, [esi + 0x40]
push eax
push 4
push esi
push 0x4dff30
push 0
push 0
call fcn.0057c9ce
add esp, 0x18
test eax, eax
mov dword [esi + 0x3c], eax
jne 0x4dff82
push eax
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop edi
xor al, al
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
mov al, 1
pop esi
ret

Function at 0x4e21c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5d57de
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push esi
mov esi, ecx
push 1
lea eax, [esi + 4]
push eax
lea ecx, [esp + 0x1c]
call fcn.005789d4
xor ebx, ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
call fcn.005afeed
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
mov byte [esp + 0x90], 2
lea ecx, [esp + 0x20]
call fcn.005b0991
mov byte [esp + 0x90], 3
mov eax, dword [esi + 0xc]
mov ecx, dword [0x6615ec]
inc eax
push eax
push ecx
lea edx, [esp + 0x10]
push str._sDataurlinfo_i.dat
push edx
call fcn.0040a170
mov edx, dword [esi + 0xc]
mov ecx, dword [esp + 0x18]
add esp, 0x10
xor eax, eax
cmp edx, ebx
sete al
push ebx
push 0x1001
push ecx
lea ecx, [esp + 0x2c]
mov dword [esi + 0xc], eax
call fcn.005b0c2d
test eax, eax
jne 0x4e22bc
mov byte [esp + 0x90], 2
lea ecx, [esp + 0x20]
call fcn.005b09d0
mov byte [esp + 0x90], bl
lea ecx, [esp + 8]
call fcn.00401b70
mov dword [esp + 0x90], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.0057897a
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
add esp, 0x8c
ret
push 8
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x28]
call fcn.005b06e4
push ebx
push 0xa000
push ebx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x50]
call fcn.005b4f13
mov byte [esp + 0x90], 4
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
call fcn.004e1830
lea ecx, [esp + 0x40]
call fcn.005b4d7a
lea ecx, [esp + 0x20]
call fcn.005b07ca
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x2c]
call fcn.005b072f
push 8
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x28]
call fcn.005b06e4
lea ecx, [esp + 0x20]
call fcn.005b092f
mov byte [esp + 0x90], 3
lea ecx, [esp + 0x40]
call fcn.005b4ece
mov byte [esp + 0x90], 2
lea ecx, [esp + 0x20]
call fcn.005b09d0
mov byte [esp + 0x90], bl
lea ecx, [esp + 8]
call fcn.00401b70
mov dword [esp + 0x90], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.0057897a
mov ecx, dword [esp + 0x88]
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x8c
ret

Function at 0x4e27f0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x20
lea eax, [esp]
push eax
mov dword [esp + 4], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 8]
add esp, 0x20
ret
Function at 0x4e4810
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5d5d48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 8]
call fcn.00401f30
mov byte [esp + 0x10], 1
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
mov byte [esp + 0x10], 0
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e4870
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp esi, 0xffffffff
jne 0x4e4894
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x18]
call fcn.00401b70
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
shr esi, 0xc
and esi, 1
mov dword [esp + 0x10], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00401b70
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4e48c0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5d5d18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0xc]
call fcn.00401f30
mov byte [esp + 0x14], 1
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
mov byte [esp + 0x14], bl
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e491e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp esi, 0xffffffff
jne 0x4e4943
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x1c]
call fcn.00401b70
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
cmp dword [esp + 0x20], ebx
je 0x4e4964
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0xc]
call fcn.00401f30
mov byte [esp + 0x14], 3
or esi, 0x1000
jmp 0x4e497d
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0xc]
call fcn.00401f30
mov byte [esp + 0x14], 4
and esi, 0xffffefff
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, eax
mov byte [esp + 0x14], bl
lea ecx, [esp + 8]
call fcn.00401b70
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00401b70
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4e49c0
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5d5d48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0xc]
call fcn.00401f30
mov byte [esp + 0x14], 1
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
mov byte [esp + 0x14], bl
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e4a1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp esi, 0xffffffff
jne 0x4e4a43
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x1c]
call fcn.00401b70
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ebx, esi
shr ebx, 4
not bl
and bl, 1
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00401b70
mov ecx, dword [esp + 0xc]
pop esi
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4e4a80
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5d5d48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0xc]
call fcn.00401f30
mov byte [esp + 0x14], 1
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
mov byte [esp + 0x14], bl
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e4ade
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp esi, 0xffffffff
jne 0x4e4b03
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x1c]
call fcn.00401b70
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ebx, esi
shr ebx, 4
and bl, 1
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00401b70
mov ecx, dword [esp + 0xc]
pop esi
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4e5000
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 0xffffffffffffffff
push 0x5d5e53
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov eax, dword [0x64aa84]
push ebx
mov dword [esp + 0x210], eax
push esi
xor ebx, ebx
mov dword [esp + 0x220], ebx
lea ecx, [esp + 0x228]
call fcn.0041ce00
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push ebx
push 0x26
lea eax, [esp + 0x14]
push eax
push ebx
call esi
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xc]
call fcn.00406630
mov byte [esp + 0x220], 1
lea ecx, [esp + 8]
call fcn.0041ce00
mov ecx, dword [esp + 8]
cmp ecx, ebx
je 0x4e509d
mov eax, dword [esp + 0x228]
cmp dword [eax - 0xc], ebx
jl 0x4e509d
push ecx
push eax
call fcn.0057aad0
add esp, 8
cmp eax, ebx
je 0x4e509d
sub eax, dword [esp + 0x228]
sar eax, 1
cmp eax, ebx
je 0x4e50e0
push ebx
push 0x25
lea edx, [esp + 0x14]
push edx
push ebx
call esi
lea ecx, [esp + 8]
call fcn.0041ce00
mov ecx, dword [esp + 8]
cmp ecx, ebx
je 0x4e510e
mov eax, dword [esp + 0x228]
cmp dword [eax - 0xc], ebx
jl 0x4e510e
push ecx
push eax
call fcn.0057aad0
add esp, 8
cmp eax, ebx
je 0x4e510e
sub eax, dword [esp + 0x228]
sar eax, 1
cmp eax, ebx
jne 0x4e510e
mov byte [esp + 0x220], bl
lea ecx, [esp + 8]
call fcn.00401b70
mov dword [esp + 0x220], 0xffffffff
lea ecx, [esp + 0x228]
call fcn.00401b70
mov eax, 1
jmp 0x4e5137
mov byte [esp + 0x220], bl
lea ecx, [esp + 8]
call fcn.00401b70
mov dword [esp + 0x220], 0xffffffff
lea ecx, [esp + 0x228]
call fcn.00401b70
xor eax, eax
mov ecx, dword [esp + 0x218]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x210]
pop ebx
call fcn.0057981f
add esp, 0x21c
ret