joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40190b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x20c
mov eax, dword [0x425040]
xor eax, esp
mov dword [esp + 0x204], eax
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebp, 0x100
mov ecx, edi
xor edx, edx
mov byte [esp + ecx + 0x10], cl
push 0x13
mov eax, ecx
pop esi
div esi
mov al, byte [edx + 0x5048b0]
mov byte [esp + ecx + 0x110], al
inc ecx
cmp ecx, ebp
jl 0x40192c
mov esi, edi
mov ebx, edi
mov dl, byte [esp + esi + 0x10]
movzx eax, byte [esp + esi + 0x110]
add ebx, eax
movzx ecx, dl
add ebx, ecx
and ebx, 0x800000ff
jns 0x401972
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x10]
mov byte [esp + esi + 0x10], al
inc esi
mov byte [esp + ebx + 0x10], dl
cmp esi, ebp
jl 0x40194f
mov ebx, edi
mov ebp, edi
inc edi
and edi, 0x800000ff
jns 0x401998
dec edi
or edi, 0xffffff00
inc edi
mov cl, byte [esp + edi + 0x10]
movzx esi, cl
add ebx, esi
and ebx, 0x800000ff
jns 0x4019b1
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x10]
mov byte [esp + edi + 0x10], al
mov byte [esp + ebx + 0x10], cl
call fcn.00401f03
push eax
call fcn.004020c6
movzx eax, byte [esp + edi + 0x14]
add eax, esi
movzx eax, al
pop ecx
mov al, byte [esp + eax + 0x10]
xor byte [ebp + section..Right], al
inc ebp
cmp ebp, 0xdd400
jl 0x401987
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004047e0
add esp, 0x20c
ret

Function at 0x401c18
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x425040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x422e88
lea ecx, [ebp - 0x1c]
call fcn.00401d07
push 0xc
call fcn.004047f3
pop ecx
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.004019ff
mov eax, dword [eax + 4]
shl eax, 2
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 0x40
push 0x4ac
push 0x504400
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
xor eax, eax
push eax
push eax
push eax
push 0x401bdd
push eax
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_CreateRemoteThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push ecx
push ecx
call fcn.0040190b
pop ecx
pop ecx
mov edx, 0x504400
add edx, 0x188
mov esi, section..Right
push esi
call edx
lea ecx, [ebp - 0x1c]
call fcn.00401d94
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004047e0
leave
ret

Function at 0x404f90
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
je 0x404fcf
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x404fcf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404fcf
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x404fcf
cmp dword [ecx + 0x74], 0xe
jbe 0x404fcf
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401262
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 4
push esi
push 0x40124f
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
leave
ret

Function at 0x401b22
Capabilities:
Resume thread

Disassembly:
push dword [ecx - 0x18]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov al, 1
ret
Function at 0x402bc9
Capabilities:
Reference http user-agent string

Disassembly:
push 0x44
mov eax, 0x5d5b57
call fcn.005ad5b8
push 0xf
xor ebx, ebx
pop edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov eax, 0x400
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.004034fa
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x2c]
jae 0x402c05
lea eax, [ebp - 0x2c]
mov esi, dword [sym.imp.urlmon.dll_ObtainUserAgentString]
lea ecx, [ebp - 0x50]
push ecx
push eax
push ebx
call esi
cmp eax, 0x8007000e
jne 0x402c72
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x2c]
call fcn.004034fa
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x402c31
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x50]
push ecx
push eax
push ebx
call esi
cmp eax, ebx
jge 0x402c7f
push str.Retry_ObtainUserAgentString_Failed
push 0x28
push 4
push dword [0x6470bc]
mov ebx, str.AppendUserAgent
mov edi, str.Launcher.cpp
call fcn.004750b0
add esp, 0x10
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040228b
xor al, al
call fcn.005ad63b
ret
cmp eax, ebx
jge 0x402c7f
push str.ObtainUserAgentString_Failed
push 0x2e
jmp 0x402c44
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x402c8b
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.0040226a
mov esi, str._device_type:pc
push esi
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 1
call fcn.004034d5
cmp dword [ebp - 0x34], 0x10
mov eax, dword [ebp - 0x48]
jae 0x402cbc
lea eax, [ebp - 0x48]
push ebx
push dword [ebp - 0x38]
push eax
push 0x10000001
call dword [sym.imp.urlmon.dll_UrlMkSetSessionOption]
test eax, eax
jns 0x402d23
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x402cdc
lea eax, [ebp - 0x2c]
push esi
push eax
push str.UrlMkSetSessionOption_Failed_LastAgent_s_AppendInfo_s
push 0x36
push 4
push dword [0x6470bc]
mov ebx, str.AppendUserAgent
mov edi, str.Launcher.cpp
call fcn.004750b0
add esp, 0x18
mov byte [ebp - 0x49], 0
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.0040228b
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040228b
mov al, byte [ebp - 0x49]
jmp 0x402c6c
mov byte [ebp - 0x49], 1
jmp 0x402d05
Function at 0x40494e
Capabilities:
Resume thread

Disassembly:
push 0x40
mov eax, 0x5d5b22
call fcn.005ad5b8
mov esi, ecx
call fcn.004ab7c6
mov eax, dword [esi + 0xa8]
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [ecx + 0xf0]
mov ecx, esi
call fcn.004b11bb
push 1
mov ecx, esi
call fcn.004b088f
push eax
mov ecx, esi
call fcn.004aa7d4
push dword [esi + 0x154]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0x80
push dword [esi + 0x20]
call ebx
push dword [esi + 0x154]
xor edi, edi
push edi
push 0x80
push dword [esi + 0x20]
call ebx
lea eax, [ebp - 0x2c]
push 0x81
push eax
call fcn.0040dfb6
pop ecx
pop ecx
mov dword [ebp - 4], edi
cmp dword [eax + 0x14], 0x10
jb 0x4049d0
mov eax, dword [eax]
push eax
mov ecx, esi
call fcn.004ae818
or dword [ebp - 4], 0xffffffff
xor ebx, ebx
push edi
inc ebx
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0040228b
lea eax, [ebp - 0x2c]
push 0x82
push eax
call fcn.0040dfb6
pop ecx
pop ecx
mov dword [ebp - 4], ebx
cmp dword [eax + 0x14], 0x10
jb 0x404a04
mov eax, dword [eax]
push eax
push 0x3e9
mov ecx, esi
call fcn.004ae72b
or dword [ebp - 4], 0xffffffff
push edi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0040228b
lea eax, [ebp - 0x48]
push 0xba
push eax
call fcn.0040dfb6
pop ecx
pop ecx
mov dword [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
jb 0x404a3e
mov eax, dword [eax]
push eax
mov ebx, 0x3ea
push ebx
mov ecx, esi
call fcn.004ae72b
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.0040228b
push 0x60d3b0
push 0xffffffffffffffff
mov ecx, esi
call fcn.004ae72b
push edi
push ebx
mov ecx, esi
call fcn.004ae6d8
mov ecx, eax
call fcn.004ae925
test byte [0x64d100], 1
mov eax, esi
je 0x404a87
push edi
jmp 0x404a89
push 1
call fcn.004047c7
mov eax, dword [esi + 0x20]
mov ebx, dword [0x647178]
push edi
push 4
push edi
push edi
push 0x60d5e0
mov dword [ebp - 0x4c], eax
call fcn.004a5870
mov dword [ebx], eax
cmp eax, edi
je 0x404ad3
mov ecx, dword [ebp - 0x4c]
mov dword [eax + 0x28], edi
mov eax, dword [ebx]
mov dword [eax + 0x58], ecx
mov eax, dword [ebx]
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push str.Start_UpdateThread_Success
push 0x96
push 2
jmp 0x404adf
push str.Start_UpdateThread_Failed
push 0x9b
push 5
push dword [0x6470bc]
mov ebx, str.CUpdateManager::Start
mov edi, str.UpdateManager.cpp
call fcn.004750b0
mov edi, dword [sym.imp.USER32.dll_SetTimer]
add esp, 0x10
xor ebx, ebx
push ebx
push 0x3e8
push 1
push dword [esi + 0x20]
call edi
push ebx
push 0x1f4
push 2
push dword [esi + 0x20]
call edi
push ebx
push 0xa
push 3
push dword [esi + 0x20]
call edi
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x64d300
mov ecx, esi
call fcn.004aa623
xor eax, eax
inc eax
call fcn.005ad63b
ret
Function at 0x40cb2c
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x5d5950
call fcn.005ad5b8
mov ebx, dword [ebp + 8]
or esi, 0xffffffff
mov edi, ecx
cmp ebx, esi
jne 0x40cb4e
xor eax, eax
call fcn.005ad63b
ret 4
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x40cb74
mov eax, dword [edi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x40cb74
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 1]
mov dword [edi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x40cb46
cmp dword [edi + 0x54], 0
jne 0x40cb7e
mov eax, esi
jmp 0x40cb46
mov eax, edi
call fcn.0040d615
cmp dword [edi + 0x44], 0
jne 0x40cba1
push dword [edi + 0x54]
movsx eax, bl
push eax
call fcn.005a8981
pop ecx
cmp eax, esi
pop ecx
mov eax, ebx
jne 0x40cb46
jmp 0x40cb7a
lea esi, [ebp - 0x2c]
mov byte [ebp - 0x2d], bl
call fcn.0040d17b
and dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40cc4f
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
mov ebx, dword [ebp - 0x1c]
add ebx, eax
push ebx
push edx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x2d]
push eax
lea eax, [edi + 0x4c]
push eax
call dword [esi + 0x14]
test eax, eax
js 0x40cc77
cmp eax, 1
jg 0x40cc57
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40cbfe
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
sub esi, eax
je 0x40cc24
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40cc11
lea eax, [ebp - 0x2c]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.005a91c0
add esp, 0x10
cmp esi, eax
jne 0x40cc77
lea eax, [ebp - 0x2d]
mov byte [edi + 0x49], 1
cmp dword [ebp - 0x38], eax
jne 0x40cc72
test esi, esi
jne 0x40cbb0
cmp dword [ebp - 0x1c], 0x20
jae 0x40cc77
push esi
push 8
pop ebx
lea esi, [ebp - 0x2c]
call fcn.00404131
jmp 0x40cbb0
mov edx, dword [ebp - 0x2c]
jmp 0x40cbc2
cmp eax, 3
jne 0x40cc77
movsx eax, byte [ebp - 0x2d]
push dword [edi + 0x54]
push eax
call fcn.005a8981
or esi, 0xffffffff
pop ecx
pop ecx
cmp eax, esi
je 0x40cc7a
mov esi, dword [ebp + 8]
jmp 0x40cc7a
or esi, 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040228b
jmp 0x40cb7a
Function at 0x40d52c
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x5d59fd
call fcn.005ad5b8
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x40d60d
cmp byte [edi + 0x49], bl
je 0x40d60d
mov eax, dword [edi]
push 0xffffffffffffffff
mov ecx, edi
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x40d561
xor al, al
jmp 0x40d60f
lea esi, [ebp - 0x2c]
call fcn.0040d17b
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40d5af
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
mov ebx, dword [ebp - 0x1c]
add eax, ebx
push eax
push edx
lea eax, [edi + 0x4c]
push eax
call dword [esi + 0x18]
sub eax, 0
je 0x40d5b4
dec eax
je 0x40d5b8
dec eax
dec eax
je 0x40d609
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040228b
mov al, bl
jmp 0x40d60f
mov edx, dword [ebp - 0x2c]
jmp 0x40d57a
mov byte [edi + 0x49], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40d5c4
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, eax
je 0x40d5ea
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40d5d7
lea eax, [ebp - 0x2c]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.005a91c0
add esp, 0x10
cmp esi, eax
jne 0x40d59d
cmp byte [edi + 0x49], 0
je 0x40d609
test esi, esi
jne 0x40d56c
push esi
push 8
pop ebx
lea esi, [ebp - 0x2c]
call fcn.00404131
jmp 0x40d56c
mov bl, 1
jmp 0x40d59f
mov al, 1
call fcn.005ad63b
ret

Function at 0x40e2e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d4827
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x63ae80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [esi + 4], vtable.ICryptoGetTextPassword.0
xor ebx, ebx
mov dword [esi + 8], ebx
mov dword [esi], vtable.CArchiveExtractCallback.0
mov dword [esi + 4], vtable.CArchiveExtractCallback.1.0
mov dword [esi + 0xc], ebx
mov dword [ebp - 4], ebx
push 8
mov dword [esi + 0x10], ebx
call fcn.004a4d50
mov edi, 3
xor ecx, ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], edi
mov word [eax], cx
mov byte [ebp - 4], 1
push 8
mov dword [esi + 0x1c], ebx
call fcn.004a4d50
xor edx, edx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], edi
mov word [eax], dx
mov byte [ebp - 4], 2
push 8
mov dword [esi + 0x28], ebx
call fcn.004a4d50
xor ecx, ecx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], edi
mov word [eax], cx
mov dword [esi + 0x4c], ebx
mov byte [ebp - 4], 4
mov byte [esi + 0x58], bl
push 8
mov dword [esi + 0x5c], ebx
call fcn.004a4d50
add esp, 0x10
mov dword [esi + 0x5c], eax
xor edx, edx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], edi
mov word [eax], dx
mov eax, esi
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 0x40f830
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov edi, eax
mov dword [esi], 0
mov eax, dword [ebp + 0xc]
cmp eax, 0x400000
jbe 0x40f853
mov eax, 0x400000
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [edx]
push edi
push eax
mov dword [ebp - 4], 0
call ebx
mov ecx, dword [ebp - 4]
add dword [esi], ecx
test eax, eax
je 0x40f888
test ecx, ecx
je 0x40f87e
add edi, ecx
sub dword [ebp + 0xc], ecx
jne 0x40f844
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40fc80
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push esi
push edi
lea eax, [ebp + 8]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40fca9
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jne 0x40fcc4
mov edx, dword [ebp + 8]
xor eax, eax
xor ecx, ecx
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 0xc]
pop edi
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
pop esi
pop ebp
ret 8
call edi
test eax, eax
jne 0x40fcd5
pop edi
mov eax, 0x80004005
pop esi
pop ebp
ret 8
jle 0x40fce1
and eax, 0xffff
or eax, 0x80070000
pop edi
pop esi
pop ebp
ret 8

Function at 0x412120
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ecx
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x64a340], ecx
inc edx
cmp edx, 0x100
jb 0x412123
cmp edx, 0x800
jae 0x4121f9
lea ecx, [ecx]
mov eax, dword [edx*4 + 0x649f40]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x64a340]
inc edx
mov dword [edx*4 + 0x64a33c], eax
cmp edx, 0x800
jb 0x4121d0
mov eax, 0x42c5b0
mov dword [0x64a330], eax
mov dword [0x64c340], eax
mov dword [0x64a32c], 0x42c660
call fcn.0042c850
test eax, eax
jne 0x412225
mov dword [0x64c340], 0x42c660
pop ecx
ret
Function at 0x4126b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x6470a0], 0
push ebx
mov ebx, eax
jne 0x4126ee
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.0040f640
mov eax, dword [eax]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [ebp - 0xc]
push ecx
mov esi, eax
call fcn.004a4d8a
add esp, 4
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4126fc
or eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413960
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x6470a0], 0
push ebx
push esi
mov esi, eax
mov ebx, ecx
jne 0x4139a5
lea eax, [ebp - 0xc]
push eax
call fcn.0040f640
mov eax, dword [eax]
add esp, 4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [ebp - 0xc]
push ecx
mov esi, eax
call fcn.004a4d8a
add esp, 4
test esi, esi
je 0x4139b9
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4139b9
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4139d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d6ee8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
mov eax, dword [0x63ae80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp byte [0x6470a0], 0
jne 0x413a3e
lea eax, [ebp - 0x18]
push eax
call fcn.0040f640
mov eax, dword [eax]
add esp, 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 0x18]
push ecx
mov esi, eax
call fcn.004a4d8a
add esp, 4
test esi, esi
je 0x413a5e
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x413a5e
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x413a92
lea esi, [ebp - 0x50]
call fcn.004109f0
push ebx
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00412710
test al, al
jne 0x413aa5
mov edx, dword [ebp - 0x28]
push edx
call fcn.004a4d8a
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x28]
shr ebx, 4
push eax
and bl, 1
call fcn.004a4d8a
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413da0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x6470a0], 0
push ebx
push esi
mov ebx, eax
jne 0x413dda
lea eax, [ebp - 0xc]
push eax
call fcn.0040f640
mov eax, dword [eax]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [ebp - 0xc]
push ecx
mov esi, eax
call fcn.004a4d8a
add esp, 4
mov eax, esi
jmp 0x413de6
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x413e01
cmp eax, 0xffffffff
je 0x413e01
test al, 0x10
jne 0x413e01
test al, 1
je 0x413e01
and eax, 0xfffffffe
mov ecx, ebx
call fcn.00413960
test al, al
je 0x413e4c
cmp byte [0x6470a0], 0
jne 0x413e39
lea edx, [ebp - 0xc]
push edx
call fcn.0040f640
mov eax, dword [eax]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.004a4d8a
add esp, 4
test esi, esi
je 0x413e4c
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x413e4c
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x413e60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d5876
mov eax, dword fs:[0]
push eax
sub esp, 0x338
mov eax, dword [0x63ae80]
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 edi, ecx
mov eax, dword [edi]
xor ebx, ebx
xor ecx, ecx
mov dword [edi + 4], ebx
mov dword [ebp - 0x32c], edi
mov word [eax], cx
cmp byte [0x6470a0], bl
jne 0x413f52
lea edx, [ebp - 0x118]
push edx
push 0x105
mov byte [ebp - 0x118], bl
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
xor esi, esi
mov dword [ebp - 0x328], eax
cmp byte [ebp - 0x118], bl
je 0x413ee0
inc esi
cmp byte [ebp + esi - 0x118], bl
jne 0x413ed6
lea eax, [esi + 1]
push eax
call fcn.004a4d50
mov edi, eax
lea edx, [ebp - 0x118]
add esp, 4
mov dword [ebp - 0x338], edi
mov dword [ebp - 0x334], esi
mov dword [ebp - 0x330], esi
sub edx, edi
mov cl, byte [edx + eax]
mov byte [eax], cl
inc eax
cmp cl, bl
jne 0x413f08
lea ecx, [ebp - 0x338]
push ecx
lea esi, [ebp - 0x344]
mov dword [ebp - 4], ebx
call fcn.0040f6f0
add esp, 4
mov esi, dword [ebp - 0x32c]
mov ebx, eax
mov byte [ebp - 4], 1
call fcn.0040f470
mov edx, dword [ebp - 0x344]
push edx
call fcn.004a4d8a
push edi
call fcn.004a4d8a
add esp, 8
jmp 0x413f7e
lea ecx, [ebp - 0x324]
push ecx
xor eax, eax
push 0x105
mov word [ebp - 0x324], ax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ebx, [ebp - 0x324]
mov dword [ebp - 0x328], eax
call fcn.0040f400
mov edx, dword [ebp - 0x328]
dec edx
mov eax, 0x103
cmp eax, edx
sbb eax, eax
inc eax
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.005a6d8e
mov esp, ebp
pop ebp
ret
Function at 0x4145c0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d636e
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x63ae80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
lea edi, [esi + 0x20]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], edi
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov byte [ebp - 4], 1
push 4
mov dword [edi + 0xc], eax
call fcn.004a4d50
xor ecx, ecx
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], 3
mov byte [eax], cl
mov byte [ebp - 4], 2
push 8
mov dword [edi + 0x18], ecx
call fcn.004a4d50
add esp, 8
lea edx, [ebp - 0x34]
xor ecx, ecx
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 3
push edx
mov word [eax], cx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov ebx, edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov byte [esi + 0x44], 1
mov dword [esi + 0x10], 4
call fcn.00419e50
mov ecx, dword [edi + 0xc]
xor eax, eax
mov dword [edi + 0x10], eax
mov byte [ecx], al
mov edx, dword [edi + 0x18]
mov dword [edi + 0x1c], eax
lea edi, [esi + 0x14]
mov word [edx], ax
call fcn.0042cec0
mov eax, esi
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